]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
c-decl.c (struct binding_level): Change int field n_incomplete to tree list incomplet...
[gcc.git] / gcc / ChangeLog
1 2002-05-31 Stan Shebs <shebs@apple.com>
2 Turly O'Connor <turly@apple.com>
3
4 * c-decl.c (struct binding_level): Change int field n_incomplete
5 to tree list incomplete_list.
6 (clear_binding_level): Init field with NULL.
7 (pushdecl): Add incomplete type to list.
8 (mark_binding_level): Mark the incomplete list.
9 (finish_struct): Scan the incomplete list for types instead
10 of all decls in the current binding level.
11
12 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
13
14 * pa.c (output_millicode_call): Add missing '%' characters.
15 (output_call): Likewise.
16
17 2002-05-31 David Edelsohn <edelsohn@gnu.org>
18
19 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
20 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
21
22 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
23
24 * varasm.c (mark_constant_pool): Walk epilogue delay list
25 checking the insn, not the chain for potential constants.
26
27 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
28
29 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
30
31 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
32
33 * i386.c (classify_argument): Properly handle base types.
34
35 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
36 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
37 registers.
38
39 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
40
41 * gcse.c (gcse_emit_move_after): New.
42 (pre_delete, hoist_store): Use it.
43
44 * reload1.c (emit_input_reload_insns): Use constrain_operands
45 instead of constraint_accepts_reg_p to verify optimization.
46 (constraint_accepts_reg_p): Kill
47
48 * reload1.c (reload_cse_delete_noop_set): Kill.
49 (reload_cse_simplify): use delte_insn_and_edges.
50
51 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
52
53 * cfgloop.c (flow_loops_find): Initialize first and last fields
54 correctly.
55
56 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
57
58 * c-common.c (builtin_define_std): Correct logic.
59
60 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
61
62 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
63 (output_call): Likewise.
64
65 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
66
67 * pa.c: Move output.h include after tree.h include.
68 (pa_asm_output_mi_thunk): Constify identifier lab.
69
70 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
71
72 * config/ns32k/ns32k.h: Define named constants for the
73 bits in target_flags and use them.
74 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
75
76 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
77
78 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
79 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
80 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
81 default scheduling model.
82 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
83 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
84 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
85 * doc/install.texi (hppa*-*-*): Document default scheduling.
86
87 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
88
89 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
90
91 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
92
93 * config.gcc (ns32k-*-netbsd*): Set tm_file to
94 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
95 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
96 netbsd.h, or netbsd-aout.h.
97
98 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
99
100 * longlong.h (count_trailing_zeros): Add missing \, and clean up
101 whitespace in __ns32000__ case.
102
103 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
104
105 * expr.c (expand_expr): Output partially zeroed out vectors with
106 output_constant_def.
107
108 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
109
110 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
111 (sh-*-netbsdelf*)
112 (shl*-*-netbsdelf*): New targets.
113 * config/sh/netbsd-elf.h: New file.
114
115 2002-05-30 Richard Henderson <rth@redhat.com>
116 Eric Botcazou <ebotcazou@multimania.com>
117
118 PR optimization/6822
119 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
120 to unsigned int for op1 comparisons. Use gen_int_mode.
121
122 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
123
124 * expmed.c (const_mult_add_overflow_p): New.
125 * expr.h: Declare it.
126 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
127 Don't eliminate the biv if the giv has a constant multiplier and
128 the rhs argument of the comparison does satisfy the predicate.
129 Use expand_mult_add to compute the replacement constant.
130
131 2002-05-30 Osku Salerma <osku@iki.fi>
132
133 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
134 (c_common_get_alias_set): Handle it.
135 * doc/extend.texi: Document it.
136
137 2002-05-30 Richard Henderson <rth@redhat.com>
138
139 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
140 * toplev.c (process_options): Don't check it.
141 * doc/tm.texi: Don't document it.
142 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
143 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
144 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
145 frame pointer optimization if current_function_profile.
146
147 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
148
149 * langhooks.c: Fix formatting.
150 * langhooks.h: Likewise.
151 * lcm.c: Likewise.
152 * libgcc2.c: Likewise.
153 * lists.c: Likewise.
154 * local-alloc.c: Likewise.
155 * loop.c: Likewise.
156 * loop.h: Likewise.
157
158 2002-05-30 Marc Espie <espie@openbsd.org>
159
160 * config.gcc (sparc64-*-openbsd*): New.
161 * config/sparc/openbsd1-64.h: New.
162 * config/sparc/openbsd64.h: New.
163
164 2002-05-30 Jeff Law <law@redhat.com>
165
166 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
167 a dead insn with a REG_RETVAL note when the entire libcall is not
168 dead and remove the associated REG_LIBCALL note at the same time.
169
170 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
171
172 * lcm.c (output.h): #include.
173 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
174 as an ordinary block.
175 (optimize_mode_switching): Don't pretend that the exit block is
176 an ordinary block, or handle sucessors of entry block specially.
177 Instead, split edges from entry block and to exit block, and
178 put a computing definition on the thus gained post-entry-block,
179 and a need on the pre-exit-block.
180
181 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
182
183 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
184 * rtl.texi: Document 'B'
185
186 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
187
188 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
189 at run-time.
190 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
191
192 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
193
194 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
195 const0_rtx instead of NULL_RTX when in error.
196 (altivec_expand_abs_builtin): Same.
197 (rs6000_expand_binop_builtin): Same.
198 (altivec_expand_predicate_builtin): Same.
199 (altivec_expand_stv_builtin): Same.
200 (rs6000_expand_ternop_builtin): Same.
201 (altivec_expand_builtin): Same.
202
203 2002-05-29 David S. Miller <davem@redhat.com>
204
205 * rtl.h (clear_emit_caches): Delete.
206 * integrate.c (output_inline_function): Don't call it.
207 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
208 (clear_emit_caches): Delete definition.
209 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
210
211 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
212
213 * config/mmix/mmix.c: Include real.h.
214 (mmix_constant_address_p): Remove redundant test before switch.
215
216 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
217
218 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
219 only if not already defined.
220
221 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
222
223 * config/h8300/h8300-protos.h: Remove prototypes for
224 ok_for_bclr and small_power_of_two.
225 * config/h8300/h8300.c (small_power_of_two): Remove.
226 (ok_for_blcr): Likewise.
227 (fix_bit_operand): Make WHAT deal with an integer instead of a
228 constraint character.
229 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
230 (CONST_OK_FOR_P): Likewise.
231 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
232 CONST_OK_FOR_P any more.
233 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
234 of fix_bit_operand.
235 (iorqi3): Likewise.
236 (xorqi3): Likewise.
237
238 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
239
240 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
241 (CPP_PREDEFINES): Make sure this is undefined.
242 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
243 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
244 or -U__MIPSEB__ before defining one or the other. Instead,
245 use %(subtarget_endian_default) if neither -EB nor -EL are
246 specified.
247 (SUBTARGET_EXTRA_SPECS): Define.
248 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
249 %(netbsd_cpp_spec).
250
251 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
252
253 * doc/md.texi (Patterns): Note pattern condition pitfall
254 for unnamed insn.
255
256 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
257
258 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
259 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
260 ternary operations from here...
261 (rs6000_expand_builtin): ...to here.
262 New argument expandedp.
263 Change all instances of altivec_expand_binop_builtin to
264 rs6000_expand_binop_builtin.
265 (altivec_expand_unop_builtin): Rename to
266 rs6000_expand_unop_builtin.
267 (altivec_expand_binop_builtin): Rename to
268 rs6000_expand_binop_builtin.
269 (altivec_expand_ternop_builtin): Rename to
270 rs6000_expand_ternop_builtin.
271
272 2002-05-29 Richard Henderson <rth@redhat.com>
273
274 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
275 (TARGET_BI_ARCH): Likewise.
276 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
277 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
278 (TARGET_64BIT_DEFAULT): Default to 0.
279 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
280
281 2002-05-29 Richard Henderson <rth@redhat.com>
282
283 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
284 (get_pc_thunk_name): New.
285 (output_set_got): Use it.
286 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
287 into linkonce sections.
288
289 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
290
291 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
292 (CPP_PREDEFINES): Make sure this is undefined.
293 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
294 (CPP_SUBTARGET_SPEC): Don't provide different versions for
295 default-32 and default-64. Just always use %(netbsd_cpp_spec).
296 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
297 cpp_subtarget_spec64. Add netbsd_cpp_spec.
298 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
299 (CPP_PREDEFINES): Make sure this is undefined.
300 (SUBTARGET_EXTRA_SPECS): Define.
301 (CPP_SPEC): Use %(netbsd_cpp_spec).
302
303 2002-05-29 Jeff Law <law@redhat.com>
304
305 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
306
307 * flow.c (propagate_one_insn): Do not remove a dead insn if it
308 contains a REG_RETVAL note.
309
310 * haifa-sched (sched_analyze): Remove another useless clearing
311 of SCHED_GROUP_P I missed yesterday.
312
313 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
314 * pa.c (pa_asm_output_mi_thunk): New function.
315 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
316
317 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
318 Marek Michalkiewicz <marekm@amelek.gda.pl>
319
320 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
321 (avr_asm_only_p): Make non-static.
322 (enum avr_arch): Remove.
323 (avr_arch_types): New.
324 (avr_mcu_types): Update.
325 (avr_override_options): Use avr_arch_types table instead of switch.
326 * avr.h (CPP_PREDEFINES): Die.
327 (avr_base_arch_macro, avr_extra_arch_macro): New.
328 (TARGET_CPU_CPP_BUILTINS): New.
329 (CPP_SPEC, EXTRA_SPECS): Simplify.
330 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
331 CPP_AVR5_SPEC): Die.
332
333 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
334
335 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
336 NETBSD_OS_CPP_BUILTINS_AOUT.
337 (SUBTARGET_EXTRA_SPECS): Define.
338 (CPP_SPEC): Use %(netbsd_cpp_spec).
339
340 2002-05-29 Richard Henderson <rth@redhat.com>
341
342 * config/i386/i386.c (ix86_output_function_epilogue): New.
343 (TARGET_ASM_FUNCTION_EPILOGUE): New.
344 (pic_label_name): Remove.
345 (pic_labels_used): New.
346 (ix86_asm_file_end): Emit one pc load stub for each register used.
347 (output_set_got): Generate deep pc load to any register.
348 (ix86_select_alt_pic_regnum): New.
349 (ix86_save_reg): Don't save pic register if we can find a valid
350 call-clobbered replacement.
351 (ix86_expand_prologue): If we found a valid replacement, renumber
352 pic_offset_table_rtx.
353 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
354 pic_offset_table_rtx after reload.
355 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
356 * config/i386/i386.md (set_got): Make insn, not expander.
357 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
358
359 2002-05-29 Richard Henderson <rth@redhat.com>
360
361 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
362 alignment for alloca.
363
364 2002-05-29 Richard Henderson <rth@redhat.com>
365
366 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
367 (print_operand_address): Only add rip for symbolic addresses
368 for which we do not have another relocation type.
369
370 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
371
372 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
373 (EXTRA_SPECS): Add netbsd_cpp_spec.
374 (CPP_SPEC): Use %(netbsd_cpp_spec).
375 (CPP_PREDEFINES): Remove.
376 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
377 (EXTRA_SPECS): Define.
378 (CPP_SPEC): Use %(netbsd_cpp_spec).
379 (CPP_PREDEFINES): Remove.
380
381 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
382
383 PR preprocessor/6844
384 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
385 NUL.
386
387 2002-05-29 Eric Christopher <echristo@redhat.com>
388
389 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
390 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
391
392 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
393
394 * config/fr30/fr30.md: Remove previous restriction on splits.
395 Enforce conformance through gen_lowpart and cont_int_operand.
396 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
397 as the assembler does not support ".bss".
398
399 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
400
401 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
402 (CPP_PREDEFINES): Remove.
403 (SUBTARGET_EXTRA_SPECS): Define.
404 (CPP_SPEC): Use %(netbsd_cpp_spec).
405 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
406 (CPP_PREDEFINES): Remove.
407 (SUBTARGET_EXTRA_SPECS): Define.
408 (CPP_SPEC): Use %(netbsd_cpp_spec).
409 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
410 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
411 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
412 Add netbsd_cpp_spec.
413 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
414
415 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
416 Zack Weinberg <zack@codesourcery.com>
417
418 * cppexp.c (cpp_num): Move to cpplib.h.
419 (CPP_ERROR): Remove.
420 (interpret_float_suffix, interpret_int_suffix): New.
421 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
422 (cpp_classify_number, cpp_interpret_integer): New.
423 (interpret_number): Remove.
424 (eval_token): Update to use new routines.
425 * cpphash.h (cpp_num_part): Move to cpplib.h.
426 * cppinit.c (cpp_post_options): Set warn_long_long.
427 * cpplib.h (struct cpp_options): Add warn_long_long.
428 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
429 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
430 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
431 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
432 cpp_interpret_integer): New.
433
434 2002-05-29 Joel Sherrill <joel@OARcorp.com>
435
436 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
437
438 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
439
440 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
441 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
442 (CPP_SUBTARGET_SPEC): Define.
443 (SUBTARGET_EXTRA_SPECS): Define.
444 (CPP_SPEC): Remove.
445
446 2002-05-29 Chris Lattner <sabre@nondot.org>
447
448 * ssa.c (rename_insn_1): Rename uses of undefined registers to
449 prevent confusion if/when the register is defined.
450
451 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
452
453 PR target/6838
454 * config/cris/cris.md: Fix typos and thinkos in comments.
455 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
456 second alternative.
457 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
458 ("*mov_sideqi_mem"): Similar, but for operand 3.
459 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
460 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
461 Remove spurious mode specifier on operand 2.
462
463 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
464
465 * config/h8300/h8300-protos.h: Remove the prototype for
466 o_operand.
467 Add prototypes for single_one_operand and single_zero_operand.
468 * config/h8300/h8300.c (o_operand): Remove.
469 (single_one_operand): New.
470 (single_zero_operand): Likewise.
471 (print_operand): For 'V' operand, and the operand with 0xff.
472 For 'V' and 'W' operands, do not and the bit position with 7.
473 * config/h8300/h8300.md (various anonymous patterns): Replace
474 use of exact_log2 with single_one_operand/single_zero_operand.
475
476 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
477
478 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
479
480 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
481
482 * config/s390/s390.c (legitimate_pic_operand_p): Do not
483 accept symbolic LARL operands.
484 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
485 epilogue insns.
486
487 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
488
489 * config/s390/s390.md (cmpstr_64/31): Mark whole
490 input registers as used.
491
492 2002-05-28 Richard Henderson <rth@redhat.com>
493
494 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
495 not current_function_uses_pic_offset_table and
496 current_function_uses_const_pool; examine current_function_profile.
497 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
498 input to blockage if needed.
499 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
500 (legitimize_pic_address): Likewise. Set regs_ever_live for
501 pic_offset_table_rtx when invoked during reload.
502 * config/i386/i386.h (FINALIZE_PIC): Remove.
503 * config/i386/i386.md (tablejump): Reformat. Do not set
504 current_function_uses_pic_offset_table.
505 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
506 (blockage): Accept anything as operand 0.
507
508 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
509
510 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
511 common CPP built-ins for all NetBSD a.out targets.
512 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
513 common CPP built-ins for all NetBSD ELF targets.
514 * config/netbsd.h: Add missing notice.
515 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
516 for all NetBSD targets.
517 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
518 for all NetBSD targets using an LP64 code model.
519 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
520 NetBSD targets.
521
522 2002-05-28 Richard Henderson <rth@redhat.com>
523
524 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
525 update if UPDATE_LIFE_LOCAL.
526
527 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
528
529 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
530
531 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
532 Jason R. Thorpe <thorpej@wasabisystems.com>
533
534 config/sh reorganization to factor out endianness and coff:
535
536 * config/sh/little.h: New file.
537 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
538 defined, define to 0 to select big-endian.
539 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
540 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
541 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
542 * config/sh/t-be: New file.
543 * config/sh/t-le: New file.
544
545 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
546 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
547 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
548 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
549 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
550 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
551 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
552 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
553 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
554 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
555 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
556 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
557 (LINK_SPEC): Define to SH_LINK_SPEC.
558 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
559 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
560 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
561 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
562 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
563 * config/sh/coff.h: New file.
564 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
565 (TARGET_OBJFMT_CPP_BUILTINS): Define.
566 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
567 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
568 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
569 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
570 (PTRDIFF_TYPE): Likewise.
571 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
572 (CPP_PREDEFINES): Don't define.
573 (TARGET_OBJFMT_CPP_BUILTINS): Define.
574 (LINK_SPEC): Define to SH_LINK_SPEC.
575 (LINK_EMUL_PREFIX): Redefine.
576 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
577 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
578 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
579 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
580 (TARGET_OS_CPP_BUILTINS): Define.
581 (TARGET_DEFAULT): Redefine.
582 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
583 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
584 (LINK_SPEC): Don't redefine.
585 (LINK_DEFAULT_CPU_EMUL): Redefine.
586 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
587 * sh.c (sh_asm_named_section): Don't declare / define.
588 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
589 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
590 (sh64-*-elf* tm_file): Likewise.
591 (sh-*-rtemself* tm_file): Likewise.
592 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
593 (sh-*-linux* tmake_file): Add sh/t-le.
594 (sh-*-rtems* tm_file): Add sh/coff.h
595 (sh-*-* tm_file): Likewise.
596
597 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
598
599 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
600 CONSTANT_POOL_ADDRESS_P.
601
602 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
603
604 2002-05-28 David Edelsohn <edelsohn@gnu.org>
605 Jeff Law <law@redhat.com>
606
607 * optabs.c (expand_binop): Fix nwords sign warnings.
608 generate pseudo for add_optab.
609
610 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
611 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
612
613 2002-05-28 Marc Espie <espie@openbsd.org>
614
615 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
616 inherited from gas.h.
617 (ASM_QUAD): Undef. OpenBSD does not support it.
618
619 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
620
621 * doc/install.texi (binaries): Change mingw binaries
622 link to www.mingw.org.
623
624 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
625
626 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
627
628 2002-05-28 Richard Henderson <rth@redhat.com>
629
630 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
631 bottom alignment for leaf functions.
632
633 2002-05-28 Zack Weinberg <zack@codesourcery.com>
634
635 * config/pa/milli32.S, config/pa/lib1funcs.asm,
636 config/sparc/sol2-g1.asm: Delete unused files.
637
638 2002-05-28 Richard Henderson <rth@redhat.com>
639
640 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
641
642 * flow.c (calculate_global_regs_live): Rename call_used to
643 invalidated_by_call. Initialize from regs_invalidated_by_call
644 instead of call_used_regs.
645
646 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
647 DECL_EXTERNAL.
648
649 2002-05-28 Zack Weinberg <zack@codesourcery.com>
650
651 * tree.h: Don't include real.h.
652 Forward-declare struct realvaluetype.
653 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
654 contain it.
655 (TREE_REAL_CST_PTR): New accessor.
656 (TREE_REAL_CST): Update.
657 * real.h: Include machmode.h.
658 (realvaluetype): Make it struct realvaluetype, not a typedef.
659 (build_real): Prototype here.
660
661 * tree.c: Include real.h.
662 (build_real): Allocate the REAL_VALUE_TYPE as a separate
663 object in GC memory, set TREE_REAL_CST_PTR to point to it.
664 (build_real_from_int_cst): Use build_real.
665 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
666 REAL_CST.
667
668 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
669 fold-const.c, print-tree.c, real.c: Include real.h.
670 * Makefile.in: Update dependency lists.
671
672 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
673
674 * basic-block.h (last_basic_block): Declare.
675 (expunge_block_nocompact): Declaration removed.
676 (compact_blocks): Declare.
677 * cfg.c (last_basic_block): New variable.
678 (expunge_block_nocompact): Removed.
679 (expunge_block): Do not compact basic blocks.
680 (compact_blocks): New.
681 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
682 longer change.
683 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
684 last_basic_block.
685 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
686 real positions of blocks.
687 (delete_unreachable_blocks): Simplified -- quadratic behavior now
688 cannot occur.
689 (cleanup_cfg): Compact blocks.
690 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
691 basic_block_info varray.
692 (flow_delete_block): Comment update.
693 (back_edge_of_syntactic_loop_p): Modify position check code.
694 (verify_flow_info): Update checking.
695 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
696 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
697 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
698 indices no longer change.
699 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
700 last_basic_block.
701 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
702 * profile.c (branch_prob): Compact blocks.
703 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
704 last_basic_block.
705
706 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
707
708 * config/h8300/h8300.md (two anonymous patterns): New.
709
710 2002-05-28 David S. Miller <davem@redhat.com>
711
712 * config/sparc/sparc.md (cpu): Tidy.
713 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
714 'trap'.
715 (in_call_delay): Delete reference to 'return' type.
716 (eligible_for_return_delay, in_return_delay, define_delay
717 referencing those): Delete.
718 (rest of file): Use new type attributes as appropriate.
719 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
720 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
721 * config/sparc/ultra1_2.md (us1_single): New reservation.
722 (us1_ialuX): Likewise.
723 * config/sparc/ultra3.md (us3_single): Likewise.
724 (us3_ialuX): Likewise.
725 (us3_imul, us3_idiv): Tweak.
726
727 2002-05-28 Richard Henderson <rth@redhat.com>
728
729 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
730 STRING_CST.
731
732 2002-05-28 Richard Henderson <rth@redhat.com>
733
734 * config.gcc: Obsolete mn10200.
735
736 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
737
738 * cppexp.c (interpret_number): Optimize for single-digit
739 and less-than-half-precision cases.
740 (num_trim, num_positive, num_div_op): Cast constants.
741
742 2002-05-27 Bo Thorsen <bo@suse.de>
743
744 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
745 3.1 branch. The file was made by Jakub Jelinek.
746 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
747 support so multilib doesn't break. And don't define this at all
748 when -Dinhibit_libc is used.
749 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
750 * config/i386/t-linux64: Implement full multilib support. Patch
751 originally done by Andreas Jaeger and Jakub Jelinek.
752
753 2002-05-27 Roger Sayle <roger@eyesopen.com>
754
755 * c-common.c: Add support for __attribute__((nothrow)) to specify
756 that a function cannot throw an exception (using TREE_NOTHROW).
757 (handle_nothrow_attribute): New function to process this attribute.
758
759 * doc/extend.texi: Document the new nothrow function attribute.
760
761 2002-05-27 H.J. Lu (hjl@gnu.org)
762
763 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
764 (num_positive): Likewise.
765 (num_div_op): Likewise.
766
767 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
768
769 * c-common.c (c_common_init): Always use intmax_t.
770
771 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
772
773 * c-common.c (c_common_init): Use intmax_t for now.
774
775 2002-05-24 Andrew Haley <aph@redhat.com>
776
777 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
778 if T is a boolean type.
779
780 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
781
782 * basic-block.h (last_basic_block): Defined as synonym for
783 n_basic_blocks.
784 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
785 flow_depth_first_order_compute, flow_preorder_transversal_compute,
786 flow_dfs_compute_reverse_init): Replaced relevant occurences of
787 n_basic_blocks with last_basic_block.
788 * cfgbuild.c (make_edges): Likewise.
789 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
790 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
791 * combine.c (combine_instructions): Likewise.
792 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
793 iterative_dataflow_bitmap): Likewise.
794 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
795 calc_idoms, idoms_to_doms): Likewise.
796 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
797 Likewise.
798 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
799 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
800 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
801 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
802 delete_null_pointer_checks, compute_code_hoist_vbeinout,
803 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
804 compute_store_table, build_store_vectors): Likewise.
805 * haifa-sched.c (sched_init): Likewise.
806 * ifcvt.c (if_convert): Likewise.
807 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
808 pre_edge_lcm, compute_available, compute_nearerout,
809 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
810 Likewise.
811 * predict.c (estimate_probability, process_note_prediction,
812 note_prediction_to_br_prob): Likewise.
813 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
814 * recog.c (split_all_insns, peephole2_optimize): Likewise.
815 * regrename.c (copyprop_hardreg_forward): Likewise.
816 * resource.c (init_resource_info): Likewise.
817 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
818 init_regions, schedule_insns): Likewise.
819 * ssa-ccp.c (ssa_const_prop): Likewise.
820 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
821 * ssa.c (compute_dominance_frontiers,
822 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
823
824 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
825 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
826 sizes consistently.
827
828 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
829
830 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
831 new.
832 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
833 hoist_insn_after, hoist_insn_to_edge): New.
834
835 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
836
837 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
838 (PROP_FINAL): Include.
839 * flow.c (life_analysis, update_life_info,
840 init_propagate_block_info, mark_set_1, mark_used_rgs):
841 Support SCAN_DEAD_STORE.
842
843 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
844
845 * c-common.c (c_common_init): Set CPP arithmetic precision.
846 * cppexp.c (cpp_num_part): Move typedef ...
847 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
848 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
849 (sanity_checks): Update.
850
851 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
852
853 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
854 (mkheaders): New rule.
855 (install-mkheaders): New rule.
856 * configure.in (all_outputs): Add mkheaders.
857 * configure: Regenerate.
858 * mkheaders.in: New file.
859
860 2002-05-26 Jakub Jelinek <jakub@redhat.com>
861
862 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
863
864 2002-05-26 Andreas Jaeger <aj@suse.de>
865
866 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
867
868 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
869
870 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
871 right_shift): Remove.
872 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
873 HIGH_PART): New.
874 (struct op): Use cpp_num.
875 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
876 num_part_mul, num_unary_op, num_binary_op, num_negate,
877 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
878 num_div_op, num_lshift, num_rshift, append_digit): New.
879 (interpret_number, parse_defined, eval_token, reduce): Update
880 for two-integer arithmetic.
881 (binary_handler): New typedef.
882 (optab): Update.
883 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
884 (_cpp_parse_expr, reduce): Update to handle two-integers.
885 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
886
887 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
888
889 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
890 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
891 branch insn into account, do not assume 1.
892 (avr_out_sbxx_branch): New function. Optimize cases of skipping
893 over single word insn. Handle upper half of I/O space too.
894 * config/avr/avr.md (*sbrx_branch): Use it.
895 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
896 (*sbix_branch, *sbix_branch_bit7): Likewise.
897 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
898 Use RTL peepholes to optimize register operand sign tests.
899
900 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
901
902 * config/avr/avr.c (avr_asm_only_p): New variable.
903 (avr_override_options): Set it here if AVR1.
904 (asm_file_start): Test it here, report an error if set.
905
906 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
907
908 * alias.c: Fix formatting.
909 * attribs.c: Likewise.
910 * bb-reorder.c: Likewise.
911 * bitmap.c: Likewise.
912 * bitmap.h: Likewise.
913 * builtins.c: Likewise.
914
915 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
916
917 * reload.c (find_valid_class): Accept new argument DEST,
918 choose class accordingly.
919 (push_reload): Update callers.
920
921 2002-05-26 Andreas Jaeger <aj@suse.de>
922
923 * combine.c (combine_instructions): Do not indent #if for
924 traditional C.
925
926 2002-05-25 Richard Henderson <rth@redhat.com>
927
928 * c-pragma.c (apply_pragma_weak): Convert value identifier to
929 string for decl_attributes.
930 (handle_pragma_weak): Call assemble_alias if we're modifying
931 an existing decl.
932
933 2002-05-25 Richard Henderson <rth@redhat.com>
934
935 PR target/6788
936 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
937 using rtl instead of fprintf.
938 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
939 * config/sparc/sparc-protos.h: Update.
940
941 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
942
943 * Makefile.in (C_COMMON_H): Fix.
944 Update other targets.
945 * c-common.c: Don't include c-lex.h.
946 (builtin_define_with_value): Make static and prototype.
947 (builtin_define_std): Move from c-lex.h.
948 * c-common.h (init_c_lex): Move from c-lex.h.
949 * c-decl.c: Don't include c-lex.h.
950 (make_pointer_declarator): Move from c-parse.in.
951 * c-lex.c: Don't include c-lex.h.
952 * c-lex.h: Remove.
953 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
954 (make_pointer_declarator): Move to c-decl.c.
955 * c-pragma.c: Don't include c-lex.h.
956 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
957 * c-tree.h (make_pointer_declarator): New.
958 doc:
959 * passes.texi, tm.texi: Update.
960 objc:
961 * Make-lang.in: Update and correct.
962 * objc-act.c: Don't include c-lex.h or cpplib.h.
963 treelang:
964 * treetree.c: Don't include c-lex.h.
965 config:
966 * darwin-c.c: Don't include c-lex.h.
967 * c4x/c4x-c.c: Don't include c-lex.h.
968 * c4x/t-c4x: Update.
969 * i370/i370-c.c: Don't include c-lex.h.
970 * i370/t-i370: Update.
971 * i960/i960-c.c: Don't include c-lex.h.
972 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
973 * i960/t-960bare: Update.
974 * i960/t-vxworks: Update.
975 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
976 * rs6000/t-darwin: Update.
977 * rs6000/t-rs6000-c-rule: Update.
978 * v850/v850-c.c: Don't include c-lex.h.
979 * v850/v850.c: Don't include c-lex.h or cpplib.h.
980
981
982 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
983
984 * tree.def: Fix typos.
985 * doc/install.texi: Likewise.
986
987 2002-05-25 Richard Henderson <rth@redhat.com>
988
989 * configure.in (HAVE_AS_TLS): Add ia64 test.
990 * configure: Rebuild.
991 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
992 (override_options): Set it.
993 (TARGET_HAVE_TLS): New.
994 (sdata_symbolic_operand): Look for 's'.
995 (tls_symbolic_operand): New.
996 (ia64_expand_load_address): Abort for tls symbols.
997 (gen_tls_get_addr): New.
998 (gen_thread_pointer): New.
999 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1000 (rtx_needs_barrier): Add new unspecs.
1001 (ia64_encode_section_info): Handle tls symbols.
1002 (ia64_strip_name_encoding): Strip two encoding chars.
1003 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1004 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1005 (TARGET_OPTIONS): Add tls-size.
1006 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1007 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1008 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1009 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1010 (movsf, movdf): Likewise.
1011 (movdi_symbolic): Use match_scratch. Don't split if we won't
1012 have a scratch availiable.
1013 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1014 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1015 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1016 * config/ia64/ia64-protos.h: Update.
1017 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1018 sdata_symbolic_operand.
1019 (ASM_OUTPUT_LABELREF): Strip two characters.
1020
1021 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1022
1023 * combine.c (simplify_set): Remove an unnecessary subreg.
1024
1025 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1026
1027 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1028
1029 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1030
1031 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1032
1033 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1034
1035 2002-05-25 Roger Sayle <roger@eyesopen.com>
1036
1037 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1038 (cond (compare x y) 0) into the equivalent (cond x y).
1039
1040 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1041
1042 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1043
1044 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1045
1046 * config.gcc: Remove all stanzas for previously obsoleted
1047 systems. Where necessary, add explicit error stanzas to
1048 prevent removed systems from being misidentified as something
1049 else. Begin a fresh obsoletions list, with the systems that
1050 were reprieved last round.
1051 * doc/install.texi: Remove all mention of dead targets.
1052 * fixinc/mkfixinc.sh: Likewise.
1053
1054 * config/arm/arm.h: Bit 31 of target_flags is no longer
1055 reserved.
1056
1057 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1058 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1059 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1060 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1061 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1062 config/alpha/osf12.h, config/alpha/osf2or3.h,
1063 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1064 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1065 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1066 config/clipper/clipper.h, config/clipper/clipper.md,
1067 config/clipper/clix.h, config/convex/convex-protos.h,
1068 config/convex/convex.c, config/convex/convex.h,
1069 config/convex/convex.md, config/convex/fixinc.convex,
1070 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1071 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1072 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1073 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1074 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1075 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1076 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1077 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1078 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1079 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1080 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1081 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1082 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1083 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1084 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1085 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1086 config/m68k/altos3068.h, config/m68k/apollo68.h,
1087 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1088 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1089 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1090 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1091 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1092 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1093 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1094 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1095 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1096 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1097 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1098 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1099 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1100 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1101 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1102 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1103 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1104 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1105 config/mips/dec-osf1.h, config/mips/elflorion.h,
1106 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1107 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1108 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1109 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1110 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1111 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1112 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1113 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1114 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1115 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1116 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1117 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1118 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1119 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1120 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1121 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1122 Delete file.
1123
1124 2002-05-24 Richard Henderson <rth@redhat.com>
1125
1126 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1127 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1128 * config/i386/i386.c (tls_model_chars): Add leading space.
1129 (tls_symbolic_operand): Don't bias by 1.
1130 (legitimize_address): Don't unbias by 1.
1131
1132 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1133
1134 * lcm.c (optimize_mode_switching): Change bb used as indices
1135 to bb->index.
1136
1137 2002-05-24 Richard Henderson <rth@redhat.com>
1138
1139 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1140 of update_life_info_in_dirty_blocks.
1141
1142 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1143
1144 PR other/6782
1145 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1146
1147 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1148
1149 PR preprocessor/6780
1150 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1151
1152 2002-05-24 Jim Blandy <jimb@redhat.com>
1153
1154 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1155 entry with a type code of zero, marking the end of the compilation
1156 unit's macro info.
1157
1158 2002-05-24 Richard Henderson <rth@redhat.com>
1159
1160 * varasm.c (asm_output_bss): Always output one byte.
1161 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1162
1163 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1164
1165 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1166 namespace.
1167
1168 2002-05-24 Andreas Jaeger <aj@suse.de>
1169
1170 * ggc-page.c (alloc_page): Cast variables of type size_t to
1171 unsigned long, adjust printf format string.
1172 (ggc_alloc): Likewise.
1173 (ggc_print_statistics): Likewise.
1174 (ggc_print_statistics): Correct printf format string for SCALE to
1175 use unsigned long.
1176
1177 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1178
1179 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1180
1181 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1182 Zack Weinberg <zack@codesourcery.com>
1183
1184 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1185 quoted strings.
1186 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1187 directive in assembly file.
1188 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1189 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1190 * config/pj/pj.h (ASM_FILE_START): Likewise.
1191 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1192 * config/avr/avr.c (asm_file_end): Likewise.
1193 * toplev.c (output_quoted_string): Handle possibly signed plain
1194 char.
1195 * toplev.h (output_clean_symbol_name): Declare
1196 * toplev.c (output_clean_symbol_name): Define.
1197 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1198 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1199
1200 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1201
1202 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1203
1204 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1205
1206 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1207 of size of unsigned.
1208
1209 2002-05-23 Richard Henderson <rth@redhat.com>
1210
1211 * configure.in (HAVE_AS_TLS): New test.
1212 * config.in, configure: Rebuild.
1213 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1214 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1215 (override_options): Set it.
1216 (tls_model_chars, tls_symbolic_operand): New.
1217 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1218 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1219 (local_exec_symbolic_operand): New.
1220 (get_pic_label_name): Merge into output_set_got.
1221 (ix86_asm_file_end): Emit pic_label_name if defined.
1222 (legitimate_constant_p, constant_address_p): New.
1223 (legitimate_pic_operand_p): New.
1224 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1225 (legitimate_address_p): Likewise.
1226 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1227 (ix86_strip_name_encoding): New.
1228 (get_thread_pointer): New.
1229 (legitimize_address): Handle tls symbols.
1230 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1231 Remove UNSPEC_PLT.
1232 (struct machine_function): Add some_ld_name.
1233 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1234 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1235 (output_addr_const_extra): New.
1236 (maybe_get_pool_constant): New.
1237 (ix86_split_to_parts): Use it.
1238 (ix86_expand_move): Handle tls symbols.
1239 (ix86_tls_get_addr): New.
1240 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1241 (TARGET_OPTIONS): Add tls-dialect.
1242 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1243 (LEGITIMATE_CONSTANT_P): Likewise.
1244 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1245 (TARGET_STRIP_NAME_ENCODING): New.
1246 (ASM_OUTPUT_LABELREF): New.
1247 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1248 (OUTPUT_ADDR_CONST_EXTRA): New.
1249 (PREDICATE_CODES): Update.
1250 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1251 * config/i386/i386.md: Regroup and renumber unspec constants.
1252 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1253 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1254 (tls_global_dynamic, tls_local_dynamic_base): New.
1255 (tls_local_dynamic_once): New.
1256 * config/i386/i386-protos.h: Update.
1257
1258 2002-05-23 Richard Henderson <rth@redhat.com>
1259
1260 * genemit.c (gen_insn): Print file:lineno comment before function.
1261 (main): likewise.
1262 * gensupport.c (struct queue_elem): Add filename member.
1263 (queue_pattern): Initialize it; update all callers.
1264 (process_include): Don't free filename.
1265 (read_md_rtx): Set read_rtx_filename.
1266
1267 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1268
1269 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1270
1271 2002-05-23 Richard Henderson <rth@redhat.com>
1272
1273 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1274
1275 2002-05-23 Richard Henderson <rth@redhat.com>
1276
1277 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1278 commentary from Mark.
1279
1280 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1281
1282 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1283 Use FOR_EACH_BB macros to iterate over basic block chain.
1284 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1285 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1286 Likewise.
1287 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1288 find_unreachable_blocks, create_edge_list, verify_edge_list,
1289 remove_fake_edges, add_noreturn_fake_exit_edges,
1290 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1291 Likewise.
1292 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1293 find_sub_basic_blocks): Likewise.
1294 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1295 Likewise.
1296 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1297 Likewise.
1298 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1299 Likewise.
1300 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1301 commit_edge_insertions, commit_edge_insertions_watch_calls,
1302 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1303 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1304 * conflict.c (conflict_graph_compute): Likewise.
1305 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1306 df_modified_p, df_refs_unlink, df_dump): Likewise.
1307 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1308 * final.c (compute_alignments): Likewise.
1309 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1310 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1311 count_or_remove_death_notes): Likewise.
1312 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1313 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1314 classic_gcse, compute_transp, cprop, compute_pre_data,
1315 compute_transpout, invalidate_nonnull_info,
1316 delete_null_pointer_checks_1, delete_null_pointer_checks,
1317 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1318 compute_store_table, build_store_vectors, store_motion): Likewise.
1319 * global.c (global_conflicts, mark_elimination): Likewise.
1320 * graph.c (print_rtl_graph_with_bb): Likewise.
1321 * haifa-sched.c (sched_init): Likewise.
1322 * ifcvt.c (if_convert): Likewise.
1323 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1324 compute_available, compute_nearerout, compute_rev_insert_delete,
1325 optimize_mode_switching): Likewise.
1326 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1327 * predict.c (estimate_probability, note_prediction_to_br_prob,
1328 propagate_freq, counts_to_freqs, expensive_function_p,
1329 estimate_bb_frequencies): Likewise.
1330 * profile.c (instrument_edges, get_exec_counts,
1331 compute_branch_probabilities, compute_checksum, branch_prob,
1332 find_spanning_tree): Likewise.
1333 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1334 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1335 Likewise.
1336 * regclass.c (scan_one_insn, regclass): Likewise.
1337 * regmove.c (mark_flags_life_zones, regmove_optimize,
1338 record_stack_memrefs): Likewise.
1339 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1340 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1341 * resource.c (find_basic_block): Likewise.
1342 * sched-ebb.c (schedule_ebbs): Likewise.
1343 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1344 find_single_block_region, find_rgns, schedule_insns)
1345 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1346 * ssa-ccp.c (optimize_unexecutable_edges,
1347 ssa_ccp_df_delete_unreachable_insns): Likewise.
1348 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1349 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1350 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1351 compute_coalesced_reg_partition, rename_equivalent_regs,
1352 convert_from_ssa): Likewise.
1353 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1354 process_for_unwind_directive): Likewise.
1355
1356 * df.c (FOR_ALL_BBS): Removed.
1357 * gcse.c (struct null_pointer_info): Type of current_block field
1358 changed.
1359 (struct reg_avail_info): Type of last_bb field changed.
1360 * config/ia64/ia64.c (block_num): Removed.
1361 (need_copy_state): Type changed.
1362 (last_block): New.
1363
1364 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1365
1366 * cppinit.c (mark_named_operators): Split out from init_builtins.
1367 (cpp_finish_options): Call it from here instead.
1368
1369 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1370
1371 * builtin-attrs.def: Update copyright years.
1372 (ATTR_NONNULL): New attribute identifier.
1373 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1374 attribute tree lists.
1375 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1376 format operand.
1377 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1378 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1379 attribute lists. Chain the appropriate nonnull attribute.
1380 * c-format.c (check_format_arg): Remove null format string
1381 warning.
1382 * testsuite/gcc.dg/format/null-1.c: New test.
1383
1384 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1385
1386 * Makefile.in (ADAC): Define.
1387 (SYSLIBS): Define.
1388 (.SUFFIXES): Move before language makefile fragments.
1389 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1390
1391 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1392
1393 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1394 placed in common.
1395
1396 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1397
1398 * cfg.c (dump_flow_info): Print results of
1399 maybe_hot/probably_never_executed predicates.
1400 * toplev.c (open_dump_file): Print function frequency.
1401
1402 2002-05-23 David S. Miller <davem@redhat.com>
1403
1404 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1405 regsets.
1406
1407 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1408
1409 * c-common.c (warn_nonnull): Declare.
1410 (c_common_attribute_table): Add "nonnull" attribute.
1411 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1412 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1413 check_function_arguments_recurse): New functions.
1414 * c-common.h (warn_nonnull): Declare extern.
1415 (check_function_arguments, check_function_arguments_recurse): New
1416 prototypes.
1417 * c-decl.c (c_decode_option): Add -Wnonnull option.
1418 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1419 format checking.
1420 (format_check_context): New structure.
1421 (check_format_info_recurse): Remove recursion and rename to...
1422 (check_format_arg): ...this. Update comment.
1423 (check_format_info): Use check_function_arguments_recurse.
1424 * c-typeck.c (build_function_call): Call check_function_arguments
1425 instead of check_function_format.
1426 * doc/extend.texi: Document "nonnull" attribute.
1427 * doc/invoke.texi: Docuemnt -Wnonnull option.
1428 * testsuite/gcc.dg/nonnull-1.c: New test.
1429 * testsuite/gcc.dg/nonnull-2.c: New test.
1430
1431 2002-05-23 David S. Miller <davem@redhat.com>
1432
1433 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1434 * cfgcleanup.c (cleanup_cfg): If it is set do not
1435 attempt to delete trivially dead insns.
1436 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1437 * toplev.c (rest_of_compilation): Document non-trivial aspect
1438 the RTL before optimize_save_area_alloca is run.
1439
1440 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1441
1442 * c-lex.c (indent_level): Remove.
1443 (cb_file_change, c_lex): Remove indent level handling.
1444 * c-lex.h (indent_level): Remove.
1445 * input.h (struct file_stack): Remove indent_level.
1446 * toplev.c (push_srcloc): Remove indent_level handling.
1447
1448 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1449
1450 PR target/6753
1451 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1452 of x in constraints for clarity.
1453 (sse_mov?fcc split): abort if op2 == op3.
1454 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1455 sse_movsfcc_const0_4): Add earlyclobber.
1456 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1457 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1458 Use Y instead of x in constraints.
1459
1460 2002-05-23 Richard Henderson <rth@redhat.com>
1461
1462 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1463 (C++98 Thread-Local Edits): New subsection.
1464
1465 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1466 (ix86_arch): Set type to enum processor_type.
1467
1468 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1469 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1470
1471 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1472
1473 * configure.in: Fix as version test for binutils 2.12.1 releases
1474 (without dates).
1475 * configure: Rebuilt.
1476
1477 2002-05-23 Richard Henderson <rth@redhat.com>
1478
1479 * config/i386/i386.c (get_pic_label_name): New.
1480 (load_pic_register): Remove.
1481 (output_set_got): New.
1482 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1483 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1484 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1485 (prologue_set_got, prologue_get_pc): Remove.
1486 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1487 (builtin_setjmp_receiver): Use gen_set_got.
1488 * config/i386/i386-protos.h: Update.
1489
1490 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1491
1492 * gcse.c (hash_expr): Do not use alias set for hashing.
1493
1494 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1495
1496 * dbxout.c (dbxout_class_name_qualifiers): New function.
1497 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1498
1499 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1500
1501 * cpperror.c (_cpp_begin_message): No special casing
1502 of CPP_FATAL_LIMIT.
1503 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1504 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1505 * cpplib.c (do_include_common): Use DL_ERROR.
1506 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1507 (DL_ICE): Renumber.
1508 * fix-header.c (read_scan_file): Update.
1509
1510 2002-05-22 Richard Henderson <rth@redhat.com>
1511
1512 * config/i386/i386.c (ix86_expand_call): New function, extracted
1513 from md call patterns. Add pic_offset_table_rtx to
1514 CALL_INSN_FUNCTION_USAGE when needed.
1515 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1516 (call_value_pop, call_value, untyped_call): Likewise.
1517 (call_exp, call_value_exp): Remove.
1518 * config/i386/i386-protos.h: Update.
1519
1520 2002-05-22 Richard Henderson <rth@redhat.com>
1521
1522 * varasm.c (default_section_type_flags): Check for VAR_DECL
1523 before using DECL_THREAD_LOCAL.
1524
1525 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1526
1527 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1528 (STARTFILE_SPEC): Delete PE crt0.o.
1529 * config/rs6000/aix51.h: Same.
1530 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1531 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1532 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1533 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1534 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1535
1536 2002-05-22 Richard Henderson <rth@redhat.com>
1537
1538 * varasm.c (default_section_type_flags): Handle tls data and
1539 default sections.
1540 (default_unique_section): Handle tls sections.
1541
1542 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1543
1544 * configure.in (CROSS): Define NATIVE_CROSS.
1545 * configure: Regenerate.
1546 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1547 (startfile_prefix_spec): New var.
1548 (static_specs): Add startfile_prefix_spec.
1549 (do_spec_2): Split out from..
1550 (do_spec): ..here.
1551 (main): Process startfile_prefix_spec.
1552 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1553 dynamic linker.
1554 (STARTFILE_PREFIX_SPEC): Define.
1555 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1556 absolute paths.
1557
1558 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1559
1560 * cpperror.c: Fix formatting.
1561 * cppexp.c: Likewise.
1562 * cppfiles.c: Likewise.
1563 * cpphash.c: Likewise.
1564 * cpphash.h: Likewise.
1565 * cppinit.c: Likewise.
1566 * cpplex.c: Likewise.
1567 * cpplib.c: Likewise.
1568 * cppmacro.c: Likewise.
1569 * cppmain.c: Likewise.
1570 * cppspec.c: Likewise.
1571
1572 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1573
1574 * combine.c (force_to_mode): Use gen_int_mode.
1575 Don't clear CONST_INT bits outside of mode.
1576
1577 2002-05-22 Richard Henderson <rth@redhat.com>
1578
1579 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1580 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1581
1582 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR c/6643
1585 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1586 if DECL_SIZE_UNIT is INTEGER_CST.
1587
1588 2002-05-22 Richard Henderson <rth@redhat.com>
1589
1590 * flow.c (life_analysis): Delete broken reg_label check.
1591
1592 2002-05-22 Richard Henderson <rth@redhat.com>
1593
1594 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1595 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1596
1597 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1598
1599 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1600 (embed-bb.c): New rule.
1601 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1602 * config/sh/embed_bb.c: Delete.
1603
1604 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1605
1606 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1607
1608 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1609
1610 * config/h8300/h8300.md (*andorqi3): New.
1611
1612 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1613
1614 PR preprocessor/6517
1615 * Makefile.in: Update.
1616 * c-common.c (c_common_post_options): Add preprocessor
1617 errors to the error count.
1618 * c-lang.c (c_post_options): Kill.
1619 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1620 * hooks.h: Add header guards.
1621 * langhooks-def.h: Include hooks.h.
1622 (LANG_HOOKS_POST_OPTIONS): Update.
1623 * langhooks.h (struct lang_hooks): Update post_options.
1624 * toplev.c (parse_options_and_default_flags): Update.
1625 objc:
1626 * objc-lang.c (objc_post_options): Kill.
1627 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1628
1629 2002-05-21 Bruce Korb <bkorb@gnu.org>
1630
1631 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1632 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1633 * fixinc/fixincl.x: regen.
1634
1635 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1636
1637 * cfgbuild.c: Fix formatting.
1638 * cfg.c: Likewise.
1639 * cfgcleanup.c: Likewise.
1640 * cfglayout.c: Likewise.
1641 * cfgloop.c: Likewise.
1642 * cfgrtl.c: Likewise.
1643
1644 2002-05-21 Richard Henderson <rth@redhat.com>
1645
1646 * c-common.h (enum rid): Add RID_THREAD.
1647 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1648 (grokdeclarator): Grok __thread.
1649 * c-parse.in (reswords): Add __thread.
1650 (rid_to_yy): Add RID_THREAD.
1651
1652 * tree.h (DECL_THREAD_LOCAL): New.
1653 (struct tree_decl): Add thread_local_flag.
1654 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1655 * tree.c (staticp): TLS variables are not static.
1656
1657 * target-def.h (TARGET_HAVE_TLS): New.
1658 * target.h (have_tls): New.
1659 * output.h (SECTION_TLS): New.
1660 * varasm.c (assemble_variable): TLS variables can't be common for now.
1661 (default_section_type_flags): Handle .tdata and .tbss.
1662 (default_elf_asm_named_section): Handle SECTION_TLS.
1663 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1664
1665 * flags.h (flag_tls_default): Declare.
1666 * toplev.c (flag_tls_default): Define.
1667 (display_help): Display help for it.
1668 (decode_f_option): Set it.
1669
1670 * doc/extend.texi (Thread-Local): New node describing language-level
1671 thread-local storage.
1672 * doc/invoke.texi (-ftls-model): Document.
1673
1674 * fixinc/inclhack.def (thread_keyword): New.
1675 * fixinc/fixincl.x: Rebuild.
1676
1677 2002-05-21 Jeffrey A Law <law@redhat.com>
1678
1679 * optabs.c (expand_binop): For double-word integer multiplies,
1680 do not compute intermediate results into something that is
1681 not a register (such as a SUBREG or MEM).
1682
1683 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1684 (ix86_sched_reorder): Make sure to initialize scheduling
1685 data even when there's only one insn in the ready queue.
1686
1687 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1688
1689 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1690
1691 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1692
1693 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1694 set_el_t. Transform the hash value into unsigned.
1695 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1696 (transform_3): Add code to process `(A,B)+(D,E)'.
1697
1698 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1699
1700 * reload1.c (do_output_reload): Run delete_output_reload
1701 only if optimizing.
1702
1703 2002-05-21 Roger Sayle <roger@eyesopen.com>
1704
1705 PR middle-end/6600
1706 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1707 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1708 (can_store_by_pieces): ... and here to limit the largest mode used.
1709 Add a comment to document this function.
1710
1711 2002-05-21 Richard Henderson <rth@redhat.com>
1712
1713 * flow.c (life_analysis): Fix test for deleted label.
1714
1715 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1716
1717 * doc/tm.texi: Fix typo.
1718
1719 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1720
1721 * c-common.c (c_common_init): Set options->unsigned_char from
1722 flag_signed_char.
1723 (cb_register_builtins): Define __STRICT_ANSI__ and
1724 __CHAR_UNSIGNED__ here...
1725 * cppinit.c (init_builtins): Not here.
1726 (cpp_create_reader): unsigned_char option defaults to 0, not
1727 !DEFAULT_SIGNED_CHAR.
1728 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1729 and -funsigned-char.
1730
1731 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1732 * cpphash.c (_cpp_init_hashtable): Don't set it.
1733 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1734 directly. Clarify comment.
1735
1736 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1737
1738 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1739 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1740 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1741 BASIC_BLOCK (n_basic_blocks - 1).
1742 * cfganal.c (can_fallthru, flow_call_edges_add,
1743 flow_preorder_transversal_compute): Too.
1744 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1745 find_sub_basic_blocks): Too.
1746 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1747 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1748 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1749 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1750 * combine.c (this_basic_block): Type changed to basic_block.
1751 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1752 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1753 get_last_value, distribute_notes, distribute_links): Too.
1754 * final.c (compute_alignments): Too.
1755 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1756 * function.c (thread_prologue_and_epilogue_insns): Too.
1757 * gcse.c (compute_code_hoist_vbeinout): Too.
1758 * global.c (build_insn_chain): Too.
1759 * ifcvt.c (find_if_block, find_cond_trap): Too.
1760 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1761 * regmove.c (regmove_optimize): Too.
1762 * resource.c (find_basic_block): Too.
1763 * sched-ebb.c (schedule_ebbs): Too.
1764 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1765
1766 2002-05-21 Andreas Jaeger <aj@suse.de>
1767
1768 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1769
1770 2002-05-21 Richard Henderson <rth@redhat.com>
1771
1772 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1773 unspec names, not numbers.
1774
1775 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1776
1777 * doc/sourcebuild.texi: Mention snapshot-README and
1778 snapshot-index.html as needing updating for new front ends.
1779
1780 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1781
1782 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1783 disabling checking, and avoid multiple evaluation of RTX.
1784
1785 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1786
1787 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1788 element cached.
1789
1790 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1791
1792 * profile.c (gen_edge_profiler): Set alias set before the memory is
1793 used.
1794
1795 2002-05-20 David S. Miller <davem@redhat.com>
1796
1797 * cselib.c (max_value_regs): New.
1798 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1799 adding new entries to the REG_VALUES table and we are dealing with
1800 a hard register.
1801 (clear_table): Initialize it.
1802 (cselib_invalidate_regno): Use it to determine which hard
1803 registers to scan when mode is not VOIDmode.
1804
1805 2002-05-20 Duraid Madina <duraid@fl.net.au>
1806
1807 * tradcpp.c (fixup_newlines): Use old-style function header.
1808
1809 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1810
1811 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1812
1813 2002-05-20 H.J. Lu (hjl@gnu.org)
1814
1815 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1816
1817 * config/mips/mips.h (DFMODE_NAN): Defined.
1818 (SFMODE_NAN): Likewise.
1819
1820 2002-05-20 Dale Johannesen <dalej@apple.com>
1821
1822 * combine.c (cant_combine_insn_p): Back out my
1823 previous patch.
1824
1825 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1826
1827 * params.c: Fix formatting.
1828 * params.h: Likewise.
1829 * predict.c: Likewise.
1830 * prefix.c: Likewise.
1831 * print-rtl.c: Likewise.
1832 * print-tree.c: Likewise.
1833 * profile.c: Likewise.
1834
1835 2002-05-20 H.J. Lu (hjl@gnu.org)
1836
1837 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1838
1839 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1840
1841 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1842 switches straight on to the assembler, do not abbreviate them.
1843 * config/arm/elf.h (ASM_SPEC): As above.
1844 * config/arm/semi.h (ASM_SPEC): As above.
1845 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1846 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1847 -mcpu=xscale on to the assembler by default.
1848 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1849
1850 2002-05-20 Richard Henderson <rth@redhat.com>
1851
1852 * cse.c (canon_hash): Reorder do_not_record test. Always
1853 allow pic_offset_table_rtx.
1854
1855 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1856
1857 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1858 (expand_binop): Ditto (3 times).
1859
1860 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1861
1862 * Makefile.in (distclean): Remove QMTest stuff.
1863 (QMTEST_PATH): New variable.
1864 (QMTESTFLAGS): Likewise.
1865 (QMTESTRUNFLAGS): Likewise.
1866 (QMTEST): Likewise.
1867 (QMTEST_GPP_TESTS): Likewise.
1868 (QMTEST_DIR): Likewise.
1869 (QMTEST_DIR/context): New target.
1870 (qmtest-g++): Likeise.
1871 (qmtest-gui): Likewise.
1872 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1873
1874 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1875
1876 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1877 an altivec register if TARGET_ALTIVEC.
1878
1879 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1880 to ALTIVEC_VECTOR_MODE.
1881 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1882 (rs6000_va_arg): Vectors may go in registers if they are not
1883 altivec vectors.
1884
1885 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1886
1887 * protoize.c: Fix formatting.
1888
1889 2002-05-19 Richard Henderson <rth@redhat.com>
1890
1891 * gensupport.c (init_include_reader): Merge into ...
1892 (process_include): ... here. Simplify composite path creation.
1893 Plug memory leaks. Fix file/line number tracking. Do not
1894 process_define_cond_exec. Return void.
1895 (process_rtx): Don't check process_include return value.
1896
1897 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1898
1899 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1900 fields.
1901 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1902 traversing basic block chain.
1903 (create_basic_block_structure, create_basic_block): Declaration changed.
1904 (link_block, unlink_block): Declare.
1905 * cfg.c (entry_exit_blocks): Initialize new fields.
1906 (link_block, unlink_block): New.
1907 (expunge_block_nocompact): Unlink basic block.
1908 (dump_flow_info): Print prev_bb/next_bb fields.
1909 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1910 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1911 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1912 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1913 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1914 (verify_flow_info): Check that list agrees with numbering.
1915
1916 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1917
1918 * c-common.c (preprocessing_asm): New macro.
1919 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1920 doc:
1921 * tm.texi: Update.
1922 config/alpha:
1923 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1924 (CPP_SPEC): Simplify.
1925 (TARGET_CPU_CPP_BUILTINS): Update.
1926 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1927 (CPP_SPEC): Simplify.
1928 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1929 (TARGET_OS_CPP_BUILTINS): Update.
1930 * osf.h (CPP_XFLOAT_SPEC): Kill.
1931 (TARGET_OS_CPP_BUILTINS): Update.
1932 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1933 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1934 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1935 (TARGET_OS_CPP_BUILTINS): Update.
1936
1937 2002-05-19 Richard Henderson <rth@redhat.com>
1938
1939 * varasm.c (default_binds_local_p): Fix typo.
1940
1941 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1942
1943 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1944 CONST_INT operand to the correct mode after adding 1 to it.
1945
1946 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1947
1948 * config.gcc (powerpc-wrs-windiss*): New target.
1949
1950 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1951
1952 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1953 (ashrdi3): Use it.
1954
1955 2002-05-18 Mark Mitchell <mark@codesourcery.com>
1956
1957 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1958 alphasort.
1959 * config.in: Regenerated.
1960 * configure: Regenerated.
1961
1962 2002-05-19 Richard Henderson <rth@redhat.com>
1963
1964 * target-def.h (TARGET_BINDS_LOCAL_P): New.
1965 * target.h (struct gcc_target): Move boolean fields to the end.
1966 Add binds_local_p.
1967 * varasm.c (default_binds_local_p): New.
1968 * output.h: Declare it.
1969
1970 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1971 * config/cris/cris.c (cris_encode_section_info): Likewise.
1972 * config/i386/i386.c (i386_encode_section_info): Likewise.
1973 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1974 * config/sh/sh.c (sh_encode_section_info): Likewise.
1975
1976 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1977 (TARGET_BINDS_LOCAL_P): New.
1978
1979 2002-05-19 Richard Henderson <rth@redhat.com>
1980
1981 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1982 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1983 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1984
1985 * toplev.c (display_help): Kill -a -ax help.
1986
1987 * config/1750a/1750a.h, config/alpha/alpha.h,
1988 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1989 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1990 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1991 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1992
1993 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1994 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1995
1996 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1997 (ix86_output_function_block_profiler): Kill.
1998 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1999 (m68hc11_function_block_profiler): Kill.
2000 * config/m68hc11/m68hc11-protos.h: Update.
2001 * config/m88k/m88k.c (output_block_profiler): Kill.
2002 (output_function_block_profiler): Kill.
2003 * config/m88k/m88k-protos.h: Update.
2004
2005 2002-05-19 Richard Henderson <rth@redhat.com>
2006
2007 * system.h (STRIP_NAME_ENCODING): Poison it.
2008 * output.h (STRIP_NAME_ENCODING): Remove.
2009 (default_strip_name_encoding): Declare.
2010 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2011 * target.h (strip_name_encoding): New.
2012 * varasm.c (default_strip_name_encoding): New.
2013
2014 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2015 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2016 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2017 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2018 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2019 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2020 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2021 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2022 config/v850/v850.h: Use the hook, not the macro.
2023
2024 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2025 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2026 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2027 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2028 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2029 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2030 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2031 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2032 config/v850/v850.c, config/v850/v850.h:
2033 Move STRIP_NAME_ENCODING to out-of-line function and add
2034 TARGET_STRIP_NAME_ENCODING.
2035
2036 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2037 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2038 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2039 make function static.
2040
2041 * xcoffout.c: Include target.h
2042 * Makefile.in (xcoffout.o): Update.
2043
2044 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2045 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2046 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2047 reloc argument unused.
2048 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2049
2050 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2051 STRIP_NAME_ENCODING docs.
2052
2053 2002-05-19 Andreas Jaeger <aj@suse.de>
2054
2055 * gengenrtl.c: Add prototype for excluded_rtx.
2056
2057 * real.h: Add prototype for exact_real_truncate.
2058
2059 2002-05-18 Richard Henderson <rth@redhat.com>
2060
2061 * system.h (ENCODE_SECTION_INFO): Poison it.
2062 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2063 * target.h (encode_section_info): New.
2064 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2065 * hooks.c (hook_tree_int_void): New.
2066 * hooks.h: Declare it.
2067
2068 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2069 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2070 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2071 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2072 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2073 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2074 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2075 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2076 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2077 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2078 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2079 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2080 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2081 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2082 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2083 referencing existing function. Make function static.
2084
2085 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2086 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2087 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2088 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2089 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2090 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2091 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2092 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2093 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2094 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2095 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2096 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2097 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2098 Move ENCODE_SECTION_INFO to out-of-line function and add
2099 TARGET_ENCODE_SECTION_INFO.
2100
2101 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2102 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2103
2104 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2105 from SUBTARGET_*
2106 (switch_to_section): Replace in_rdata case with in_readonly_data.
2107
2108 * config/h8300/h8300.c (h8300_encode_label): Make static.
2109 * config/h8300/h8300-protos.h: Update.
2110
2111 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2112 from rs6000_encode_section_info; make static.
2113 (rs6000_xcoff_encode_section_info): New.
2114
2115 * config/v850/v850.c (v850_encode_data_area): Make static.
2116 * config/v850/v850-protos.h: Update.
2117
2118 * config/vax/vax.c: Include flags.h.
2119 (vms_select_section): Fix typo.
2120
2121 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2122 ENCODE_SECTION_INFO docs.
2123
2124 2002-05-18 Richard Henderson <rth@redhat.com>
2125
2126 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2127 REGISTER_TARGET_PRAGMAS.
2128 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2129
2130 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2131
2132 2002-05-18 Richard Henderson <rth@redhat.com>
2133
2134 * system.h (SELECT_RTX_SECTION): Poison.
2135 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2136 * target.h (select_rtx_section): New.
2137 * varasm.c (output_constant_pool): Use it.
2138 (default_select_rtx_section, default_elf_select_rtx_section): New.
2139 * output.h: Declare them.
2140
2141 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2142 * config/darwin.c (machopic_select_rtx_section): ... here.
2143 * config/darwin-protos.h: Update.
2144
2145 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2146 * config/nextstep.c (machopic_select_rtx_section): ... here.
2147 (nextstep_select_section): Rename variable to avoid macro clash.
2148 * config/nextstep-protos.h: Update.
2149
2150 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2151 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2152 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2153 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2154 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2155 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2156 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2157 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2158 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2159 (SELECT_RTX_SECTION): Remove.
2160
2161 * config/darwin.h, config/elfos.h, config/nextstep.h,
2162 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2163 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2164 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2165 config/sparc/lynx.h, config/xtensa/xtensa.c
2166 (TARGET_ASM_SELECT_RTX_SECTION): New.
2167
2168 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2169 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2170 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2171 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2172 (ia64_aix_select_rtx_section): New.
2173 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2174 redefining.
2175 * config/mips/mips.c (mips_select_rtx_section): Make static.
2176 Support ELF SHF_MERGE features.
2177 * config/mips/mips-protos.h: Update.
2178 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2179 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2180 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2181 make static, fall back to default_elf_select_rtx_section.
2182 * config/rs6000/rs6000-protos.h: Update.
2183 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2184 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2185 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2186 * config/romp/romp.c (romp_select_rtx_section): New.
2187 * config/s390/s390.c (s390_select_rtx_section): New.
2188 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2189 declarations before target macro definition.
2190 (xtensa_emit_call): Use static buffer.
2191 (xtensa_select_rtx_section): New.
2192 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2193 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2194 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2195
2196 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2197 SELECT_RTX_SECTION docs.
2198
2199 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2200
2201 * i386.md (movsi/movdi): Fix template.
2202 (sse2 patterns): Set attributes consistently.
2203
2204 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2205
2206 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2207
2208 * optabs.c (complex_part_zero_p): New.
2209 * (expand_cmplxdiv_straight): Use it.
2210 * (expand_cmplxdiv_wide): Ditto.
2211 * (expand_binop): Ditto.
2212
2213 2002-05-18 Richard Henderson <rth@redhat.com>
2214
2215 * final.c (HAVE_READONLY_DATA_SECTION): New.
2216 (shorten_branches): Use it instead of ifdefs.
2217 * varasm.c (enum in_section): Add in_readonly_data.
2218 (text_section, data_section): Tidy.
2219 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2220
2221 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2222 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2223 (READONLY_DATA_SECTION): Don't undef.
2224
2225 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2226 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2227 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2228
2229 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2230 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2231 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2232 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2233
2234 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2235 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2236 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2237 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2238 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2239 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2240 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2241 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2242 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2243
2244 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2245 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2246 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2247 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2248 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2249 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2250
2251 * config/elfos.h, config/netware.h, config/svr3.h,
2252 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2253 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2254 config/h8300/h8300.h, config/i386/i386-interix.h,
2255 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2256 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2257
2258 * config/elfos.h, config/netware.h, config/svr3.h,
2259 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2260 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2261 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2262 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2263
2264 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2265 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2266 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2267 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2268 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2269 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2270 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2271 config/rs6000/sysv4.h, config/v850/v850.h
2272 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2273 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2274
2275 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2276 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2277 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2278 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2279 * config/alpha/alpha.c (alpha_start_function): Likewise.
2280 (alpha_write_linkage): Likewise.
2281 * config/m32r/m32r.c (m32r_select_section): Likewise.
2282 * config/m88k/m88k.c (m88k_select_section): Likewise.
2283 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2284 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2285 (rs6000_elf_select_section): Likewise.
2286 * config/v850/v850.c (v850_select_section): Likewise.
2287
2288 * config/1750a/1750a.h, config/i860/sysv3.h
2289 (READONLY_DATA_SECTION_ASM_OP): New.
2290 READONLY_DATA_SECTION_ASM_OP.
2291 * config/i386/interix.c, config/i386/winnt.c
2292 (i386_pe_unique_section): Always use .rdata prefix.
2293 * config/pa/som.h (readonly_data): Always switch to read-only section.
2294 (READONLY_DATA_SECTION): Predicate on flag_pic.
2295 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2296 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2297 (READONLY_DATA_SECTION): Update.
2298
2299 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2300
2301 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2302 is used without -Wformat.
2303 * c-common.h (warn_format_zero_length): Declare extern.
2304 * c-decl.c (warn_options): Add "format-zero-length".
2305 * c-format.c (warn_format_zero_length): Declare.
2306 (set_Wformat): Set warn_format_zero_length for -Wformat.
2307 (check_format_info): Only warn about zero-length formats if
2308 warn_format_zero_length is true. Include the format type
2309 name in the warning message.
2310 * doc/invoke.texi: Document -Wformat-zero-length.
2311 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2312
2313 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2314
2315 * timevar.c: Fix formatting.
2316 * tlink.c: Likewise.
2317 * toplev.c: Likewise.
2318 * tree-dump.c: Likewise.
2319 * tree-inline.c: Likewise.
2320
2321 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2322
2323 * cppinit.c (cpp_post_options): If preprocessed, turn off
2324 traditional. If traditional, turn off column numbers.
2325 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2326 * cpptrad.c (handle_newline): Update line_base.
2327 (skip_comment): Handle -Wcomment.
2328
2329 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2330
2331 * cppinit.c (struct builtin): Remove unused fields.
2332 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2333 (operator_array): New - was second half of builtin_array.
2334 (init_builtins): Simplify loop over builtin_array/operator_array.
2335
2336 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2337
2338 * defaults.h (UNIQUE_SECTION): Remove.
2339 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2340
2341 2002-05-17 Richard Henderson <rth@redhat.com>
2342
2343 * expr.c (init_expr_once): Don't use start/end_sequence.
2344 Use rtx_alloc instead of emit_insn.
2345 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2346 (lang_independent_init): ... not here.
2347
2348 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2349
2350 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2351
2352 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2353
2354 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2355 for fixed registers, possibly used for global register variables.
2356 (initial_elimination_offset, avr_output_function_prologue,
2357 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2358
2359 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2360
2361 * Makefile.in: Update for cpptrad.c.
2362 * cpphash.h (struct cpp_buffer): New members for buffer
2363 overlays.
2364 (struct cpp_reader): New members for traditional output.
2365 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2366 * cppinit.c (cpp_create_reader): Set trad_line.
2367 (cpp_destroy): Free trad_out_base if used.
2368 (cpp_read_main_file): Overlay an empty buffer if traditional.
2369 (cpp_finish_options): Don't do builtins.
2370 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2371 (cpp_handle_option): Handle it.
2372 * cpplex.c (continue_after_nul): New.
2373 (_cpp_lex_direct): Use handle_nul.
2374 * cpplib.h (struct cpp_options): New traditional option.
2375 * cpptrad.c: New file.
2376
2377 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2378
2379 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2380 and set the options flag.
2381 * cppinit.c (lang_flags): Remove objc.
2382 (lang_defaults): Remove OBJC and OBJCXX.
2383 (set_lang): Update.
2384 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2385 (cpp_handle_option): Remove -+ and -lang-objc++.
2386 For ObjC, just set a flag.
2387 (print_help): Update.
2388 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2389
2390 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2391
2392 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2393 bootstrap with -mips3.
2394
2395 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2396
2397 * final.c: Fix formatting.
2398 * fix-header.c: Likewise.
2399 * flow.c: Likewise.
2400 * fold-const.c: Likewise.
2401 * function.c: Likewise.
2402
2403 2002-05-17 David S. Miller <davem@redhat.com>
2404
2405 PR c/6689, PR optimization/6615
2406 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2407 and make it a pointer to rtx. Update comments.
2408 (update_equiv_regs): When scanning for equivalences, record
2409 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2410 it while making the equiv replacements.
2411
2412 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2413
2414 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2415
2416 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2417
2418 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2419 when encoding visibility into SYMBOL_REF_FLAG.
2420
2421 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2422
2423 * expr.c (force_operand): Fix reversed move.
2424
2425 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2426
2427 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2428 that can be ignored.
2429
2430 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2431
2432 * doc/install.texi (Final install): Recommend to install into a
2433 "clean" target directory.
2434
2435 2002-05-17 Richard Henderson <rth@redhat.com>
2436
2437 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2438 for code blocks. Tidy whitespace.
2439
2440 2002-05-17 Richard Henderson <rth@redhat.com>
2441
2442 * hooks.c (hook_tree_bool_false): New.
2443 * hooks.h: Declare it.
2444 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2445 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2446 * target.h (select_section, unique_section): New.
2447 (in_small_data_p): New.
2448 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2449 (variable_section, output_constant_def_contents): Likewise.
2450 (default_select_section, default_unique_section): New.
2451 (categorize_decl_for_section, default_elf_select_section): New.
2452 * output.h: Declare them.
2453
2454 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2455 (TARGET_ASM_SELECT_SECTION): New.
2456 (SELECT_SECTION): Move ...
2457 * config/darwin.c (machopic_select_section): ... here.
2458 * config/darwin-protos.h: Update.
2459
2460 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2461 (SELECT_SECTION): Move ...
2462 * config/nextstep.c (nextstep_select_section): ... here.
2463 * config/nextstep-protos.h: Update.
2464
2465 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2466 (TARGET_ASM_SELECT_SECTION): New.
2467 * config/svr3.h (SELECT_SECTION): Remove.
2468
2469 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2470 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2471 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2472 (alpha_encode_section_info): Use it.
2473 * config/alpha/alpha-protos.h: Update.
2474 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2475 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2476 (TARGET_ASM_SELECT_SECTION): New.
2477 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2478
2479 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2480 (TARGET_ASM_UNIQUE_SECTION): New.
2481
2482 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2483 (avr_unique_section): Rename from unique_section; make static.
2484 * config/avr/avr-protos.h: Update.
2485 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2486
2487 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2488
2489 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2490 (TARGET_ASM_UNIQUE_SECTION): New.
2491 * config/i386/i386-interix.h: Likewise.
2492 * config/i386/win32.h: Likewise.
2493 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2494 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2495 * config/i386/sco5.h (SELECT_SECTION): Remove.
2496 (TARGET_ASM_SELECT_SECTION): New.
2497 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2498
2499 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2500 instead of SELECT_SECTION.
2501 * config/m68k/dpx2.h: Likewise.
2502 * config/rs6000/lynx.h: Likewise.
2503
2504 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2505 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2506 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2507 (ia64_in_small_data_p): New.
2508 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2509 (ia64_aix_select_section, ia64_aix_unique_section): New.
2510 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2511 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2512
2513 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2514 (TARGET_ASM_SELECT_SECTION): New.
2515 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2516 * config/m32r/m32r-protos.h: Update.
2517
2518 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2519 (SELECT_SECTION): Move ...
2520 * config/m88k/m88k.c (m88k_select_section): ... here.
2521
2522 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2523 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2524 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2525 (mcore_unique_section): Make static.
2526 * config/mcore/mcore-protos.h: Update.
2527
2528 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2529 (TARGET_ASM_UNIQUE_SECTION): New.
2530 * config/mips/elf64.h: Likewise.
2531 * config/mips/iris6gld.h: Likewise.
2532 * config/mips/linux.h: Likewise.
2533 * config/mips/mips-protos.h: Update.
2534 * config/mips/mips.c (mips_select_section): Add align argument.
2535 * config/mips/mips.h (SELECT_SECTION): Remove.
2536 (TARGET_ASM_SELECT_SECTION): New.
2537
2538 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2539 * config/mmix/mmix.c (mmix_select_section): Remove.
2540 (mmix_unique_section): Remove.
2541 * config/mmix/mmix-protos.h: Update.
2542
2543 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2544 (SELECT_SECTION): Move ...
2545 * config/pa/pa.c (pa_select_section): ... here.
2546 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2547
2548 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2549 from rs6000_select_section and make static.
2550 (rs6000_elf_unique_section): Similarly.
2551 (rs6000_xcoff_select_section): From xcoff.h.
2552 (rs6000_xcoff_unique_section): Likewise.
2553 * config/rs6000/rs6000-protos.h: Update.
2554 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2555 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2556 * config/rs6000/xcoff.h: Likewise.
2557
2558 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2559 (SELECT_SECTION): Move ...
2560 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2561
2562 * config/v850/v850.h (SELECT_SECTION): Move ...
2563 * config/v850/v850.c (v850_select_section): ... here.
2564 (TARGET_ASM_SELECT_SECTION): New.
2565
2566 * config/vax/vms.h (SELECT_SECTION): Move ...
2567 * config/vax/vax.c (vms_select_section): ... here.
2568 (TARGET_ASM_SELECT_SECTION): New.
2569
2570 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2571 for the target hooks.
2572
2573 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2574
2575 * config/arm/arm.c (emit_multi_reg_push): Do not set
2576 RTX_FRAME_RELATED_P on the SEQUENCE.
2577
2578 2002-05-16 Richard Henderson <rth@redhat.com>
2579
2580 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2581 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2582
2583 2002-05-16 Richard Henderson <rth@redhat.com>
2584
2585 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2586
2587 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2588
2589 2002-05-16 Richard Henderson <rth@redhat.com>
2590
2591 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2592 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2593 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2594 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2595 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2596 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2597 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2598 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2599 Revert "Basic block renumbering removal", and two followup patches.
2600
2601 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2602
2603 * lcm.c (optimize_mode_switching): Revert previous change.
2604
2605 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2606
2607 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2608 with only extant block numbers.
2609
2610 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2611
2612 * lcm.c (optimize_mode_switching): Fix typo.
2613
2614 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2615
2616 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2617
2618 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2619
2620 * doc/install.texi (Configuration): Document PWDCMD.
2621
2622 2002-05-16 Dale Johannesen <dalej@apple.com>
2623
2624 * combine.c (cant_combine_insn_p): Reenable combinations
2625 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2626
2627 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2628
2629 * c-common.c (cb_register_builtins): Handle more built-ins
2630 here rather than in gcc.c specs.
2631 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2632 (cpp_options): Pass -O flags even when only preprocessing.
2633 * toplev.c (set_fast_math_flags): New prototype.
2634 (fast_math_flags_set_p): New.
2635 (set_no_fast_math_flags): Remove.
2636 (decode_f_option): Update.
2637 * toplev.h (set_fast_math_flags): Update.
2638 (fast_math_flags_set_p): New.
2639 (set_no_fast_math_flags): Remove.
2640 config:
2641 * c4x/c4x.c (c4x_override_options): Update.
2642
2643 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2644
2645 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2646 Default-define here.
2647 (builtin_define_with_value): Can now wrap the expansion in
2648 quotation marks if such is wanted.
2649 (cb_register_builtins): Update calls to builtin_define_with_value.
2650 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2651 here.
2652 (c_common_init): Set options->stdc_0_in_system_headers.
2653 * c-lex.h: Update prototype of builtin_define_with_value.
2654 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2655 and REGISTER_PREFIX.
2656
2657 * cppinit.c (VERS, ULP, C, X): Kill.
2658 (builtin_array): Remove entries for __VERSION__,
2659 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2660 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2661 a constant.
2662 (init_builtins): Kill off a bunch of now-dead code.
2663 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2664 -fno-leading-underscore.
2665 (cpp_handle_option): Remove code to set user_label_prefix.
2666 (cpp_post_options): Likewise.
2667
2668 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2669 (stdc_0_in_system_headers): New.
2670 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2671 stdc_0_in_system_headers) too to decide the value of __STDC__.
2672
2673 * tradcpp.c (user_label_prefix): Kill.
2674 (main): Remove code handling -f(no-)leading-underscore.
2675 (initialize_builtins): Don't define __REGISTER_PREFIX__
2676 or __USER_LABEL_PREFIX__.
2677 (install_value): Wrap compound statement in dummy loop so the
2678 macro works properly in an if statement.
2679
2680
2681 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2682
2683 * loop.h (struct loop_info): Add member has_prefetch.
2684 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2685 (prescan_loop): Initialize has_prefetch.
2686 (struct prefetch_info): Change prefetch_in_loop and
2687 prefetch_before_loop from bit fields to ints.
2688 (emit_prefetch_instructions): Several small fixes.
2689 (check_dbra_loop): Don't reverse loop that uses prefetch.
2690
2691 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2692
2693 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2694 * configure.in: Likewise.
2695 * fixinc/check.tpl: Likewise.
2696 * fixinc/fixinc.dgux: Likewise.
2697 * fixinc/fixinc.svr4: Likewise.
2698 * fixinc/fixinc.winnt: Likewise.
2699 * fixinc/fixincl.sh: Likewise.
2700 * fixproto: Likewise.
2701 * configure: Regenerate.
2702
2703 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2704
2705 Basic block renumbering removal:
2706 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2707 added prev_bb and next_bb fields.
2708 (n_basic_blocks): Renamed to num_basic_blocks.
2709 (last_basic_block): New, index of last basic block.
2710 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2711 traversing basic block chain.
2712 (BLOCK_NUM): index -> sindex.
2713 (create_basic_block_structure, create_basic_block): Declaration changed.
2714 (debug_num2bb): Declare.
2715 (expunge_block_nocompact): Declaration removed.
2716 (link_block, unlink_block, compact_blocks): Declare.
2717 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2718 * cfg.c (entry_exit_blocks): Initialize new fields.
2719 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2720 redirect_edge_pred, dump_flow_info, dump_edge_info,
2721 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2722 free_aux_for_edges): Modified.
2723 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2724 (expunge_block_nocompact): Removed.
2725 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2726 find_unreachable_blocks, create_edge_list, print_edge_list,
2727 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2728 remove_fake_edges, flow_reverse_top_sort_order_compute,
2729 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2730 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2731 flow_dfs_compute_reverse_execute): Modified.
2732 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2733 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2734 Modified.
2735 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2736 merge_blocks_move_predecessor_nojumps,
2737 merge_blocks_move_successor_nojumps, merge_blocks,
2738 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2739 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2740 * cfglayout.c (skip_insns_after_block, label_for_bb,
2741 record_effective_endpoints, scope_to_insns_finalize,
2742 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2743 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2744 cfg_layout_duplicate_bb): Modified.
2745 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2746 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2747 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2748 flow_loops_find, flow_loop_outside_edge_p): Modified.
2749 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2750 flow_delete_block, compute_bb_for_insn, split_block,
2751 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2752 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2753 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2754 commit_edge_insertions, commit_edge_insertions_watch_calls,
2755 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2756 purge_all_dead_edges): Modified.
2757 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2758 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2759 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2760 Modified.
2761 * conflict.c (conflict_graph_compute): Modified.
2762 * df.c (FOR_ALL_BBS): Removed.
2763 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2764 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2765 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2766 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2767 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2768 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2769 * final.c (compute_alignments, final_scan_insn): Modified.
2770 * flow.c (verify_local_live_at_start, update_life_info,
2771 update_life_info_in_dirty_blocks, free_basic_block_vars,
2772 delete_noop_moves, calculate_global_regs_live,
2773 initialize_uninitialized_subregs, allocate_bb_life_data,
2774 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2775 mark_used_reg, count_or_remove_death_notes): Modified.
2776 * function.c (thread_prologue_and_epilogue_insns): Modified.
2777 * gcse.c (struct null_pointer_info): Change typo of current_block
2778 to basic_block.
2779 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2780 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2781 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2782 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2783 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2784 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2785 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2786 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2787 pre_delete, one_pre_gcse_pass, compute_transpout,
2788 invalidate_nonnull_info, delete_null_pointer_checks_1,
2789 free_code_hoist_mem, compute_code_hoist_vbeinout,
2790 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2791 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2792 compute_store_table, build_store_vectors, insert_insn_start_bb,
2793 insert_store, replace_store_insn, free_store_memory, store_motion):
2794 Modified.
2795 * global.c (global_alloc, global_conflicts, mark_elimination,
2796 build_insn_chain): Modified.
2797 * graph.c (print_rtl_graph_with_bb): Modified.
2798 * haifa-sched.c (sched_init): Modified.
2799 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2800 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2801 if_convert): Modified.
2802 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2803 compute_insert_delete, pre_edge_lcm, compute_available,
2804 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2805 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2806 Modified.
2807 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2808 * loop.c (loop_dump_aux): Modified.
2809 * predict.c (combine_predictions_for_insn, estimate_probability,
2810 last_basic_block_p, process_note_prediction, process_note_predictions,
2811 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2812 expensive_function_p, estimate_bb_frequencies,
2813 compute_function_frequency): Modified.
2814 * print-rtl.c (print_rtx): Modified.
2815 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2816 get_exec_counts, compute_branch_probabilities, compute_checksum,
2817 branch_prob, find_spanning_tree): Modified.
2818 * recog.c (split_all_insns, peephole2_optimize): Modified.
2819 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2820 convert_regs_1, convert_regs_2, convert_regs): Modified.
2821 * regclass.c (scan_one_insn, regclass): Modified.
2822 * regmove.c (mark_flags_life_zones, regmove_optimize,
2823 combine_stack_adjustments): Modified.
2824 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2825 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2826 * reorg.c (dbr_schedule): Modified.
2827 * resource.c (find_basic_block, init_resource_info): Modified.
2828 * sbitmap.c (sbitmap_intersection_of_succs,
2829 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2830 sbitmap_union_of_preds): Modified.
2831 * sched-deps.c (init_dependency_caches): Modified.
2832 * sched-ebb.c (schedule_ebbs): Modified.
2833 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2834 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2835 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2836 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2837 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2838 ssa_const_prop): Modified.
2839 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2840 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2841 * ssa.c (remove_phi_alternative, find_evaluations,
2842 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2843 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2844 make_regs_equivalent_over_bad_edges,
2845 make_equivalent_phi_alternatives_equival,
2846 compute_conservative_reg_partition,
2847 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2848 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2849 Modified.
2850
2851 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2852
2853 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2854
2855 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2856
2857 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2858 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2859 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2860 calling CONSTANT_POOL_ADDRESS_P.
2861 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2862 to decide whether to define __arm__ or __thumb.
2863 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2864 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2865
2866 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2867
2868 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2869 (CPP_SPEC): Update.
2870 (TARGET_CPU_CPP_BUILTINS): New.
2871
2872 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2873
2874 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2875 * cppmacro.c (cpp_macro): Remove.
2876 (enter_macro_context, replace_args, warn_of_redefinition,
2877 _cpp_create_definition, cpp_macro_definition): Update.
2878
2879 2002-05-16 Jason Merrill <jason@redhat.com>
2880
2881 * config/mips/mips.c (mips_output_external): Don't do sdata
2882 optimization for a variable with DECL_COMDAT set.
2883
2884 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2885
2886 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2887 Cleanups for accepting modifiers on pointers.
2888 Fix predicate typos.
2889 Allow long pointers as well as int pointers.
2890
2891 2002-05-15 Richard Henderson <rth@redhat.com>
2892
2893 * varasm.c (merge_weak): Remove special case for extern and common.
2894
2895 2002-05-15 Matt Hiller <hiller@redhat.com>
2896
2897 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2898 XFAILing.
2899 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2900 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2901 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2902 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2903 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2904 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2905
2906 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2907
2908 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2909
2910 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2911
2912 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2913 ("altivec_mfvscr"): Read from VSCR.
2914
2915 Add vscr sets for the following insns: altivec_vctuxs,
2916 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2917 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2918 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2919 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2920 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2921 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2922 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2923 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2924 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2925 altivec_vsum2sws, altivec_vsumsws.
2926
2927 * config/rs6000/rs6000.h: Add VSCR fixed register.
2928 (CALL_REALLY_USED_REGISTERS): Add vscr.
2929 (CALL_USED_REGISTERS): Same.
2930 (FIXED_REGISTERS): Same.
2931 (REG_ALLOC_ORDER): Same.
2932 (reg_class): Add VSCR_REGS.
2933 (REG_CLASS_NAMES): Same.
2934 (REG_CLASS_CONTENTS): Same.
2935 (VSCR_REGNO): New.
2936 (REGISTER_NAMES): Add vscr.
2937 (DEBUG_REGISTER_NAMES): Same.
2938 (ADDITIONAL_REGISTER_NAMES): Same.
2939 (FIRST_PSEUDO_REGISTER): Increment.
2940 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2941
2942 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2943
2944 * fold-const.c (fold): Fix a typo.
2945
2946 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2947
2948 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2949 comparison against the highest or lowest integer value before
2950 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2951 transformation and that of an unsigned comparison against 0
2952 right after.
2953
2954 2002-05-15 Richard Henderson <rth@redhat.com>
2955
2956 * varasm.c (merge_weak): Error for any weakening after definition.
2957 Adjust weakening after use warning to catch more cases.
2958 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2959 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2960
2961 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2962
2963 * invoke.texi (-malign-double): Re-add lost warning.
2964
2965 * i386-protos.h (x86_output_mi_thunk): Declare.
2966 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2967 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2968
2969 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2970 when flag_asynchronous_unwind_tables is set.
2971
2972 * flags.h (flag_reorder_functions): Declare.
2973 * function.c (prepare_function_start): Initialize frequnecy.
2974 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2975 * Makefile.in (predict.o): Add dependency on target.h and params.h
2976 * defaults.h (HOT_TEXT_SECTION_NAME,
2977 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2978 * predict.c (choose_function_section): New function.
2979 (estimate_bb_frequencies): Use it.
2980 * toplev.c (flag_reorder_functions): New global variable.
2981 (lang_independent_options): New.
2982 (parse_options_and_default_flags): Set.
2983 * varasm.c (assemble_start_function): Bypass functdion alignment
2984 for never executed functions.
2985 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2986 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2987 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2988 Document.
2989
2990 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
2991
2992 * predict.c: Inlude profile.h
2993 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2994 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2995 Use the information about maximal counter in the program.
2996
2997 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
2998
2999 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3000 probably_never_executed_bb_p): New functions.
3001 * cfgcleanup.c (outgoing_edges_match): Use them.
3002 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3003 (maybe_hot_bb_p, probably_cold_bb_p,
3004 probably_never_executed_bb_p): New functions.
3005
3006 * function.h (function): Add new field function_frequency.
3007 * predict.c (compute_function_frequency): New function.
3008 (estimate_probability): Call it.
3009
3010 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3011
3012 PR optimization/5172, optimization/5200
3013 * gcse.c (gcse_main): Disable store_motion.
3014
3015 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3016
3017 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3018 (c_common_nodes_and_builtins): Use it.
3019 (builtin_define_with_value): New function.
3020 (cb_register_builtins): Define __SIZE_TYPE__,
3021 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3022 using builtin_define_with_value. Use consistent notation when
3023 defining __GXX_WEAK__.
3024 (WCHAR_TYPE_SIZE): Don't redefine.
3025 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3026
3027 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3028 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3029 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3030 * tradcpp.c (initialize_builtins): Likewise.
3031 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3032
3033 * c-lex.h (builtin_define_with_value): Prototype.
3034 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3035 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3036 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3037
3038 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3039 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3040 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3041 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3042 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3043 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3044 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3045 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3046 to __SIZE_TYPE__ etc from all spec strings. When this makes
3047 extra specs empty, delete them.
3048
3049 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3050
3051 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3052 for PA8000 or generating dwarf2 call frame information.
3053 (output_call): Remove DO_FRAME_NOTES check from return pointer
3054 optimization.
3055 (following_call): Return 0 when scheduling for PA8000 or generating
3056 dwarf2 call frame information. Revise comment.
3057
3058 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3059
3060 config/alpha:
3061 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3062 and __IEEE_FP_INEXACT as appropriate.
3063 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3064 (CPP_SPEC): Remove ieee defines.
3065 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3066
3067 2002-05-14 Richard Henderson <rth@redhat.com>
3068
3069 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3070 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3071
3072 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3073
3074 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3075 (CPP_SPEC): Update.
3076 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3077 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3078 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3079 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3080 (EXTRA_SPECS): Update.
3081 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3082 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3083 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3084 define TARGET_OS_CPP_BUILTINS if necessary.
3085
3086 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3087
3088 * gcc.c (cpp_options): Must pass -m* and -f* options
3089 to the front end even when only preprocessing.
3090 (cc1_options): Remove redundant -lang-c.
3091 * tradcpp.c (main): Ignore -m options.
3092 objc:
3093 * lang-specs.h: Similarly.
3094
3095 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3096
3097 * genautomata.c (transform_3): Add code for transformation
3098 `(A,B,...)+C -> A+C,B,...'.
3099
3100 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3101
3102 * final.c (end_final): Do not output profile_arcs constructor, when
3103 no functions are instrumented.
3104
3105 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3106
3107 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3108
3109 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3110
3111 * doc/install.texi: Remove special markup originally required for
3112 HTML generation with texi2html.
3113
3114 2002-05-14 Andreas Schwab <schwab@suse.de>
3115
3116 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3117 SELECT_SECTION.
3118 (UNIQUE_SECTION): Define to get small data correctly.
3119
3120 * varasm.c (resolve_unique_section): Add third parameter
3121 flag_function_or_data_sections and use it instead of
3122 flag_function_sections.
3123 (assemble_start_function): Pass flag_function_sections.
3124 (asm_emit_uninitialised): Pass flag_data_sections.
3125 (assemble_variable): Likewise.
3126
3127 2002-05-14 Richard Henderson <rth@redhat.com>
3128
3129 * config/i386/i386.md: Use define_constants for unspec numbers.
3130 * config/i386/i386.c: Likewise.
3131
3132 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3133
3134 * doc/contrib.texi: Update my entry.
3135
3136 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3137
3138 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3139 * fixinc/fixincl.x: Regenerated.
3140 * fixinc/tests/base/math.h: Update.
3141 * fixinc/tests/base/testing.h: Likewise.
3142
3143 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3144
3145 * genattr.c (gen_attr): Don't emit a comma after the last
3146 enumerator.
3147
3148 2002-05-13 Richard Henderson <rth@redhat.com>
3149
3150 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3151 by non-local gotos.
3152 * recog.c (peephole2_optimize): Likewise.
3153
3154 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3155
3156 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3157 input to O_BINARY.
3158
3159 2002-05-13 Jeffrey A Law (law@redhat.com)
3160
3161 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3162 Update prototype and callers.
3163 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3164 the mem_set_list which reference the stack pointer, as do
3165 calls to constant functions as they may clobber outgoing
3166 argument space.
3167
3168 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3169
3170 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3171 (ia32_multipass_dfa_lookahead): New function.
3172
3173 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3174
3175 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3176 (translate_options): Remove 'V'.
3177 (process_command): Similarly.
3178 doc:
3179 * invoke.texi: Remove documentation of 'V'.
3180
3181 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3182
3183 * config/s390/linux.h: Revert 2002-04-22 changes.
3184
3185 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3186
3187 * config/fr30/fr30.md: Only allow splits of immediate loads
3188 if the destination is a register.
3189
3190 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3191
3192 * Makefile.in (c-common.o, cppinit.o): Update.
3193 * c-common.c: Include except.h.
3194 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3195 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3196 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3197 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3198 CPP_PREDEFINES): Handle here.
3199 config:
3200 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3201 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3202 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3203 TARGET_OS_CPP_BUILTINS.
3204 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3205 (CPP_SPEC, EXTRA_SPECS): Update.
3206 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3207 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3208 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3209 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3210 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3211 doc:
3212 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3213 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3214
3215 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3216
3217 * emit-rtl.c (global_rtl): Update comment.
3218 (const_double_htab, const_double_htab_hash,
3219 const_double_htab_hash, lookup_const_double): New.
3220 (const_int_htab_hash, const_int_htab_eq): Remove const
3221 qualifiers, which cause tons of warnings with RTL checking on.
3222 (gen_rtx_CONST_DOUBLE): Deleted.
3223 (const_double_from_real_value): New function - bears some
3224 resemblance to the former immed_real_const_1.
3225 (immed_double_const): Moved here from varasm.c and
3226 simplified.
3227 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3228 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3229 (gen_rtx): Use immed_double_const.
3230 (init_emit_once): Initialize the const_double_htab. Use
3231 REAL_VALUE_FROM_INT where possible. Can now use
3232 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3233 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3234 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3235 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3236 (init_varasm_status, mark_varasm_status): Don't touch
3237 x_const_double_chain.
3238
3239 * output.h: Delete prototype for clear_const_double_mem.
3240 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3241 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3242 const_double_from_real_value, not immed_real_const_1, and use
3243 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3244 CONST_DOUBLE_ATOF.
3245 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3246 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3247 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3248 (gen_rtx_REG): Second arg is unsigned.
3249
3250 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3251 (excluded_rtx): New, return true for CONST_DOUBLE.
3252 (genmacro): Write nothing for excluded codes.
3253 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3254 * expr.c (expand_expr): Likewise.
3255 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3256 CONST_DOUBLE_CHAIN.
3257 * toplev.c (rest_of_compilation): Don't call
3258 clear_const_double_mem.
3259
3260 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3261 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3262 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3263 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3264 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3265 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3266 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3267 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3268
3269 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3270
3271 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3272
3273 2002-05-12 Tom Tromey <tromey@redhat.com>
3274
3275 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3276
3277 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3278
3279 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3280 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3281 * gensupport.h: Prototype new routines.
3282 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3283 use of printf.
3284 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3285 (next_comma_elt): Use scan_comma_elt.
3286
3287 * config/i386/i386.md: Use new attribute notation to break up
3288 long lines in define_attr forms.
3289
3290 2002-05-12 Richard Henderson <rth@redhat.com>
3291
3292 * expr.c (compress_float_constant): New.
3293 (emit_move_insn): Use it.
3294 (float_extend_from_mem): New.
3295 (init_expr_once): Initialize it.
3296 * real.c (exact_real_truncate): New.
3297
3298 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3299 dropped into memory; penalize for size.
3300 (RTX_COSTS): FLOAT_EXTEND is free.
3301 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3302 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3303
3304 2002-05-12 Richard Henderson <rth@redhat.com>
3305
3306 * profile.h (profile_info): Add missing extern to declaration.
3307 * profile.c (profile_info): Define it.
3308
3309 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3310
3311 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3312 used for DImode and TImode.
3313
3314 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3315
3316 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3317 fake a newline.
3318
3319 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3320
3321 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3322 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3323 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3324 (rs6000_override_options): Handle -m(no-)longcall.
3325 (init_cumulative_args, output_mi_thunk): Check for both
3326 longcall and shortcall attributes on the function.
3327 (rs6000_attribute_table): Add "shortcall".
3328 (rs6000_handle_longcall_attribute): Update comment.
3329 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3330 altivec_expand_ternop_builtin): Add default clauses to switches
3331 to silence warnings.
3332
3333 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3334 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3335 (TARGET_OPTIONS): Add longcall and no-longcall.
3336
3337 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3338 call_value_nonlocal_sysv): Split by alternatives. One pair
3339 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3340 the call cookie. The other pair accepts only LR/CTR and has
3341 no restriction.
3342
3343 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3344 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3345 tmake_file.
3346 * config/rs6000/rs6000-c.c: New file.
3347 * config/rs6000/t-rs6000-c-rule: New file.
3348 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3349 Prototype rs6000_pragma_longcall.
3350
3351 * doc/extend.texi: Document shortcall attribute.
3352 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3353
3354 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3355
3356 * reorg.c (dbr_schedule): Remove unnecessary test.
3357
3358 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3359
3360 * i386.md (testsi to testqi spliters): New.
3361
3362 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3363
3364 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3365
3366 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3367
3368 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3369 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3370 that can be made fallthru.
3371
3372 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3373
3374 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3375 (cfg_layout_initialize): Use it.
3376
3377 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3378
3379 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3380 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3381 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3382
3383 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3384
3385 * dbxout.c: Fix formatting.
3386 * dependence.c: Likewise.
3387 * df.c: Likewise.
3388 * diagnostic.c: Likewise.
3389 * doloop.c: Likewise.
3390 * dominance.c: Likewise.
3391 * doschk.c: Likewise.
3392 * dwarf2asm.c: Likewise.
3393 * dwarf2out.c: Likewise.
3394 * dwarfout.c: Likewise.
3395
3396 2002-05-10 Richard Henderson <rth@redhat.com>
3397
3398 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3399 Convert integers constants as needed. Replace "nwords" field with
3400 "sizeof_bb".
3401 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3402 * function.h: Fix typo in comment.
3403 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3404
3405 2002-05-10 Roger Sayle <roger@eyesopen.com>
3406
3407 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3408 into the equivalent (signed char)c > 0.
3409
3410 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3411
3412 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3413 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3414 (struct prefetch_info): Fix spelling of member bytes_accessed.
3415 (emit_prefetch_instructions): Make dump messages more regular;
3416 restructure code to add more dump messages; use new macros for
3417 heuristics. (There are no code generation changes in any of this).
3418
3419 2002-05-10 David S. Miller <davem@redhat.com>
3420
3421 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3422 (struct rtx_def): Update unchanging flag comment.
3423 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3424 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3425 to be handled to INSN too.
3426 (dbr_schedule): Likewise.
3427 * resource.c (next_insn_no_annul): Likewise.
3428
3429 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3430 casing.
3431
3432 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3433
3434 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3435 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3436 (possibly) work around broken /bin/sh.
3437
3438 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3439
3440 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3441 . as N64/N32 libgcc_s.so subdirs.
3442
3443 2002-05-10 David S. Miller <davem@redhat.com>
3444
3445 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3446
3447 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3448 more accurately.
3449 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3450 comment.
3451 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3452 * doc/rtl.texi: Document these macros more accurately.
3453 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3454 JUMP_INSNs and CALL_INSNs.
3455 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3456 or INSN_FROM_TARGET_P if the code is appropriate.
3457
3458 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3459
3460 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3461 before using SYMBOL_REF_FLAG (addr).
3462
3463 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3464 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3465 Make non-static. Update all callers.
3466 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3467 New insns to clear/set/test a single bit in I/O address space.
3468
3469 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3470
3471 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3472
3473 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3474
3475 * Makefile.in: Update.
3476 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3477 builtin_define_std): New.
3478 (c_common_init): Register CPP builtins callback.
3479 * c-common.h (flag_iso, flag_undef): New.
3480 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3481 * c-lex.c: Don't include target.h.
3482 (cb_register_builtins): Move to c-common.c.
3483 (init_c_lex): Don't register hook here.
3484 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3485 (cpp_define, cpp_assert): Remove.
3486 * gcc.c (cc1_options): Pass -undef to front end.
3487 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3488 (TARGET_INITIALIZER): Update.
3489 * target.h (struct cpp_reader): Don't predeclare.
3490 (struct gcc_target): Remove cpp builtin hook.
3491 * tree.c (default_register_cpp_builtins): Remove.
3492 doc:
3493 * tm.texi: Update.
3494
3495 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3496
3497 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3498
3499 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3500
3501 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3502 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3503
3504 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3505
3506 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3507 * config/sparc/libgcc-sparc-glibc.ver: New file.
3508 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3509 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3510
3511 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3512
3513 PR target/6429
3514 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3515 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3516 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3517 base multilibs.
3518 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3519 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3520 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3521 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3522
3523 2002-05-09 Richard Henderson <rth@redhat.com>
3524
3525 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3526 * config/ia64/ia64.c: Likewise.
3527
3528 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3529
3530 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3531 (save_restore_insns): Likewise.
3532 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3533 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3534
3535 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3536
3537 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3538 * i386.md: Move scheduling information into new files.
3539
3540 * i386.md (type attribute): Add "rotate" for rotate insns.
3541 (rotate insns): Set type to "rotate".
3542 (various attributes and function units): Treat rotate like shift.
3543 (pent_pair attribute): Only rotates by one bit position are
3544 pairable.
3545 (sbb insns): Explicitly set pent_pair attribute on a couple
3546 that were missing it.
3547
3548 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3549
3550 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3551 make sure that buffer starts on odd word address.
3552 (sh_va_arg): Skip odd fp registers when reading a double precision
3553 value.
3554
3555 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3556
3557 * tree.h (preserve_data, object_permanent_p, type_precision):
3558 Remove.
3559
3560 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3561
3562 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3563 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3564 doc:
3565 * cpp.texi: Update for removal of obsolete features.
3566
3567 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3568 Jeffrey A Law (law@redhat.com)
3569
3570 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3571 the DFA interface for Pentium processors.
3572 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3573 (attr_pent_pair, ix86_pent_find_pair): Remove.
3574 (ix86_sched_reorder_pentium): Remove.
3575 (ix86_sched_reorder): Remove reordering for Pentium.
3576 * i386.md (Pentium scheduling): Rewrite using DFA description.
3577
3578 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3579
3580 * cfganal.c (can_fallthru): Fix fast path.
3581 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3582 with edges to the next block.
3583
3584 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3585 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3586
3587 * final.c (end_final): Use C trees to output data structures for profiling.
3588
3589 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3590 (profile.o): New dependency profile.h
3591 (final.o): New dependency profile.h
3592 * profile.h: New file. New global structure profile_info.
3593 * final.h (count_edges_instrumented_now): Declare.
3594 (current_function_cfg_checksum): Declare.
3595 (function_list): New structure.
3596 (functions_head, functions_tail): New static variables.
3597 (end_final): Emits more data, removed some -ax stuff.
3598 (final): Stores function names and chcksums.
3599 * gcov-io.h (__write_gcov_string): New function.
3600 (__read_gcov_string): New function.
3601 * gcov.c (read_profile): New function.
3602 (create_program_flow_graph): Uses read_profile instead of reading
3603 da_file.
3604 (read_files): Removed da_file checking, it's done by read_profile now.
3605 * libgcc2.c (bb_function_info): New structure.
3606 (bb): New field in structure, removed some -ax stuff.
3607 (__bb_exit_func): Changed structure of da_file.
3608 * profile.c (count_edges_instrumented_now): New global variable.
3609 (current_function_cfg_checksum): New global variable.
3610 (max_counter_in_program): New global variable.
3611 (get_exec_counts): New function.
3612 (compute_checksum): New function.
3613 (instrument_edges): Sets count_edges_instrumented_now.
3614 (compute_branch_probabilities): Uses get_exec_counts instead of
3615 reading da_file.
3616 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3617 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3618 now.
3619 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3620 now.
3621 * gcov.texi: Updated information about gcov file format.
3622
3623 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3624
3625 * sbitmap.c: Fix formatting.
3626 * scan.c: Likewise.
3627 * scan-decls.c: Likewise.
3628 * sched-deps.c: Likewise.
3629 * sched-ebb.c: Likewise.
3630 * sched-rgn.c: Likewise.
3631 * sched-vis.c: Likewise.
3632 * sdbout.c: Likewise.
3633 * sibcall.c: Likewise.
3634 * simplify-rtx.c: Likewise.
3635 * ssa.c: Likewise.
3636 * ssa-ccp.c: Likewise.
3637 * ssa-dce.c: Likewise.
3638 * stmt.c: Likewise.
3639 * stor-layout.c: Likewise.
3640 * stringpool.c: Likewise.
3641
3642 2002-05-09 David S. Miller <davem@redhat.com>
3643
3644 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3645
3646 2002-05-07 David S. Miller <davem@redhat.com>
3647
3648 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3649 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3650 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3651 library implementation clobbers the output before the inputs
3652 are fully consumed, use stack temporary for the output.
3653
3654 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3655
3656 * config/netbsd.h (CPP_SPEC): Remove.
3657 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3658 * config/i386/netbsd.h (CPP_SPEC): Define.
3659 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3660 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3661 * config/sparc/netbsd.h (CPP_SPEC): Define.
3662 * config/vax/netbsd.h (CPP_SPEC): Define.
3663
3664 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3665
3666 * read-rtl.c: Fix formatting.
3667 * real.c: Likewise.
3668 * recog.c: Likewise.
3669 * regclass.c: Likewise.
3670 * regmove.c: Likewise.
3671 * reg-stack.c: Likewise.
3672 * reload1.c: Likewise.
3673 * reload.c: Likewise.
3674 * resource.c: Likewise.
3675 * rtlanal.c: Likewise.
3676 * rtl.c: Likewise.
3677 * rtl-error.c: Likewise.
3678
3679 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3680
3681 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3682 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3683
3684 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3685
3686 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3687 use __SSE2__ macro instead.
3688 * config/i386/xmmintrin.h: Likewise.
3689
3690 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3691
3692 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3693 and use it in all invocations of these macros. Clean up comments.
3694 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3695 of the flag access macro whose check failed.
3696 * doc/rtl.texi (Flags): Document additional flag uses.
3697
3698 2002-05-08 Robert Spier <rspier@pobox.com>
3699 Neil Booth <neil@daikokuya.demon.co.uk>
3700
3701 PR preprocessor/6521
3702 * cppfiles.c (handle_missing_header): Don't do anything
3703 different for <> includes.
3704 doc:
3705 * cppopts.texi: Update documentation for -MG.
3706
3707 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3708
3709 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3710 sign-extend.
3711 doc:
3712 * cpp.texi: Clarify multichar charconst valuation.
3713
3714 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3715
3716 * doc/invoke.texi: Document -mwindiss option.
3717
3718 2002-05-08 Jason Merrill <jason@redhat.com>
3719
3720 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3721
3722 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3723
3724 PR c++/6381
3725 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3726 REAL_CST.
3727
3728 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3729
3730 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3731 little-endian multilibs to override arm/thumb multilibs.
3732 Do not build hardware floating point multilibs, nor apcs-26
3733 multilibs for the Thumb.
3734
3735 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3736
3737 PR c/6569.
3738 * varasm.c (mark_weak): New function.
3739 (merge_weak): Use it. Do not call declare_weak.
3740 (declare_weak): Use merge_weak.
3741
3742 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3743
3744 * cse.c (dead_libcall_p): Update counts.
3745 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3746
3747 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3748
3749 * cfglayout.c (function_tail_eff_head): Rename to ...
3750 (function_footer): ... this one.
3751 (unlink_insn_chain): New functions.
3752 (label_for_bb): Only call block_label and emit debug message.
3753 (record_effective_endpoints): Actually unlink the headers and footers.
3754 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3755 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3756 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3757 remove eff_head/eff_end.
3758 * rtl.h (set_first_insn): Declare.
3759 * emit-rtl.c (set_first_insn): New function.
3760
3761 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3762 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3763 cfg_layout_duplicate_bb): New global function.
3764 (duplicate_insn_chain): New static function.
3765 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3766 cfg_layout_duplicate_bb): Declare.
3767 (struct reorder_block_def): Add "original" field.
3768 * emit-rtl.c (emit_copy_of_insn_after): New function.
3769 * rtl.h (emit_copy_of_insn_after): Declare.
3770
3771 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3772 (fixup_reorder_chain): properly handle edges to exit block.
3773
3774 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3775 Jan Hubicka <jh@suse.cz>
3776
3777 * basic-block.h (note_prediction_to_br_prob): declare.
3778 * c-semantics.c: Inlucde predit.h
3779 (expand_stmt): predict GOTO_STMT as not taken.
3780 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3781 (cleanup_cfg): Do not free tail_recursion_list.
3782 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3783 (flow_delete_block): Kill predictions past end of basic block.
3784 * output.h (delete_unreachable_blocks): Declare.
3785 * predict.c (predicted_by_p, process_note_predictions,
3786 process_note_prediction, last_block_p): New function.
3787 (estimate_probability): Bypass loop on PRED_CONTINUE;
3788 do not handle noreturn heuristics; kill PRED_RETURN; add
3789 PRED_EARLY_RETURN.
3790 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3791 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3792 * predict.h (IS_TAKEN): New constant.
3793 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3794 * rtl.c (NOTE_INSN_PREDICTION): New.
3795 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3796 New macro.
3797 (insn_note): add NOTE_INSN_PREDICTION.
3798 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3799 CFG; free tail_recursion_label_list.
3800 * stmt.c: Include predict.h;
3801 (return_prediction): New.
3802 (expand_value_return): Use it.
3803 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3804
3805 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3806
3807 * config/mips/mips.md: Name the unspecs with define_constant.
3808 (*HILO_delay): Rename to 'hilo_delay' (no star).
3809 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3810 (reload_outdi, reload_outsi): Likewise.
3811
3812 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3813
3814 * toplev.c: Fix formatting.
3815
3816 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3817
3818 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3819 * configure.in (ac_rtlflag_checking): New.
3820 * doc/install.texi (--enable-checking): Document RTL flag checking.
3821
3822 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3823
3824 * c-common.c (c_common_init): Set options->unsigned_wchar.
3825 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3826 group target dependencies.
3827 (init_builtins, cpp_handle_option): Update.
3828 * cpplex.c (cpp_interpret_charconst): Update.
3829 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3830 signed_char to unsigned_char, group target dependencies.
3831 * defaults.h (WCHAR_UNSIGNED): Remove.
3832 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3833 config:
3834 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3835 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3836 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3837 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3838 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3839 doc:
3840 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3841
3842 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3843
3844 * fixinc/inclhack.def (windiss_math1): New fix.
3845 (windiss_math2): Likewise.
3846 (windiss_valist): Likewise.
3847 * fixinc/fixincl.x: Regenerated.
3848
3849 2002-05-07 Andreas Jaeger <aj@suse.de>
3850
3851 * genautomata.c (output_internal_min_issue_delay_func): Add
3852 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3853 (output_internal_trans_func): Likewise.
3854
3855 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3856
3857 * pa.c (hppa_profile_hook): Use force_reg to get the address
3858 of the profile hook into an appropriate pseudo register.
3859
3860 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3861
3862 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3863 (LINK_START_SPEC): Handle it.
3864 (LINK_OS_SPEC): Likewise.
3865 (CPP_SPEC): Likewise.
3866 (STARTFILE_SPEC): Likewise.
3867 (LIB_SPEC): Likewise.
3868 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3869 all platforms.
3870 (CRTSAVRES_DEFAULT_SPEC): New macro.
3871 (LIB_WINDISS_SPEC): New macro.
3872 (CPP_OS_WINDISS_SPEC): Likewise.
3873 (STARTFILE_WINDISS_SPEC): Likewise.
3874 (ENDFILE_WINDISS_SPEC): Likewise.
3875 (LINK_START_WINDISS_SPEC): Likewise.
3876 (LINK_OS_WINDISS_SPEC): Likewise.
3877 * config/rs6000/windiss.h: New file.
3878
3879 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3880
3881 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3882
3883 2002-05-06 David S. Miller <davem@redhat.com>
3884
3885 * config/sparc/sparc.md (shift insns): Do not mask off
3886 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3887 take care of it.
3888
3889 2002-05-06 Richard Henderson <rth@redhat.com>
3890
3891 PR c++/6212
3892 * expr.c (highest_pow2_factor_for_type): New.
3893 (expand_assignment): Use it.
3894
3895 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3896
3897 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3898 unspec_volatile.
3899 ("altivec_mfvscr"): Same.
3900
3901 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3902
3903 * rtl.h (struct rtx_def): Update comments.
3904 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3905 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3906 RTL_FLAG_CHECK macros with list of expected RTL codes.
3907 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3908 (rtl_check_failed_flag): New.
3909 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3910 (reload_cse_noop_set_p): Check rtx code before using access macro.
3911 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3912 before using access macro.
3913
3914 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3915
3916 * doc/rtl.texi (Flags): Update to reflect current usage.
3917
3918 2002-05-06 Roger Sayle <roger@eyesopen.com>
3919
3920 PR opt/3995
3921 * fold-const.c (sign_bit_p): New function.
3922 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3923 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3924 Reapply fold when converting (A & C) == C into (A & C) != 0.
3925 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3926
3927 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3928
3929 * c-common.c (warn_multichar): New.
3930 (c_common_init): Set CPP's warn_multichar.
3931 * c-common.h (warn_multichar): New.
3932 * c-decl.c (warn_multichar): Remove.
3933 * c-lex.c (lex_charconst): Update.
3934 * c-tree.h (warn_multichar): Remove.
3935 * cppexp.c (eval_token): Sign-extend charconst value.
3936 * cppinit.c (cpp_create_reader): Set warn_multichar.
3937 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3938 each character. Update prototype. Sign-extend the result.
3939 * cpplib.h: Fix conditions.
3940 (struct cpp_options): Add new warning flag.
3941 (cpp_interpret_charconst): Update prototype.
3942 doc:
3943 * cpp.texi: Update documentation.
3944
3945 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3946
3947 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3948 Fix typo in usage of allof instead of unit.
3949
3950 2002-05-06 Richard Henderson <rth@redhat.com>
3951
3952 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3953 and any jump or call for IN.
3954
3955 2002-05-06 Bernd Schmidt <bernds@redhat.com>
3956
3957 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3958 -msse2.
3959 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3960
3961 2002-05-06 Roger Sayle <roger@eyesopen.com>
3962
3963 * fold-const.c (lshift-double): Cast the high word to an unsigned
3964 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3965 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3966 avoid compiler warning. (fold): Remove redundant code from
3967 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3968
3969 2002-05-06 Jeff Law <law@redhat.com>
3970
3971 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3972 * pa.c (pa_adjust_cost): Remove all true dependency cost
3973 adjustments. Also remove support for non-DFA scheduling.
3974 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3975 to adjust true dependency costs. Update various comments.
3976 (7100lc, 7200, 7300 scheduling): Simplify by combining the
3977 FP ALU & MPY units into a single unit.
3978
3979 2002-05-06 Catherine Moore <clm@redhat.com>
3980
3981 * config/v850/v850.c (compute_register_save_size): Make sure
3982 to count all of the registers that will be saved.
3983
3984 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3985
3986 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3987
3988 2002-05-06 David S. Miller <davem@redhat.com>
3989
3990 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3991 allow result to overlap input operands in memory.
3992
3993 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3994
3995 doc:
3996 * cpp.texi: Update multichar charconst docs.
3997
3998 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
3999
4000 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4001 character. Don't ignore excess characters. Treat
4002 multicharacter character constants as signed.
4003 (cpp_parse_escape): Clarify diagnostic.
4004
4005 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4006
4007 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4008 use add instead of shift.
4009 (ashldi3_sp64): Likewise.
4010 (ashlsi3_const1, ashldi3_const1): Remove.
4011 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4012 * config/sparc/sparc.c (const1_operand): New.
4013
4014 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4015
4016 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4017
4018 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4019
4020 PR target/6561
4021 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4022
4023 2002-05-05 Richard Henderson <rth@redhat.com>
4024
4025 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4026 memory latency adjustments.
4027 (alpha_variable_issue): Remove.
4028 (alpha_use_dfa_pipeline_interface): New.
4029 (alpha_multipass_dfa_lookahead): New.
4030 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4031 include new dfa scheduling.
4032 (attr type): Add none.
4033 (blockage): Use it.
4034 * config/alpha/ev4.md: New.
4035 * config/alpha/ev5.md: New.
4036 * config/alpha/ev6.md: New.
4037
4038 2002-05-05 David S. Miller <davem@redhat.com>
4039
4040 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4041
4042 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4043
4044 * cse.c: Fix formatting.
4045 * emit-rtl.c: Likewise.
4046
4047 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4048
4049 * genautomata.c (initiate_states): Add additional guard to
4050 initialize `units_array'.
4051
4052 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4053
4054 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4055 process_unit_to_form_the_same_automaton_unit_lists,
4056 form_the_same_automaton_unit_lists
4057 check_unit_distributions_to_automata): New prototypes and
4058 functions.
4059 (check_automata): Rename it into `check_automata_insn_issues'.
4060 (unit_decl): New fields `the_same_automaton_unit' and
4061 `the_same_automaton_message_reported_p'.
4062 (unit_decl_t): New typedef.
4063 (the_same_automaton_lists): New gloval variable.
4064 (unit_regexp, unit_set_el, units_array, units_cmp,
4065 output_get_cpu_unit_code_func): Use the typedef.
4066 (evaluate_max_reserv_cycles): Increment
4067 `description->max_insn_reserv_cycles'.
4068 (initiate_states): Don't increment `max_cycles_num'.
4069 (transform_insn_regexps): Move code around transformation of
4070 regexps from `generate'.
4071 (generate): Remove call of `transform_insn_regexps'.
4072 (expand_automata): Call `transform_insn_regexps' and
4073 `check_unit_distributions_to_automata'. Check errors before
4074 `generate'.
4075
4076 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4077 automaton `ultrasparc3_1'.
4078
4079 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4080
4081 * c-common.c (c_common_init): Set up CPP arithmetic.
4082 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4083 something reasonable for the host.
4084 (sanity_checks): Add checks.
4085 (cpp_read_main_file): Call sanity_checks() from here...
4086 (cpp_post_options): ... not here.
4087 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4088 * cpplib.h (struct cpp_options): New member int_precision.
4089
4090 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4091
4092 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4093
4094 2002-05-04 David S. Miller <davem@redhat.com>
4095
4096 * config/sparc/linux.h, config/sparc/linux64.h
4097 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4098
4099 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4100 more RTX codes.
4101 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4102
4103 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4104 of SETs.
4105
4106 2002-05-05 Tim Josling <tej@melbpc.org.au>
4107
4108 * treelang; New directory for new sample language treelang.
4109
4110 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4111
4112 * Makefile.in (c-lex.o): Update.
4113 * c-lex.c: Include target.h.
4114 (cb_register_builtins): New.
4115 (init_c_lex): Set builtins callback.
4116 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4117 * cppinit.c (init_builtins): Use callback, including for
4118 GXX_WEAK.
4119 * cpplib.h (struct cpp_callbacks): New member.
4120 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4121 (TARGET_INITIALIZER): Update.
4122 * target.h (struct gcc_target): New hook.
4123 * tree.c (default_register_cpp_builtins): New.
4124 * tree.h (default_register_cpp_builtins): New.
4125 doc:
4126 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4127
4128 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4129
4130 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4131 (cpp_post_options): Move sanity checks to...
4132 (sanity_checks): New.
4133 * cpplex.c (maybe_read_ucs): Fix prototype.
4134 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4135 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4136 if necessary.
4137
4138 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4139
4140 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4141 builtins. Use V2DI patterns instead of TI for logical operations.
4142 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4143 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4144 (ix86_expand_builtins): Change the pattern used for movntdq.
4145 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4146 sse2_nandv2di3): New patterns.
4147 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4148 on operands.
4149 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4150 (cvtdq2pd): Correct mode on operand 1.
4151 (sse2_umulsidi3): Describe without unspec.
4152 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4153 machine modes.
4154 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4155 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4156 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4157 ashlv4si3, ashlv2di3): Use SImode for shift count.
4158 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4159 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4160 New patterns.
4161 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4162 New typedefs.
4163 (__m128i, __m128d): New macros.
4164 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4165 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4166 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4167 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4168 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4169 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4170 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4171 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4172 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4173 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4174 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4175 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4176 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4177 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4178 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4179 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4180 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4181 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4182 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4183 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4184 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4185 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4186 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4187 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4188 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4189 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4190 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4191 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4192 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4193 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4194 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4195 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4196 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4197 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4198 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4199 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4200 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4201 functions.
4202 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4203 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4204
4205 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4206
4207 * dwarf2out.c: Fix formatting.
4208 * varasm.c: Likewise.
4209
4210 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4211
4212 PR c/6543
4213 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4214 clobber and use result as temporary value.
4215
4216 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4217
4218 * expr.c (force_operand): Use expand_simple_* to handle more
4219 cases.
4220
4221 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4222
4223 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4224 and sign-extension.
4225 (lex_charconst): Update for change in prototype of
4226 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4227 appropriately.
4228 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4229 * cppinit.c (cpp_create_reader): Initialize them for no
4230 change in semantics.
4231 (cpp_post_options): Add sanity checks.
4232 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4233 and truncation issues. Calculate in type cppchar_t.
4234 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4235 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4236 run-time dependent precision correctly. Return whether the
4237 result is signed or not.
4238 * cpplib.c (dequote_string): Use cppchar_t; update.
4239 * cpplib.h (cppchar_signed_t): New.
4240 struct cpp_options): New precision members.
4241 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4242 * cppexp.c (eval_token): Update.
4243
4244 2002-05-03 David S. Miller <davem@redhat.com>
4245
4246 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4247 * config/sparc/sparc.c (sparc_rtx_costs): New function
4248 implementing RTX_COSTS and CONST_COSTS.
4249 * config/sparc/sparc.h (CONST_COSTS): Delete.
4250 (RTX_COSTS_CASES): Define.
4251 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4252 the work.
4253
4254 * config/sparc/sparc.md (DFA schedulers): Split out...
4255 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4256 config/sparc/sparclet.md, config/sparc/supersparc.md,
4257 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4258
4259 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4260 checks on it, always defined for Sparc.
4261
4262 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4263 Tweak, and add more detailed comments.
4264
4265 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4266
4267 * Re-apply patch accidentally reverted with
4268 DFA scheduler merge: remove all rules and variables to slurp
4269 source files out of libiberty and rebuild them with HOST_CC.
4270 ($(HOST_PREFIX_1)varray.o): New rule.
4271 (genattrtab rule): Word wrap.
4272
4273 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4274
4275 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4276 (CPP_SUBTARGET_SPEC): Define.
4277 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4278 cpp_subtarget specs.
4279 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4280
4281 2002-05-03 David S. Miller <davem@redhat.com>
4282
4283 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4284 * target.h (struct gcc_target): Delete cycle_display member.
4285
4286 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4287 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4288 (ia64_sched_reorder2): Mention need for cycle display handling
4289 once such notes exist.
4290
4291 2002-05-03 Richard Henderson <rth@redhat.com>
4292
4293 * real.c (etoasc): Strip most trailing zeros for clarity.
4294 * sched-vis.c: Include real.h.
4295 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4296 * Makefile.in (sched-vis.o): Add real.h.
4297
4298 2002-05-03 David S. Miller <davem@redhat.com>
4299
4300 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4301 no longer needed.
4302
4303 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4304
4305 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4306 when we get an out of range literal.
4307 (altivec_expand_ternop_builtin): Same.
4308 (altivec_expand_unop_builtin): Same.
4309 (altivec_expand_builtin): Same, for dss.
4310 (altivec_expand_builtin): Use trees instead of rtl when
4311 determining literal argument validity.
4312
4313 2002-05-03 David S. Miller <davem@redhat.com>
4314
4315 Delete cycle display scheduling hook.
4316 * config/ia64/ia64.c (ia64_cycle_display,
4317 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4318 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4319 and use emit_insn_before instead of ia64_emit_insn_before.
4320 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4321 (cycle_display): Delete insn pattern.
4322 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4323 (cycle_display): Delete insn pattern.
4324 * config/sparc/sparc.c (sparc_cycle_display,
4325 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4326 * doc/md.texi (cycle_display): Don't mention.
4327 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4328
4329 2002-05-03 Richard Henderson <rth@redhat.com>
4330
4331 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4332 * recog.h: Declare them.
4333
4334 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4335 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4336 * config/sparc/sparc-protos.h: Update.
4337
4338 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4339
4340 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4341 -D__arch64__. Add -D_LP64.
4342 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4343 from sparc.h.
4344 (CPP_ARCH64_SPEC): Likewise.
4345 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4346 (NO_BUILTIN_SIZE_TYPE): Undef.
4347
4348 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4349
4350 * genautomata.c (min_issue_delay_pass_states): Change return type
4351 in the prototype.
4352 (min_issue_delay_pass_states): Change the algorithm.
4353 (min_issue_delay): Set up min_insn_issue_delay for the state.
4354 (output_min_issue_delay_table): Interchange the nested loops and
4355 and initiate min_insn_issue_delay for states.
4356
4357 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4358
4359 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4360 jump is simplejump.
4361
4362 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4363
4364 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4365 sequence.
4366
4367 2002-05-03 Richard Henderson <rth@redhat.com>
4368
4369 PR opt/6534
4370 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4371 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4372 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4373 code before JUMP, not EARLIEST.
4374
4375 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4376
4377 * c-format.c (check_format_info_main): Don't check for presence of
4378 parameter for * width until after operand number has been read,
4379 and only check for it if format parameters are available.
4380 Fixes PR c/6547.
4381
4382 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4383
4384 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4385 (LINK_SPEC): Undef before defining.
4386
4387 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4388
4389 PR preprocessor/6489
4390 * tradcpp.c (fixup_newlines): New.
4391 (main, finclude): Use it.
4392
4393 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4394
4395 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4396 * config/mips/mips.c (mips_unique_section): Strip encoding from
4397 decl name.
4398
4399 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4400
4401 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4402 mode.
4403
4404 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4405
4406 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4407 (Specific): Removed buildstats references.
4408 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4409 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4410 Accomodate Solaris versions beyond 8.
4411 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4412 (Specific, *-*-solaris2.8): Removed, obsolete.
4413
4414 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4415
4416 PR target/6542
4417 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4418 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4419 fill leaf_reg_remap with identity.
4420 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4421
4422 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4423
4424 * config/h8300/crti.asm: Remove trailing spaces.
4425 * config/h8300/h8300.c: Likewise.
4426 * config/h8300/lib1funcs.asm: Likewise.
4427
4428 2002-05-02 Jason Merrill <jason@redhat.com>
4429
4430 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4431 * c-decl.c (c_init_decl_processing): Use it.
4432 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4433 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4434 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4435
4436 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4437
4438 * regrename.c: Fix formatting.
4439 * tree.c: Likewise.
4440
4441 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4442
4443 * i386.md (attribute memory): Handle compares properly.
4444
4445 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4446
4447 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4448 to none.
4449
4450 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4451
4452 * function.c: Fix formatting.
4453
4454 2002-05-02 Jan Hubicka <jh@suse.cz>
4455
4456 * haifa-sched.c (schedule_insn): Print table of instructions and
4457 reservations.
4458 (sched_block): Do not print ready list at verbosity level 1.
4459 * sched-vis.c (print_insn): Make global.
4460 * sched-ebb.c (ebb_print_insn): Rename from...
4461 (print_insn): ... this one.
4462 * sched-int.h (print_insn): Declare
4463
4464 2002-05-02 Richard Henderson <rth@redhat.com>
4465
4466 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4467 emitted by cycle_display.
4468
4469 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4470
4471 * doc/install.texi (*-*-freebsd*): Update to latest status.
4472
4473 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4474
4475 PR target/6540
4476 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4477 * config/float-sparc.h: Assume 128-bit long double if
4478 __LONG_DOUBLE_128__ is defined.
4479
4480 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4481
4482 * genattrtab.c (write_function_unit_info): Add a dummy element
4483 when num_units == 0.
4484
4485 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4486
4487 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4488 TYPE_MODE (double_type_node) instead of DFmode.
4489
4490 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4491
4492 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4493 jumps post reload.
4494 * toplev.c (rest_of_compilation): Revert Richard's patch.
4495
4496 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4497
4498 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4499
4500 2002-05-02 Catherine Moore <clm@redhat.com>
4501
4502 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4503
4504 2002-05-02 Kazu Hirata <kazu@hxi.com>
4505
4506 * combine.c: Fix comment typos.
4507 * expr.c: Likewise.
4508 * genautomata.c: Likewise.
4509 * stmt.c: Likewise.
4510 * tree.h: Likewise.
4511
4512 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4513
4514 * doc/install.texi: State GNAT version requirements.
4515
4516 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4517
4518 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4519 of the frame pointer or arg pointer register which strict register
4520 checking is not enabled.
4521
4522 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4523
4524 * gcc.dg/altivec-8.c: New.
4525
4526 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4527 PRE_INC and PRE_DEC for altivec modes.
4528
4529 2002-05-01 Bruce Korb <bkorb@gnu.org>
4530
4531 * fixinc/check.tpl(set-writable): make sure the function exists first
4532 * fixinc/inclhack.def(alpha_assert): fix test_text
4533 * fixinc/tests/base/assert.h: add in missing result
4534
4535 2002-05-01 Jeff Law <law@redhat.com>
4536
4537 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4538 'T' constraint.
4539
4540 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4541
4542 * dbxout.c (dbxout_type): Emit size information for range types,
4543 as well, but only when using GDB extensions.
4544
4545 2002-05-01 Richard Henderson <rth@redhat.com>
4546
4547 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4548 target-independent gnu binutils date test.
4549
4550 2002-05-01 Richard Henderson <rth@redhat.com>
4551
4552 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4553 info before expunging the block.
4554
4555 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4556
4557 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4558 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4559 -M -or -MM is in effect.
4560
4561 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4562
4563 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4564 A29k configurations.
4565 * doc/install.texi: Update to match.
4566
4567 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4568
4569 PR bootstrap/6514
4570 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4571 for duplicates. Always loop over whole list.
4572
4573 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4574
4575 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4576
4577 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4578
4579 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4580 support routines.
4581
4582 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4583
4584 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4585
4586 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4587
4588 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4589 (nabs_nopower): Same.
4590 (floatdisf2): New pattern.
4591 (absdi2): Convert to define_insn_and_split.
4592 (nabsdi2): Same.
4593 (trunctfsf2): Same.
4594 (floatditf2): Same.
4595 (floatsitf2): Same.
4596 (fix_trunctfdi2): Same.
4597 (fix_trunctfsi2): Same.
4598
4599 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4600
4601 * doc/install.texi: Update Texinfo version requirement
4602 documentation.
4603
4604 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4605
4606 PR target/6512, PR target/5628
4607 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4608 when memory is not aligned.
4609 (movdf_insn_v9only_vis): Likewise.
4610 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4611 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4612 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4613
4614 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4615
4616 * gcc.dg/altivec-7.c: New.
4617
4618 * config/rs6000/altivec.h: Cleanup.
4619
4620 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4621
4622 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4623 (RS/6000 and PowerPC Options): Document -mvrsave=.
4624
4625 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4626 (rs6000_altivec_vrsave_string): Same.
4627 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4628 (rs6000_parse_vrsave_option): New.
4629 (rs6000_stack_info): Only generate vrsave instructions when
4630 TARGET_ALTIVEC_VRSAVE.
4631
4632 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4633 (rs6000_altivec_vrsave_string): Define extern.
4634 (rs6000_altivec_vrsave): Same.
4635 (TARGET_ALTIVEC_VRSAVE): New.
4636
4637 2002-04-30 Richard Henderson <rth@redhat.com>
4638
4639 PR opt/6516
4640 * toplev.c (rest_of_compilation): Don't run cross-jump before
4641 bb-reorder.
4642
4643 2002-04-30 Tom Rix <trix@redhat.com>
4644
4645 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4646 check which_alternative.
4647
4648 2002-04-30 Kazu Hirata <kazu@hxi.com>
4649
4650 * cpplex.c: Fix comment formatting.
4651 * function.c: Likewise.
4652 * integrate.c: Likewise.
4653 * regrename.c: Likewise.
4654 * sibcall.c: Likewise.
4655 * simplify-rtx.c: Likewise.
4656 * tree-inline.c: Likewise.
4657
4658 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4659
4660 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4661 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4662 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4663 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4664 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4665 * pa/x-ada: New file. Define ADA_CFLAGS.
4666
4667 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4668
4669 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4670 from MMIX_LAST_REGISTER_FILE_REGNUM.
4671 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4672 (struct machine_function): New member highest_saved_stack_register
4673 previously static variable in mmix.c.
4674 (MACHINE_DEPENDENT_REORG): Define.
4675 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4676 (MMIX_OUTPUT_REGNO): New.
4677 (mmix_target_asm_function_prologue): Move calculation of last used
4678 saved-stack-register into...
4679 (mmix_machine_dependent_reorg): New function. Update to also handle
4680 !TARGET_ABI_GNU.
4681 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4682 register names, simplify somewhat by new variable regno.
4683 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4684 register.
4685 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4686 emitting register names.
4687 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4688 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4689 Remove fixed FIXME.
4690 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4691 Declare.
4692
4693 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4694
4695 2002-04-30 Richard Henderson <rth@redhat.com>
4696
4697 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4698 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4699 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4700 emit_tfmode_cvt): New.
4701 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4702 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4703 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4704 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4705 * config/sparc/sparc-protos.h: Update.
4706
4707 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4708
4709 * install.texi (Final install): Add to the list of info to include
4710 in a report of a successful bootstrap, and add link to 3.1 list.
4711
4712 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4713
4714 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4715 (mode): Add vector modes
4716 (i387): Kill attribute.
4717 (unit): New attribute.
4718 (length_immediate): Grok new types.
4719 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4720 (modrm): Use "unit".
4721 (memory): Handle MMX/SSE properly.
4722 (scheduling descriptions): Kill uses of fop1.
4723 (sse, mmx, fp patterns): Set type and mode properly.
4724
4725 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4726
4727 * pa.c (override_options): Default to PA8000 scheduling.
4728 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4729 scheduling parameter.
4730
4731 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4732 handling of double precision multiplies.
4733
4734 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4735 fpdiv and fpsqrt instructions.
4736 (7200 & 7300 scheduling): Fix typo in handling of
4737 store-load and store-store penalties.
4738
4739 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4740
4741 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4742 mips. Add two missing commas.
4743
4744 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4745
4746 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4747 and Benjamin Kosnik's entries.
4748
4749 2002-04-29 David S. Miller <davem@redhat.com>
4750
4751 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4752 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4753 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4754 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4755
4756 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4757
4758 * combine.c (find_split_point): Use gen_int_mode.
4759
4760 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4761
4762 Merging code from dfa-branch:
4763
4764 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4765
4766 * genautomata.c (output_reserv_sets): Fix typo.
4767
4768 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4769
4770 * genautomata.c (output_reserv_sets): Remove
4771 next_cycle_output_flag.
4772
4773 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4774
4775 * sched-rgn.c (init_ready_list): Make the DFA code handle
4776 USE/CLOBBER insns in the same way as the traditional
4777 scheduler.
4778 (new_ready): Similarly..
4779
4780 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4781
4782 * haifa-sched.c (schedule_block): Change the DFA state only after
4783 issuing insn.
4784
4785 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4786
4787 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4788 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4789 (override_options): Add PA7300 scheduling support.
4790 (pa_adjust_cost): Update various comments. Properly
4791 handle anti and output dependencies when using the
4792 DFA scheduler.
4793 (pa_issue_rate): Add PA7300 scheduling support.
4794 (pa_can_combine_p): Call extract_insn before calling
4795 constrain_operands (taken from mainline tree).
4796 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4797 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4798 descriptions using DFA descriptions. Add PA7300
4799 scheduling support.
4800
4801 2002-03-30 David S. Miller <davem@redhat.com>
4802
4803 Add UltraSPARC-III DFA scheduling support.
4804 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4805 Update FP conditional move on register insn patterns to use it, as
4806 appropriate.
4807 (define_attr cpu): Add ultrasparc3.
4808 (define_attr us3load_type): New, update integer load patterns to
4809 set it, as appropriate.
4810 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4811 (rest): Add UltraSPARC3 scheduling description.
4812 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4813 (PROCESSOR_ULTRASPARC3): New.
4814 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4815 ({ASM,CPP}_CPU_SPEC): Likewise.
4816 (REGISTER_MOVE_COST): Likewise.
4817 (RTX_COSTS): Likewise.
4818 * config/sparc/sparc.c (sparc_override_options,
4819 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4820 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4821 sparc_issue_rate): Likewise.
4822 * config/sparc/sol2.h: Likewise.
4823 * config/sparc/sol2-sld-64.h: Likewise.
4824 * config/sparc/linux64.h: Likewise.
4825
4826 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4827
4828 * doc/md.texi: Add comments about usage the latency time for the
4829 different dependencies and about case when two or more conditions
4830 in different define_insn_reservations returns TRUE for an insn.
4831
4832 * doc/md.texi: Add reference for automaton based pipeline
4833 description.
4834
4835 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4836
4837 * doc/passes.texi: Add missed information about genattrtab.
4838
4839 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4840
4841 * genautomata.c (output_automata_list_transition_code): Check
4842 automata_list on NULL.
4843
4844 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4845
4846 * genautomata.c (output_insn_code_cases,
4847 output_automata_list_min_issue_delay_code,
4848 output_automata_list_transition_code,
4849 output_automata_list_state_alts_code): Comment the functions.
4850
4851 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4852
4853 * genautomata.c (automata_list_el_t): New typedef.
4854 (get_free_automata_list_el,free_automata_list_el,
4855 free_automata_list, automata_list_hash, automata_list_eq_p,
4856 initiate_automata_lists, automata_list_start, automata_list_add,
4857 automata_list_finish, finish_automata_lists,
4858 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4859 output_automata_list_transition_code,
4860 output_automata_list_state_alts_code, add_automaton_state,
4861 form_important_insn_automata_lists): New functions and prototypes.
4862 (insn_reserv_decl): Add members important_automata_list and
4863 processed_p.
4864 (ainsn): Add members important_p.
4865 (automata_list_el): New structure.
4866 (first_free_automata_list_el, current_automata_list,
4867 automata_list_table): New global variables.
4868 (create_ainsns): Initiate member important_p.
4869 (output_internal_min_issue_delay_func): Generate the switch and
4870 call output_insn_code_cases.
4871 (output_internal_trans_func, output_internal_state_alts_func):
4872 Ditto.
4873 (generate): Call initiate_automata_lists.
4874 (automaton_states): New global variable.
4875 (expand_automata): Call form_important_insn_automata_lists.
4876 (write_automata): Call finish_automata_lists.
4877
4878 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4879
4880 * genautomata.c (add_excls, add_presence_absence): Check that
4881 cpu units in the sets belong the same automaton.
4882
4883 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4884 about that cpu units in the sets belong the same automaton.
4885
4886 * doc/md.texi: Ditto.
4887
4888 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4889 Nitin Gupta <niting@noida.hcltech.com>
4890
4891 * config/sh/sh.c (sh_use_dfa_interface): New function.
4892
4893 (sh_issue_rate): New Function.
4894 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4895 TARGET_SCHED_ISSUE_RATE: define.
4896
4897 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4898
4899 (define_attr insn_class): New attribute used for DFA
4900 scheduling.
4901 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4902 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4903 cmpeqdi_t): Likewise.
4904
4905 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4906 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4907 ex_group.
4908 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4909
4910 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4911
4912 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4913 break.
4914
4915 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4916
4917 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4918 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4919 necessary.
4920 (output_dfa_start_func): Initiate new variable insn_codes_length,
4921 (write_automata): Output definition of the new variable.
4922
4923 2001-10-02 David S. Miller <davem@redhat.com>
4924
4925 * haifa-sched.c (advance_one_cycle): New function.
4926 (schedule_block): Use it.
4927 (queue_to_ready): Use it, and also make sure to advance the DFA
4928 state on all stall cycles, not just those where insn_queue links
4929 are found.
4930
4931 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4932
4933 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4934 non-zero if the highest-priority instruction could be scheduled.
4935 (choose_ready): Remove last argument from max_issue call.
4936
4937 2001-09-28 David S. Miller <davem@redhat.com>
4938
4939 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4940 ultrasparc and 3 for other multi-issue sparcs.
4941
4942 2001-09-27 David S. Miller <davem@redhat.com>
4943
4944 * config/sparc/sparc.md (cycle_display): New pattern.
4945 * config/sparc/sparc.c (sparc_cycle_display): New.
4946 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4947
4948 2001-09-25 David S. Miller <davem@redhat.com>
4949
4950 Convert all of Sparc scheduling to DFA
4951 * config/sparc/sparc.md: Kill all define_function_unit
4952 directives and replace with DFA equivalent.
4953 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4954 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4955 ultra_fpmode_conflict_exists, ultra_find_type,
4956 ultra_build_types_avail, ultra_flush_pipeline,
4957 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4958 ultrasparc_variable_issue, ultrasparc_sched_init,
4959 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4960 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4961 ultra_cur_hist, ultra_cycles_elapsed): Kill.
4962 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4963 ultrasparc_store_bypass_p): New.
4964 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4965 Declare.
4966
4967 2001-09-24 David S. Miller <davem@redhat.com>
4968
4969 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4970 ready->vec[foo] not ready[foo].
4971
4972 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4973
4974 * doc/md.texi: Correct examples for define_insn_reservations
4975 `mult' and `div'.
4976
4977 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
4978
4979 * genautomata.c (create_automata): Print message about creation of
4980 each automaton.
4981 (generate): Remove printing meease about creation of
4982 automata.
4983
4984 2001-09-05 David S. Miller <davem@redhat.com>
4985
4986 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4987 * config/sparc/linux64.h: Likewise.
4988
4989 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
4990
4991 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4992 schedule_block, sched_init, sched_finish): Add missed calls of
4993 use_dfa_pipeline_interface.
4994
4995 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4996 Ditto.
4997
4998 * sched-vis.c (get_visual_tbl_length): Ditto.
4999
5000 2001-08-27 Richard Henderson <rth@redhat.com>
5001
5002 * genattr.c (main): Emit state_t even when not doing scheduling.
5003
5004 2001-08-27 Richard Henderson <rth@redhat.com>
5005
5006 * genautomata.c (expand_automata): Always create a description.
5007
5008 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5009
5010 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5011 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5012 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5013 RTL constructions.
5014
5015 * genattr.c (main): New variable num_insn_reservations. Increase
5016 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5017 pipeline hazard recognizer interface.
5018
5019 * genattrtab.h: New file.
5020
5021 * genattrtab.c: Include genattrtab.h.
5022 (attr_printf, check_attr_test, make_internal_attr,
5023 make_numeric_value): Move protypes into genattrtab.h. Define them
5024 as external.
5025 (num_dfa_decls): New global variable.
5026 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5027 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5028 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5029 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5030
5031 * genautomata.c: New file.
5032
5033 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5034
5035 * sched-int.h: (curr_state): Add the external definition for
5036 automaton pipeline interface.
5037 (haifa_insn_data): Add comments for members blockage and units.
5038
5039 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5040 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5041 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5042 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5043 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5044 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5045 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5046 macros.
5047 (TARGET_SCHED): Use the new macros.
5048
5049 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5050 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5051 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5052 dfa_bubble): New members in gcc_target.sched.
5053
5054 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5055 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5056 (insn_queue): Redefine it as pointer to array.
5057 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5058 INSN_QUEUE_SIZE.
5059 (max_insn_queue_index_macro_value): New variable.
5060 (curr_state, dfa_state_size, ready_try): New varaibles for
5061 automaton interface.
5062 (ready_element, ready_remove, max_issue): New function prototypes
5063 for automaton interface.
5064 (choose_ready): New function prototype.
5065 (insn_unit, blockage_range): Add comments.
5066 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5067 FUNCTION_UNITS_SIZE == 0.
5068 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5069 actual_hazard, potential_hazard): Add comments.
5070 (insn_cost): Use cost -1 as undefined value. Remove
5071 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5072 pipeline interface.
5073 (ready_element, ready_remove): New functions for automaton
5074 interface.
5075 (schedule_insn): Add new code for automaton pipeline interface.
5076 (queue_to_ready): Add new code for automaton pipeline interface.
5077 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5078 (debug_ready_list): Print newline when the queue is empty.
5079 (max_issue): New function for automaton pipeline interface.
5080 (choose_ready): New function.
5081 (schedule_block): Add new code for automaton pipeline interface.
5082 Print ready list before scheduling each insn.
5083 (sched_init): Add new code for automaton pipeline interface.
5084 Initiate insn cost by -1.
5085 (sched_finish): Free the current automaton state and finalize
5086 automaton pipeline interface.
5087
5088 * sched-rgn.c: Include target.h.
5089 (init_ready_list, new_ready, debug_dependencies): Add new code for
5090 automaton pipeline interface.
5091
5092 * sched-vis.c: Include target.h.
5093 (get_visual_tbl_length): Add code for automaton interface.
5094 (target_units, print_block_visualization): Add comments.
5095
5096 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5097 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5098 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5099 (getruntime.o, genautomata.o): New entries.
5100 (genattrtab.o): Add new dependency file genattrtab.h.
5101 (genattrtab): Add new dependencies. Link it with `libm.a'.
5102 (getruntime.o, hashtab.o): New entries for canadian cross.
5103
5104 * doc/md.texi: Description of automaton based model.
5105
5106 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5107 Add comments.
5108 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5109 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5110 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5111 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5112 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5113 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5114 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5115 hook descriptions.
5116 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5117 MAX_DFA_ISSUE_RATE): New macro descriptions.
5118
5119 * doc/contrib.texi: Add dfa based scheduler contribution.
5120
5121 * doc/gcc.texi: Add more information about genattrtab.
5122
5123 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5124
5125 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5126 adjust_address_nv call.
5127
5128 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5129
5130 * doc/install.texi (Testing): Provide additional information, and
5131 a stronger encouragement, for running the testsuites.
5132
5133 2002-04-29 DJ Delorie <dj@redhat.com>
5134
5135 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5136 given in upper case.
5137
5138 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5139
5140 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5141 Solaris 2 <widec.h> if missing.
5142 * fixinc/fixincl.x: Regenerate.
5143 * fixinc/tests/base/widec.h: New file.
5144
5145 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5146
5147 * toplev.c (f_options): Add "profile" switch so that
5148 -fno-profile can be used to disable -p.
5149
5150 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5151
5152 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5153 UV2DImode.
5154 * tree.c (build_common_tree_nodes_2): Likewise.
5155 * tree.h (enum tree_index): Likewise.
5156 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5157
5158 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5159 entries.
5160 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5161 (ix86_expand_builtin): Add support for SSE2 builtins.
5162 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5163 (VALID_SSE_REG_MODE): Use it.
5164 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5165 (enum ix86_builtins): Add SSE2 builtins.
5166 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5167 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5168 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5169 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5170 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5171 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5172 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5173 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5174 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5175 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5176 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5177 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5178 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5179 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5180 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5181 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5182 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5183 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5184 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5185 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5186 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5187 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5188 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5189 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5190 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5191 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5192 lfence_insn): New patterns.
5193 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5194 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5195
5196 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5197
5198 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5199
5200 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5201
5202 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5203 Janis Johnson.
5204 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5205 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5206 and CPU instead of cpu.
5207
5208 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5209
5210 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5211 variables.
5212 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5213 (rest_of_compilation): Do if conversion only when asked for.
5214 (parse_options_and_default_flags): Set new variables to 1 for -O1
5215 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5216
5217 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5218
5219 * i386.c (dbx64_register_map): Fix typo.
5220
5221 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5222
5223 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5224 real_one_half, real_bb_freq_max): New static variables.
5225 (debug_profile_bbauxs): Kill.
5226 (process_note_predictions): Kill unused variable.
5227 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5228 volatile double.
5229 (propagate_freq): Use REAL_ARITHMETICS.
5230 (estimate_bb_frequencies): Likevise; init new static variables.
5231 * Makefile.in (predict.o): Add dependency on real.h
5232
5233 2002-04-28 David S. Miller <davem@redhat.com>
5234
5235 PR target/6500
5236 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5237 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5238 several {reads,writes} instead.
5239 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5240 Define.
5241
5242 2002-04-27 David S. Miller <davem@redhat.com>
5243
5244 PR target/6494
5245 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5246 of the stack bias.
5247
5248 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5249 including signal.h and sys/ucontext.h, not needed.
5250
5251 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5252
5253 * varasm.c (output_constant_def): Correct test for not calling
5254 ENCODE_SECTION_INFO for INTEGER_CST.
5255
5256 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5257
5258 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5259 keep most cases as function eval_token.
5260 (eval_token): New function.
5261 (_cpp_parse_expr): Read token here for improved diagnostics.
5262 Don't use op_as_text. Detect bad ':' here.
5263 (reduce): Don't detect bad ':' here.
5264 (op_as_text): Remove.
5265 * cpphash.h (_cpp_test_assertion): Change prototype.
5266 * cpplib.c (_cpp_test_assertion): Change prototype.
5267
5268 2002-04-28 Richard Henderson <rth@redhat.com>
5269
5270 PR c/5154
5271 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5272 (ggc_mark_rtx_children): New.
5273
5274 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5275
5276 PR target/6496
5277 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5278 after call peepholes for UltraSPARC.
5279 (call + jump 64-bit peepholes): Remove.
5280
5281 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5282
5283 PR c/6497
5284 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5285 result as temporary value.
5286
5287 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5288
5289 PR c++/6396
5290 * toplev.c (rest_of_compilation): Only run regrename and copy
5291 propagation if optimizing.
5292
5293 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5294
5295 PR optimization/6475
5296 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5297 register of REGNO_DECL (i).
5298 * Makefile.in (reload1.o): Add $(TREE_H).
5299
5300 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5301
5302 * cppexp.c (lex): Update to use state.skip_eval.
5303 (struct op): Remove prio and flags members.
5304 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5305 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5306 (LEFT_ASSOC): New macro.
5307 (optab): New table of operator priorities and flags.
5308 (SHIFT): Update.
5309 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5310 malloc-ed parser stack.
5311 (reduce): New; reduce the operator stack.
5312 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5313 * cpphash.h (struct op): Predeclare.
5314 (struct cpp_reader): New members op_stack, op_limit.
5315 (struct lexer_state): New member skip_eval.
5316 (_cpp_parse_expr): Update.
5317 (_cpp_expand_op_stack): New.
5318 * cpplib.c (do_if): Update.
5319 * cppinit.c (cpp_create_reader): Create op stack.
5320 (cpp_destroy): And destroy it.
5321 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5322 (TTYPE_TABLE): Correct.
5323
5324 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5325
5326 PR c/6343
5327 * c-decl.c (duplicate_decls): Call merge_weak.
5328 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5329 * output.h (merge_weak): Prototype merge_weak.
5330 * varasm.c (merge_weak): New function.
5331 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5332 Mark RTL with SYMBOL_REF_WEAK.
5333
5334 2002-04-27 Kurt Garloff <garloff@suse.de>
5335
5336 * tree-inline.c (inlinable_function_p): Improve heuristics
5337 by using a smoother function to cut down allowable inlinable size.
5338 * param.def: Add parameters max-inline-insns-single,
5339 max-inline-slope, min-inline-insns that determine the exact
5340 shape of the above function.
5341 * param.h: Likewise.
5342
5343 2002-04-26 Richard Henderson <rth@redhat.com>
5344
5345 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5346 (yyoverflow): Re-add. Set them.
5347 (free_parser_stacks): New.
5348 * c-common.h: Declare it.
5349 * c-lex.c (c_common_parse_file): Call it.
5350
5351 2002-04-26 Richard Henderson <rth@redhat.com>
5352
5353 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5354 for fallthru search.
5355
5356 2002-04-26 Eric Christopher <echristo@redhat.com>
5357
5358 PR optimization/3700
5359 * config/mips/mips.c (mips_issue_rate): Define. New function.
5360 (TARGET_SCHED_ISSUE_RATE): Use.
5361
5362 2002-04-25 David S. Miller <davem@redhat.com>
5363
5364 PR target/6422
5365 * reorg.c (optimize_skip): Do not allow exception causing
5366 instructions to be considered for delay slots.
5367 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5368 (relax_delay_slots): Do not try to consider exception causing
5369 instructions as redundant.
5370
5371 2002-04-26 Richard Henderson <rth@redhat.com>
5372
5373 PR c/5225
5374 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5375
5376 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5377
5378 PR bootstrap/6445
5379 * config/i386/i386.md (untyped_call): Return the value in a float
5380 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5381 TARGET_80387.
5382
5383 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5384
5385 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5386 in unsigned-ness correctly.
5387
5388 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5389
5390 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5391 portable runtime model.
5392
5393 2002-04-26 Richard Henderson <rth@redhat.com>
5394
5395 * c-parse.in (yyoverflow): Revert.
5396
5397 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5398 Richard Henderson <rth@redhat.com>
5399
5400 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5401 result as temporary value.
5402
5403 2002-04-26 Richard Henderson <rth@redhat.com>
5404
5405 PR c/3581
5406 * c-common.c (fix_string_type): Split out of ...
5407 (combine_strings): ... here. Take a varray, not a tree list.
5408 (c_expand_builtin_printf): Use fix_string_type.
5409 * c-common.h: Update decls.
5410 * c-parse.in (string): Remove. Update all uses to use STRING
5411 instead, and not call combine_strings.
5412 (yylexstring): New.
5413 (_yylex): Use it.
5414 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5415 (build_asm_stmt): Likewise.
5416 * objc/objc-act.c (my_build_string): Use fix_string_type.
5417 (build_objc_string_object): Build varray for combine_strings.
5418
5419 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5420
5421 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5422 x86-64.
5423
5424 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5425
5426 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5427 (HAVE_NO_R_OPERAND): Remove.
5428 (HAVE_VALUE): Remove.
5429 (op_to_prio): Update.
5430 (UNARY): Don't alter flags.
5431 (_cpp_parse_expr): want_value used to indicate whether
5432 a number or unary operator is expected next. Distinguish
5433 unary and binary +/-.
5434 (op_as_text): Update for unary operators.
5435
5436 2002-04-25 Richard Henderson <rth@redhat.com>
5437
5438 PR c/2161
5439 * c-parse.in (yyoverflow): New.
5440
5441 2002-04-25 Richard Henderson <rth@redhat.com>
5442
5443 PR c/2098
5444 * c-common.c (shorten_compare): Simplfy conditions leading to
5445 the generation of a warning.
5446
5447 2002-04-25 Richard Henderson <rth@redhat.com>
5448
5449 PR c/2035
5450 * expmed.c (extract_bit_field): Fall through to generic code rather
5451 than aborting on subreg special case.
5452
5453 2002-04-25 David S. Miller <davem@redhat.com>
5454
5455 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5456 for DECL being NULL.
5457
5458 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5459
5460 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5461
5462 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5463
5464 * c-decl.c (grokdeclarator): Remove outdated ??? note
5465 on invalid declaration of flexible array members.
5466
5467 2002-04-25 Richard Henderson <rth@redhat.com>
5468
5469 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5470
5471 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5472
5473 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5474 needed by the compiler, even if they are used as global regs.
5475
5476 2002-04-25 Matt Hiller <hiller@redhat.com>
5477
5478 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5479 functions.
5480 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5481 of the corresponding functions.
5482 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5483 New prototypes.
5484
5485 2002-04-25 Matt Hiller <hiller@redhat.com>
5486
5487 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5488
5489 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5490 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5491 registers, adjust comment accordingly.
5492 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5493 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5494 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5495 for coprocessor registers.
5496 (ADDITIONAL_REGISTER_NAMES): Include
5497 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5498
5499 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5500 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5501 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5502 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5503 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5504
5505 (mips_char_to_class): Adjust comment to include coprocessor
5506 constraint letters.
5507
5508 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5509 New functions.
5510 (mips_reg_names, mips_regno_to_class): Include coprocessor
5511 information.
5512 (mips_sw_reg_names): Ditto, make non-static.
5513 (mips_move_1word): Handle moves to and from coprocessor registers.
5514 (mips_move_2words): Handle moves to and from coprocessor
5515 registers.
5516 (mips_class_max_nregs, mips_register_move_cost): Handle
5517 coprocessor register classes.
5518 (override_options): Initialize mips_char_to_class and
5519 mips_hard_regno_mode_ok properly for coprocessor registers.
5520
5521 * config/mips/mips.md (movdi_internal, movdi_internal2,
5522 movsi_internal1, movsi_internal2): Add constraint-sets for
5523 coprocessor registers.
5524 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5525 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5526 isn't mips.
5527 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5528 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5529 isn't mips.
5530 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5531 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5532 isn't mips.
5533 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5534 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5535 isn't mips.
5536
5537 * doc/tm.texi: Document feature.
5538
5539 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5540
5541 * integrate.c (function_attribute_inlinable_p): Simplify.
5542 Check the table pointer is not NULL.
5543
5544 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5545
5546 * doc/c-tree.texi: Fix typo in introduction.
5547
5548 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5549
5550 * c-common.h (c_common_parse_file): Update.
5551 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5552 * c-lex.c (YYDEBUG): Get from c-lex.h.
5553 (c_common_parse_file): Update.
5554 * c-lex.h (YYDEBUG, yydebug): New.
5555 * c-parse.in (YYDEBUG): Get from c-lex.h.
5556 (c_set_yydebug): Remove.
5557 * c-tree.h (c_set_yydebug): Remove.
5558 * langhooks-def.h (lhd_do_nothing_i): New.
5559 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5560 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5561 * langhooks.c (lhd_do_nothing_i): New.
5562 (lhd_set_yydebug): Remove.
5563 * langhooks.h (struct lang_hooks): Update.
5564 * toplev.c (set_yydebug): New.
5565 (compile_file): Update call to parse_file hook.
5566 (decode_d_option): Update.
5567 objc:
5568 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5569
5570 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5571
5572 * loop.c (load_mems): Don't change the interface of called functions.
5573
5574 * calls.c (expand_call): Take current_function_pretend_args_size
5575 into account when setting argblock for sibcalls.
5576
5577 2002-04-24 Matt Hiller <hiller@redhat.com>
5578
5579 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5580 * c-lex.c: Ditto.
5581
5582 * cpplex.c (skip_line_comment): Process comment one multibyte
5583 character at a time rather than one char at a time, if
5584 appropriate.
5585 (parse_string): Process string one multibyte character at a time
5586 rather than one char at a time, if appropriate.
5587 * c-lex.c (lex_string): Lex and copy multibyte strings
5588 appropriately.
5589 * cpplib.h (cppchar_t): Change to unsigned.
5590
5591 2002-04-24 Richard Henderson <rth@redhat.com>
5592
5593 PR c/3467
5594 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5595 for c99.
5596
5597 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5598
5599 * sh.c (sh_va_arg): If argument was passed by reference,
5600 dereference the pointer.
5601
5602 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5603
5604 * sh.md (divsi3_i4_media): Use match_operand for input values
5605 rather than hard registers.
5606 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5607 unnecessarily through hard registers. Keep copies of pseudo
5608 registers outside of the libcall sequence.
5609
5610 * sh.md (casesi_shift_media): Add modes.
5611
5612 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5613 values in memory.
5614
5615 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5616
5617 * attribs.c (c_common_attribute_table): Move table and handlers
5618 to c-common.c.
5619 (format_attribute_table, lang_attribute_table,
5620 lang_attribute_common): Remove.
5621 (init_attributes): Replace NULL pointers with pointers to the
5622 empty table.
5623 (handle_packed_attribute, handle_nocommon_attribute,
5624 handle_common_attribute, handle_noreturn_attribute,
5625 handle_noinline_attribute, handle_always_inline_attribute,
5626 handle_used_attribute, handle_unused_attribute,
5627 handle_const_attribute, handle_transparent_union_attribute,
5628 handle_constructor_attribute, handle_destructor_attribute,
5629 handle_mode_attribute, handle_section_attribute,
5630 handle_aligned_attribute, handle_weak_attribute,
5631 handle_alias_attribute, handle_visibility_attribute,
5632 handle_no_instrument_function_attribute, handle_malloc_attribute,
5633 handle_no_limit_stack_attribute, handle_pure_attribute,
5634 handle_deprecated_attribute, handle_vector_size_attribute,
5635 vector_size_helper): Move to c-common.c.
5636 * c-common.c (c_common_attribute_table,
5637 handle_packed_attribute, handle_nocommon_attribute,
5638 handle_common_attribute, handle_noreturn_attribute,
5639 handle_noinline_attribute, handle_always_inline_attribute,
5640 handle_used_attribute, handle_unused_attribute,
5641 handle_const_attribute, handle_transparent_union_attribute,
5642 handle_constructor_attribute, handle_destructor_attribute,
5643 handle_mode_attribute, handle_section_attribute,
5644 handle_aligned_attribute, handle_weak_attribute,
5645 handle_alias_attribute, handle_visibility_attribute,
5646 handle_no_instrument_function_attribute, handle_malloc_attribute,
5647 handle_no_limit_stack_attribute, handle_pure_attribute,
5648 handle_deprecated_attribute, handle_vector_size_attribute,
5649 vector_size_helper): Move from attribs.c.
5650 * c-common.h (c_common_attribute_table,
5651 c_common_format_attribute_table): New.
5652 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5653 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5654 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5655 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5656 (LANG_HOOKS_INITIALIZER): Update.
5657 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5658 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5659 * target.h: Update comment.
5660 * tree.c (default_target_attribute_table): Remove.
5661 * tree.h (default_target_attribute_table, format_attribute_table,
5662 lang_attribute_table, lang_attribute_common): Remove.
5663 objc:
5664 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5665 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5666
5667 2002-04-24 Jason Merrill <jason@redhat.com>
5668
5669 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5670 * dwarf2out.c (dwarf_attr_name): Support it.
5671 (gen_array_type_die): Emit it.
5672 (lookup_type_die): No special handling for VECTOR_TYPE.
5673 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5674
5675 2002-04-24 Richard Henderson <rth@redhat.com>
5676
5677 * config/mips/mips.md (movdi_usd): Renumber.
5678
5679 2002-04-24 David S. Miller <davem@redhat.com>
5680
5681 PR target/6420
5682 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5683 32-bit Sparc and current_function_returns_struct is true.
5684
5685 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5686
5687 * loop.c (canonicalize_condition): Use gen_int_mode.
5688
5689 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5690
5691 * config/rs6000/altivec.h: Cleanup file. Add non individual
5692 variants.
5693 (vec_vaddubm): New.
5694 (vec_vadduhm): New.
5695 (vec_vadduwm): New.
5696 (vec_vaddfp): New.
5697 (vec_vaddcuw): New.
5698 (vec_vaddubs): New.
5699 (vec_vaddsbs): New.
5700 (vec_vadduhs): New.
5701 (vec_vadduws): New.
5702 (vec_vaddsws): New.
5703 (vec_vand): New.
5704 (vec_vandc): New.
5705 (vec_vavgub): New.
5706 (vec_vavgsb): New.
5707 (vec_vavguh): New.
5708 (vec_vavgsh): New.
5709 (vec_vavguw): New.
5710 (vec_vavgsw): New.
5711 (vec_vrfip): New.
5712 (vec_vcmpbfp): New.
5713 (vec_vcmpequb): New.
5714 (vec_vcmpequh): New.
5715 (vec_vcmpequw): New.
5716 (vec_vcmpeqfp): New.
5717 (vec_vcmpgefp): New.
5718 (vec_vcmpgtub): New.
5719 (vec_vcmpgtsb): New.
5720 (vec_vcmpgtuh): New.
5721 (vec_vcmpgtsh): New.
5722 (vec_vcmpgtuw): New.
5723 (vec_vcmpgtsw): New.
5724 (vec_vcmpgtfp): New.
5725 (vec_vcmpgefp): New.
5726 (vec_vcfux): New.
5727 (vec_vcfsx): New.
5728 (vec_vctsxs): New.
5729 (vec_vctuxs): New.
5730 (vec_vexptefp): New.
5731 (vec_vrfim): New.
5732 (vec_lvx): New.
5733 (vec_lvebx): New.
5734 (vec_lvehx): New.
5735 (vec_lde): Add vector float variant.
5736 (vec_lvewx): New.
5737 (vec_lvxl): New.
5738 (vec_vlogefp): New.
5739 (vec_vmaddfp): New.
5740 (vec_vmhaddshs): New.
5741 (vec_vmaxub): New.
5742 (vec_vmaxsb): New.
5743 (vec_vmaxuh): New.
5744 (vec_vmaxsh): New.
5745 (vec_vmaxuw): New.
5746 (vec_vmaxsw): New.
5747 (vec_vmaxsw): New.
5748 (vec_vmaxfp): New.
5749 (vec_vmrghb): New.
5750 (vec_vmrghh): New.
5751 (vec_vmrghw): New.
5752 (vec_vmrglb): New.
5753 (vec_vmrglh): New.
5754 (vec_vmrglw): New.
5755 (vec_vminub): New.
5756 (vec_vminsb): New.
5757 (vec_vminuh): New.
5758 (vec_vminsh): New.
5759 (vec_vminuw): New.
5760 (vec_vminsw): New.
5761 (vec_vminfp): New.
5762 (vec_vmladduhm): New.
5763 (vec_vmhraddshs): New.
5764 (vec_msumubm): New.
5765 (vec_vmsummbm): New.
5766 (vec_vmsumuhm): New.
5767 (vec_vmsumshm): New.
5768 (vec_vmsumuhs): New.
5769 (vec_vmsumshs): New.
5770 (vec_vmuleub): New.
5771 (vec_vmulesb): New.
5772 (vec_vmuleuh): New.
5773 (vec_vmulesh): New.
5774 (vec_vmuloub): New.
5775 (vec_mulosb): New.
5776 (vec_vmulouh): New.
5777 (vec_vmulosh): New.
5778 (vec_vnmsubfp): New.
5779 (vec_vnor): New.
5780 (vec_vor): New.
5781 (vec_vpkuhum): New.
5782 (vec_vpkuwum): New.
5783 (vec_vpkpx): New.
5784 (vec_vpkuhus): New.
5785 (vec_vpkshss): New.
5786 (vec_vpkuwus): New.
5787 (vec_vpkswss): New.
5788 (vec_vpkshus): New.
5789 (vec_vpkswus): New.
5790 (vec_vperm): New.
5791 (vec_vrefp): New.
5792 (vec_vrlb): New.
5793 (vec_vrlh): New.
5794 (vec_vrlw): New.
5795 (vec_vrfin): New.
5796 (vec_vrsqrtefp): New.
5797 (vec_vsel): New.
5798 (vec_vslb): New.
5799 (vec_vslh): New.
5800 (vec_vslw): New.
5801 (vec_vsldoi): New.
5802 (vec_vsl): New.
5803 (vec_vslo): New.
5804 (vec_vspltb): New.
5805 (vec_vsplth): New.
5806 (vec_vspltw): New.
5807 (vec_vspltisb): New.
5808 (vec_vspltish): New.
5809 (vec_vspltisw): New.
5810 (vec_vsrb): New.
5811 (vec_vsrh): New.
5812 (vec_vsrw): New.
5813 (vec_vsrab): New.
5814 (vec_vsrah): New.
5815 (vec_vsraw): New.
5816 (vec_vsr): New.
5817 (vec_vsro): New.
5818 (vec_stvx): New.
5819 (vec_stvebx): New.
5820 (vec_stvehx): New.
5821 (vec_stvewx): New.
5822 (vec_stvxl): New.
5823 (vec_vsububm): New.
5824 (vec_vsubuhm): New.
5825 (vec_vsubuwm): New.
5826 (vec_vsubfp): New.
5827 (vec_vsubcuw): New.
5828 (vec_vsububs): New.
5829 (vec_vsubsbs): New.
5830 (vec_vsubuhs): New.
5831 (vec_vsubshs): New.
5832 (vec_vsubuws): New.
5833 (vec_vsubsws): New.
5834 (vec_vsum4ubs): New.
5835 (vec_vsum4sbs): New.
5836 (vec_vsum4shs): New.
5837 (vec_vsum2sws): New.
5838 (vec_vsumsws): New.
5839 (vec_vrfiz): New.
5840 (vec_vupkhsb): New.
5841 (vec_vupkhpx): New.
5842 (vec_vupkhsh): New.
5843 (vec_vupklsb): New.
5844 (vec_vupklpx): New.
5845 (vec_vupklsh): New.
5846 (vec_vxor): New.
5847
5848 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5849
5850 PR c/5430
5851 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5852 added literals from substracted literals.
5853 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5854 (fold) [associate]: Preserve MINUS_EXPR if needed.
5855
5856 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5857
5858 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5859 are obsoleted.
5860
5861 2002-04-23 Tom Tromey <tromey@redhat.com>
5862
5863 * gcc.c: Added --resource. For PR java/6314.
5864
5865 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5866
5867 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5868 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5869 these libraries.
5870
5871 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5872
5873 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5874
5875 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5876
5877 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5878 workaround.
5879 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5880 (ix86_expand_clrstr): Fix typo.
5881 * loop.c (gen_load_of_final_value): New.
5882 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5883 Use it.
5884
5885 2002-04-23 Roger Sayle <roger@eyesopen.com>
5886
5887 * builtins.c (builtin_memset_gen_str): New function.
5888 (expand_builtin_memset): Optimize the case of constant length, but
5889 unknown value.
5890
5891 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5892
5893 * config/rs6000/altivec.h (vec_step): Remove extraneous
5894 parentheses.
5895 (vec_ctu): Cast return.
5896
5897 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5898
5899 PR target/6413
5900 * function.h: (struct function): Add profile_label_no field.
5901 (current_function_profile_label_no): Define.
5902 * function.c: (profile_label_no): New static var.
5903 (expand_function_start): Increment it, and copy to
5904 current_function_profile_label_no.
5905 * output.h (profile_label_no): Delete.
5906 * final.c (profile_label_no): Delete.
5907 (profile_function): Use current_function_profile_label_no.
5908 (final_end_function): Don't increment profile_label_no here.
5909 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5910 profile_label_no with current_function_profile_label_no.
5911 * config/pa/pa.c (current_function_number): Delete.
5912 (pa_output_function_prologue): Don't output profile label here.
5913 (hppa_profile_hook): Use label_no param rather than
5914 current_function_number.
5915 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5916 * config/pa/pa.h: .. here.
5917 (FUNCTION_PROFILER): Output profile label here.
5918
5919 2002-04-22 Eric Christopher <echristo@redhat.com>
5920
5921 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5922 patch of 2002-04-09 due to binutils issues.
5923 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5924
5925 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5926
5927 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5928 constraint to 'o' for m=r and r=m alternatives.
5929 ("*movv8hi_internal1"): Same.
5930 ("*movv16qi_internal1"): Same.
5931 ("*movv4sf_internal1"): Same.
5932
5933 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5934
5935 * rtl.h (RTX_FLAG): New macro.
5936 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5937 * final.c (alter_subreg): Use macro to access rtx flag.
5938 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5939 * print-rtl.c (print_rtx): Use new access macro.
5940
5941 * cse.c (insert): Check rtx code before accessing flag.
5942
5943 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5944 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5945 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5946 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5947 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5948 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5949 find_and_mark_used_attributes, unmark_used_attributes,
5950 add_values_to_cover, simplify_with_current_value,
5951 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5952 copy_rtx_unchanging, main): Use new access macros.
5953
5954 2002-04-22 Tom Rix <trix@redhat.com>
5955
5956 * expmed.c (init_expmed): Generate shifted constant once.
5957
5958 2002-04-22 Zack Weinberg <zack@codesourcery.com>
5959
5960 * c-lex.c (lex_charconst): Call convert to get constant in
5961 proper type; don't just smash the type field.
5962 Fixes PR c/6300.
5963
5964 * config.gcc: Add list of obsolete configurations. Disallow
5965 building these without --enable-obsolete.
5966 * doc/install.texi: Document --enable-obsolete and obsoletion
5967 policy. Mention obsoletion of individual targets in
5968 appropriate places.
5969
5970 2002-04-22 Richard Henderson <rth@redhat.com>
5971
5972 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5973
5974 2002-04-22 Mark Mitchell <mark@codesourcery.com>
5975
5976 PR f/6138.
5977 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5978 (walk_fixup_memory_subreg): Likewise.
5979 (fixup_var_refs_insn): Adjust accordingly.
5980 (fixup_var_refs_1): Likewise.
5981
5982 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
5983
5984 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5985 LIBPATH_ARCH64_SPEC): Define.
5986 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5987 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5988 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5989 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5990
5991 2002-04-22 Joel Sherrill <joel@OARcorp.com>
5992
5993 * gthr-rtems.h: Correct prototypes to remove warnings.
5994
5995 2002-04-22 Richard Henderson <rth@redhat.com>
5996
5997 PR c/6344
5998 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5999
6000 * gcse.c (free_insn_expr_list_list): New.
6001 (clear_modify_mem_tables): Use it. Fix bit set usage.
6002 (canon_list_insert): Use EXPR_LISTs for expressions.
6003 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6004
6005 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6006
6007 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6008 file change and include code to _cpp_pop_buffer.
6009 * cpphash.h (struct pending_option): Predeclare.
6010 (struct cpp_reader): New member next_include_file.
6011 (_cpp_pop_file_buffer): Update.
6012 (_cpp_push_next_buffer): Update, rename.
6013 * cppinit.c (cpp_destroy): Free include chain and pending here.
6014 (cpp_finish_options): Simplify.
6015 (_cpp_push_next_buffer): Rename and clean up.
6016 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6017 Clarify.
6018 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6019
6020 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6021
6022 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6023 being vector signed int.
6024 (vec_andc): Same.
6025 (vec_xor): Add variant for both args being vector signed char.
6026 Remove redundant variant.
6027 (vec_andc): Same.
6028
6029 2002-04-21 David S. Miller <davem@redhat.com>
6030
6031 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6032 compare mode in output RTL.
6033
6034 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6035
6036 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6037 style and formatting of previous patch.
6038
6039 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6040
6041 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6042 flag_pic for ABI_AIX.
6043
6044 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6045
6046 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6047 * cppfiles.c (read_include_file): Similarly.
6048 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6049 uxstrdup ustrchr, ufputs): Similarly.
6050 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6051 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6052 cpp_ideq, parse_identifier, parse_number): Similarly.
6053 * cpplib.c (struct directive, dequote_string, D, run_directive,
6054 cpp_push_buffer): Similarly.
6055 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6056 _cpp_create_definition, check_trad_stringification,
6057 cpp_macro_definition): Similarly.
6058
6059 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6060
6061 * cppmacro.c (funlike_invocation_p): Don't step back
6062 over CPP_EOF.
6063
6064 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6065
6066 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6067 labelno.
6068
6069 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6070
6071 * doc/invoke.texi: Remove Chill references.
6072 * doc/gcc.texi: Update last modified date.
6073
6074 2002-04-20 Kazu Hirata <kazu@hxi.com>
6075
6076 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6077 push and pop. Replace add.l with add.w.
6078
6079 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6080
6081 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6082 multiply instructions for H8/300H case.
6083
6084 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6085
6086 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6087 Bum three instructions from each routine.
6088
6089 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6090
6091 * Makefile.in: Update.
6092 * decl.c (push_c_function_context, pop_c_function_context,
6093 mark_c_function_context): Rename for consistency.
6094 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6095 * c-tree.h (push_c_function_context, pop_c_function_context,
6096 mark_c_function_context): Rename for consistency.
6097 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6098 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6099 * function.c (init_lang_status, save_lang_status,
6100 restore_lang_status, mark_lang_status, free_lang_status):
6101 Move to langhooks.h.
6102 (push_function_context_to, pop_function_context_from,
6103 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6104 Update.
6105 * function.h (init_lang_status, save_lang_status,
6106 restore_lang_status, mark_lang_status, free_lang_status):
6107 Move to langhooks.h.
6108 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6109 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6110 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6111 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6112 (LANG_HOOKS_INITIALIZER): Update.
6113 (lhd_do_nothing_f): New.
6114 * langhooks.h (struct lang_hooks_for_functions): New.
6115 (struct lang_hooks): New hooks.
6116 * langhooks.c (lhd_do_nothing_f): New.
6117 objc:
6118 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6119 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6120
6121 2002-04-19 David S. Miller <davem@redhat.com>
6122
6123 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6124 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6125
6126 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6127
6128 PR optimization/3756
6129 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6130 x = ((int) y < 0) ? cst1 : cst2.
6131
6132 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6133
6134 PR c/6358
6135 * function.c: Reapply patch for c/6358.
6136 (expand_function_end): Copy decl_rtl's mode, not
6137 current_function_return_rtx mode.
6138
6139 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6140
6141 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6142 targets.
6143
6144 2002-04-19 Tom Tromey <tromey@redhat.com>
6145
6146 * doc/install.texi (Specific): Update status of Solaris 2.8.
6147 For PR libgcj/6158.
6148
6149 2002-04-19 Andreas Schwab <schwab@suse.de>
6150
6151 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6152 (PUT_REAL): Restore old definition.
6153
6154 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6155 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6156
6157 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6158 binutils 2.11.2 and higher generate smaller binaries than Sun's
6159 native tools.
6160
6161 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6162
6163 PR c++/6352
6164 * toplev.c (rest_of_compilation): Do not defer functions for which
6165 TREE_SYMBOL_REFERENCED has already been set.
6166
6167 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6168
6169 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6170 alternative.
6171
6172 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6173
6174 * builtins.c: Include langhooks.h.
6175 (lang_type_promotes_to): Remove.
6176 (expand_builtin_va_arg): Use new hook.
6177 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6178 (simple_type_promotes_to): Move to c-typeck.c.
6179 * c-common.h (simple_type_promotes_to): Remove.
6180 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6181 * c-format.c: Include langhooks.h.
6182 (check_format_types): Update.
6183 * c-tree.h (c_type_promotes_to): New.
6184 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6185 (type_lists_compatible_p): Update.
6186 * langhooks-def.h (lhd_type_promotes_to): New.
6187 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6188 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6189 * langhooks.c (lhd_type_promotes_to): New.
6190 * langhooks.h (struct lang_hooks_for_types): New hook.
6191 * tree.h (lang_type_promotes_to): Remove.
6192 objc:
6193 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6194
6195 2002-04-18 Richard Henderson <rth@redhat.com>
6196
6197 * function.c: Revert patch for c/6358.
6198
6199 2002-04-18 Richard Henderson <rth@redhat.com>
6200
6201 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6202 blocks. Handle multiple references to the TRAP block. Handle
6203 non-adjacent THEN and OTHER blocks.
6204
6205 2002-04-18 Richard Henderson <rth@redhat.com>
6206
6207 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6208 crash with no type for by-mode libcalls.
6209
6210 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6211
6212 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6213
6214 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6215 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6216 the register windows.
6217
6218 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6219
6220 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6221 appropriate. Document need for extended precision even when
6222 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6223 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6224 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6225 instead of relying on later syntax error when REAL_WIDTH > 5.
6226 * real.c: Define NE based only on whether or not we have a
6227 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6228 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6229 define GET_REAL and PUT_REAL as simple memcpy operations; no
6230 need to byteswap or round.
6231 Use #error instead of #ifdef-ing out the entire file, for
6232 prompt error detection.
6233
6234 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6235
6236 2002-04-18 David S. Miller <davem@redhat.com>
6237
6238 * config/sparc/sparc.h (BRANCH_COST): Define.
6239
6240 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6241 does it.
6242
6243 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6244
6245 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6246 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6247 propagate_block calls after relaxation loop using new variable
6248 stabilized_prop_flags.
6249
6250 2002-04-18 Richard Henderson <rth@redhat.com>
6251
6252 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6253 (ia64_va_arg): Expect variable sized types by reference.
6254 * config/ia64/ia64-protos.h: Update.
6255 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6256 ia64_function_arg_pass_by_reference.
6257
6258 2002-04-18 Richard Henderson <rth@redhat.com>
6259
6260 * ifcvt.c: Include except.h.
6261 (block_has_only_trap): Break out from find_cond_trap.
6262 (find_cond_trap): Use it. Always delete the trap block.
6263 (merge_if_block): Allow then block null. Be less simplistic about
6264 what insns can end a block.
6265 * Makefile.in (ifcvt.o): Depend on except.h.
6266
6267 * config/ia64/ia64.md (trap, conditional_trap): New.
6268
6269 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6270
6271 PR c/6358
6272 * function.c (assign_parms): Assign hard current_function_return_rtx
6273 register here...
6274 (expand_function_end): ...not here.
6275
6276 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6277
6278 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6279 * c-tree.h (c_incomplete_type_error): New.
6280 * c-typeck.c (require_complete_type, build_component_ref): Update.
6281 (incomplete_type_error): Rename.
6282 * langhooks-def.h (lhd_incomplete_type_error): New.
6283 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6284 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6285 * langhooks.c (lhd_incomplete_type_error): New.
6286 * langhooks.h (struct lang_hooks_for_types): New hook.
6287 * tree.c (size_in_bytes): Use new hook.
6288 * tree.h (incomplete_type_error): Remove.
6289 objc:
6290 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6291
6292 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6293
6294 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6295 TARGET_FLOAT_FORMAT blocks.
6296
6297 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6298
6299 * doc/install.texi (Downloading the source): Do not mention Chill
6300 any longer, but mention Ada.
6301 (Configuration): Do not mention Chill any longer.
6302
6303 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6304
6305 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6306
6307 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6308
6309 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6310 in last patch.
6311
6312 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6313
6314 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6315 instead of unsigned_type.
6316
6317 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6318
6319 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6320 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6321 later.
6322
6323 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6324
6325 * attribs.c (vector_type_node_list): New static variable.
6326 (handle_vector_size_attribute): Use it to avoid generating a
6327 new type node each time we are called.
6328
6329 * combine.c (subst): Avoid trying to make a vector mode subreg of
6330 an integer constant.
6331 (gen_lowpart_for_combine): Likewise.
6332
6333 2002-04-18 Roger Sayle <roger@eyesopen.com>
6334 Jakub Jelinek <jakub@redhat.com>
6335
6336 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6337 for integer constant c (if x has unsigned type or sign bit is not
6338 set in c). This folds the zero/sign extension into the bit-wise and
6339 operation.
6340
6341 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6342
6343 PR middle-end/6205
6344 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6345 otherwise xorps.
6346
6347 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6348
6349 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6350
6351 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6352
6353 * gcc.c (read_specs): Detect and fail if an attempt is made to
6354 rename a spec string to an already existing string.
6355
6356 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6357
6358 * config/s390/s390.c (legitimize_pic_address): Do not generate
6359 illegal address constant without CONST.
6360
6361 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6362
6363 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6364 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6365
6366 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6367
6368 PR optimization/6305
6369 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6370 to make sure previous reloads are taken into account. Generate
6371 better code if one operand is an in-range immediate constant.
6372
6373 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6374
6375 * doc/install.texi (Building): libgcj requires GNU make.
6376
6377 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6378
6379 PR bootstrap/6315
6380 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6381 even if hard quad and register is not floating.
6382 (movtf reg<-mem split): Disallow splitting if hard quad and
6383 register is floating.
6384 (movtf mem<-reg split): Likewise.
6385 * config/sparc/sparc.c (fp_register_operand): New predicate.
6386 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6387
6388 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6389
6390 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6391 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6392 (unprotoize.o): Ditto. Build from protoize.c. Define
6393 UNPROTOIZE on command line.
6394 * protoize.c: Include cppdefault.h. Delete include_defaults.
6395 (in_system_include_dir): Use cpp_include_defaults (defined in
6396 cppdefault.o).
6397 * unprotoize.c: Delete file.
6398
6399 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6400
6401 * config/rs6000/altivec.h (vec_ld): Add array variants.
6402 (vec_lde): Same.
6403 (vec_ldl): Same.
6404
6405 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6406 Aldy Hernandez <aldyh@redhat.com>
6407
6408 * config/rs6000/altivec.h: Define __ALTIVEC__.
6409 (bool): New.
6410 (__pixel): New.
6411 (pixel): New.
6412 (vec_cfux): New.
6413 (vec_vmaddfp): New.
6414 (vec_vsldoi): New.
6415 Add parentheses to all macro arguments.
6416
6417 2002-04-16 Richard Henderson <rth@redhat.com>
6418
6419 PR c++/6320
6420 * except.c (remove_eh_handler): Insert inner regions at beginning
6421 of sibling chain. Refactor expressions.
6422
6423 2002-04-16 Richard Henderson <rth@redhat.com>
6424
6425 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6426 * config/sparc/sol2-gas-bi.h: New file.
6427 * config.gcc (sparc*-solaris): Add it as needed.
6428 * configure.in (AS_SPARC64_FLAG): Remove check.
6429 * config.in, configure: Regenerate.
6430
6431 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6432
6433 2002-04-16 Richard Henderson <rth@redhat.com>
6434
6435 * config/mips/mips.c (override_options): Don't override N32 for
6436 a 64-bit ISA.
6437
6438 PR 6202
6439 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6440 (HILO_delay): Set can_delay false.
6441
6442 2002-04-16 Dale Johannesen <dalej@apple.com>
6443
6444 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6445 instruction addresses.
6446 (rs6000_output_function_epilogue): Likewise.
6447
6448 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6449
6450 * c-parse.in (poplevel, compstmt_start,
6451 compstmt_primary_start): Add ending ';', in accordance
6452 with POSIX.
6453
6454 2002-04-16 Richard Henderson <rth@redhat.com>
6455
6456 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6457 Adjust tm_file order to get TARGET_DEFAULT set properly.
6458 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6459 * doc/install.texi (sparc-solaris): Update.
6460
6461 2002-04-16 Dale Johannesen <dalej@apple.com>
6462
6463 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6464 comparison operands do not match each other or if modes of
6465 conditions do not match result.
6466
6467 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6468
6469 PR target/6305
6470 * config/s390/s390.md (mulsidi3): Set both subregs of the
6471 multiword register.
6472
6473 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6474
6475 * config/rs6000/altivec.h (vec_addc): Type check.
6476
6477 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6478
6479 PR middle-end/6279
6480 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6481
6482 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6483
6484 2002-04-15 Richard Henderson <rth@redhat.com>
6485
6486 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6487 call_really_used_regs too.
6488
6489 2002-04-15 Richard Henderson <rth@redhat.com>
6490
6491 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6492
6493 2002-04-15 David S. Miller <davem@redhat.com>
6494
6495 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6496 as being CLOBBERed.
6497
6498 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6499
6500 PR c/6290
6501 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6502 CONST_VECTOR is { 0, ... 0 }.
6503
6504 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6505
6506 * doc/install.texi (Installing GCC: Configuration): Clarify
6507 the only supported ways to configure gcc.
6508
6509 2002-04-15 Roland McGrath <roland@frob.com>
6510
6511 * config.gcc (alpha*-*-gnu*): New target configuration.
6512 * config/alpha/gnu.h: New file for it.
6513 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6514
6515 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6516
6517 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6518 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6519 * tree.h (expand_start_stmt_expr): Update prototype.
6520 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6521 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6522 on the STMT_EXPR created for the inline function.
6523
6524 2002-04-15 Richard Henderson <rth@redhat.com>
6525
6526 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6527 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6528 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6529 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6530 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6531 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6532 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6533 Define __gnu_linux__, not gnu_linux.
6534 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6535
6536 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6537
6538 Remove Chill front end.
6539 * gcc.c (default_compilers): Remove Chill entries.
6540 * ch: Remove directory.
6541 * doc/frontends.texi: Remove information about Chill.
6542 * doc/sourcebuild.texi: Likewise.
6543 * doc/standards.texi: Likewise.
6544
6545 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6546
6547 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6548 (LONGLONG_STANDALONE): Define.
6549
6550 2002-04-15 David S. Miller <davem@redhat.com>
6551
6552 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6553 Call emit_library_call with LCT_NORMAL.
6554 (sparc_initialize_trampoline): Use LCT_foo instead of
6555 magic constant in emit_library_call invocations.
6556 (sparc64_initialize_trampoline): Likewise.
6557 (sparc_profile_hook): Likewise.
6558 * config/sparc/sparc.md: Likewise.
6559
6560 * config/sparc/sparc.c (sparc_extra_constraint_check):
6561 Fix type of argument 'c'.
6562 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6563 Likewise.
6564
6565 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6566
6567 * diagnostic.h (output_buffer_state): Redefine.
6568 (output_format_decoder): New macro.
6569 (output_prefixing_rule): Likewise.
6570 (output_line_cutoff): Likewise.
6571 (diagnostic_format_decoder): Adjust.
6572 (diagnostic_prefixing_rule): Likewise.
6573 (diagnostic_line_cutoff): Likewise.
6574 (diagnostic_state): Likewise.
6575 (diagnostic_kind_count): Likewise.
6576 (diagnostic_buffer): Now a macro.
6577
6578 * diagnostic.c (diagnostic_buffer): Remove definition.
6579 (output_is_line_wrapping): Adjust.
6580 (set_real_maximum_length): Likewise.
6581 (output_set_maximum_length): Likewise.
6582 (init_output_buffer): Likewise.
6583 (lhd_print_error_function): Likewise.
6584 (output_do_verbatim): Likewise.
6585
6586 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6587
6588 * cpperror.c (print_location): Don't print include chain
6589 if line == 0.
6590 (cpp_begin_message): Update to use DL_ macros.
6591 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6592 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6593 cpp_notice, cpp_notice_from_errno): Remove.
6594 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6595 level.
6596 (cpp_errno): New.
6597 * cppexp.c (CPP_ICE): Remove.
6598 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6599 lex, integer_overflow, _cpp_parse_expr): Update.
6600 * cppfiles.c (read_include_file, find_include_file,
6601 handle_missing_header, _cpp_read_file, remap_filename): Update.
6602 * cpphash.h (enum error_type): Remove.
6603 (_cpp_begin_message): Update.
6604 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6605 cpp_handle_option, cpp_post_options): Update.
6606 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6607 skip_whitespace, parse_identifier, parse_slow, parse_string,
6608 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6609 cpp_interpret_charconst): Update.
6610 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6611 lex_macro_node, do_undef, glue_header_name, parse_include,
6612 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6613 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6614 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6615 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6616 _cpp_pop_buffer, do_diagnostic): Update.
6617 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6618 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6619 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6620 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6621 cpp_notice, cpp_notice_from_errno): Remove.
6622 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6623 level.
6624 (cpp_errno): New.
6625 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6626 collect_args, enter_macro_context, save_parameter, parse_params,
6627 _cpp_create_definition, check_trad_stringification,
6628 cpp_macro_definition): Update.
6629 * cppmain.c (cpp_preprocess_file): Update.
6630 * fix-header.c (read_scan_file): Update.
6631
6632 2002-04-14 Andreas Schwab <schwab@suse.de>
6633
6634 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6635
6636 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6637
6638 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6639
6640 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6641
6642 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6643 not gnu_hurd.
6644
6645 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6646
6647 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6648
6649 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6650
6651 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6652 sparc-elf and sparc-rtems targets.
6653
6654 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6655
6656 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6657 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6658 * arm/linux-elf.h: Likewise.
6659 * cris/aout.h: Likewise.
6660 * cris/linux.h: Likewise.
6661 * i370/linux.h: Likewise.
6662 * i386/gnu.h: Likewise.
6663 * i386/linux-aout.h: Likewise.
6664 * i386/linux-oldld.h: Likewise.
6665 * i386/linux.h: Likewise.
6666 * i386/linux64.h: Likewise.
6667 * ia64/linux.h: Likewise.
6668 * m68k/linux-aout.h: Likewise.
6669 * m68k/linux.h: Likewise.
6670 * mips/linux.h: Likewise.
6671 * pa/pa-linux.h: Likewise.
6672 * pj/linux.h: Likewise.
6673 * rs6000/sysv4.h: Likewise.
6674 * s390/linux.h: Likewise.
6675 * sh/linux.h: Likewise.
6676 * sparc/linux-aout.h: Likewise.
6677 * sparc/linux.h: Likewise.
6678 * sparc/linux64.h: Likewise.
6679 * xtensa/linux.h: Likewise.
6680
6681 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6682
6683 * stmt.c (check_unique_operand_names): Expect operand names to
6684 be strings rather than identifiers. Use simple_cst_equal to
6685 compare them.
6686 (resolve_operand_name_1): Make same identifier to string change here.
6687 * c-parse.in (asm_operand): Convert a named operand into a string.
6688 * cp/parse.y (asm_operand): Likewise.
6689
6690 2002-04-13 Andreas Schwab <schwab@suse.de>
6691
6692 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6693
6694 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6695
6696 Revert these changes:
6697
6698 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6699
6700 PR c++/5571
6701 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6702
6703 2002-04-12 Richard Henderson <rth@redhat.com>
6704
6705 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6706 (sparc*-*-solaris): Clean up header files.
6707 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6708 and plan on generating 64-bit code.
6709 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6710 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6711 * config/sparc/sol2-sld-64.h: Rename ...
6712 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6713 for AS_SPARC64_FLAG not defined.
6714 * config/sparc/sol2-gld-bi.h: New.
6715 * config/sparc/sol2-sld.h: Remove.
6716 * config/sparc/sol26-sld.h: New.
6717 * config/sparc/sol2.h: Tidy comments.
6718 * doc/install.texi: Document sparc-solaris configury changes.
6719
6720 2002-04-12 Richard Henderson <rth@redhat.com>
6721
6722 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6723
6724 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6725 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6726
6727 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6728
6729 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6730
6731 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6732
6733 * pa.c (pa_can_combine_p): Call extract_insn before calling
6734 constrain_operands.
6735
6736 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6737
6738 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6739 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6740 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6741 (CPP_PREDEFINES): Handle __declspec.
6742 * config/i386/t-interix (USER_H): Remove.
6743
6744 2002-04-12 DJ Delorie <dj@redhat.com>
6745
6746 * integrate.c (compare_blocks): Make comparisons safe for when
6747 sizeof(int) < sizeof(char *).
6748 (find_block): Likewise.
6749
6750 2002-04-12 Jan Hubicka <jh@suse.cz>
6751 David Edelsohn <edelsohn@gnu.org>
6752
6753 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6754 registers.
6755 (symbol_ref_operand): New.
6756 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6757 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6758
6759 2002-04-12 Andreas Schwab <schwab@suse.de>
6760
6761 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6762 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6763 overrides the definition in config/svr4.h.
6764
6765 2002-04-12 Eric Norum <eric.norum@usask.ca>
6766
6767 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6768 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6769 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6770 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6771 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6772 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6773 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6774 definitions to config/rtems.h and make the targets more similar.
6775
6776 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6777
6778 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6779 POINTERS_EXTEND_UNSIGNED.
6780 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6781 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6782
6783 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6784 not specified.
6785
6786 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6787
6788 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6789 depends on TARGET_SHMEDIA, not TARGET_SH5.
6790
6791 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6792
6793 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6794 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6795
6796 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6797
6798 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6799 no r0 clobber.
6800
6801 2002-04-12 Andreas Schwab <schwab@suse.de>
6802
6803 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6804
6805 2002-04-12 Richard Henderson <rth@redhat.com>
6806
6807 PR bootstrap/4191
6808 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6809
6810 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6811 modes spanning multiple hard regs.
6812
6813 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6814
6815 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6816
6817 * pa.c (pa_output_function_prologue): Don't accumulate the total
6818 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6819 the portable runtime.
6820 (output_deferred_plabels): Handle 64bit plabels.
6821 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6822 generating pic code using the GAS assembler for object formats that
6823 are not SOM (ie., ELF32 and ELF64).
6824 (output_millicode_call): Check attribute type if attribute length is 28.
6825 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6826 dbr_sequence_length once.
6827 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6828 dbr_sequence_length once.
6829 * pa.h (TARGET_SOM): Define if not defined.
6830 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6831 with GAS and not SOM.
6832 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6833 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6834
6835 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6836
6837 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6838 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6839 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6840 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6841 elfos.h and dbxelf.h values are fine now.
6842 * config/i386/freebsd.h, config/alpha/freebsd.h
6843 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6844
6845 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6846
6847 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6848 or set Acpu or Amachine. Reformat.
6849 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6850 define.
6851 (LINK_SPEC): Do not need to undef.
6852 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6853 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6854 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6855 define.
6856 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6857 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6858 (LINK_SPEC): Do not need to undef.
6859 (DONT_USE_BUILTIN_SETJMP): Do not define.
6860 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6861 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6862 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6863 Remove trailing spaces.
6864 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6865 __ELF__, or set Acpu or Amachine. Reformat.
6866 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6867 define.
6868
6869 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6870
6871 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6872 all other *-*-freebsd* targets.
6873
6874 2002-04-11 Richard Henderson <rth@redhat.com>
6875
6876 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6877
6878 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6879
6880 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6881 Include {cpu}/{cpu}.h thru tm_file.
6882 (alpha*-*-linux*ecoff): Remove target.
6883 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6884 (LINK_SPEC): Remove, is not OS independent.
6885 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6886 (LINK_SPEC): Do not need to #undef any longer.
6887 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6888 any longer.
6889 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6890 __ELF__.
6891 (LINK_SPEC): Moved here from alpha/elf.h.
6892 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6893 SUB_CPP_PREDEFINES.
6894 * config/alpha/linux-ecoff.h: Remove.
6895 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6896 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6897 (CPP_SUBTARGET_SPEC): Do not define.
6898 (LINK_SPEC): Do not need to #undef any longer.
6899 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6900 * config/alpha/vms.h: Likewise.
6901
6902 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6903
6904 * doc/extend.texi: Remove old claim that typedefs cannot have
6905 an alignment attribute.
6906
6907 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6908
6909 PR optimization/6177
6910 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6911 bitpos is 0 and bitsize CONCAT size.
6912
6913 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6914
6915 PR c/6223
6916 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6917
6918 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6919
6920 * config/alpha/freebsd.h: Minor reformatting.
6921 (CPP_SPEC): Define ELF and add cpp_subtarget.
6922 (ASM_SPEC): No longer needed.
6923
6924 2002-04-11 Richard Henderson <rth@redhat.com>
6925
6926 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6927 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6928 (dimode mem/zero splitter): New.
6929
6930 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6931
6932 * config/cris/cris.c (cris_override_options): Tweak error message
6933 for PIC not implemented.
6934
6935 * config/cris/cris.h: Tweak comments related to parameter-passing.
6936
6937 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6938
6939 2002-04-10 Richard Henderson <rth@redhat.com>
6940
6941 * except.c (add_ehl_entry): Allow duplicates after landing pad
6942 creation.
6943
6944 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6945
6946 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6947
6948 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6949
6950 * c-decl.c (c_init_decl_processing): Move generation of
6951 decls for g77_integer_type_node and friends from here ...
6952 * c-common.c (c_common_nodes_and_builtins): ... to here.
6953
6954 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
6955
6956 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6957 is only used as frame pointer when frame_pointer_needed is true.
6958
6959 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
6960
6961 PR target/817
6962 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6963 for the fact that the pool entry uses two words.
6964 (movdf_hard_insn): Similarly. Also, ADR instruction can span
6965 1k bytes.
6966 (movdf_soft_insn): Similarly.
6967 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6968 for the fact that the pool entry uses three words.
6969
6970 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
6971
6972 * config/mips/mips.c (mips_va_arg): When using the struct version
6973 of the EABI va_list, allow arguments in the register save area to
6974 take up less room than a stack argument.
6975
6976 2002-04-10 Richard Henderson <rth@redhat.com>
6977
6978 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6979 if EXPAND_INITIALIZER.
6980
6981 2002-04-09 Richard Henderson <rth@redhat.com>
6982
6983 * config/alpha/alpha.md (movdi_er_maybe_g): New.
6984 * config/alpha/alpha.c (alpha_expand_mov): Use it.
6985
6986 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6987
6988 PR optimization/6233
6989 * rtlanal.c (pure_call_p): New function.
6990 * rtl.h (pure_call_p): Declare.
6991 * loop.c (prescan_loop): Use it to set has_nonconst_call.
6992 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6993
6994 2002-04-09 Eric Christopher <echristo@redhat.com>
6995
6996 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6997 information to .comm directive.
6998
6999 2002-04-09 Richard Henderson <rth@redhat.com>
7000
7001 PR c/5078
7002 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7003
7004 2002-04-09 Richard Henderson <rth@redhat.com>
7005
7006 * basic-block.h (flow_delete_block_noexpunge): Declare.
7007 (expunge_block_nocompact): Declare.
7008 * cfg.c (expunge_block_nocompact): Split out from ...
7009 (expunge_block): ... here.
7010 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7011 (flow_delete_block_noexpunge): Split out from ...
7012 (flow_delete_block): ... here.
7013 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7014 removing dead blocks.
7015 * except.c (exception_handler_labels): Remove.
7016 (exception_handler_label_map): New.
7017 (struct eh_region): Add aka member.
7018 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7019 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7020 (for_each_eh_label, for_each_eh_label_1): New.
7021 (init_eh): Register exception_handler_label_map.
7022 (free_eh_status): Use free_region.
7023 (find_exception_handler_labels): Use the map, not the list.
7024 (remove_exception_handler_label): Likewise.
7025 (maybe_remove_eh_handler): Likewise.
7026 (remove_eh_handler): Use the region aka bitmap.
7027 * except.h (exception_handler_labels): Remove.
7028 (for_each_eh_label): Declare.
7029 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7030 * loop.c (invalidate_loops_containing_label): New.
7031 (find_and_verify_loops): Use it. Use for_each_eh_label.
7032 * sched-rgn.c (is_cfg_nonregular): Use
7033 current_function_has_exception_handlers.
7034
7035 2002-04-09 Richard Henderson <rth@redhat.com>
7036
7037 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7038 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7039 Do not return changed status.
7040 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7041 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7042 New functions that do return changed status.
7043 * sbitmap.h: Update decls.
7044 * gcse.c, lcm.c: Use _cg functions as needed.
7045
7046 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7047
7048 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7049 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7050 * config/sh/embed_bb.c: New file.
7051 * config/sh/embed-elf.h: New file.
7052 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7053 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7054 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7055 __PTRDIFF_TYPE__ .
7056 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7057 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7058 Add subtarget_asm_endian_spec.
7059 (ASM_SPEC): Use subtarget_asm_endian_spec.
7060 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7061 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7062 (WCHAR_UNSIGNED): Define.
7063 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7064 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7065 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7066 Fix value.
7067 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7068 (sh_adjust_cost): Likewise.
7069 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7070 __PTRDIFF_TYPE__ .
7071 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7072 (WCHAR_TYPE_SIZE): Likewise.
7073 (ASM_SPEC): Use subtarget_asm_endian_spec.
7074 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7075 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7076 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7077 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7078 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7079 (USER_LABEL_PREFIX): Don't #undef /#define .
7080 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7081 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7082 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7083 (ASM_SPEC): Likewise.
7084 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7085 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7086 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7087 (LIB2FUNCS_EXTRA): Define.
7088 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7089 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7090 (LIB1ASMFUNCS_CACHE): Define.
7091 (LIB2FUNCS_EXTRA): Redefine empty.
7092
7093 2002-04-08 Richard Henderson <rth@redhat.com>
7094
7095 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7096
7097 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7098
7099 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7100 and optimize for size.
7101 (__do_global_ctors): Fix pointer comparison.
7102 (__do_global_dtors): Likewise.
7103
7104 2002-04-09 David S. Miller <davem@redhat.com>
7105
7106 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7107 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7108 allow reloading pseudos.
7109 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7110 * config/sparc/sparc-protos.h: Declare it.
7111
7112 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7113 unsigned comparison warning.
7114 (output_restore_regs): Mark leaf_function as unused.
7115
7116 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7117
7118 * expr.c (is_aligning_offset): New function.
7119 (expand_expr, case COMPONENT_EXPR): Call it.
7120
7121 2002-04-08 David S. Miller <davem@redhat.com>
7122
7123 PR target/6082
7124 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7125
7126 Make init_priority work on Sparc when using GNU ld.
7127 * config/sparc/linux.h, config/sparc/linux64.h,
7128 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7129 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7130 * config/sparc/sol2-gld.h: New file to do the same.
7131 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7132 sparc/sol2-gld.h to tm_file.
7133
7134 PR optimization/4328
7135 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7136 * doc/md.texi: Document it.
7137 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7138 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7139 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7140 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7141 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7142
7143 2002-04-08 Andreas Jaeger <aj@suse.de>
7144
7145 * stmt.c (expand_asm_operands): Revert last patch from Richard
7146 Henderson.
7147
7148 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7149
7150 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7151 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7152
7153 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7154
7155 * doc/contrib.texi (Contributors): Add David O'Brien.
7156
7157 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7158
7159 * configure.in (auto-build.h): Use target_alias and build_alias
7160 when running configure.
7161 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7162 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7163 * configure: Regenerate.
7164
7165 2002-04-07 David S. Miller <davem@redhat.com>
7166
7167 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7168
7169 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7170
7171 PR 5933
7172 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7173 generating 32-bit pic code.
7174
7175 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7176
7177 * cppinit.c (cpp_create_reader): Initialize
7178 discard_comments_in_macro_exp.
7179 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7180 (cpp_handle_option): Handle "-CC" option.
7181 * cpplex.c (save_comment): If saving a C++ comment in
7182 a directive, convert it to a C comment.
7183 (_cpp_lex_direct): Pass second comment start character to
7184 save_comment to indicate comment type.
7185 * cpplib.c (_cpp_handle_directive): If processing
7186 a "#define" directive and discard_comments_in_macro_exp
7187 is false, re-enable saving of comments.
7188 (lex_macro_node): If discard_comments_in_macro_exp is false,
7189 discard any comments before the macro identifier.
7190 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7191 member.
7192 * cppmacro.c (cpp_get_token): If expanding a macro while
7193 processing a directive, discard any comments we might encounter.
7194 (parse_params): If discard_comments_in_macro_exp is false,
7195 ignore comments in the macro parameter list.
7196 * gcc.c (cpp_unique_options): Add "-CC" option.
7197 (option_map): Map "--comments-in-macros" to "-CC".
7198 * doc/cppopts.texi: Document "-CC" option.
7199 * f/lang-specs.h: Add "-CC" option.
7200 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7201 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7202 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7203 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7204 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7205 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7206
7207 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7208
7209 PR middle-end/6180
7210 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7211
7212 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7213
7214 PR c++/5571
7215 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7216
7217 PR opt/5120
7218 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7219 RTX_UNCHANGING_P for the functions arguments when a tail call
7220 is made.
7221
7222 2002-04-06 Jason Merrill <jason@redhat.com>
7223
7224 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7225 (parse_options_and_default_flags): Set them appropriately.
7226 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7227
7228 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7229
7230 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7231 here.
7232
7233 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7234 semicolon.
7235
7236 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7237 types come in by-reference. Fix typo in comment.
7238
7239 2002-04-05 David S. Miller <davem@redhat.com>
7240
7241 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7242 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7243 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7244 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7245
7246 2002-04-05 David S. Miller <davem@redhat.com>
7247
7248 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7249 are not going to emit return instructions, emit at least a nop
7250 for the sake of sane backtraces.
7251
7252 2002-04-05 Richard Henderson <rth@redhat.com>
7253
7254 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7255
7256 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7257
7258 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7259
7260 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7261
7262 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7263 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7264 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7265
7266 2002-04-05 Andreas Schwab <schwab@suse.de>
7267
7268 * c-convert.c: Include c-common.h.
7269 * Makefile.in (c-convert.o): Updated.
7270
7271 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7272
7273 * mklibgcc.in: Use separate libgcc.map for each multilib.
7274 * Makefile.in (distclean): Don't remove libgcc.map here.
7275
7276 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7277
7278 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7279 genmultilib invocation.
7280
7281 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7282
7283 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7284 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7285 to num_gprs for symmetry.
7286 * config/mips/mips.c: Adjust accordingly.
7287
7288 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7289
7290 * c-common.c (truthvalue_conversion): Rename, update.
7291 * c-common.h (c_common_truthvalue_conversion): New.
7292 * c-convert.c (convert): Update.
7293 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7294 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7295 * c-typeck.c (build_binary_op, build_unary_op,
7296 build_conditional_expr): Update.
7297 * fold-const.c (constant_boolean_node, fold): Use langhook.
7298 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7299 * langhooks.h (struct lang_hooks): New hook.
7300 * stmt.c (expand_decl_cleanup): Use langhook.
7301 * tree.h (truthvalue_conversion): Remove.
7302 objc:
7303 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7304
7305 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7306
7307 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7308 Add rules to make null object file.
7309
7310 2002-04-04 Jim Blandy <jimb@redhat.com>
7311
7312 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7313 macro formal parameter names.
7314
7315 2002-04-04 David S. Miller <davem@redhat.com>
7316
7317 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7318
7319 2002-04-04 Richard Henderson <rth@redhat.com>
7320
7321 PR middle-end/5099
7322 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7323 Support copies into and out of memory. Don't accept allows_reg
7324 and allows_mem as gospel.
7325
7326 2002-04-04 Richard Henderson <rth@redhat.com>
7327
7328 PR opt/6165
7329 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7330 (write_dependence_p): Likewise.
7331
7332 2002-04-04 Richard Henderson <rth@redhat.com>
7333
7334 * predict.c (estimate_bb_frequencies): Do frequency calculation
7335 with a volatile temporary.
7336
7337 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7338
7339 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7340
7341 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7342
7343 PR c++/6119
7344 * final.c (final_start_function): Don't bump profile_label_no here...
7345 (final_end_function): ...but here.
7346
7347 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7348
7349 * config/sparc/sparc.md (pic): New attribute.
7350 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7351 into stack slots.
7352 (split after do_builtin_setjmp_setup): New.
7353
7354 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7355
7356 PR fortran/6106
7357 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7358 change.
7359
7360 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7361
7362 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7363 UNITS_PER_WORD for zero sized aggregates.
7364
7365 2002-04-03 David S. Miller <davem@redhat.com>
7366
7367 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7368 one-character spec for this, just use %(link_gcc_c_sequence).
7369
7370 2002-04-03 David S. Miller <davem@redhat.com>
7371
7372 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7373 handling.
7374
7375 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7376
7377 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7378 (DWARF_FRAME_RETURN_COLUMN): Move.
7379 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7380 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7381 * pa.c (except.h, predict.h): Include.
7382 (FRP): Delete.
7383 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7384 (output_ascii): Add cast.
7385 (store_reg_modify): Revise to add frame notes.
7386 (set_reg_plus_d): Likewise.
7387 (compute_frame_size): Include space for eh data registers in frame if
7388 the current function calls eh_return.
7389 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7390 function calls eh_return. Save eh data registers if the current
7391 function calls eh_return. Fix code to add frame notes. Emit
7392 blockage to prevent insns with frame notes being scheduled in the
7393 delay slot of calls.
7394 (hppa_expand_epilogue): Restore eh data registers and do final stack
7395 adjustment if the current function calls eh_return. Don't add frame
7396 notes.
7397 (output_call): Revise for change in length of call insn. Don't do
7398 return pointer adjustment for an unconditional jump in the delay slot
7399 of a call when using frame notes.
7400 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7401 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7402 (ARG_POINTER_CFA_OFFSET): Define.
7403 * pa.md (return_external_pic): New pattern.
7404 (prologue): Correct formatting. Use return_external_pic if current
7405 function calls eh_return.
7406 (call_internal_symref, call_value_internal_symref,
7407 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7408 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7409 respectively.
7410 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7411
7412 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7413 list of targets to check using "nop" insn.
7414 * configure: Rebuilt.
7415
7416 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7417
7418 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7419
7420 2002-04-03 David S. Miller <davem@redhat.com>
7421
7422 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7423 library sequence passed to the linker.
7424 (LINK_COMMAND_SPEC): Use it.
7425 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7426 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7427 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7428
7429 2002-04-03 Jason Merrill <jason@redhat.com>
7430
7431 * except.c (struct eh_status): Remove protect_list.
7432 (begin_protect_partials, end_protect_partials): Remove.
7433 (add_partial_entry): Remove.
7434 * except.h: Remove prototypes.
7435
7436 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7437 expand_decl_cleanup_eh.
7438
7439 PR c++/5636
7440 * tree.h (CLEANUP_EH_ONLY): New macro.
7441 * stmt.c (expand_decl_cleanup_eh): New fn.
7442 (expand_cleanups): Check CLEANUP_EH_ONLY.
7443 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7444 Use expand_decl_cleanup_eh.
7445 (expand_stmt): Adjust.
7446 * c-common.h: Adjust prototype.
7447
7448 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7449
7450 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7451 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7452 (cris_target_asm_function_epilogue): Ditto.
7453 (cris_initial_frame_pointer_offset): Ditto.
7454 (cris_simple_epilogue): Ditto.
7455 (cris_expand_builtin_va_arg): Variable-size types come in
7456 by-reference.
7457
7458 2002-04-03 David S. Miller <davem@redhat.com>
7459
7460 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7461 little-endian.
7462 (set_fast_math): Correct 'fsr' type.
7463
7464 2002-04-03 Richard Henderson <rth@redhat.com>
7465
7466 PR opt/3569
7467 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7468 * toplev.c (check_global_declarations): Use it.
7469 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7470 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7471 (LANG_HOOKS_DECLS): Add it.
7472 * langhooks.c (lhd_warn_unused_global_decl): New.
7473 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7474 * c-objc-common.c (c_warn_unused_global_decl): New.
7475 * c-tree.h (c_warn_unused_global_decl): Declare.
7476 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7477
7478 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7479
7480 * langhooks-def.h (lhd_set_decl_assembler_name,
7481 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7482 (LANG_HOOKS_INITIALIZER): Update.
7483 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7484 * langhooks.h (struct lang_hooks): New hook.
7485 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7486 (lang_set_decl_assembler_name): Remove.
7487 (init_obstacks): Don't set hook.
7488 (decl_assembler_name): New function.
7489 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7490 (decl_assembler_name): New.
7491 (lang_set_decl_assembler_name): Remove.
7492
7493 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7494
7495 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7496 works properly with .hidden symbols.
7497 * configure: Rebuilt.
7498 * config.in: Rebuilt.
7499 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7500 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7501 properly with .hidden symbols.
7502
7503 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR middle-end/6102
7506 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7507 USE argument.
7508
7509 2002-04-03 Richard Henderson <rth@redhat.com>
7510
7511 PR opt/4120
7512 * sched-rgn.c (sets_likely_spilled): New.
7513 (sets_likely_spilled_1): New.
7514 (add_branch_dependences): Use it.
7515
7516 2002-04-02 Richard Henderson <rth@redhat.com>
7517
7518 PR opt/4311
7519 * loop.h (LOOP_FIRST_PASS): New.
7520 * loop.c (strength_reduce): Mind it when deciding to unroll.
7521 * toplev.c (rest_of_compilation): Set it.
7522
7523 2002-04-02 David S. Miller <davem@redhat.com>
7524
7525 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7526 mems_ok_for_ldd_peep when the order of the loads being examined
7527 is reversed.
7528 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7529 existing comment to increase comprehension of this situation.
7530
7531 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7532
7533 * config/sh/sh.md: Don't use union real_extract.
7534
7535 2002-04-02 Richard Henderson <rth@redhat.com>
7536
7537 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7538
7539 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7540
7541 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7542 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7543 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7544 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7545 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7546 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7547 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7548 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7549 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7550 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7551 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7552 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7553 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7554 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7555 Include as many configury headers via tm_file as possible. This
7556 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7557 * config/openbsd-oldgas.h: New file.
7558 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7559 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7560 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7561 config/i386/i386-coff.h, config/i386/i386-interix.h,
7562 config/i386/iscdbx.h, config/i386/linux-aout.h,
7563 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7564 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7565 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7566 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7567 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7568 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7569 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7570 config/i386/vxi386.h: Do not directly include configury headers.
7571 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7572 Directly include configury headers that are no longer automatically
7573 included by the above headers.
7574 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7575 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7576 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7577 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7578 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7579 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7580 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7581 (TARGET_VERSION): Define.
7582 * config/i386/beos-elf.h, config/i386/freebsd.h,
7583 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7584 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7585 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7586 config/i386/sco5.h, config/i386/sysv4.h
7587 (TARGET_VERSION): Do not need to protect.
7588 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7589 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7590 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7591 config/i386/i386-interix.h, config/i386/linux-aout.h,
7592 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7593 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7594 (YES_UNDERSCORES): Do not define - not needed.
7595 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7596 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7597 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7598 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7599 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7600 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7601 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7602 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7603
7604 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7605 Richard Henderson <rth@redhat.com>
7606
7607 PR c/5484
7608 * function.c (assign_temp): Accept either type or decl argument.
7609 Detect variables whose size is too large to fit into an integer.
7610 * stmt.c (expand_decl): Pass the decl, not the type.
7611
7612 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7613
7614 * protoize.c: Match include directory usage with cppdefault.c.
7615
7616 2002-04-03 Jeffrey A Law (law@redhat.com)
7617 Hans-Peter Nilsson <hp@bitrange.com>
7618
7619 * combine.c (simplify_comparison): Avoid narrowing a comparison
7620 with a paradoxical subreg when doing so would drop signficant bits.
7621
7622 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7623
7624 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7625 if POINTERS_EXTEND_UNSIGNED is defined.
7626
7627 2002-04-02 Richard Henderson <rth@redhat.com>
7628
7629 PR opt/3967
7630 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7631 replace regs.
7632
7633 2002-04-02 Richard Henderson <rth@redhat.com>
7634
7635 * doc/standards.texi: Document required freestanding libc entry points.
7636
7637 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7638
7639 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7640 associated splitter. Remove MQ constraint.
7641 (ctrdi_internal4): Correct CCmode clobber.
7642
7643 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7644
7645 * milli64.S ($$dyncall): New function.
7646 * t-linux (LIB1ASMFUNCS): Revise module list.
7647 (LIB1ASMSRC): Use pa/milli64.S.
7648
7649 2002-04-02 Richard Henderson <rth@redhat.com>
7650
7651 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7652 rename solaris_sys_varargs_h.
7653
7654 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7655
7656 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7657 the same mode as its component.
7658
7659 2002-04-02 Richard Henderson <rth@redhat.com>
7660
7661 PR opt/190
7662 * final.c (this_is_asm_operands): Export.
7663 * output.h (this_is_asm_operands): Declare.
7664 * config/i386/i386.c (print_operand): Error odd asm operands.
7665
7666 2002-04-02 Richard Henderson <rth@redhat.com>
7667
7668 PR opt/420
7669 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7670
7671 2002-04-01 Richard Henderson <rth@redhat.com>
7672
7673 PR target/1538
7674 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7675 * fixinc/fixincl.x: Rebuild.
7676
7677 2002-04-01 Richard Henderson <rth@redhat.com>
7678
7679 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7680 (atomic_alloc, atomic_free): New.
7681 (SIZE, MASK_FOR, PTR_IN): New.
7682 (emergency_reg_state, emergency_reg_state_free): New.
7683 (emergency_labeled_state, emergency_labeled_state_free): New.
7684 (reg_state_alloced, labeled_state_alloced): New.
7685 (alloc_reg_state, free_reg_state): New.
7686 (alloc_label_state, free_label_state, free_label_states): New.
7687 (push, pop, dup_state_stack, free_state_stack): Use them.
7688 (desc_label_state): Likewise.
7689 (uw_frame_state_for): Free label states and state stack.
7690 (uw_update_reg_address): Eliminate warnings.
7691
7692 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7693
7694 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7695 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7696
7697 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7698
7699 * c-decl.c (grokdeclarator): Update.
7700 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7701 * c-tree.h (c_mark_addressable): New.
7702 * c-typeck.c (default_function_array_conversion, build_unary_op,
7703 build_array_ref, convert_for_assignment): Update.
7704 (mark_addressable): Rename.
7705 * calls.c (try_to_integrate, expand_call): Use langhook.
7706 * expr.c (expand_expr): Use langhook.
7707 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7708 * langhooks.h (struct lang_hooks): New hook.
7709 * stmt.c (expand_asm_operands): Use langhook.
7710 * tree.h (mark_addressable): Remove.
7711 objc:
7712 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7713
7714 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7715
7716 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7717 in previous change.
7718
7719 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7720
7721 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7722 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7723
7724 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7725
7726 * c-common.c (unsigned_conversion_warning, convert_and_check,
7727 unsigned_type, signed_type, shorten_compare,
7728 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7729 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7730 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7731 New.
7732 * c-decl.c (grokdeclarator): Update.
7733 * c-format.c (check_format_types): Update.
7734 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7735 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7736 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7737 * convert.c (convert_to_integer): Use new hooks.
7738 * expmed.c (make_tree): Use new hooks.
7739 * expr.c (store_expr): Use new hooks.
7740 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7741 all_ones_mask_p, unextend, fold): Use new hooks.
7742 * langhooks.h (struct lang_hooks_for_types): New hooks.
7743 * tree.h (signed_or_unsigned_type, signed_type,
7744 unsigned_type): Remove.
7745 objc:
7746 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7747 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7748
7749 2002-03-31 Richard Henderson <rth@redhat.com>
7750
7751 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7752 (desc_frgr_mem): Fix reference to f16-f31.
7753
7754 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7755
7756 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7757 RTVEC_ELT): Const-ify.
7758 * varray.h (VARRAY_CHECK): Const-ify.
7759 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7760 ggc_mark_rtvec, ggc_mark): Const-ify.
7761
7762 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7763
7764 * diagnostic.c: Include langhooks-def.h.
7765 * Makefile.in (diagnostic.o): Update.
7766
7767 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7768
7769 * c-common.c (c_unsafe_for_reeval): Rename.
7770 * c-common.h (c_unsafe_for_reeval): Rename.
7771 * c-decl.c (finish_incomplete_decl): Rename.
7772 (c_init_decl_processing): Don't set langhook.
7773 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7774 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7775 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7776 * c-tree.h (finish_incomplete_decl): Rename.
7777 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7778 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7779 (LANG_HOOKS_INITIALIZER): Update.
7780 * langhooks.c (lhd_unsafe_For_reeval): New.
7781 * langhooks.h (struct langhooks): New hooks.
7782 * toplev.c (incomplete_decl_finalize_hook): Remove.
7783 (wrapup_global_declarations): Update.
7784 * tree.c (lang_unsafe_for_reeval): Remove.
7785 (unsafe_for_reeval): Update.
7786 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7787 Remove.
7788 objc:
7789 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7790 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7791
7792 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7793
7794 * diagnostic.c (print_error_function): Remove.
7795 (default_print_error_function): Rename.
7796 (report_error_function): Update.
7797 * diagnostic.h (print_error_function): Remove.
7798 (default_print_error_function): Remove.
7799 * langhooks-def.h (struct diagnostic_context): Predeclare.
7800 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7801 (LANG_HOOKS_INITIALIZER): Update.
7802 * langhooks.h (struct diagnostic context): Predeclare.
7803 (struct lang_hooks): New hook.
7804
7805 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7806
7807 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7808 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7809 !flag_pic.
7810 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7811 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7812 of PIC_OFFSET_TABLE_REGNUM thruout.
7813 * config/rs6000/rs6000.md: Likewise.
7814 * config/rs6000/darwin.h: Likewise.
7815
7816 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7817
7818 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7819 unsigned HOST_WIDE_INT, not unsigned int.
7820
7821 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7822
7823 PR middle-end/6096, middle-end/6098, middle-end/6099
7824 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7825 CODE_LABELs.
7826 (fill_slots_from_thread): Likewise.
7827
7828 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7829
7830 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7831 floating fields in float regs.
7832 (function_arg_record_value_2): Likewise.
7833
7834 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7835
7836 * config/mmix/mmix.md (define_constants): Remove misleading
7837 FIXME. Add MMIX_fp_rO_OFFSET.
7838 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7839 saved rO as part of the pattern. Remove FIXME.
7840 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7841 here, at output-time.
7842
7843 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7844
7845 PR middle-end/6100
7846 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7847 REG_BR_PRED.
7848 (output_v9branch): Likewise.
7849
7850 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7851
7852 * gcc.c: Revert previous patch for now.
7853 * config/i386/djgpp.h: Likewise.
7854
7855 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7856
7857 * config/mmix/crti.asm (_init): Register _fini with atexit.
7858 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7859
7860 2002-03-31 Richard Henderson <rth@redhat.com>
7861
7862 PR target/3997
7863 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7864 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7865
7866 2002-03-31 Richard Henderson <rth@redhat.com>
7867
7868 * libgcc2.c (__bb_exit_func): Make static.
7869
7870 * config/alpha/alpha.md (trap): New.
7871
7872 2002-03-31 Richard Henderson <rth@redhat.com>
7873
7874 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7875 promoted argument types; build trap.
7876 (expand_builtin_trap): New.
7877 (expand_builtin): Use it.
7878 * stmt.c (expand_nl_goto_receivers): Likewise.
7879 * expr.h (expand_builtin_trap): Declare.
7880 * libfuncs.h (LTI_abort, abort_libfunc): New.
7881 * optabs.c (init_optabs): Init abort_libfunc.
7882
7883 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7884
7885 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7886 (LINK_COMMAND_SPEC): ... from here.
7887 (init_gcc_specs): Duplicate it here too, omitting
7888 shared_name in the second copy.
7889 (init_spec): Test for duplicate
7890 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7891
7892 2002-03-30 David S. Miller <davem@redhat.com>
7893
7894 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7895 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7896
7897 2002-03-30 Roger Sayle <roger@eyesopen.com>
7898 Richard Henderson <rth@redhat.com>
7899
7900 * regmove.c (combine_stack_adjustments_for_block): Avoid
7901 emitting a stack adjustment of zero bytes. Let delete_insn
7902 update bb->head.
7903
7904 2002-03-30 Richard Henderson <rth@redhat.com>
7905
7906 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7907 (sparc_emitting_epilogue): New.
7908 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7909 * config/sparc/sparc-protos.h: Update.
7910 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7911 (TARGET_SWITCHES): Update.
7912 * config/sparc/sparc.md (return): Remove.
7913 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7914 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7915 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7916 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7917 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7918 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7919 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7920 Remove MASK_EPILOGUE.
7921 * doc/invoke.texi: Update.
7922
7923 2002-03-30 Daniel Berlin <dan@dberlin.org>
7924
7925 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7926 CPP will start the file for us.
7927
7928 2002-03-30 Richard Henderson <rth@redhat.com>
7929
7930 PR target/5446
7931 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7932 prologue_allocate_stack.
7933 (ia64_single_set): Use insn codes for recognition of special
7934 cases, not rtl matching.
7935 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7936
7937 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7938
7939 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7940
7941 2002-03-30 Richard Henderson <rth@redhat.com>
7942
7943 PR target/6032
7944 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7945 or -fomit-frame-pointer with profiling.
7946 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7947 (FUNCTION_PROFILER): Do nothing.
7948 (PROFILE_HOOK): New.
7949 * config/sparc/sparc.c (sparc_override_options): Don't check
7950 code models for profiling.
7951 (sparc_function_profiler): Remove.
7952 (sparc_profile_hook): New.
7953 * config/sparc/sparc-protos.h: Update.
7954
7955 2002-03-30 Jakub Jelinek <jakub@redhat.com>
7956
7957 PR optimization/6086
7958 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7959 of SUBREG of volatile MEM or because the MEM was mode dependent,
7960 return CLOBBER instead of unmodified SUBREG.
7961
7962 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
7963
7964 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7965 when not optimizing.
7966
7967 * toplev.c (rest_of_compilation): Cann mark_constant_function
7968 only when optimizing.
7969
7970 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7971 are NULL.
7972
7973 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7974 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7975 (try_optimize_cfg): clear all AUX fields.
7976
7977 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7978 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7979 (ix86_address_cost): Be prepared for SUBREGed registers.
7980 (legitimate_address_p): Accept SUBREGed registers.
7981
7982 2002-03-29 Richard Henderson <rth@redhat.com>
7983
7984 PR target/5672
7985 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7986
7987 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7988
7989 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7990 for aggregate and TFmode types.
7991
7992 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
7993
7994 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7995
7996 2002-03-29 Richard Henderson <rth@redhat.com>
7997
7998 PR target/5886
7999 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8000 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8001
8002 2002-03-29 Richard Henderson <rth@redhat.com>
8003
8004 PR target/6041
8005 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8006 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8007 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8008 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8009 conditional.
8010 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8011
8012 2002-03-29 Dale Johannesen <dalej@apple.com>
8013
8014 * loop.c (combine_movables): Do allow combination of pseudos.
8015
8016 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8017
8018 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8019 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8020 No functional change except ...
8021 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8022 * doc/install.texi (*-*-freebsd*): Document port configuration.
8023
8024 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8025
8026 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8027 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8028 Use new hooks.
8029 * builtin-types.def (BT_PTRMODE): Update.
8030 * c-common.c (type_for_size): Rename c_common_type_for_size.
8031 (type_for_mode): Similarly.
8032 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8033 Use new hook.
8034 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8035 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8036 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8037 Redefine.
8038 * c-typeck.c (common_type, comptypes, default_conversion):
8039 Use new hooks.
8040 * calls.c: Include langhooks.h.
8041 (emit_library_call_value_1): Use new hooks. Avoid redundant
8042 calls.
8043 * convert.c: Include langhooks.h
8044 (convert_to_pointer, convert_to_integer): Use new hooks.
8045 * except.c (init_eh): Similarly.
8046 * expmed.c: Include langhooks.h.
8047 (expand_mult_add): Use new hooks.
8048 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8049 try_casesi): Similarly.
8050 * fold-const.c (optimize_bit_field_compare, make_range,
8051 decode_field_reference, fold_truthop, fold): Similarly.
8052 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8053 put_var_into_stack): Similarly.
8054 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8055 LANG_HOOKS_TYPE_FOR_SIZE): New.
8056 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8057 * langhooks.h (lang_hooks_for_types): New hooks.
8058 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8059 * tree.c (get_unwidened, get_narrower): Similarly.
8060 * tree.h (type_for_mode, type_for_size): Remove.
8061 * varasm.c (force_const_mem): Use new hooks.
8062 * utils2.c (nonbinary_modular_operation): Update.
8063 objc:
8064 * objc-act.c (handle_impent): Update.
8065 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8066 Redefine.
8067
8068 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8069
8070 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8071 * config/ia64/ia64.c (basereg_operand): New.
8072 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8073 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8074
8075 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8076
8077 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8078 unwind information when frame_pointer_needed.
8079 (mmix_assemble_integer): Tweak wording in comment.
8080
8081 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8082
8083 * Makefile.in (except.o): Update.
8084 * except.c: Include langhooks.h.
8085 (init_eh): Use langhook.
8086 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8087 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8088 (LANG_HOOKS_INITIALIZER): Update.
8089 * langhooks.h (lang_hooks_for_types): New.
8090 (struct lang_hooks): Add it.
8091 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8092 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8093 config:
8094 * alpha/alpha.c: Include langhooks.h.
8095 (alpha_build_va_list): Use langhook.
8096 * d30v/d30v.c: Include langhooks.h.
8097 (d30v_build_va_list): Use langhook.
8098 * i386/i386.c: Include langhooks.h.
8099 (ix86_build_va_list): Use langhook.
8100 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8101 * s390/s390.c: Include langhooks.h.
8102 (s390_build_va_list): Use langhook.
8103 * stormy16/stormy16.c: Include langhooks.h.
8104 (stormy16_build_va_list): Use langhook.
8105
8106 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8107
8108 PR c++/5964
8109 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8110 attributes.
8111 (length): Compute variable length for branches/calls/jumps here.
8112 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8113 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8114 define branch_type attribute.
8115 (divsi3_sp32): Maximum length is 6 not 7.
8116 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8117 call_address_untyped_struct_value_sp32,
8118 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8119 * config/sparc/sparc.c (empty_delay_slot): New function.
8120 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8121 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8122
8123 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8124
8125 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8126 nonzero_bits if not needed.
8127 (nonzero_bits) [XOR]: Likewise.
8128 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8129 reg_last_set_mode and mode are both MODE_INT, but not equal.
8130 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8131 in nonzero_bits_mode for MODE_INT modes.
8132
8133 2002-03-28 Richard Henderson <rth@redhat.com>
8134
8135 PR target/5715
8136 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8137 to GAS. Correct drift between alternatives.
8138
8139 2002-03-28 Richard Henderson <rth@redhat.com>
8140
8141 PR target/6087
8142 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8143
8144 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8145
8146 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8147 emulation to the linker.
8148
8149 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8150
8151 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8152 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8153
8154 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8155
8156 * combine.c (simplify_and_const_int): Make sure to apply mask
8157 when force_to_mode returns a constant integer. PR3311.
8158
8159 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8160
8161 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8162
8163 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8164
8165 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8166 and Objective-C Dialect Options.
8167
8168 2002-03-28 Richard Henderson <rth@redhat.com>
8169
8170 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8171 comparison should be done vs !=0 not >0 return code. Tidy cases.
8172
8173 2002-03-28 Richard Henderson <rth@redhat.com>
8174
8175 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8176 on to c_expand_body.
8177 * c-tree.h (finish_function): Update decl.
8178 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8179
8180 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8181
8182 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8183
8184 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8185
8186 * rtlanal.c: Include flags.h
8187 (may_trap_p): Do not mark FP operations if trapping
8188 if !flag_trapping_math
8189 * Makefile.in (rtlanal.o): Add dependency on flag.h
8190 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8191
8192 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8193
8194 * mips.md: Use dconst1, not 1.0, as first argument of
8195 REAL_VALUE_LDEXP. Don't use union real_extract.
8196
8197 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8198
8199 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8200 rather than $target. Heed program_prefix and
8201 program_transform_name. Search for gas in cross-compiler case too.
8202 "test -x" rather than "test -f".
8203 (gcc_cv_ld): Likewise.
8204 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8205 (gcc_cv_objdump): Likewise.
8206 * configure: Regenerate.
8207
8208 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8209
8210 * Makefile.in (attribs.o): Update.
8211 * attribs.c: Include langhooks.h.
8212 (decl_attributes): Use langhook.
8213 * c-decl.c (insert_default_attributes): Rename.
8214 * c-tree.h (c_insert_default_attributes): New.
8215 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8216 (LANG_HOOKS_INITIALIZER): Update.
8217 * langhooks.h (struct lang_hooks): New hook.
8218 * tree.h (insert_default_attributes): Remove.
8219 objc:
8220 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8221
8222 2002-03-27 Andreas Schwab <schwab@suse.de>
8223
8224 * config/i386/i386.c (classify_argument): Also check for
8225 QUAL_UNION_TYPE.
8226
8227 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8228
8229 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8230 any more.
8231
8232 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8233
8234 * i960.md (ret): Set PC.
8235 (nonlocal_goto): Fix expander.
8236 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8237 some jump or call.
8238
8239 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8240
8241 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8242 of libcall regions.
8243
8244 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8245
8246 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8247 assigning to BLOCK_FOR_INSN directly.
8248
8249 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8250
8251 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8252
8253 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8254
8255 * c-common.c (c_expand_expr): Fix prototype.
8256 * c-common.h (c_expand_expr): Always declare, update.
8257 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8258 * c-objc-common.c (c_objc_common_init): No global hook.
8259 * expr.c (expand_expr): Use langhook.
8260 * expr.h (enum expand_modifier): Conditionally declare.
8261 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8262 (LANG_HOOKS_INITIALIZER): Update.
8263 * langhooks.c (lhd_expand_expr): New.
8264 * langhooks.h (struct lang_hooks): New hook.
8265 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8266 (lang_independent_init): Don't default hook.
8267 objc:
8268 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8269
8270 2002-03-27 Richard Henderson <rth@redhat.com>
8271
8272 PR target/6054
8273 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8274 TARGET_CONST_GP. Simplify conditions.
8275
8276 2002-03-27 Richard Henderson <rth@redhat.com>
8277
8278 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8279 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8280 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8281
8282 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8283
8284 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8285 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8286 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8287 Remove unnecessary masks.
8288 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8289 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8290 -mwindows, -mdll switches and their negations.
8291
8292 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8293
8294 * gcc-common.c (lang_mark_false_label_stack): Remove.
8295 * ggc.h (lang_mark_false_label_stack): Similarly.
8296
8297 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8298
8299 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8300
8301 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8302 or __rtems_ is defined.
8303
8304 2002-03-26 Richard Henderson <rth@redhat.com>
8305
8306 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8307 if a non-trivial load was emitted.
8308 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8309 in high+extra+low case.
8310
8311 2002-03-26 Richard Henderson <rth@redhat.com>
8312
8313 * config.gcc (sparc*-solaris): Use float_format=sparc.
8314
8315 2002-03-26 Richard Henderson <rth@redhat.com>
8316
8317 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8318 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8319 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8320 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8321 (WINT_TYPE_SIZE): Fix at 32.
8322
8323 2002-03-26 Richard Henderson <rth@redhat.com>
8324
8325 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8326 until after eh landing pad generation.
8327 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8328 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8329
8330 2002-03-26 Richard Henderson <rth@redhat.com>
8331
8332 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8333
8334 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8335
8336 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8337 and warning switches.
8338 (cc1_options): Likewise.
8339
8340 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8341
8342 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8343 Restore more of the signal context. Set no_reg_stack_frame.
8344 * config/ia64/unwind-ia64.c (unw_state_record):
8345 Add no_reg_stack_frame, comments.
8346 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8347 (uw_update_context): Adjust bsp when unwinding from leaf,
8348 but not signal frame.
8349
8350 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8351
8352 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8353
8354 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8355
8356 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8357
8358 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8359
8360 PR target/5621
8361 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8362 "Add a pool_range attribute", which was lost during the ARM/Thumb
8363 merge.
8364
8365 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8366
8367 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8368 a register into the MAC16 accumulator.
8369
8370 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8371
8372 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8373 (Warning Options): Document -Wswitch-enum.
8374 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8375 -Wswitch.
8376 (warn_switch_enum): Define variables.
8377 * flags.h (warn_switch_enum): Declare variables.
8378 * stmt.c (expand_end_case_type): When warn_switch_enum /
8379 -Wswitch-enum, perform switch checks.
8380 Fix PR c/5044.
8381
8382 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8383
8384 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8385 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8386 (reload_muladdsi_compare0_scratch): Delete.
8387
8388 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8389
8390 * doc/install.texi (*-*-freebsd*): Update.
8391
8392 2002-03-26 Richard Henderson <rth@redhat.com>
8393
8394 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8395 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8396
8397 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8398 types from the normal argument frame.
8399
8400 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8401 variable sized objects by reference.
8402 (sparc_va_arg): Receive them by reference too.
8403
8404 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8405
8406 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8407 code to not restoring global registers.
8408
8409 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8410
8411 * Makefile.in (ggc-common.o): Update.
8412 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8413 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8414 * c-tree.h (c_mark_tree): New.
8415 * ggc-common.c: Include langhooks.h.
8416 (gcc_mark_trees): Use new langhook.
8417 * ggc-callbacks.c: Delete file.
8418 * ggc.h (lang_mark_tree): Remove.
8419 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8420 (LANG_HOOKS_INITIALIZER): Update.
8421 * langhooks.h (struct lang_hooks): New hook.
8422 objc:
8423 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8424
8425 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8426
8427 * doc/cpp.texi: Exclude entire Top node from printed manual.
8428 Move option index after directive index. Insert page breaks
8429 before GFDL and concept index. Index environment variables
8430 with command line options.
8431 * doc/cppenv.texi: Use @vtable for environment variable list.
8432 Add paragraph explaining semantics of empty elements in path
8433 variables. Exclude a cross-reference to Fishkill from the
8434 manpage. Remove an unnecessary cross-reference of the entry
8435 right above the referer. Don't use @anchor in text that goes
8436 into manpage.
8437 * doc/cppopts.texi: Cross-reference the environment variables
8438 section, not the specific environment variable, for consistency.
8439
8440 2002-03-25 Richard Henderson <rth@redhat.com>
8441
8442 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8443 anywhere in the block. Don't refer to insns that have been
8444 removed from the chain. Iterate backward through the new insns.
8445 Don't refer to edges that have been removed.
8446
8447 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8448
8449 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8450 test for overflow of constant.
8451
8452 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8453
8454 PR target/2623
8455 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8456 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8457 these patterns on arm_archv4.
8458
8459 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8460
8461 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8462 int".
8463
8464 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8465
8466 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8467 float_handled, float_handler, float_signal, set_float_handler,
8468 and do_float_handler. Set handler for SIGFPE to crash_signal.
8469 * toplev.h: Don't prototype do_float_handler.
8470
8471 * c-lex.c: Fold parse_float into lex_number. Make warning
8472 about portability of hex float constants more informative, and
8473 don't issue it on top of a syntax error.
8474 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8475 their callers.
8476 * real.h: Define REAL_VALUE_ABS here...
8477 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8478 simplify_unary_real, simplify_binary_real, and
8479 simplify_binary_is2orm1 into their callers.
8480 * tree.c: Fold build_real_from_int_cst_1 into caller.
8481
8482 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8483
8484 * tsystem.h: Include float.h here...
8485 * libgcc2.c: ... not here.
8486
8487 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8488
8489 Fixes for: PR bootstrap/3591, target/5676
8490 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8491 defined. Do not disable exceptions or rtti.
8492 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8493 mcore.h. Disable exceptions and rtti, since they are not
8494 supported by EPOC.
8495
8496 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8497
8498 * c-decl.c (maybe_build_cleanup): Remove.
8499 * expr.c (expand_expr): Use langhook.
8500 * langhooks-def.h (lhd_return_null_tree,
8501 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8502 (LANGHOOKS_INITIALIZER): Update.
8503 * langhooks.c (lhd_return_null_tree): New.
8504 * langhooks.h (struct lang_hooks): New hook.
8505 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8506 * tree.h (maybe_build_cleanup): Remove.
8507
8508 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8509
8510 * regrename.c (build_def_use): Move recog_memoized
8511 before extract_insn.
8512
8513 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8514
8515 PR target/6043
8516 * expr.c (emit_group_store): Handle storing into CONCAT.
8517
8518 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8519
8520 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8521 corresponding MATCH_DUP.
8522
8523 2002-03-24 Richard Henderson <rth@redhat.com>
8524
8525 * unroll.c (unroll_loop): Zero label_map.
8526
8527 * gcse.c: Include except.h.
8528 * Makefile.in (gcse.o): Update.
8529
8530 2002-03-24 Richard Henderson <rth@redhat.com>
8531
8532 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8533 Do resolve_unique_section before shared data clause.
8534
8535 2002-03-24 Richard Henderson <rth@redhat.com>
8536
8537 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8538
8539 2002-03-24 Richard Henderson <rth@redhat.com>
8540
8541 * recog.c (peephole2_optimize): Split blocks when EH insns are
8542 generated in the middle of a block. Do global life update if
8543 zapped EH edges.
8544
8545 2002-03-24 Richard Henderson <rth@redhat.com>
8546
8547 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8548
8549 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8550
8551 preprocessor/3951
8552 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8553 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8554 (init_dependency_output): Don't make no_output decision here.
8555
8556 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8557
8558 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8559 warn_switch. Update description.
8560 (expand_end_case_type): Call check_for_full_enumeration_handling
8561 when warn_switch.
8562
8563 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8564
8565 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8566 (m68hc11_split_move): Call it to see if the source and destination
8567 operands use the same direction auto inc/dec mode, otherwise make the
8568 source an offsetable memory operand and generate an add.
8569
8570 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8571
8572 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8573 register for operand 2.
8574 ("*subsi3_zero_extendqi"): Likewise.
8575 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8576 bits so that it is compatible with a pop.
8577 ("*andhi3_gen"): Likewise.
8578 ("xorhi3"): Likewise.
8579
8580 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8581
8582 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8583 -pedantic here...
8584 (cpp_post_options): ... not here.
8585
8586 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8587 Aldy Hernandez <aldyh@redhat.com>
8588
8589 Removal of separate preprocessor cpp0.
8590
8591 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8592 cpp0, install-common): Update.
8593 * c-common.c (flag_preprocess_only): New.
8594 (c_common_init): Preprocess for -E.
8595 * c-common.h (flag_preprocess_only): New.
8596 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8597 * c-objc-common.c (c_init_decl_processing): Exit quickly
8598 for NULL return from c_common_init.
8599 * cpplib.h (cpp_preprocess_file): New.
8600 * cppmain.c (main, general_init, pfile, progname): Remove.
8601 (do_preprocessing): Rename cpp_preprocess_file, don't call
8602 cpp_finish. Don't close stdout here.
8603 (setup_callbacks): Update prototype.
8604 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8605 Update.
8606 * tradcpp.c (main): Ignore -quiet.
8607 objc:
8608 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8609
8610 2002-03-24 Richard Henderson <rth@redhat.com>
8611
8612 PR optimization/5742
8613 * machmode.def: Add inner mode field to complex modes.
8614 * config/mips/mips.c (mips_function_value): Always define. Add
8615 new argument to handle libcalls.
8616 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8617 (FUNCTION_VALUE): Likewise.
8618 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8619 * config/mips/mips-protos.h: Update.
8620
8621 2002-03-23 Richard Henderson <rth@redhat.com>
8622
8623 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8624 * config/sparc/sparc-protos.h: Update.
8625 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8626
8627 2002-03-23 Richard Henderson <rth@redhat.com>
8628
8629 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8630 _start or _init begins the text segment.
8631
8632 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8633
8634 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8635 not HOST_WIDEST_INT.
8636 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8637
8638 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8639
8640 PR java/5489
8641 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8642 operand argument to output_return_instruction.
8643 * arm.c (arm_print_operand, case 'd'): If the operand is
8644 const_true_rtx then just return.
8645 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8646 then abort.
8647
8648 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8649
8650 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8651 (Warning Options): Document -Wswitch-default.
8652 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8653 -Wswitch.
8654 (warn_switch_default): Define variable.
8655 (warn_switch): Update comment.
8656 * flags.h (warn_switch_default): Declare variable.
8657 (warn_switch): Update comment.
8658 * stmt.c (expand_end_case): Check for and, when
8659 warn_switch_no_default, warn of a missing default case.
8660
8661 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8662
8663 * real.h (N): Special case 128 bit doubles.
8664
8665 * combine.c (simplify_comparison): When widening modes, ignore
8666 sign extension on CONST_INTs.
8667
8668 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8669
8670 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8671 passed to adjust_address. Fix comment formatting.
8672
8673
8674 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8675
8676 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8677 Always make REAL_VALUE_TYPE a struct containing an array of
8678 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8679 big it is. Don't declare or use union real_extract.
8680
8681 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8682 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8683 (print_operand), config/arm/arm.c (output_move_double),
8684 config/arm/arm.md (consttable_4, consttable_8),
8685 config/romp/romp.c (output_fpops), config/s390/s390.h
8686 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8687 (xtensa_output_literal): Don't use union real_extract.
8688
8689 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8690 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8691 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8692 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8693 (PRINT_OPERAND): Don't use local version of union
8694 real_extract.
8695
8696 * config/convex/convex.c (check_float_value), config/vax/vax.c
8697 (vax_float_literal), config/m88k/m88k.md (divdf3),
8698 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8699 config/pdp11/pdp11.c (output_move_quad): Don't do host
8700 arithmetic on target floating point quantities.
8701
8702 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8703 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8704
8705 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8706 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8707
8708 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8709 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8710 INFINITY.
8711 * print-rtl.c (print_rtx): Disable code which needs
8712 floating-point emulator.
8713 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8714 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8715 depending on HOST_FLOAT_FORMAT to be defined properly.
8716
8717 * config/1750a/1750a.c (get_double, float_label): Delete.
8718 (print_operand): Delete huge commented-out chunk. Use
8719 REAL_VALUE_TO_DECIMAL.
8720 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8721 functions.
8722 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8723 IEEE_FLOAT_FORMAT.
8724 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8725 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8726 * config/m88k/m88k.c (real_power_of_2_operand,
8727 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8728 real_extract out of the union; run the input through
8729 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8730 from that into the union.
8731 * config/pdp11/pdp11.c (output_move_double): Rearrange
8732 parentheses to make automatic indenter happy.
8733
8734 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8735 Point" and rewrite to describe current situation. Also adjust
8736 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8737 match code.
8738 * doc/rtl.texi: Adjust cross reference.
8739
8740 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8741
8742 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8743 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8744 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8745 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8746 prevent use of sp as a reload register.
8747 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8748 non_acc_reg_operand.
8749 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8750 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8751 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8752 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8753
8754 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8755
8756 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8757 * cpplex.c (unterminated): Delete.
8758 (parse_string): No string literal may extend over multiple
8759 lines. Suppress the error when preprocessing assembly.
8760 * cppmain.c (scan_translation_unit): Strings are single-line.
8761
8762 * doc/cpp.texi: Update to match.
8763
8764 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8765
8766 PR optimization/5854
8767 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8768 Shut up warnings.
8769 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8770 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8771 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8772 const0 if scratch register was not allocated.
8773 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8774 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8775 with GEN_INT (...).
8776 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8777 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8778 with GEN_INT (...) everywhere. Remove constraints in define_split
8779 patterns.
8780 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8781 require scratch register for setting 0 into regs/non-pushable memory.
8782
8783 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8784
8785 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8786 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8787
8788 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8789
8790 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8791 * cppinit.c (cpp_create_reader): On by default.
8792 (cpp_handle_option): Handle -W[no-]endif-labels.
8793 (cpp_post_options): Also enable if -pedantic.
8794 * cpplib.c (do_else): Use it.
8795 (do_endif): Likewise.
8796 * doc/cppopts.texi: Document new option.
8797 * doc/invoke.texi: Document new option.
8798
8799 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8800
8801 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8802 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8803
8804 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8805
8806 * flow.c (calculate_global_regs_live): Clear aux fields of
8807 ENTRY and EXIT.
8808
8809 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8810
8811 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8812 REG or MEM subregs, pass rtx * instead of rtx to it.
8813 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8814 rtx * instead of rtx to alter_subreg.
8815 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8816 * config/pj/pj.c (pj_output_rval): Likewise.
8817
8818 2002-03-22 Richard Henderson <rth@redhat.com>
8819
8820 PR target/3177
8821 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8822 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8823 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8824 (ia64_expand_prologue): Look at int_regs, not words, for number
8825 of incomming int regs.
8826
8827 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8828
8829 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8830
8831 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8832
8833 * toplev.c (flag_loop_optimize, flag_crossjumping):
8834 New static variables.
8835 (rest_of_compilation): Conditionalize crossjumping and
8836 loop optimizer.
8837 (parse_options_and_default_flags): Default loop_optimize and
8838 crossjumping.
8839 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8840 * invoke.texi (crossjumping, loop-optimize): Document.
8841
8842 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8843
8844 * real.c (eiisneg): Move outside #ifdef NANS.
8845
8846 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8847
8848 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8849 frequencies match; avoid match on different loop depths.
8850 (try_crossjump_to_bb): Kill tests that no longer brings time
8851 savings.
8852 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8853 updating code.
8854 (split_edge): Likewise.
8855
8856 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8857 variable.
8858
8859 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8860 * cfgrtl.c: Include insn-config.h
8861 (split_block) Dirtify block in presence of conditional execution
8862
8863 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8864
8865 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8866 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8867 (function_arg): Constify CUMULATIVE_ARGS.
8868 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8869 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8870 (UNITS_PER_DOUBLE): New macro.
8871 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8872 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8873 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8874 fp_regs and stack_words.
8875 (EABI_FLOAT_VARARGS_P): New macro.
8876 * config/mips/mips.c (struct mips_arg_info): New.
8877 (mips_arg_info): New function.
8878 (function_arg_advance): Use it. Add adjustment instructions here
8879 rather than in function_arg.
8880 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8881 for VOIDmode at the beginning of the function.
8882 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8883 (function_arg_pass_by_reference): Likewise.
8884 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8885 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8886 (mips_va_start): Likewise. Use the new stack_words field of
8887 CUMULATIVE_ARGS to set up overflow area. Reformat.
8888 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8889 doubles and other types, aligning the overflow pointer for non-doubles
8890 too. Remove some code duplication. Replace hard-coded constants.
8891
8892 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8893
8894 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8895 (CLASS_UNITS): Undefine.
8896 (CLASS_MAX_NREGS): Use FP_INC.
8897 * config/mips/mips.c (compute_frame_size): Likewise.
8898 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8899
8900 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8901
8902 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8903 prototype, and handle lexing numbers and identifiers.
8904 (parse_identifier): Update to new form of parse_slow.
8905 (parse_number): Fast path only, use parse_slow otherwise.
8906 (_cpp_lex_direct): Update calls to parse_number.
8907
8908 2002-03-21 DJ Delorie <dj@redhat.com>
8909
8910 * bb-reorder.c (make_reorder_chain_1): Protect against
8911 when redundant edges are omitted.
8912 * predict.c (dump_prediction): Likewise.
8913
8914 2002-03-21 Richard Henderson <rth@redhat.com>
8915
8916 PR target/5996
8917 * fixinc/inclhack.def (solaris_stdio_tag): New.
8918 * fixinc/fixincl.x: Regenerate.
8919
8920 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8921
8922 PR c/5597
8923 * c-typeck.c (process_init_element): Flag non-static
8924 initialization of a flexible array member as illegal.
8925
8926 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8927
8928 * config/rs6000/t-linux64: New.
8929 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8930 t-ppccomm. Use t-rs6000 and t-linux64.
8931 (powerpc64-*-gnu* <tmake_file>): Likewise.
8932 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8933 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8934 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8935
8936 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8937
8938 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8939 flag_really_no_inline instead of optimize == 0.
8940
8941 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8942
8943 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8944
8945 * flags.h (flag_really_no_inline): New.
8946
8947 * c-common.c (c_common_post_options): Initialize
8948 flag_really_no_inline.
8949
8950 * toplev.c (flag_really_no_inline): New.
8951
8952 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8953
8954 * config/avr/avr.md (length): Fix length computation for
8955 conditional branches.
8956
8957 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
8958
8959 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8960 sdbout.o, profile.o): Update.
8961 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8962 langhook.
8963 * c-common.h (gettags): Move here from tree.h.
8964 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8965 insert_block, getdecls, kept_level_p, global_bindings_p): New.
8966 * dbxout.c (dbxout_init): Use getdecls langhook.
8967 * expr.c (expand_expr): Use insert_block langhook.
8968 * fold-const.c: Include langhooks.h.
8969 (fold_range_test, fold_binary_op_with_conditional_arg,
8970 fold): Use global_bindings_p langhook.
8971 * integrate.c (expand_inline_function): Use insert_block langhook.
8972 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8973 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8974 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8975 LANG_HOOKS_GETDECLS): New.
8976 (LANG_HOOKS_INITIALIZER): Update.
8977 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8978 langhook.
8979 * langhooks.h (struct lang_hooks_for_decls): New.
8980 (struct lang_hooks): Update.
8981 * profile.c: Include langhooks.h.
8982 (output_func_start_profiler): Use new langhooks.
8983 * sdbout.c: Include langhooks.h.
8984 (sdbout_init, sdbout_finish): Use getdecls langhook.
8985 * stmt.c: Include langhooks.h.
8986 (expand_fixup, fixup_gotos): Use new langhooks.
8987 * stor-layout.c: Include langhooks.h.
8988 (variable_size): Use global_bindings_p langhook.
8989 * toplev.c (compile_file): Use getdecls langhook.
8990 * tree-inline.c (remap_block): Use insert_block langhook.
8991 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8992 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8993
8994 2002-03-21 Richard Henderson <rth@redhat.com>
8995
8996 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8997 constants in .data when -fpic.
8998
8999 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9000
9001 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9002 where appropriate.
9003
9004 2002-03-21 Tom Tromey <tromey@redhat.com>
9005
9006 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9007
9008 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9009
9010 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9011
9012 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9013
9014 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9015 Richard Henderson <rth@redhat.com>
9016
9017 PR c/5354
9018 * c-common.c (c_expand_expr): Preserve result of a statement
9019 expression if needed.
9020
9021 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9022
9023 PR bootstrap/4195
9024 * genrecog.c (maybe_both_true_mode): Remove.
9025 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9026 * machmode.def (Pmode): Likewise.
9027
9028 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9029
9030 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9031 (nonlocal_mentioned_p_1): New function.
9032 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9033 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9034 (mark_constant_function): Recognize pure functions.
9035 * rtl.h (global_reg_mentioned_p): New prototype.
9036 * rtlanal.c (global_reg_mentioned_p,
9037 global_reg_mentioned_p_1): New function.
9038
9039 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9040
9041 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9042 UNIX assert.h.
9043 * fixinc/fixincl.x: Regenerate.
9044
9045 2002-03-20 Jason Merrill <jason@redhat.com>
9046
9047 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9048
9049 2002-03-20 Michael Meissner <meissner@redhat.com>
9050
9051 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9052 -fstrict-aliasing.
9053
9054 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9055
9056 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9057 ".literal_position" directive before the constant pool.
9058
9059 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9060
9061 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9062 Add Craig Rodrigues.
9063 Add Brad Lucier to testers.
9064
9065 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9066
9067 PR target/4792
9068 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9069 to if_then_else.
9070 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9071 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9072 instead of insn_extract.
9073
9074 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9075
9076 PR bootstrap/4192
9077 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9078
9079 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9080 stmt if some case has been output.
9081
9082 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9083
9084 PR c/5972
9085 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9086 movsfcc_1, movdfcc_1): Add %O2.
9087 * config/i386/i386.c (print_operand): Handle %ON.
9088 Print . before float condition codes in Sun as cmov syntax.
9089 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9090 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9091 no longer true.
9092
9093 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9094
9095 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9096 return instruction if PC was popped.
9097
9098 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9099
9100 * config/xtensa/xtensa.md: Remove unused type attributes.
9101 (adddi_carry, subddi_carry): Change type attribute to "multi".
9102
9103 2002-03-19 Dale Johannesen <dalej@apple.com>
9104
9105 PR optimization/5999, middle-end/5731
9106 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9107 multiplications by reciprocals.
9108
9109 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9110
9111 * Makefile.in: Update.
9112 * c-common.c: Include langhooks.h.
9113 (inline_forbidden_p): Use new hook.
9114 * diagnostic.c: Include langhooks.h.
9115 (format_with_decl, announce_function,
9116 default_print_error_function): Use new hook.
9117 * dwarf2out.c (dwarf2_name): Use new hook.
9118 * function.c: Include langhooks.h.
9119 (init_function_start): Use new hook.
9120 * langhooks-def.h (lhd_decl_printable_name): New.
9121 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9122 (LANGHOOKS_INITIALIZER): Update.
9123 * langhooks.c (lhd_decl_printable_name): New.
9124 * langhooks.h (struct lang_hooks): New hook.
9125 * toplev.c (decl_name, decl_printable_name): Remove.
9126 (open_dump_file): Use new hook.
9127 (process_options): Remove old hook.
9128 * tree.h (decl_printable_name): Remove.
9129 objc:
9130 * objc-act.c (objc_init): Remove old hook.
9131 (objc_printable_name): Export.
9132 * objc-act.h (objc_printable_name): New.
9133 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9134
9135 2002-03-19 Jim Blandy <jimb@redhat.com>
9136
9137 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9138 the start_source_file debug hook, not the current line number.
9139
9140 2002-03-19 Richard Henderson <rth@redhat.com>
9141
9142 * flow.c (EH_USES): Provide default.
9143 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9144 * doc/tm.texi (EH_USES): New.
9145
9146 * config/ia64/ia64.c (ia64_eh_uses): New.
9147 * config/ia64/ia64-protos.h: Update.
9148 * config/ia64/ia64.h (EH_USES): New.
9149
9150 2002-03-19 Richard Henderson <rth@redhat.com>
9151
9152 * varasm.c (output_constant_def): Fix stupid typo.
9153
9154 2002-03-19 Richard Henderson <rth@redhat.com>
9155
9156 PR 5879
9157 * except.c (current_function_has_exception_handlers): New.
9158 * except.h: Declare it.
9159 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9160 Combine tests that disable all sibcalls for the function.
9161
9162 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9163
9164 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9165 for INTEGER_CST.
9166
9167 2002-03-19 Richard Henderson <rth@redhat.com>
9168
9169 PR 5977, 5991
9170 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9171 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9172
9173 2002-03-19 Jim Blandy <jimb@redhat.com>
9174
9175 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9176 name, even if the replacement list contains no tokens, as required
9177 by Dwarf.
9178
9179 2002-03-19 Jason Merrill <jason@redhat.com>
9180
9181 * varasm.c (globalize_decl): Get the name from the RTL, not
9182 DECL_ASSEMBLER_NAME.
9183
9184 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9185
9186 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9187
9188 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9189 subdi_carry): Define.
9190
9191 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9192
9193 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9194 about -fpic/-fPIC if extra_warnings set.
9195
9196 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9197
9198 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9199 TREE_STRING_POINTER.
9200 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9201
9202 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9203
9204 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9205 in favor of SP if FRAME_POINTER_REQUIRED is false.
9206
9207 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9208
9209 * emit-rtl.c (gen_int_mode): New function.
9210 * rtl.h: Prototype for it.
9211 * combine.c (make_extraction, simplify_comparison), expmed.c
9212 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9213 (convert_modes, store_field), optabs.c (expand_fix),
9214 simplify-rtx.c (neg_const_int, simplify_unary_real),
9215
9216 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9217 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9218
9219 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR c/5656
9222 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9223 convert_parm_for_inlining.
9224 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9225 Define.
9226 * langhooks-def.h: Likewise.
9227 * objc/objc-lang.c: Likewise.
9228 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9229 function.
9230 * tree-inline.c (initialize_inlined_parameters):
9231 Call convert_parm_for_inlining lang hook if needed.
9232 * c-typeck.c (c_convert_parm_for_inlining): New function.
9233 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9234
9235 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9236
9237 * calls.c (precompute_arguments): Do not assume that temporaries
9238 can be destroyed after expanding the argument.
9239 (expand_call): Likewise.
9240
9241 2002-03-15 Eric Christopher <echristo@redhat.com>
9242
9243 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9244 Fix register preference on last change.
9245 * config/mips/mips.c (mips_return_in_memory): New function.
9246 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9247 * config/mips/mips-protos.h: Declare.
9248 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9249 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9250
9251 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9252
9253 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9254 a register too.
9255 (anddi3, iorsi3): Likewise.
9256
9257 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9258 use %gprel for symbols that are going to be placed in linkonce
9259 sections.
9260
9261 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9262 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9263 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9264 not needed. Disregard leaf_function_p().
9265 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9266 mips16 frame pointer.
9267 * config/mips/mips.md (store ra): Only to small SP offsets.
9268 2001-08-22 Graham Stott <grahams@redhat.com>
9269 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9270 return a REG rtx for the return address register.
9271
9272 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9273
9274 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9275 constant-pool addresses as "mode-dependent".
9276 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9277
9278 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9279
9280 PR target/5740
9281 * expr.c (emit_group_load): Use extract_bit_field if
9282 needed for CONCAT arguments.
9283
9284 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9285
9286 PR target/4863
9287 * arm.md (tablejump): Make this a define_expand. For PIC add the
9288 offset to the base of the table.
9289 (thumb_tablejump): Matcher for Thumb tablejump insn.
9290 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9291 as the difference of two labels.
9292 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9293 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9294 tables in the code.
9295 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9296 * arm.c (get_jump_table_size): If the table is not in the text
9297 section, return zero.
9298
9299 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9300
9301 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9302 of gen_rtx_SUBREG.
9303 (arm_reload_out_hi): Use gen_lowpart instead of
9304 gen_rtx_SUBREG to access QImode components.
9305 * config/arm/arm.md: Disable zero_extend split for QImode
9306 subregs in BIG_ENDIAN mode.
9307 (storehi_bigend): Match use of least significant byte.
9308 (storeinthi): Remove extraneous SUBREG.
9309 Add missing construction of operands[2].
9310 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9311 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9312 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9313
9314 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9315
9316 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9317 any_operand.
9318
9319 2002-03-17 Richard Henderson <rth@redhat.com>
9320
9321 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9322 explicitly.
9323
9324 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9325
9326 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9327 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9328
9329 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9330
9331 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9332
9333 * predict.c (estimate_bb_frequencies): Delete unused variables.
9334
9335 2002-03-17 Richard Henderson <rth@redhat.com>
9336
9337 * config/ia64/ia64.c (ia64_attribute_table): Move before
9338 targetm definition. Make static.
9339
9340 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9341
9342 * c-common.h (yyparse, c_common_parse_file): New.
9343 * c-lang.c: Include c-common.h.
9344 (LANG_HOOKS_PARSE_FILE): Redefine.
9345 * c-lex.c: Include c-common.h.
9346 (yyparse): Rename c_common_parse_file. Call yyparse.
9347 * c-parse.in (yyparse): Remove macro.
9348 * c-tree.h (yyparse_1): Remove.
9349 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9350 (LANG_HOOKS_INITIALIZER): Update.
9351 * langhooks.h (struct lang_hoooks): New hook parse_file.
9352 * toplev.c (compile_file): Use parse_file hook.
9353 * tree.h (yyparse): Remove.
9354 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9355
9356 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9357
9358 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9359 float_truncate, not fix.
9360 ("*truncdfsf2_real"): Ditto.
9361 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9362
9363 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9364
9365 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9366
9367 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9368 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9369 where appropriate. Make the second reference to
9370 leaf_function_p a function call, as intended. Reindented.
9371
9372 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9373 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9374
9375 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9376 add register to non-constant into sp.
9377
9378 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9379 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9380 (mips16_gp_pseudo_rtx): Lose.
9381 (INIT_EXPANDERS): Deleted.
9382 * config/mips/mips.c (mips_init_machine_status): New.
9383 (mips_free_machine_status): New.
9384 (mips_mark_machine_status): New.
9385 (override_options): Set them.
9386 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9387 (struct machine_function): ... new. Replaced all references.
9388 (mips_add_gc_roots): Don't mark them.
9389 (embedded_pic_fnaddr_reg): New, extracted from...
9390 (embedded_pic_offset): ... here.
9391 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9392 (movsi): Likewise.
9393
9394 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9395
9396 * cppinit.c: Revert -MD removal.
9397
9398 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9399
9400 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9401 soft registers by default for 68HC12.
9402 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9403 when compiling with -fomit-frame-pointer.
9404 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9405 (expand_epilogue): Likewise.
9406 (m68hc11_gen_rotate): Use exg when rotating by 8.
9407
9408 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9409
9410 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9411 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9412 (splits): Remove unused add splits.
9413 ("*addhi3_68hc12"): Tune constraints.
9414 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9415 constant fits in 8-bits and D is dead use abx/aby instructions.
9416 ("*addhi3"): Remove extern declaration of ix_reg.
9417 ("*subsi3"): Optimize and provide new split.
9418 ("subhi3"): Cleanup.
9419 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9420 (arith splits): For 68hc12 save the address register on the stack
9421 and do the arithmetic operation with a pop.
9422
9423 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9424
9425 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9426 allocating QImode in address registers.
9427 ("*movqi_m68hc11"): Likewise.
9428
9429 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9430
9431 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9432
9433 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9434
9435 * cppinit.c (print_help): Display -MD and -MMD.
9436 Don't display usage string. Update assertion syntax and
9437 typo.
9438 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9439 (cpp_handle_option): Update.
9440
9441 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9442
9443 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9444 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9445 and define it so that regardless of target CPU size,
9446 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9447 of "int" rather than "long."
9448
9449 2002-03-15 Richard Henderson <rth@redhat.com>
9450
9451 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9452 size as a tree.
9453
9454 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9455
9456 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9457 ("tstqi" split): Avoid using memory for tstqi on address register.
9458 (splits): Remove constraints.
9459 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9460 ("cmpdf", "cmpsf"): Remove since not used.
9461 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9462 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9463
9464 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9465
9466 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9467 ("neghi2"): Tighten constraints.
9468 ("one_cmplsi2"): Optimize and simplify split.
9469 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9470
9471 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9472
9473 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9474 and split of AND operation to clear the upper bits.
9475 ("*logicalsi3_zextqi"): Likewise.
9476 ("*logicallhi3_zexthi_ashift8"): Likewise.
9477 ("*logicalsi3_silshr16"): Likewise.
9478 ("logicalsi3_silshl16"): Likewise.
9479 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9480
9481 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9482
9483 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9484 (m68hc11_indirect_p): New function.
9485 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9486 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9487 TARGET_M6812.
9488 (asm_print_register): Likewise.
9489 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9490 (m68hc11_indirect_p): Declare.
9491 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9492 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9493 (TARGET_SWITCHES): New option -mrelax.
9494 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9495 destination.
9496 ("iorsi3", "xorsi3"): Likewise.
9497 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9498 ("*andhi3_mem"): New to handle destination in memory with bclr
9499 and a scratch register.
9500 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9501 ("*andhi3_const"): New when operand2 is constant.
9502 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9503 ("*andhi3_gen"): Cleanup of the old "andhi3".
9504 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9505 ("xorqi3"): Update constraints.
9506
9507 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9508
9509 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9510 for reg_equiv_memory_loc when the operand is a register that does
9511 not get a hard register (stack location).
9512 (tst_operand): After reload, accept all memory operand.
9513 (symbolic_memory_operand): Fix detection of symbolic references.
9514 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9515 accept symbols and any constant.
9516
9517 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9518
9519 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9520 note on the insn that sets the soft frame register.
9521 (must_parenthesize): ix and iy are also reserved names.
9522 (print_operand_address): One more place where parenthesis are required
9523 to avoid confusion with register names.
9524 (m68hc11_gen_movhi): Allow push of stack pointer.
9525 (m68hc11_check_z_replacement): Fix handling of parallel with a
9526 clobber.
9527 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9528 the replacement register is.
9529 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9530 and D8_REGS classes.
9531 (MODES_TIEABLE_P): All modes are tieable except QImode.
9532
9533 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9534
9535 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9536 (___subdi3): Likewise.
9537 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9538 (__map_data_section): Optimize 68hc11 case.
9539
9540 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9541
9542 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9543 than a shift to avoid adding a register with itself.
9544 (m68hc11_memory_move_cost): Take into account NO_REGS.
9545 (m68hc11_register_move_cost): Update and use memory move cost
9546 for soft registers.
9547 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9548 it gives more opportunities to cse to optimize.
9549 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9550 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9551
9552 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9553
9554 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9555 * c-common.def (CLEANUP_STMT): New tree node.
9556 * c-common.h (CLEANUP_DECL): New macro.
9557 (CLEANUP_EXPR): Likewise.
9558 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9559 * expr.c (expand_expr): Tidy.
9560 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9561 * tree-inline.c (initialize_inlined_parameters): Clean up
9562 new local variables.
9563
9564 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9565
9566 PR bootstrap/4128
9567 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9568 before movrXX only, use reg_overlap_mentioned_p.
9569 Only special case NE if just one insn can be generated.
9570
9571 2002-03-15 Jason Merrill <jason@redhat.com>
9572
9573 * varasm.c (assemble_variable): Call resolve_unique_section before
9574 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9575 of error_mark_node.
9576
9577 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9578
9579 PR target/5170
9580 * arm.md (split pattern for thumb shiftable immediates): Add comment
9581 explaining non-obvious test.
9582
9583 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9584
9585 PR target/5712
9586 * arm.md (movaddr, movaddr_insn): Delete.
9587
9588 2002-03-15 Jason Merrill <jason@redhat.com>
9589
9590 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9591 -fkeep-static-consts doesn't apply to comdats.
9592
9593 2002-03-14 Richard Henderson <rth@redhat.com>
9594
9595 * c-decl.c: Include c-pragma.h.
9596 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9597 (finish_function): Tidy.
9598 * c-pragma.c: Include c-common.h.
9599 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9600 (handle_pragma_weak): Use them.
9601 (init_pragma): Register pending_weaks.
9602 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9603 * print-tree.c (print_node): Print DECL_WEAK.
9604 * varasm.c (mark_weak_decls): Remove.
9605 (remove_from_pending_weak_list): Remove.
9606 (add_weak): Remove.
9607 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9608 (weak_decls): Make a tree_list.
9609 (declare_weak): Cons weak_decls directly.
9610 (globalize_decl): Remove weak_decls elements directly.
9611 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9612 symbols. Don't pretend to handle aliases.
9613 (init_varasm_once): Update weak_decls registry.
9614 * Makefile.in: Update dependencies.
9615
9616 2002-03-14 Richard Henderson <rth@redhat.com>
9617
9618 PR target/5312
9619 * config/ia64/ia64.c: Include tm_p.h last.
9620 (gen_nop_type): Remove duplicate definition.
9621 (cycle_end_fill_slots): Set sched_data for second L slot.
9622 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9623 (nop_cycles_until): Fix typos.
9624
9625 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9626
9627 PR optimization/5891
9628 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9629
9630 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9631
9632 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9633 descriptors correctly.
9634
9635 2002-03-14 Michael Meissner <meissner@redhat.com>
9636
9637 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9638 100, allowing MAX_UNROLLED_INSNS to be overridden.
9639
9640 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9641 --param.
9642
9643 * unroll.c (params.h): Include.
9644 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9645
9646 * doc/invoke.texi (--param max-unroll-insns): Document.
9647
9648 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9649
9650 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9651
9652 * arm.md: Fix warnings about constraints in peepholes and splits.
9653
9654 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9655
9656 * cpphash.h (struct lexer_state): Remove line_extension member.
9657 * cpplib.c (dequote_string, do_linemarker): New functions.
9658 (linemarker_dir): New data object.
9659 (DIRECTIVE_TABLE): No longer need to interpret #line in
9660 preprocessed source. Delete obsolete comment about return
9661 values of handlers.
9662 (end_directive, directive_diagnostics, _cpp_handle_directive):
9663 Don't muck with line_extension.
9664 (directive_diagnostics): No need to issue warnings for
9665 linemarkers here.
9666 (_cpp_handle_directive): Issue warnings for linemarkers here,
9667 when appropriate. Dispatch linemarkers to do_linemarker, not
9668 do_line.
9669 (do_line): Code to handle linemarkers split out to do_linemarker.
9670 Convert escape sequences in filename argument, both places.
9671
9672 * cppmacro.c (quote_string): Rename cpp_quote_string and
9673 export. All callers changed.
9674 * cpplib.h (cpp_quote_string): Prototype.
9675 * cppmain.c (print_line): Call cpp_quote_string on to_file
9676 before printing it.
9677
9678 * doc/cpp.texi: Document that escapes are now interpreted in
9679 #line and in linemarkers, and that non-printing characters are
9680 converted to octal escapes when linemarkers are generated.
9681
9682 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9683
9684 * emit-rtl.c (try_split): Use delete_insns.
9685 * recog.c (split_all_insns): Fix terminating condition.
9686
9687 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9688 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9689
9690 PR target/5828
9691 * arm.c (arm_output_epilogue): Fix floating-point register save
9692 adjustment when using a frame pointer.
9693
9694 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9695
9696 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9697 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9698 (save_restore_insns, mips_expand_epilogue): And here.
9699 (build_mips16_call_stub): And here.
9700 (mips_function_value): Use the new macros to decide whether a single
9701 or complex float can be returned in floating-point registers. Return
9702 a parallel rtx in the complex case.
9703
9704 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9705
9706 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9707 call after liveness analysis.
9708
9709 * recog.c (split_insn): Use delete_insn_and_edges.
9710
9711 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9712 instructions to have branch prediction notes.
9713 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9714
9715 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9716
9717 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9718 that doesn't support it.
9719 * configure: Regenerate.
9720
9721 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9722
9723 PR target/5626
9724 * config/sparc/sparc.md (normal_branch, inverted_branch,
9725 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9726 inverted_fp_branch): Adjust calls to output_cbranch.
9727 Set length attribute.
9728 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9729 output_v9branch. Set length attribute.
9730 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9731 predicates.
9732 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9733 (output_cbranch): Likewise. Handle far branches.
9734 (output_v9branch): Handle far branches.
9735 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9736 Adjust prototypes.
9737 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9738 noov_compare64_op predicates.
9739
9740 2002-03-13 Jason Merrill <jason@redhat.com>
9741
9742 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9743 into the function and constify it.
9744 * gthr-dce.h, gthr-solaris.h: Likewise.
9745
9746 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9747
9748 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9749 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9750 std_expand_builtin_va_arg if not ABI_V4.
9751
9752 2002-03-13 Jason Merrill <jason@redhat.com>
9753
9754 * varasm.c (globalize_decl): New fn.
9755 (assemble_start_function): Use it.
9756 (asm_emit_uninitialized): Use it.
9757 (assemble_alias): Use it.
9758 (assemble_variable): Use it.
9759
9760 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9761
9762 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9763 2002-03-12 internal visibility change.
9764 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9765 visibility into SYMBOL_REF_FLAG.
9766
9767 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9768
9769 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9770 VOIDmode operand. Add compile-time optimization for constant results.
9771
9772 2002-03-12 Jason Merrill <jason@redhat.com>
9773
9774 * c-typeck.c (convert_for_assignment): Don't allow conversions
9775 between pointers and references. Only allow lvalues to convert to
9776 reference.
9777
9778 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9779
9780 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9781 before prologue, to avoid scheduling problems.
9782
9783 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9784
9785 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9786 (ELIMINABLE_REGS): Add sfp->sp.
9787 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9788
9789 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9790
9791 PR optimization/5892
9792 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9793
9794 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9795
9796 * loop.c (basic_induction_var): Don't call convert_modes if mode
9797 classes are different.
9798
9799 2002-03-12 Richard Henderson <rth@redhat.com>
9800
9801 PR optimization/5901
9802 * function.c (reposition_prologue_and_epilogue_notes): Position
9803 the markers after/before the last/first insn not deleted.
9804
9805 2002-03-12 Richard Henderson <rth@redhat.com>
9806
9807 PR optimization/5878
9808 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9809 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9810 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9811
9812 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9813 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9814 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9815
9816 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9817 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9818 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9819 also. Don't set it if not flag_pic.
9820 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9821 to be INVALID_REGNUM when not used.
9822
9823 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9824
9825 * expmed.c (store_bit_field): Reset alias set for memory.
9826 (extract_bit_field): Same.
9827
9828 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9829
9830 * c-common.c (c_tree_code_type, c_tree_code_length,
9831 c_tree_code_name, add_c_tree_codes): Delete.
9832 * c-common.h (add_c_tree_codes): Delete.
9833 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9834 Define.
9835 * c-objc-common.c (c_objc_common_init): Don't call
9836 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9837 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9838 objc_tree_code_name, add_objc_tree_codes): Delete.
9839 (objc_init): Don't call add_objc_tree_codes.
9840 * objc/objc-lang.c (tree_code_type, tree_code_length,
9841 tree_code_name): Define.
9842 * toplev.c (lang_independent_init): Don't set
9843 tree_code_length[IDENTIFIER_NODE].
9844 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9845 Delete definitions, moved to language front-ends.
9846 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9847 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9848 Const-ify.
9849 (tree_code_length): Change type to unsigned char.
9850
9851 2002-03-12 Richard Henderson <rth@redhat.com>
9852
9853 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9854 internal visibility change.
9855
9856 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9857
9858 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9859 validize_mem() instead of change_address to avoid clobbering
9860 memory attributes.
9861
9862 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9863
9864 * c-lex.h (position_after_whitespace): Remove.
9865
9866 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9867
9868 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9869 (lex_string): Use unsigned char pointers.
9870
9871 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9872
9873 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9874 is not a valid memory_operand.
9875
9876 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9877
9878 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9879 * config/xtensa/lib1funcs.asm: Fix copyright to include
9880 special case for libgcc files.
9881 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9882 (__divsi3): Likewise.
9883 (__umodsi3): Likewise.
9884 (__modsi3): Likewise.
9885 * config/xtensa/lib2funcs.S: Fix copyright to include
9886 special case for libgcc files.
9887
9888 2002-03-12 Tom Rix <trix@redhat.com>
9889
9890 * collect2.c (resolve_lib_name): Move outside of
9891 OBJECT_FORMAT_COFF ifdef.
9892 (ignore_library): Same.
9893
9894 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9895
9896 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9897
9898 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9899
9900 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9901 to function_section before writing out the constant pool.
9902
9903 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9904
9905 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9906 zero_constant.
9907 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9908
9909 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9910
9911 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9912 (adddi3): Likewise.
9913 (movdf): Likewise.
9914 (movdi): Likewise.
9915 (cmpsi splitter): Likewise.
9916 (modsi3): Fail if <= 0.
9917 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9918 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9919 (reg_or_sub_cint64_operand): Likewise.
9920 (num_insns_constant_wide): Optimize sign extension.
9921 (rs6000_legitimize_address): Likewise.
9922
9923 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9924
9925 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9926 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9927
9928 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9929
9930 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9931 address calculation.
9932
9933 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9934
9935 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9936 scratch register to DImode / TImode.
9937 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9938 register used does not overlap the target.
9939
9940 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9941
9942 * Makefile.in (debug.o): Depend on debug.h.
9943 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9944 * debug.c (do_nothing_debug_hooks): Likewise.
9945 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9946 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9947 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9948 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9949 * dwarfout.c (dwarf_debug_hooks): Likewise.
9950 * integrate.c (output_inline_function): Likewise.
9951 * objc/objc-act.c (synth_module_prologue): Likewise.
9952 * sdbout.c (sdb_debug_hooks): Likewise.
9953 * toplev.c (debug_hooks): Likewise.
9954 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9955
9956 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9957
9958 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9959 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9960 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9961 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9962 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9963 * defaults.h (POINTER_SIZE): Define.
9964 * doc/tm.texi (POINTER_SIZE): Document default.
9965
9966 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9967
9968 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9969
9970 2002-03-11 Richard Henderson <rth@redhat.com>
9971
9972 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9973 if rebuild_label_notes_after_reload.
9974
9975 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
9976
9977 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
9978 emit pic register load if "internal" visibility.
9979 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9980 (cris_expand_builtin_va_arg): Do all computations on trees.
9981
9982 2002-03-11 Richard Henderson <rth@redhat.com>
9983
9984 * rtlanal.c: Include recog.h.
9985 (keep_with_call_p): Fix thinko.
9986 * Makefile.in (rtlanal.o): Update dependencies.
9987
9988 2002-03-11 Chris Meyer <cmeyer@gatan.com>
9989
9990 * genflags.c (gen_insn): Use IS_VSPACE.
9991 * genoutput.c (output_insn_data): Likewise.
9992 (process_template): Likewise.
9993
9994 2002-03-11 Richard Henderson <rth@redhat.com>
9995
9996 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9997
9998 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
9999
10000 * Makefile.in: Update.
10001 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10002 Update documentation.
10003 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10004 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10005
10006 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10007
10008 * Makefile.in: Give texi2pod its input file as a command line
10009 argument, not on stdin.
10010
10011 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10012 Daniel Berlin <dan@dberlin.org>
10013
10014 C++ alias analysis improvement.
10015 * alias.c (record_component_aliases): Record aliases for base
10016 classes too.
10017
10018 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10019
10020 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10021
10022 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10023
10024 * toplev.c (vms_fopen): Remove, not needed.
10025
10026 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10027
10028 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10029
10030 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10031 for FP, already done later.
10032
10033 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10034 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10035
10036 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10037
10038 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10039 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10040 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10041 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10042 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10043 (ediv, emul, eldexp, esqrt): Likewise.
10044 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10045 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10046 (saturate): New function.
10047 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10048 (make_nan): Use a saturation value instead of a NaN if
10049 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10050 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10051 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10052 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10053 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10054 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10055 !ROUND_TOWARDS_ZERO.
10056 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10057 (ROUND_TOWARDS_ZERO): Document.
10058
10059 2002-03-11 Andreas Jaeger <aj@suse.de>
10060
10061 * cfg.c (dump_flow_info): Remove unused variable.
10062
10063 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10064
10065 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10066 computations on trees.
10067
10068 2002-03-10 Richard Henderson <rth@redhat.com>
10069
10070 PR 5693:
10071 * reload.c (copy_replacements_1): New.
10072 (copy_replacements): Use it to recurse through the rtx.
10073
10074 2002-03-10 Richard Henderson <rth@redhat.com>
10075
10076 * loop.c (strength_reduce): Compute number of iterations as
10077 unsigned HOST_WIDE_INT.
10078
10079 2002-03-10 Richard Henderson <rth@redhat.com>
10080
10081 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10082 to move away from the end of the block.
10083
10084 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10085
10086 PR preprocessor/5899
10087 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10088
10089 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10090
10091 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10092
10093 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10094
10095 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10096
10097 * config/mmix/mmix.c: Improve comments.
10098 (mmix_target_asm_function_prologue): Drop variable
10099 empty_stack_frame. Don't allocate unused slot above fp.
10100 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10101 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10102 brace in first column.
10103 (enum reg_class): Ditto.
10104 (FIRST_PARM_OFFSET): Now 0.
10105 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10106
10107 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10108
10109 * combine.c (make_extraction): Fix error in last change.
10110
10111 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10112
10113 * c4x.c (c4x_fp_reglist): Const-ify.
10114 * cris.c (cris_print_operand): Likewise.
10115 * i386.c (ix86_va_arg): Likewise.
10116 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10117 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10118 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10119 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10120 * mcore.h (regno_reg_class): Likewise.
10121 * mips.c (gen_int_relational): Likewise.
10122 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10123 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10124 * pdp11.c (move_costs): Likewise.
10125 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10126 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10127 Likewise.
10128 * s390.h (regclass_map): Likewise.
10129 * sh.c (shift_amounts): Likewise.
10130 * sh.md (rotlsi3): Likewise.
10131
10132 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10133
10134 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10135 (ne0+5): Use new clobber to generate proper shift pattern.
10136 Patch by Michael Matz <matz@kde.org>.
10137
10138 2002-03-09 Andreas Schwab <schwab@suse.de>
10139
10140 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10141
10142 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10143
10144 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10145
10146 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10147
10148 PR middle-end/5877
10149 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10150 even for non-representable constants.
10151
10152 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10153
10154 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10155 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10156 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10157 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10158 (pop_function_context): Compute MAY_SHARE parameter for
10159 fixup_var_refs.
10160 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10161 (gen_mem_addressof): Call fixup_var_refs with new parm.
10162
10163 * combine.c (make_extraction): Don't make extension of CONST_INT.
10164
10165 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10166
10167 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10168 in o32 and o64 ABIs.
10169 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10170 but getting fixed-size structs passed in registers regardless of
10171 padding in o32 and o64 ABIs.
10172
10173 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10174 offset before loading address of argument passed by transparent
10175 reference.
10176
10177 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10178
10179 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10180
10181 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10182
10183 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10184 marker such that registers after it are saved.
10185
10186 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10187
10188 * sparc.c (arith_4096_operand): Fix error in last change.
10189
10190 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10191
10192 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10193 defaults for MEABI.
10194
10195 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10196
10197 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10198 vectors.
10199
10200 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10201
10202 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10203
10204 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10205
10206 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10207 removed; fix return value.
10208 * combine.c (combine_instructions): Dirtify blocks where we failed to
10209 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10210 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10211
10212 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10213
10214 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10215
10216 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10217
10218 * recog.c (peephole2_optimize): Re-distribute EH edges.
10219
10220 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10221
10222 * expr.c (expand_expr): Use unsave lang hook.
10223 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10224 (LANG_HOOKS_INITIALIZER): Update.
10225 * langhooks.h (struct lang_hooks): New hook unsave.
10226 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10227 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10228 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10229 (unsave_expr_now): Remove.
10230 * tree.h (unsave_expr_now, lang_unsave,
10231 lang_unsave_expr_now): Remove.
10232 (lhd_unsave): New.
10233
10234 2002-03-08 Andreas Jaeger <aj@suse.de>
10235
10236 * flow.c (propagate_block_delete_insn): Remove unused variable.
10237
10238 2002-03-08 Kazu Hirata <kazu@hxi.com>
10239
10240 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10241 insn length for memory load/store.
10242
10243 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10244
10245 * doc/install.texi (--with-libiconv-prefix): Document.
10246
10247 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10248
10249 * doc/sourcebuild.texi: Fix typo.
10250
10251 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10252
10253 PR c/3711
10254 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10255 trees.
10256
10257 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10258
10259 * rtl.c (copy_most_rtx): Move from here ...
10260 * emit-rtl.c (copy_most_rtx): ... to here.
10261
10262 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10263
10264 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10265 SUBTARGET_CPP_SIZE_SPEC.
10266 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10267
10268 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10269
10270 2002-03-07 Matt Hiller <hiller@redhat.com>
10271
10272 * gensupport.c (first_dir_md_include): Renamed from include;
10273 change all references.
10274 (last_dir_md_include): Renamed from last_include; change all
10275 references.
10276 (init_md_reader): Unconditionally initialize base_dir whether or
10277 not filename is a relative path.
10278
10279 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10280
10281 * config/fp-bit.c (_unord_f2): Compile it in even if
10282 US_SOFTWARE_GOFAST is enabled.
10283
10284 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10285 NULL_RTX. Set all HFmode operations as NULL_RTX.
10286 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10287 NULL_RTX, try reversing the comparison and the operands.
10288
10289 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10290
10291 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10292 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10293 and MATCH_OP_DUP.
10294
10295 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10296
10297 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10298
10299 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10300
10301 * basic-block.h (fixup_abnormal_edges): Declare.
10302 * reload1.c (fixup_abnormal_edges): New function.
10303 * reg-stack.c (convert_regs): Use it.
10304
10305 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10306
10307 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10308
10309 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10310
10311 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10312 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10313 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10314 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10315 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10316 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10317 unless x and y could be infinite.
10318 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10319 Check that the common type of both arguments is a real, even for
10320 targets without unordered comparisons. Allow an integer argument
10321 to be compared against a real.
10322 (expand_tree_builtin): Use expand_unordered_cmp.
10323 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10324 * cse.c (fold_rtx): Likewise. Fix indentation.
10325 * fold-const.c (fold_real_zero_addition_p): New.
10326 (fold): Use it, and the new HONOR_... macros.
10327 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10328 * jump.c (reversed_comparison_code_parts): After searching for
10329 the true comparison mode, use HONOR_NANS to decide whether it
10330 can be safely reversed.
10331 (reverse_condition_maybe_unordered): Remove IEEE check.
10332 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10333 to decide which simplifications are valid. Allow the following
10334 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10335 and (a - -b) to (a + b).
10336 (simplify_relational_operation): Use HONOR_NANS.
10337 * doc/tm.texi: Document the MODE_HAS_... macros.
10338
10339 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10340
10341 * combine.c (simplify_comparison): If simplifying a logical shift
10342 right and compare with constant, force the comparison to unsigned.
10343
10344 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10345
10346 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10347
10348 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10349 -mabi=no-altivec
10350 (alt_reg_names): Remove % for vrsave.
10351
10352 2002-03-06 Richard Henderson <rth@redhat.com>
10353
10354 PR optimization/5844
10355 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10356 if used indicates we've already emitted one copy of an operand.
10357 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10358 (gen_split): Supply a non-null used.
10359
10360 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10361
10362 * reload1.c (reload): Unshare all rtl after reload is done.
10363
10364 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10365 but simply fail if the expression is too complex to simplify.
10366 (simplify_gen_binary): Handle simplify_plus_minus failures.
10367
10368 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10369
10370 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10371 consistently call delete_trivially_dead_insns after CSE and GCSE;
10372 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10373 after liveness2; update comment in last crossjumping.
10374 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10375
10376 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10377
10378 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10379 after completing fast dead code elimination.
10380
10381 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10382 COMPARE operator.
10383
10384 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10385
10386 * version.c: Fix misplaced leading blanks on first line.
10387
10388 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10389
10390 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10391
10392 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10393
10394 * cfgcleanup.c (mentions_nonequal_regs): New function.
10395 (thread_jump): Use it.
10396 * toplev.c (rest_of_compilation): Run jump threading after
10397 liveness.
10398
10399 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10400
10401 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10402 patch.
10403
10404 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10405
10406 * predict.c (estimate_bb_frequencies): Do not reload the
10407 frequencies from notes.
10408
10409 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10410
10411 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10412 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10413
10414 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10415 delete_noop_moves): Return indeger.
10416 * flow.c (ndead): New variable.
10417 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10418 BB argument; update callers.
10419 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10420 (life_analysis): Do not call purge_all_dead_edges.
10421 (update_life_info): Return number of deleted insns; print statistics.
10422 (update_life_info_in_dirty_blocks): likewise.
10423 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10424 return number of insns deleted.
10425
10426 * cse.c: Include timevar.h
10427 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10428 iterate until stabilizes; print statistics; return number of killed
10429 insns.
10430 * Makefile.in: (cse.o): Add timevar.h dependency
10431 * rtl.h (delete_trivially_dead_insns): New.
10432 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10433 * toplev.c (rest_of_compilation): Update callers.
10434
10435 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10436 (try_optimize_cfg): Do not update liveness.
10437 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10438 removal stabilizes; use delete_trivially_dead_insns.
10439
10440 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10441
10442 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10443
10444 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10445 callbacks when processing assembly language.
10446
10447 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10448
10449 * pa.h (ASM_FILE_END): Define.
10450 * som.h (ASM_FILE_END): Delete.
10451
10452 * pa.c (function_arg): Don't pass floats in general registers in
10453 indirect calls if TARGET_ELF32.
10454
10455 2002-03-05 Richard Henderson <rth@redhat.com>
10456
10457 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10458
10459 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10460
10461 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10462
10463 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10464
10465 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10466 -r command line. Don't hide any symbols if not building
10467 shared libgcc.
10468
10469 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10470
10471 * cfg.c (dump_flow_info): Warn about profile mismatches.
10472 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10473 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10474
10475 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10476
10477 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10478 wide volatile memory by parts.
10479
10480 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10481
10482 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10483 is NULL.
10484
10485 2002-03-05 Richard Henderson <rth@redhat.com>
10486
10487 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10488
10489 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10490
10491 * toplev.c (documented_lang_options): Document more
10492 language-specific options.
10493 * doc/invoke.texi (Warning Options): Correct documentation for
10494 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10495 * c-decl.c (c_decode_option): Use a table to handle warning options.
10496
10497 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10498
10499 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10500 parameter to mmix_encode_section_info.
10501 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10502 relocatably. Always produce ELF, not mmo if linking relocatably.
10503 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10504 first is non-zero, don't add symbol prefix.
10505 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10506 prototype accordingly.
10507
10508 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10509
10510 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10511
10512 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10513
10514 * configure.in: Increase required makeinfo version to 4.1.
10515 * configure: Regenerate.
10516
10517 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10518
10519 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10520 elsewhere now.
10521
10522 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10523
10524 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10525 * doc/invoke.texi: Fix @math uses.
10526
10527 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10528
10529 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10530 removal
10531
10532 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10533
10534 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10535 (powerpc-*-eabisimaltivec*): Same.
10536
10537 * config/rs6000/t-ppcendian: New.
10538
10539 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10540
10541 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10542 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10543 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10544
10545 2002-03-03 Richard Henderson <rth@redhat.com>
10546
10547 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10548
10549 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10550
10551 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10552 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10553 tree.c, config/m68k/m68k.c:
10554 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10555 REAL_ARITHMETIC blocks unconditional. Delete some further
10556 #ifdef blocks predicated on REAL_ARITHMETIC.
10557 * flags.h, toplev.c: Delete remaining references to
10558 flag_pretend_float.
10559
10560 * doc/invoke.texi: Remove documentation of -fpretend-float.
10561 * doc/tm.texi: Describe the various REAL_* macros as provided by
10562 real.h, not by the target configuration files.
10563
10564 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10565 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10566 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10567 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10568 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10569 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10570 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10571 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10572 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10573 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10574 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10575 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10576 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10577 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10578 config/xtensa/xtensa.h:
10579 Do not define, undefine, or mention in comments any of
10580 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10581 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10582 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10583 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10584 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10585 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10586 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10587 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10588 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10589
10590 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10591
10592 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10593 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10594 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10595 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10596 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10597 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10598 Delete.
10599 * defaults.h (BITS_PER_WORD): Define.
10600 * doc/tm.texi (BITS_PER_WORD): Document default value.
10601
10602 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10603 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10604 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10605
10606 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10607
10608 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10609 lieu of explicit sizeof/sizeof.
10610 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10611 ix86_expand_builtin): Likewise.
10612 * mips.c (mips_add_gc_roots): Likewise.
10613 * mmix.c (mmix_output_condition): Likewise.
10614 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10615 altivec_init_builtins): Likewise.
10616 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10617 * cppexp.c (Nsuff, parse_number): Likewise.
10618 * cppinit.c (builtin_array_end): Likewise.
10619 * gcc.c (n_default_compilers, process_command): Likewise.
10620 * genpreds.c (output_predicate_decls): Likewise.
10621 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10622 * lcm.c (N_ENTITIES): Likewise.
10623 * stor-layout.c (set_sizetype): Likewise.
10624
10625 2002-03-03 Richard Henderson <rth@redhat.com>
10626
10627 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10628 for types or labels.
10629
10630 2002-03-03 Richard Henderson <rth@redhat.com>
10631
10632 * c-decl.c (start_decl): Initialized variables are not common.
10633
10634 2002-03-02 Per Bothner <per@bothner.com>
10635
10636 * gcc.c (option_map): Suport new --bootclasspath option.
10637 --CLASSPATH is now just an alias for --classpath.
10638
10639 2002-03-02 Richard Henderson <rth@redhat.com>
10640
10641 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10642 load if "internal" visibility.
10643 * doc/extend.texi: Document visibility meanings.
10644
10645 2002-03-02 Richard Henderson <rth@redhat.com>
10646
10647 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10648 to functions as well.
10649
10650 2002-03-02 Richard Henderson <rth@redhat.com>
10651
10652 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10653 (handle_visibility_attribute): Don't call assemble_visibility.
10654 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10655 without asmspec. Invoke assemble_alias when needed.
10656 * varasm.c (maybe_assemble_visibility): New.
10657 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10658
10659 2002-03-02 Richard Henderson <rth@redhat.com>
10660
10661 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10662 invoke ENCODE_SECTION_INFO with first call flag.
10663
10664 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10665 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10666 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10667 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10668 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10669 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10670 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10671 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10672 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10673 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10674 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10675 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10676 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10677 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10678 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10679 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10680 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10681 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10682 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10683 config/sh/sh.h, config/sparc/sparc.h,
10684 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10685 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10686 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10687 FIRST argument. As needed, examine it and do nothing.
10688
10689 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10690 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10691 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10692
10693 * config/arm/t-pe (pe.o): Add dependencies.
10694
10695 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10696
10697 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10698 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10699 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10700 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10701 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10702 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10703 * defaults.h (BITS_PER_UNIT): Define.
10704 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10705
10706 2002-03-02 Kazu Hirata <kazu@hxi.com>
10707
10708 * config/h8300/h8300-protos.h: Add a prototype for
10709 compute_a_shift_length.
10710 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10711 (compute_a_shift_length): Likewise.
10712 (h8300_adjust_insn_length): Do not adjust insn length of shift
10713 insns.
10714 * config/h8300/h8300.md (anonymous shift patterns): Use
10715 compute_a_shift_length.
10716
10717 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10718
10719 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10720 trunc_int_for_mode.
10721
10722 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10723
10724 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10725
10726 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10727 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10728 * flags.h (flag_zero_initialized_in_bss): Declare.
10729 * toplev.c (flag_zero_initialized_in_bss): New flag.
10730 (lang_independent_options): Add flag_zero_initialized_in_bss.
10731 * tree.c (initializer_zerop): New function.
10732 * tree.h (initializer_zerop): Declare.
10733 * varasm.c (assemble_variable): If we can emit bss, put zero
10734 initializers in the bss section.
10735
10736 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10737
10738 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10739 like more than one symbol per .weak directive.
10740
10741 2002-03-01 Richard Henderson <rth@redhat.com>
10742
10743 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10744 adjust argument_pointer by pretend_args_size.
10745 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10746
10747 2002-03-01 Kazu Hirata <kazu@hxi.com>
10748
10749 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10750
10751 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10752
10753 * toplev.c (rest_of_compilation): Delete dead jumptables before
10754 loop.
10755 * flow.c (delete_dead_jumptables): Make global.
10756 * rtl.h (delete_dead_jumptables): Declare.
10757
10758 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10759
10760 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10761 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10762 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10763
10764 2002-03-01 Kazu Hirata <kazu@hxi.com>
10765
10766 * config/h8300/h8300-protos.h: Fix formatting.
10767 * config/h8300/h8300.c: Likewise.
10768 * config/h8300/h8300.h: Likewise.
10769
10770 2002-03-01 Kazu Hirata <kazu@hxi.com>
10771
10772 * config/h8300/h8300.c (print_operand): Support 16-bit
10773 constant addresses.
10774 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10775
10776 2002-02-28 Richard Henderson <rth@redhat.com>
10777
10778 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10779 pun complex values as integers; use gen_lowpart instead of
10780 gen_rtx_SUBREG.
10781 (extract_bit_field): Likewise.
10782
10783 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10784 David Edelsohn <edelsohn@gnu.org>
10785
10786 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10787 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10788 (SUPPORTS_WEAK): Likewise.
10789 * output.h (add_weak): Add tree param.
10790 * varasm.c (add_weak): Likewise. Save decl.
10791 (struct weak_syms): Add decl field.
10792 (mark_weak_decls): New function.
10793 (init_varasm_once): ggc_add_root mark_weak_decls.
10794 (assemble_start_function): Use ASM_WEAKEN_DECL.
10795 (assemble_variable): Likewise.
10796 (assemble_alias): Likewise.
10797 (declare_weak): Pass decl to add_weak.
10798 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10799 (remove_from_pending_weak_list): Declare and define for
10800 ASM_WEAKEN_DECL.
10801 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10802 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10803 * defaults.h (SUPPORTS_WEAK): Likewise.
10804 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10805 .weak for code sym. Do emit .size for descriptor sym.
10806 (ASM_DECLARE_FUNCTION_SIZE): Define.
10807 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10808 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10809 .lglobl unless TARGET_XCOFF. Formatting fixes.
10810 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10811 .weak for code sym.
10812 (HANDLE_PRAGMA_WEAK): Remove.
10813 (ASM_WEAKEN_LABEL): Remove.
10814 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10815
10816 2002-03-01 Jason Merrill <jason@redhat.com>
10817
10818 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10819 (TARGET_EXPR_CLEANUP): New macro.
10820
10821 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10822
10823 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10824 to take ptr_extend into account as third type of extension.
10825 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10826 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10827 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10828 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10829 * calls.c (precompute_arguments): Use new macro.
10830 (expand_call): Ditto.
10831 * combine.c (nonzero_bits): Ditto.
10832 (record_promoted_value): Ditto.
10833 * expr.c (store_expr): Ditto.
10834 (expand_expr): Ditto.
10835 * function.c (assign_parms): Ditto.
10836
10837 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10838
10839 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10840 override -shared and -shared-libgcc.
10841
10842 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10843
10844 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10845 of "ultrasparc".
10846 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10847 to be broken.
10848
10849 2002-02-28 Richard Henderson <rth@redhat.com>
10850
10851 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10852 4 cycle latency from MM producers.
10853 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10854
10855 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10856
10857 * mklibgcc.in: Don't use GNU make extension.
10858
10859 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10860
10861 * c-parse.in (STATIC): New terminal.
10862 (scspec): New non-terminal. Update productions accordingly.
10863 (program): Remove bogus ifc / end ifc.
10864 (array_declarator): Simplify production using STATIC.
10865
10866 2002-02-28 Jim Meyering <meyering@lucent.com>
10867
10868 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10869 \a still means TARGET_BELL.
10870
10871 2002-02-28 Richard Henderson <rth@redhat.com>
10872
10873 * haifa-sched.c (sched_emit_insn): New.
10874 (schedule_block): Use last_scheduled_insn to track last insn.
10875 * sched-int.h (sched_emit_insn): Prototype.
10876 * config/ia64/ia64.c (last_issued): Remove.
10877 (ia64_variable_issue): Don't set it.
10878 (nop_cycles_until): Use sched_emit_insn.
10879
10880 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10881
10882 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10883 extended constants.
10884
10885 2002-02-28 Kazu Hirata <kazu@hxi.com>
10886
10887 * config/h8300/h8300.c: Fix formatting.
10888 * config/h8300/h8300.h: Likewise.
10889
10890 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10891
10892 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10893 which may overwrite the high byte of the frame pointer.
10894
10895 2002-02-28 Bo Thorsen <bo@suse.de>
10896
10897 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10898 (STARTFILE_SPEC): Add 64 bit files.
10899 (ENDFILE_SPEC): Likewise.
10900
10901 2002-02-28 Jason Merrill <jason@redhat.com>
10902
10903 * c-decl.c (finish_function): Only warn about missing return
10904 statement with -Wreturn-type.
10905
10906 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10907
10908 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10909
10910 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10911 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10912
10913 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10914
10915 * basic-block.h (BB_REACHABLE): Renumber.
10916 (BB_DIRTY, BB_NEW): New flags.
10917 (clear_bb_flags): Declare.
10918 (update_life_info_in_dirty_blocks): Declare.
10919 * cfg.c (clear_bb_flags): New function.
10920 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10921 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10922 reorder_insns, emit_insn_after): Mark block as dirty.
10923 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10924 (update_life_info_in_dirty_blocks): New function.
10925 * recog.c (apply_change_group): Dirtify block.
10926
10927 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10928 cfg consistent.
10929 * gcse.c (delete_null_pointer_checks): Likewise.
10930
10931 * toplev.c (dump_file_index): Move cse2 after bp,
10932 add DFI_null
10933 (dump_file_info): Similary.
10934 (rest_of_compilation): Avoid most of CFG rebuilds;
10935 do first if converision after null pointer checks, do cse2
10936 after branch prediction; avoid full liveness rebuild after
10937 initializing subregs.
10938 * invoke.texi (-d options): Document -du, renumber.
10939
10940 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10941 (notice_new_block): Do not set BB_UPDATE_LIFE.
10942 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10943 merge_blocks_move_successor_nojumps, merge_blocks,
10944 try_crossjump_to_edge): Likewise.
10945 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10946 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10947 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10948 (merge_of_block): Do not use life_data_ok.
10949 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10950 (if_convert): Use BB_DIRTY mechanizm to update life.
10951 * lcm.c (optimize_mode_switching): Update
10952 update_life_info_in_dirty_blocks
10953
10954 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10955
10956 * Makefile.in (integrate.o): Update.
10957 * c-decl.c (copy_lang_decl): Rename.
10958 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10959 * integrate.c: Include langhooks.h.
10960 (copy_decl_for_inlining): Update to use langhook.
10961 * langhooks-def.h (lhd_do_nothing_t,
10962 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10963 (LANG_HOOKS_INITIALIZER): Update.
10964 * langhooks.c (lhd_do_nothing_t): New.
10965 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10966 * tree.h (copy_lang_decl): Remove.
10967 objc:
10968 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10969
10970 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
10971
10972 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10973 POST_DEC, and POST_MODIFY.
10974
10975 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10976
10977 * c-typeck.c (digest_init): Remove unused parameter; all
10978 callers changed.
10979
10980 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
10981
10982 * expmed.c (expand_shift): Correctly test for low part of a
10983 subreg.
10984
10985 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10986
10987 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10988 insn UIDs with insn addresses.
10989
10990 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10991
10992 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10993 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10994 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10995 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10996 gcc.c, toplev.c: Delete code implementing -traditional mode.
10997
10998 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10999 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11000 Document removal of -traditional mode for compilation, and
11001 remove documentation only relevant to that mode.
11002
11003 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11004 config/convex/convex.h, config/d30v/d30v.h,
11005 config/i386/dgux.h, config/i386/osf1elf.h,
11006 config/i386/osfelf.h, config/i386/osfrose.h,
11007 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11008 config/m68k/hp310.h, config/m88k/dgux.h,
11009 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11010 config/m88k/m88k.h, config/m88k/openbsd.h,
11011 config/mips/abi64.h, config/mips/osfrose.h,
11012 config/mips/svr4-5.h, config/mips/svr4-t.h,
11013 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11014 config/stormy16/stormy16.h: Remove all references to
11015 -traditional from target specs. Delete all mention of the
11016 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11017 delete a couple of commented-out definitions of
11018 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11019 to -traditional.
11020
11021 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11022 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11023
11024 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11025
11026 * mklibgcc.in: Don't use \n in a line subject to
11027 interpretation by echo.
11028
11029 2002-02-27 Graham Stott <grahams@redhat.com>
11030
11031 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11032 Constify NAME.
11033
11034 * loop.c (prescan_loop): Handle PARALLEL.
11035
11036 * unroll.c (loop_iterations): Return 0 if the add_val for
11037 a BIV is REG.
11038
11039 * final.c (output_operand_lossage): Constify PFX_STR.
11040
11041 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11042
11043 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11044
11045 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11046 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11047
11048 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11049
11050 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11051
11052 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11053
11054 * cpplex.c (_cpp_lex_token): Handle directives in macro
11055 arguments.
11056 * cpplib.c (_cpp_handle_directive): Save and restore state
11057 if parsing macro args when entering a directive.
11058 * cppmacro.c (collect_args): No need to handle directives
11059 in macro arguments.
11060 (enter_macro_context, replace_args): Use the original macro
11061 definition in case it was redefined whilst collecting arguments.
11062 doc:
11063 * cpp.texi: Update.
11064
11065 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11066
11067 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11068 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11069 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11070 method on AIX.
11071 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11072 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11073 (load_toc_v4_PIC_2): Same.
11074
11075 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11076
11077 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11078
11079 2002-02-26 Richard Henderson <rth@redhat.com>
11080
11081 * config/alpha/alpha.md (ashldi_se): Re-enable.
11082
11083 2002-02-26 Richard Henderson <rth@redhat.com>
11084
11085 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11086 MODULE_LOCAL_P; improve commentary.
11087
11088 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11089
11090 * doc/cpp.texi: Clarify documentation of relationship between
11091 #line and #include.
11092
11093 2002-02-26 Kazu Hirata <kazu@hxi.com>
11094
11095 * config/h8300/h8300-protos.h: Update the prototype for
11096 compute_logical_op_length. Add the prototype for
11097 compute_logical_op_cc.
11098 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11099 code from operands.
11100 (compute_logical_op_cc): New.
11101 * config/h8300/h8300.md: Combine all the logical op patterns
11102 in HImode and SImode. Use compute_logical_op_cc.
11103
11104 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11105
11106 * config/i386/i386.c (print_operand): Don't append ATT-style
11107 length suffixs to x87 opcodes when in Intel mode.
11108
11109 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11110
11111 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11112 (init_emit_once): Update calls.
11113 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11114 (init_syntax_once): Prototype.
11115
11116 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11117
11118 * pa-linux.h (LIB_SPEC): Update definition.
11119 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11120
11121 2002-02-26 Richard Henderson <rth@redhat.com>
11122
11123 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11124 if we emitted a stop bit.
11125
11126 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11127
11128 * configure.in (libgcc_visibility): Substitute.
11129 * configure: Rebuilt.
11130 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11131 defined symbols .hidden.
11132
11133 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11134
11135 * attribs.c (c_common_attribute_table): Add visibility.
11136 (handle_visibility_attribute): New function.
11137 * varasm.c (assemble_visibility): New function.
11138 * output.h (assemble_visibility): Add prototype.
11139 * tree.h (MODULE_LOCAL_P): Define.
11140 * crtstuff.c (__dso_handle): Use visibility attribute.
11141 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11142 for MODULE_LOCAL_P symbols too.
11143 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11144 MODULE_LOCAL_P symbols the same way as local symbols.
11145 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11146 into .sdata/.sbss by the user.
11147 * doc/extend.texi (Function Attributes): Document visibility
11148 attribute.
11149
11150 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11151
11152 PR debug/5770
11153 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11154 STRING_CST initializer spanning the whole variable without
11155 embedded zeros.
11156 If expand_expr returned MEM, don't use it.
11157
11158 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11159
11160 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11161 generate a die for the lexical block.
11162
11163 2002-02-26 Kazu Hirata <kazu@hxi.com>
11164
11165 * config/h8300/h8300-protos.h: Add a prototype for
11166 compute_logical_op_length.
11167 * config/h8300/h8300.c (compute_logical_op_length): New.
11168 * config/h8300/h8300.md (anonymous logical patterns): Use
11169 compute_logical_op_length for length.
11170
11171 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11172
11173 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11174 for vectors.
11175 (gen_type_die): Same.
11176
11177 * attribs.c (handle_vector_size_attribute): Set debug information.
11178
11179 2002-02-26 Daniel Egger <degger@fhm.edu>
11180
11181 * config/rs6000/rs6000.md: Swap define_insn attributes to
11182 fix incorrect generation of merge high instructions instead
11183 of merge low.
11184
11185 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11186
11187 * c-typeck.c (really_start_incremental_init): Use
11188 bitsize_zero_node for vectors.
11189
11190 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11191
11192 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11193 ("*set_vrsave_internal"): Same.
11194
11195 2002-02-25 Richard Henderson <rth@redhat.com>
11196
11197 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11198 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11199
11200 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11201
11202 PR target/5755
11203 * config/i386/i386.c (ix86_return_pops_args): Only pop
11204 fake structure return argument if it was passed on the stack.
11205
11206 2002-02-25 Jason Merrill <jason@redhat.com>
11207
11208 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11209 RESULT_DECL.
11210
11211 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11212
11213 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11214 link with shared_name only.
11215 * doc/invoke.texi (Link Options): Document new behavior.
11216
11217 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11218
11219 * c-typeck.c (push_init_level): Handle vectors.
11220
11221 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11222
11223 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11224 operands of SPARC_SETHI_P.
11225 (input_operand): Likewise.
11226 (sparc_emit_set_const32): Likewise.
11227 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11228 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11229 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11230 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11231 (movdi_insn_sp64_vis): Likewise.
11232 (movdi split, movdf split): Use SETHI32.
11233 * doc/md.texi: Document SPARC constraints L, M and N.
11234
11235 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11236
11237 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11238 ("*set_vrsave_internal"): use mfspr for Darwin.
11239
11240 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11241 gen_get_vrsave_internal.
11242
11243 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11244
11245 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11246
11247 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11248
11249 * cpplex.c (cpp_interpret_charconst): Get signedness or
11250 otherwise of wide character constants correct.
11251 * cppexp.c (lex): Get signedness of wide charconsts correct.
11252
11253 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11254
11255 * optabs.c (widen_operand): Only call convert_modes for
11256 promoted SUBREG if signedness matches.
11257 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11258
11259 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11260
11261 * cpplib.c (glue_header_name): Use local buffer to build up
11262 header name.
11263
11264 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11265
11266 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11267
11268 2002-02-23 Kazu Hirata <kazu@hxi.com>
11269
11270 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11271 H8/300[HS] separately.
11272 * config/h8300/h8300.md: Remove the early clobber constraint
11273 from bit field patterns.
11274
11275 2002-02-23 Kazu Hirata <kazu@hxi.com>
11276
11277 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11278 register_operand.
11279 (mulhisi3): Likewise.
11280 (umulqisi3): Likewise.
11281 (umulhisi3): Likewise.
11282
11283 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11284
11285 * cppinit.c (output_deps): Correct test for stdout output.
11286 (init_dependency_output): Cure warning.
11287
11288 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11289
11290 * expr.c (store_expr): When converting expression to promoted
11291 equivalent type, allow using SUBREG_REG of TARGET as the target
11292 of the expansion of EXP.
11293 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11294 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11295 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11296 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11297 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11298
11299 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11300
11301 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11302 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11303 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11304
11305 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11306
11307 PR optimization/5747
11308 * loop.c (scan_loop): Update reg info if move_movables created new
11309 pseudos.
11310
11311 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11312
11313 * gcc.c (init_gcc_spec): Revert last change.
11314
11315 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11316
11317 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11318 gpc_reg_operand constraint.
11319
11320 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11321
11322 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11323 Simplify comparison of `low'.
11324 (add_operand): Fix formatting.
11325 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11326 (mask_operand): Disallow mask to wrap in 64-bit mode.
11327 (rs6000_stack_info): Remove redundant test setting push_p.
11328 (output_toc): Fix formatting.
11329 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11330 cc_reg_not_cr0_operand constraint.
11331 (booldi3, boolcdi3 splitters): Same.
11332
11333 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11334
11335 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11336
11337 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11338
11339 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11340 gcc invoked with -shared-libgcc.
11341
11342 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11343
11344 PR c++/5748
11345 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11346 decl if any of elements was TREE_USED.
11347
11348 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11349
11350 * config/sparc/sol2.h: Don't include sys/mman.h.
11351 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11352 (arith_4096_operand): Don't throw high bits away.
11353 (const64_operand): Take sign extension of CONST_INTs into account.
11354 (const64_high_operand, sparc_emit_set_const32): Likewise.
11355 (GEN_HIGHINT64): Likewise.
11356 (sparc_emit_set_const64_quick1): Likewise.
11357 (const64_is_2insns): Likewise.
11358 (print_operand): Use trunc_int_for_mode for sign extension.
11359 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11360 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11361 chars. Assume CONST_INT is already properly sign-extended.
11362 (movdi split): Sign-extend each SImode part.
11363 (andsi3 split): Don't mask high bits off, so that result
11364 remains properly sign-extend.
11365 (iorsi3 split): Likewise.
11366 (xorsi3 split): Likewise.
11367
11368 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11369
11370 * fold-const.c (fold): Fix typo in comments.
11371
11372 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11373
11374 * Makefile.in (langhooks.o): Update dependencies.
11375
11376 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11377
11378 * langhooks.c: Include flags.h.
11379
11380 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11381
11382 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11383
11384 * c-common.c (c_common_post_options): Set inline trees by
11385 default.
11386
11387 * doc/extend.texi (Function Attributes): Document always_inline
11388 attribute.
11389 Update documentation about inlining when not optimizing.
11390
11391 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11392
11393 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11394 unless DECL_ALWAYS_INLINE.
11395
11396 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11397 unless DECL_ALWAYS_INLINE.
11398 (c_disregard_inline_limits): Disregard if always_inline set.
11399
11400 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11401 Disregard if always_inline set.
11402 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11403 unless DECL_ALWAYS_INLINE.
11404
11405 * attribs.c (handle_always_inline_attribute): New.
11406 (c_common_attribute_table): Add always_inline.
11407
11408 * config/rs6000/altivec.h: Add prototypes for builtins
11409 requiring the always_inline attribute.
11410
11411 2002-02-21 Eric Christopher <echristo@redhat.com>
11412
11413 * expmed.c (store_bit_field): Try to simplify the subreg
11414 before generating a new one when when the mode size of
11415 value is less than maxmode.
11416
11417 2002-02-21 Richard Henderson <rth@redhat.com>
11418
11419 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11420 than gen_rtx_PLUS to form the sum.
11421 * explow.c (force_reg): Rearrange to not allocate new pseudo
11422 when force_operand returns a register.
11423 * expr.c (expand_assignment): Allow offset_rtx expansion to
11424 return a sum. Do not force addresses into registers.
11425 (expand_expr): Likewise.
11426 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11427 to canonicalize arithmetic that didn't simpify.
11428 (simplify_plus_minus): New argument force; update
11429 all callers. Don't split CONST unless we can do something with it,
11430 and wouldn't lose the constness of the operands.
11431
11432 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11433 that we generated earlier.
11434
11435 2002-02-21 Tom Tromey <tromey@redhat.com>
11436
11437 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11438 (output_line_info): Use constant `1', with a long explanatory
11439 comment.
11440 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11441
11442 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11443
11444 * jump.c (redirect_jump): If old label has no UID, don't try to
11445 delete it.
11446
11447 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11448
11449 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11450 If input is constant, do shifts at compile time.
11451
11452 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11453
11454 * doc/extend.texi: Fix some more overfull hboxes.
11455
11456 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11457
11458 PR optimization/4994
11459 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11460 register moves.
11461
11462 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11463
11464 PR c++/4574
11465 * expr.h (expand_and): Add mode argument.
11466 * expmed.c (expand_and): Add mode argument.
11467 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11468 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11469 * except.c (expand_builtin_extract_return_addr): Likewise.
11470 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11471 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11472 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11473 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11474 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11475 gen_rtx (CONST_INT, VOIDmode, x).
11476
11477 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11478
11479 PR c/4697:
11480 * stmt.c (warn_if_unused_value): Move side effects test once more.
11481
11482 2002-02-20 Torbjorn Granlund <tege@swox.com>
11483
11484 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11485 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11486
11487 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11488
11489 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11490 SUBREG or ZERO_EXTEND.
11491
11492 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11493
11494 * sh.h (current_function_anonymous_args): Remove.
11495 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11496 of current_function_varargs and current_function_stdarg is set.
11497 * sh.c (sh_expand_prologue): Check current_function_varargs /
11498 current_function_stdarg / TARGET_SH5 instead of
11499 current_function_anonymous_args.
11500
11501 * sh64.h (TARGET_VERSION): Define.
11502
11503 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11504
11505 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11506 VRSAVE_REGNO on TARGET_ALTIVEC.
11507
11508 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11509
11510 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11511 bits of SImode const_int.
11512 (includes_rshift_p): Likewise.
11513 (print_operand): Call mask_operand and mask64_operand with correct
11514 mode.
11515 (rs6000_output_function_epilogue): Pad traceback table to word.
11516 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11517 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11518 mask64_operand with correct mode.
11519 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11520
11521 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11522
11523 PR debug/4461
11524 * varasm.c (get_pool_constant_mark): New.
11525 * rtl.h (get_pool_constant_mark): Add prototype.
11526 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11527 be represented if it has not been output.
11528
11529 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11530
11531 * combine.c (do_SUBST): Sanity check substitutions of
11532 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11533 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11534 CONST_INT into its operand.
11535 (known_cond): Likewise, for ZERO_EXTEND.
11536 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11537 allow for simplification of wide modes. Reject CONST_INTs in
11538 ZERO_EXTEND when their actual mode is not given.
11539
11540 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11541
11542 * c-decl.c (pushdecl): If no global declaration is found for an
11543 extern declaration in block scope, try a limbo one.
11544
11545 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11546
11547 PR c++/4401
11548 * c-common.c (pointer_int_sum): Moved from...
11549 * c-typeck.c (pointer_int_sum): ...here.
11550 * c-common.h (pointer_int_sum): Add prototype.
11551
11552 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11553
11554 PR c++/5713
11555 * c-decl.c (duplicate_decls): Return 0 if issued error about
11556 redeclaration.
11557
11558 2002-02-20 Roger Sayle <roger@eyesopen.com>
11559 Jakub Jelinek <jakub@redhat.com>
11560
11561 PR c/4389
11562 * tree.c (host_integerp): Ensure that the constant integer is
11563 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11564 when pos is zero or non-zero respectively. Clarify comment.
11565 * c-format.c (check_format_info_recurse): Fix host_integerp
11566 usage; the pos argument should be zero when assigning to a
11567 signed HOST_WIDE_INT.
11568
11569 2002-02-20 Richard Henderson <rth@redhat.com>
11570
11571 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11572 of the operand, rather than assuming TImode.
11573 (ix86_expand_binop_builtin): Cope with commutative patterns
11574 using nonimmediate_operand for both operands.
11575 (ix86_expand_timode_binop_builtin): Likewise.
11576 (ix86_expand_store_builtin): Validate operand 1.
11577 (ix86_expand_unop1_builtin): Likewise.
11578
11579 2002-02-20 Philip Blundell <philb@gnu.org>
11580
11581 PR 5705
11582 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11583
11584 2002-02-20 Richard Henderson <rth@redhat.com>
11585
11586 PR c/5615
11587 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11588
11589 2002-02-20 Tom Tromey <tromey@redhat.com>
11590
11591 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11592 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11593 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11594 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11595 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11596 unconditionally.
11597
11598 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11599
11600 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11601 for (const_int 0) in X not just INTVAL.
11602
11603 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11604
11605 * doc/extend.texi: Avoid or reduce overfull hboxes.
11606
11607 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11608
11609 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11610 operations if the field does not start at a mode boundary.
11611
11612 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11613
11614 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11615 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11616 Also done for -Acpu and -Amachine.
11617
11618 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11619
11620 * cppinit.c (init_dependency_output): Take deps output file
11621 from -o if none given with -MF. Suppress normal output.
11622 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11623 * doc/cpp.texi, doc/invoke.texi: Update.
11624
11625 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11626
11627 * toplev.c (output_quoted_string): Write unprintable
11628 characters with octal escapes.
11629
11630 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11631
11632 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11633 really_call_used[VRSAVE_REGNO] if not Altivec.
11634
11635 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11636
11637 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11638 MODE_MASK.
11639 (constant_pool_expr_1): Fix formatting.
11640 (rs6000_legitimize_reload_address): Likewise.
11641
11642 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11643
11644 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11645 now that we have one.
11646
11647 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11648
11649 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11650 end of first block of bitfields (which was only seven bits);
11651 rename dummy to unused_1; remove comment which is no longer true.
11652
11653 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11654
11655 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11656
11657 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11658
11659 PR 5399
11660 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11661 if generating PIC.
11662
11663 PR 5054
11664 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11665 arm_is_longcall_p rather than inspecting call-type cookie
11666 directly.
11667 (call_value_insn) [TARGET_THUMB]: Likewise.
11668
11669 2002-02-19 Graham Stott <grahams@redhat.com>
11670
11671 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11672
11673 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11674
11675 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11676 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11677 (FP_SAVE_INLINE): Delete.
11678
11679 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11680 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11681 * config/rs6000/t-ppccomm: Build crtsavres.o.
11682 * config/rs6000/crtsavres.asm: New file.
11683
11684 2002-02-19 Philip Blundell <philb@gnu.org>
11685
11686 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11687 functions.
11688 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11689 (output_return_instruction): Allow interrupt functions to return with
11690 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11691 (arm_expand_prologue): Subtract 4 before stacking LR in an
11692 interrupt function.
11693
11694 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11695
11696 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11697 decl, not just FUNCTION_DECL.
11698 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11699 (arm_assemble_integer): Likewise.
11700 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11701 marked local.
11702
11703 2002-02-19 matthew green <mrg@eterna.com.au>
11704
11705 * config.gcc (sparc-*-netbsdelf*): Enable target.
11706 (sparc64-*-netbsd*): New target.
11707 * config/sparc/netbsd-elf.h: New file.
11708 * config/sparc/t-netbsd64: New file.
11709
11710 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11711
11712 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11713
11714 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11715
11716 * doc/invoke.texi: explicitly list the style guidelines that
11717 -Weffc++ checks for.
11718
11719 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11720
11721 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11722
11723 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11724
11725 PR other/5718
11726 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11727 only if not -E. If -E, pass -o through to the preprocessor.
11728
11729 2002-02-19 Kazu Hirata <kazu@hxi.com>
11730
11731 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11732 register number with an appropriate macro.
11733
11734 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11735
11736 * doc/rtl.texi (Constants): Close @code tag.
11737
11738 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11739
11740 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11741 ("mmx_uavgv4hi3"): Same.
11742 ("pmulhrwv4hi3"): Same.
11743
11744 * tree-inline.c (walk_tree): Handle vectors.
11745
11746 * c-common.c (constant_expression_warning): Handle vectors.
11747 (overflow_warning): Same.
11748
11749 * sched-deps.c (sched_analyze_2): Handle vectors.
11750
11751 * rtlanal.c (rtx_unstable_p): Handle vectors.
11752 (rtx_varies_p): Same.
11753 (count_occurrences): Same.
11754 (regs_set_between_p): Same.
11755 (modified_between_p): Same.
11756 (modified_in_p): Same.
11757 (volatile_insn_p): Same.
11758 (volatile_refs_p): Same.
11759 (side_effects_p): Same.
11760 (may_trap_p): Same.
11761 (inequality_comparisons_p): Same.
11762 (replace_regs): Same.
11763 (computed_jump_p_1): Same.
11764
11765 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11766 argument.
11767 (inner_mode_array): New.
11768 (copy_rtx): Handle vectors.
11769 (copy_most_rtx): Same.
11770 (rtx_equal_p): Same.
11771 (get_mode_alignment): Adjust for vectors.
11772
11773 * resource.c (mark_referenced_resources): Handle vectors.
11774 (mark_set_resources): Same.
11775
11776 * reload1.c (eliminate_regs): Handle vectors.
11777 (elimination_effects): Same.
11778 (scan_paradoxical_subregs): Same.
11779
11780 * reload.c (subst_reg_equivs): Handle vectors.
11781
11782 * regrename.c (scan_rtx): Handle vectors.
11783
11784 * regclass.c (reg_scan_mark_refs): Handle vectors.
11785
11786 * recog.c (find_single_use_1): Handle vectors.
11787
11788 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11789 (contains_replace_regs): Same.
11790 (memref_referenced_p): Same.
11791
11792 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11793 (subst_constants): Same.
11794
11795 * genattrtab.c (attr_copy_rtx): Handle vectors.
11796 (encode_units_mask): Same.
11797 (clear_struct_flag): Same.
11798 (count_sub_rtxs): Same.
11799
11800 * gcse.c (want_to_gcse_p): Handle vectors.
11801 (oprs_unchanged_p): Same.
11802 (hash_expr_1): Same.
11803 (oprs_not_set_p): Same.
11804 (expr_killed_p): Same.
11805 (compute_transp): Same.
11806 (store_ops_ok): Same.
11807
11808 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11809 of vectors.
11810 (fixup_var_refs_1): Same.
11811 (instantiate_virtual_regs_1): Same.
11812
11813 * fold-const.c (operand_equal_p): Handle vectors.
11814 (fold): Same.
11815 (rtl_expr_nonnegative_p): Same.
11816
11817 * flow.c (mark_used_regs): Handle vectors.
11818
11819 * df.c (df_uses_record): Handle vectors.
11820
11821 * cselib.c (cselib_subst_to_values): Handle vectors.
11822 (cselib_mem_conflict_p): Same.
11823 (hash_rtx): Same.
11824
11825 * cse.c (canon_reg): Handle vectors.
11826 (fold_rt): Same.
11827 (cse_process_notes): Same.
11828 (count_reg_usage): Same.
11829 (canon_hash): Same.
11830
11831 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11832
11833 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11834
11835 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11836 (gen_rtx): Handle CONST_VECTOR.
11837 (gen_const_vector_0): New.
11838 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11839 (reset_used_flags): Same.
11840 (copy_insn_1): Same.
11841 (initializer_constant_valid_p): Handle VECTOR_CST.
11842
11843 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11844
11845 * doc/rtl.texi (Constants): Document const_vector.
11846 (CONST0_RTX): Update for vectors.
11847 (RTL sharing): Same.
11848
11849 * print-tree.c (print_node): Add case for VECTOR_CST.
11850
11851 * tree.h (TREE_VECTOR_CST_ELTS): New.
11852 (struct tree_vector): New.
11853 (union tree_node): Add vector node.
11854 (build_vector): Add prototype.
11855
11856 * tree.def (VECTOR_CST): New.
11857
11858 * tree.c (build_vector): New.
11859
11860 * expmed.c (make_tree): Handle CONST_VECTOR.
11861
11862 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11863 (CONST_VECTOR_ELT): New.
11864 (CONST_VECTOR_NUNITS): New.
11865
11866 * machmode.h (GET_MODE_INNER): New.
11867 (DEF_MACHMODE): Accept 8th arg.
11868
11869 * machmode.def: Add 8th argument for vector inner mode.
11870 Add inner vector modes for vectors.
11871
11872 * rtl.def (VEC_CONST): Remove.
11873 (CONST_VECTOR): New.
11874
11875 * expr.c (clear_storage): Allow vectors.
11876 (is_zeros_p): Handle VECTOR_CST.
11877
11878 * varasm.c (output_constant_pool): Handle vectors.
11879 (rtx_const): Add veclo and vechi fields.
11880 (kind): Add RTX_VECTOR.
11881 (decode_rtx_const): Add case for vector.
11882
11883 * config/rs6000/rs6000-protos.h: Add zero_constant.
11884
11885 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11886 constants. Force easy vector constants into memory.
11887 (easy_vector_constant): New.
11888 (emit_easy_vector_constant): New.
11889 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11890 darwin.
11891
11892 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11893 instruction does.
11894 ("altivec_lvxl"): Same.
11895 (altivec_lvebx): Same.
11896 (altivec_lvehx): Same.
11897 (altivec_lvewx): Same.
11898 ("*movv4si_const0"): New.
11899 ("*movv4sf_const0"): New.
11900 ("*movv8hi_const0"): New.
11901 ("*movv16qi_const0"): New.
11902
11903 2002-02-18 Kazu Hirata <kazu@hxi.com>
11904
11905 * config/h8300/h8300.c (notice_update_cc): Use
11906 cc_status.value2.
11907
11908 2002-02-18 Kazu Hirata <kazu@hxi.com>
11909
11910 * config/h8300/h8300.md (divmod patterns): Change the
11911 constraints for operands[1] to register_operand.
11912
11913 2002-02-18 Kazu Hirata <kazu@hxi.com>
11914
11915 * config/h8300/h8300-protos.h: Remove the prototype for
11916 p_operand.
11917 * config/h8300/h8300.c (p_operand): Remove.
11918 * config/h8300/h8300.md: Replace p_operand with
11919 const_int_operand.
11920
11921 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11922
11923 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11924 comment.
11925 (output_return_instruction): Allow use of LDR to unstack
11926 return addresss even for interrupt handlers or when
11927 interworking. If compiling for ARMv5, use interworking-safe
11928 return instructions by default. Remove duplicated code and
11929 lengthy "strcat" sequences.
11930
11931 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11932
11933 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11934 (LINK_EH_SPEC): Define.
11935 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11936
11937 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11938
11939 * config/s390/s390.c (s390_emit_prologue): Do not set the
11940 frame_related flag for call-clobbered registers.
11941
11942 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11943
11944 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11945 (construct_container): Fix handling of SSE operands.
11946 (ix86_expand_builtin): Fix handling of 64bit pointers.
11947 (mmx_maskmovq_rex): New pattern.
11948
11949 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11950
11951 * regrename.c (kill_set_value): Handle subregs properly.
11952
11953 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
11954
11955 * objc/objc-act.c (handle_impent): Remove leading '*'
11956 from objc_class_name.
11957
11958 2002-02-17 Richard Henderson <rth@redhat.com>
11959
11960 * config/alpha/alpha.c (some_small_symbolic_operand,
11961 some_small_symbolic_operand_1, split_small_symbolic_operand,
11962 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11963 Handle small SYMBOL_REFs anywhere, not just inside memories.
11964 * config/alpha/alpha-protos.h: Update.
11965 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11966 * config/alpha/alpha.md (small symbolic operand splitter): Update.
11967
11968 2002-02-17 Roland McGrath <roland@frob.com>
11969
11970 * config.gcc (powerpc-*-gnu-gnualtivec*,
11971 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11972 * config/rs6000/gnu.h: New file.
11973 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11974 Grok "gnu" in rs6000_abi_name.
11975 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11976 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11977 Grok -mcall-gnu analogous to -mcall-linux et al.
11978 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11979 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11980 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11981
11982 2002-02-17 Jakub Jelinek <jakub@redhat.com>
11983
11984 PR c/3444:
11985 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11986 shortening.
11987
11988 2002-02-17 Philipp Thomas <pthomas@suse.de>
11989
11990 * config/cris/cris.h: Undefine STARTFILE_SPEC and
11991 ENDFILE_SPEC before (re)defining them.
11992
11993 2002-02-17 Kazu Hirata <kazu@hxi.com>
11994
11995 * config/h8300/h8300.c: Fix formatting.
11996 * config/h8300/h8300.h: Likewise.
11997
11998 2002-02-17 Philipp Thomas <pthomas@suse.de>
11999
12000 * doc/tm.texi: Explain why empty strings should not be
12001 marked for translation.
12002
12003 2002-02-17 Philipp Thomas <pthomas@suse.de>
12004
12005 * final.c (output_operand_lossage): Changed to accept
12006 printf style arguments. Change calls where necessary.
12007 * output.h (output_operand_lossage): Change declaration
12008 accordingly. Update copyright.
12009 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12010 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12011 Update copyright date where necessary.
12012
12013 * config/i386/i386.c (print_operand): Likewise. Remove use of
12014 sprintf.
12015
12016 * config/cris/cris.c (cris_operand_lossage): Likewise.
12017 Rename parameter so that exgettext recognizes it as
12018 translatable message.
12019 (LOSE_AND_RETURN): Rename parameter to msgid.
12020
12021 2002-02-17 Kazu Hirata <kazu@hxi.com>
12022
12023 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12024 hard coded register number with an appropriate macro.
12025 (HARD_REGNO_MODE_OK): Likewise.
12026 (ARG_POINTER_REGNUM): Likewise.
12027 (STATIC_CHAIN_REGNUM): Likewise.
12028 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12029 * config/h8300/h8300.md (define_constants): Define more
12030 register numbers.
12031
12032 2002-02-17 Philipp Thomas <pthomas@suse.de>
12033
12034 * config/i386/i386.h: Don't mark empty strings for translation.
12035
12036 2002-02-16 H.J. Lu <hjl@gnu.org>
12037
12038 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12039
12040 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12041
12042 * cppinit.c (merge_include_chains): Check for brack being
12043 NULL before attempting to merge it with qtail.
12044
12045 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12046
12047 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12048 DBX_DEBUG.
12049
12050 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12051
12052 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12053
12054 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12055
12056 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12057 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12058 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12059
12060 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12061
12062 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12063 now only if !TARGET_FIX.
12064 (*movsi_nt_vms_fix): New pattern.
12065
12066 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12067
12068 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12069 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12070 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12071 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12072 (alpha_start_function, alpha_expand_epilogue): Likewise.
12073 (unicosmk_gen_dsib): Likewise.
12074
12075 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12076
12077 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12078
12079 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12080
12081 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12082 check_and_change_labels, s390_final_chunkify): Delete.
12083 (s390_split_branches, s390_chunkify_pool): New functions.
12084 (s390_function_prologue): Call them.
12085
12086 * config/s390/s390.h (S390_REL_MAX): Delete.
12087 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12088
12089 * config/s390/s390.md (cjump, icjump, jump): Fix length
12090 attribute calculation.
12091
12092
12093 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12094
12095 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12096 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12097
12098 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12099
12100 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12101 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12102 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12103
12104 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12105
12106 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12107
12108 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12109
12110 * reload.c (find_dummy_reload): Check that an output register
12111 is valid for its mode.
12112
12113 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12114
12115 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12116 to simplify it.
12117
12118 * function.c (assign_parms): Demote promoted argument passed by
12119 transparent reference.
12120
12121 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12122
12123 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12124 -Acpu() and -Amachine() to eliminate warnings.
12125
12126 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12127
12128 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12129
12130 2002-02-14 Kazu Hirata <kazu@hxi.com>
12131
12132 * config/h8300/h8300-protos.h: Update the prototype for
12133 const_costs.
12134 * config/h8300/h8300.c (const_costs): Treat SET as a little
12135 more expensive operation.
12136 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12137 reference to const_costs.
12138
12139 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12140
12141 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12142
12143 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12144
12145 PR c/5503:
12146 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12147 use arguments from newtype.
12148
12149 2002-02-13 Eric Christopher <echristo@redhat.com>
12150
12151 * config/mips/mips.c (override_options): Add check for march/mipsX
12152 on the same command line. Fix error message in cpu processing.
12153 Remove architecture and ISA checks.
12154
12155 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12156
12157 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12158
12159 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12160
12161 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12162
12163 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12164 alternatives.
12165 ("*movv8hi_internal1"): Same.
12166 ("*movv16qi_internal1"): Same.
12167 ("*movv4sf_internal1"): Same.
12168
12169 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12170 not push_reload for altivec modes.
12171
12172 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12173
12174 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12175 all RTEMS targets including removal of #includes from config/*/rtems*.h
12176 file and adding them to tm_file setting. Added xm_defines=POSIX to
12177 many targets.
12178 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12179 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12180 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12181 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12182 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12183 config/m68k/rtemself.h: Ditto.
12184 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12185 config/mips/rtems64.h: Ditto.
12186 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12187 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12188 Ditto.
12189 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12190 config/sparc/rtemself.h: Ditto.
12191 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12192 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12193 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12194 more like arm-elf.
12195 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12196 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12197 target made more similar to i386-elf.
12198 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12199 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12200 be similar to config/m68k/t-m68kelf.
12201 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12202
12203 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12204
12205 * regmove.c (kill_value): Handle subregs.
12206
12207 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12208
12209 * i386.md (mul patterns): Allow memory operand to be first;
12210 add expanders where needed; fix constraints.
12211 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12212 Allow memory operand to be the first.
12213
12214 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12215 operands.
12216
12217 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12218
12219 PR c/5681:
12220 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12221 GET_MODE (x).
12222
12223 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12224
12225 PR optimization/5547:
12226 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12227 all valid IA-32 address modes involving non-scaled %ebx and
12228 GOT/GOTOFF as displacement.
12229
12230 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12231
12232 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12233 after emitting ltorg insns.
12234
12235 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12236 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12237 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12238 *abssf2): Fix "op_type" attribute.
12239
12240 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12241
12242 * mkconfig.sh: Avoid using a subshell redirect.
12243 ($output.T): Change to $(output)T.
12244 (ENABLE_NLS): Remove unneeded undef.
12245
12246 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12247 * config/alpha/x-vms (libsubdir): Define.
12248
12249 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12250 register frame procedures. Optimize retrieving context.
12251
12252 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12253 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12254 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12255
12256 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12257
12258 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12259 Make same change as for find_base_value.
12260
12261 2002-02-13 Kazu Hirata <kazu@hxi.com>
12262
12263 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12264 of QImode and SImode.
12265
12266 2002-02-13 Kazu Hirata <kazu@hxi.com>
12267
12268 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12269 length computation of movsi.
12270 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12271
12272 2002-02-13 Kazu Hirata <kazu@hxi.com>
12273
12274 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12275 operands[2] to register_operand.
12276
12277 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12278
12279 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12280
12281 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12282
12283 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12284 for altivec_lvx* and altivec_stvx*.
12285 ("*movv4si_internal"): Add constraint for loading from GPRs.
12286 ("*movv8hi_internal1"): Same.
12287 ("*movv16qi_internal1"): Same.
12288 ("*movv4sf_internal1"): Same.
12289
12290 * config/rs6000/rs6000.c (altivec_register_operand): New.
12291
12292 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12293 altivec_register_operand.
12294
12295 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12296
12297 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12298 handle SYMBOL_REF.
12299
12300 2002-02-13 Stan Shebs <shebs@apple.com>
12301
12302 * c-typeck.c (digest_init): Handle vectors.
12303 (really_start_incremental_init): Same.
12304 (pop_init_level): Same.
12305 (process_init_element): Same.
12306
12307 * varasm.c (output_constant): Same.
12308
12309 * expr.c (clear_storage): Same.
12310 (store_constructor): Same.
12311
12312 2002-02-12 Eric Christopher <echristo@redhat.com>
12313
12314 * explow.c (hard_function_value): Add comment explaining
12315 signed/unsigned comparison.
12316
12317 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12318
12319 * jump.c (never_reached_warning): Add finish argument.
12320 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12321 real insn after end.
12322 * rtl.h (never_reached_warning): Adjust prototype.
12323 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12324 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12325 never_reached_warning.
12326
12327 2002-02-12 Graham Stott <grahams@redhat.com>
12328
12329 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12330
12331 2002-02-12 Kazu Hirata <kazu@hxi.com>
12332
12333 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12334 logical shifts on H8/300.
12335 (shift_alg_si): Improve several shifts on H8/300.
12336 (get_shift_alg): Likewise.
12337
12338 2002-02-12 Graham Stott <grahams@redhat.com>
12339
12340 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12341
12342 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12343
12344 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12345 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12346
12347 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12348
12349 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12350 non-CONST_INT through default_assemble_integer.
12351 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12352 <case 8>: Abort for CONST_DOUBLE.
12353
12354 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12355
12356 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12357 is specified.
12358 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12359 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12360
12361 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12362
12363 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12364
12365 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12366
12367 * regrename.c (regrename_optimize): Don't accept a
12368 part-clobbered register if the replaced register is not part
12369 clobbered.
12370
12371 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12372 take padding into account when computing the argument value.
12373
12374 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12375
12376 * combine.c (try_combine): Apply substitutions in
12377 CALL_INSN_FUNCTION_USAGE too.
12378
12379 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12380
12381 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12382 __builtin_altivec_abs*.
12383 (bdesc_abs): New.
12384
12385 * config/rs6000/rs6000.h (rs6000_builtins): Add
12386 ALTIVEC_BUILTIN_ABS*.
12387
12388 * config/rs6000/altivec.h: Use const char for builtins expecting
12389 literals.
12390 (vec_abs): New versions for C and C++.
12391 (vec_abss): Same.
12392
12393 2002-02-10 Kazu Hirata <kazu@hxi.com>
12394
12395 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12396 using Pmode.
12397
12398 2002-02-10 Kazu Hirata <kazu@hxi.com>
12399
12400 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12401 constant definition from h8300.md.
12402 (FRAME_POINTER_REGNUM): Likewise.
12403 * config/h8300/h8300.md (define_constants): Add FP_REG.
12404
12405 2002-02-10 Kazu Hirata <kazu@hxi.com>
12406
12407 * config/h8300/h8300.c (print_operand): Remove redundant code.
12408
12409 2002-02-10 Kazu Hirata <kazu@hxi.com>
12410
12411 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12412 * config/h8300/h8300.c (byte_reg): Make it static.
12413
12414 2002-02-10 Richard Henderson <rth@redhat.com>
12415
12416 PR c/5623
12417 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12418
12419 2002-02-10 Richard Henderson <rth@redhat.com>
12420
12421 PR c++/5624
12422 * tree.c (append_random_chars): Don't abort if main_input_filename
12423 does not exist.
12424
12425 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12426
12427 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12428
12429 2002-02-10 Kazu Hirata <kazu@hxi.com>
12430
12431 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12432 (pushhi1): Likewise.
12433
12434 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12435
12436 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12437 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12438
12439 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12440
12441 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12442 remove MASK_VIS.
12443 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12444
12445 2002-02-09 Kazu Hirata <kazu@hxi.com>
12446
12447 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12448 a half of an SImode register on H8/300.
12449
12450 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12451
12452 * i386.md (movdi_2): Add missing '!'.
12453
12454 2002-02-09 Kazu Hirata <kazu@hxi.com>
12455
12456 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12457 definitions.
12458
12459 2002-02-09 Kazu Hirata <kazu@hxi.com>
12460
12461 * config/h8300/h8300.md (length): Correct the distance valid
12462 for the short branch.
12463
12464 2002-02-09 Kazu Hirata <kazu@hxi.com>
12465
12466 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12467
12468 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12469
12470 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12471 registers in SImode.
12472 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12473 part-clobbered.
12474
12475 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12476 patch.
12477
12478 Contribute sh64-elf.
12479 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12480 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12481 (sh_cannot_modify_jumps_p): New function.
12482 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12483 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12484 (sh_ms_bitfield_layout_p): New function.
12485 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12486 Zack Weinberg <zack@codesourcery.com>
12487 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12488 expand_simple_binop instead of expand_binop.
12489 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12490 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12491 use of .quad and .uaquad.
12492 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12493 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12494 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12495 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12496 movdi_const_16bit): Make sure all CONSTs have modes.
12497 (sym2PIC): Ditto, but by adjusting all callers.
12498 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12499 if the prologue calls the SHmedia argument decoder or register
12500 saver.
12501 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12502 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12503 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12504 (sh_expand_epilogue): Don't emit USE of return target register.
12505 (prepare_move_operands): Legitimize DImode PIC addresses.
12506 (sh_media_register_for_return): Skip tr0, used to initialize the
12507 PIC register.
12508 (sh_expand_prologue): Remove explicit USE of return register.
12509 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12510 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12511 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12512 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12513 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12514 EXTRA_CONSTRAINT_T.
12515 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12516 (MOVI_SHORI_BASE_OPERAND_P): New.
12517 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12518 (EXTRA_CONSTRAINT_T): Define in terms of them.
12519 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12520 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12521 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12522 alternatives supporting TARGET_REGS.
12523 (UNSPEC_GOTPLT): New constant.
12524 (movdi split): Move incrementing of LABEL_NUSES...
12525 (movdi_const, movdi_const_32bit): Here. Use
12526 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12527 (movdi_const_16bit): New.
12528 (call, call_value) [flag_pic]: Use GOTPLT.
12529 (call_pop, call_value_pop): New expands.
12530 (call_pop_compact, call_pop_rettramp): New insns.
12531 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12532 (sibcall) [flag_pic]: Use GOT.
12533 (builtint_setjmp_receiver): Remove bogus, unused expand.
12534 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12535 (*pt, *ptb, ptrel): New insns.
12536 (sym2GOT): Handle DImode GOT.
12537 (sym2GOTPLT, symGOTPLT2reg): New expands.
12538 (sym2PIC): New expand.
12539 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12540 (shcompact_return_tramp_i): Use return register explicitly.
12541 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12542 disable flag_reorder_blocks.
12543 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12544 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12545 clobbers, for clarity.
12546 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12547 restoring of r0 in macl as MAYBE_DEAD.
12548 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12549 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12550 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12551 alter_subreg all over.
12552 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12553 reload, instead of emitting instructions that would require
12554 reloading.
12555 (casesi_load_media): Add missing modes.
12556 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12557 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12558 as used if the argument decoder is called.
12559 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12560 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12561 Pmode, then extend it to DImode if necessary.
12562 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12563 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12564 constants in FPU-enabled SHmedia, let them be loaded from memory.
12565 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12566 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12567 Adjust whitespace in assembly output templates.
12568 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12569 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12570 mode of if_then_else.
12571 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12572 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12573 sh.h.
12574 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12575 Joern Rennecke <amylaar@redhat.com>
12576 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12577 (SUBTARGET_CPP_PTR_SPEC): New.
12578 (SUBTARGET_CPP_SPEC): Remove.
12579 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12580 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12581 Fix typo in previous checkin.
12582 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12583 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12584 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12585 Alexandre Oliva <aoliva@redhat.com>
12586 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12587 what single FP register can hold for SHmedia target.
12588 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12589 Alexandre Oliva <aoliva@redhat.com>
12590 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12591 Do not split into SUBREG.
12592 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12593 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12594 and added new functions as specified in SH5 ABI r9.
12595 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12596 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12597 8-byte boundary.
12598 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12599 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12600 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12601 and consttable_window_ends.
12602 2001-06-03 Graham Stott <grahams@redhat,com>
12603 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12604 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12605 * config/sh/sh.c (print_operand): Handle floating-point pair,
12606 vector and matrix registers.
12607 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12608 vector modes into account.
12609 * config/sh/sh.md (movv2sf): Split move between registers into
12610 movdf.
12611 (movv4sf, movv16sf): Introduce insns that get split only after
12612 reload.
12613 * config/sh/shmedia.h: Fix Copyright dates.
12614 * config/sh/ushmedia.h: Likewise. Move loop counter
12615 declarations into conditionals that uses them.
12616 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12617 loop boundary.
12618 * config/sh/sshmedia.h: Fix Copyright dates.
12619 (sh_media_PUTCFG): Fix constraints.
12620 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12621 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12622 ptrmemfunc_vbit_in_delta for SH5.
12623 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12624 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12625 * invoke.texi: Likewise.
12626 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12627 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12628 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12629 GCC_pop_shmedia_regs_nofpu): New global symbols.
12630 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12631 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12632 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12633 compact function with nonlocal labels.
12634 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12635 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12636 (initial_elimination_offset): Account for their stack space.
12637 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12638 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12639 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12640 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12641 least one of the operands to be a register.
12642 (movv2sf): Likewise. Renamed to movv2sf_i.
12643 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12644 prepare_move_operands() before emitting SHmedia insns.
12645 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12646 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12647 Don't save nor initialize r12. Don't mis-align the stack.
12648 Pad the code with a nop.
12649 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12650 stack.
12651 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12652 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12653 [__SHMEDIA__]: Implement.
12654 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12655 * config/sh/sh.md: Set latency of `pt' closer to reality.
12656 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12657 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12658 Set move, load and store type attributes.
12659 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12660 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12661 profiling.
12662 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12663 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12664 * config/sh/sh.c (sh_media_register_for_return): New function.
12665 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12666 branch-target register.
12667 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12668 * config/sh/sh.md (return_media_i): Use any call-clobbered
12669 branch-target register.
12670 (return_media): If r18 wasn't copied in the prologue, copy it
12671 here.
12672 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12673 Clear class FP0_REGS.
12674 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12675 from elf.h.
12676 2001-03-08 DJ Delorie <dj@redhat.com>
12677 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12678 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12679 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12680 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12681 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12682 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12683 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12684 return value correctly for call_cookie.
12685 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12686 * config/sh/crt1.asm (start): Modified so as to call
12687 ___setup_argv_and_call_main.
12688 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12689 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12690 SHmedia mode.
12691 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12692 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12693 (STRIP_NAME_ENCODING): Use it.
12694 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12695 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12696 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12697 prepare_scc_operands().
12698 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12699 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12700 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12701 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12702 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12703 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12704 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12705 used in shcompact_incoming_args.
12706 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12707 change.
12708 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12709 mode.
12710 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12711 Adjust accordingly.
12712 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12713 Simplify. Adjust. Add sanity check.
12714 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12715 FPU_SINGLE_BIT.
12716 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12717 TARGET_SHCOMPACT.
12718 (udivsi3, divsi3): Use them.
12719 (force_mode_for_call): New insn.
12720 (call, call_value, sibcall_value): Emit it before SHcompact
12721 calls.
12722 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12723 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12724 call cookie is non-NULL before taking its value.
12725 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12726 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12727 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12728 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12729 block.
12730 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12731 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12732 temporary for stack adjusts. Use MACL and MACH to pass
12733 arguments to shcompact_incoming_args.
12734 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12735 clobber r1.
12736 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12737 (nested_trampoline): Load static chain address into r1.
12738 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12739 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12740 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12741 fp_arith_reg_operand().
12742 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12743 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12744 and use signed compares for them.
12745 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12746 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12747 ones properly aligned.
12748 (find_barrier): Account for extra alignment needed for 8-byte wide
12749 constants.
12750 (machine_dependent_reorg): Require a label for the second 4-byte
12751 constant after an 8-byte one.
12752 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12753 change.
12754 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12755 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12756 last_float when switching float modes.
12757 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12758 auto-increment for general-purpose registers.
12759 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12760 result.
12761 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12762 for stack adjust.
12763 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12764 registers for varargs.
12765 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12766 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12767 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12768 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12769 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12770 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12771 call_cookie accordingly.
12772 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12773 (SHCOMPACT_BYREF): Likewise.
12774 (SHCOMPACT_FORCE_ON_STACK): New macro.
12775 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12776 (sh_builtin_saveregs): Likewise.
12777 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12778 shcompact_incoming_args): Use new shift values. Support
12779 sequences of consecutive and non-consecutive pushes/pops.
12780 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12781 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12782 * config/sh/sh.h (TEXT_SECTION): Define.
12783 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12784 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12785 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12786 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12787 return values on FPU-enabled SHmedia.
12788 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12789 FPU-enabled SHmedia.
12790 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12791 value is returned in a non-FP reg and is not returned by
12792 reference.
12793 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12794 jump_ind.
12795 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12796 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12797 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12798 quad-aligned to be passed by callee-copy reference.
12799 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12800 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12801 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12802 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12803 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12804 copying low-numbered FP regs to r7 and r8.
12805 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12806 FP regs to general-purpose regs only if the copy was passed on the
12807 stack.
12808 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12809 copying FP reg to r9.
12810 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12811 copy FP regs to general-purpose regs only in outgoing calls.
12812 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12813 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12814 HOST_WIDE_INT.
12815 * config/sh/sh.h (struct sh_args): Document all fields.
12816 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12817 passed partially on the stack should not consider making
12818 sibcalls.
12819 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12820 stack_regs only for incoming calls. When passing FP args,
12821 make sure there are FP regs available before modifying
12822 call_cookie.
12823 (SHCOMPACT_BYREF): Pass double args in general-purpose
12824 registers by reference.
12825 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12826 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12827 attempt to generate sibcalls if the caller got any arguments
12828 by reference.
12829 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12830 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12831 to 8-byte boundaries.
12832 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12833 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12834 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12835 stored in the stack.
12836 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12837 for the offsets to have the ISA bit set.
12838 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12839 invocation. Use beq instead of bgt to mark end of sequence of
12840 loads.
12841 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12842 bgt to mark end of sequence of stores.
12843 * config/sh/sh.c (arith_operand): Don't check whether
12844 CONST_OK_FOR_J for now.
12845 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12846 instead of long for conversion.
12847 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12848 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12849 before passing it to fprintf.
12850 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12851 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12852 Call set_fpscr before reading/writing SR.
12853 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12854 Call set_fpscr.
12855 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12856 SHmedia code.
12857 (FMOVD_WORKS): Define on SH5 with FPU.
12858 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12859 setting.
12860 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12861 _fpscr_values.
12862 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12863 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12864 address.
12865 (ia_main_table): Ditto.
12866 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12867 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12868 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12869 the definitions from sh.h.
12870 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12871 TARGET_SH5.
12872 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12873 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12874 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12875 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12876 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12877 Increment LABEL_NUSES.
12878
12879 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12880 TARGET_SH5.
12881 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12882 defined.
12883 * config/sh/elf.h (SIZE_TYPE): Likewise.
12884 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12885 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12886 shcompact_incoming_args): Load switch table addresses using
12887 datalabel.
12888 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12889 (NO_BUILTIN_SIZE_TYPE): Define.
12890 (SIZE_TYPE): Don't define.
12891 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12892 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12893 definition of __SH5__=32 for -m5-compact-nofpu.
12894 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12895 ADDR_DIFF_VEC.
12896 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12897 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12898 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12899 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12900 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12901 (INSN_LENGTH_ALIGNMENT): Likewise.
12902 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12903 * config/sh/sh.md (call, call_value, sibcall): Simplify
12904 copying of non-branch-target register.
12905 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12906 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12907 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12908 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12909 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12910 floating-point values as structs.
12911 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12912 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12913 general-purpose register.
12914 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12915 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12916 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12917 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12918 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12919 (ENCODE_SECTION_INFO): Enclose variables and constants in
12920 DATALABEL unspecs.
12921 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12922 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12923 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12924 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12925 only for LABEL_REFs. For SYMBOL_REFs, prepend
12926 SH_DATALABEL_ENCODING to the symbol name.
12927 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12928 convert_mode().
12929 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12930 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12931 UNSPEC_DATALABEL.
12932 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12933 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12934 (DATALABEL_REF_P): Don't require CONST.
12935 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12936 REL label.
12937 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12938 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12939 right.
12940 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12941 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12942 Use shallow_copy_rtx and PUT_MODE to change the mode of
12943 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12944 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12945 on SHmedia using GENERAL_REGs.
12946 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12947 bltu_media_i): Fix reversion of conditions.
12948 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12949 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12950 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12951 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12952 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12953 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12954 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12955 (GCC_nested_trampoline): Likewise.
12956 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12957 * config/sh/sh.c (gen_datalabel_ref): Define.
12958 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12959 (INITIALIZE_TRAMPOLINE): Likewise.
12960 (TRAMPOLINE_ADJUST_ADDRESS): Define.
12961 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12962 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12963 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12964 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12965 (ic_invalidate): Adjust for SH5.
12966 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12967 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12968 _nested_trampoline.
12969 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
12970 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12971 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12972 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12973 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12974 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12975 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
12976 * config/sh/sh.c (target_reg_operand): Match only target-branch
12977 registers and pseudos that aren't virtual registers.
12978 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12979 Copy operands that don't match target_reg_operand to pseudos.
12980 (call_media, call_value_media, sibcall_media): Use
12981 target_reg_operand instead of target_operand.
12982 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
12983 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12984 * config/sh/sh.c (target_reg_operand): Match hardware registers
12985 other than branch-target registers.
12986 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12987 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12988 (fpscr_values) [SH5 == 32]: Define.
12989 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12990 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12991 Handle function addresses coming in SUBREGs.
12992 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
12993 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12994 shcompact_return_trampoline): Use datalabel where appropriate.
12995 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
12996 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12997 general-purpose register to copy one branch-target register to
12998 another.
12999 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13000 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13001 SYMBOL_REFs with VOIDmode.
13002 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13003 bltu_media_i): New insns.
13004 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13005 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13006 (INIT_CUMULATIVE_ARGS): Likewise.
13007 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13008 * machmode.def (V16SFmode): New mode.
13009 * c-common.c (type_for_mode): Support V2SF and V16SF.
13010 * tree.c (build_common_tree_nodes_2): Likewise.
13011 * tree.h (tree_index): Likewise.
13012 * calls.c (emit_call_1): Take args_so_far. Adjust all
13013 callers. Introduce CALL_POPS_ARGS.
13014 * tm.texi (CALL_POPS_ARGS): Document.
13015 * config/sh/crt1.asm: Implement in SHmedia mode.
13016 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13017 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13018 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13019 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13020 Implement divsi and udivsi in SHmedia mode. Introduce
13021 SHcompact trampolines.
13022 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13023 only in SHmedia64.
13024 (regno_reg_class): Rewrite.
13025 (fp_reg_names): Remove.
13026 (sh_register_names, sh_additional_register_names): New.
13027 (print_operand): Added `u'. Support SUBREGs in addresses.
13028 Add parentheses around shifted CONSTs.
13029 (output_file_start): Output .mode and .abi directives.
13030 (shiftcosts, addsubcosts, multcosts): Adjust.
13031 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13032 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13033 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13034 bytes, not registers. Take into account the need for the
13035 SHcompact incoming args trampoline. Adjust all callers.
13036 (sh_expand_prologue): Take stack_regs into account. Call
13037 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13038 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13039 stack aligned as per SH5 ABI.
13040 (sh_builtin_saveregs): Support SH5 ABI.
13041 (sh_build_va_list, sh_va_start): Likewise.
13042 (initial_elimination_offset): Take alignment into account.
13043 Compute location of PR according to the SH5 stack frame.
13044 (arith_reg_operand): Reject branch-target registers.
13045 (shmedia_6bit_operand): New.
13046 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13047 (target_reg_operand): Match DImode only. Accept SUBREGs.
13048 (target_operand): New.
13049 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13050 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13051 SIBCALL_REGS for SHmedia.
13052 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13053 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13054 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13055 (TARGET_SWITCHES): New SH5 flags.
13056 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13057 VALID_REGISTER_P to disable unsupported registers.
13058 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13059 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13060 (FUNCTION_ARG_PADDING): Define.
13061 (FASTEST_ALIGNMENT): Adjust.
13062 (SH_REGISTER_NAMES_INITIALIZER): New.
13063 (sh_register_names): Declare.
13064 (DEBUG_REGISTER_NAMES): Define.
13065 (REGISTER_NAMES): Define based on sh_register_names.
13066 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13067 (sh_additional_register_names): Declare.
13068 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13069 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13070 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13071 (REGISTER_NATURAL_MODE): Define.
13072 (FIRST_PSEUDO_REGISTER): Adjust.
13073 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13074 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13075 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13076 (VECTOR_MODE_SUPPORTED_P): Define.
13077 (REG_CLASS_CONTENTS): Adjust.
13078 (SMALL_REGISTER_CLASSES): Adjust.
13079 (REG_ALLOC_ORDER): Adjust.
13080 (INDEX_REG_CLASS): Adjust.
13081 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13082 (CONST_OK_FOR_LETTER_P): Adjust.
13083 (PREFERRED_RELOAD_CLASS): Adjust.
13084 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13085 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13086 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13087 (FIRST_FP_PARM_REG): Adjust.
13088 (CALL_POPS_ARGS): Define.
13089 (FUNCTION_ARG_REGNO_P): Adjust.
13090 (struct sh_args): New fields.
13091 (GET_SH_ARG_CLASS): Adjust.
13092 (INIT_CUMULATIVE_ARGS): Adjust.
13093 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13094 (FUNCTION_ARG_ADVANCE): Adjust.
13095 (FUNCTION_ARG): Adjust.
13096 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13097 (FUNCTION_ARG_CALLEE_COPIES): Define.
13098 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13099 (STRICT_ARGUMENT_NAMING): Define.
13100 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13101 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13102 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13103 (SETUP_INCOMING_VARARGS): Adjust.
13104 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13105 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13106 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13107 (SUBREG_OK_FOR_INDEX_P): Adjust.
13108 (EXTRA_CONSTRAINT_S): Update.
13109 (EXTRA_CONSTRAINT_T): New.
13110 (EXTRA_CONSTRAINT): Adjust.
13111 (GO_IF_LEGITIMATE_INDEX): Adjust.
13112 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13113 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13114 (MOVE_MAX): Adjust.
13115 (MAX_MOVE_MAX): Define.
13116 (Pmode): Adjust.
13117 (CONST_COSTS): Adjust.
13118 (REGISTER_MOVE_COST): Adjust.
13119 (BRANCH_COST): Adjust.
13120 (TEXT_SECTION_ASM_OP): Adjust.
13121 (DBX_REGISTER_NUMBER): Adjust.
13122 (ASM_OUTPUT_DOUBLE_INT): New.
13123 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13124 (PREDICATE_CODES): Adjust.
13125 (PROMOTE_MODE): Adjust.
13126 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13127 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13128 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13129 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13130 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13131 (TR0_REG, TR1_REG, TR2_REG): New.
13132 (XD0_REG): Renumber.
13133 (UNSPEC_COMPACT_ARGS): New.
13134 (type): Added pt and ptabs.
13135 (length): Default to 4 on SHmedia. Default pt length to 12
13136 and 20 on SHmedia32 and SHmedia64, respectively.
13137 (pt): New function unit.
13138 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13139 Add whitespace between operands of SHmedia instructions.
13140 (movdicc): Fix.
13141 (adddi3_media, addsi3_media): Adjust constraints.
13142 (subsi3) [SHmedia]: Force operand 1 into a register.
13143 (udivsi3_i1_media, udivsi3_i4_media): New.
13144 (udivsi3): Support SHmedia.
13145 (divsi3_i1_media, divsi3_i4_media): New.
13146 (divsi3): Support SHmedia.
13147 (anddi3, iordi3, xordi3): Adjust constraints.
13148 (zero_extendhidi2, zero_extendqidi2): New.
13149 (extendsidi2, extendhidi2, extendqidi2): New.
13150 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13151 (pop_e, pop_fpul, pop_4): Likewise.
13152 (movsi_media): Support FP and BT registers.
13153 (movsi_media_nofpu): New. Adjust splits to DImode.
13154 (lduw, ldub): Renamed to zero_extend* above.
13155 (movqi_media): Fix typo.
13156 (movdi_media): Support FP and BT registers.
13157 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13158 (movdi_const_32bit): New.
13159 (shori_media): Require immediate operand. Use `u' for output.
13160 (movdf_media, movsf_media): Simplified.
13161 (movdf_media_nofpu, movsf_media_nofpu): New.
13162 (movdf, movsf): Adjust
13163 (movv2sf, movv2sf, movv16sf): New.
13164 (beq_media, beq_media_i): Adjust constraints. Don't use
13165 scratch BT register.
13166 (bne_media, bne_media_i): Likewise.
13167 (bgt_media, bgt_media_i): Likewise.
13168 (bge_media, bge_media_i): Likewise.
13169 (bgtu_media, bgtu_media_i): Likewise.
13170 (bgeu_media, bgeu_media_i): Likewise.
13171 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13172 bunordered): Emit jump insn. Force operands to registers when
13173 needed.
13174 (jump_media, jump): Simplify.
13175 (call_compact, call_compact_rettramp): New.
13176 (call_value_compact, call_value_compact_rettramp): New.
13177 (call_media, call_value_media): Simplify.
13178 (sibcall_compact, sibcall_media): New.
13179 (call, call_value): Adjust for SHmedia and SHcompact.
13180 (sibcall, sibcall_value, untyped_call): Likewise.
13181 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13182 (indirect_jump): Adjust for SHmedia.
13183 (casesi_jump_media): New.
13184 (nop): Re-enable for SHmedia.
13185 (call_site): Restrict to SH1.
13186 (casesi): Adjust for SHmedia.
13187 (casesi_shift_media, casesi_load_media): New.
13188 (return): Explicitly use PR register. Call return trampoline
13189 on SHcompact.
13190 (return_i): Explicitly use PR register.
13191 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13192 (return_media): Adjust.
13193 (shcompact_incoming_args): New.
13194 (epilogue): Adjust.
13195 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13196 (movstrsi): Disable on SH5.
13197 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13198 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13199 (subsf3, subsf3_media): Likewise.
13200 (mulsf3, mulsf3_media, mac_media): Likewise.
13201 (divsf3, divsf3_media): Likewise.
13202 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13203 (floatsisf2, fux_truncsfsi2): Likewise.
13204 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13205 constraints.
13206 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13207 (cmpunsf_media, cmpsf): Likewise.
13208 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13209 (abssf2, abssf2_media): Likewise.
13210 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13211 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13212 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13213 (floatsidf2, fix_truncdfsi2): Likewise.
13214 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13215 constraints.
13216 (cmpeqdf_media, cmpgtdf_media): Likewise.
13217 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13218 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13219 (absdf2, absdf2_media): Likewise.
13220 (extendsfdf2, extendsfdf2_media): Likewise.
13221 (truncsfdf2, truncsfdf2_media): Likewise.
13222 * config/sh/sh64.h: New file.
13223 * config/sh/t-sh64: New file.
13224 * config/sh/shmedia.h: New file.
13225 * config/sh/ushmedia.h: New file.
13226 * config/sh/sshmedia.h: New file.
13227 * configure.in: Added sh64-*-elf.
13228 * configure: Rebuilt.
13229 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13230 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13231 (reg_class_from_letter): Use `b' for TARGET_REGS.
13232 (print_operand): Support `%M', `%m', `AND' and
13233 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13234 (andcosts): Adjust for SHmedia.
13235 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13236 Likewise.
13237 (target_reg_operand): New function.
13238 * config/sh/sh-protos.h (target_reg_operand): Declare.
13239 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13240 FP registers on SH5.
13241 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13242 on SH4.
13243 (TARGET_REGISTER_P): New macro.
13244 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13245 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13246 (EXTRA_CONSTRAINT_S): New macro.
13247 (EXTRA_CONSTRAINT): Adjust.
13248 (FLOAT_TYPE_SIZE): Define to 32.
13249 (Pmode): DImode on SHmedia.
13250 (CONST_COSTS): Adjust for SHmedia literals.
13251 (PREDICATE_CODES): Added target_reg_operand.
13252 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13253 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13254 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13255 (cmpdi): Accept SHmedia.
13256 (movdicc_false, movdicc_true): New insns.
13257 (movdicc): New expand.
13258 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13259 no_new_pseudos.
13260 (addsi3_media): Match `S' constraint.
13261 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13262 (negdi2): Expand for SHmedia.
13263 (one_cmpldi2): New expand.
13264 (zero_extendsidi2): Change from expand to insn.
13265 (extendsidi2): Add constraints.
13266 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13267 LD/ST address. Fix SI immediate loading split.
13268 (movhi_media, movqi_media, lduw, ldub): New insns.
13269 (movhi, movqi): Accept SHmedia.
13270 (shori_media, movdi_media): Relax input constraints. Split
13271 symbolic constants.
13272 (movdf_media, movsf_media): New insn. New split to movdi.
13273 (movdf, movsf): Match on SHmedia.
13274 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13275 bgeu_media): New insns and splits. New insns with `_i' suffix.
13276 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13277 (bunordered): New expand.
13278 (jump_compact): Renamed from `jump'.
13279 (jump_media): New insn.
13280 (jump): New expand.
13281 (call_media, call_value_media): New insns.
13282 (call, call_value): Adjust.
13283 (indirect_jump_compact): Renamed from `indirect_jump'.
13284 (indirect_jump_media): New insn.
13285 (indirect_jump): New expand.
13286 (untyped_call, return): Accept SHmedia.
13287 (return_media): New insn.
13288 (prologue, epilogue, blockage): Accept SHmedia.
13289 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13290 (sunordered): New expand.
13291 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13292 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13293 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13294 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13295 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13296 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13297 abssf2_media): New insns.
13298 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13299 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13300 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13301 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13302 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13303 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13304 absdf2_media): New insns.
13305 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13306 (extendsfdf2_media, truncdfsf2_media): New insns.
13307 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13308 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13309 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13310 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13311 * config/sh/sh.md (adddi3): New expand.
13312 (adddi3_media, adddi3z_media): New insns.
13313 (adddi3_compact): Renamed from adddi3.
13314 (addsi3_media): Use add.l r63 to add constant zero.
13315 (subdi3): New expand.
13316 (subdi3_media): New insn.
13317 (subdi3_compact): Renamed from subdi3.
13318 (mulsidi3): New expand.
13319 (mulsidi3_media): New insn.
13320 (mulsidi3_compact): Renamed from mulsidi3.
13321 (umulsidi3): New expand.
13322 (umulsidi3_media): New insn.
13323 (umulsidi3_compact): Renamed from umulsidi3.
13324 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13325 (ashlsi3, ashrsi3, lshrsi3): Use them.
13326 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13327 (ashldi3, ashrdi3, lshrdi3): Use them.
13328 (zero_extendsidi2): New expand.
13329 (extendsidi2): New insn.
13330 (movsi_media): New insn. Split to movdi to load constants.
13331 (movsi): Enable for shmedia.
13332 (movdi_media): New insn. Use shori_media to load wide constants.
13333 (short_media): New insn.
13334 (movdi): Enable for shmedia.
13335 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13336 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13337 (SUBTARGET_CPP_SPEC): Added `!m5'.
13338 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13339 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13340 to all other SH variants.
13341 (TARGET_DEFAULT): Set to SH1_BIT.
13342 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13343 (BITS_PER_WORD): Raise to 64 on shmedia.
13344 (MAX_BITS_PER_WORD): Change to 64.
13345 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13346 (INT_TYPE_SIZE): Keep as 32.
13347 (UNITS_PER_WORD): Raise to 8 on shmedia.
13348 (MIN_UNITS_PER_WORD): Keep as 4.
13349 (POINTER_SIZE): Raise to 64 on shmedia.
13350 (CONST_OK_FOR_J): New macro.
13351 (CONST_OK_FOR_LETTER_P): Use it.
13352 (processor_type): Add PROCESSOR_SH5.
13353 * config/sh/sh.md: Conditionalize all expands, insns and
13354 splits to TARGET_SH1.
13355 (cpu): Added sh5.
13356 (addsi3_compact): Renamed from...
13357 (addsi3): Now an expand.
13358 (addsi3_media, subsi3_media): New insns.
13359 (subsi3): Don't negate constants with SHmedia.
13360
13361 * hooks.c: New file.
13362 * hooks.h: New file.
13363 * Makefile.in (HOOKS_H): New.
13364 (TARGET_DEF_H): Added $(HOOKS_H).
13365 (OBJS): Added hooks.o.
13366 (cfgcleanup.o, bb-reorder.o): Added target.h.
13367 (hooks.o): Added dependencies.
13368 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13369 (TARGET_INITIALIZER): this.
13370 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13371 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13372 * bb-reorder.c: Include target.h.
13373 (reorder_basic_blocks): Skip if cannot modify jumps.
13374 * cfgcleanup.c: Include target.h.
13375 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13376
13377 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13378
13379 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13380 Protect jump delay slot instructions with .set noreorder and
13381 .set nomacro.
13382
13383 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13384
13385 * config/mips/mips.md (casesi_internal_di): Calculate
13386 the index into the target offset table correctly.
13387
13388 2002-02-08 Richard Henderson <rth@redhat.com>
13389
13390 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13391 * final.c (output_addr_const): Accept and discard SUBREG.
13392 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13393 mark them unknown instead.
13394 (simplify_subtraction): Handle RTX_UNKNOWN.
13395 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13396
13397 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13398
13399 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13400
13401 2002-02-08 Richard Henderson <rth@redhat.com>
13402
13403 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13404
13405 2002-02-08 Andreas Jaeger <aj@suse.de>
13406
13407 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13408 * config/i386/t-linux64: New file.
13409
13410 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13411
13412 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13413 * c-parse.in (compstmt): Clear last_expr_type.
13414
13415 2002-02-07 Richard Henderson <rth@redhat.com>
13416
13417 * loop.c (strength_reduce): Sink final_value when not
13418 eliminating a biv.
13419
13420 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13421
13422 * config/sparc/freebsd.h: Fix mismatched spec {.
13423
13424 2002-02-07 Richard Henderson <rth@redhat.com>
13425
13426 * cfgrtl.c: Include recog.h and insn-config.h.
13427 (keep_with_call_p): Fix general_operand invocation.
13428 * Makefile.in (cfgrtl.o): Update dependencies.
13429
13430 2002-02-07 Kazu Hirata <kazu@hxi.com>
13431
13432 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13433 comment. Accept HImode only if TARGET_H8300.
13434
13435 2002-02-07 Eric Christopher <echristo@redhat.com>
13436
13437 * config/mips/crtn.asm: Cleanup #ifdefs.
13438
13439 2002-02-07 Eric Christopher <echristo@redhat.com>
13440
13441 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13442 register 7 as RA instead of $31.
13443 * config/mips/crtn.asm: Ditto.
13444 * config/mips/mips.c (mips_move_2words): Add case for
13445 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13446 (compute_frame_size): Fix typo.
13447 (save_restore_insns): Ditto. Make documentation about using
13448 register $7 as return register more precise.
13449 (mips_expand_epilogue): Fix comment. Add code to work around not
13450 being able to add to the stack pointer directly.
13451 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13452 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13453 epilogue.
13454
13455 2002-02-07 Tom Rix <trix@redhat.com>
13456
13457 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13458 immediates in ldu and stdu DS opcode field.
13459 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13460 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13461 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13462
13463 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13464
13465 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13466 offset for stack bias.
13467
13468 2002-02-07 H.J. Lu <hjl@gnu.org>
13469
13470 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13471
13472 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13473
13474 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13475
13476 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13477
13478 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13479 * i386.c (x86_order_regs_for_local_alloc): New global function.
13480 * i386.h (REG_ALLOC_ORDER): CLeanup.
13481 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13482
13483 2002-02-07 Richard Henderson <rth@redhat.com>
13484
13485 PR optimization/2463
13486 * alias.c (find_base_value): Recall base values for fixed hard regs.
13487 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13488
13489 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13490
13491 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13492 length.
13493
13494 2002-02-06 Richard Henderson <rth@redhat.com>
13495
13496 PR c/5609
13497 * stmt.c (resolve_operand_name_1): Take more care with mixed
13498 named and unnamed operands.
13499
13500 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13501 Jan Hubicka <jh@suse.cz>
13502
13503 * loop.c (remove_constant_addition): Avoid clobbering a shared
13504 CONST expression.
13505
13506 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13507
13508 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13509 * config/s390/t-linux64: New file.
13510 * config/s390/libgcc-glibc.ver: New file.
13511
13512 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13513
13514 * config/s390/linux64.h: Delete file.
13515 * config/s390/s390x.h: New file.
13516 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13517 as target header file.
13518 * config/s390/linux.h (TARGET_VERSION): Define depending on
13519 DEFAULT_TARGET_64BIT.
13520 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13521 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13522 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13523 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13524 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13525 (EXTRA_SPEC): New define.
13526 * config/s390/s390.h (TARGET_VERSION): Define depending on
13527 DEFAULT_TARGET_64BIT.
13528 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13529
13530 2002-02-06 Jason Merrill <jason@redhat.com>
13531
13532 * c-decl.c (finish_function): Warn about a non-void function with
13533 no return statement and no abnormal exit.
13534 (current_function_returns_abnormally): New variable.
13535 (start_function): Clear it.
13536 (struct c_language_function): Add returns_abnormally.
13537 (push_c_function_context): Save it.
13538 (pop_c_function_context): Restore it.
13539 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13540 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13541 an explicit return type.
13542 * c-tree.h: Declare current_function_returns_abnormally.
13543 (C_FUNCTION_IMPLICIT_INT): New macro.
13544 * c-typeck.c (build_function_call): Set it.
13545 (c_expand_return): Set current_function_returns_value even if the
13546 value is erroneous.
13547
13548 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13549
13550 PR c/5420:
13551 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13552 unsafe for reevaluation.
13553
13554 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13555
13556 PR c/5482:
13557 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13558 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13559
13560 2002-02-06 Richard Henderson <rth@redhat.com>
13561
13562 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13563 be a general_operand. Dest for function value must be a pseudo.
13564
13565 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13566
13567 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13568 as SYMBOL_REFs from the constant pool.
13569
13570 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13571
13572 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13573 passed by invisible reference.
13574
13575 2002-02-05 Richard Henderson <rth@redhat.com>
13576
13577 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13578
13579 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13580
13581 Implement using "base addresses" in insn operands as default.
13582 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13583 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13584 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13585 used to read the rtx value.
13586 (mmix_target_asm_function_epilogue): Fix spacing.
13587 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13588 (mmix_legitimate_address): Ditto.
13589 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13590 should be loaded with a GETA insn. Don't allocate needless extra
13591 char for nul termination and fix misleading comment.
13592 (mmix_print_operand_address): Handle constants if
13593 TARGET_BASE_ADDRESSES.
13594 (mmix_output_register_setting): Use base addressing if
13595 TARGET_BASE_ADDRESSES and the number of insns is 3.
13596 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13597 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13598 to use R as constraint, add LDA to match s.
13599 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13600 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13601 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13602 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13603 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13604 order with other fixed registers.
13605 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13606 other parameter/call-clobbered registers.
13607 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13608 -mbase-addresses, -mno-base-addresses.
13609 (MMIX Options): Ditto.
13610
13611 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13612
13613 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13614
13615 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13616
13617 * config/rs6000/altivec.h: Change elem to _S_elem.
13618
13619 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13620
13621 * config/netbsd.h (WCHAR_TYPE): Define.
13622 (WCHAR_TYPE_SIZE): Ditto.
13623 (WINT_TYPE): Ditto.
13624 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13625 (WCHAR_UNSIGNED): Ditto.
13626 (WCHAR_TYPE_SIZE): Ditto.
13627 (WINT_TYPE): Ditto.
13628 * config/arm/netbsd.h: Likewise.
13629 * config/i386/netbsd-elf.h: Likewise.
13630 * config/i386/netbsd.h: Likewise.
13631 * config/m68k/netbsd-elf.h: Likewise.
13632 * config/m68k/netbsd.h: Likewise.
13633 * config/ns32k/netbsd.h: Likewise.
13634 * config/sparc/netbsd.h: Likewise.
13635 * config/vax/netbsd.: Likewise.
13636
13637 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13638
13639 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13640 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13641 (TARGET_INITIALIZER): this.
13642 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13643 (BITFIELD_NBYTES_LIMITED): Markup fix.
13644 * tree.h (default_ms_bitfield_layout_p): Declare.
13645 (record_layout_info): Added prev_field.
13646 * tree.c (default_ms_bitfield_layout_p): New fn.
13647 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13648 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13649 * stor-layout.c: Include target.h.
13650 (start_record_layout): Initialize prev_field.
13651 (place_field): Handle MS bit-field layout, and disregard
13652 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13653 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13654 * Makefile.in (stor-layout.o): Adjust dependencies.
13655
13656 2002-02-05 Jason Merrill <jason@redhat.com>
13657
13658 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13659
13660 2002-02-05 Andreas Jaeger <aj@suse.de>
13661
13662 * crtstuff.c: Fix comments.
13663
13664 2002-02-05 Richard Henderson <rth@redhat.com>
13665
13666 PR fortran/3393
13667 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13668 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13669
13670 PR fortran/3392
13671 * config/mips/mips.c (function_arg): Handle TImode.
13672 (function_arg_advance): Likewise.
13673
13674 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13675
13676 * config/rs6000/altivec.h (vec_step_help): Rename to
13677 __vec_step_help.
13678
13679 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13680
13681 * config/rs6000/altivec.h: Fix typos.
13682
13683 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13684
13685 * config/arm/netbsd.h: Correct a comment.
13686
13687 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13688
13689 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13690 building void typed builtins.
13691
13692 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13693 (vec_step): Implement for C++.
13694
13695 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13696
13697 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13698
13699 2002-02-04 Richard Henderson <rth@redhat.com>
13700
13701 * combine.c (nonzero_bits): Re-introduce special case for
13702 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13703
13704 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13705
13706 * doc/extend.texi: Warn about unsupported usage of altivec
13707 builtins.
13708
13709 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13710 (altivec_predicate_*): New.
13711
13712 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13713 Add C++ version of vec_*() functions.
13714
13715 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13716 (bdesc_2arg): Remove altivec predicates.
13717 (altivec_expand_builtin): Handle predicates.
13718 (altivec_init_builtins): Handle predicates.
13719 (altivec_expand_predicate_builtin): New.
13720
13721 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13722
13723 * pa.c (DO_FRAME_NOTES): Move forward.
13724 (store_reg): Revise handling of frame notes.
13725 (load_reg): Likewise.
13726 (set_reg_plus_d): Likewise.
13727 (hppa_expand_prologue): Likewise.
13728 (hppa_expand_epilogue): Likewise.
13729
13730 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13731
13732 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13733
13734 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13735
13736 PR c/4475, c++/3780:
13737 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13738 * c-common.h (SWITCH_TYPE): Define.
13739 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13740 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13741 Rename spareness variable to sparseness.
13742 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13743 if non-NULL instead of TREE_TYPE (orig_index).
13744 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13745 (expand_end_case): Define using expand_end_case_type.
13746 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13747 to expand_end_case_type.
13748 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13749
13750 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13751
13752 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13753 (BIGGEST_ALIGNMENT): Change to 128.
13754
13755 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13756
13757 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13758
13759 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13760
13761 * pa.md (call_internal_reg_64bit): Remove unused variable.
13762
13763 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13764
13765 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13766 field.
13767 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13768 * config/arm/arm.c (current_function_anonymous_args): Delete,
13769 replace uses with cfun->machine->uses_anonymous_args.
13770 (arm_reorg): Do not reset uses_anonymous_args.
13771
13772 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13773 any geenral register.
13774
13775 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13776
13777 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13778 the entry block.
13779
13780 2002-02-04 Richard Henderson <rth@redhat.com>
13781
13782 * combine.c (force_to_mode): Remove STACK_BIAS code.
13783 (nonzero_bits): Likewise. Replace sp/fp special case with
13784 REGNO_POINTER_ALIGN.
13785
13786 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13787 (HARD_FRAME_POINTER_REGNUM): New.
13788 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13789 (FIXED_REGS, CALL_USED_REGS): Update.
13790 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13791 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13792 (HARD_REGNO_NREGS): Update for SFP.
13793 (STACK_POINTER_OFFSET): Include bias here ...
13794 (FIRST_PARM_OFFSET): ... not here.
13795 (STACK_BIAS): Remove.
13796 (INIT_EXPANDERS): New.
13797 (STARTING_FRAME_OFFSET): Do not include bias.
13798 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13799 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13800 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13801 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13802 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13803 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13804 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13805 (MUST_SAVE_REGISTER): Likewise.
13806 (sparc_flat_function_prologue): Likewise.
13807 (sparc_flat_function_epilogue): Likewise.
13808 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13809 (sparc_init_modes): SFP is GENERAL_REGS.
13810 (sparc_builtin_saveregs): SFP does not have bias applied.
13811
13812 2002-02-04 Richard Henderson <rth@redhat.com>
13813
13814 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13815 current_function_is_thunk.
13816 (alpha_sa_mask): Distinguish between current_function_is_thunk
13817 called from ASM_OUTPUT_MI_THUNK and not.
13818 (alpha_does_function_need_gp): Thunks always need gp.
13819 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13820 (alpha_output_mi_thunk_osf): New.
13821 * config/alpha/alpha-protos.h: Update.
13822 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13823
13824 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13825
13826 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13827 function types, not when they're taken away.
13828
13829 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13830
13831 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13832 CODE_LABEL and jump table when replacing a table jump with a
13833 simple jump.
13834
13835 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13836
13837 * config/s390/s390-protos.h (legitimize_la_operand,
13838 s390_secondary_input_reload_class, s390_plus_operand,
13839 s390_expand_plus_operand): Add prototypes.
13840
13841 config/s390/s390.c (s390_secondary_input_reload_class,
13842 s390_plus_operand, s390_expand_plus_operand): New functions.
13843
13844 (struct s390_address): New member 'pointer'.
13845 (s390_decompose_address): Compute it.
13846 (legitimate_la_operand_p): Use it.
13847 (legitimize_la_operand): New function.
13848 (movti, movdi, movdf splitters): Call it.
13849
13850 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13851 (PREDICATE_CODES): Add s390_plus_operand.
13852
13853 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13854 (la_ccclobber): Allow GENERAL_REGS as output operand.
13855
13856 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13857 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13858 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13859
13860 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13861
13862 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13863 register names for regular asm () construct.
13864
13865 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13866
13867 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13868 registers.
13869
13870 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13871
13872 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13873 pat for recog.
13874
13875 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13876
13877 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13878 constant pool to be identical by string address and index.
13879
13880 2002-02-04 Anthony Green <green@redhat.com>
13881
13882 * output.h (SECTION_OVERRIDE): Define.
13883 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13884
13885 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13886
13887 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13888 by existing arm*-*-netbsd* (a.out) target.
13889 (ns32k-*-netbsdelf*): Likewise.
13890 (sparc-*-netbsdelf*): Likewise.
13891 (vax-*-netbsdelf*): Likewise.
13892
13893 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13894
13895 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13896 headers and libobjc headers.
13897
13898 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13899
13900 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13901 (_mingw.h): Remove duplicate include.
13902
13903 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13904
13905 * config.gcc: Set cpu_type to m68k for 68010, as well.
13906 (m68010-*-netbsdelf*): New...
13907 (m68k*-*-netbsdelf*): ...targets.
13908 * config/m68k/netbsd-elf.h: New file.
13909
13910 2002-02-02 Kazu Hirata <kazu@hxi.com>
13911
13912 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13913
13914 2002-02-02 Kazu Hirata <kazu@hxi.com>
13915
13916 * config/h8300/h8300.c (h8_push_ops): Move inside
13917 h8300_init_once.
13918 (h8_pop_ops): Likewise.
13919 (h8_move_ops): Likewise.
13920
13921 2002-02-02 Kazu Hirata <kazu@hxi.com>
13922
13923 * config/h8300/h8300.c (os_task): Make it static.
13924 (monitor): Likewise.
13925 (pragma_saveall): Likewise.
13926
13927 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13928
13929 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13930 constant is a valid sign-extension for Pmode.
13931
13932 2002-02-02 Kazu Hirata <kazu@hxi.com>
13933
13934 * config/h8300/h8300.c: Fix formatting.
13935
13936 2002-02-02 Kazu Hirata <kazu@hxi.com>
13937
13938 * config/h8300/h8300.md: Fix formatting.
13939
13940 2002-02-02 Kazu Hirata <kazu@hxi.com>
13941
13942 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13943 predicates of operands[1]. Split the patterns for each
13944 processor variant.
13945
13946 2002-02-02 Kazu Hirata <kazu@hxi.com>
13947
13948 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13949 of operands[1] to register_operand.
13950
13951 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13952
13953 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13954 * cpphash.c (_cpp_init_hashtable): Similarly.
13955 * cppinit.c (cpp_create_reader): Default the signed_char flag.
13956 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13957 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13958 (cpp_handle_option): Handle the new options.
13959 * cpplex.c (cpp_interpret_charconst): Use new flag.
13960 * cpplib.h (struct cpp_options): New member signed_char.
13961 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13962 (cpp_options): Handle -fsigned-char and -funsigned-char.
13963 (static_specs): Remove signed_char_spec.
13964 (do_spec1): Don't handle %c.
13965 * system.h: Poison SIGNED_CHAR_SPEC.
13966 * tradcif.y (yylex): Use flag_signed_char.
13967 * tradcpp.h (flag_signed_char): New.
13968 * tradcpp.c (flag_signed_char): New.
13969 (main): Handle new command-line options.
13970 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13971 config:
13972 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13973 * avr/avr.h: Remove old comments.
13974 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13975 (CC1_SPEC): Pass -fsigned-char if -mic*.
13976 (SIGNED_CHAR_SPEC): Remove.
13977 doc:
13978 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13979
13980 2002-02-01 Eric Christopher <echristo@redhat.com>
13981
13982 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13983 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13984 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13985 (ASM_OUTPUT_REG_POP): Ditto.
13986
13987 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13988
13989 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13990 patch.
13991
13992 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13993
13994 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13995
13996 2002-02-02 Jakub Jelinek <jakub@redhat.com>
13997
13998 PR c/5304:
13999 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14000 unconditionally.
14001
14002 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14003
14004 * cfganal.c: Include tm_p.h.
14005 (keep_with_call_p): Fix the test that determines if a register holds
14006 the return value of a call.
14007
14008 2002-02-01 DJ Delorie <dj@redhat.com>
14009
14010 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14011 we are given conflicting registers, switch to the other one we
14012 had allocated for us.
14013 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14014 as TImode so we know when the "other" register is available.
14015
14016 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14017
14018 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14019 sparc/sparc_bi.h.
14020
14021 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14022
14023 * cfganal.c (keep_with_call_p): New function.
14024 (flow_call_edges_add): Prevent splitting a block between a call and
14025 a single-set instruction that should be kept in the same block.
14026
14027 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14028
14029 * doc/install.texi (avr): Update outdated URL.
14030
14031 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14032
14033 * config/stormy16/stormy16.md (pushqi): New.
14034 (popqi): New.
14035 (pushhi): New.
14036 (pophi): New.
14037 (movhi): Remove stack operands.
14038 (movqi): Likewise.
14039 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14040 nonimmediate_nonstack_operand.
14041 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14042 New.
14043 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14044 New.
14045
14046 2002-01-31 Jason Merrill <jason@redhat.com>
14047
14048 * Makefile.in (c-parse.c): Handle .output file.
14049 * objc/Make-lang.in (objc-parse.c): Likewise.
14050
14051 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14052
14053 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14054 the -me[lb] option is given. Don't output the default flag
14055 twice.
14056
14057 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14058
14059 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14060 the primary source file; this has not been done yet.
14061 * c-decl.c (c_expand_body): Reset input_filename from
14062 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14063
14064 2002-01-31 Kazu Hirata <kazu@hxi.com>
14065
14066 * rtlanal.c (subreg_regno_offset): Do not use
14067 SUBREG_REGNO_OFFSET.
14068 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14069 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14070
14071 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14072
14073 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14074 version rather than GNATS version in --version output.
14075
14076 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14077
14078 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14079 when copying back from a temporary.
14080
14081 2002-01-30 Richard Henderson <rth@redhat.com>
14082
14083 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14084 and new_dest are the same.
14085
14086 2002-01-30 Richard Henderson <rth@redhat.com>
14087
14088 PR opt/5076
14089 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14090 * rtl.c (note_insn_name): Update.
14091 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14092 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14093 to perform loop rotation.
14094 (expand_exit_loop_top_cond): New.
14095 * tree.h (expand_exit_loop_top_cond): Declare it.
14096 * c-semantics.c (genrtl_while_stmt): Use it.
14097 (genrtl_for_stmt): Likewise.
14098
14099 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14100
14101 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14102 arguments to 64-bit boundaries on 64-bit ABIs.
14103
14104 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14105
14106 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14107
14108 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14109
14110 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14111 invalid type.
14112
14113 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14114
14115 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14116 * config/sparc/sparc_bi.h: Remove file.
14117 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14118
14119 2002-01-30 Richard Henderson <rth@redhat.com>
14120
14121 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14122
14123 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14124
14125 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14126
14127 2002-01-30 Jason Merrill <jason@redhat.com>
14128
14129 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14130 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14131 (reg_save): Use DW_CFA_offset_extended_sf instead.
14132
14133 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14134
14135 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14136
14137 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14138 in cselib_lookup.
14139
14140 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14141
14142 * rs6000.md ("*call_value_local32"): Remove constraints.
14143 ("*call_value_local64"): Same.
14144 ("*call_value_indirect_nonlocal_aix32"): Same.
14145 ("*call_value_nonlocal_aix32"): Same.
14146 ("*call_value_indirect_nonlocal_aix64"): Same.
14147 ("*call_value_nonlocal_aix64"): Same.
14148 ("*call_value_nonlocal_sysv"): Same.
14149
14150 2002-01-29 Richard Henderson <rth@redhat.com>
14151
14152 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14153
14154 2002-01-29 Richard Henderson <rth@redhat.com>
14155
14156 * expr.c (force_operand): Ignore flag_pic for detecting pic
14157 address loads.
14158 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14159 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14160 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14161 instead of open-coded loop.
14162 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14163 be fixed when in use.
14164
14165 2002-01-29 Richard Henderson <rth@redhat.com>
14166
14167 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14168 * sched-rgn.c (propagate_deps): Update them.
14169 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14170 clobbers list when either gets too long.
14171
14172 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14173
14174 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14175 and INDEX_REGS the same as GENERAL_REGS.
14176 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14177
14178 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14179
14180 * tree.c (build_nonstandard_integer_type): Correct prototype.
14181
14182 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14183
14184 * config/s390/s390.md (movstrsico, movstrdix_64,
14185 movstrsix_31): Remove, replace by ...
14186 (movstrdi_short, movstrsi_short, movstrdi_long,
14187 movstrsi_long): ... these. New.
14188 (movstrdi, movstrsi): Adapt.
14189
14190 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14191 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14192 Remove unnecessary CC clobber.
14193 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14194 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14195
14196 (divmoddi4): Don't partially initialize TImode register.
14197
14198 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14199
14200 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14201
14202 2002-01-29 Richard Henderson <rth@redhat.com>
14203
14204 * flow.c (print_rtl_and_abort): Remove.
14205 (print_rtl_and_abort_fcn): Remove.
14206 (verify_local_live_at_start): Use dump_bb instead.
14207 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14208 (verify_wide_reg_1): Return 2 on mode test failure.
14209
14210 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14211
14212 PR c/3325, c/3326, c/2511, c/3347
14213 * c-decl.c (enum_decl_context): Remove BITFIELD.
14214 (grokdeclarator): Take bitfield width as an input.
14215 Ensure bitfields are given the correct type. Perform
14216 bitfield width validation with build_bitfield_integer_type
14217 rather than waiting for finish_struct.
14218 (grok_typename, grok_typename_in_parm_context, start_decl,
14219 push_parmdecl, grokfield, start_function): Update calls to
14220 grokdeclarator.
14221 (build_bitfield_integer_type): New function.
14222 (finish_struct): Move bitfield validation to grokdeclarator
14223 and build_bitfield_integer_type.
14224 * tree.c (build_nonstandard_integer_type): New function.
14225 * tree.h (build_nonstandard_integer_type): New prototype.
14226 objc:
14227 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14228
14229 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14230
14231 PR other/1502:
14232 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14233 don't ignore unrecognized -W* options.
14234 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14235 * cpplib.h (cpp_handle_option): Adjust prototype.
14236 * c-decl.c (c_decode_options): Pass 0 as last argument to
14237 cpp_handle_option.
14238
14239 PR c/2896:
14240 * gcc.c (cpp_unique_options): Split from cpp_options.
14241 (cpp_options): Source cpp_unique_options.
14242 (default_compilers): Use cpp_unique_options instead of cpp_options
14243 when used together with cc1_options.
14244 (static_specs): Add cpp_unique_options.
14245 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14246 when used together with cc1_options.
14247
14248 2002-01-29 Kazu Hirata <kazu@hxi.com>
14249
14250 * config/h8300/h8300-protos.h: Update the prototype of
14251 output_a_shift.
14252 * config/h8300/h8300.c (output_a_shift): Remove an unused
14253 argument 'insn'. Remove redundant code.
14254 * config/h8300/h8300.md: Adust to the new prototype of
14255 output_a_shift.
14256
14257 2002-01-29 Kazu Hirata <kazu@hxi.com>
14258
14259 * config/h8300/h8300-protos.h: Update the prototypes of
14260 emit_a_rotate and expand_a_rotate.
14261 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14262 first argument to 'enum rtx_code'.
14263 (expand_a_rotate): Likewise.
14264
14265 2002-01-28 Kazu Hirata <kazu@hxi.com>
14266
14267 * config/h8300/h8300-protos.h: Update the prototype of
14268 output_simode_bld.
14269 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14270 'log2'.
14271 * config/h8300/h8300.md: Adjust to the new prototype.
14272
14273 2002-01-28 Kazu Hirata <kazu@hxi.com>
14274
14275 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14276 redundant code.
14277
14278 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14279
14280 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14281 is a fixed register before returning pic_offset_table_rtx.
14282 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14283 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14284
14285 2002-01-28 Jason Merrill <jason@redhat.com>
14286
14287 * dwarf2.h: Sync with src version.
14288
14289 2002-01-28 Paul Koning <pkoning@equallogic.com>
14290
14291 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14292 BT_FN_VOID_PTR_VAR.
14293 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14294 * doc/extend.texi (__builtin_prefetch): Update documentation:
14295 first argument is now const void ptr.
14296
14297 2002-01-28 Kazu Hirata <kazu@hxi.com>
14298
14299 * config/h8300/h8300-protos.h: Remove an unused prototype.
14300
14301 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14302
14303 * toplev.c (lang_independent_init): Round up identifier size.
14304
14305 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14306
14307 * config.gcc: Revert previous change.
14308
14309 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14310
14311 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14312
14313 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14314
14315 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14316 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14317 other non-elf netbsd config frags.
14318 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14319 collect2 will does that.
14320 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14321 shared-lib frobbing will work.
14322
14323 2002-01-28 Kazu Hirata <kazu@hxi.com>
14324
14325 * config/h8300/h8300.h: Fix formatting.
14326 * config/h8300/h8300.md: Likewise.
14327
14328 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14329
14330 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14331 the old, removed AAA_standards fix.
14332 * fixinc/fixincl.x: Rebuilt.
14333
14334 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14335
14336 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14337 atexit call in crtbegin, hooked in after call to frame_dummy;
14338 register EH before registering __fini__start.
14339
14340 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14341
14342 * config/rs6000/altivec.h: Remove spurious semicolons.
14343
14344 2002-01-27 Kazu Hirata <kazu@hxi.com>
14345
14346 * config/h8300/h8300.md: Replace dead bit extraction patterns
14347 with ones that work.
14348
14349 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14350
14351 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14352 if not STRICT_ALIGNMENT.
14353 * rtl.h (MEM_ALIGN): Likewise.
14354
14355 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14356
14357 * doc/invoke.texi (-fdump-translation-unit): Revert this
14358 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14359
14360 2002-01-27 Kazu Hirata <kazu@hxi.com>
14361
14362 * config/h8300/h8300.md (define_constants): New.
14363 (anonymous patterns) Use defined constants appropriately.
14364
14365 2002-01-27 Kazu Hirata <kazu@hxi.com>
14366
14367 * config/h8300/h8300.c (function_arg): Remove redundant code.
14368
14369 2002-01-26 Richard Henderson <rth@redhat.com>
14370
14371 * sched-deps.c (reg_pending_uses_head): New.
14372 (reg_pending_barrier): Rename from reg_pending_sets_all.
14373 (find_insn_list): Don't mark inline.
14374 (find_insn_mem_list): Remove.
14375 (add_dependence_list, add_dependence_list_and_free): New.
14376 (flush_pending_lists): Replace only_write param with separate
14377 for_read and for_write parameters. Update all callers. Use
14378 add_dependence_list_and_free.
14379 (sched_analyze_1): Do not add reg dependencies here; just set
14380 the pending bits. Use add_dependence_list.
14381 (sched_analyze_2): Likewise.
14382 (sched_analyze_insn): Replace schedule_barrier_found with
14383 reg_pending_barrier. Add all dependencies for pending reg
14384 uses, sets, and clobbers.
14385 (sched_analyze): Don't add reg dependencies for calls, just
14386 set pending bits. Use regs_invalidated_by_call. Treat
14387 sched_before_next_call as a normal list, not a fake insn.
14388 (init_deps): No funny init for sched_before_next_call.
14389 (free_deps): Free pending mems lists. Don't zero reg_last.
14390 (init_deps_global): Init reg_pending_uses.
14391 (finish_deps_global): Free it.
14392 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14393 (find_insn_mem_list): Remove.
14394 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14395 (propagate_deps): Use them. Zero temp mem lists.
14396
14397 2002-01-26 Richard Henderson <rth@redhat.com>
14398
14399 * Makefile.in (CRTSTUFF_CFLAGS): New.
14400 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14401 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14402 crtstuff.c instead of alpha assembly version.
14403 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14404 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14405 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14406 (__do_global_dtors_aux): Mark used.
14407 (frame_dummy, __do_global_ctors_aux): Mark used.
14408 (fini_dummy, init_dummy): Remove.
14409
14410 * config/alpha/crtbegin.asm: Remove file.
14411 * config/alpha/crtend.asm: Remove file.
14412 * config/alpha/t-crtbe: Remove file.
14413 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14414 (LINK_EH_SPEC): New.
14415
14416 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14417 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14418 calling constructors.
14419 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14420
14421 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14422 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14423 CRT_END_INIT_DUMMY hack.
14424 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14425 FORCE_{INIT,FINI}_SECTION_ALIGN.
14426
14427 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14428 FORCE_{INIT,FINI}_SECTION_ALIGN.
14429
14430 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14431 invocation sequence.
14432 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14433
14434 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14435 (FORCE_CODE_SECTION_ALIGN): New.
14436
14437 2002-01-26 Richard Henderson <rth@redhat.com>
14438
14439 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14440
14441 2002-01-26 Richard Henderson <rth@redhat.com>
14442
14443 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14444 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14445
14446 2002-01-26 Kazu Hirata <kazu@hxi.com>
14447
14448 * config/h8300/h8300.md: Remove bit extraction patterns that
14449 cannot be triggered.
14450 Restrict each bit extraction pattern to a variant on which the
14451 pattern is tested.
14452
14453 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14454
14455 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14456
14457 2002-01-26 Kazu Hirata <kazu@hxi.com>
14458
14459 * config/h8300/h8300.md: Remove bit test patterns that cannot
14460 be triggered.
14461 Restrict each bit test pattern to a variant on which the
14462 pattern is tested.
14463
14464 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14465
14466 * builtins.c (expand_builtin_strncat): Remove redundant check for
14467 INTEGER_CST.
14468
14469 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14470
14471 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14472 default setting.
14473 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14474 existing setting.
14475
14476 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14477
14478 * dbxout.c (dbxout_init): Use assemble_name rather than just
14479 stripping off the first character.
14480 (dbxout_source_file): Likewise.
14481
14482 2002-01-25 DJ Delorie <dj@redhat.com>
14483
14484 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14485 using rtx_equal_p, not by comparing pointers.
14486
14487 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14488
14489 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14490 for PIC_OFFSET_TABLE_REGNUM.
14491 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14492
14493 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14494
14495 * config.gcc (x86_64-*-freebsd*): New target.
14496 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14497 value.
14498 (i[34567]86-*-freebsd*): Don't include svr4.h.
14499 * config/i386/freebsd64.h: New file.
14500
14501 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14502
14503 * config/alpha/x-vms (version): Make static.
14504
14505 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14506 in previous checkin.
14507
14508 * Makefile.in (install-headers-cp): New target.
14509 * config.gcc (alpha-dec-*vms*): Install headers with
14510 install-headers-cp
14511
14512 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14513
14514 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14515 avoid it's copies.
14516
14517 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14518
14519 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14520 of compare_tree_int.
14521 (expand_builtin_strncat): Likewise.
14522 * c-decl.c (finish_struct): Use tree_low_cst.
14523 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14524 * tree.c (compare_tree_int): Likewise.
14525
14526 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14527
14528 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14529 adjustments even if they are implemented by more than two insns.
14530
14531 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14532
14533 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14534 * df.h (struct ref): Kill B.
14535 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14536
14537 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14538 * flow.c (propagate_one_insn): Use it.
14539 (mark_used_regs): Handle NIL.
14540
14541 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14542
14543 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14544 to help folding.
14545
14546 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14547
14548 * rs6000.md (prefetch): Make address V4SI mode so that the address
14549 is restricted to legitimate form for instruction.
14550
14551 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14552
14553 * doc/install.texi (xtensa-*-elf): New target.
14554 (xtensa-*-linux*): New target.
14555 * doc/contrib.texi: Add myself.
14556
14557 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14558
14559 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14560 purpose register to hold an SImode (or smaller) value.
14561
14562 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14563
14564 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14565 registry only.
14566 * crtstuff.c: Likewise.
14567
14568 2002-01-25 Kazu Hirata <kazu@hxi.com>
14569
14570 * config/h8300/h8300.md (negation patterns): Tighten
14571 predicates to register_operand.
14572
14573 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14574
14575 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14576 mode, not Pmode.
14577
14578 * builtins.c (expand_builtin_prefetch): Same.
14579
14580 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14581
14582 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14583 modes.
14584
14585 2002-01-24 Kazu Hirata <kazu@hxi.com>
14586
14587 * config/h8300/h8300.c (print_operand): Remove support for
14588 operand character 'A'.
14589 * config/h8300/h8300.md (three anonymous patterns): Replace
14590 operand character 'A' with either 'T' or 'S'.
14591
14592 2002-01-24 Kazu Hirata <kazu@hxi.com>
14593
14594 * config/h8300/h8300.c (print_operand): Remove support for
14595 operand character 'U'.
14596
14597 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14598
14599 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14600
14601 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14602
14603 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14604 values to be assigned to the stack pointer.
14605
14606 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14607
14608 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14609 to const_double needs to be done right for big-endian systems.
14610
14611 2002-01-24 Jason Merrill <jason@redhat.com>
14612
14613 PR c++/2432
14614 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14615 to can_throw_internal.
14616
14617 2002-01-23 Richard Henderson <rth@redhat.com>
14618
14619 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14620 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14621
14622 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14623
14624 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14625 (symGOT2reg): Use them, then set as GOT value as unchanging.
14626 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14627 as a temporary, if possible.
14628 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14629 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14630
14631 2002-01-23 Kazu Hirata <kazu@hxi.com>
14632
14633 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14634 accept to accept 0x80 as operands[2].
14635
14636 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14637
14638 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14639
14640 2002-01-23 Richard Henderson <rth@redhat.com>
14641
14642 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14643
14644 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14645
14646 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14647 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14648 an attribute.
14649
14650 2002-01-23 Richard Henderson <rth@redhat.com>
14651
14652 * expr.c (move_by_pieces_1): Extend size before negation.
14653
14654 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14655 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14656 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14657 * config/m68k/t-m68kelf: Likewise.
14658
14659 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14660
14661 * config/xtensa/elf.h: New file.
14662 * config/xtensa/lib1funcs.asm: New file.
14663 * config/xtensa/lib2funcs.S: New file.
14664 * config/xtensa/linux.h: New file.
14665 * config/xtensa/t-xtensa: New file.
14666 * config/xtensa/xtensa-config.h: New file.
14667 * config/xtensa/xtensa-protos.h: New file.
14668 * config/xtensa/xtensa.c: New file.
14669 * config/xtensa/xtensa.h: New file.
14670 * config/xtensa/xtensa.md: New file.
14671 * config.gcc (xtensa-*-elf*): New target.
14672 (xtensa-*-linux*): New target.
14673 * cse.c (canon_hash): Compare rtx pointers instead of register
14674 numbers. This is required for the Xtensa port.
14675 * integrate.c (copy_insn_list): Handle case where the static
14676 chain is in memory and the memory address has to be copied to
14677 a register.
14678 * doc/invoke.texi (Option Summary): Add Xtensa options.
14679 (Xtensa Options): New node.
14680 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14681
14682 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14683
14684 * diagnostic.c (internal_error): Do ICE suppression only
14685 when ENABLE_CHECKING is not defined.
14686
14687 * c-typeck.c (require_complete_type): Return error_mark_node
14688 if type is error_mark_node.
14689
14690 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14691
14692 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14693 -Os and issue a warning.
14694
14695 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14696
14697 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14698 current (lack of) need for host configuration by hand.
14699
14700 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14701 references. Documentation of some target macros moved from
14702 hostconfig.texi to tm.texi.
14703
14704 2002-01-23 Will Cohen <wcohen@redhat.com>
14705
14706 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14707 defined.
14708
14709 2002-01-23 Kazu Hirata <kazu@hxi.com>
14710
14711 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14712 operand[3].
14713
14714 2002-01-23 Jason Merrill <jason@redhat.com>
14715
14716 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14717
14718 * function.c (assign_parms): Don't put args of inline functions
14719 into registers when not optimizing.
14720
14721 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14722
14723 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14724 (prologue_use): New pattern.
14725 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14726 preference to gen_rtx_USE.
14727 (thumb_expand_prologue): Use gen_prologue_use in preference to
14728 gen_rtx_USE.
14729 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14730 gen_rtx_USE.
14731
14732 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14733
14734 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14735
14736 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14737
14738 PR c/3504
14739 * doc/extend.texi: Correct documentation of __alignof__.
14740
14741 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14742
14743 * params.h: Rename arguments of DEFPARAM so that it will be
14744 recognized as a translation keyword.
14745
14746 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14747
14748 * extend.texi: Document altivec functions.
14749 Fix N-bit adjectives in X86 builtin documentation.
14750
14751 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14752
14753 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14754 auto_inc_dec values.
14755
14756 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14757
14758 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14759 after backslash.
14760 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14761
14762 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14763
14764 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14765
14766 2002-01-22 Richard Henderson <rth@redhat.com>
14767
14768 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14769 copy_insn not copy_rtx.
14770
14771 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14772
14773 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14774 "nonzero" as that might add "1" bits. Ensure "constop" is
14775 properly sign extened.
14776 (force_to_mode): Tweak for sign extended constop.
14777
14778 2002-01-22 Richard Henderson <rth@redhat.com>
14779
14780 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14781 for_each_rtx instead of assuming we're already looking at the MEM.
14782 (split_small_symbolic_mem_operand): Likewise.
14783 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14784 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14785
14786 2002-01-22 Richard Henderson <rth@redhat.com>
14787
14788 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14789 sequence number for the literal.
14790 (divmoddi_internal_er): Likewise.
14791
14792 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14793
14794 PR java/4972
14795 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14796 in LIBICONV variable.
14797 * configure: Regenerated.
14798
14799 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14800
14801 * dependence.c (build_def_use): Remove array_idx.
14802
14803 * dwarfout.c (last_filename): Remove.
14804 (output_compile_unit_die): Remove last_filename.
14805
14806 2002-01-22 Roger Sayle <roger@eyesopen.com>
14807 Richard Henderson <rth@redhat.com>
14808
14809 PR opt/3640
14810 * fold-const.c (fold): Optimize unsigned comparisons against
14811 UINT_MAX (and similar unsigned constants).
14812
14813 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14814
14815 * Makefile.in (loop.o): Depend on OPTABS_H.
14816 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14817 against the predicate.
14818
14819 PR target/5379
14820 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14821 for the address operand.
14822
14823 2002-01-22 Richard Henderson <rth@redhat.com>
14824
14825 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14826
14827 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14828
14829 PR other/5450
14830 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14831 preprocessor flags.
14832
14833 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14834
14835 * config.gcc (x86_64-*-netbsd*): New target.
14836 * config/i386/netbsd64.h: New file.
14837
14838 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14839
14840 * regrename.c (kill_value): Fix typo.
14841
14842 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14843
14844 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14845
14846 * config/rs6000/rs6000.h: Same.
14847
14848 * function.c (instantiate_virtual_regs): Remove
14849 STARTING_FRAME_PHASE.
14850 (assign_stack_local_1): Same.
14851 Calculate frame phase.
14852
14853 2002-01-22 Nick Clifton <nickc@redhat.com>
14854
14855 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14856 variable declaration to outer scope in order to simplify
14857 future extensions.
14858 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14859 arm_hard_regno_mode_ok.
14860 * config/arm/arm-protos.h: Add a prototype for
14861 arm_hard_regno_mode_ok.
14862 * config/arm/arm.c (soft_df_operand): Remove now redundant
14863 check for DImode values using IP_REGNUM.
14864 (nonimmediate_soft_df_operand): Remove now redundant check for
14865 DImode values using IP_REGNUM.
14866 (arm_hard_regno_mode_ok): New function. New check: make sure
14867 that DImode values are not stored in IP_REGNUM.
14868
14869 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14870 note with a USE.
14871 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14872
14873 2002-01-22 Jason Merrill <jason@redhat.com>
14874
14875 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14876 consistency if this COMPOUND_STMT is scoped.
14877
14878 2002-01-22 Kazu Hirata <kazu@hxi.com>
14879
14880 * predict.c: Fix formatting.
14881 * print-tree.c: Likewise.
14882 * protoize.c: Likewise.
14883 * real.h: Likewise.
14884 * rtl.h: Likewise.
14885 * sbitmap.h: Likewise.
14886 * scan.c: Likewise.
14887 * sched-deps.c: Likewise.
14888 * sched-vis.c: Likewise.
14889 * sdbout.c: Likewise.
14890 * sibcall.c: Likewise.
14891 * ssa.c: Likewise.
14892 * ssa-ccp.c: Likewise.
14893 * ssa-dce.c: Likewise.
14894 * stmt.c: Likewise.
14895 * stor-layout.c: Likewise.
14896 * system.h: Likewise.
14897
14898 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14899
14900 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14901 if fits in bounds of base type.
14902
14903 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14904 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14905 (add_bound_info, default): If can't find a context, make a
14906 SAVE_EXPR.
14907 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14908
14909 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14910
14911 * c-typeck.c (parser_build_binary_op): If result from
14912 build_binary_op is ERROR_MARK just return error_mark_node without
14913 further processing.
14914
14915 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14916
14917 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14918 Split a.out-specific bits into...
14919 * config/netbsd-aout.h: ...this.
14920 * config/netbsd-elf.h: New file.
14921 * config/alpha/netbsd-elf.h: Remove.
14922 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14923 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14924 (STARTFILE_SPEC): Remove redundant definition.
14925 (ENDFILE_SPEC): Likewise.
14926 (LINK_SPEC): Likewise.
14927 (CPP_SPEC): Likewise.
14928 (ASM_SPEC): Likewise.
14929 (LIB_SPEC): Likewise.
14930 (SWITCH_TAKES_ARG): Likewise.
14931 (TARGET_MEM_FUNCTIONS): Likewise.
14932 (CPP_PREDEFINES): Redefine.
14933 (ASM_FINAL_SPEC): Remove redefinition.
14934 (ASM_COMMENT_START): Redefine.
14935 (FUNCTION_PROFILER): Define.
14936 (TARGET_VERSION): Redefine.
14937 Comment and formatting cleanup.
14938 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14939 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14940 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14941 big- or little-endian.
14942 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14943 * config.gcc (*-*-netbsd*): Add definitions common to all
14944 NetBSD configs.
14945 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14946 gnu_ld definitions. Add netbsd-elf.h to and remove
14947 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14948 tmake_file, and don't lose previous tmake_file contents.
14949 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14950 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14951 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14952 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14953 (mipsel-*-netbsd*): Rename this to...
14954 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
14955 mips/little.h to tm_file for mips*el-*.
14956 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14957 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14958 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14959
14960 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14961
14962 * pa-protos.h (reg_before_reload_operand): New function prototype.
14963 * pa.c (reg_before_reload_operand): New function implementation.
14964 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
14965 contraints to "*m".
14966
14967 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14968
14969 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14970
14971 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
14972
14973 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14974 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14975 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14976 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14977 (ENDFILE_SPEC): Undefine.
14978 (STARTFILE_SPEC): Redefine for PA.
14979
14980 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14981
14982 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14983
14984 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
14985
14986 * config.gcc: Add entries to supported PowerPC --with-cpu
14987 types.
14988
14989 2002-01-21 Jakub Jelinek <jakub@redhat.com>
14990
14991 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14992 true for 64-bit mode only SSE registers in 32-bit mode.
14993
14994 2002-01-21 Kazu Hirata <kazu@hxi.com>
14995
14996 * unwind-dw2.c: Fix formatting.
14997 * unwind-dw2-fde.c: Likewise.
14998 * unwind-dw2-fde.h: Likewise.
14999 * unwind-pe.h: Likewise.
15000 * varasm.c: Likewise.
15001 * varray.h: Likewise.
15002
15003 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15004
15005 Remove workaround for register stack overwrite bug in mmix.
15006 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15007 support for TARGET_REG_STACK_FILL_BUG.
15008 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15009 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15010 Delete.
15011 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15012 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15013 -mno-reg-stack-fill-bug-workaround.
15014 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15015 machine member has_call_without_parameters.
15016 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15017 -mreg-stack-fill-bug-workaround and
15018 -mno-reg-stack-fill-bug-workaround.
15019 (MMIX Options): Ditto.
15020
15021 2002-01-21 Kazu Hirata <kazu@hxi.com>
15022
15023 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15024 as appropriate.
15025 Remove redundant code.
15026
15027 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15028
15029 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15030 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15031 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15032 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15033 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15034 out target macro definitions and non-target-specific comments
15035 mostly taken from old versions of the manual.
15036
15037 2002-01-20 Kazu Hirata <kazu@hxi.com>
15038
15039 * config/h8300/h8300.h: Fix comment formatting.
15040 * config/ia64/aix.h: Likewise.
15041 * config/ia64/ia64-protos.h: Likewise.
15042 * config/ia64/ia64.c: Likewise.
15043 * config/ia64/ia64.h: Likewise.
15044 * config/ia64/ia64intrin.h: Likewise.
15045 * config/ia64/linux.h: Likewise.
15046 * config/ia64/unwind-aix.c: Likewise.
15047 * config/ia64/unwind-ia64.c: Likewise.
15048
15049 2002-01-20 Kazu Hirata <kazu@hxi.com>
15050
15051 * config/h8300/h8300.c: Revise comments about shift code.
15052
15053 2002-01-20 Kazu Hirata <kazu@hxi.com>
15054
15055 * config/h8300/h8300.c (function_arg): Update a comment.
15056
15057 2002-01-20 Kazu Hirata <kazu@hxi.com>
15058
15059 * config/h8300/h8300.md: Update the comments at the beginning
15060 of the file.
15061
15062 2002-01-20 Kazu Hirata <kazu@hxi.com>
15063
15064 * config/i370/i370.c: Fix comment formatting.
15065 * config/i370/i370.h: Likewise.
15066 * config/i370/i370.md: Likewise.
15067 * config/i370/linux.h: Likewise.
15068
15069 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15070
15071 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15072
15073 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15074 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15075 in incomplete case.
15076
15077 2002-01-20 Graham Stott <grahams@redhat.com>
15078
15079 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15080
15081 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15082
15083 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15084
15085 2002-01-19 Tom Rix <trix@redhat.com>
15086
15087 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15088
15089 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15090
15091 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15092
15093 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15094 STARTING_FRAME_PHASE.
15095 (STARTING_FRAME_PHASE): New.
15096 (instantiate_virtual_regs): Check saneness of
15097 STARTING_FRAME_PHASE.
15098
15099 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15100
15101 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15102
15103 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15104
15105 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15106
15107 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15108 be used for bootstrapping GCC 3.0.
15109
15110 2002-01-18 Kazu Hirata <kazu@hxi.com>
15111
15112 * config/h8300/h8300.md: Fix an insn length.
15113
15114 2002-01-18 Kazu Hirata <kazu@hxi.com>
15115
15116 * bitmap.h: Fix comment formatting.
15117 * combine.c: Likewise.
15118 * cppfiles.c: Likewise.
15119 * c-pragma.h: Likewise.
15120 * c-typeck.c: Likewise.
15121 * df.c: Likewise.
15122 * dwarf2out.c: Likewise.
15123 * function.c: Likewise.
15124 * gcc.c: Likewise.
15125 * genattrtab.c: Likewise.
15126 * gthr-win32.h: Likewise.
15127 * haifa-sched.c: Likewise.
15128 * predict.c: Likewise.
15129 * rtlanal.c: Likewise.
15130 * rtl.h: Likewise.
15131 * unwind-dw2-fde.h: Likewise.
15132 * unwind-pe.h: Likewise.
15133 * vmsdbgout.c: Likewise.
15134
15135 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15136
15137 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15138 if type_required and passed decl.
15139
15140 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15141
15142 * config.gcc (cpu_type): Include altivec.h in powerpc
15143 extra_headers.
15144 Same for darwin.
15145
15146 * config/rs6000/altivec.h: New.
15147
15148 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15149
15150 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15151 handling information.
15152 * doc/trouble.texi (Interoperation): Add libstdc++ information
15153 for AIX.
15154 (Misunderstandings): Add template instantiation and static template
15155 member information for AIX.
15156
15157 2002-01-17 Jason Merrill <jason@redhat.com>
15158
15159 * dbxout.c (dbxout_type): Support const and volatile.
15160
15161 * except.c (add_partial_entry): Remove backwards compatibility code.
15162 (end_protect_partials): Likewise.
15163
15164 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15165
15166 * config/ia64/ia64.md (prologue_use): New.
15167 * config/ia64/ia64.c (ia64_expand_prologue): Use
15168 gen_prologue_use instead of gen_rtx_USE.
15169 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15170 as CODE_FOR_pred_rel_mutex.
15171 (ia64_sched_reorder2): Likewise.
15172
15173 2002-01-16 Eric Christopher <echristo@redhat.com>
15174
15175 * config/mips/r3900.h: Reformat.
15176 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15177 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15178 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15179 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15180 * config/mips/t-elf: Remove mips3 multilib.
15181
15182 2002-01-16 H.J. Lu <hjl@gnu.org>
15183
15184 * config/mips/linux.h: Include "mips/abi64.h".
15185
15186 2002-01-16 H.J. Lu <hjl@gnu.org>
15187
15188 * config/mips/t-linux: New.
15189
15190 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15191
15192 * config/mips/linux.h: Don't include "gofast.h".
15193 (INIT_SUBTARGET_OPTABS): Removed.
15194
15195 2002-01-16 Kazu Hirata <kazu@hxi.com>
15196
15197 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15198 output_a_shift.
15199 * config/h8300/h8300.c: Likewise.
15200 * config/h8300/h8300.md: Likewise.
15201
15202 2002-01-16 Kazu Hirata <kazu@hxi.com>
15203
15204 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15205 spaces after an opcode name.
15206 (pushqi1_h8300hs): Likewise.
15207 (pushhi1_h8300hs): Likewise.
15208
15209 2002-01-16 Kazu Hirata <kazu@hxi.com>
15210
15211 * doc/extend.texi: Replace "option" with "attribute"
15212 appropriately.
15213
15214 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15215
15216 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15217 (and:DI () (const_int -8)).
15218 (split_small_symbolic_mem_operand): Split
15219 (mem (and:DI () (const_int -8)).
15220
15221 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15222
15223 PR target/5309:
15224 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15225 same way as TYPE_IMUL.
15226 (ultrasparc_sched_reorder): Likewise.
15227 * config/sparc/sparc.md (type): Add comment to update
15228 ultrasparc_sched_reorder when making changes.
15229
15230 2002-01-16 Kazu Hirata <kazu@hxi.com>
15231
15232 * doc/invoke.texi: Change the dump file name of block
15233 reordering pass from 28.bbro to 29.bbro.
15234 Mention -dk option.
15235
15236 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15237
15238 * i386.md (minsf splitter): Fix pasto.
15239
15240 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15241
15242 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15243 to frame pointer initialisation instruction.
15244 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15245 initialisation instruction.
15246 (soft_df_operand): Do not accept the IP register.
15247 (nonimmediate_soft_df_operand): Do not accept the IP register.
15248
15249 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15250
15251 PR target/5357:
15252 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15253 MASK_V8 being both set.
15254
15255 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15256
15257 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15258 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15259 config/s390/s390.md (call, call_value): Add GOT register to
15260 CALL_INSN_FUNCTION_USAGE where needed.
15261 (call_exp, call_value_exp): New.
15262
15263 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15264
15265 * config/arm/arm.c: General formatting tidy up.
15266
15267 2002-01-16 Graham Stott <grahams@redhat.com>
15268
15269 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15270 cast and when casting an integer literal to "rtx" pointer.
15271 (expand_call): Likewise.
15272 * flow.c (try_pre_increment): Likewise.
15273 (find_use_as_address): Likewise.
15274 * integrate.c (expand_iline_function): Likewise.
15275 * regmove.c (try_auto_increment): Likewise.
15276
15277 2002-01-16 Graham Stott <grahams@redhat.com>
15278
15279 * sched-rgn.c (passed): Use sbitmap_free.
15280 (header): Likewise.
15281 (inner): Likewise.
15282 (in_queue): Likewise.
15283 (in_stack): Likewise.
15284
15285 2002-01-15 Eric Christopher <echristo@redhat.com>
15286
15287 * flow.c (propagate_one_insn): Change to use fatal_insn.
15288
15289 2002-01-15 Kazu Hirata <kazu@hxi.com>
15290
15291 * expmed.c (extract_fixed_bit_field): Remove unused code.
15292 * system.h: Poison SLOW_ZERO_EXTEND.
15293 * doc/tm.texi: Remove.
15294 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15295 * config/arm/arm.h: Likewise.
15296 * config/avr/avr.h: Likewise.
15297 * config/clipper/clipper.h: Likewise.
15298 * config/convex/convex.h: Likewise.
15299 * config/d30v/d30v.h: Likewise.
15300 * config/dsp16xx/dsp16xx.h: Likewise.
15301 * config/elxsi/elxsi.h: Likewise.
15302 * config/fr30/fr30.h: Likewise.
15303 * config/h8300/h8300.h: Likewise.
15304 * config/i370/i370.h: Likewise.
15305 * config/i386/i386.h: Likewise.
15306 * config/m68k/m68k.h: Likewise.
15307 * config/mips/mips.h: Likewise.
15308 * config/ns32k/ns32k.h: Likewise.
15309 * config/pdp11/pdp11.h: Likewise.
15310 * config/pj/pj.h: Likewise.
15311 * config/s390/s390.h: Likewise.
15312 * config/sh/sh.h: Likewise.
15313 * config/stormy16/stormy16.h: Likewise.
15314 * config/v850/v850.h: Likewise.
15315 * config/vax/vax.h: Likewise.
15316 * config/we32k/we32k.h: Likewise.
15317
15318 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15319
15320 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15321 (altivec_lvsl): Change constraint to b.
15322 (altivec_lvsr): Same.
15323 (altivec_lvebx): Same.
15324 (altivec_lvehx): Same.
15325 (altivec_lvewx): Same.
15326 (altivec_lvxl): Same.
15327 (altivec_lvx): Same.
15328 (altivec_stvx): Add parallel.
15329 (altivec_stvxl): Same.
15330 (altivec_stvehx): Same.
15331 (altivec_stvebx): Same.
15332 (altivec_stvebx): Same.
15333
15334 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15335
15336 * config.gcc: Change altivec.h to altivec-defs.h.
15337
15338 * config/rs6000/altivec.h: Delete.
15339
15340 * config/rs6000/altivec-defs.h: Add.
15341
15342 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15343
15344 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15345 and UMOD modes.
15346
15347 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15348 less than or equal to eight bytes.
15349
15350 * vax.md (andsi3): Remove constraints and change SET destination
15351 operand type to nonimmediate_operand.
15352 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15353 when it is a CONST_INT.
15354
15355 2002-01-15 Jason Merrill <jason@redhat.com>
15356
15357 * c-common.def (FILE_STMT): New code.
15358 * c-common.c (statement_code_p): It's a statement.
15359 * c-common.h (stmt_tree_s): Add x_last_filename.
15360 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15361 (last_expr_filename): New macro.
15362 * c-semantics.c (begin_stmt_tree): Initialize it.
15363 (add_stmt): If the filename changed, also insert a
15364 FILE_STMT.
15365 (expand_stmt): Handle seeing one.
15366
15367 2002-01-15 Eric Christopher <echristo@redhat.com>
15368
15369 * flow.c (propagate_one_insn): Add error message and print out
15370 insn for debugging.
15371
15372 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15373
15374 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15375 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15376 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15377 TRAMPOLINE_ALIGNMENT.
15378 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15379 to be in bits.
15380 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15381 PCC_BITFIELD_TYPE_MATTERS.
15382 * config/interix.h (STDC_VALUE): Remove. Use
15383 STDC_0_IN_SYSTEM_HEADERS.
15384 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15385 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15386 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15387
15388 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15389
15390 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15391 not work on this platform currently.
15392
15393 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15394
15395 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15396 readonly_warning in _().
15397
15398 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15399
15400 * gcc.c (delete_if_ordinary): Backout previous change.
15401
15402 2002-01-15 Kazu Hirata <kazu@hxi.com>
15403
15404 * config/h8300/h8300.c (print_operand): Remove support for
15405 unused operand characters.
15406
15407 * read-rtl.c: Fix formatting.
15408 * real.c: Likewise.
15409 * recog.c: Likewise.
15410 * regclass.c: Likewise.
15411 * regmove.c: Likewise.
15412 * reg-stack.c: Likewise.
15413 * reload1.c: Likewise.
15414 * rtlanal.c: Likewise.
15415
15416 2002-01-15 Kazu Hirata <kazu@hxi.com>
15417
15418 * config/i386/i386.c: Fix formatting.
15419
15420 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15421
15422 * c-typeck.c (process_init_element): Don't save_expr
15423 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15424
15425 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15426
15427 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15428 emit optional traceback table if optimize_size or TARGET_ELF.
15429 * config/rs6000/rs6000.md (prefetch): New.
15430
15431 2002-01-15 Andreas Jaeger <aj@suse.de>
15432
15433 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15434
15435 2002-01-15 Kazu Hirata <kazu@hxi.com>
15436
15437 * mips-tfile.c: Fix formatting.
15438
15439 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15440
15441 * unroll.c (final_reg_note_copy): Fix previous commit.
15442
15443 2002-01-14 Kazu Hirata <kazu@hxi.com>
15444
15445 * config/h8300/h8300-protos.h: Remove the prototype for
15446 eq_operator.
15447 * config/h8300/h8300.c (eq_operator): Remove.
15448
15449 2002-01-14 Richard Henderson <rth@redhat.com>
15450
15451 * config/i386/i386.md (prefetch): Tidy.
15452 (prefetch_3dnow): Fix locality operand.
15453
15454 2002-01-14 Richard Henderson <rth@redhat.com>
15455
15456 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15457 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15458
15459 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15460
15461 * reload1.c (reload_combine): Pass reg_sum replacement through
15462 copy_rtx in loop performing multiple changes.
15463
15464 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15465
15466 * except.c (remove_unreachable_regions): New.
15467 (free_eh_status): Clear exception_handler_labels.
15468 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15469 (find_exception_handler_labels): Don't add the same label more than
15470 once.
15471 (remove_exception_handler_label): Don't die if
15472 find_exception_handler_labels hasn't been called for the current
15473 function yet.
15474
15475 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15476
15477 * toplev.c (rest_of_compilation): Rebuild jump labels after
15478 gcse.
15479
15480 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15481
15482 * doc/extend.texi: Move documentation of X86 built-in functions
15483 here.
15484 * doc/invoke.texi: From here.
15485 * doc/sourcebuild.texi: Document location of documentation for
15486 machine built-in functions.
15487
15488 2002-01-13 Christopher Faylor <cgf@redhat.com>
15489
15490 * cppfiles.c (TEST_THRESHOLD): New macro.
15491 (SHOULD_MMAP): Ditto.
15492 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15493 be used.
15494
15495 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15496
15497 * unroll.c (final_reg_note_copy): Properly handle
15498 REG_LABEL
15499 (unroll_loops): Fix LOOP_CONDITION heuristics.
15500
15501 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15502
15503 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15504 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15505
15506 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15507
15508 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15509 threaded loop.
15510
15511 2002-01-14 Tom Rix <trix@redhat.com>
15512
15513 * config/rs6000/rs6000.md: Fix typo with sradi.
15514
15515 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15516
15517 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15518 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15519 (clrstrdi, clrstrsi): Adapt callers.
15520
15521 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15522
15523 (movti splitter): Never use register 0 as base register.
15524
15525 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15526
15527 * combine.c (simplify_shift_const): Always generate new rtx
15528 for shift expression instead of reusing given expression.
15529
15530 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15531
15532 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15533 alpha_legitimize_address unless mode is Pmode.
15534
15535 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15536
15537 * doc/md.texi (Modifiers): Document the '*' constraint for the
15538 user.
15539
15540 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15541 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15542 for xstormy16 too.
15543
15544 2002-01-13 Richard Henderson <rth@redhat.com>
15545
15546 * reload.c (find_reloads): Use a hard reg destination as reload reg
15547 for an input reload of the source.
15548
15549 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15550
15551 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15552 more generic.
15553
15554 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15555
15556 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15557 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15558
15559 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15560
15561 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15562
15563 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15564
15565 2002-01-12 Tom Rix <trix@redhat.com>
15566
15567 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15568 TARGET_POWERPC64.
15569
15570 2002-01-12 Richard Henderson <rth@redhat.com>
15571
15572 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15573
15574 * doc/invoke.texi: Update Alpha options.
15575
15576 * doc/invoke.texi: Update i386 built-in function lists.
15577
15578 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15579
15580 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15581 referencing outside.
15582
15583 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15584
15585 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15586 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15587 offsets, and change line folding.
15588 * optabs.c (expand_binop): Remove warnings.
15589 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15590
15591 2002-01-12 Graham Stott <grahams@redhat.com>
15592
15593 * attribs.c (handle_deprecated_attribute): constify WHAT.
15594 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15595 dangling else warning and constify WHAT.
15596 * except.h (struct function, struct inline_remap): Move
15597 struct tag forward defs before all prototypes.
15598 (duplicate_eh_regions): Whitespace.
15599
15600 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15601
15602 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15603 MODE_BASE_REG_CLASS.
15604 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15605
15606 2002-01-12 Richard Henderson <rth@redhat.com>
15607
15608 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15609 (ix86_expand_vector_move): New.
15610 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15611 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15612 Remove old prefetch builtins. Special case the logicals removed above.
15613 (ix86_expand_builtin): Likewise.
15614 (safe_vector_operand): Use V4SFmode, not TImode.
15615 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15616 (ix86_expand_timode_binop_builtin): New.
15617 * config/i386/i386-protos.h: Update.
15618 * config/i386/i386.h (enum ix86_builtins): Update.
15619 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15620 Use ix86_expand_vector_move in vector move expanders.
15621 (movti_internal, movti_rex64): Add xorps alternative.
15622 (sse_clrv4sf): Rename and adjust from sse_clrti.
15623 (prefetch): Don't work so hard.
15624 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15625 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15626 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15627
15628 2002-01-11 Richard Henderson <rth@redhat.com>
15629
15630 * config/i386/mmintrin.h: New file.
15631 * config/i386/xmmintrin.h: New file.
15632 * config.gcc (i?86-*-*): Add extra_headers.
15633 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15634 truncation codes.
15635 (simplify_binary_operation): Handle saturating arithmetic codes.
15636 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15637 not the lowpart subreg.
15638 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15639 on error.
15640 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15641
15642 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15643
15644 * conflict.c (conflict_graph_compute): Free regsets when finished.
15645 * ssa.c (compute_coalesced_reg_partition): Likewise.
15646
15647 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15648
15649 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15650 every where we allocate a register.
15651
15652 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15653
15654 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15655 * lcm.c (compute_earliest, compute_farthest): Likewise.
15656
15657 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15658
15659 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15660
15661 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15662
15663 * doc/rtl.texi (Insns): Fix 2 typos.
15664
15665 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15666
15667 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15668 options. Use @table @gcctabopt for MMIX options. Add index
15669 entries for MMIX options. Start new paragraph with first
15670 heading of the machine-dependent options.
15671
15672 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15673
15674 PR other/5299
15675 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15676 * combine.c (force_to_mode): Same.
15677 * reload1.c (clear_reload_reg_in_use): Same.
15678
15679 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15680
15681 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15682 and 'subtargets'.
15683
15684 2002-01-11 Andreas Jaeger <aj@suse.de>,
15685 Brad Lucier <lucier@math.purdue.edu>
15686
15687 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15688 mcpu.
15689
15690 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15691
15692 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15693 Protect with IN_LIBGCC.
15694 (LINK_EH_SPEC): Add required trailing space.
15695
15696 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15697
15698 * c-tree.h: Move function declarations so that they are listed
15699 under the filename which contains them.
15700 (check_identifier, finish_decl_top_level,
15701 lookup_name_current_level_global, shadow_record_fields): Remove.
15702
15703 2002-01-11 Andreas Jaeger <aj@suse.de>
15704
15705 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15706 march.
15707
15708 2002-01-10 Richard Henderson <rth@redhat.com>
15709
15710 * config/alpha/alpha.c (print_operand): Add 'J'.
15711 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15712 new operand with the sequence number for the lituse. When splitting
15713 the insns, use gen_movdi_er_high_g and generate a sequence number.
15714 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15715
15716 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15717
15718 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15719 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15720 stvxl.
15721 (altivec_expand_builtin): Same.
15722 (altivec_expand_stv_builtin): New.
15723
15724 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15725
15726 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15727 ("altivec_lvehx"): New.
15728 ("altivec_lvewx"): New.
15729 ("altivec_lvxl"): New.
15730 ("altivec_lvx"): New.
15731 ("altivec_stvx"): New.
15732 ("altivec_stvebx"): New.
15733 ("altivec_stvehx"): New.
15734 ("altivec_stvewx"): New.
15735 ("altivec_stvxl"): New.
15736
15737 2002-01-10 Richard Henderson <rth@redhat.com>
15738
15739 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15740 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15741 care not to delete instructions twice.
15742
15743 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15744
15745 * toplev.c: Don't declare environ (it's not used anywhere).
15746 * configure.in: Don't check for declaration of environ.
15747 * config/i386/xm-mingw32.h: Don't #define environ.
15748 * config.in, configure: Regenerate.
15749
15750 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15751
15752 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15753 * configure: Regenerate.
15754
15755 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15756 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15757 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15758 alpha/xm-vms.h.
15759 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15760 LIMITS_H_TEST here, not in m68k/x-next.
15761 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15762 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15763
15764 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15765 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15766 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15767
15768 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15769 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15770 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15771 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15772 replacement of quadlib.asm with quadlib.c.
15773
15774 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15775 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15776 config/rs6000/xm-beos.h: Delete file.
15777
15778 * config.gcc: Update to match above changes.
15779
15780 2002-01-10 Kazu Hirata <kazu@hxi.com>
15781
15782 * config/h8300/h8300.h: Fix comment typos.
15783 * config/h8300/h8300.md: Likewise.
15784 * config/h8300/lib1funcs.asm: Likewise.
15785
15786 2002-01-10 Dale Johannesen <dalej@apple.com>
15787
15788 PR optimization/5269
15789 * unroll.c (precondition_loop_p): Make *increment be the correct
15790 sign when n_iterations known, to avoid confusing caller.
15791
15792 2002-01-10 Kazu Hirata <kazu@hxi.com>
15793
15794 * doc/extend.texi (deprecated): Fix a typo.
15795
15796 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15797
15798 * basic-block.h (update_br_prob_note): Declare.
15799 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15800 (try_forward_edges): Care negative frequencies and update note.
15801 (outgoing_edges_match): Tweek conditional merging heuristics.
15802 (try_crossjump_to_edge): use update_br_prob_note.
15803 * cfglayout.c (fixup_reorder_chain): Likewise.
15804 * cfrtl.c (update_br_prob_note): New.
15805 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15806
15807 * i386.c (ix86_decompose_address): Return -1 if address contains
15808 shift.
15809 (legitimate_address_p): Require ix86_decompose_address to return 1.
15810
15811 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15812 (cprop_insn): Likewise.
15813
15814 2002-01-10 Kazu Hirata <kazu@hxi.com>
15815
15816 * toplev.c: Fix formatting.
15817 * tree.c: Likewise.
15818 * tree-dump.c: Likewise.
15819 * unroll.c: Likewise.
15820 * unwind-dw2.c: Likewise.
15821 * unwind-dw2-fde.c: Likewise.
15822 * unwind-dw2-fde-glibc.c: Likewise.
15823 * unwind-sjlj.c: Likewise.
15824
15825 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15826
15827 * doc/invoke.texi: Document PDP-11 options.
15828
15829 2002-01-10 Kazu Hirata <kazu@hxi.com>
15830
15831 * config/h8300/h8300.h: Fix formatting.
15832
15833 2002-01-10 Ira Ruben <ira@apple.com>
15834
15835 Add __attribute__ ((deprecated)).
15836 * extend.texi: Document __attribute__ ((deprecated)).
15837 * invoke.texi: Document -Wno-deprecated-declarations.
15838 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15839 * testsuite/gcc.dg/deprecated.c: New C test.
15840 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15841 (c_common_attribute_table): Add "deprecated" entry.
15842 (handle_deprecated_attribute): New function.
15843 * c-decl.c (deprecated_states): New enum.
15844 deprecated_state: State of "deprecated" handling.
15845 (start_decl): Set deprecated_state based on attributes.
15846 (grokdeclarator): Test for deprecated uses, propagate attribute.
15847 * c-typeck.c (build_component_ref): Test for deprecated fields.
15848 (build_external_ref): Test for deprecated primaries.
15849 * diagnostic.c (warn_deprecated_use) New function to issue
15850 warnings about __attribute__ ((depricated)) references.
15851 * flags.h (warn_deprecated_decl): Extern declared for
15852 -W[no-]deprecated-declarations option.
15853 * print-tree.c (print_node): Show deprecated flag status.
15854 * toplev.c (warn_deprecated_decl): Defined.
15855 (W_options): Added "deprecated-declaration".
15856 * toplev.h (warn_deprecated_use): Extern declared.
15857 * tree.h (struct tree_common): Define deprecated_flag.
15858 (TREE_DEPRECATED): New macro to access flag.
15859 * cp/call.c (build_call): Test for deprecated calls.
15860 * cp/class.c (add_implicitly_declared_members): Set global
15861 flag to tell grokdeclarator to not issue deprecated warnings.
15862 * cp/cp-tree.h: Add extern for adding_implicit_members.
15863 * cp/decl.c (deprecated_states): New enum.
15864 (start_decl): Set deprecated_state based on attributes.
15865 (grokdeclarator): Test for deprecated uses, propagate attribute.
15866 * cp/lex.c (do_identifier): Test for deprecated primaries.
15867 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15868
15869 2002-01-10 Ira Ruben <ira@apple.com>
15870
15871 Fix to assign attributes to inline member functions.
15872 * cp/decl.c (start_method): Handle attrlist.
15873
15874 2002-01-10 Kazu Hirata <kazu@hxi.com>
15875
15876 * combine.c (expand_field_assignment): Use subreg_lsb().
15877
15878 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15879
15880 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15881 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15882 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15883 Recurse for any operand of AND as long as constant is non-zero.
15884
15885 2002-01-10 Kazu Hirata <kazu@hxi.com>
15886
15887 * config/h8300/h8300.md: Remove constraints from expanders.
15888
15889 2002-01-10 Kazu Hirata <kazu@hxi.com>
15890
15891 * varasm.c: Fix formatting.
15892 * varray.c: Likewise.
15893 * vmsdbgout.c: Likewise.
15894 * xcoffout.c: Likewise.
15895
15896 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15897
15898 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15899 update edge probabilities to match.
15900
15901 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15902
15903 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15904 dependencies.
15905 * doc/languages.texi, doc/sourcebuild.texi: New files.
15906 * doc/configfiles.texi: Make a subsubsection. Update.
15907 * doc/configterms.texi: Add @node. Remove warning that this isn't
15908 instructions for building GCC.
15909 * doc/makefile.texi: Make a subsection.
15910 * doc/gccint.texi: Update.
15911
15912 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15913
15914 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15915
15916 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15917
15918 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15919
15920 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15921
15922 * optabs.c (expand_fix): Look for wider integer modes first.
15923
15924 * i386.md (mov?f): Avoid the fake const double trick for medium
15925 memory model.
15926 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15927 (fop_df_4): Disable for SSE compilation.
15928
15929 2002-01-10 Graham Stott <grahams@redhat.com>
15930
15931 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15932 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15933
15934 2002-01-10 Richard Henderson <rth@redhat.com>
15935
15936 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15937
15938 2002-01-10 Richard Henderson <rth@redhat.com>
15939
15940 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15941 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15942
15943 2002-01-10 Kazu Hirata <kazu@hxi.com>
15944
15945 * combine.c (can_combine_p): Fix a comment typo.
15946
15947 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15948
15949 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15950 empty list correctly. Change loop index $t to $f for
15951 consistency with rest of Makefile.
15952
15953 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
15954
15955 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15956 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15957
15958 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15959 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15960 (altivec_init_builtins): Same.
15961 (altivec_expand_unop_builtin): Return NULL_RTX on error.
15962 (altivec_expand_binop_builtin): Same.
15963 (altivec_expand_ternop_builtin): Same.
15964 (bdesc_dst): New.
15965
15966 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15967 ("altivec_vctuxs"): Fix typo.
15968 ("altivec_vnmsubfp"): Same.
15969 ("altivec_dssall"): New.
15970 ("altivec_mfvscr"): New.
15971 ("altivec_dss"): New.
15972 ("altivec_lvsl"): New.
15973 ("altivec_lvsr"): New.
15974 ("altivec_dstt"): New.
15975 ("altivec_dstst"): New.
15976 ("altivec_dststt"): New.
15977 ("altivec_dst"): New.
15978
15979 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15980 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15981
15982 2002-01-09 Richard Henderson <rth@redhat.com>
15983
15984 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15985
15986 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
15987
15988 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15989 function.
15990 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15991 prototype.
15992 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15993
15994 2002-01-09 Kazu Hirata <kazu@hxi.com>
15995
15996 * read-rtl.c: Fix formatting.
15997 * real.c: Likewise.
15998 * regclass.c: Likewise.
15999 * regrename.c: Likewise.
16000 * reg-stack.c: Likewise.
16001 * reload1.c: Likewise.
16002 * reload.c: Likewise.
16003 * rtl.c: Likewise.
16004
16005 2002-01-09 Kazu Hirata <kazu@hxi.com>
16006
16007 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16008 to extract items in the expr_list chain.
16009
16010 2002-01-09 Richard Henderson <rth@redhat.com>
16011
16012 * config/vax/vax.c (vax_rtx_cost): Never abort.
16013
16014 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16015
16016 2002-01-09 Jan Hubicka <jh@suse.cz>
16017
16018 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16019
16020 2002-01-09 Richard Henderson <rth@redhat.com>
16021
16022 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16023 Unify code from various alternatives.
16024
16025 2002-01-09 Richard Henderson <rth@redhat.com>
16026
16027 * regrename.c (copy_value): Ignore the copy if the source register
16028 is present in the value chain with a narrower mode.
16029
16030 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16031
16032 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16033 for the c4x target. Also improve layout.
16034
16035 2002-01-09 Richard Henderson <rth@redhat.com>
16036
16037 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16038 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16039 to match insn patterns.
16040
16041 2002-01-09 Richard Henderson <rth@redhat.com>
16042
16043 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16044 (copyprop_hardreg_forward_1): Likewise.
16045
16046 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16047
16048 * pa.md (decrement_and_branch_until_zero): Change predicate for
16049 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16050
16051 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16052
16053 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16054 gets undefined. For Darwin.
16055
16056 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16057
16058 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16059
16060 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16061
16062 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16063
16064 2002-01-08 Richard Henderson <rth@redhat.com>
16065
16066 * regrename.c (copy_value): Ignore overlapping copies.
16067
16068 2002-01-08 Richard Henderson <rth@redhat.com>
16069
16070 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16071 as needed to avoid shared structure.
16072
16073 2002-01-08 Kazu Hirata <kazu@hxi.com>
16074
16075 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16076 H8/300H and H8/S.
16077
16078 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16079
16080 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16081 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16082 documentation of obsolete macros.
16083 * system.h: Poison these macros.
16084 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16085 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16086 config/c4x/c4x.h, config/clipper/clipper.h,
16087 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16088 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16089 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16090 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16091 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16092 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16093 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16094 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16095 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16096 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16097 config/sparc/sparc.h, config/stormy16/stormy16.h,
16098 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16099 definitions and commented out definitions of obsolete macros.
16100 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16101 of MAX_INT_TYPE_SIZE.
16102
16103 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16104
16105 * config/s390/s390.c (s390_preferred_reload_class): Never
16106 return ADDR_REGS if it isn't a subset of the given class.
16107 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16108 FP_REGS, but all superclasses as well.
16109
16110 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16111
16112 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16113 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16114 must not be a const_int.
16115
16116 2002-01-08 Richard Henderson <rth@redhat.com>
16117
16118 * Makefile.in (toplev.o): Depend on options.h.
16119 (gcc.o): Depend on specs.h.
16120
16121 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16122
16123 * expr.c (store_expr): Convert VOIDmode constants back to target's
16124 mode.
16125
16126 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16127
16128 * doc/invoke.texi: Markup gcc as @command. Refer to
16129 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16130 of http://gcc.gnu.org/thanks.html.
16131
16132 2002-01-08 Dale Johannesen <dalej@apple.com>
16133
16134 * config/rs6000/rs6000.md: Add missing int register
16135 target case to movdf_low.
16136
16137 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16138
16139 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16140 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16141 (cppinit.o): Depend on except.h.
16142 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16143 s-specs): New rules.
16144
16145 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16146 Don't create specs.h/options.h/gencheck.h here. Remove
16147 unnecessary variable settings from last argument of AC_OUTPUT.
16148 * config.in, configure: Regenerate.
16149 * intl.c: Hardcode package name as "gcc".
16150
16151 * cppinit.c: Include except.h.
16152 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16153 appropriate.
16154 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16155 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16156 (!)USING_SJLJ_EXCEPTIONS.
16157 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16158
16159 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16160
16161 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16162 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16163 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16164 documentation of obsolete macros.
16165 * system.h: Poison these macros.
16166 * config/d30v/d30v.h, config/ns32k/encore.h,
16167 config/stormy16/stormy16.h: Remove definitions and commented out
16168 definitions of obsolete macros.
16169
16170 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16171
16172 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16173 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16174 warnings.
16175
16176 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16177
16178 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16179 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16180 to insn adjusting stack/frame pointer.
16181 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16182 accept operands that cause the insn to be non-splittable.
16183
16184 2002-01-08 Graham Stott <grahams@redhat.com>
16185
16186 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16187 (C_TYPE_FIELDS_VOLATILE): Likewise.
16188 (C_TYPE_BEING_DEFINED): Likewise.
16189 (C_IS_RESERVED_WORD): Likewise.
16190 (C_TYPE_VARIABLE_SIZE): Likewise.
16191 (C_DECL_VARIABLE_SIZE): Likewise.
16192 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16193 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16194 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16195 parenthesis.
16196 (C_DECL_ANTICIPATED): Likewise.
16197 (c_build_type_variant): Add parenthesis.
16198
16199 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16200
16201 * gcc.c (option_map): Remove --version.
16202 (process_command): Handle -fversion following the GNU Coding
16203 Standards. Partially addresses PR other/704.
16204
16205 2002-01-08 Graham Stott <grahams@redhat.com>
16206
16207 * combine.c (combine_instructions): Fix typo.
16208
16209 2002-01-08 Graham Stott <grahams@redhat.com>
16210
16211 * debug.h: Use "tree" and "rtx" throughout.
16212
16213 * debug.c: Likewise.
16214
16215 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16216
16217 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16218 constant pool, use the pool's version of the symbol instead.
16219
16220 2002-01-07 Richard Henderson <rth@redhat.com>
16221
16222 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16223 the original register was copied in a mode with a fewer number of
16224 hard registers than the desired mode.
16225 (copyprop_hardreg_forward_1): Likewise.
16226 (debug_value_data): Fix loop test.
16227 * toplev.c (parse_options_and_default_flags): Reenable
16228 -fcprop-registers at -O1.
16229
16230 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16231
16232 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16233 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16234
16235 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16236 predicates.
16237
16238 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16239
16240 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16241
16242 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16243 (pa_output_function_prologue): Output local label at the beginning of
16244 the prologue when profiling.
16245 (hppa_profile_hook): Use the local label rather than the function label.
16246 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16247
16248 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16249
16250 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16251 (altivec_expand_unop_builtin): Fix thinko.
16252 (altivec_expand_binop_builtin): Same.
16253 (altivec_expand_ternop_builtin): Same.
16254 (altivec_expand_builtin): Same.
16255
16256 2002-01-07 Richard Henderson <rth@redhat.com>
16257
16258 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16259
16260 2002-01-07 Jason Merrill <jason@redhat.com>
16261
16262 * unwind-dw2.c (execute_cfa_program): Use < again.
16263
16264 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16265
16266 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16267
16268 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16269
16270 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16271 Don't allow -1 - x -> ~x simplifications in the first pass.
16272
16273 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16274
16275 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16276 arguments.
16277 (altivec_expand_binop_builtin): Same.
16278 (altivec_expand_unop_builtin): Same.
16279 (print_operand): Fix typo.
16280 (bdesc_1arg): Add vupk* variants.
16281
16282 * rs6000.h (rs6000_builtins): Add vupk* enums.
16283
16284 * rs6000.md: Add altivec_vupk* variants.
16285
16286 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16287
16288 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16289 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16290 and last update dates.
16291
16292 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16293
16294 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16295
16296 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16297
16298 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16299 * config/avr/avr.h (CPP_SPEC): Likewise.
16300 (LINK_SPEC): Likewise.
16301 (CRT_BINUTILS_SPECS): Likewise.
16302 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16303 * doc/invoke.texi (AVR Options): Document them.
16304
16305 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16306
16307 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16308 LABEL_NUSES.
16309
16310 2002-01-07 Graham Stott <grahams@redhat.com>
16311
16312 * config/i386/i386.h: Update copyright date.
16313 (HALF_PIC_PTR): Add parenthesis.
16314 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16315 (CONSTANT_ALIGNMENT): Add parenthesis.
16316 (DATA_ALIGNMENT): Likewise.
16317 (LOCAL_ALIGNMENT): Likewise.
16318 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16319 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16320 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16321 (HARD_REGNO_NREGS): Add paranethesis.
16322 (VALID_SSE_REG_MODE): Whitespace.
16323 (VALID_MMX_REG_MODE): Whitespace.
16324 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16325 (ix86_hard_regno_mode_ok): Add parenthesis.
16326 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16327 (RETURN_IN_MEMORY): Whitespace.
16328 (N_REG_CLASSES): Add parenthesis.
16329 (INTEGER_CLASS_P): Add parenthesis and wrap.
16330 (FLOAT_CLASS_P): Likewise.
16331 (SSE_CLASS_P): Likewise.
16332 (MMX_CLASS_P): Likewise.
16333 (MAYBE_INTEGER_CLASS_P): Likewise.
16334 (MAYBE_FLOAT_CLASS_P): Likewise.
16335 (MAYBE_SSE_CLASS_P): Likewise.
16336 (MAYBE_MMX_CLASS_P): Likewise.
16337 (Q_CLASS_P): Likewise.
16338 (GENERAL_REGNO_P): Uppercase macro parameter.
16339 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16340 (FP_REGNO_P): Likewise.
16341 (ANY_FP_REGNO_P): Uppercase macro parameter.
16342 (SSE_REGNO_P): Likewise.
16343 (SSE_REGNO): Likewise.
16344 (SSE_REG_P): Likewise.
16345 (SSE_FLOAT_MODE_P): Likewise.
16346 (MMX_REGNO_P): Likewise.
16347 (MMX_REG_P):Likewise.
16348 (STACK_REG_P): Likewise.
16349 (NON_STACK_REG_P): Likewise.
16350 (STACK_TOP_P): Likewise.
16351 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16352 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16353 (SECONDARY_MEMORY_NEEDED): Likewise.
16354 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16355 (MD_ASM_CLOBBERS): Whitespace and wrap.
16356 (MUST_PASS_IN_STACK): Whitespace and wrap.
16357 (RETURN_POPS_ARGS): Add parenthesis.
16358 (INIT_CUMULATIVE_ARGS): Likewise.
16359 (FUNCTION_ARG): Likewise.
16360 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16361 (SETUP_INCOMING_VARARGS): Likewise.
16362 (BUILD_VA_LIST_TYPE): Add parenthesis.
16363 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16364 parenthsis.
16365 (EXPAND_BUILTIN_VA_ARG): Likewise.
16366 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16367 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16368 (INITIAL_ELIMINATION_OFFSET): Likewise.
16369 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16370 (REGNO_OK_FOR_BASE_P): Likewise.
16371 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16372 (REGNO_OK_FOR_DIREG_P): Likewise.
16373 (REG_OK_FOR_INDEX_P): Whitespace.
16374 (REG_OK_FOR_BASE_P): Whitespace.
16375 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16376 parenthesis.
16377 (FIND_BASE_TERM): Fix typo.
16378 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16379 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16380 (SYMBOLIC_CONST; Whitespace.
16381 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16382 (ENCODE_SECTION_INFO): Whitespace.
16383 (FINALIZE_PIC): Remove do { ... } while (0).
16384 (PROMOTE_MODE): Wrap in do { ... } while (0).
16385 (CONST_COSTS): Whitespace.
16386 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16387 (REGISTER_MOVE_COST): Add parenthesis.
16388 (MEMORY_MOVE_COST): Likewise.
16389 (EXTRA_CC_MODES): Whitespace.
16390 (SELECT_CC_MODE): Add parenthesis and whitespace.
16391 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16392 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16393 (ASM_OUTPUT_LABEL): Add paramethesis.
16394 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16395 (ASM_OUTPUT_REG_POP): Likewise.
16396 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16397 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16398
16399 * config/i386/i386.c: Update copyright.
16400 (CHECK_STACK_LIMIT): Add parenthesis.
16401 (AT_BP): Uppercase macro parameter.
16402 (x86_64_int_parameter_registers): Constify.
16403 (x86_64_int_return_registers): Likewise.
16404 (ix86_compare_op0): Use rtx.
16405 (construct_container): Constify INTREG parameter.
16406 (function_arg): Use rtx.
16407
16408 * diagnostic.h: Update copyright date.
16409 (output_buffer_state): Add parenthesis.
16410 (output_buffer_format_args): Likewise.
16411
16412 * combine.c (combine_instructions): Replace XEXP (links, 0)
16413 with link.
16414
16415 2002-01-06 H.J. Lu <hjl@gnu.org>
16416
16417 * cfgcleanup.c (thread_jump): Fix 2 typos.
16418
16419 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16420
16421 * config.gcc: Add support for --enable-altivec.
16422
16423 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16424
16425 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16426
16427 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16428
16429 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16430 __objc_class_name_*.
16431
16432 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16433
16434 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16435
16436 2002-01-06 Richard Henderson <rth@redhat.com>
16437
16438 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16439 nop them out. Increment label reference count for REG_LABEL.
16440 (fill_slots_from_thread): Frob label reference count around
16441 delete_related_insns.
16442
16443 2002-01-05 Richard Henderson <rth@redhat.com>
16444
16445 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16446 jump threading.
16447
16448 2002-01-05 Richard Henderson <rth@redhat.com>
16449
16450 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16451 * integrate.c (output_inline_function): Likewise.
16452 * toplev.c (rest_of_compilation): Do it here instead. Move call
16453 to remove_unnecessary_notes after emitting abstract instance.
16454 Force an emitted nested function to have its parent emited as well.
16455 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16456 for null.
16457 (rtl_for_decl_location): Do not look at reload data structures
16458 before reload has run.
16459
16460 2002-01-05 Kazu Hirata <kazu@hxi.com>
16461
16462 * cse.c: Fix formatting.
16463 * dwarf2asm.c: Likewise.
16464 * dwarf2out.c: Likewise.
16465 * explow.c: Likewise.
16466 * expmed.c: Likewise.
16467 * function.c: Likewise.
16468 * gcov.c: Likewise.
16469 * gencheck.c: Likewise.
16470 * genrecog.c: Likewise.
16471 * ggc-common.c: Likewise.
16472 * ggc-page.c: Likewise.
16473 * global.c: Likewise.
16474
16475 2002-01-05 Kazu Hirata <kazu@hxi.com>
16476
16477 * combine.c: Fix formatting.
16478
16479 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16480
16481 PR middle-end/1557
16482 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16483
16484 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16485
16486 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16487 as 1 for __powerpc64__ as well.
16488
16489 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16490
16491 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16492 return it.
16493
16494 2002-01-05 Daniel Berlin <dan@dberlin.org>
16495
16496 * lcm.c: Revert change, due to performance regression it causes on
16497 SPEC because it's slightly more conservative (sigh, I hate
16498 edge-based LCM).
16499
16500 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16501
16502 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16503
16504 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16505
16506 * doc/cppinternals.texi: Update.
16507
16508 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16509
16510 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16511 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16512 negatives.
16513 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16514 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16515 kludge for pre-october-14th mmix versions to handle new-found bug
16516 with PUSHJ/PUSHGO and the register stack.
16517 * config/mmix/mmix.h (struct machine_function): Rename member
16518 has_call_value_without_parameters to has_call_without_parameters.
16519 All referers changed.
16520 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16521 TARGET_MASK_BRANCH_PREDICT): New macros.
16522 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16523 -mno-reg-stack-fill-bug-workaround.
16524 * config/mmix/mmix.md ("call"): Set struct machine member
16525 has_call_without_parameters.
16526
16527 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16528
16529 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16530
16531 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16532
16533 * cfgcleanup.c: Include tm_p.h
16534 (mark_effect): Fix handling of hard register; fix handling of SET
16535
16536 2002-01-04 Kazu Hirata <kazu@hxi.com>
16537
16538 * config/h8300/h8300.md (anonymous patterns): Check that
16539 operands are registers before using REGNO on them.
16540
16541 2002-01-03 Roland McGrath <roland@frob.com>
16542
16543 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16544
16545 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16546
16547 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16548 * c-common.h (genrtl_expr_stmt_value): Likewise.
16549 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16550 (expand_expr_stmt_value): Add maybe_last argument.
16551 Don't warn about statement with no effect if it is the last statement
16552 in expression statement.
16553 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16554 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16555 expand_expr_stmt_value.
16556 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16557 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16558 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16559 as maybe_last to expand_expr_stmt_value.
16560
16561 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16562
16563 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16564 be passed in, do not build it.
16565 (c_begin_if_stmt): New function.
16566 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16567 * c-common.h (c_expand_start_cond): Update prototype.
16568 (c_begin_if_stmt): Prototype new function.
16569 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16570 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16571 c_begin_while_stmt and c_finish_while_stmt_cond.
16572
16573 2002-01-04 William Cohen <wcohen@redhat.com>
16574
16575 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16576 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16577 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16578 * config/pa/som.h (ASM_FILE_START): Likewise.
16579
16580 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16581
16582 * lcm.c: Include df.h.
16583 Add available_transfer_function prototype.
16584 (compute_available): Rework to use iterative dataflow framework.
16585 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16586 with bb_info in df.h
16587 (available_transfer_function): New function.
16588
16589 * Makefile.in (lcm.o): add df.h to dependencies.
16590
16591 2002-01-04 Richard Henderson <rth@redhat.com>
16592
16593 * config/alpha/alpha.c (some_operand): Accept HIGH.
16594 (input_operand): Likewise; accept simple references to globals.
16595 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16596 (alpha_const_double_ok_for_letter_p): Likewise.
16597 (alpha_extra_constraint): Likewise.
16598 (alpha_preferred_reload_class): Likewise. Do not force
16599 symbolic constants to memory.
16600 (alpha_legitimate_address_p): Accept simple references
16601 to small_symbolic_operand.
16602 (alpha_legitimize_address): New arg scratch. Be prepared to be
16603 called when no_new_pseudos. Emit simple symbolic references.
16604 Split integers into low, high, and rest.
16605 (alpha_expand_mov): Use alpha_legitimize_address.
16606 (some_small_symbolic_mem_operand): New.
16607 (split_small_symbolic_mem_operand): New.
16608 * config/alpha/alpha-protos.h: Update.
16609 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16610 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16611 (EXTRA_CONSTRAINT): Likewise.
16612 (PREFERRED_RELOAD_CLASS): Likewise.
16613 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16614 (PREDICATE_CODES): Update.
16615 * config/alpha/alpha.md: New post-reload splitters to convert
16616 simplfied symbolic operands to the form that references $29.
16617 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16618 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16619
16620 2002-01-03 Richard Henderson <rth@redhat.com>
16621
16622 * local-alloc.c (function_invariant_p): Update commentary.
16623
16624 2002-01-04 H.J. Lu <hjl@gnu.org>
16625
16626 * toplev.c (rest_of_compilation): Fix a typo when calling
16627 cleanup_cfg.
16628
16629 2002-01-03 Kazu Hirata <kazu@hxi.com>
16630
16631 * c-common.c: Fix formatting.
16632 * diagnostic.c: Likewise.
16633 * doloop.c: Likewise.
16634 * dwarf2out.c: Likewise.
16635
16636 2002-01-03 Kazu Hirata <kazu@hxi.com>
16637
16638 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16639 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16640
16641 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16642
16643 * cpperror.c: Update comments and copyright.
16644 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16645 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16646
16647 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16648
16649 * collect2.c (main): Use strcmp when testing for "-shared".
16650
16651 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16652
16653 * cppmacro.c: Don't include intl.h. Update comments.
16654 (new_number_token): Allocate enough buffer for 64-bit unsigned
16655 integers; update prototype.
16656 * cppmain.c: Update comments.
16657
16658 2002-01-03 William Cohen <wcohen@redhat.com>
16659
16660 * function.h (struct function): Add profile.
16661 (current_function_profile): New.
16662 doc/extend.texi: Update documentation.
16663 * final.c (final_start_function): Use current_function_profile
16664 instead of profile_flag.
16665 (profile_after_prologue): Likewise.
16666 * function.c (expand_function_start): Likewise.
16667 (expand_function_start): Likewise.
16668 * config/alpha/alpha.c (direct_call_operand):
16669 (alpha_does_function_need_gp): Likewise.
16670 (alpha_expand_prologue): Likewise.
16671 * config/arm/arm.c (arm_expand_prologue): Likewise.
16672 thumb_expand_prologue: Likewise.
16673 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16674 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16675 (fr30_expand_prologue): Likewise.
16676 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16677 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16678 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16679 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16680 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16681 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16682 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16683 (m32r_expand_prologue): Likewise.
16684 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16685 (m88k_expand_prologue): Likewise.
16686 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16687 * config/mips/mips.c (compute_frame_size): Likewise.
16688 (mips_expand_prologue): Likewise.
16689 (mips_can_use_return_insn): Likewise.
16690 * config/pa/elf.h (ASM_FILE_START): Likewise.
16691 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16692 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16693 * config/pa/som.h (ASM_FILE_START): Likewise.
16694 * config/romp/romp.c (romp_using_r14): Likewise.
16695 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16696 (rs6000_stack_info): Likewise.
16697 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16698 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16699 * config/v850/v850.c (compute_register_save_size): Likewise.
16700
16701 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16702
16703 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16704 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16705
16706 2002-01-03 Turly O'Connor <turly@apple.com>
16707
16708 * darwin.c (machopic_output_possible_stub_label): Don't generate
16709 stub routines for pseudo-stubs which we've just defined.
16710
16711 2002-01-03 Kazu Hirata <kazu@hxi.com>
16712
16713 * builtins.c: Fix formatting.
16714 * c-typeck.c: Likewise.
16715 * combine.c: Likewise.
16716 * expr.c: Likewise.
16717 * loop.c: Likewise.
16718
16719 2002-01-03 Andreas Schwab <schwab@suse.de>
16720
16721 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16722 and return true if _cpp_push_next_buffer pushed a new include
16723 file.
16724 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16725 _cpp_pop_file_buffer did not push a new file.
16726 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16727
16728 2002-01-02 Eric Christopher <echristo@redhat.com>
16729
16730 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16731 FIND_REG_INC_NOTE call. Update copyright.
16732 * loop.c (canonicalize_condition): Ditto.
16733 * reorg.c (delete_scheduled_jump): Ditto.
16734
16735 2002-01-03 Kazu Hirata <kazu@hxi.com>
16736
16737 * gcse.c: Fix formatting.
16738
16739 2002-01-03 Graham Stott <grahams@redhat.com>
16740
16741 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16742 forward defs for struct tags rtx_def, union_tree, rtvec_def
16743 also output corresponding typedefs for rtx, tree, and rtvec.
16744
16745 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16746 rtvec_def along with corresponding typedefs for rtx, tree, and
16747 rtvec to config.h, hconfig.h, tconfig.h.
16748
16749 2002-01-03 Graham Stott <grahams@redhat.com>
16750
16751 * tree.h: Update copyright date.
16752 (IS_EXPR_CODE_CLASS): Add parenthesis.
16753 (TREE_SET_CODE): Add whitespace.
16754 (TREE_CHECK): Add parenthesis.
16755 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16756 (CST_OR_CONSTRUCTOR_CHECK):
16757 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16758 (TREE_SYMBOL_REFERENCED): Whitespace.
16759 (INT_CST_LT): Likewise.
16760 (INT_CST_LT_UNSIGNED): Likewise.
16761 (tree_real_cst): Unwrap comment.
16762 (tree_string): Likewise.
16763 (tree_complex): Likewise.
16764 (IDENTIFIER_POINTER): correct cast.
16765 (SAVE_EXPR_CONTEXT): Whitespace.
16766 (EXPR_WFL_FILENAME_NODE): Likewise.
16767 (EXPR_WFL_FILENAME): Remove parenthesis.
16768 (DECL_ORIGIN): Add parenthesis.
16769 (DECL_FROM_INLINE): Use NULL_TREE.
16770 (build_int_2): Whitespace.
16771 (build_type_variant): Add parenthesis.
16772
16773 * gcc/jcf-parse.c: Update copyright date.
16774 (yyparse): Constify resource_filename.
16775
16776 2002-01-03 Graham Stott <grahams@redhat.com>
16777
16778 * rtl.h: Update copyright date.
16779 (RTL_CHECK1): Wrap long line.
16780 (RTL_CHECK2): Likewise.
16781 (RTL_CHECKC1): Wrap long line and whitespace.
16782 (RTL_CHECKC2): Likewise.
16783 (XWINT): Whitespace.
16784 (XINT): Likewise.
16785 (XSTR): Likewise.
16786 (XEXP): Likewise.
16787 (XVEC): Likewise.
16788 (XMODE): Likewise.
16789 (XBITMAP): Likewise.
16790 (XTREE): Likewise.
16791 (XBBDEF): Likewise.
16792 (XTMPL): Likewise.
16793 (X0WINT): Likewise.
16794 (X0INT):Likewise.
16795 (X0UINT): Likewise.
16796 (X0STR): Likewise.
16797 (X0EXP): Likewise.
16798 (X0VEC): Likewise.
16799 (X0MODE): Likewise.
16800 (X0BITMAP): Likewise.
16801 (X0TREE): Likewise.
16802 (X0BBDEF): Likewise.
16803 (X0ADVFLAGS): Likewise.
16804 (X0CSELIB): Likewise.
16805 (X0MEMATTR): Likewise.
16806 (XCWINT): Likewise.
16807 (XCINT): Likewise.
16808 (XCUINT): Likewise.
16809 (XCSTR): Likewise.
16810 (XCEXP): Likewise.
16811 (XCVEC): Likewise.
16812 (XCMODE): Likewise.
16813 (XCBITMAP): Likewise.
16814 (XCTREE): Likewise.
16815 (XCBBDEF): Likewise.
16816 (XCADVFLAGS): Likewise.
16817 (XCCSELIB): Likewise.
16818 (XC2EXP): Likewise.
16819 (INSN_UID): Likewise.
16820 (PREV_INSN): Likewise.
16821 (PATTERN): Likewise.
16822 (INSN_CODE): Likewise.
16823 (PUT_REG_NOTE_KIND): Likewise.
16824 (CODE_LABEL_NUMBER): Likewise.
16825 (NOTE_SOURCE_FILE): Likewise.
16826 (NOTE_BLOCK): Likewise.
16827 (NOTE_EH_HANDLER): Likewise.
16828 (NOTE_RANGE_INFO): Likewise.
16829 (NOTE_LIVE_INFO): Likewise.
16830 (NOTE_BASIC_BLOCK): Likewise.
16831 (NOTE_EXPECTED_VALUE): Likewise.
16832 (NOTE_LINE_NUMBER): Likewise.
16833 (LABEL_NAME): Likewise.
16834 (LABEL_NUSES): Likewise.
16835 (LABEL_ALTERNATE_NAME): Likewise.
16836 (ADDRESSOF_DECL): Likewise.
16837 (JUMP_LABEL): Likewise.
16838 (LABEL_NEXTREF): Likewise.
16839 (REGNO): Likewise.
16840 (ORIGINAL_REGNO: Likewise.
16841 (HARD_REGISTER_NUM_P): Add parenthesis.
16842 (SUBREG_REG): Whitespace.
16843 (SUBREG_BYTE): Likewise.
16844 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16845 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16846 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16847 (ASM_OPERANDS_INPUT_VEC): Likewise.
16848 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16849 (ASM_OPERANDS_INPUT): Likewise.
16850 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16851 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16852 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16853 (ASM_OPERANDS_INPUT_MODE): Likewise.
16854 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16855 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16856 (MEM_SET_IN_STRUCT_P): Minor reformat.
16857 (TRAP_CONDITION): Whitespace.
16858 (TRAP_CODE): Likewise.
16859 (COND_EXEC_TEST): Likewise.
16860 (COND_EXEC_CODE): Likewise.
16861 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16862 (PHI_NODE_P): Add parenthesis.
16863 (plus_constant): Whitespace and add parenthesis.
16864
16865 2002-01-03 Kazu Hirata <kazu@hxi.com>
16866
16867 * config/avr/avr.c: Fix comment typos.
16868 * config/c4x/c4x.md: Likewise.
16869 * config/dsp16xx/dsp16xx.h: Likewise.
16870 * config/dsp16xx/dsp16xx.md: Likewise.
16871 * config/i386/i386.md: Likewise.
16872 * config/ia64/ia64.c: Likewise.
16873 * config/m32r/m32r.h: Likewise.
16874 * config/m68hc11/m68hc11.md: Likewise.
16875 * config/mmix/mmix.c: Likewise.
16876 * config/mn10200/mn10200.c: Likewise.
16877 * config/romp/romp.c: Likewise.
16878 * config/sh/sh.c: Likewise.
16879 * config/stormy16/stormy16.c: Likewise.
16880 * config/stormy16/stormy16.h: Likewise.
16881 * config/stormy16/stormy16.md: Likewise.
16882
16883 2002-01-03 Graham Stott <grahams@redhat.com>
16884
16885 * loop.h: Update copyright date.
16886 (LOOP_MOVABLES): Fix typo.
16887 (LOOP_REGS): Likewise.
16888 (LOOP_IVS): Likewise.
16889
16890 2002-01-03 Graham Stott <grahams@redhat.com>
16891
16892 * cppinit.c: Update copyright date.
16893 Don't include output.h
16894 * Makefile.in: Update copyright date.
16895 Update dependency.
16896
16897 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16898
16899 PR c/5226
16900 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16901 (-pthread) Add to RS/6000 options.
16902
16903 2002-01-02 Kazu Hirata <kazu@hxi.com>
16904
16905 * except.c: Fix comment typos.
16906 * loop.c: Likewise.
16907 * varasm.c: Likewise.
16908 * doc/tm.texi: Fix a typo.
16909
16910 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16911
16912 * c-typeck.c (output_init_element): Allow initializing static storage
16913 duration objects with compound literals.
16914
16915 2002-01-02 Richard Henderson <rth@redhat.com>
16916
16917 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16918 after abusing it.
16919
16920 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16921
16922 * gcc.c (default_compilers): Const-ify.
16923 * mips-tdump.c (stab_names): Likewise.
16924 * mips-tfile.c (map_coff_types, map_coff_storage,
16925 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16926 pseudo_ops_t, pseudo_ops): Likewise.
16927 * protoize.c (default_include): Likewise
16928
16929 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16930 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16931 Add array size in declaration.
16932 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16933 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16934 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16935 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16936 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16937 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16938 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16939 emtens, make_nan): Const-ify.
16940 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16941 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16942
16943 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16944
16945 * config.gcc (ia64-*-*): Set extra_headers.
16946 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16947 * config/alpha/t-osf: Remove.
16948 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16949
16950 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16951
16952 * config/rs6000/t-aix43: Revert previous change.
16953
16954 2002-01-02 Jason Merrill <jason@redhat.com>
16955
16956 * c-decl.c (c_expand_body): Call outlining_inline_function when
16957 emitting an inline function out of line.
16958
16959 2002-01-02 Richard Henderson <rth@redhat.com>
16960
16961 * dwarf2out.c (limbo_die_node): Add created_for member.
16962 (new_die): New argument created_for. Update all callers.
16963 (mark_limbo_die_list): New.
16964 (dwarf2out_init): Register limbo_die_list as a root.
16965 (dwarf2out_finish): Force insert limbo dies into their function
16966 context.
16967
16968 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
16969
16970 PR c++/5089
16971 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16972
16973 2002-01-02 Kazu Hirata <kazu@hxi.com>
16974
16975 * config/h8300/fixunssfsi.c: Update copyright.
16976 Fix comment typos.
16977 Fix formatting.
16978 * config/h8300/h8300.c: Update copyright.
16979 Eliminate warnings.
16980
16981 2002-01-02 Kazu Hirata <kazu@hxi.com>
16982
16983 * config/romp/romp.c: Fix comment formatting.
16984 * config/romp/romp.h: Likewise.
16985 * config/romp/romp.md: Likewise.
16986 * config/s390/s390.c: Likewise.
16987 * config/stormy16/stormy16.c: Likewise.
16988 * config/stormy16/stormy16.h: Likewise.
16989
16990 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
16991
16992 * c-common.h (genrtl_expr_stmt_value): Declare.
16993 * c-semantics.c (genrtl_goto_stmt): Redirect to...
16994 (genrtl_goto_stmt_value): ... this new function. Pass new
16995 argument down to expand_expr_stmt_value, taking
16996 TREE_ADDRESSABLE into account.
16997 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16998 STMT_EXPR as addressable, i.e., one whose result we want.
16999 * expr.c (expand_expr): Don't save expression statement value
17000 of labeled_blocks or loop_exprs.
17001 * stmt.c (expand_expr_stmt): Redirect to...
17002 (expand_expr_stmt_value): ... this new function. Use new
17003 argument to tell whether to save expression value.
17004 (expand_end_stmt_expr): Reset last_expr_type and
17005 last_expr_value if we don't have either.
17006 * tree-inline.c (declare_return_variable): Mark its use
17007 statement as addressable.
17008 * tree.h: Document new use of TREE_ADDRESSABLE.
17009 (expand_expr_stmt_value): Declare.
17010
17011 2002-01-01 Tom Rix <trix@redhat.com>
17012
17013 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17014 rs6000_emit_allocate_stack.
17015
17016 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17017
17018 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17019 ${srcdir}/ginclude/ to every entry in extra_headers.
17020 * configure: Regenerate.
17021 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17022 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17023 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17024 * ginclude/proto.h: Rename to config/convex/proto.h.
17025
17026 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17027
17028 * attribs.c (handle_vector_size_attribute): Use host_integerp
17029 and tree_int_cst; remove warnings.
17030 * caller-save.c (insert_restore): Add cast to get rid of warning.
17031 (insert_save): Likewise.
17032 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17033 * regmove.c (find_matches): Add temporary var to kill a warning.
17034
17035 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17036
17037 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17038 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17039 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17040 (vms-dwarf2eh.o): Add Makefile rule.
17041 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17042 * config/alpha/vms-dwarf2eh.asm: New file.
17043
17044 * gcc.c (delete_if_ordinary): Delete all versions.
17045
17046 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17047
17048 * config/mmix/mmix.md: Update FIXME to not mention
17049 define_constants.
17050 (MMIX_rJ_REGNUM): New define_constants constant.
17051 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17052 "*movdicc_real"): Adjust contraints formatting.
17053 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17054 for branch prediction.
17055 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17056 output template.
17057 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17058 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17059 number. Delete related FIXMEs.
17060 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17061 from number to MMIX_rJ_REGNUM.
17062 (TARGET_MASK_BRANCH_PREDICT): New.
17063 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17064 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17065 value. Add -mbranch-predict and -mno-branch-predict.
17066 (TARGET_VERSION): Drop date.
17067 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17068 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17069 for finding out global symbols.
17070 (mmix_asm_output_labelref): Revert condition for global symbol.
17071 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17072 (mmix_print_operand_punct_valid_p): A '+' is valid.
17073
17074 See ChangeLog.6 for earlier changes.
This page took 0.791905 seconds and 5 git commands to generate.