]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Makefile.in (tm_defines): New configuration variable.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2
3 * Makefile.in (tm_defines): New configuration variable.
4 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
5 Pass tm_defines in TM_DEFINES.
6 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
7 * config.gcc (tm_defines): New configuration variable.
8 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
9 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
10 * configure.in: Substitute tm_defines.
11 * configure: Rebuilt.
12 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
13 * doc/install.texi: Update.
14 * pa/pa-700.h: Delete file.
15 * pa/pa-7100.h: Delete file.
16
17 2002-06-15 Roger Sayle <roger@eyesopen.com>
18
19 * fold-const.c (comparison_to_compcode): New function to convert
20 an comparison TREE CODE into a bit-based representation.
21 (compcode_to_comparison): New function to convert from this bit
22 based representation back to a comparison TREE CODE.
23 (fold_truthop): Simplify (x<y) && (x==y) and related composite
24 comparisons.
25
26 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
27
28 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
29
30 * stor-layout.c (compute_record_mode): Remove check for
31 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
32 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
33 MEMBER_TYPE_FORCES_BLK.
34
35 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
36
37 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
38
39 2002-06-14 Jeff Sturm <jsturm@one-point.com>
40
41 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
42
43 2002-06-14 Steve Ellcey <sje@cup.hp.com>
44
45 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
46 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
47 * configure, config.in: Regenerate.
48
49 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
50
51 * loop.c (check_final_value): Use v->always_executed
52 instead of v->always_computable.
53 * unroll.c (final_giv_value): Don't calculate the final
54 value as a function of the biv if the giv is not computed
55 for every loop iteration.
56
57 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
58
59 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
60
61 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
62
63 PR c/6677
64 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
65 the truncation down when the target type is signed.
66 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
67 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
68 the conversion if the target type is a smaller type.
69
70 2002-06-14 Richard Henderson <rth@redhat.com>
71
72 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
73 earlier. Re-factor comparisons vs extrema.
74
75 2002-06-14 Richard Henderson <rth@redhat.com>
76
77 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
78
79 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
80
81 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
82 * sched-deps.c (add_dependence): Likewise.
83 (group_leader): Likewise.
84 * sched-rgn.c (init_ready_list): Likewise.
85 * doc/rtl.texi: Adjust accordingly.
86
87 2002-06-13 Jeffrey Law <law@redhat.com>
88
89 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
90 null pointer checks were eliminated. Update prototype.
91 (delete_null_pointer_checks): Similarly.
92 * rtl.h (delete_null_pointer_checks): Update prototype.
93 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
94 delete_null_pointer_checks deletes one or more null
95 pointer checks. Do not run cleanup_cfg before gcse, the
96 CFG is accurate and optimized at that point..
97
98 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
99 of hard registers.
100
101 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
102
103 * Makefile.in (libgcc.mk): Depend on specs.
104
105 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
106
107 * sh.md (mulsi3): Update way how to find insns in a sequence.
108
109 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
110
111 * sh.h: Define HARD_REGNO_RENAME_OK
112 * sh.c: sh_hard_regno_rename_ok: New. If current function has
113 interrupt_handler attribute, only registers saved on stack are OK.
114 * sh-protos.h: Declare sh_hard_regno_rename_ok.
115
116 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
117
118 * config/sh/sh.md (jump): Emit jump insn.
119 (call_pcrel): Get pattern of the result of gen_call_site.
120 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
121
122 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
123
124 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
125 * cpptrad.c: Update comments.
126 (skip_whitespace, copy_comment): Take a new parameter.
127 (skip_escaped_newlines): Don't duplicate escaped newline test.
128 (copy_comment): Different location for CUR, decide here how
129 to copy / replace the comment.
130 (skip_whitespace): Copy whitespace.
131 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
132 (scan_out_logical_line): Let copy comment handle keeping or
133 replacing comments.
134 (scan_parameters, _cpp_create_trad_definition): Update.
135
136 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
137
138 * reload.c (get_secondary_mem,find_reloads_address,
139 find_reloads_address_1): Pass reference to MEM to find_reloads_address
140 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
141
142 2002-06-13 Jessica Han <jessica@cup.hp.com>
143
144 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
145 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
146 * doc/tm.texi: Document them.
147 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
148 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
149 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
150 (ASM_OUTPUT_FDESC): Likewise.
151
152 2002-06-13 Eric Christopher <echristo@redhat.com>
153
154 * diagnostic.c (output_format): Fix thinko.
155
156 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
157
158 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
159 (DWARF2_UNWIND_INFO): Define to 0.
160
161 * config/sh/sh.c (calc_live_regs): Don't use initial_value
162 optimization for PR_MEDIA_REG.
163
164 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
165
166 * cpphash.h (_cpp_lex_identifier_trad): Remove.
167 * cpplib.c (end_directive): Don't skip, always remove overlay
168 apart from #define.
169 (prepare_directive_trad): Handle NULL pfile->directive.
170 (_cpp_handle_directive): Always call prepare_directive_trad
171 if traditional.
172 * cppmain.c (check_multiline_token): Rename account_for_newlines,
173 generalize inputs.
174 (scan_translation_unit_trad): Use it.
175 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
176 output, get escaped newline in comment close correct.
177 (check_output_buffer, skip_whitespace): Update.
178 (_cpp_lex_identifier_trad): Remove.
179 (scan_out_logical_line): Handle -C and comments in directives
180 properly.
181
182 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
183
184 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
185 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
186 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
187 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
188 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
189 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
190 (SELECT_SH5_COMPACT_NOFPU): Likewise.
191 (TARGET_SWITCHES): Use them.
192 (TARGET_CPU_DEFAULT): Define if not already defined.
193 (TARGET_DEFAULT): Use it.
194 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
195 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
196 * config/sh/t-monolib: New file.
197
198 2002-06-13 Roger Sayle <roger@eyesopen.com>
199
200 * toplev.c (rest_of_compilation): Simplify (and correct) the
201 logic of the first delete-null-pointer-checks pass.
202
203 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
204
205 * i386.c (ix86_expand_movstr): Fix pasto.
206
207 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
208
209 * reload.c (find_valid_class): Fix thinko in my previous patch.
210
211 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
212
213 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
214 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
215 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
216 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
217
218 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
219
220 * tree-inline.c (expand_call_inline): Don' mess with _DECL
221 fields.
222
223 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
224
225 * diagnostic.c (output_format): Recognize "%H" as a format
226 specifier for a location_t.
227 (text_specifies_location): New function.
228 (diagnostic_set_info): Use it.
229
230 2002-06-13 Jeffrey Law <law@redhat.com>
231
232 * emit-rtl.c (static_regno_reg_rtx): Define.
233 (init_emit_once): Initialize static_regno_reg_rtx.
234 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
235 of building new hard reg objects once per function.
236 (gen_rtx_REG): Try to share hard regs.
237 * regclass.c (init_fake_stack_mems): New function broken out from
238 init_regs.
239 * rtl.h (init_fake_stack_mems): Declare.
240 * toplev.c (lang_independent_init): Call init_regs before
241 init_emit_once. Call init_fake_stack_mems after init_emit_once.
242
243 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
244
245 * alias.c (argument_registers): Remove.
246 (init_alias_once): Initialize static_reg_base_value here. Remove
247 initialization of argument_registers.
248 (init_alias_once_per_function): Remove.
249 (init_alias_analysis): Copy all the entries from static_reg_base_value
250 into new_reg_base_value all at once.
251 * rtl.h (init_alias_once_per_function): Remove declaration.
252 * function.c (prepare_function_start): Do not call
253 init_alias_once_per_function.
254
255 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
256 starting a sequence and emitting an INSN.
257
258 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
259
260 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
261
262 2002-06-13 David S. Miller <davem@redhat.com>
263
264 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
265
266 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
267
268 * cpplib.c (end_directive): Handle line skipping. Only remove
269 the rest of the line if the directive was valid.
270 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
271 expanding a traditional macro.
272 * cpptrad.c (recursive_macro): New.
273 (read_logical_line_trad): Handle skipping.
274 (scan_out_logical_line): Continue after a successful directive.
275 Don't expand macros whilst skipping, or if recursing.
276 (_cpp_create_trad_definition): scan_out_logical_line now sets
277 the output current position.
278
279 2002-06-12 Eric Christopher <echristo@redhat.com>
280
281 From Chris Demetriou <cgd@broadcom.com>
282 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
283 comment.
284 (ISA_HAS_MADD_MSUB): Ditto.
285 (ISA_HAS_NMADD_NMSUB): Ditto.
286
287 2002-06-12 Eric Christopher <echristo@redhat.com>
288
289 * config.gcc: Consolidate little endian handling and
290 little/big endian targets.
291 * config/mips/elfl.h: Remove file.
292 * config/mips/elfl64.h: Ditto.
293 * config/mips/ecoffl.h: Ditto.
294 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
295
296 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
297
298 * gengtype.h (xvasprintf): New prototype.
299 (xasprintf): New prototype.
300 (struct outf): New.
301 (get_output_file): Return an outf_p.
302 (header_file): Is now an outf_p.
303 (base_files): Now are outf_p.
304 (oprintf): New.
305 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
306 rather than stdio operations. Use xasprintf in a few places,
307 when appropriate.
308 (xvasprintf): New.
309 (xasprintf): New.
310 (struct filemap): Delete.
311 (files): Delete.
312 (output_files): New.
313 (oprintf): New.
314 (create_file): Create an outf_p. Add parameter to indicate output
315 file name, change all callers.
316 (open_base_files): Create gtype-desc.c here.
317 (get_output_file_with_visibility): Rewrite.
318 (get_output_file_name): Just look at 'name' field in struct outf.
319 (close_output_files): Rewrite.
320
321 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
322
323 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
324 (MASK_G_FLOAT): Define.
325 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
326 (TARGET_SWITCHES): Likewise.
327 (TARGET_DEFAULT): Likewise.
328
329 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
330
331 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
332 * config/mips/mips.c (mips_output_filename): Don't print a
333 ".file" directive if we are using DWARF-2.
334 (mips_output_function_prologue): Do not emit source file
335 name for TARGET_GAS.
336
337 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
338
339 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
340 decide whether emit the short opcode.
341 * i386.h (x86_shift1): Declare.
342 (TARGET_SHIFT1): New macro.
343 * i386.c (x86_shift1): New global variable.
344
345 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
346 unconditionally; make loop to rebuild CFG; kill unnecesary
347 find_basic_block calls; kill compute_bb_for_insn call.
348 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
349 * haifa-sched.c (sched_init): Likewise.
350 * ssa-ccp.c (ssa_const_prop): Likewise.
351 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
352
353 2002-06-11 David S. Miller <davem@redhat.com>
354
355 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
356 active_insn_p.
357
358 2002-06-11 Richard Henderson <rth@redhat.com>
359
360 * c-common.c (builtin_define_type_max): New.
361 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
362 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
363
364 From Joseph S. Myers:
365 * glimits.h: Rewrite to expect the double underscore definitions
366 from the compiler.
367
368 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
369 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
370 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
371 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
372 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
373 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
374 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
375 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
376
377 2002-06-11 Richard Henderson <rth@redhat.com>
378
379 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
380 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
381 (code_for_builtns): Update.
382 (alpha_init_builtins): Add __builtin_thread_pointer and
383 __builtin_set_thread_pointer.
384 (alpha_expand_builtin): Handle void builtins.
385 * doc/extend.texi (Alpha Built-in Functions): Update.
386
387 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
388
389 PR target/6997
390 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
391
392 2002-06-11 Zack Weinberg <zack@codesourcery.com>
393
394 * config.gcc: Make the name of the extra-modes file adjustable
395 by target stanzas.
396 (s390x, strongarm, xscale stanzas): Use this facility.
397 * configure.in: Update to match.
398 * configure: Regenerate.
399
400 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
401
402 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
403 max/mins as unsigned GE compares.
404
405 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
406
407 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
408 * config/vax/bsd.h: New file.
409 * config/vax/netbsd.h: Add missing notice.
410 (CPP_PREDEFINES): Remove.
411 (TARGET_OS_CPP_BUILTINS): Define.
412 (CPP_SPEC): Use NETBSD_CPP_SPEC.
413 * config/vax/openbsd.h: Update copyright years.
414 (CPP_PREDEFINES): Remove.
415 (TARGET_OS_CPP_BUILTINS): Define.
416 * config/vax/ultrix.h: Likewise.
417 * config/vax/vaxv.h: Likewise.
418 * config/vax/vms.h: Likewise.
419 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
420 (CPP_PREDEFINES, CPP_SPEC): Remove.
421
422 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
423
424 * i386.md (addqi_1_slp, subqi_1_slp
425 (andqi_ext0, testqi_ext0): Remove unnecesary check.
426 (addhi*, addqi*): Simplify "dec" condition.
427 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
428 (and, or, xor to QImode splitters): New.
429 (iorqi_ext*): New.
430 (xorqi_ext_0): New.
431 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
432 (andqi_ext_1_rex64): New.
433 (ashrqi*_slp): New.
434 (ashlqi*_slp): New.
435 (lshlqi*_slp): New.
436 (rotrqi3*_slp): New.
437 (rotlqi3*_slp): New.
438
439 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
440
441 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
442 softfloat.h.
443 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
444 (CPP_ENDIAN_LITTLE_SPEC): Delete.
445 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
446 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
447 __LONG_DOUBLE_128__ setting, _CALL_* setting.
448 (CPP_DEFAULT_SPEC): Delete.
449 (CPP_FLOAT_DEFAULT_SPEC): Delete.
450 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
451 (CPP_SYSV_DEFAULT_SPEC): Delete.
452 (CPP_ENDIAN_BIG_SPEC): Delete.
453 (CPP_ENDIAN_LITTLE_SPEC): Delete.
454 (CPP_ENDIAN_SPEC): Delete.
455 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
456 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
457 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
458 cpp_longdouble_default.
459 * config/rs6000/softfloat.h: Delete.
460 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
461 (EXTRA_SPECS): Delete cpp_cpu.
462 (TARGET_CPU_CPP_BUILTINS): New.
463 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
464 prototype.
465 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
466 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
467 (CPP_DEFAULT_SPEC): Delete.
468 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
469 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
470 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
471 (CPP_DEFAULT_SPEC): Delete.
472 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
473 (CPLUSPLUS_CPP_SPEC): Likewise.
474 (CPP_CPU_SPEC): Delete.
475 (CPP_DEFAULT_SPEC): Delete.
476 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
477 (CPLUSPLUS_CPP_SPEC): Likewise.
478 (CPP_CPU_SPEC): Delete.
479 (CPP_DEFAULT_SPEC): Delete.
480 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
481 (CPP_DEFAULT_SPEC): Delete.
482 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
483 (CPP_DEFAULT_SPEC): Delete.
484
485 * doc/gty.texi: Small updates.
486
487 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
488
489 * objc/objc-act.c (warn_with_ivar): Adjust calls to
490 diagnostic_count_error.
491 (warn_with_method): Likewise.
492
493 * diagnostic.h (warnings_are_errors_message): New field of
494 diagnostic_context.
495 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
496 match semantics.
497 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
498 (diagnostic_count_diagnostic): Make aware of other kinds of
499 diagnostics.
500 (diagnostic_initialize): Initialize warnings_are_errors_message field.
501
502 2002-06-11 Tom Tromey <tromey@redhat.com>
503
504 For PR java/6520:
505 * fold-const.c (fold_convert): Don't modify existing tree's type.
506
507 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
508
509 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
510
511 2002-06-11 Richard Henderson <rth@redhat.com>
512
513 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
514
515 2002-06-11 Richard Henderson <rth@redhat.com>
516
517 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
518 DWARF2_UNWIND_INFO is false.
519
520 2002-06-11 Bob Wilson <bob.wilson@acm.org>
521
522 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
523
524 * config/s390/s390.c (emit_prologue): gen_store_multiple
525 returns an insn now, not a pattern.
526
527 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
528
529 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
530 $(TEXI2DVI) -o.
531
532 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
533
534 * i386.c (x86_promote_QImode): Set for Athlon
535 (x86_fast_prefix): New global variable.
536 (x86_arch_always_fancy_math_387): Fix formating.
537 * i386.h (x86_fast_prefix): Declare
538 (TARGET_FAST_PREFIX): define.
539 * i386.md (and to strict_low_part, HI to SI
540 promoting splitter): Use new macro.
541
542 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
543
544 2002-06-11 Zack Weinberg <zack@codesourcery.com>
545
546 * Makefile.in (distclean): Delete junk left in testsuite
547 directory, too.
548
549 2002-06-11 Jeffrey Law <law@redhat.com>
550
551 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
552 last insn created by the splitter.
553
554 * caller-save.c (init_caller_save): Move creation of SAVEINSN
555 and RESTINSN into into the scope of the sequence.
556
557 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
558 RETURN insns.
559
560 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
561
562 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
563 not the pattern. So extract the pattern from the insn.
564
565 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
566
567 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
568
569 * config/s390/s390.md (movsi): Only use floating point
570 register alternatives when operands are already fprs.
571 (movdi_31, movdi_64): Likewise.
572
573 2002-06-11 David S. Miller <davem@redhat.com>
574
575 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
576 Only run RTX equality checks on INSN_P rtl.
577
578 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
579
580 * config/s390/s390.md (reload_base, ltorg): Remove.
581 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
582 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
583 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
584 s390_asm_output_pool_prologue): Likewise.
585 * s390.h (s390_pool_start_insn): Likewise.
586
587 * s390.c (s390_output_symbolic_const): Remove support for
588 old-style pool chunks.
589 (s390_function_epilogue): Likewise.
590 (s390_output_constant_pool): Likewise. Also, fix incorrect
591 alignment for 64-bit literal pools.
592 (print_operand_address): Remove 'y' and 'Y' format flags.
593 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
594 old-style pool chunks.
595 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
596 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
597 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
598
599 * s390.c (consttable_operand): New function.
600 * s390-protos.h (consttable_operand): Declare it.
601 * s390.h (PREDICATE_CODES): Add consttable_operand.
602 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
603 consttable_sf, consttable_df, pool_start_31, pool_end_31,
604 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
605 * s390.c (struct constant, struct constant_pool): New data types.
606 (constant_modes, gen_consttable): New variables.
607 (s390_start_pool, s390_end_pool, s390_add_pool,
608 s390_dump_pool, s390_free_pool): New functions.
609 (s390_chunkify_pool): Completely reimplement literal pool
610 overflow handling.
611
612 * s390.c (s390_pool_overflow): New variable.
613 * s390.h (s390_pool_overflow): Declare it.
614 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
615 jumps in literal pool overflow situations.
616
617 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
618 (s390_frame_info): Account for possible use of RETURN_REGNUM
619 by new literal pool overflow code.
620 (s390_emit_prologue): Likewise.
621
622 2002-06-05 David S. Miller <davem@redhat.com>
623
624 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
625 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
626 emit_insns_before_scope, emit_insns_after,
627 emit_insns_after_scope): Delete declaration.
628 * ada/misc.c (insert_code_for): Use emit_insn* instead of
629 emit_insns_foo.
630 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
631 (alpha_set_memflags): Fix comment.
632 (set_frame_related_p): Use get_insns instead of gen_sequence.
633 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
634 emitting no insns.
635 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
636 gen_sequence.
637 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
638 * config/fr30/fr30.c (fr30_move_double): Likewise.
639 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
640 Likewise.
641 * config/ia64/ia64.c (spill_restore_mem): Likewise.
642 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
643 no insns.
644 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
645 instead of gen_sequence.
646 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
647 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
648 * config/sh/sh.c (sh_need_epilogue): Likewise.
649 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
650 attributes.
651 (setjmp pattern and split): Use them to avoid splitter which emits
652 no RTL.
653 * genattrtab.c (main): Emit include of function.h
654 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
655 get_insns instead of gen_sequence.
656 * config/cris/cris.c (cris_split_movdx): Likewise.
657 * emit-rtl.c (emit_insns*): Kill.
658 (try_split): Expect insn list instead of SEQUENCE.
659 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
660 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
661 Make them abort if a SEQUENCE is given and RTL checking is
662 enabled.
663 (emit_*_scope): Don't forget to set scope on final insn.
664 (gen_sequence): Move from here...
665 * ssa.c (gen_sequence): To here as private function.
666 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
667 comments.
668 (expand_builtin_return, expand_builtin_mathfn): Likewise.
669 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
670 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
671 (expand_builtin_expect_jump): Use get_insns and fix comments.
672 * calls.c (try_to_integrate): Use emit_insn_foo.
673 (expand_call, emit_library_call_value_1): Likewise.
674 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
675 (emit_move_insn_1): Use get_insns instead of gen_sequence.
676 (expand_expr): Use emit_insn_foo.
677 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
678 * except.c (build_post_landing_pads): Likewise.
679 * flow.c (attempt_auto_inc): Likewise.
680 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
681 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
682 * function.c (fixup_var_refs_insn): Use get_insns instead of
683 gen_sequence.
684 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
685 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
686 (fixup_stack_1, purge_addressof_1, expand_main_function,
687 get_arg_pointer_save_area): Likewise.
688 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
689 expand_function_end): Use emit_insn_foo.
690 (record_insns, keep_stack_depressed): Work with insn list instead
691 of SEQUENCE, fix comments.
692 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
693 noce_try_store_flag_constants, noce_try_store_flag_inc,
694 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
695 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
696 (noce_process_if_block): Use get_insns instead of gen_sequence.
697 * optabs.c (add_equal_note): Work with insn list, fix comments.
698 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
699 (expand_unop, expand_complex_abs, expand_unop_insn,
700 expand_no_conflict_block): Likewise.
701 (gen_move_insn): Use get_insns instead of gen_sequence.
702 (gen_cond_trap): Likewise.
703 * integrate.c (copy_rtx_and_substitute): Likewise.
704 (emit_initial_value_sets): Use emit_insn_foo.
705 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
706 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
707 now that RTL generators give insn lists.
708 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
709 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
710 instead of gen_sequence.
711 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
712 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
713 instead of gen_sequence.
714 * loop.c (move_movables, emit_prefetch_instructions,
715 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
716 Likewise.
717 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
718 (product_cheap_p): Likewise, and add commentary about RTL wastage
719 here.
720 * lcm.c (optimize_mode_switching): Use get_insns instead of
721 gen_sequence.
722 * profile.c (gen_edge_profiler): Likewise.
723 * regmove.c (copy_src_to_dest): Likewise.
724 * reg-stack.c (compensate_edge): Likewise and fix comment.
725 * gcse.c (process_insert_insn): Likewise.
726 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
727 * jump.c (delete_prior_computation): Update comment.
728 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
729 of gen_sequence, update comments to match.
730 * recog.c (peephole2_optimize): Work with insn lists instead of
731 SEQUENCE rtl.
732 * sched-vis.c (print_pattern): Abort on SEQUENCE.
733 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
734 Use get_insns instead of gen_sequence.
735 (copy_loop_body): Likewise and don't emit dummy NOTE.
736 * genrecog.c: Don't mention SEQUENCE rtl in comments.
737 * combine.c (try_combine): Expect insn lists from split generator.
738 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
739 hand.
740
741 2002-06-11 Roger Sayle <roger@eyesopen.com>
742 Andreas Jaeger <aj@suse.de>
743
744 * cfgbuild.c: Update copyright years.
745
746 2002-06-11 Andreas Schwab <schwab@suse.de>
747
748 * config/m68k/m68k.h (PREDICATE_CODES): Define.
749
750 2002-06-11 Eric Christopher <echristo@redhat.com>
751
752 * doc/tm.texi (Run-time Target): Add comment about flag_iso
753 and strict ANSI.
754 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
755 * config/mips/ecoffl.h: Ditto.
756 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
757 (CPP_PREDEFINES): Ditto.
758 * config/mips/elfl64.h: Ditto.
759 * config/mips/elfl.h: Ditto.
760 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
761 out until irix header consolidation.
762 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
763 with SUBTARGET_OS_CPP_BUILTINS.
764 * config/mips/iris6.h: Ditto.
765 (CPLUSPLUS_CPP_SPEC): Remove.
766 * config/mips/linux.h: Ditto.
767 * config/mips/netbsd.h: Ditto.
768 * config/mips/openbsd.h: Ditto.
769 * config/mips/rtems.h: Ditto.
770 * config/mips/rtems64.h: Ditto.
771 * config/mips/sni-svr4.h: Ditto.
772 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
773 ISA_MIPS32, ISA_MIPS64): New defines.
774 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
775 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
776 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
777 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
778 (TARGET_CPU_CPP_BUILTINS): Define.
779 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
780 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
781 (movdicc): Remove check for ISA_MIPS32.
782 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
783 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
784 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
785 sunge_sf, sunle_df, sunle_sf): New patterns.
786
787 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
788
789 * Makefile.in: Update cppmain.o.
790 * cpphash.h (struct cpp_reader): Move some members to a
791 nested structure.
792 (trad_line): Rename saved_line.
793 (_cpp_read_logical_line_trad): Update.
794 (_cpp_remove_overlay): New.
795 * cppinit.c (cpp_create_reader): No need to set saved_line.
796 (cpp_destroy): Update.
797 (cpp_read_main_file): Only overlay if compiling.
798 * cpplex.c (continue_after_nul): Return false if in directive.
799 * cpplib.c (EXPAND): New.
800 (directive_table, SEEN_EOL): Update.
801 (end_directive): Remove overlay if traditional; don't skip
802 line in traditional #define.
803 (prepare_directive_trad): New.
804 (_cpp_handle_directive, run_directive): Update for traditional
805 directives.
806 (lex_macro_node): Simplify, don't use lex_identifier_trad.
807 * cpplib.h (struct options): Add preprocess_only.
808 * cppmain.c: Don't include intl.h.
809 (cpp_preprocess_file): Set options->preprocess_only.
810 (scan_translation_unit_trad): Fix, and print line numbers.
811 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
812 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
813 save_replacement_text, _cpp_create_trad_definition): Update for
814 variable renaming.
815 (_cpp_overlay_buffer): Save line number.
816 (_cpp_remove_overlay): Rename from restore_buff, restore line.
817 (_cpp_read_logical_line_trad): Don't handle overlays here.
818 (scan_out_logical_line): Process directives.
819
820 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
821
822 * gthr-win32.h: Wrap functions in extern "C".
823 (__gthread_key_t): Typedef as unsigned long,
824 not win32 DWORD.
825 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
826 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
827 (__gthr_win32_once, __gthr_win32_key_create,
828 __gthr_win32_key_delete, __gthr_win32_getspecific,
829 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
830 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
831 __gthr_win32_mutex_unlock): Declare.
832 (__gthread_once,__gthread_key_create,
833 __gthread_key_delete, __gthread_getspecific,
834 __gthread_setspecific, __gthread_mutex_init_function,
835 __gthread_mutex_lock,__gthread_mutex_trylock,
836 __gthread_mutex_unlock): Call corresponding
837 __gthr_win32_* extern implementations if #defined
838 __GTHREAD_HIDE_WIN32API.
839 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
840 $(srcdir)/config/i386/gthr-win32.c
841 * config/i386/gthr-win32.c: New implementation file.
842 (__gthr_win32_once, __gthr_win32_key_create,
843 __gthr_win32_key_delete, __gthr_win32_getspecific,
844 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
845 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
846 __gthr_win32_mutex_unlock): New functions, based on
847 static inlines in gthr-win32.h.
848
849 2002-06-10 Bob Wilson <bob.wilson@acm.org>
850
851 * config/xtensa/xtensa.c (override_options): Don't warn about
852 using -fpic or -fPIC when PIC is enabled by default.
853
854 2002-06-10 Roger Sayle <roger@eyesopen.com>
855
856 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
857
858 2002-06-10 Zack Weinberg <zack@codesourcery.com>
859
860 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
861 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
862 exists, substitute its pathname as @extra_modes_file@, define
863 EXTRA_MODES_FILE to be an appropriate string to #include it
864 with, and define EXTRA_CC_MODES to 1.
865
866 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
867 it's defined. Get rid of redundancy in calling sequence for
868 CC; don't use it to define CCmode, to avoid a warning.
869 * libgcc2.c: Include symcat.h for the sake of machmode.def.
870
871 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
872 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
873 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
874 New files.
875 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
876 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
877
878 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
879 defining extra CC modes.
880
881 2002-06-10 Roger Sayle <roger@eyesopen.com>
882 Andreas Jaeger <aj@suse.de>
883
884 * cfgrtl.c (create_basic_block_structure): Remove index argument
885 and use last_basic_block++ instead. (create_basic_block): Update.
886 * cfgbuild.c (find_basic_blocks_1): Likewise.
887
888 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
889 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
890 * sched-ebb.c (schedule_ebbs): Likewise.
891 * sched-rgn.c (schedule_insns): Likewise.
892 * ssa-ccp.c (ssa_const_prop): Likewise.
893 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
894 * toplev.c (rest_of_compilation): Likewise.
895 * config/ia64/ia64.c (ia64_reorg): Likewise.
896
897 2002-06-10 Roger Sayle <roger@eyesopen.com>
898
899 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
900 of matching registers.
901
902 2002-06-10 Roger Sayle <roger@eyesopen.com>
903
904 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
905 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
906
907 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
908
909 * config/mmix/mmix.h: Improve comments.
910 (CPP_SPEC, CPP_PREDEFINES): Don't define.
911 (TARGET_CPU_CPP_BUILTINS): Define.
912 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
913 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
914 unused predicate.
915 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
916 compiler warning.
917 (mmix_constant_address_p): Remove another
918 redundant test before case.
919 (mmix_canonicalize_comparison): Remove unused function.
920 (mmix_print_operand_address): Don't test and adjust for operand in
921 non-canonical format.
922 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
923 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
924
925 2002-06-10 Zack Weinberg <zack@codesourcery.com>
926
927 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
928 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
929 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
930 (gen_compare): Use CCmode unconditionally.
931
932 2002-06-10 Jakub Jelinek <jakub@redhat.com>
933
934 PR optimization/6759
935 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
936 the REQ_EQUAL note.
937
938 2002-06-10 Jakub Jelinek <jakub@redhat.com>
939
940 PR c/6660
941 * c-decl.c (grokfield): Allow user defined types if they declare
942 structs or unions for unnamed fields.
943
944 2002-06-10 Jakub Jelinek <jakub@redhat.com>
945
946 PR c/6809
947 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
948
949 2002-06-10 Jakub Jelinek <jakub@redhat.com>
950
951 PR optimization/6842
952 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
953 operand subreg cannot be simplified.
954
955 2002-06-10 Jakub Jelinek <jakub@redhat.com>
956
957 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
958 (compare_constant): Likewise.
959 (output_addressed_constants): Likewise.
960
961 2002-06-10 Jakub Jelinek <jakub@redhat.com>
962
963 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
964 merge bb with itself.
965
966 2002-06-10 Richard Henderson <rth@redhat.com>
967
968 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
969 (builtin_zapnot): Likewise.
970
971 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
972 reservation.
973
974 2002-06-10 Eric Christopher <echristo@redhat.com>
975
976 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
977 prototype and function.
978 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
979 (call_insn_operand): Remove half pic references.
980 (legitimate_address_p): Ditto.
981 * config/i386/i386.h: Remove half pic defines.
982
983 2002-06-10 Eric Christopher <echristo@redhat.com>
984
985 * doc/extend.texi (Return Address): Add note explaining the side-
986 effects of inlining on __builtin_return_address.
987
988 2002-06-10 Tom Tromey <tromey@redhat.com>
989
990 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
991 (c-common.o): Depend on langhooks.h.
992
993 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
994
995 * cpphash.h (_cpp_read_logical_line_trad,
996 _cpp_expansions_different_trad): Update prototypes.
997 * cpplex.c (continue_after_nul): New.
998 * cppmain.c: Include cpphash.h.
999 (scan_translation_unit_trad): New.
1000 (cpp_preprocess_file): Call it.
1001 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1002 overlay.
1003 (_cpp_expansions_different_trad): Update prototype.
1004
1005 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1006
1007 Fix cfi generation for SH[1-4]:
1008
1009 * sh.c (frame_insn): New function.
1010 (output_stack_adjust): Add parameter emit_fn. All callers changed.
1011 (push): Now returns rtx. Use frame_insn.
1012 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1013 of a DF register.
1014 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1015
1016 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1017
1018 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1019 and gtype-desc.c.
1020 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1021 (distclean): ... not here. But do delete all testsuite/*.log,
1022 testsuite/*.sum files here. Delete mkheaders. Delete
1023 po/*.gmo and the testsuite directory in a split tree build.
1024
1025 2002-06-10 Jeffrey Law <law@redhat.com>
1026
1027 * alias.c (static_reg_base_value): New to hold RTL for
1028 items allocated once per function for the aliasing code.
1029 (init_alias_once_per_function): Initialize static_reg_base_value.
1030 (init_alias_analysis): Avoid throw-away allocations of RTL by
1031 using pre-computed values in static_reg_base_value.
1032 * function.c (prepare_function_start): Call
1033 init_alias_once_per_function appropriately.
1034 * rtl.h (init_alias_once_per_function): Declare.
1035 * caller-save (init_caller_save): Restructure slightly to
1036 avoid lots of silly RTL generation.
1037 * expr.c (init_expr_once): Likewise.
1038 * reload1.c (reload_cse_regs_1): Allocate throw-away register
1039 RTL object here. Pass it into children.
1040 (reload_cse_simplify_operands): Use passed-in register RTL
1041 object.
1042 (reload_cse_simplify): Pass through throw-away register
1043 RTL object.
1044
1045 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
1046
1047 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1048
1049 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1050
1051 * gcc.c (process_command): Avoid assignment to read-only location.
1052 Fix sizeof calculation.
1053
1054 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1055
1056 * cpphash.h (struct cpp_macro): Put comments on their own lines.
1057 (_cpp_expansions_different_trad): New.
1058 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1059 * cpptrad.c (canonicalize_text): New.
1060 (scan_out_logical_line): Handle no arguments correctly.
1061 (save_replacement_text): Commit memory when finished.
1062 (_cpp_expansions_different_trad): New.
1063
1064 2002-06-10 Tim Josling <tej@melbpc.org.au>
1065
1066 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
1067 TREELANG and COBOL.
1068 (lang_names): Add treelang and cobol.
1069 (get_file_basename): Add code to support treelang and cobol as
1070 4th and 5th users of c-common.c.
1071
1072 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
1073
1074 * Makefile.in (install-driver): Install driver as
1075 $(target_alias)-gcc-$(version).
1076 * gcc.c (spec_version): Make const.
1077 (process_command): Handle -V and -b by using exec.
1078 * doc/invoke.texi (Target Options): Restore -V option,
1079 update docs for -b option.
1080
1081 2002-06-10 Tim Josling <tej@melbpc.org.au>
1082
1083 * configure.in (remaining_languages_check):
1084 Added check that all languages specified were found.
1085 Exit if not found. Previous behaviour was silent failure.
1086 * configure: Regenerated.
1087
1088 2002-06-10 Tim Josling <tej@melbpc.org.au>
1089
1090 First steps to making treelang documentation compliant, based on
1091 instructions in sourcebuild.texi. Also add to gcc.c list of
1092 default languages.
1093
1094 * doc/contrib.texi: Add self as contributor of treelang.
1095
1096 * doc/frontends.texi: Add mention of treelang.
1097
1098 * doc/invoke.texi (Overall Options): Add mention of treelang.
1099
1100 * doc/standards.texi: Add mention of treelang.
1101
1102 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
1103
1104 * config/cris/cris.c: Include ggc.h
1105
1106 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
1107
1108 * cpphash.h (_cpp_push_text_context): Update.
1109 (_cpp_arguments_ok): New.
1110 * cppmacro.c (_cpp_arguments_ok): New, split out from...
1111 (collect_args): ...here.
1112 (_cpp_push_text_context): Change inputs.
1113 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
1114 replace_args_and_push): New.
1115 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
1116 Don't use IS macros directly.
1117 (scan_out_logical_line): Handle function-like macro argument
1118 collection.
1119 (push_replacement_text): Update.
1120 (replacement_length): Remove.
1121 (_cpp_create_trad_definition): Don't skip whitespace before
1122 checking for '('.
1123
1124 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1125
1126 * config/avr/avr.c (avr_mcu_types): Update for new devices.
1127 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
1128 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
1129 * config/avr/avr.md ("type" and "length" attributes): New type
1130 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
1131 output a single "call" or "rcall" insn depending on device size.
1132 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
1133
1134 2002-06-09 David Edelsohn <edelsohn@gnu.org>
1135
1136 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
1137 synonym for 630. Add power4. Remove embedded processors. Use -m604
1138 assembler option.
1139 (CPP_CPU_SPEC): Add power3 and power4.
1140 (PROCESSOR_DEFAULT): Change to 604e.
1141 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
1142 (CPP_CPU_SPEC): Similar additions.
1143 (enum process_type): Add POWER4.
1144 (RTX_COSTS): Add POWER4.
1145 (CPP_CPU_SPEC): Similar additions.
1146 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1147 (PROCESSOR_DEFAULT64): Define.
1148 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
1149 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
1150 branch adjustment.
1151 (rs6000_issue_rate): Add Power4.
1152 * config/rs6000/rs6000.md (cpu attr): Add power4.
1153 (iu compare): Remove 604, 604e, 620, 630.
1154 Add basic Power4 scheduling information.
1155 (mfcr/mtcrf): Change type attribute to cr_logical.
1156
1157 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1158
1159 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
1160 ATTRIBUTE_PRINTF_2.
1161 * gengtype-lex.l: Fix format specifier warning.
1162
1163 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
1164 not isspace.
1165 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
1166 lieu of isspace/IDchar.
1167 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
1168 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
1169 ISSPACE.
1170
1171 2002-06-08 Zack Weinberg <zack@codesourcery.com>
1172
1173 * Makefile.in (LIBCPP_OBJS): Take out version.o.
1174 * cpphash.h (cpp_reader): Take out print_version member.
1175 * cppinit.c: (cpp_handle_option): Don't do anything with
1176 -version. Just set help_only for --version, --target-help.
1177 Just set verbose option for -v.
1178 (cpp_post_options): Don't print a version string.
1179
1180 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1181
1182 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1183 (avr_section_type_flags): New, handle .noinit* sections.
1184
1185 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1186
1187 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1188 and include netbsd_entry_point.
1189 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1190 (NETBSD_ENTRY_POINT): Define.
1191
1192 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1193
1194 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
1195 if not already defined.
1196 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1197
1198 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1199
1200 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1201 in a noreturn function.
1202 (avr_output_function_prologue, avr_output_function_epilogue):
1203 Correct function size calculation. Do not crash on empty function.
1204 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1205
1206 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1207
1208 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1209 netbsd_link_spec and netbsd_entry_point.
1210 (LINK_SPEC): Use %(netbsd_link_spec).
1211 (NETBSD_ENTRY_POINT): Define.
1212
1213 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1214
1215 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1216 linker emulation.
1217 (LINK_ARCH64_SPEC): Likewise.
1218 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1219 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1220
1221 2002-06-08 Marc Espie <espie@openbsd.org>
1222
1223 * lists.c (free_list): Fix typo in comment.
1224
1225 2002-06-08 Andreas Jaeger <aj@suse.de>
1226
1227 * lcm.c (optimize_mode_switching): Add unused attribute for
1228 variable.
1229
1230 * sched-deps.c (sched_analyze): Remove unused variable.
1231
1232 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
1233
1234 * diagnostic.def: Don't capitalize diagnostict descriptors.
1235
1236 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1237
1238 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1239 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1240 (NETBSD_ENTRY_POINT): Define.
1241
1242 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1243
1244 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1245 NETBSD_LINK_SPEC_ELF.
1246 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1247 (NETBSD_ENTRY_POINT): Define.
1248 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1249 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1250 netbsd_entry_point.
1251 (NETBSD_ENTRY_POINT): Define.
1252
1253 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1254
1255 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1256 netbsd_link_spec and netbsd_entry_point.
1257 (LINK_SPEC): Use %(netbsd_link_spec).
1258 (NETBSD_ENTRY_POINT): Define.
1259
1260 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1261
1262 * config/netbsd-elf.h (LINK_SPEC): Rename to...
1263 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
1264 to specify program entry point.
1265
1266 2002-06-07 Jeff Law <law@redhat.com
1267
1268 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
1269 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
1270 than creating a new register.
1271 (distribute_notes): Likewise.
1272 * df.c (df_reg_use_gen): Likewise.
1273 (df_reg_clobber_gen): Likewise.
1274 (df_ref_record): Likewise.
1275 * expr.c (use_regs): Likewise.
1276 * flow.c (propagate_one_insn): Likewise.
1277 (mark_set_1): Likewise.
1278 (mark_used_reg): Likewise.
1279 * reload.c (emit_reload_insns): Likewise.
1280
1281 2002-06-07 Roger Sayle <roger@eyesopen.com>
1282
1283 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1284 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1285 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1286 comparison code comp can be reversed.
1287
1288 2002-06-07 Roger Sayle <roger@eyesopen.com>
1289
1290 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
1291 constants last in comparisons. Optimize (x+1.0)>0.0 into the
1292 equivalent x > -1.0 when -ffast-math.
1293
1294 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1295
1296 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1297 * config/mips/t-netbsd: New file.
1298
1299 2002-06-07 Zack Weinberg <zack@codesourcery.com>
1300
1301 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1302 options their own entries.
1303 (parse_option): Clarify comment.
1304 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1305 special case. Replace if/strcmp chain for -W options with
1306 use of new OPT_* entries for them.
1307 (cpp_handle_options): Update to match.
1308 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1309 * c-decl.c: Update call to cpp_handle_option.
1310
1311 2002-06-07 Akim Demaille <akim@epita.fr>
1312
1313 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1314 Whitespace changes.
1315
1316 2002-06-07 Jeffrey Law <law@redhat.com>
1317
1318 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1319 on empty lists.
1320
1321 2002-06-07 H.J. Lu (hjl@gnu.org)
1322
1323 * configure.in: Add --enable-__cxa_atexit.
1324 * configure: Regenerated.
1325 * config.in: Likewise.
1326
1327 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1328 not defined.
1329
1330 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
1331
1332 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1333
1334 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1335
1336 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1337
1338 2002-06-07 Jason Merrill <jason@redhat.com>
1339
1340 * cppexp.c (num_equality_op): Use a temporary variable to work
1341 around gcc 3.0.4 bug.
1342
1343 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
1344
1345 * diagnostic.c (diagnostic_build_prefix): Tidy.
1346
1347 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
1348
1349 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1350 scan_parameters, save_replacement_text, replacement_length): New.
1351 (scan_out_logical_line): Take a macro and save parameters if
1352 non-NULL.
1353 (_cpp_logical_line_trad): Update.
1354 (_cpp_create_trad_definition): Update to handle function-like
1355 macros.
1356 * cpplex.c (new_buff): Update.
1357 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1358 * cpphash.h: ...here.
1359 (CPP_ALIGN2, _cpp_save_parameter): New.
1360 * cppmacro.c (save_parameter): Rename, export.
1361 (parse_params): Update.
1362
1363 2002-06-07 Andreas Jaeger <aj@suse.de>
1364
1365 * config/mmix/mmix.c: Remove extra broken prototype for
1366 mmix_init_machine_status.
1367
1368 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
1369
1370 * gengtype.c: Add comments before all the routines.
1371
1372 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1373
1374 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1375 from and add t-sh64 to ${tmake_file}.
1376 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1377 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1378 * config/sh/t-netbsd-sh5-32: Remove.
1379 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1380 MULTILIB_ENDIAN.
1381 (MULTILIB_DIRNAMES): Define.
1382
1383 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
1384
1385 * i386.md (and promoting splitters): Disable QI to SImode promoting
1386 when doing so changes immediate to be 32bit.
1387
1388 * rtl.h (emit_*_scope): Declare.
1389 * emit-rtl.c (emit_*_scope): New global functions.
1390 (try_split): Copy scope.
1391 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1392 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1393 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1394 noce_process_if_block, find_cond_trap): Copy scopes.
1395 * recog.c (peephole2_optimize): likewise.
1396
1397 2002-06-06 Jeffrey Law <law@redhat.com>
1398
1399 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1400
1401 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1402
1403 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1404
1405 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1406
1407 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1408 ($(docdir)/gccinstall.info): New target.
1409 (info): Depend on it.
1410 (gccinstall.dvi): New target.
1411 (dvi): Depend on it.
1412 * doc/.cvsignore: Ignore new info files.
1413 * doc/install.texi (@setfilename): Reflect new info filename.
1414
1415 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
1416
1417 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1418 on an UNSPEC.
1419
1420 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
1421
1422 PR objc/6834
1423 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1424 c_common_get_alias_set.
1425 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1426
1427 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1428
1429 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1430 functions.
1431 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1432 * avr/avr.c (avr_output_function_epilogue): Use above to determine
1433 function size.
1434 * pa/pa.c (pa_output_function_prologue): Likewise.
1435
1436 2002-06-05 David S. Miller <davem@redhat.com>
1437
1438 * integrate.c (subst_constants): Handle 'B' RTL format.
1439
1440 2002-06-05 Eric Christopher <echristo@redhat.com>
1441
1442 * varasm.c (make_decl_rtl): Fix comment for removed
1443 halfpic.c.
1444
1445 2002-06-05 Eric Christopher <echristo@redhat.com>
1446
1447 * Makefile.in: Remove missed halfpic bits.
1448
1449 2002-06-05 Eric Christopher <echristo@redhat.com>
1450
1451 * toplev.c: Remove half-pic.
1452 * config/mips/mips.c: Ditto.
1453 * config/mips/mips.h: Ditto. Remove unused defines.
1454 * config/mips/openbsd.h: Update comment to reflect above.
1455 * config/mips/mips.md: Remove half-pic constraints.
1456 * halfpic.h: Delete.
1457 * halfpic.c: Ditto.
1458
1459 2002-06-05 Jeffrey Law <law@redhat.com>
1460
1461 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1462 rejects (mem (lo_sum (reg) (unspec))), but will allow
1463 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1464
1465 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1466
1467 * cpphash.h (_cpp_create_definition): Update prototype.
1468 (_cpp_push_text_context, _cpp_create_trad_definition): New.
1469 ( cpp_lex_identifier_trad): New.
1470 (_cpp_set_trad_context): New.
1471 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1472 * cpplib.c (SEEN_EOL): Update.
1473 (lex_macro_node): Update for -traditional.
1474 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1475 * cppmacro.c (_cpp_create_definition): Split into
1476 create_iso_definition() and _cpp_create_trad_definition().
1477 (warn_of_redefinition): Update prototype; handle traditional
1478 macros.
1479 (_cpp_push_text_context): New.
1480 * cpptrad.c (skip_whitespace, push_replacement_text): New.
1481 (lex_identifier): Call ht_lookup with correct start.
1482 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1483 _cpp_set_trad_context): New.
1484 (scan_out_logical_line): Update to handle changing contexts.
1485
1486 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
1487
1488 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
1489 (shl*-*-elf*): Add.
1490 * config/sh/t-be (MULTILIB_ENDIAN): Set.
1491 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1492 * t-sh (MULTILIB_ENDIAN): Set.
1493 (MULTILIB_OPTIONS): Use it.
1494 * t-sh64 (MULTILIB_OPTIONS): Likewise.
1495 (MULTILIB_DIRNAMES): Likewise.
1496
1497 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
1498
1499 * toplev.h (report_error_function): Remove.
1500
1501 * diagnostic.h (location_t): New datatype.
1502 (text_info): Likewise.
1503 (diagnostic_info): Likewise.
1504 (output_prefix): New macro.
1505 (diagnostic_last_function_changed): Likewise.
1506 (diagnostic_set_last_function): Likewise.
1507 (diagnostic_last_module_changed): Likewise.
1508 (diagnostic_set_last_module): Likewise.
1509 (report_diagnostic): Now macro.
1510 (diagnostic_set_info): Declare.
1511
1512 * diagnostic.c (report_problematic_module): Rename to
1513 diagnostic_repor_current_module.
1514 (set_diagnostic_context): Remove.
1515 (count_error): Rename to diagnostic_error_count.
1516 (error_function_changed): Remove.
1517 (record_last_error_function): Likewise.
1518 (error_module_changed): Likewise.
1519 (record_last_error_module): Likewise.
1520 (context_as_prefix): Rename to diagnostic_build_prefix.
1521 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1522 (diagnostic_set_info): New function.
1523
1524 * objc/objc-act.c: #include diagnostic.h
1525 (error_with_ivar): Adjust call to count_error.
1526 (warn_with_method): Likewise.
1527 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1528
1529 2002-06-05 Bob Wilson <bob.wilson@acm.org>
1530
1531 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1532 lang_hooks.types.make_type instead of make_node; set up
1533 __va_list_tag type decl.
1534 (xtensa_builtin_saveregs): Remove broken use of
1535 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1536 for saved registers; add varargs alias set.
1537
1538 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1539
1540 config:
1541 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1542 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1543 CPP_PREDEFINES and part of CPP_SPEC.
1544 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1545 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1546
1547 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
1548
1549 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1550
1551 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1552
1553 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1554
1555 2002-06-04 Zack Weinberg <zack@codesourcery.com>
1556
1557 * gengtype-yacc.y: Make sure all rules end with a semicolon.
1558
1559 2002-06-04 Bob Wilson <bob.wilson@acm.org>
1560
1561 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1562 typo in function prototype and include "ggc.h" header.
1563
1564 2002-06-04 Richard Henderson <rth@redhat.com>
1565
1566 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1567 (print_operand) ['U']: Likewise.
1568 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1569 (alpha_expand_unaligned_store_words): Likewise.
1570 (alpha_expand_builtin_vector_binop): Fix typo.
1571 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1572 umulh, and cix insns.
1573 (one_arg_builtins): Add cix builtins.
1574 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1575 (alpha_expand_builtin): Fix typo in arity.
1576 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1577 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1578 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1579 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1580 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1581 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1582 builtin_ctlz, builtin_ctpop): New.
1583 * doc/extend.texi (Alpha Built-in Functions): Update.
1584
1585 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
1586
1587 * gengtype.c (write_gc_root): Don't unnecessarily prevent
1588 global variable-length arrays being roots.
1589
1590 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1591 * configure.in (config_gtfiles): New variable.
1592 (all_gtfiles): Initialise from config_gtfiles.
1593 * configure: Regenerate.
1594
1595 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1596
1597 config/i386:
1598 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1599 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1600 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1601 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1602 win32.h (CPP_SPEC): Remove cpp_cpu.
1603 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1604 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1605
1606 2002-06-04 Janis Johnson <janis187@us.ibm.com>
1607
1608 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1609
1610 2002-06-04 Jeff Law <law@redhat.com.
1611 David Edelsohn <edelsohn@gnu.org>
1612 Michael Matz <matz@kde.org>
1613
1614 * sched-int.h (struct deps): New field libcall_block_tail_insn.
1615 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1616 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1617 is set, then mark the current insn as being part of a libcall
1618 scheduling group.
1619 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1620
1621 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1622 insns against the issue rate.
1623
1624 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
1625
1626 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1627 * final.c (final_scan_insn): Likewise.
1628 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1629 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1630 * haifa-sched.c (unlink_other_notes): Likeewise.
1631 (reemit_notes): Likewise.
1632 * print-rtl.c (print_rtx): Likewise.
1633 * sched-deps (sched-analyze): Likewise.
1634 * rtl.c (note_insn_name): Likewise.
1635 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1636 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1637 (RANGE_*): Kill.
1638
1639 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1640
1641 * varasm.c (mark_constants): Handle RTX format 'B'.
1642
1643 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1644
1645 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1646 (struct cpp_context): Add traditional fields.
1647 * cppmacro.c (paste_all_tokens, push_ptoken_context,
1648 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1649 * cpptrad.c (skip_comment, lex_identifier,
1650 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1651
1652 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
1653
1654 * gbl-ctors.h: Fix formatting.
1655 * gcc.c: Likewise.
1656 * gccspec.c: Likewise.
1657 * gcov.c: Likewise.
1658 * gcov-io.h: Likewise.
1659 * gcse.c: Likewise.
1660 * ggc-common.c: Likewise.
1661 * ggc.h: Likewise.
1662 * ggc-page.c: Likewise.
1663 * ggc-simple.c: Likewise.
1664 * global.c: Likewise.
1665 * graph.h: Likewise.
1666 * gthr-dce.h: Likewise.
1667 * gthr.h: Likewise.
1668 * gthr-posix.h: Likewise.
1669 * gthr-rtems.h: Likewise.
1670 * gthr-solaris.h: Likewise.
1671 * gthr-win32.h: Likewise.
1672
1673 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
1674
1675 Merge from pch-branch:
1676
1677 * gengtype.h (UNION_OR_STRUCT_P): New macro.
1678 * gengtype.c (write_gc_structure_fields): Use it.
1679 (write_gc_root): Use it here too.
1680
1681 * gengtype.c (write_gc_structure_fields): Assume that lengths
1682 of typenames fit into an 'int'; don't pass a size_t to "%d" in
1683 printf.
1684 (write_gc_marker_routine_for_structure): Likewise.
1685 (write_gc_types): Likewise.
1686 (write_gc_root): Likewise.
1687
1688 * varray.h (VARRAY_CLEAR): New.
1689 (varray_clear): Prototype.
1690 * varray.c (varray_clear): New.
1691 * cselib.c (reg_values_old): New.
1692 (used_regs_old): New.
1693 (cselib_init): Use cached varrays if available to avoid
1694 generating large amounts of garbage.
1695 (cselib_finish): Don't throw away old varrays.
1696
1697 * final.c (insn_addresses_): Move out of ifdef.
1698
1699 * varray.c (uses_ggc): Make more varray kinds GCable.
1700 * varray.h (union varray_data_tag): Let gengtype see
1701 fields 'generic' and 'te'.
1702 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1703 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1704 (reg_to_stack): Don't call VARRAY_FREE.
1705 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1706 (insn_addresses_): Use gengtype to mark.
1707 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1708 pointers; handle generic pointers in unused union fields.
1709 (get_output_file_with_visibility): Include cselib.h,
1710 insn-addr.h in gtype-desc.c.
1711 * function.c (prologue): Use gengtype to mark.
1712 (epilogue): Likewise.
1713 (sibcall_epilogue): Likewise.
1714 * dependence.c: Include gt-dependence.h, ggc.h.
1715 (struct def_use): Use gengtype to mark.
1716 (struct loop): Likewise.
1717 (struct induction): Likewise.
1718 (struct dependence): Likewise.
1719 (def_use_chain): Likewise.
1720 (dep_chain): Likewise.
1721 (loop_chain): Likewise.
1722 (induction_chain): Likewise.
1723 (init_dependence_analysis): Don't free anything, just clear pointers.
1724 (build_def_use): Use GGC to allocate def_use.
1725 (add_loop): Use GGC to allocate loop.
1726 (find_induction_variable): Use GGC to allocate induction.
1727 (check_node_dependence): Use GGC to allocate induction, dependence.
1728 (dump_node_dependence): Don't free varrays.
1729 (end_dependence_analysis): Likewise.
1730 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1731 (struct elt_loc_list): Likewise.
1732 (struct elt_list): Likewise.
1733 * cselib.c: Don't include obstack.h.
1734 (hash_table): Use gengtype to mark.
1735 (reg_values): Use gengtype to mark.
1736 (used_regs): Use gengtype to mark.
1737 (cselib_obstack): Delete.
1738 (cselib_startobj): Delete.
1739 (empty_vals): Mark as deletable.
1740 (empty_elt_lists): Mark as deletable.
1741 (empty_elt_loc_lists): Mark as deletable.
1742 (new_elt_list): Use GGC to allocate struct elt_list.
1743 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1744 (clear_table): Don't delete obstack; don't unnecessarily clear
1745 deletable variables.
1746 (new_cselib_val): Use GGC to allocate struct cselib_val.
1747 (cselib_init): Don't set up obstacks. Use GGC to allocate
1748 hash table.
1749 (cselib_finish): Just clear variables, don't free anything.
1750 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1751 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1752 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1753 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1754 (gt-reg-stack.h): New rule.
1755 (gt-dependence.h): New rule.
1756 (gtype-desc.o): Add cselib.h, insn-addr.h.
1757
1758 * varray.c: Use only necessary headers.
1759 (element_size): New.
1760 (uses_ggc): New.
1761 (varray_init): Take type, not size. Use GGC if appropriate.
1762 (varray_grow): Update for change to struct varray_head_tag.
1763 Use GGC if appropriate.
1764 * varray.h (struct const_equiv_data): Use gengtype.
1765 (enum varray_data_enum): New.
1766 (union varray_data_tag): Use gengtype.
1767 (struct varray_head_tag): Use gengtype. Replace size field with
1768 enum varray_data_enum.
1769 (varray_init): Update prototype.
1770 (VARRAY_SCHED_INIT): Delete.
1771 (VARRAY_*_INIT): Update for change to varray_init.
1772 (VARRAY_SCHED): Delete.
1773 (VARRAY_PUSH_SCHED): Delete.
1774 (VARRAY_TOP_SCHED): Delete.
1775 * tree.h: Update for change to length specifier.
1776 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1777 (clone_body): Likewise.
1778 * ssa.h (ssa_definition): Use gengtype to mark.
1779 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1780 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1781 * rtl.h (struct rtvec_def): Update for change to length specifier.
1782 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1783 (struct initial_value_struct): Update for change to length specifier.
1784 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1785 (ggc_add_tree_varray_root): Delete prototype.
1786 (ggc_mark_rtx_varray): Delete prototype.
1787 (ggc_mark_tree_varray): Delete prototype.
1788 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1789 (ggc_add_tree_varray_root): Delete.
1790 (ggc_mark_rtx_varray): Delete.
1791 (ggc_mark_tree_varray): Delete.
1792 (ggc_mark_rtx_varray_ptr): Delete.
1793 (ggc_mark_tree_varray_ptr): Delete.
1794 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1795 (create_varray): Delete prototype.
1796 * gengtype.c (varrays): Delete.
1797 (create_varray): Delete.
1798 (adjust_field_type): Detect array of string pointers.
1799 (process_gc_options): Remove code to handle varray_type option.
1800 (set_gc_used_type): Remove TYPE_VARRAY case.
1801 (output_escaped_param): New.
1802 (write_gc_structure_fields): Use output_escaped_param on all
1803 parameters. Handle 'skip' with 'use_param' option. Handle
1804 arrays of strings. Remove TYPE_VARRAY handling.
1805 (write_gc_roots): Use boolean to detect 'length' option.
1806 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1807 (struct_fields): Call adjust_field_type on array fields.
1808 (type): Remove VARRAY_TYPE case.
1809 (type_option): Likewise.
1810 * gengtype-lex.l: Don't consider varray_type a keyword.
1811 * function.h: Update for change to length specifier.
1812 (free_eh_status): Delete prototype.
1813 * function.c (free_after_compilation): Don't call free_eh_status.
1814 (reorder_blocks): Don't use VARRAY_FREE.
1815 * except.c (struct eh_status): Update for change to length specifier.
1816 remove varray_type specifier.
1817 (free_eh_status): Delete.
1818 * dwarf2out.c: Include gt-dwarf2out.h.
1819 (used_rtx_varray): Use gengtype to mark, move
1820 outside ifdefs.
1821 (incomplete_types): Likewise.
1822 (decl_scope_table): Likewise.
1823 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
1824 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1825 * c-tree.h (struct lang_type): Update for change to length specifier.
1826 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1827 * c-objc-common.c: Include gt-c-objc-common.h.
1828 (deferred_fns): Mark for gengtype.
1829 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1830 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1831 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1832 (gtype-desc.o): Update dependencies.
1833 (dwarf2out.o): Add gt-dwarf2out.h.
1834 (varray.o): Update dependencies.
1835 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1836 (gt-c-objc-common.h): New rule.
1837 (gt-dwarf2out.h): New rule.
1838 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1839
1840 * doc/gty.texi (GTY Options): Correct spelling.
1841 (GGC Roots): Likewise.
1842 * Makefile.in (TEXI_CPP_FILES): New.
1843 (TEXI_GCC_FILES): New.
1844 (TEXI_GCCINT_FILES): New.
1845 (TEXI_CPPINT_FILES): New.
1846 ($(docdir)/cpp.info): Use new macros.
1847 ($(docdir)/gcc.info): Likewise.
1848 ($(docdir)/gccint.info): Likewise.
1849 ($(docdir)/cppinternals.info): Likewise.
1850 (cpp.dvi): Likewise.
1851 (gcc.dvi): Likewise.
1852 (gccint.dvi): Likewise.
1853 (cppinternals.dvi): Likewise.
1854
1855 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1856 * doc/gccint.texi (Top): Include gty.texi.
1857 * doc/gty.texi: New file.
1858
1859 * bitmap.c: Include ggc.h, gt-bitmap.h.
1860 (bitmap_ggc_free): New.
1861 (bitmap_elem_to_freelist): New.
1862 (bitmap_element_free): Use bitmap_elem_to_freelist.
1863 (bitmap_element_allocate): Allow use of GGC.
1864 (bitmap_clear): Use bitmap_elem_to_freelist.
1865 (bitmap_copy): Update for change to bitmap_element_allocate.
1866 (bitmap_set_bit): Likewise.
1867 (bitmap_operation): Update for changes elsewhere.
1868 (bitmap_initialize): Allow to create bitmaps that will use GGC.
1869 * bitmap.h (struct bitmap_element_def): Use gengtype.
1870 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
1871 (bitmap_initialize): Add extra parameter.
1872 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1873 (BITMAP_ALLOCA): Delete.
1874 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1875 (BITMAP_GGC_ALLOC): New.
1876 * Makefile.in (gtype-desc.o): Add bitmap.h.
1877 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1878 (GTFILES): Add bitmap.c.
1879 (gt-bitmap.h): New rule.
1880 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1881 * basic-block.h: Update for changes to bitmap_initialize.
1882 * except.c (exception_handler_label_map): Move into...
1883 (struct eh_status): Here.
1884 (struct eh_region): Make 'aka' GCable.
1885 (free_eh_status): Don't need to specially handle
1886 exception_handler_label_map.
1887 (add_ehl_entry): Update for changes to exception_handler_label_map.
1888 (find_exception_handler_labels): Likewise.
1889 (remove_exception_handler_label): Likewise.
1890 (maybe_remove_eh_handler): Likewise.
1891 (for_each_eh_label): Likewise.
1892 (remove_eh_handler): Allocate 'aka' using GGC.
1893 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1894 to list of includes.
1895
1896 * gengtype.c (write_gc_marker_routine_for_structure): Name
1897 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
1898 (write_gc_types): Arrange for the tests with NULL to be inlined.
1899 (write_gc_roots): Update uses of procedure pointers.
1900 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1901
1902 * Makefile.in (explow.o): Add dependency on gt-explow.h.
1903 (sdbout.o): Add dependency on gt-sdbout.h.
1904
1905 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1906 (mem_attrs_htab): Likewise.
1907 (init_emit_once): Don't call ggc_add_deletable_htab.
1908 * fold-const.c (size_htab): Use gengtype to clear unused entries.
1909 (size_int_type_wide): Don't call ggc_add_deletable_htab.
1910 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1911 parameters, use them, change callers.
1912 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1913 (write_gc_roots): Handle 'if_marked' option.
1914 (main): Don't need to call set_gc_used_type any more.
1915 * ggc.h (ggc_htab_marked_p): Delete.
1916 (ggc_htab_mark): Delete.
1917 (struct ggc_cache_tab): New.
1918 (gt_ggc_cache_rtab): New declaration.
1919 * ggc-common.c (struct d_htab_root): Delete.
1920 (d_htab_roots): Delete.
1921 (ggc_add_deletable_htab): Delete.
1922 (ggc_htab_delete): Handle new htab-deleting mechanism.
1923 (ggc_mark_roots): Use new htab-deleting mechanism.
1924 * tree.c (type_hash_table): Use gengtype to clear unused entries.
1925 Make static.
1926 (init_obstacks): Don't call ggc_add_deletable_htab.
1927
1928 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1929 (struct hashed_entry): Likewise.
1930 (nst_method_hash_list): Likewise.
1931 (cls_method_hash_list): Likewise.
1932 (HASH_ALLOC_LIST_SIZE): Delete.
1933 (ATTR_ALLOC_LIST_SIZE): Delete.
1934 * objc/objc-act.c (hash_init): Use ggc to allocate
1935 nst_method_hash_list, cls_method_hash_list.
1936 (hash_enter): Use ggc to allocate; allocate one entry at a time.
1937 (hash_add_attr): Likewise.
1938 (ggc_mark_hash_table): Delete.
1939 (objc_act_parse_init): Delete.
1940 (objc_init): Delete reference to objc_act_parse_init.
1941 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
1942 obstack.h. Replace references to 'struct hash_table' with htab_t.
1943 (struct symbol_hash_entry): Replace hash header with key field.
1944 (struct file_hash_entry): Replace hash header with key field.
1945 (struct demangled_hash_entry): Replace hash header with key field.
1946 (hash_string_eq): New.
1947 (hash_string_hash): New.
1948 (symbol_hash_newfunc): Delete.
1949 (symbol_hash_lookup): Modify to use htab_t.
1950 (file_hash_newfunc): Delete.
1951 (file_hash_lookup): Modify to use htab_t.
1952 (demangled_hash_newfunc): Delete.
1953 (demangled_hash_lookup): Modify to use htab_t.
1954 (tlink_init): Modify to use htab_t.
1955 * hash.h: Delete.
1956 * hash.c: Delete.
1957 * ggc.h: Delete forward structure declarations.
1958 Delete prototypes for deleted functions.
1959 * ggc-common.c: Don't include hash.h.
1960 (ggc_add_tree_hash_table_root): Delete.
1961 (ggc_mark_tree_hash_table_entry): Delete.
1962 (ggc_mark_tree_hash_table): Delete.
1963 (ggc_mark_tree_hash_table_ptr): Delete.
1964 * gengtype.c (write_gc_structure_fields): Allow param_is option.
1965 (write_gc_marker_routine_for_structure): Use visibility of
1966 the parameter if there is one.
1967 * function.c: Replace hash.h with hashtab.h. Replace references
1968 to 'struct hash_table *' with htab_t.
1969 (struct insns_for_mem_entry): Include a plain key.
1970 (fixup_var_refs_insns_with_hash): Update to use htab_t.
1971 (insns_for_mem_newfunc): Delete.
1972 (insns_for_mem_hash): Update to use htab_t.
1973 (insns_for_mem_comp): Likewise.
1974 (insns_for_mem_walk): Likewise.
1975 * c-lang.c: Include ggc.h.
1976 * Makefile.in (OBJS): Remove hash.o.
1977 (c-lang.o): Add GGC_H.
1978 (COLLECT2_OBJS): Remove hash.o.
1979 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1980 (ggc-common.o): Remove hash.h.
1981 (function.o): Remove hash.h, add HASHTAB_H.
1982 (genautomata.o): Remove hash.h, add HASHTAB_H.
1983
1984 * varasm.c (mark_const_str_htab_1): Delete.
1985 (mark_const_str_htab): Delete.
1986 (const_str_htab_del): Delete.
1987 (const_str_htab): Use gengtype to mark.
1988 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
1989 allocate them.
1990 * tree.c (mark_tree_hashtable_entry): Delete.
1991 (mark_tree_hashtable): Delete.
1992 * tree.h (mark_tree_hashtable): Delete prototype.
1993 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1994 (ggc_mark): Likewise.
1995 (ggc_calloc): New.
1996 (htab_create_ggc): New.
1997 * ggc-common.c (ggc_calloc): New.
1998 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1999 (struct type): Add param_struct structure.
2000 * gengtype.c (param_structs): New.
2001 (adjust_field_type): Handle param_is option.
2002 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2003 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2004 (write_gc_structure_fields): Add new PARAM parameter. Update
2005 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
2006 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2007 Use it to generate function name. Update callers.
2008 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
2009 Process them.
2010 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
2011 option.
2012 (main): Define PTR as pointer-to-scalar. Don't specially
2013 mark deferred_string or ehl_map_entry.
2014 * gengtype-yacc.y (PARAM_IS): Add new token.
2015 (externstatic): Use adjust_field_type.
2016 (type_option): Add PARAM_IS.
2017 * gengtype-lex.l: Add rule for typedef of function pointers.
2018 Add rule for PARAM_IS.
2019 (IWORD): Add size_t.
2020 * except.c (exception_handler_label_map): Use gengtype to mark.
2021 (type_to_runtime_map): Likewise.
2022 (mark_ehl_map_entry): Delete.
2023 (mark_ehl_map): Delete.
2024 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2025 (t2r_mark_1): Delete.
2026 (t2r_mark): Delete.
2027 * Makefile.in (gtype-desc.o): Correct dependencies.
2028 (GTFILES): Add hashtab.h.
2029 (genautomata.o): Actually uses hashtab.h.
2030
2031 * Makefile.in (stringpool.o): Add $(GGC_H).
2032 (dwarf2asm.o): Likewise.
2033 (GTFILES): Add hashtable.h.
2034 * c-common.h (struct c_common_identifier): Use gengtype.
2035 * c-decl.h (c_mark_tree): Delete.
2036 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2037 * c-tree.h (struct lang_identifier): Use gengtype.
2038 (union lang_tree_node): New.
2039 (c_mark_tree): Delete prototype.
2040 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
2041 dwarf2_debug_hooks.
2042 * gengtype-lex.l (IWORD): Allow 'bool'.
2043 (ptr_alias): Match.
2044 * gengtype-yacc.y (ALIAS): New token.
2045 (type_option): New rule.
2046 (option): Use type_option.
2047 * gengtype.c (process_gc_options): New.
2048 (set_gc_used_type): Use it.
2049 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2050 Add new variable 't' to hold the type of the field being processed.
2051 Add more error checking. Use UNION_P when looking at 'desc' option.
2052 Handle language-specific structures containing other
2053 language-specific structures.
2054 (write_gc_types): Handle 'ptr_alias' option.
2055 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2056 * ggc-common.c (ggc_pending_trees): Delete.
2057 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2058 (ggc_mark_trees): Delete.
2059 (gt_ggc_m_tree_node): Delete.
2060 * ggc.h (ggc_pending_trees): Delete.
2061 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2062 * hashtable.h (ht_identifier): Use gengtype.
2063 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
2064 * langhooks.h (struct lang_hooks): Delete mark_tree.
2065 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
2066 anyway.
2067 * system.h: Poison LANG_HOOKS_MARK_TREE.
2068 * tree.c (tree_node_structure): New.
2069 * tree.h (struct tree_common): Use gengtype.
2070 (struct tree_int_cst): Likewise.
2071 (struct tree_real_cst): Likewise.
2072 (struct tree_string): Likewise.
2073 (struct tree_complex): Likewise.
2074 (struct tree_vector): Likewise.
2075 (struct tree_identifier): Likewise.
2076 (struct tree_list): Likewise.
2077 (struct tree_vec): Likewise.
2078 (struct tree_exp): Likewise.
2079 (struct tree_block): Likewise.
2080 (struct tree_type): Likewise.
2081 (struct tree_decl): Likewise.
2082 (enum tree_structure_enum): New.
2083 (union tree_node): Use gengtype, with an alias.
2084 (tree_node_structure): Prototype.
2085 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2086
2087 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
2088 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
2089 to LANG_HOOKS_FUNCTION_FINAL.
2090 * Makefile.in (GTFILES): Add bitmap.h.
2091 * except.c (struct eh_region): Mark field 'aka' to be skipped.
2092
2093 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
2094 (alpha_init_machine_status): Give proper type.
2095 * Makefile.in (c-lang.o): Depend on gtype-c.h.
2096 (optabs.o): Depend on gt-optabs.h.
2097 (GTFILES): Add optabs.o.
2098 (gt-optabs.h): Add rule.
2099 * optabs.c: Include gt-optabs.h.
2100
2101 * gengtype.c (set_gc_used_type): Correct some errors in last change.
2102 (write_gc_structure_fields): If a field which should be NULL is
2103 not, abort.
2104 * c-pragma.c: Move struct align_stack and variable alignment_stack
2105 out from the ifdef.
2106
2107 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
2108 * config/xtensa/xtensa.c: Include gt-cris.h.
2109 (struct machine_function): Use gengtype to mark.
2110 * config/mmix/mmix.h (struct machine_function): Use gengtype
2111 to mark.
2112 * config/cris/t-cris: Add dependencies for gt-cris.h.
2113 * config/cris/cris.c: Include gt-cris.h.
2114 (struct machine_function): Use gengtype to mark.
2115 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
2116 to mark.
2117 * doc/tm.texi (Per-Function Data): Delete references to
2118 mark_machine_status.
2119 * config/ia64/ia64.c (ia64_override_options): Don't set
2120 mark_machine_status.
2121 * config/i386/i386.c (override_options): Likewise.
2122 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
2123 * config/arm/arm.c (arm_init_expanders): Likewise.
2124 * config/alpha/alpha.c (override_options): Likewise.
2125 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
2126 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
2127 (write_gc_structure_fields): Don't handle 'really' option.
2128 Handle 'maybe_null' option.
2129 (write_gc_types): Handle 'maybe_null' option.
2130 * function.h (struct function): Don't use "really".
2131 (mark_machine_status): Delete declaration.
2132 (mark_lang_status): Delete declaration.
2133 (gt_ggc_mr_machine_function): Delete prototype.
2134 (gt_ggc_mr_language_function): Delete prototype.
2135 * function.c (mark_machine_status): Delete.
2136 (mark_lang_status): Delete.
2137 (gt_ggc_mr_machine_function): Delete.
2138 (gt_ggc_mr_language_function): Delete.
2139 * c-tree.h (mark_c_function_context): Delete prototype.
2140 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
2141 * c-decl.c (struct language_function): Rename from struct
2142 c_language_function. Update uses. Use gengtype to mark.
2143 (mark_c_function_context): Delete.
2144 * c-common.h (struct c_language_function): Rename from struct
2145 language_function.
2146 (mark_stmt_tree): Delete prototype.
2147 (c_mark_lang_decl): Delete prototype.
2148 (mark_c_language_function): Delete prototype.
2149 * c-common.c (mark_stmt_tree): Delete.
2150 (c_mark_lang_decl): Delete.
2151 (mark_c_language_function): Delete.
2152
2153 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
2154 (lang_bitmap): New typedef. Use where appropriate.
2155 (struct type): Add gc_used field, lang_struct field.
2156 (UNION_P): New macro.
2157 (new_structure): New prototype.
2158 (find_structure): Remove 'pos' parameter. Change all callers.
2159 * gengtype-lex.l: Update for changes to find_structure.
2160 * gengtype-yacc.y (typedef_struct): Use new_structure.
2161 (yacc_ids): Suppress warning.
2162 (type): Use new_structure.
2163 * gengtype.c (string_type): Update for changes to struct type.
2164 (find_structure): Just find a structure, don't worry about
2165 creating one.
2166 (new_structure): New.
2167 (note_yacc_type): Use new_structure.
2168 (set_gc_used_type): New.
2169 (set_gc_used): New.
2170 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
2171 (write_gc_types): Handle TYPE_LANG_STRUCT.
2172 (write_gc_marker_routine_for_structure): New.
2173 (main): Call set_gc_used. Add some calls to set_gc_used_type
2174 for places where GCC doesn't use gengtype properly yet.
2175 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
2176 (gt_ggc_m_tree_node): Likewise.
2177
2178 * varasm.c (copy_constant): Call expand_constant if we hit
2179 something we can't recognise.
2180
2181 * ggc-common.c (ggc_mark_rtvec_children): Delete.
2182 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2183 (lang_mark_false_label_stack): Delete.
2184 * rtl.h (struct rtvec_def): Use gengtype to mark.
2185 * ggc.h (ggc_mark_rtvec): Delete.
2186 (gt_ggc_m_rtvec_def): Delete.
2187 (ggc_mark_nonnull_tree): Delete.
2188 (ggc_mark_rtvec_children): Delete prototype.
2189 (lang_mark_false_label_stack): Delete declaration.
2190
2191 * gengtype.h (note_yacc_type): Add prototype.
2192 * gengtype.c (note_yacc_type): New function.
2193 * gengtype-lex.l: Add lexer support for yacc files.
2194 * gengtype-yacc.y (start): Extract union from yacc files.
2195 (yacc_union): New rule.
2196 (yacc_typematch): New rule.
2197 (yacc_ids): New rule.
2198 (enum_items): Tweak for efficiency.
2199 (optionseq): Likewise.
2200
2201 * c-common.h (struct language_function): Use gengtype.
2202 (struct c_lang_decl): Likewise.
2203 * c-tree.h (struct lang_decl): Likewise.
2204 (struct lang_type): Likewise.
2205 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2206 tree language substructures.
2207
2208 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2209 ggc_mark_tree.
2210 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2211
2212 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2213
2214 * stmt.c (struct nesting): Add discriminator. Use gengtype to
2215 mark. Remove 'data.block.cleanup_ptr' field.
2216 (struct stmt_status): Use usual technique to mark struct nesting.
2217 (gt_ggc_mr_nesting_cond): Delete.
2218 (gt_ggc_mr_nesting_loop): Delete.
2219 (gt_ggc_mr_nesting_block): Delete.
2220 (gt_ggc_mr_nesting_case_stmt): Delete.
2221 (expand_start_cond): Set discriminator.
2222 (expand_start_loop): Likewise.
2223 (expand_start_null_loop): Likewise.
2224 (expand_start_bindings_and_block): Set discriminator. Don't set
2225 deleted fields.
2226 (expand_decl_cleanup): Replace 'cleanup_ptr' with
2227 &thisblock->data.block.cleanups.
2228 (expand_start_case): Set discriminator.
2229 (expand_start_case_dummy): Set discriminator.
2230
2231 * ggc-callbacks.c: Remove.
2232
2233 * gengtype.h (struct type): Add 'u.s.bitmap' field.
2234 (find_structure): Add 'pos' parameter.
2235 * gengtype-lex.l: Update callers to find_structure.
2236 * gengtype-yacc.y: Likewise.
2237 * gengtype.c (find_structure): Allow for structures to be defined
2238 in multiple language backends.
2239 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2240 (counter): Rename to gc_counter.
2241 (write_gc_structure_fields): Fail when writing out fields for
2242 an incomplete structure. Ignore arrays of scalars. Handle
2243 'tree_vec' special.
2244 (write_gc_types): Reset counter for each procedure written.
2245
2246 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2247 (free_case_nodes): Delete.
2248 (expand_end_case_type): Delete call to free_case_nodes.
2249
2250 * Makefile.in (cselib.o): Include gt-<filename>.h.
2251 (gcse.o): Likewise.
2252 (profile.o): Likewise.
2253 (alias.o): Likewise.
2254 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2255 alphabetize backend files.
2256 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2257 * alias.c: Use gengtype for roots.
2258 * c-common.h (struct stmt_tree_s): Use gengtype.
2259 * c-decl.c: Use gengtype for roots.
2260 * cselib.c: Use gengtype for roots.
2261 * expr.c: Use gengtype for roots.
2262 * fold-const.c: Use gengtype for roots.
2263 * gcse.c: Use gengtype for roots.
2264 * gengtype-lex.l: Handle typedefs of function types.
2265 Allow for empty array bounds.
2266 Allow processing to stop on initialisers.
2267 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2268 (semiequal): New rule.
2269 * gengtype.c (create_file): Tidy output files.
2270 (get_output_file_with_visibility): Fix paren warning. Fix bug
2271 involving multiple input files mapping to one output file.
2272 (write_gc_structure_fields): Skip arrays of scalars.
2273 (write_gc_types): Tidy output files.
2274 (write_gc_root): New function.
2275 (write_gc_roots): Fix bugs, add support for roots that are
2276 structures.
2277 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2278 (ggc_mark_tree_ptr): Delete.
2279 (ggc_add_rtx_root): Delete.
2280 (ggc_add_tree_root): Delete.
2281 (ggc_del_root): Delete.
2282 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2283 allocate struct initial_value_struct.
2284 * profile.c: Use gengtype for roots.
2285 * sdbout.c: Use gengtype for roots.
2286 * varasm.c (mark_weak_decls): Delete unused prototype.
2287 (mark_const_hash_entry): Delete unused function.
2288 * config/darwin-protos.h: Use gengtype for roots.
2289 (machopic_add_gc_roots): Delete.
2290 * config/arm/arm.c: Use gengtype for roots.
2291 * config/arm/arm.h: Use gengtype for roots.
2292 * config/c4x/c4x-protos.h: Use gengtype for roots.
2293 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2294 * config/d30v/d30v-protos.h: Use gengtype for roots.
2295 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2296 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2297 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2298 * config/ia64/ia64-protos.h: Use gengtype for roots.
2299 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2300 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2301 * config/m68hc11/m68hc11.c (z_reg): Make global.
2302 (z_reg_qi): Make global.
2303 (m68hc11_add_gc_roots): Delete.
2304 * config/mcore/mcore-protos.h: Use gengtype for roots.
2305 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2306 * config/mips/mips.c (mips_add_gc_roots): Delete.
2307 * config/mips/mips.h: Use gengtype for roots.
2308 * config/mmix/mmix.c (override_options): Use gengtype for roots.
2309 * config/mmix/mmix.h: Use gengtype for roots.
2310 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2311 * config/mn10200/mn10200.h: Use gengtype for roots.
2312 * config/pa/pa.c: Use gengtype for roots, marking.
2313 (struct deferred_plabel): Use GGC, gengtype.
2314 (pa_add_gc_roots): Delete.
2315 (mark_deferred_plabels): Delete.
2316 * config/pj/pj-protos.h: Use gengtype for roots.
2317 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2318 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
2319 machopic_add_gc_roots.
2320 * config/rs6000/rs6000.h: Use gengtype for roots.
2321 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2322 (gt-darwin.h): Add rule.
2323 * config/sh/sh.c: Use gengtype for roots.
2324 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2325 (gt-sh.h): Add rule.
2326 * config/sparc/sparc.c: Use gengtype for roots.
2327 (sparc_add_gc_roots): Delete.
2328 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2329 (mark_ultrasparc_pipeline_state): Delete.
2330 * config/sparc/sparc.h: Use gengtype for roots.
2331
2332 * Makefile.in (c-parse.o): Update dependencies.
2333 (c-common.o): Likewise.
2334 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2335 Add dependencies for the files they generate.
2336 * c-common.c: Replace ggc_add_* uses with GTY annotations.
2337 * c-common.h: Likewise.
2338 * c-decl.c: Likewise.
2339 (gt_ggc_mp_binding_level): Delete.
2340 * c-lang.c: Include gtype-c.h.
2341 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
2342 gt-c-parse.h.
2343 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2344 (gt_ggc_mp_align_stack): Delete.
2345 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2346 * function.c: Replace ggc_add_* uses with GTY annotations.
2347 (gt_ggc_mp_function): Delete.
2348 * function.h: Replace ggc_add_* uses with GTY annotations.
2349 * gengtype.c (lang_names): New.
2350 (NUM_BASE_FILES): New.
2351 (open_base_files): Create language base files.
2352 (startswith): New.
2353 (get_file_basename): New.
2354 (get_base_file_bitmap): New.
2355 (get_output_file_with_visibility): Rename from get_output_file.
2356 Add more mappings for various C/Objc filenames.
2357 (finish_root_table): New.
2358 (write_gc_roots): Handle dependencies and scoping properly.
2359 * gengtype.h: Add prototypes for new functions.
2360 * ggc-common.c (struct deletable_root): Delete.
2361 (deletables): Delete.
2362 (ggc_add_deletable_root): Delete.
2363 (ggc_mark_roots): No need to deal with deleted functionality.
2364 * ggc.h (ggc_add_deletable_root): Delete prototype.
2365 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2366 (gtype-objc.h): Add rule to create.
2367 * objc/config-lang.in (gtfiles): New.
2368 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
2369 ggc_add_* with GTY markers. Include gtype-objc.h.
2370 (ggc_mark_imp_list): Delete.
2371 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2372 * objc/objc-lang.c: Random Whitespace Change.
2373
2374 * except.h (exception_handler_labels): Delete.
2375 (get_exception_handler_labels): New.
2376 * except.c (exception_handler_labels): Delete.
2377 (struct eh_status): Add exception_handler_labels field.
2378 (doing_eh): Don't add exception_handler_labels as root.
2379 (free_eh_status): Don't need to free exception_handler_labels.
2380 (get_exception_handler_labels): New.
2381 (find_exception_handler_labels): Update for move of
2382 exception_handler_labels.
2383 (remove_exception_handler_label): Likewise.
2384 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2385 * jump.c (rebuild_jump_labels): Likewise.
2386 * loop.c (find_and_verify_loops): Likewise.
2387 * sched-rgn.c (is_cfg_nonregular): Likewise.
2388
2389 * gengtype.c (write_gc_structure_fields): Handle variable-length
2390 TYPE_ARRAYs.
2391
2392 * varasm.c (struct weak_syms): Use GGC, gengtype.
2393 (mark_weak_decls): Delete.
2394 (weak_decls): Likewise.
2395 (add_weak): Likewise.
2396 (remove_from_pending_weak_list): Likewise.
2397 (init_varasm_once): Likewise.
2398
2399 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2400 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2401 stor-layout.c, regclass.c, and lists.c.
2402 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2403 gt-regclass.h and gt-lists.h on s-gtype.
2404 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
2405 * except.c: Use gengtype for roots.
2406 * explow.c: Use gengtype for roots. Include gt-explow.h.
2407 * expr.h (init_stor_layout_once): Delete prototype.
2408 * function.c: Use gengtype for roots.
2409 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2410 * gengtype-yacc.y (start): Can also be an externstatic.
2411 (externstatic): New production.
2412 (struct_fields): Correct array bounds inversion for 2-d arrays.
2413 * gengtype.c (variables): New variable.
2414 (note_variable): New function.
2415 (get_output_file): Include libfuncs.h into gtype-desc.c.
2416 (get_output_file_name): New function.
2417 (write_gc_structure_fields): Suppress warnings.
2418 (write_gc_types): Make static.
2419 (put_mangled_filename): New function.
2420 (write_gc_roots): New function.
2421 (main): Call write_gc_roots.
2422 * gengtype.h (note_variable): Prototype.
2423 (get_output_file_name): Prototype.
2424 (write_gc_types): Delete prototype.
2425 * ggc.h: Clean up unnecessary structure predefinitions.
2426 (struct ggc_root_tab): Define.
2427 (gt_ggc_m_rtx_def): Make function, not macro.
2428 (gt_ggc_m_tree_node): Likewise.
2429 * libfuncs.h: Use gengtype for roots.
2430 * lists.c: Use gengtype for roots. Include gt-lists.h.
2431 (init_EXPR_INSN_LIST_cache): Delete.
2432 * optabs.c: Use gengtype for roots.
2433 (gt_ggc_mp_optab): Delete.
2434 * optabs.h: Use gengtype for roots.
2435 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
2436 * rtl.h: Use gengtype for roots.
2437 (init_EXPR_INSN_LIST_cache): Delete prototype.
2438 * stor-layout.c: Use gengtype for roots.
2439 Include gt-stor-layout.h.
2440 (init_stor_layout_once): Delete.
2441 * toplev.c: Use gengtype for roots. Delete calls to deleted
2442 routines.
2443 * tree.c: Use gengtype for roots.
2444 * tree.h: Use gengtype for roots.
2445 * varasm.c: Use gengtype for roots.
2446
2447 * Makefile.in (GTFILES): Add @all_gtfiles@.
2448 * configure: Regenerate.
2449 * configure.in: Construct all_gtfiles from the gtfiles definitions
2450 in config-lang.in.
2451 * gengtype-yacc.y (type): Warn about duplicate structure names.
2452 * gengtype.c (get_output_file): Handle .c files in language
2453 subdirectories.
2454
2455 * Makefile.in (GTFILES): Run gengtype on all the config files
2456 and on the target .c file.
2457 * except.c (mark_eh_region): Delete.
2458 (init_eh_for_function): Use GGC on struct eh_status.
2459 (mark_eh_status): Delete.
2460 (free_eh_status): Use GGC.
2461 (expand_eh_region_start): Use GGC to
2462 (collect_eh_region_array): Allocate last_region_number using GGC.
2463 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2464 (remove_eh_handler): Let GGC free struct eh_region.
2465 (add_call_site): Use GGC to reallocate call_site_record array.
2466 * function.c (init_machine_status): Update calling sequence.
2467 (mark_machine_status): Likewise.
2468 (mark_lang_status): Likewise.
2469 (prepare_function_start): Update init_machine_status call.
2470 (mark_function_status): Delete.
2471 (maybe_mark_struct_function): Delete.
2472 (ggc_mark_struct_function): Delete.
2473 (gt_ggc_mp_function): New.
2474 (gt_ggc_mr_machine_function): New.
2475 (gt_ggc_mr_language_function): New.
2476 (init_function_once): Use canonical names.
2477 * function.h (struct function): Use gengtype.
2478 (init_machine_status): Return the structure.
2479 (mark_machine_status): Take a 'void *'.
2480 (mark_lang_status): Likewise.
2481 * ggc-common.c (ggc_mark_trees): Use canonical name for
2482 ggc_mark_struct_function.
2483 * tree.h (ggc_mark_struct_function): Delete prototype.
2484 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2485 (alpha_init_machine_status): Likewise.
2486 (override_options): Use canonical name for alpha_mark_machine_status.
2487 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2488 * config/arm/arm.h (struct machine_function): Use gengtype.
2489 * config/arm/arm.c (arm_mark_machine_status): Delete.
2490 (arm_init_machine_status): Update calling sequence.
2491 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
2492 * config/cris/cris.c (cris_init_machine_status): Update
2493 calling sequence.
2494 * config/d30v/d30v.h (struct machine_function): Use gengtype.
2495 * config/d30v/d30v.c (d30v_init_machine_status): Update
2496 calling sequence.
2497 (d30v_mark_machine_status): Delete.
2498 * config/i386/i386.c: Include gt-i386.h.
2499 (struct machine_function): Use gengtype.
2500 (ix86_init_machine_status): Update calling sequence.
2501 (ix86_mark_machine_status): Delete.
2502 (override_options): Use canonical namke for ix86_mark_machine_status.
2503 * config/ia64/ia64.h (struct machine_function): Use gengtype.
2504 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
2505 sequence.
2506 (ia64_mark_machine_status): Delete.
2507 (ia64_override_options): Use canonical name for
2508 ia64_mark_machine_status.
2509 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
2510 sequence.
2511 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2512 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2513 * gengtype.c (get_output_file): Fix warning.
2514 (main): Add prototype to suppress warning.
2515 * tree.c: Remove tree_hash_mark prototype.
2516
2517 * tree.h (init_stmt): Delete prototype.
2518 * toplev.c (lang_independent_init): Don't call init_stmt.
2519 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2520 (stmt_obstack): Delete.
2521 (POPSTACK): No need to free 'struct nesting'.
2522 (gt_ggc_mr_nesting_cond): Use canonical names.
2523 (gt_ggc_mr_nesting_loop): Use canonical names.
2524 (gt_ggc_mr_nesting_block): Use canonical names.
2525 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2526 (mark_stmt_status): Delete.
2527 (init_stmt): Delete.
2528 (clear_last_expr): Clear both last_expr_type and last_expr_value.
2529 Use it everywhere that last_expr_type was cleared.
2530 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2531 (zap_lists): Delete.
2532 * ggc.h (ggc_add_deletable_root): Prototype.
2533 (mark_stmt_status): Remove prototype.
2534 * ggc-common.c (ggc_add_deletable_root): New.
2535 (ggc_mark_roots): Handle deletable roots.
2536 * function.c (ggc_mark_struct_function): Use canonical name
2537 for mark_stmt_status.
2538 * emit-rtl.c (free_sequence_stack): New.
2539 (start_sequence): Use a freelist for sequences.
2540 (end_sequence): Likewise.
2541 (init_emit_once): Add free_sequence_stack as a deleteable root.
2542 * c-pragma.c Include gt-c-pragma.h.
2543 (struct align_stack): Use gengtype.
2544 (push_alignment): Use GGC for struct align_stack.
2545 (mark_align_stack): Delete.
2546 (gt_ggc_mp_align_stack): New.
2547 (init_pragma): Use canonical name for mark_align_stack.
2548 * c-decl.c: Include gt-c-decl.h.
2549 (struct binding_level): Use gengtype.
2550 (make_binding_level): Use GGC; handle the freelist here.
2551 (pop_binding_level): New.
2552 (pushlevel): Move code into make_binding_level.
2553 (push_label_level): Likewise.
2554 (poplevel): Move code into pop_binding_level.
2555 (pop_label_level): Likewise.
2556 (mark_binding_level): Delete.
2557 (gt_ggc_mp_binding_level): New.
2558 (c_init_decl_processing): Use canonical name for mark_binding_level.
2559 Add free_binding_level as deletable root.
2560 (mark_c_function_context): Use canonical name for mark_binding_level.
2561 * Makefile.in (c-decl.o): Add gt-c-decl.h.
2562 (c-pragma.o): Add gt-c-pragma.h.
2563 (GTFILES): Add c-decl.c and c-pragma.c.
2564 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2565
2566 * tree.c (struct type_hash): Use gengtype.
2567 (init_obstacks): Use canonical name for type_hash_mark.
2568 (type_hash_mark): Delete.
2569 Include gt-tree.h.
2570 * rtl.h (struct mem_attrs): Use gengtype.
2571 * optabs.h (struct optab): Use gengtype.
2572 * optabs.c (expand_binop): Squish signed/unsigned warning.
2573 (mark_optab): Make local, use canonical name, use autogenerated
2574 marker procedure.
2575 (init_optabs): Use canonical name for mark_optab.
2576 (new_optab): Use GGC to allocate optabs.
2577 * ggc.h: Delete mark_optab prototype.
2578 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2579 mem_attrs marker procedure.
2580 * gengtype.c (get_output_file): Include headers in gtype-desc.c
2581 explicitly rather than deducing them from file names.
2582 (write_gc_structure_fields): Handle arrays of structures.
2583 (main): Return non-zero exit code if errors occur during output.
2584 * emit-rtl.c (mem_attrs_mark): Delete.
2585 (init_emit_once): Use canonical name for mem_attrs marker procedure.
2586 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2587 (tree.o): Depend on gt-tree.h.
2588 (GTFILES): Add rtl.h, optabs.h, tree.c.
2589 (gt-tree.h): Add it to s-gtype rule.
2590
2591 * .cvsignore: Ignore gengtype flex/bison generated files.
2592 * Makefile.in (GGC_H): Add gtype-desc.h.
2593 (OBJS): Add gtype-desc.o.
2594 (GEN): Add gengtype.
2595 (STAGESTUFF): Add gengtype.
2596 (varasm.o): Add gt-varasm.h.
2597 (stmt.o): Add gt-stmt.h.
2598 (except.o): Add gt-except.h.
2599 (integrate.o): Add gt-integrate.h.
2600 (GTFILES): New.
2601 Add new rules for new files.
2602 * configure: Regenerate.
2603 * configure.in: Correct defaults.h paths.
2604 * emit-rtl.c (mark_sequence_stack): Delete.
2605 (mark_emit_status): Delete.
2606 (start_sequence): Allocate sequence structures using GGC.
2607 (end_sequence): Allocate sequence structures using GGC.
2608 * except.c: Use gengtype for various structures. Include
2609 gt-except.h.
2610 * expr.c (mark_expr_status): Delete.
2611 * function.c: Use gengtype for various structures. Include
2612 gt-function.h.
2613 (mark_function_status): Use standard gt_ggc names for marker functions.
2614 (ggc_mark_struct_function): Likewise.
2615 * function.h: Use gengtype for various structures.
2616 * gengtype-lex.l: New file.
2617 * gengtype-yacc.y: New file.
2618 * gengtype.c: New file.
2619 * gengtype.h: New file.
2620 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
2621 the standard names. Remove some now-unnecessary prototypes.
2622 * integrate.c: Use gengtype for various structures. Include
2623 gt-integrate.h.
2624 (mark_hard_reg_initial_vals): Delete.
2625 * integrate.h (mark_hard_reg_initial_vals): Delete.
2626 * stmt.c: Use gengtype for various structures. Include
2627 gt-stmt.h.
2628 (mark_case_node): Delete.
2629 (mark_goto_fixup): Delete.
2630 (mark_stmt_status): Use standard gt_ggc names for marker functions.
2631 * system.h: Define GTY to empty. In flex/bison files,
2632 don't poison malloc or realloc, instead just define them to
2633 xmalloc and xrealloc.
2634 * varasm.c: Use gengtype for various structures. Include
2635 gt-varasm.h. Use standard gt_ggc names for marker functions.
2636 (mark_pool_constant): Delete.
2637 (mark_varasm_status): Delete.
2638 (decode_rtx_const): #if 0 out non-typesafe hack.
2639
2640 * function.h (free_lang_status): Mark as obsolete.
2641 * function.c (free_lang_status): Mark as obsolete.
2642 * c-decl.c (push_c_function_context): Use GC to allocate and free
2643 struct language_function.
2644 (pop_c_function_context): Likewise.
2645 * c-common.c (mark_c_language_function): Mark struct
2646 language_function.
2647
2648 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2649 Document that the machine_function structures must be allocated
2650 using GC. Update mark_machine_status documentation.
2651 * function.h: Don't declare free_machine_status.
2652 * function.c (free_machine_status): Don't define.
2653 (free_after_compilation): Don't call free_machine_status.
2654 (ggc_mark_struct_function): Mark f->machine. Call
2655 mark_machine_status only on non-NULL pointers.
2656 * system.h: Poison free_machine_status.
2657 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2658 struct machine_function.
2659 (xtensa_free_machine_status): Delete.
2660 (override_options): Don't set free_machine_status.
2661 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2662 free_machine_status.
2663 (rs6000_init_machine_status): Use GC on struct machine_function.
2664 (rs6000_free_machine_status): Delete.
2665 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2666 machine_function.
2667 (ia64_mark_machine_status): Likewise.
2668 (ia64_free_machine_status): Delete.
2669 (ia64_override_options): Don't set free_machine_status.
2670 * config/i386/i386.c (override_options): Don't set
2671 free_machine_status.
2672 (ix86_init_machine_status): Use GC on struct machine_function.
2673 (ix86_mark_machine_status): Likewise.
2674 (ix86_free_machine_status): Delete.
2675 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2676 machine_function.
2677 (d30v_mark_machine_status): Likewise.
2678 (d30v_free_machine_status): Delete.
2679 (d30v_init_expanders): Don't set free_machine_status.
2680 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2681 machine_function.
2682 (arm_init_machine_status): Likewise.
2683 (arm_free_machine_status): Delete.
2684 (arm_init_expanders): Don't set free_machine_status.
2685 * config/alpha/alpha.c (override_options): Don't set
2686 free_machine_status.
2687 (alpha_init_machine_status): Use GC on struct machine_function.
2688 (alpha_mark_machine_status): Likewise.
2689 (alpha_free_machine_status): Delete.
2690
2691 * varasm.c (compare_constant): Fix typo.
2692
2693 * varasm.c: Don't include obstack.h.
2694 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2695 (struct rtx_const): Give substructures names, improve formatting.
2696 (struct constant_descriptor): Delete.
2697 (struct constant_descriptor_tree): New, based on constant_descriptor.
2698 (const_hash_table): Is a hash table of trees.
2699 (mark_const_hash_entry): Is used for hashes of trees. Mark
2700 constant_descriptor_tree structure.
2701 (mark_const_str_htab_1): Mark deferred_string structure.
2702 (compare_constant): Rewrite to compare trees.
2703 (compare_constant_1): Delete.
2704 (record_constant): Delete.
2705 (record_constant_1): Delete.
2706 (output_constant_def): Use struct constant_descriptor_tree.
2707 Don't duplicate trees twice.
2708 (struct constant_descriptor_rtx): New.
2709 (struct pool_constant): Used for rtx constants.
2710 (init_varasm_status): Update for change to struct varasm_status.
2711 (mark_varasm_status): Likewise.
2712 (free_varasm_status): Delete.
2713 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2714 (record_constant_rtx): Likewise.
2715 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2716 (force_const_mem): Likewise.
2717 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2718 * function.c (free_after_compilation): Don't use free_varasm_status.
2719 * function.h: Don't prototype free_varasm_status.
2720
2721 * ggc-common.c (ggc_realloc): Handle X being NULL.
2722
2723 * ggc-common.c (ggc_realloc): New function.
2724 * ggc.h: Prototype it.
2725 * emit-rtl.c (free_emit_status): Delete.
2726 (init_emit): Allocate emit subarrays using GC.
2727 (gen_reg_rtx): Reallocate subarrays using GC.
2728 (init_emit): Use GC to allocate 'struct emit_status' and its
2729 subarrays.
2730 (mark_emit_status): Mark structure and its subarrays.
2731 * stmt.c (free_stmt_status): Delete.
2732 * expr.c (free_expr_status): Delete.
2733 * function.h: Remove prototypes for deleted functions.
2734 * function.c (free_after_compilation): Don't use deleted functions.
2735 Don't call free() on x_parm_reg_stack_loc.
2736 (free_after_parsing): Don't use free_stmt_status.
2737 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2738 (mark_function_status): Mark x_parm_reg_stack_loc.
2739
2740 * varasm.c (init_varasm_status): Use GC to allocate
2741 'struct varasm_status' and its fields x_const_rtx_hash_table
2742 and x_const_rtx_sym_hash_table.
2743 (mark_varasm_status): Mark them.
2744 (free_varasm_status): Use GC to free them.
2745 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2746 (mark_expr_status): Mark the structure itself.
2747 (free_expr_status): Use GC to free the structure.
2748 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2749 (mark_stmt_status): Mark the 'struct stmt_status' itself.
2750 (init_stmt_for_function): Allocate the structure for GC.
2751
2752 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2753 (equate_type_number_to_die): Likewise.
2754 * tree.h (TYPE_SYMTAB_DIE): New macro.
2755 (struct die_struct): Predeclare.
2756 (struct tree_type): Add field symtab.die. Add a tag
2757 to the union type of field symtab.
2758
2759 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2760 'struct rtvec_def *', not 'struct rtvec_def'.
2761
2762 * function.h (original_arg_vector): Make a real rtvec.
2763 * function.c (ggc_mark_struct_function): Adjust.
2764 * integrate.c (expand_inline_function): Adjust.
2765
2766 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2767
2768 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2769 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2770 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2771 (TARGET_VERSION_CPU): Define according to the
2772 default target.
2773 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2774 TARGET_VERSION_CPU.
2775 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2776 if TARGET_SHMEDIA64.
2777 (LINK_DEFAULT_CPU_EMUL): Define according to the
2778 default target.
2779 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2780 (SUBTARGET_LINK_SPEC): Define.
2781 (LINK_SPEC): Use SH_LINK_SPEC.
2782 (ASM_SPEC): Remove.
2783 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2784 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2785 and TARGET_SHMEDIA64 which abort, for now.
2786 * config/sh/t-netbsd-sh5: New file.
2787 * config/sh/t-netbsd-sh5-32: New file.
2788 * config/sh/t-netbsd-sh5-64: New file.
2789
2790 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2791 Richard Henderson <rth@redhat.com>
2792
2793 * config/alpha/alpha.c (reg_or_const_int_operand): New.
2794 (some_operand, input_operand): Accept CONST_VECTOR.
2795 (alpha_extra_constraint): Add 'W'.
2796 (alpha_expand_zap_mask): New.
2797 (alpha_expand_builtin_vector_binop): New.
2798 (enum alpha_builtin): New.
2799 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2800 (alpha_init_builtins, alpha_expand_builtin): New.
2801 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2802 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2803 (PREDICATE_CODES): Update.
2804 * config/alpha/alpha-protos.h: Update.
2805 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2806 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2807 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2808 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2809 (movv2si, movv2si_fix, movv2si_nofix): New.
2810 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2811 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2812 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2813 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2814 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2815 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2816 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2817 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2818 builtin_unpkbw, unpkbw): New.
2819 * doc/extend.texi (Alpha Built-in Functions): New.
2820
2821 2002-06-03 Richard Henderson <rth@redhat.com>
2822
2823 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2824 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2825
2826 2002-06-03 Richard Henderson <rth@redhat.com>
2827
2828 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2829
2830 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2831 (const0_operand): New.
2832 (reg_or_fp0_operand, fp0_operand): Remove.
2833 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2834 * config/alpha/alpha-protos.h: Update.
2835 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2836 and fp0_operand with reg_or_0_operand and const0_operand.
2837
2838 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2839
2840 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2841
2842 2002-06-03 Roger Sayle <roger@eyesopen.com>
2843
2844 * gcse.c (cprop_jump): Use single_set to get the pattern
2845 from the setcc argument.
2846
2847 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
2848
2849 * diagnostic.h (diagnostic_count): Move from output_buffer to
2850 diagnostic_context.
2851 (diagnostic_kind_count): Adjust definition.
2852
2853 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
2854
2855 * except.c (except.c): Do not rebuild CFG.
2856 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2857 optimization.
2858
2859 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2860
2861 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2862 * toplev.c: Include cfglahout.h
2863 * Makefile.in (toplev.c): Add dependnecy.
2864
2865 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
2866
2867 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2868 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2869 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2870
2871 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2872
2873 * config/ns32k/netbsd.h: Update copyright years.
2874 (TARGET_OS_CPP_BUILTINS): Define.
2875 (CPP_PREDEFINES): Remove.
2876 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2877 (TARGET_CPU_CPP_BUILTINS): Define.
2878
2879 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2880
2881 * emit-rtl.c: Fix formatting.
2882 * errors.h: Likewise.
2883 * except.c: Likewise.
2884 * explow.c: Likewise.
2885 * expmed.c: Likewise.
2886 * expr.c: Likewise.
2887 * expr.h: Likewise.
2888
2889 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2890
2891 * config/h8300/elf.h: Fix formatting.
2892 * config/h8300/rtems.h: Likewise.
2893
2894 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2895
2896 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2897
2898 2002-06-02 Tom Tromey <tromey@redhat.com>
2899
2900 * fixinc/fixincl.x: Rebuilt.
2901 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2902
2903 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2904
2905 config/i370:
2906 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2907 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2908 * mvs.h: Similarly.
2909 * oe.h: Similarly.
2910
2911 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
2912
2913 * final.c (final): Allow notes to not have computed addresses;
2914 kill no longer needed STACK_REGS ifdef.
2915
2916 2002-06-02 Richard Henderson <rth@redhat.com>
2917
2918 * gcse.c (bypass_conditional_jumps): Fix typo last change.
2919
2920 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2921
2922 * loop.c (emit_prefetch_instructions): Properly place the address
2923 computation.
2924
2925 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
2926
2927 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2928 (set_block_for_insn): Turn into macro.
2929 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2930 * cfglayout.c (insn_scopes): Kill.
2931 (scope_to_insns_initialize): Do not use insn_scopes.
2932 (scope_to_insns_finalize): Likewise.
2933 (duplicate_insn_chain): Likewise.
2934 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2935 * cfgrtl.c (basic_block_for_insn): Kill.
2936 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2937 (create_basic_block_structure): Use reorder_insns.
2938 (compute_bb_for_insn): Do not use basic_block_for_insn.
2939 (merge_blocks_nomove): Likewise.
2940 (update_bb_for_insn): Likewise.
2941 (verify_flow_info): Likewise.
2942 (set_block_for_insn): Kill.
2943 * combine.c (try_combine): Update gen_rtx_INSN call.
2944 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2945 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2946 scopes and BBs.
2947 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2948 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2949 Clear BB.
2950 (emit_insns_after): Simplify.
2951 (emit_copy_of_insn_after): Copy scope.
2952 * final.c (final_start_function): Lower scopes.
2953 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2954 * integrate.c (copy_insn_list): Cope scopes.
2955 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2956 * loop.c (loop_optimize): Do not care block notes.
2957 * print-rtl.c (print_rtx): Print BB.
2958 * recog.c (apply_change_group): Simplify.
2959 * rtl.c (copy_rtx): Handle 'B'.
2960 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2961 * rtl.h (Field accessors): Update indexes.
2962 * sched-ebb.c (schedule_ebbs): Do not lower notes.
2963 * sched-rgn.c (schedule_insns): Likewise.
2964 * toplev.c (rest_of_compilation): Lower notes.
2965 * unroll.c (unroll_loop): Do not care scoping notes.
2966 (copy_loop_body): Copy scopes.
2967
2968 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2969
2970 config/h8300:
2971 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2972 SUBTARGET_SPEC.
2973 * rtems.h: Similarly.
2974 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2975 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2976 (TARGET_CPU_CPP_BUILTINS): Use.
2977
2978 2002-06-02 Richard Henderson <rth@redhat.com>
2979
2980 * alias.c: Include target.h.
2981 (mark_constant_function): Use targetm.binds_local_p instead
2982 of checking TREE_PUBLIC ourselves.
2983 * Makefile.in (alias.o): Add TARGET_H.
2984
2985 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2986
2987 * c-lex.c: Update copyright and file description.
2988
2989 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2990
2991 * config/fr30/fr30.h: Update to new CPP macros.
2992
2993 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2994
2995 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2996
2997 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2998 Zack Weinberg <zack@codesourcery.com>
2999
3000 * c-common.c (c_common_init): Override cpplib's default
3001 warn_long_long setting.
3002 * c-lex.c (lex_number): Replace with interpret_integer,
3003 interpret_float, narrowest_unsigned_type and
3004 narrowest_signed_type, taking advantage of the new
3005 cpplib functionality.
3006 * cpperror.c (_cpp_begin_message): If a warning is turned
3007 into an error, avoid printing "warning:".
3008 * cppexp.c (cpp_num_sign_extend): New.
3009 * cppinit.c: Update comment.
3010 * cpplib.h (cpp_num_sign_extend): New.
3011 * tree.h: Update comment.
3012
3013 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3014
3015 * diagnostic.h (struct diagnostic_context): Add new member
3016 internal_error.
3017 (internal_error_function): Remove declaration.
3018 * diagnostic.c (internal_error_function): Remove definition..
3019 (internal_error): Adjust use.
3020
3021 2002-06-02 Richard Henderson <rth@redhat.com>
3022
3023 * rtl.h (CC0_P): New.
3024 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
3025 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
3026 (bypass_block): Save old dest block for dump text.
3027 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3028 Allow only true SET insns, not single_set.
3029
3030 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3031
3032 * diagnostic.c (diagnostic_finish): Rename to output_flush.
3033 (clear_disgnostic_info): Rename to output_clear_data. Use false
3034 instead of 0 for boolean value.
3035 Adjust function call throughout.
3036
3037 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3038
3039 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3040 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3041
3042 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3043
3044 * d30v.h (CPP_PREDEFINES): Replace with
3045 (TARGET_CPU_CPP_BUILTINS): New.
3046
3047 2002-06-02 Roger Sayle <roger@eyesopen.com>
3048
3049 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3050
3051 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
3052
3053 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3054
3055 2002-06-02 Richard Henderson <rth@redhat.com>
3056
3057 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3058
3059 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
3060
3061 Support for C++ constructors/destructors.
3062 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
3063 instead of looping if main() returns.
3064 (asm_file_start): Output global symbols that cause .data and .bss
3065 initialization code to be linked in, unconditionally for now.
3066 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
3067 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
3068 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3069 (LIBSTDCXX): New.
3070 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
3071 (__tablejump__): New.
3072 (__do_copy_data, __do_clear_bss): New.
3073 (__do_global_ctors, __do_global_dtors): New.
3074 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
3075 _ctors, _dtors.
3076
3077 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3078
3079 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
3080 (CPP_SPEC, CPP_PREDEFINES): Kill.
3081 * c4x/rtems.h (CPP_PREDEFINES): Kill.
3082 (TARGET_OS_CPP_BUILTINS): New.
3083
3084 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
3085
3086 * Makefile.in (tracer.o): New.
3087 * params.def (TRACER_*): New options.
3088 * rtl.h (tracer): Declare.
3089 * timevar.def (TV_TRACER): New.
3090 * toplev.c (dump_file_index): Add DFI_tracer.
3091 (dump_file_info): Add tracer.
3092 (flag_tracer): New.
3093 (lang_indepdenent_options): Add tracer.
3094 (rest_of_compilation): Call tracer.
3095 * tracer.c: New file.
3096 * invoke.texi (-ftracer): Document.
3097 (--param tracer-*): Document.
3098
3099 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
3100
3101 * tree-inline.c (expand_call_inline): Make the statement
3102 expression we generate have a COMPOUND_STMT.
3103
3104 2002-06-01 Roger Sayle <roger@eyesopen.com>
3105
3106 * gcse.c (cprop_cc0_jump): Function deleted.
3107 (cprop_jump): Take an additional argument which is the possibly
3108 NULL cc setting insn immediately before the conditional jump.
3109 When a MODE_CC set is present, substitute it into the JUMP_INSN
3110 before attempting the constant propagation.
3111 (cprop_insn): Recognize cc setters followed by conditional jumps
3112 as a special case. Use cprop_jump instead of cprop_cc0_jump.
3113 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
3114 (find_bypass_set): New function based upon find_avail_set used by
3115 cprop, but finds constant expressions available at the end of
3116 basic blocks.
3117 (bypass_block): New function. Given a basic block that begins
3118 with a conditional jump and multiple incoming edges, perform
3119 the jump bypass optimization.
3120 (bypass_conditional_jumps): New function. Call bypass_block with
3121 each suitable basic block in the CFG using a simple single pass.
3122
3123 2002-06-01 Roger Sayle <roger@eyesopen.com>
3124
3125 * tree.c (real_minus_onep): New function to test for -1.0.
3126 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
3127
3128 2002-06-01 Roger Sayle <roger@eyesopen.com>
3129
3130 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
3131 and "!p && !q" into "(p|q) == 0" under suitable conditions.
3132
3133 2002-06-01 Andreas Jaeger <aj@suse.de>
3134
3135 * cppexp.c (cpp_classify_number): Cast precission to int for
3136 correct printf format.
3137
3138 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
3139
3140 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
3141 expected, but don't really exist: atmega83, atmega85, attiny10.
3142 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
3143 emulations for all devices.
3144 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
3145 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
3146
3147 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
3148
3149 * config/h8300/h8300-protos.h: Add a prototype for
3150 h8300_shift_needs_scratch_p.
3151 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
3152 * config/h8300/h8300.h (OK_FOR_R): New.
3153 (OK_FOR_S): Likewise.
3154 (OK_FOR_T): Likewise.
3155 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
3156 * config/h8300/h8300.md (anonymous shift patterns): Use
3157 constraints R, S, and T.
3158
3159 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3160
3161 * basic-block.h (struct basic_block_def): New field loop_father.
3162 (BB_VISITED): New flag.
3163 (struct loop): New field pred, removed field shared.
3164 (struct loops): New field parray.
3165 (LOOP_EXITS_DOMS): Removed.
3166 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
3167 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
3168 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
3169 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
3170 verify_loop_structure): Declare.
3171 * cfg.c (entry_exit_blocks): Initialize loop_father field.
3172 * cfganal.c (dfs_enumerate_from): New function.
3173 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
3174 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3175 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
3176 flow_loop_dump, flow_loops_dump, flow_loops_free,
3177 flow_loop_tree_node_add, flow_loop_level_compute,
3178 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
3179 flow_loop_outside_edge_p): Modified for new infrastructure.
3180 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3181 redirect_edge_with_latch_update, flow_loop_free): New static functions.
3182 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3183 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3184 find_common_loop, verify_loop_structure, loop_latch_edge,
3185 loop_preheader_edge): New functions.
3186 (flow_loops_cfg_dump): Do not show dominators, as this information
3187 does not remain up to date long.
3188 (flow_loops_find): Store results in new format.
3189 * predict.c (propagate_freq, estimate_probability,
3190 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3191 infrastructure.
3192
3193 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
3194
3195 * except.c (nothrow_function_p): Walk epilogue delay list
3196 checking the insn, not the chain for potential throws.
3197
3198 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3199
3200 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3201 (install): Refer to install-cpp directly.
3202 (uninstall-cpp): Folded into uninstall rule.
3203 * configure.in: Delete all code relating to --disable-cpp.
3204 * configure: Regenerate.
3205 * config/t-install-cpp: Delete.
3206
3207 2002-05-31 Richard Henderson <rth@redhat.com>
3208
3209 * configure.in (HAVE_AS_TLS): Add alpha tests.
3210 * configure: Rebuild.
3211 * config/alpha/alpha.c (TARGET_AS_TLS): New.
3212 (alpha_tls_size, alpha_tls_size_string): New.
3213 (overide_options): Set it. Always install machine_status hooks.
3214 (input_operand): Accept got tls predicates.
3215 (local_symbol_p): Merge into ...
3216 (local_symbolic_operand): ... here. Reject tls symbols.
3217 (global_symbolic_operand): Likewise.
3218 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3219 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3220 (tp16_symbolic_operand, tp32_symbolic_operand): New.
3221 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3222 (alpha_encode_section_info): Handle TLS symbols.
3223 (alpha_strip_name_encoding): Likewise.
3224 (alpha_legitimate_address_p): Likewise.
3225 (alpha_legitimize_address): Likewise.
3226 (alpha_expand_mov): Early exit to avoid nop moves.
3227 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
3228 (alpha_init_machine_status, alpha_mark_machine_status,
3229 alpha_free_machine_status): Always define.
3230 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3231 (print_operand, print_operand_address): Add TLS relocs.
3232 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3233 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3234 (TARGET_SWITCHES): Add -mtls-kernel.
3235 (alpha_tls_size, alpha_tls_size_string): New.
3236 (TARGET_OPTIONS): Add -mtls-size=.
3237 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3238 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3239 (ASM_OUTPUT_LABELREF): Skip %.
3240 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3241 (PREDICATE_CODES): Update.
3242 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3243 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3244 UNSPEC_TP, UNSPECV_SET_TP): New.
3245 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3246 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3247 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3248 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3249 (call_value_osf_2_er): Accept anything as op4.
3250 * config/alpha/alpha-protos.h: Update.
3251 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3252
3253 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3254
3255 * cppinit.c (append_include_chain): Always pay attention to
3256 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
3257 marker on argument.
3258
3259 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
3260
3261 * target.h: Fix formatting.
3262 * timevar.h: Likewise.
3263 * tlink.c: Likewise.
3264 * toplev.c: Likewise.
3265 * toplev.h: Likewise.
3266 * tree.c: Likewise.
3267 * tree-dump.h: Likewise.
3268 * tree.h: Likewise.
3269 * tree-inline.h: Likewise.
3270 * unroll.c: Likewise.
3271 * unwind-dw2.c: Likewise.
3272 * unwind-dw2-fde.c: Likewise.
3273 * unwind-dw2-fde-glibc.c: Likewise.
3274 * unwind-dw2-fde.h: Likewise.
3275 * unwind.h: Likewise.
3276 * unwind-sjlj.c: Likewise.
3277 * varasm.c: Likewise.
3278 * varray.h: Likewise.
3279 * vmsdbg.h: Likewise.
3280 * vmsdbgout.c: Likewise.
3281 * xcoffout.h: Likewise.
3282
3283 2002-05-31 Igor Shevlyakov <igor@microunity.com>
3284
3285 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
3286 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3287
3288 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
3289
3290 * gcc.c (cpp_unique_options): Remove "-d" options.
3291 (cpp_debug_options): New spec string.
3292 (default_compilers): Use it.
3293 * objc/lang-specs.h: Likewise.
3294
3295 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
3296
3297 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
3298 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3299 * gcc/mklibgcc.in: Likewise.
3300 * gcc/config/arc/t-arc: Likewise.
3301 * gcc/configure.in: Likewise.
3302 * gcc/configure: Regenerate.
3303
3304 2002-05-31 Stan Shebs <shebs@apple.com>
3305 Turly O'Connor <turly@apple.com>
3306
3307 * c-decl.c (struct binding_level): Change int field n_incomplete
3308 to tree list incomplete_list.
3309 (clear_binding_level): Init field with NULL.
3310 (pushdecl): Add incomplete type to list.
3311 (mark_binding_level): Mark the incomplete list.
3312 (finish_struct): Scan the incomplete list for types instead
3313 of all decls in the current binding level.
3314
3315 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3316
3317 * pa.c (output_millicode_call): Add missing '%' characters.
3318 (output_call): Likewise.
3319
3320 2002-05-31 David Edelsohn <edelsohn@gnu.org>
3321
3322 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3323 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3324
3325 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
3326
3327 * varasm.c (mark_constant_pool): Walk epilogue delay list
3328 checking the insn, not the chain for potential constants.
3329
3330 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
3331
3332 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3333
3334 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
3335
3336 * i386.c (classify_argument): Properly handle base types.
3337
3338 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3339 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3340 registers.
3341
3342 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3343
3344 * gcse.c (gcse_emit_move_after): New.
3345 (pre_delete, hoist_store): Use it.
3346
3347 * reload1.c (emit_input_reload_insns): Use constrain_operands
3348 instead of constraint_accepts_reg_p to verify optimization.
3349 (constraint_accepts_reg_p): Kill
3350
3351 * reload1.c (reload_cse_delete_noop_set): Kill.
3352 (reload_cse_simplify): use delte_insn_and_edges.
3353
3354 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3355
3356 * cfgloop.c (flow_loops_find): Initialize first and last fields
3357 correctly.
3358
3359 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
3360
3361 * c-common.c (builtin_define_std): Correct logic.
3362
3363 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3364
3365 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3366 (output_call): Likewise.
3367
3368 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3369
3370 * pa.c: Move output.h include after tree.h include.
3371 (pa_asm_output_mi_thunk): Constify identifier lab.
3372
3373 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3374
3375 * config/ns32k/ns32k.h: Define named constants for the
3376 bits in target_flags and use them.
3377 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3378
3379 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3380
3381 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3382 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3383 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3384 default scheduling model.
3385 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3386 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3387 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3388 * doc/install.texi (hppa*-*-*): Document default scheduling.
3389
3390 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3391
3392 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3393
3394 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3395
3396 * config.gcc (ns32k-*-netbsd*): Set tm_file to
3397 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3398 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3399 netbsd.h, or netbsd-aout.h.
3400
3401 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3402
3403 * longlong.h (count_trailing_zeros): Add missing \, and clean up
3404 whitespace in __ns32000__ case.
3405
3406 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
3407
3408 * expr.c (expand_expr): Output partially zeroed out vectors with
3409 output_constant_def.
3410
3411 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3412
3413 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3414 (sh-*-netbsdelf*)
3415 (shl*-*-netbsdelf*): New targets.
3416 * config/sh/netbsd-elf.h: New file.
3417 * config/sh/t-netbsd: New file.
3418
3419 2002-05-30 Richard Henderson <rth@redhat.com>
3420 Eric Botcazou <ebotcazou@multimania.com>
3421
3422 PR optimization/6822
3423 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3424 to unsigned int for op1 comparisons. Use gen_int_mode.
3425
3426 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
3427
3428 * expmed.c (const_mult_add_overflow_p): New.
3429 * expr.h: Declare it.
3430 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3431 Don't eliminate the biv if the giv has a constant multiplier and
3432 the rhs argument of the comparison does satisfy the predicate.
3433 Use expand_mult_add to compute the replacement constant.
3434
3435 2002-05-30 Osku Salerma <osku@iki.fi>
3436
3437 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3438 (c_common_get_alias_set): Handle it.
3439 * doc/extend.texi: Document it.
3440
3441 2002-05-30 Richard Henderson <rth@redhat.com>
3442
3443 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3444 * toplev.c (process_options): Don't check it.
3445 * doc/tm.texi: Don't document it.
3446 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3447 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3448 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3449 frame pointer optimization if current_function_profile.
3450
3451 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
3452
3453 * langhooks.c: Fix formatting.
3454 * langhooks.h: Likewise.
3455 * lcm.c: Likewise.
3456 * libgcc2.c: Likewise.
3457 * lists.c: Likewise.
3458 * local-alloc.c: Likewise.
3459 * loop.c: Likewise.
3460 * loop.h: Likewise.
3461
3462 2002-05-30 Marc Espie <espie@openbsd.org>
3463
3464 * config.gcc (sparc64-*-openbsd*): New.
3465 * config/sparc/openbsd1-64.h: New.
3466 * config/sparc/openbsd64.h: New.
3467
3468 2002-05-30 Jeff Law <law@redhat.com>
3469
3470 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
3471 a dead insn with a REG_RETVAL note when the entire libcall is not
3472 dead and remove the associated REG_LIBCALL note at the same time.
3473
3474 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3475
3476 * lcm.c (output.h): #include.
3477 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3478 as an ordinary block.
3479 (optimize_mode_switching): Don't pretend that the exit block is
3480 an ordinary block, or handle sucessors of entry block specially.
3481 Instead, split edges from entry block and to exit block, and
3482 put a computing definition on the thus gained post-entry-block,
3483 and a need on the pre-exit-block.
3484
3485 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3486
3487 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3488 * rtl.texi: Document 'B'
3489
3490 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3491
3492 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3493 at run-time.
3494 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3495
3496 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
3497
3498 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3499 const0_rtx instead of NULL_RTX when in error.
3500 (altivec_expand_abs_builtin): Same.
3501 (rs6000_expand_binop_builtin): Same.
3502 (altivec_expand_predicate_builtin): Same.
3503 (altivec_expand_stv_builtin): Same.
3504 (rs6000_expand_ternop_builtin): Same.
3505 (altivec_expand_builtin): Same.
3506
3507 2002-05-29 David S. Miller <davem@redhat.com>
3508
3509 * rtl.h (clear_emit_caches): Delete.
3510 * integrate.c (output_inline_function): Don't call it.
3511 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3512 (clear_emit_caches): Delete definition.
3513 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3514
3515 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
3516
3517 * config/mmix/mmix.c: Include real.h.
3518 (mmix_constant_address_p): Remove redundant test before switch.
3519
3520 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3521
3522 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3523 only if not already defined.
3524
3525 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3526
3527 * config/h8300/h8300-protos.h: Remove prototypes for
3528 ok_for_bclr and small_power_of_two.
3529 * config/h8300/h8300.c (small_power_of_two): Remove.
3530 (ok_for_blcr): Likewise.
3531 (fix_bit_operand): Make WHAT deal with an integer instead of a
3532 constraint character.
3533 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3534 (CONST_OK_FOR_P): Likewise.
3535 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3536 CONST_OK_FOR_P any more.
3537 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3538 of fix_bit_operand.
3539 (iorqi3): Likewise.
3540 (xorqi3): Likewise.
3541
3542 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3543
3544 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3545 (CPP_PREDEFINES): Make sure this is undefined.
3546 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3547 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
3548 or -U__MIPSEB__ before defining one or the other. Instead,
3549 use %(subtarget_endian_default) if neither -EB nor -EL are
3550 specified.
3551 (SUBTARGET_EXTRA_SPECS): Define.
3552 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
3553 %(netbsd_cpp_spec).
3554
3555 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
3556
3557 * doc/md.texi (Patterns): Note pattern condition pitfall
3558 for unnamed insn.
3559
3560 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
3561
3562 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3563 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
3564 ternary operations from here...
3565 (rs6000_expand_builtin): ...to here.
3566 New argument expandedp.
3567 Change all instances of altivec_expand_binop_builtin to
3568 rs6000_expand_binop_builtin.
3569 (altivec_expand_unop_builtin): Rename to
3570 rs6000_expand_unop_builtin.
3571 (altivec_expand_binop_builtin): Rename to
3572 rs6000_expand_binop_builtin.
3573 (altivec_expand_ternop_builtin): Rename to
3574 rs6000_expand_ternop_builtin.
3575
3576 2002-05-29 Richard Henderson <rth@redhat.com>
3577
3578 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3579 (TARGET_BI_ARCH): Likewise.
3580 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3581 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3582 (TARGET_64BIT_DEFAULT): Default to 0.
3583 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3584
3585 2002-05-29 Richard Henderson <rth@redhat.com>
3586
3587 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3588 (get_pc_thunk_name): New.
3589 (output_set_got): Use it.
3590 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3591 into linkonce sections.
3592
3593 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3594
3595 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3596 (CPP_PREDEFINES): Make sure this is undefined.
3597 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3598 (CPP_SUBTARGET_SPEC): Don't provide different versions for
3599 default-32 and default-64. Just always use %(netbsd_cpp_spec).
3600 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3601 cpp_subtarget_spec64. Add netbsd_cpp_spec.
3602 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3603 (CPP_PREDEFINES): Make sure this is undefined.
3604 (SUBTARGET_EXTRA_SPECS): Define.
3605 (CPP_SPEC): Use %(netbsd_cpp_spec).
3606
3607 2002-05-29 Jeff Law <law@redhat.com>
3608
3609 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3610
3611 * flow.c (propagate_one_insn): Do not remove a dead insn if it
3612 contains a REG_RETVAL note.
3613
3614 * haifa-sched (sched_analyze): Remove another useless clearing
3615 of SCHED_GROUP_P I missed yesterday.
3616
3617 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3618 * pa.c (pa_asm_output_mi_thunk): New function.
3619 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3620
3621 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3622 Marek Michalkiewicz <marekm@amelek.gda.pl>
3623
3624 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3625 (avr_asm_only_p): Make non-static.
3626 (enum avr_arch): Remove.
3627 (avr_arch_types): New.
3628 (avr_mcu_types): Update.
3629 (avr_override_options): Use avr_arch_types table instead of switch.
3630 * avr.h (CPP_PREDEFINES): Die.
3631 (avr_base_arch_macro, avr_extra_arch_macro): New.
3632 (TARGET_CPU_CPP_BUILTINS): New.
3633 (CPP_SPEC, EXTRA_SPECS): Simplify.
3634 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3635 CPP_AVR5_SPEC): Die.
3636
3637 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3638
3639 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3640 NETBSD_OS_CPP_BUILTINS_AOUT.
3641 (SUBTARGET_EXTRA_SPECS): Define.
3642 (CPP_SPEC): Use %(netbsd_cpp_spec).
3643
3644 2002-05-29 Richard Henderson <rth@redhat.com>
3645
3646 * config/i386/i386.c (ix86_output_function_epilogue): New.
3647 (TARGET_ASM_FUNCTION_EPILOGUE): New.
3648 (pic_label_name): Remove.
3649 (pic_labels_used): New.
3650 (ix86_asm_file_end): Emit one pc load stub for each register used.
3651 (output_set_got): Generate deep pc load to any register.
3652 (ix86_select_alt_pic_regnum): New.
3653 (ix86_save_reg): Don't save pic register if we can find a valid
3654 call-clobbered replacement.
3655 (ix86_expand_prologue): If we found a valid replacement, renumber
3656 pic_offset_table_rtx.
3657 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3658 pic_offset_table_rtx after reload.
3659 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3660 * config/i386/i386.md (set_got): Make insn, not expander.
3661 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3662
3663 2002-05-29 Richard Henderson <rth@redhat.com>
3664
3665 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3666 alignment for alloca.
3667
3668 2002-05-29 Richard Henderson <rth@redhat.com>
3669
3670 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3671 (print_operand_address): Only add rip for symbolic addresses
3672 for which we do not have another relocation type.
3673
3674 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3675
3676 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3677 (EXTRA_SPECS): Add netbsd_cpp_spec.
3678 (CPP_SPEC): Use %(netbsd_cpp_spec).
3679 (CPP_PREDEFINES): Remove.
3680 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3681 (EXTRA_SPECS): Define.
3682 (CPP_SPEC): Use %(netbsd_cpp_spec).
3683 (CPP_PREDEFINES): Remove.
3684
3685 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3686
3687 PR preprocessor/6844
3688 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3689 NUL.
3690
3691 2002-05-29 Eric Christopher <echristo@redhat.com>
3692
3693 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3694 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3695
3696 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
3697
3698 * config/fr30/fr30.md: Remove previous restriction on splits.
3699 Enforce conformance through gen_lowpart and cont_int_operand.
3700 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
3701 as the assembler does not support ".bss".
3702
3703 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3704
3705 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3706 (CPP_PREDEFINES): Remove.
3707 (SUBTARGET_EXTRA_SPECS): Define.
3708 (CPP_SPEC): Use %(netbsd_cpp_spec).
3709 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3710 (CPP_PREDEFINES): Remove.
3711 (SUBTARGET_EXTRA_SPECS): Define.
3712 (CPP_SPEC): Use %(netbsd_cpp_spec).
3713 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3714 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3715 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3716 Add netbsd_cpp_spec.
3717 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3718
3719 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3720 Zack Weinberg <zack@codesourcery.com>
3721
3722 * cppexp.c (cpp_num): Move to cpplib.h.
3723 (CPP_ERROR): Remove.
3724 (interpret_float_suffix, interpret_int_suffix): New.
3725 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3726 (cpp_classify_number, cpp_interpret_integer): New.
3727 (interpret_number): Remove.
3728 (eval_token): Update to use new routines.
3729 * cpphash.h (cpp_num_part): Move to cpplib.h.
3730 * cppinit.c (cpp_post_options): Set warn_long_long.
3731 * cpplib.h (struct cpp_options): Add warn_long_long.
3732 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3733 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3734 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3735 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3736 cpp_interpret_integer): New.
3737
3738 2002-05-29 Joel Sherrill <joel@OARcorp.com>
3739
3740 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3741
3742 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3743
3744 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3745 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3746 (CPP_SUBTARGET_SPEC): Define.
3747 (SUBTARGET_EXTRA_SPECS): Define.
3748 (CPP_SPEC): Remove.
3749
3750 2002-05-29 Chris Lattner <sabre@nondot.org>
3751
3752 * ssa.c (rename_insn_1): Rename uses of undefined registers to
3753 prevent confusion if/when the register is defined.
3754
3755 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
3756
3757 PR target/6838
3758 * config/cris/cris.md: Fix typos and thinkos in comments.
3759 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3760 second alternative.
3761 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3762 ("*mov_sideqi_mem"): Similar, but for operand 3.
3763 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3764 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3765 Remove spurious mode specifier on operand 2.
3766
3767 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3768
3769 * config/h8300/h8300-protos.h: Remove the prototype for
3770 o_operand.
3771 Add prototypes for single_one_operand and single_zero_operand.
3772 * config/h8300/h8300.c (o_operand): Remove.
3773 (single_one_operand): New.
3774 (single_zero_operand): Likewise.
3775 (print_operand): For 'V' operand, and the operand with 0xff.
3776 For 'V' and 'W' operands, do not and the bit position with 7.
3777 * config/h8300/h8300.md (various anonymous patterns): Replace
3778 use of exact_log2 with single_one_operand/single_zero_operand.
3779
3780 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3781
3782 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3783
3784 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3785
3786 * config/s390/s390.c (legitimate_pic_operand_p): Do not
3787 accept symbolic LARL operands.
3788 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
3789 epilogue insns.
3790
3791 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
3792
3793 * config/s390/s390.md (cmpstr_64/31): Mark whole
3794 input registers as used.
3795
3796 2002-05-28 Richard Henderson <rth@redhat.com>
3797
3798 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3799 not current_function_uses_pic_offset_table and
3800 current_function_uses_const_pool; examine current_function_profile.
3801 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
3802 input to blockage if needed.
3803 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3804 (legitimize_pic_address): Likewise. Set regs_ever_live for
3805 pic_offset_table_rtx when invoked during reload.
3806 * config/i386/i386.h (FINALIZE_PIC): Remove.
3807 * config/i386/i386.md (tablejump): Reformat. Do not set
3808 current_function_uses_pic_offset_table.
3809 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3810 (blockage): Accept anything as operand 0.
3811
3812 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3813
3814 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3815 common CPP built-ins for all NetBSD a.out targets.
3816 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3817 common CPP built-ins for all NetBSD ELF targets.
3818 * config/netbsd.h: Add missing notice.
3819 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3820 for all NetBSD targets.
3821 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3822 for all NetBSD targets using an LP64 code model.
3823 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3824 NetBSD targets.
3825
3826 2002-05-28 Richard Henderson <rth@redhat.com>
3827
3828 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3829 update if UPDATE_LIFE_LOCAL.
3830
3831 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3832
3833 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3834
3835 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3836 Jason R. Thorpe <thorpej@wasabisystems.com>
3837
3838 config/sh reorganization to factor out endianness and coff:
3839
3840 * config/sh/little.h: New file.
3841 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3842 defined, define to 0 to select big-endian.
3843 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
3844 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3845 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3846 * config/sh/t-be: New file.
3847 * config/sh/t-le: New file.
3848
3849 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3850 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3851 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3852 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3853 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3854 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3855 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3856 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3857 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3858 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3859 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3860 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3861 (LINK_SPEC): Define to SH_LINK_SPEC.
3862 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3863 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3864 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3865 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3866 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3867 * config/sh/coff.h: New file.
3868 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3869 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3870 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3871 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3872 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3873 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3874 (PTRDIFF_TYPE): Likewise.
3875 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3876 (CPP_PREDEFINES): Don't define.
3877 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3878 (LINK_SPEC): Define to SH_LINK_SPEC.
3879 (LINK_EMUL_PREFIX): Redefine.
3880 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3881 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3882 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3883 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3884 (TARGET_OS_CPP_BUILTINS): Define.
3885 (TARGET_DEFAULT): Redefine.
3886 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3887 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3888 (LINK_SPEC): Don't redefine.
3889 (LINK_DEFAULT_CPU_EMUL): Redefine.
3890 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3891 * sh.c (sh_asm_named_section): Don't declare / define.
3892 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3893 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3894 (sh64-*-elf* tm_file): Likewise.
3895 (sh-*-rtemself* tm_file): Likewise.
3896 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
3897 (sh-*-linux* tmake_file): Add sh/t-le.
3898 (sh-*-rtems* tm_file): Add sh/coff.h
3899 (sh-*-* tm_file): Likewise.
3900
3901 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3902
3903 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3904 CONSTANT_POOL_ADDRESS_P.
3905
3906 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3907
3908 2002-05-28 David Edelsohn <edelsohn@gnu.org>
3909 Jeff Law <law@redhat.com>
3910
3911 * optabs.c (expand_binop): Fix nwords sign warnings.
3912 generate pseudo for add_optab.
3913
3914 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3915 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3916
3917 2002-05-28 Marc Espie <espie@openbsd.org>
3918
3919 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
3920 inherited from gas.h.
3921 (ASM_QUAD): Undef. OpenBSD does not support it.
3922
3923 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
3924
3925 * doc/install.texi (binaries): Change mingw binaries
3926 link to www.mingw.org.
3927
3928 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3929
3930 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3931
3932 2002-05-28 Richard Henderson <rth@redhat.com>
3933
3934 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3935 bottom alignment for leaf functions.
3936
3937 2002-05-28 Zack Weinberg <zack@codesourcery.com>
3938
3939 * config/pa/milli32.S, config/pa/lib1funcs.asm,
3940 config/sparc/sol2-g1.asm: Delete unused files.
3941
3942 2002-05-28 Richard Henderson <rth@redhat.com>
3943
3944 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3945
3946 * flow.c (calculate_global_regs_live): Rename call_used to
3947 invalidated_by_call. Initialize from regs_invalidated_by_call
3948 instead of call_used_regs.
3949
3950 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3951 DECL_EXTERNAL.
3952
3953 2002-05-28 Zack Weinberg <zack@codesourcery.com>
3954
3955 * tree.h: Don't include real.h.
3956 Forward-declare struct realvaluetype.
3957 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3958 contain it.
3959 (TREE_REAL_CST_PTR): New accessor.
3960 (TREE_REAL_CST): Update.
3961 * real.h: Include machmode.h.
3962 (realvaluetype): Make it struct realvaluetype, not a typedef.
3963 (build_real): Prototype here.
3964
3965 * tree.c: Include real.h.
3966 (build_real): Allocate the REAL_VALUE_TYPE as a separate
3967 object in GC memory, set TREE_REAL_CST_PTR to point to it.
3968 (build_real_from_int_cst): Use build_real.
3969 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3970 REAL_CST.
3971
3972 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3973 fold-const.c, print-tree.c, real.c: Include real.h.
3974 * Makefile.in: Update dependency lists.
3975
3976 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3977
3978 * basic-block.h (last_basic_block): Declare.
3979 (expunge_block_nocompact): Declaration removed.
3980 (compact_blocks): Declare.
3981 * cfg.c (last_basic_block): New variable.
3982 (expunge_block_nocompact): Removed.
3983 (expunge_block): Do not compact basic blocks.
3984 (compact_blocks): New.
3985 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3986 longer change.
3987 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3988 last_basic_block.
3989 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3990 real positions of blocks.
3991 (delete_unreachable_blocks): Simplified -- quadratic behavior now
3992 cannot occur.
3993 (cleanup_cfg): Compact blocks.
3994 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3995 basic_block_info varray.
3996 (flow_delete_block): Comment update.
3997 (back_edge_of_syntactic_loop_p): Modify position check code.
3998 (verify_flow_info): Update checking.
3999 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4000 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4001 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4002 indices no longer change.
4003 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4004 last_basic_block.
4005 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4006 * profile.c (branch_prob): Compact blocks.
4007 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4008 last_basic_block.
4009
4010 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
4011
4012 * config/h8300/h8300.md (two anonymous patterns): New.
4013
4014 2002-05-28 David S. Miller <davem@redhat.com>
4015
4016 * config/sparc/sparc.md (cpu): Tidy.
4017 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4018 'trap'.
4019 (in_call_delay): Delete reference to 'return' type.
4020 (eligible_for_return_delay, in_return_delay, define_delay
4021 referencing those): Delete.
4022 (rest of file): Use new type attributes as appropriate.
4023 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4024 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4025 * config/sparc/ultra1_2.md (us1_single): New reservation.
4026 (us1_ialuX): Likewise.
4027 * config/sparc/ultra3.md (us3_single): Likewise.
4028 (us3_ialuX): Likewise.
4029 (us3_imul, us3_idiv): Tweak.
4030
4031 2002-05-28 Richard Henderson <rth@redhat.com>
4032
4033 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4034 STRING_CST.
4035
4036 2002-05-28 Richard Henderson <rth@redhat.com>
4037
4038 * config.gcc: Obsolete mn10200.
4039
4040 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
4041
4042 * cppexp.c (interpret_number): Optimize for single-digit
4043 and less-than-half-precision cases.
4044 (num_trim, num_positive, num_div_op): Cast constants.
4045
4046 2002-05-27 Bo Thorsen <bo@suse.de>
4047
4048 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4049 3.1 branch. The file was made by Jakub Jelinek.
4050 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4051 support so multilib doesn't break. And don't define this at all
4052 when -Dinhibit_libc is used.
4053 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4054 * config/i386/t-linux64: Implement full multilib support. Patch
4055 originally done by Andreas Jaeger and Jakub Jelinek.
4056
4057 2002-05-27 Roger Sayle <roger@eyesopen.com>
4058
4059 * c-common.c: Add support for __attribute__((nothrow)) to specify
4060 that a function cannot throw an exception (using TREE_NOTHROW).
4061 (handle_nothrow_attribute): New function to process this attribute.
4062
4063 * doc/extend.texi: Document the new nothrow function attribute.
4064
4065 2002-05-27 H.J. Lu (hjl@gnu.org)
4066
4067 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
4068 (num_positive): Likewise.
4069 (num_div_op): Likewise.
4070
4071 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4072
4073 * c-common.c (c_common_init): Always use intmax_t.
4074
4075 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4076
4077 * c-common.c (c_common_init): Use intmax_t for now.
4078
4079 2002-05-24 Andrew Haley <aph@redhat.com>
4080
4081 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
4082 if T is a boolean type.
4083
4084 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4085
4086 * basic-block.h (last_basic_block): Defined as synonym for
4087 n_basic_blocks.
4088 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
4089 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4090 flow_dfs_compute_reverse_init): Replaced relevant occurences of
4091 n_basic_blocks with last_basic_block.
4092 * cfgbuild.c (make_edges): Likewise.
4093 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
4094 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
4095 * combine.c (combine_instructions): Likewise.
4096 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
4097 iterative_dataflow_bitmap): Likewise.
4098 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4099 calc_idoms, idoms_to_doms): Likewise.
4100 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
4101 Likewise.
4102 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
4103 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
4104 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
4105 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
4106 delete_null_pointer_checks, compute_code_hoist_vbeinout,
4107 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4108 compute_store_table, build_store_vectors): Likewise.
4109 * haifa-sched.c (sched_init): Likewise.
4110 * ifcvt.c (if_convert): Likewise.
4111 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4112 pre_edge_lcm, compute_available, compute_nearerout,
4113 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
4114 Likewise.
4115 * predict.c (estimate_probability, process_note_prediction,
4116 note_prediction_to_br_prob): Likewise.
4117 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
4118 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4119 * regrename.c (copyprop_hardreg_forward): Likewise.
4120 * resource.c (init_resource_info): Likewise.
4121 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
4122 init_regions, schedule_insns): Likewise.
4123 * ssa-ccp.c (ssa_const_prop): Likewise.
4124 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4125 * ssa.c (compute_dominance_frontiers,
4126 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
4127
4128 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
4129 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
4130 sizes consistently.
4131
4132 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4133
4134 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
4135 new.
4136 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
4137 hoist_insn_after, hoist_insn_to_edge): New.
4138
4139 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
4140
4141 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
4142 (PROP_FINAL): Include.
4143 * flow.c (life_analysis, update_life_info,
4144 init_propagate_block_info, mark_set_1, mark_used_rgs):
4145 Support SCAN_DEAD_STORE.
4146
4147 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4148
4149 * c-common.c (c_common_init): Set CPP arithmetic precision.
4150 * cppexp.c (cpp_num_part): Move typedef ...
4151 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
4152 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
4153 (sanity_checks): Update.
4154
4155 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
4156
4157 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4158 (mkheaders): New rule.
4159 (install-mkheaders): New rule.
4160 * configure.in (all_outputs): Add mkheaders.
4161 * configure: Regenerate.
4162 * mkheaders.in: New file.
4163
4164 2002-05-26 Jakub Jelinek <jakub@redhat.com>
4165
4166 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
4167
4168 2002-05-26 Andreas Jaeger <aj@suse.de>
4169
4170 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
4171
4172 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
4173
4174 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
4175 right_shift): Remove.
4176 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
4177 HIGH_PART): New.
4178 (struct op): Use cpp_num.
4179 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
4180 num_part_mul, num_unary_op, num_binary_op, num_negate,
4181 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4182 num_div_op, num_lshift, num_rshift, append_digit): New.
4183 (interpret_number, parse_defined, eval_token, reduce): Update
4184 for two-integer arithmetic.
4185 (binary_handler): New typedef.
4186 (optab): Update.
4187 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4188 (_cpp_parse_expr, reduce): Update to handle two-integers.
4189 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4190
4191 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4192
4193 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4194 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4195 branch insn into account, do not assume 1.
4196 (avr_out_sbxx_branch): New function. Optimize cases of skipping
4197 over single word insn. Handle upper half of I/O space too.
4198 * config/avr/avr.md (*sbrx_branch): Use it.
4199 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4200 (*sbix_branch, *sbix_branch_bit7): Likewise.
4201 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4202 Use RTL peepholes to optimize register operand sign tests.
4203
4204 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4205
4206 * config/avr/avr.c (avr_asm_only_p): New variable.
4207 (avr_override_options): Set it here if AVR1.
4208 (asm_file_start): Test it here, report an error if set.
4209
4210 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
4211
4212 * alias.c: Fix formatting.
4213 * attribs.c: Likewise.
4214 * bb-reorder.c: Likewise.
4215 * bitmap.c: Likewise.
4216 * bitmap.h: Likewise.
4217 * builtins.c: Likewise.
4218
4219 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4220
4221 * reload.c (find_valid_class): Accept new argument DEST,
4222 choose class accordingly.
4223 (push_reload): Update callers.
4224
4225 2002-05-26 Andreas Jaeger <aj@suse.de>
4226
4227 * combine.c (combine_instructions): Do not indent #if for
4228 traditional C.
4229
4230 2002-05-25 Richard Henderson <rth@redhat.com>
4231
4232 * c-pragma.c (apply_pragma_weak): Convert value identifier to
4233 string for decl_attributes.
4234 (handle_pragma_weak): Call assemble_alias if we're modifying
4235 an existing decl.
4236
4237 2002-05-25 Richard Henderson <rth@redhat.com>
4238
4239 PR target/6788
4240 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4241 using rtl instead of fprintf.
4242 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4243 * config/sparc/sparc-protos.h: Update.
4244
4245 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4246
4247 * Makefile.in (C_COMMON_H): Fix.
4248 Update other targets.
4249 * c-common.c: Don't include c-lex.h.
4250 (builtin_define_with_value): Make static and prototype.
4251 (builtin_define_std): Move from c-lex.h.
4252 * c-common.h (init_c_lex): Move from c-lex.h.
4253 * c-decl.c: Don't include c-lex.h.
4254 (make_pointer_declarator): Move from c-parse.in.
4255 * c-lex.c: Don't include c-lex.h.
4256 * c-lex.h: Remove.
4257 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4258 (make_pointer_declarator): Move to c-decl.c.
4259 * c-pragma.c: Don't include c-lex.h.
4260 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4261 * c-tree.h (make_pointer_declarator): New.
4262 doc:
4263 * passes.texi, tm.texi: Update.
4264 objc:
4265 * Make-lang.in: Update and correct.
4266 * objc-act.c: Don't include c-lex.h or cpplib.h.
4267 treelang:
4268 * treetree.c: Don't include c-lex.h.
4269 config:
4270 * darwin-c.c: Don't include c-lex.h.
4271 * c4x/c4x-c.c: Don't include c-lex.h.
4272 * c4x/t-c4x: Update.
4273 * i370/i370-c.c: Don't include c-lex.h.
4274 * i370/t-i370: Update.
4275 * i960/i960-c.c: Don't include c-lex.h.
4276 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4277 * i960/t-960bare: Update.
4278 * i960/t-vxworks: Update.
4279 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4280 * rs6000/t-darwin: Update.
4281 * rs6000/t-rs6000-c-rule: Update.
4282 * v850/v850-c.c: Don't include c-lex.h.
4283 * v850/v850.c: Don't include c-lex.h or cpplib.h.
4284
4285
4286 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4287
4288 * tree.def: Fix typos.
4289 * doc/install.texi: Likewise.
4290
4291 2002-05-25 Richard Henderson <rth@redhat.com>
4292
4293 * configure.in (HAVE_AS_TLS): Add ia64 test.
4294 * configure: Rebuild.
4295 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4296 (override_options): Set it.
4297 (TARGET_HAVE_TLS): New.
4298 (sdata_symbolic_operand): Look for 's'.
4299 (tls_symbolic_operand): New.
4300 (ia64_expand_load_address): Abort for tls symbols.
4301 (gen_tls_get_addr): New.
4302 (gen_thread_pointer): New.
4303 (ia64_expand_move): Split out from movdi. Handle tls symbols.
4304 (rtx_needs_barrier): Add new unspecs.
4305 (ia64_encode_section_info): Handle tls symbols.
4306 (ia64_strip_name_encoding): Strip two encoding chars.
4307 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4308 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4309 (TARGET_OPTIONS): Add tls-size.
4310 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4311 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4312 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4313 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4314 (movsf, movdf): Likewise.
4315 (movdi_symbolic): Use match_scratch. Don't split if we won't
4316 have a scratch availiable.
4317 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4318 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4319 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4320 * config/ia64/ia64-protos.h: Update.
4321 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4322 sdata_symbolic_operand.
4323 (ASM_OUTPUT_LABELREF): Strip two characters.
4324
4325 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4326
4327 * combine.c (simplify_set): Remove an unnecessary subreg.
4328
4329 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
4330
4331 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4332
4333 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4334
4335 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4336
4337 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
4338
4339 2002-05-25 Roger Sayle <roger@eyesopen.com>
4340
4341 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4342 (cond (compare x y) 0) into the equivalent (cond x y).
4343
4344 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4345
4346 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
4347
4348 2002-05-24 Zack Weinberg <zack@codesourcery.com>
4349
4350 * config.gcc: Remove all stanzas for previously obsoleted
4351 systems. Where necessary, add explicit error stanzas to
4352 prevent removed systems from being misidentified as something
4353 else. Begin a fresh obsoletions list, with the systems that
4354 were reprieved last round.
4355 * doc/install.texi: Remove all mention of dead targets.
4356 * fixinc/mkfixinc.sh: Likewise.
4357
4358 * config/arm/arm.h: Bit 31 of target_flags is no longer
4359 reserved.
4360
4361 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4362 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4363 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4364 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4365 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4366 config/alpha/osf12.h, config/alpha/osf2or3.h,
4367 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4368 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4369 config/clipper/clipper-protos.h, config/clipper/clipper.c,
4370 config/clipper/clipper.h, config/clipper/clipper.md,
4371 config/clipper/clix.h, config/convex/convex-protos.h,
4372 config/convex/convex.c, config/convex/convex.h,
4373 config/convex/convex.md, config/convex/fixinc.convex,
4374 config/convex/proto.h, config/elxsi/elxsi-protos.h,
4375 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4376 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4377 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4378 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4379 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4380 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4381 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4382 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4383 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4384 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4385 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4386 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4387 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4388 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4389 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4390 config/m68k/altos3068.h, config/m68k/apollo68.h,
4391 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4392 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4393 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4394 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4395 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4396 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4397 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4398 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4399 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4400 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4401 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4402 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4403 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4404 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4405 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4406 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4407 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4408 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4409 config/mips/dec-osf1.h, config/mips/elflorion.h,
4410 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4411 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4412 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4413 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4414 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4415 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4416 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4417 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4418 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4419 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4420 config/ns32k/sequent.h, config/ns32k/tek6000.h,
4421 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4422 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4423 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4424 config/sparc/rtems.h, config/we32k/we32k-protos.h,
4425 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4426 Delete file.
4427
4428 2002-05-24 Richard Henderson <rth@redhat.com>
4429
4430 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4431 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4432 * config/i386/i386.c (tls_model_chars): Add leading space.
4433 (tls_symbolic_operand): Don't bias by 1.
4434 (legitimize_address): Don't unbias by 1.
4435
4436 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4437
4438 * lcm.c (optimize_mode_switching): Change bb used as indices
4439 to bb->index.
4440
4441 2002-05-24 Richard Henderson <rth@redhat.com>
4442
4443 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4444 of update_life_info_in_dirty_blocks.
4445
4446 2002-05-24 Jakub Jelinek <jakub@redhat.com>
4447
4448 PR other/6782
4449 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4450
4451 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
4452
4453 PR preprocessor/6780
4454 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4455
4456 2002-05-24 Jim Blandy <jimb@redhat.com>
4457
4458 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4459 entry with a type code of zero, marking the end of the compilation
4460 unit's macro info.
4461
4462 2002-05-24 Richard Henderson <rth@redhat.com>
4463
4464 * varasm.c (asm_output_bss): Always output one byte.
4465 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4466
4467 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4468
4469 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4470 namespace.
4471
4472 2002-05-24 Andreas Jaeger <aj@suse.de>
4473
4474 * ggc-page.c (alloc_page): Cast variables of type size_t to
4475 unsigned long, adjust printf format string.
4476 (ggc_alloc): Likewise.
4477 (ggc_print_statistics): Likewise.
4478 (ggc_print_statistics): Correct printf format string for SCALE to
4479 use unsigned long.
4480
4481 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
4482
4483 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4484
4485 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
4486 Zack Weinberg <zack@codesourcery.com>
4487
4488 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4489 quoted strings.
4490 * dwarf2out.c (lookup_filename): Properly quote filename in .file
4491 directive in assembly file.
4492 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4493 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4494 * config/pj/pj.h (ASM_FILE_START): Likewise.
4495 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4496 * config/avr/avr.c (asm_file_end): Likewise.
4497 * toplev.c (output_quoted_string): Handle possibly signed plain
4498 char.
4499 * toplev.h (output_clean_symbol_name): Declare
4500 * toplev.c (output_clean_symbol_name): Define.
4501 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4502 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4503
4504 2002-05-24 Alan Modra <amodra@bigpond.net.au>
4505
4506 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4507
4508 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
4509
4510 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4511 of size of unsigned.
4512
4513 2002-05-23 Richard Henderson <rth@redhat.com>
4514
4515 * configure.in (HAVE_AS_TLS): New test.
4516 * config.in, configure: Rebuild.
4517 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4518 (ix86_tls_dialect_string, ix86_tls_dialect): New.
4519 (override_options): Set it.
4520 (tls_model_chars, tls_symbolic_operand): New.
4521 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4522 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4523 (local_exec_symbolic_operand): New.
4524 (get_pic_label_name): Merge into output_set_got.
4525 (ix86_asm_file_end): Emit pic_label_name if defined.
4526 (legitimate_constant_p, constant_address_p): New.
4527 (legitimate_pic_operand_p): New.
4528 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4529 (legitimate_address_p): Likewise.
4530 (ix86_encode_section_info): Rename from i386_; handle tls decls.
4531 (ix86_strip_name_encoding): New.
4532 (get_thread_pointer): New.
4533 (legitimize_address): Handle tls symbols.
4534 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4535 Remove UNSPEC_PLT.
4536 (struct machine_function): Add some_ld_name.
4537 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4538 (print_operand) [&]: Use it. Handle UNSPEC_TP.
4539 (output_addr_const_extra): New.
4540 (maybe_get_pool_constant): New.
4541 (ix86_split_to_parts): Use it.
4542 (ix86_expand_move): Handle tls symbols.
4543 (ix86_tls_get_addr): New.
4544 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4545 (TARGET_OPTIONS): Add tls-dialect.
4546 (CONSTANT_ADDRESS_P): Use new out-of-line function.
4547 (LEGITIMATE_CONSTANT_P): Likewise.
4548 (LEGITIMATE_PIC_OPERAND_P): Likewise.
4549 (TARGET_STRIP_NAME_ENCODING): New.
4550 (ASM_OUTPUT_LABELREF): New.
4551 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4552 (OUTPUT_ADDR_CONST_EXTRA): New.
4553 (PREDICATE_CODES): Update.
4554 (ix86_tls_dialect, ix86_tls_dialect_string): New.
4555 * config/i386/i386.md: Regroup and renumber unspec constants.
4556 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4557 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4558 (tls_global_dynamic, tls_local_dynamic_base): New.
4559 (tls_local_dynamic_once): New.
4560 * config/i386/i386-protos.h: Update.
4561
4562 2002-05-23 Richard Henderson <rth@redhat.com>
4563
4564 * genemit.c (gen_insn): Print file:lineno comment before function.
4565 (main): likewise.
4566 * gensupport.c (struct queue_elem): Add filename member.
4567 (queue_pattern): Initialize it; update all callers.
4568 (process_include): Don't free filename.
4569 (read_md_rtx): Set read_rtx_filename.
4570
4571 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
4572
4573 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
4574
4575 2002-05-23 Richard Henderson <rth@redhat.com>
4576
4577 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4578
4579 2002-05-23 Richard Henderson <rth@redhat.com>
4580
4581 * doc/extend.texi (C++98 Thread-Local Edits): Update with
4582 commentary from Mark.
4583
4584 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4585
4586 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4587 Use FOR_EACH_BB macros to iterate over basic block chain.
4588 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4589 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4590 Likewise.
4591 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4592 find_unreachable_blocks, create_edge_list, verify_edge_list,
4593 remove_fake_edges, add_noreturn_fake_exit_edges,
4594 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4595 Likewise.
4596 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4597 find_sub_basic_blocks): Likewise.
4598 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4599 Likewise.
4600 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4601 Likewise.
4602 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4603 Likewise.
4604 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4605 commit_edge_insertions, commit_edge_insertions_watch_calls,
4606 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4607 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4608 * conflict.c (conflict_graph_compute): Likewise.
4609 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4610 df_modified_p, df_refs_unlink, df_dump): Likewise.
4611 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4612 * final.c (compute_alignments): Likewise.
4613 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4614 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4615 count_or_remove_death_notes): Likewise.
4616 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4617 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4618 classic_gcse, compute_transp, cprop, compute_pre_data,
4619 compute_transpout, invalidate_nonnull_info,
4620 delete_null_pointer_checks_1, delete_null_pointer_checks,
4621 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4622 compute_store_table, build_store_vectors, store_motion): Likewise.
4623 * global.c (global_conflicts, mark_elimination): Likewise.
4624 * graph.c (print_rtl_graph_with_bb): Likewise.
4625 * haifa-sched.c (sched_init): Likewise.
4626 * ifcvt.c (if_convert): Likewise.
4627 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4628 compute_available, compute_nearerout, compute_rev_insert_delete,
4629 optimize_mode_switching): Likewise.
4630 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4631 * predict.c (estimate_probability, note_prediction_to_br_prob,
4632 propagate_freq, counts_to_freqs, expensive_function_p,
4633 estimate_bb_frequencies): Likewise.
4634 * profile.c (instrument_edges, get_exec_counts,
4635 compute_branch_probabilities, compute_checksum, branch_prob,
4636 find_spanning_tree): Likewise.
4637 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4638 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4639 Likewise.
4640 * regclass.c (scan_one_insn, regclass): Likewise.
4641 * regmove.c (mark_flags_life_zones, regmove_optimize,
4642 record_stack_memrefs): Likewise.
4643 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4644 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4645 * resource.c (find_basic_block): Likewise.
4646 * sched-ebb.c (schedule_ebbs): Likewise.
4647 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4648 find_single_block_region, find_rgns, schedule_insns)
4649 * sibcall.c (optimize_sibling_and_tail_recursive_call)
4650 * ssa-ccp.c (optimize_unexecutable_edges,
4651 ssa_ccp_df_delete_unreachable_insns): Likewise.
4652 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4653 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4654 rename_block, convert_to_ssa, compute_conservative_reg_partition,
4655 compute_coalesced_reg_partition, rename_equivalent_regs,
4656 convert_from_ssa): Likewise.
4657 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4658 process_for_unwind_directive): Likewise.
4659
4660 * df.c (FOR_ALL_BBS): Removed.
4661 * gcse.c (struct null_pointer_info): Type of current_block field
4662 changed.
4663 (struct reg_avail_info): Type of last_bb field changed.
4664 * config/ia64/ia64.c (block_num): Removed.
4665 (need_copy_state): Type changed.
4666 (last_block): New.
4667
4668 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4669
4670 * cppinit.c (mark_named_operators): Split out from init_builtins.
4671 (cpp_finish_options): Call it from here instead.
4672
4673 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4674
4675 * builtin-attrs.def: Update copyright years.
4676 (ATTR_NONNULL): New attribute identifier.
4677 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4678 attribute tree lists.
4679 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4680 format operand.
4681 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4682 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4683 attribute lists. Chain the appropriate nonnull attribute.
4684 * c-format.c (check_format_arg): Remove null format string
4685 warning.
4686 * testsuite/gcc.dg/format/null-1.c: New test.
4687
4688 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4689
4690 * Makefile.in (ADAC): Define.
4691 (SYSLIBS): Define.
4692 (.SUFFIXES): Move before language makefile fragments.
4693 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4694
4695 2002-05-23 Mark Mitchell <mark@codesourcery.com>
4696
4697 * varasm.c (make_decl_rtl): Don't allow weak variables to be
4698 placed in common.
4699
4700 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4701
4702 * cfg.c (dump_flow_info): Print results of
4703 maybe_hot/probably_never_executed predicates.
4704 * toplev.c (open_dump_file): Print function frequency.
4705
4706 2002-05-23 David S. Miller <davem@redhat.com>
4707
4708 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4709 regsets.
4710
4711 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * c-common.c (warn_nonnull): Declare.
4714 (c_common_attribute_table): Add "nonnull" attribute.
4715 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4716 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4717 check_function_arguments_recurse): New functions.
4718 * c-common.h (warn_nonnull): Declare extern.
4719 (check_function_arguments, check_function_arguments_recurse): New
4720 prototypes.
4721 * c-decl.c (c_decode_option): Add -Wnonnull option.
4722 * c-format.c (set_Wformat): Set warn_nonnull if enabling
4723 format checking.
4724 (format_check_context): New structure.
4725 (check_format_info_recurse): Remove recursion and rename to...
4726 (check_format_arg): ...this. Update comment.
4727 (check_format_info): Use check_function_arguments_recurse.
4728 * c-typeck.c (build_function_call): Call check_function_arguments
4729 instead of check_function_format.
4730 * doc/extend.texi: Document "nonnull" attribute.
4731 * doc/invoke.texi: Docuemnt -Wnonnull option.
4732 * testsuite/gcc.dg/nonnull-1.c: New test.
4733 * testsuite/gcc.dg/nonnull-2.c: New test.
4734
4735 2002-05-23 David S. Miller <davem@redhat.com>
4736
4737 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4738 * cfgcleanup.c (cleanup_cfg): If it is set do not
4739 attempt to delete trivially dead insns.
4740 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4741 * toplev.c (rest_of_compilation): Document non-trivial aspect
4742 the RTL before optimize_save_area_alloca is run.
4743
4744 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4745
4746 * c-lex.c (indent_level): Remove.
4747 (cb_file_change, c_lex): Remove indent level handling.
4748 * c-lex.h (indent_level): Remove.
4749 * input.h (struct file_stack): Remove indent_level.
4750 * toplev.c (push_srcloc): Remove indent_level handling.
4751
4752 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4753
4754 PR target/6753
4755 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4756 of x in constraints for clarity.
4757 (sse_mov?fcc split): abort if op2 == op3.
4758 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4759 sse_movsfcc_const0_4): Add earlyclobber.
4760 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4761 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
4762 Use Y instead of x in constraints.
4763
4764 2002-05-23 Richard Henderson <rth@redhat.com>
4765
4766 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4767 (C++98 Thread-Local Edits): New subsection.
4768
4769 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4770 (ix86_arch): Set type to enum processor_type.
4771
4772 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
4773 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4774
4775 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4776
4777 * configure.in: Fix as version test for binutils 2.12.1 releases
4778 (without dates).
4779 * configure: Rebuilt.
4780
4781 2002-05-23 Richard Henderson <rth@redhat.com>
4782
4783 * config/i386/i386.c (get_pic_label_name): New.
4784 (load_pic_register): Remove.
4785 (output_set_got): New.
4786 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4787 * config/i386/i386.md (UNSPEC_SET_GOT): New.
4788 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4789 (prologue_set_got, prologue_get_pc): Remove.
4790 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4791 (builtin_setjmp_receiver): Use gen_set_got.
4792 * config/i386/i386-protos.h: Update.
4793
4794 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4795
4796 * gcse.c (hash_expr): Do not use alias set for hashing.
4797
4798 2002-05-22 Kevin Buettner <kevinb@redhat.com>
4799
4800 * dbxout.c (dbxout_class_name_qualifiers): New function.
4801 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4802
4803 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4804
4805 * cpperror.c (_cpp_begin_message): No special casing
4806 of CPP_FATAL_LIMIT.
4807 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4808 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4809 * cpplib.c (do_include_common): Use DL_ERROR.
4810 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4811 (DL_ICE): Renumber.
4812 * fix-header.c (read_scan_file): Update.
4813
4814 2002-05-22 Richard Henderson <rth@redhat.com>
4815
4816 * config/i386/i386.c (ix86_expand_call): New function, extracted
4817 from md call patterns. Add pic_offset_table_rtx to
4818 CALL_INSN_FUNCTION_USAGE when needed.
4819 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4820 (call_value_pop, call_value, untyped_call): Likewise.
4821 (call_exp, call_value_exp): Remove.
4822 * config/i386/i386-protos.h: Update.
4823
4824 2002-05-22 Richard Henderson <rth@redhat.com>
4825
4826 * varasm.c (default_section_type_flags): Check for VAR_DECL
4827 before using DECL_THREAD_LOCAL.
4828
4829 2002-05-22 David Edelsohn <edelsohn@gnu.org>
4830
4831 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4832 (STARTFILE_SPEC): Delete PE crt0.o.
4833 * config/rs6000/aix51.h: Same.
4834 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4835 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4836 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
4837 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4838 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4839
4840 2002-05-22 Richard Henderson <rth@redhat.com>
4841
4842 * varasm.c (default_section_type_flags): Handle tls data and
4843 default sections.
4844 (default_unique_section): Handle tls sections.
4845
4846 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4847
4848 * configure.in (CROSS): Define NATIVE_CROSS.
4849 * configure: Regenerate.
4850 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4851 (startfile_prefix_spec): New var.
4852 (static_specs): Add startfile_prefix_spec.
4853 (do_spec_2): Split out from..
4854 (do_spec): ..here.
4855 (main): Process startfile_prefix_spec.
4856 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4857 dynamic linker.
4858 (STARTFILE_PREFIX_SPEC): Define.
4859 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
4860 absolute paths.
4861
4862 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4863
4864 * cpperror.c: Fix formatting.
4865 * cppexp.c: Likewise.
4866 * cppfiles.c: Likewise.
4867 * cpphash.c: Likewise.
4868 * cpphash.h: Likewise.
4869 * cppinit.c: Likewise.
4870 * cpplex.c: Likewise.
4871 * cpplib.c: Likewise.
4872 * cppmacro.c: Likewise.
4873 * cppmain.c: Likewise.
4874 * cppspec.c: Likewise.
4875
4876 2002-05-22 Jakub Jelinek <jakub@redhat.com>
4877
4878 * combine.c (force_to_mode): Use gen_int_mode.
4879 Don't clear CONST_INT bits outside of mode.
4880
4881 2002-05-22 Richard Henderson <rth@redhat.com>
4882
4883 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4884 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4885
4886 2002-05-22 Jakub Jelinek <jakub@redhat.com>
4887
4888 PR c/6643
4889 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4890 if DECL_SIZE_UNIT is INTEGER_CST.
4891
4892 2002-05-22 Richard Henderson <rth@redhat.com>
4893
4894 * flow.c (life_analysis): Delete broken reg_label check.
4895
4896 2002-05-22 Richard Henderson <rth@redhat.com>
4897
4898 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4899 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4900
4901 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4902
4903 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4904 (embed-bb.c): New rule.
4905 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
4906 * config/sh/embed_bb.c: Delete.
4907
4908 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
4909
4910 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4911
4912 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4913
4914 * config/h8300/h8300.md (*andorqi3): New.
4915
4916 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
4917
4918 PR preprocessor/6517
4919 * Makefile.in: Update.
4920 * c-common.c (c_common_post_options): Add preprocessor
4921 errors to the error count.
4922 * c-lang.c (c_post_options): Kill.
4923 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4924 * hooks.h: Add header guards.
4925 * langhooks-def.h: Include hooks.h.
4926 (LANG_HOOKS_POST_OPTIONS): Update.
4927 * langhooks.h (struct lang_hooks): Update post_options.
4928 * toplev.c (parse_options_and_default_flags): Update.
4929 objc:
4930 * objc-lang.c (objc_post_options): Kill.
4931 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4932
4933 2002-05-21 Bruce Korb <bkorb@gnu.org>
4934
4935 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4936 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4937 * fixinc/fixincl.x: regen.
4938
4939 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
4940
4941 * cfgbuild.c: Fix formatting.
4942 * cfg.c: Likewise.
4943 * cfgcleanup.c: Likewise.
4944 * cfglayout.c: Likewise.
4945 * cfgloop.c: Likewise.
4946 * cfgrtl.c: Likewise.
4947
4948 2002-05-21 Richard Henderson <rth@redhat.com>
4949
4950 * c-common.h (enum rid): Add RID_THREAD.
4951 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4952 (grokdeclarator): Grok __thread.
4953 * c-parse.in (reswords): Add __thread.
4954 (rid_to_yy): Add RID_THREAD.
4955
4956 * tree.h (DECL_THREAD_LOCAL): New.
4957 (struct tree_decl): Add thread_local_flag.
4958 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4959 * tree.c (staticp): TLS variables are not static.
4960
4961 * target-def.h (TARGET_HAVE_TLS): New.
4962 * target.h (have_tls): New.
4963 * output.h (SECTION_TLS): New.
4964 * varasm.c (assemble_variable): TLS variables can't be common for now.
4965 (default_section_type_flags): Handle .tdata and .tbss.
4966 (default_elf_asm_named_section): Handle SECTION_TLS.
4967 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4968
4969 * flags.h (flag_tls_default): Declare.
4970 * toplev.c (flag_tls_default): Define.
4971 (display_help): Display help for it.
4972 (decode_f_option): Set it.
4973
4974 * doc/extend.texi (Thread-Local): New node describing language-level
4975 thread-local storage.
4976 * doc/invoke.texi (-ftls-model): Document.
4977
4978 * fixinc/inclhack.def (thread_keyword): New.
4979 * fixinc/fixincl.x: Rebuild.
4980
4981 2002-05-21 Jeffrey A Law <law@redhat.com>
4982
4983 * optabs.c (expand_binop): For double-word integer multiplies,
4984 do not compute intermediate results into something that is
4985 not a register (such as a SUBREG or MEM).
4986
4987 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4988 (ix86_sched_reorder): Make sure to initialize scheduling
4989 data even when there's only one insn in the ready queue.
4990
4991 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4992
4993 * genautomata.c (reserv_sets_hash_value): Fix a typo.
4994
4995 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4996
4997 * genautomata.c (reserv_sets_hash_value): Define hash_value as
4998 set_el_t. Transform the hash value into unsigned.
4999 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5000 (transform_3): Add code to process `(A,B)+(D,E)'.
5001
5002 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
5003
5004 * reload1.c (do_output_reload): Run delete_output_reload
5005 only if optimizing.
5006
5007 2002-05-21 Roger Sayle <roger@eyesopen.com>
5008
5009 PR middle-end/6600
5010 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5011 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
5012 (can_store_by_pieces): ... and here to limit the largest mode used.
5013 Add a comment to document this function.
5014
5015 2002-05-21 Richard Henderson <rth@redhat.com>
5016
5017 * flow.c (life_analysis): Fix test for deleted label.
5018
5019 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
5020
5021 * doc/tm.texi: Fix typo.
5022
5023 2002-05-21 Zack Weinberg <zack@codesourcery.com>
5024
5025 * c-common.c (c_common_init): Set options->unsigned_char from
5026 flag_signed_char.
5027 (cb_register_builtins): Define __STRICT_ANSI__ and
5028 __CHAR_UNSIGNED__ here...
5029 * cppinit.c (init_builtins): Not here.
5030 (cpp_create_reader): unsigned_char option defaults to 0, not
5031 !DEFAULT_SIGNED_CHAR.
5032 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5033 and -funsigned-char.
5034
5035 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5036 * cpphash.c (_cpp_init_hashtable): Don't set it.
5037 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5038 directly. Clarify comment.
5039
5040 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5041
5042 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5043 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
5044 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
5045 BASIC_BLOCK (n_basic_blocks - 1).
5046 * cfganal.c (can_fallthru, flow_call_edges_add,
5047 flow_preorder_transversal_compute): Too.
5048 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5049 find_sub_basic_blocks): Too.
5050 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
5051 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
5052 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5053 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
5054 * combine.c (this_basic_block): Type changed to basic_block.
5055 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5056 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5057 get_last_value, distribute_notes, distribute_links): Too.
5058 * final.c (compute_alignments): Too.
5059 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5060 * function.c (thread_prologue_and_epilogue_insns): Too.
5061 * gcse.c (compute_code_hoist_vbeinout): Too.
5062 * global.c (build_insn_chain): Too.
5063 * ifcvt.c (find_if_block, find_cond_trap): Too.
5064 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
5065 * regmove.c (regmove_optimize): Too.
5066 * resource.c (find_basic_block): Too.
5067 * sched-ebb.c (schedule_ebbs): Too.
5068 * ssa-dce.c (find_control_dependence, find_pdom): Too.
5069
5070 2002-05-21 Andreas Jaeger <aj@suse.de>
5071
5072 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
5073
5074 2002-05-21 Richard Henderson <rth@redhat.com>
5075
5076 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
5077 unspec names, not numbers.
5078
5079 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
5080
5081 * doc/sourcebuild.texi: Mention snapshot-README and
5082 snapshot-index.html as needing updating for new front ends.
5083
5084 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5085
5086 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
5087 disabling checking, and avoid multiple evaluation of RTX.
5088
5089 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
5090
5091 * bitmap.c (bitmap_find_bit): Return early if we have the correct
5092 element cached.
5093
5094 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5095
5096 * profile.c (gen_edge_profiler): Set alias set before the memory is
5097 used.
5098
5099 2002-05-20 David S. Miller <davem@redhat.com>
5100
5101 * cselib.c (max_value_regs): New.
5102 (cselib_lookup, cselib_invalidate_regno): Initialize it when
5103 adding new entries to the REG_VALUES table and we are dealing with
5104 a hard register.
5105 (clear_table): Initialize it.
5106 (cselib_invalidate_regno): Use it to determine which hard
5107 registers to scan when mode is not VOIDmode.
5108
5109 2002-05-20 Duraid Madina <duraid@fl.net.au>
5110
5111 * tradcpp.c (fixup_newlines): Use old-style function header.
5112
5113 2002-05-20 Krister Walfridsson <cato@df.lth.se>
5114
5115 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
5116
5117 2002-05-20 H.J. Lu (hjl@gnu.org)
5118
5119 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
5120
5121 * config/mips/mips.h (DFMODE_NAN): Defined.
5122 (SFMODE_NAN): Likewise.
5123
5124 2002-05-20 Dale Johannesen <dalej@apple.com>
5125
5126 * combine.c (cant_combine_insn_p): Back out my
5127 previous patch.
5128
5129 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5130
5131 * params.c: Fix formatting.
5132 * params.h: Likewise.
5133 * predict.c: Likewise.
5134 * prefix.c: Likewise.
5135 * print-rtl.c: Likewise.
5136 * print-tree.c: Likewise.
5137 * profile.c: Likewise.
5138
5139 2002-05-20 H.J. Lu (hjl@gnu.org)
5140
5141 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
5142
5143 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
5144
5145 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
5146 switches straight on to the assembler, do not abbreviate them.
5147 * config/arm/elf.h (ASM_SPEC): As above.
5148 * config/arm/semi.h (ASM_SPEC): As above.
5149 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
5150 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
5151 -mcpu=xscale on to the assembler by default.
5152 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
5153
5154 2002-05-20 Richard Henderson <rth@redhat.com>
5155
5156 * cse.c (canon_hash): Reorder do_not_record test. Always
5157 allow pic_offset_table_rtx.
5158
5159 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
5160
5161 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
5162 (expand_binop): Ditto (3 times).
5163
5164 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
5165
5166 * Makefile.in (distclean): Remove QMTest stuff.
5167 (QMTEST_PATH): New variable.
5168 (QMTESTFLAGS): Likewise.
5169 (QMTESTRUNFLAGS): Likewise.
5170 (QMTEST): Likewise.
5171 (QMTEST_GPP_TESTS): Likewise.
5172 (QMTEST_DIR): Likewise.
5173 (QMTEST_DIR/context): New target.
5174 (qmtest-g++): Likeise.
5175 (qmtest-gui): Likewise.
5176 (QMTEST_DIR/gpp-expected.qmr): Likewise.
5177
5178 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
5179
5180 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5181 an altivec register if TARGET_ALTIVEC.
5182
5183 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5184 to ALTIVEC_VECTOR_MODE.
5185 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5186 (rs6000_va_arg): Vectors may go in registers if they are not
5187 altivec vectors.
5188
5189 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
5190
5191 * protoize.c: Fix formatting.
5192
5193 2002-05-19 Richard Henderson <rth@redhat.com>
5194
5195 * gensupport.c (init_include_reader): Merge into ...
5196 (process_include): ... here. Simplify composite path creation.
5197 Plug memory leaks. Fix file/line number tracking. Do not
5198 process_define_cond_exec. Return void.
5199 (process_rtx): Don't check process_include return value.
5200
5201 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5202
5203 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5204 fields.
5205 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5206 traversing basic block chain.
5207 (create_basic_block_structure, create_basic_block): Declaration changed.
5208 (link_block, unlink_block): Declare.
5209 * cfg.c (entry_exit_blocks): Initialize new fields.
5210 (link_block, unlink_block): New.
5211 (expunge_block_nocompact): Unlink basic block.
5212 (dump_flow_info): Print prev_bb/next_bb fields.
5213 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5214 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5215 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5216 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5217 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5218 (verify_flow_info): Check that list agrees with numbering.
5219
5220 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
5221
5222 * c-common.c (preprocessing_asm): New macro.
5223 * c-lex.h (builtin_define, builtin_assert): Use pfile.
5224 doc:
5225 * tm.texi: Update.
5226 config/alpha:
5227 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5228 (CPP_SPEC): Simplify.
5229 (TARGET_CPU_CPP_BUILTINS): Update.
5230 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5231 (CPP_SPEC): Simplify.
5232 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5233 (TARGET_OS_CPP_BUILTINS): Update.
5234 * osf.h (CPP_XFLOAT_SPEC): Kill.
5235 (TARGET_OS_CPP_BUILTINS): Update.
5236 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5237 * osf5.h (CPP_XFLOAT_SPEC): Kill.
5238 * vms.h (CPP_SUBTARGET_SPEC): Kill.
5239 (TARGET_OS_CPP_BUILTINS): Update.
5240
5241 2002-05-19 Richard Henderson <rth@redhat.com>
5242
5243 * varasm.c (default_binds_local_p): Fix typo.
5244
5245 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5246
5247 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5248 CONST_INT operand to the correct mode after adding 1 to it.
5249
5250 2002-05-19 Mark Mitchell <mark@codesourcery.com>
5251
5252 * config.gcc (powerpc-wrs-windiss*): New target.
5253
5254 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5255
5256 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5257 (ashrdi3): Use it.
5258
5259 2002-05-18 Mark Mitchell <mark@codesourcery.com>
5260
5261 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5262 alphasort.
5263 * config.in: Regenerated.
5264 * configure: Regenerated.
5265
5266 2002-05-19 Richard Henderson <rth@redhat.com>
5267
5268 * target-def.h (TARGET_BINDS_LOCAL_P): New.
5269 * target.h (struct gcc_target): Move boolean fields to the end.
5270 Add binds_local_p.
5271 * varasm.c (default_binds_local_p): New.
5272 * output.h: Declare it.
5273
5274 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5275 * config/cris/cris.c (cris_encode_section_info): Likewise.
5276 * config/i386/i386.c (i386_encode_section_info): Likewise.
5277 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5278 * config/sh/sh.c (sh_encode_section_info): Likewise.
5279
5280 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5281 (TARGET_BINDS_LOCAL_P): New.
5282
5283 2002-05-19 Richard Henderson <rth@redhat.com>
5284
5285 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5286 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5287 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5288
5289 * toplev.c (display_help): Kill -a -ax help.
5290
5291 * config/1750a/1750a.h, config/alpha/alpha.h,
5292 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5293 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5294 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5295 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5296
5297 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5298 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5299
5300 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5301 (ix86_output_function_block_profiler): Kill.
5302 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5303 (m68hc11_function_block_profiler): Kill.
5304 * config/m68hc11/m68hc11-protos.h: Update.
5305 * config/m88k/m88k.c (output_block_profiler): Kill.
5306 (output_function_block_profiler): Kill.
5307 * config/m88k/m88k-protos.h: Update.
5308
5309 2002-05-19 Richard Henderson <rth@redhat.com>
5310
5311 * system.h (STRIP_NAME_ENCODING): Poison it.
5312 * output.h (STRIP_NAME_ENCODING): Remove.
5313 (default_strip_name_encoding): Declare.
5314 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5315 * target.h (strip_name_encoding): New.
5316 * varasm.c (default_strip_name_encoding): New.
5317
5318 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5319 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5320 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5321 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5322 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5323 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5324 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5325 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5326 config/v850/v850.h: Use the hook, not the macro.
5327
5328 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5329 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5330 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5331 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5332 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5333 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
5334 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5335 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5336 config/v850/v850.c, config/v850/v850.h:
5337 Move STRIP_NAME_ENCODING to out-of-line function and add
5338 TARGET_STRIP_NAME_ENCODING.
5339
5340 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5341 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5342 with TARGET_STRIP_NAME_ENCODING referencing existing function;
5343 make function static.
5344
5345 * xcoffout.c: Include target.h
5346 * Makefile.in (xcoffout.o): Update.
5347
5348 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5349 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5350 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5351 reloc argument unused.
5352 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5353
5354 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5355 STRIP_NAME_ENCODING docs.
5356
5357 2002-05-19 Andreas Jaeger <aj@suse.de>
5358
5359 * gengenrtl.c: Add prototype for excluded_rtx.
5360
5361 * real.h: Add prototype for exact_real_truncate.
5362
5363 2002-05-18 Richard Henderson <rth@redhat.com>
5364
5365 * system.h (ENCODE_SECTION_INFO): Poison it.
5366 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5367 * target.h (encode_section_info): New.
5368 * varasm.c (make_decl_rtl, output_constant_def): Use it.
5369 * hooks.c (hook_tree_int_void): New.
5370 * hooks.h: Declare it.
5371
5372 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5373 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5374 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5375 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5376 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5377 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5378 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5379 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5380 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5381 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5382 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5383 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5384 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5385 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5386 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5387 referencing existing function. Make function static.
5388
5389 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
5390 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
5391 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5392 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5393 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
5394 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
5395 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5396 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5397 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5398 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5399 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
5400 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5401 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5402 Move ENCODE_SECTION_INFO to out-of-line function and add
5403 TARGET_ENCODE_SECTION_INFO.
5404
5405 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5406 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5407
5408 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5409 from SUBTARGET_*
5410 (switch_to_section): Replace in_rdata case with in_readonly_data.
5411
5412 * config/h8300/h8300.c (h8300_encode_label): Make static.
5413 * config/h8300/h8300-protos.h: Update.
5414
5415 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5416 from rs6000_encode_section_info; make static.
5417 (rs6000_xcoff_encode_section_info): New.
5418
5419 * config/v850/v850.c (v850_encode_data_area): Make static.
5420 * config/v850/v850-protos.h: Update.
5421
5422 * config/vax/vax.c: Include flags.h.
5423 (vms_select_section): Fix typo.
5424
5425 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5426 ENCODE_SECTION_INFO docs.
5427
5428 2002-05-18 Richard Henderson <rth@redhat.com>
5429
5430 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5431 REGISTER_TARGET_PRAGMAS.
5432 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5433
5434 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5435
5436 2002-05-18 Richard Henderson <rth@redhat.com>
5437
5438 * system.h (SELECT_RTX_SECTION): Poison.
5439 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5440 * target.h (select_rtx_section): New.
5441 * varasm.c (output_constant_pool): Use it.
5442 (default_select_rtx_section, default_elf_select_rtx_section): New.
5443 * output.h: Declare them.
5444
5445 * config/darwin.h (SELECT_RTX_SECTION): Move ...
5446 * config/darwin.c (machopic_select_rtx_section): ... here.
5447 * config/darwin-protos.h: Update.
5448
5449 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5450 * config/nextstep.c (machopic_select_rtx_section): ... here.
5451 (nextstep_select_section): Rename variable to avoid macro clash.
5452 * config/nextstep-protos.h: Update.
5453
5454 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5455 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5456 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
5457 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
5458 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5459 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
5460 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
5461 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5462 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5463 (SELECT_RTX_SECTION): Remove.
5464
5465 * config/darwin.h, config/elfos.h, config/nextstep.h,
5466 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5467 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5468 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5469 config/sparc/lynx.h, config/xtensa/xtensa.c
5470 (TARGET_ASM_SELECT_RTX_SECTION): New.
5471
5472 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5473 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5474 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5475 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5476 (ia64_aix_select_rtx_section): New.
5477 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5478 redefining.
5479 * config/mips/mips.c (mips_select_rtx_section): Make static.
5480 Support ELF SHF_MERGE features.
5481 * config/mips/mips-protos.h: Update.
5482 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5483 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5484 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5485 make static, fall back to default_elf_select_rtx_section.
5486 * config/rs6000/rs6000-protos.h: Update.
5487 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5488 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5489 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5490 * config/romp/romp.c (romp_select_rtx_section): New.
5491 * config/s390/s390.c (s390_select_rtx_section): New.
5492 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
5493 declarations before target macro definition.
5494 (xtensa_emit_call): Use static buffer.
5495 (xtensa_select_rtx_section): New.
5496 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5497 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5498 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5499
5500 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5501 SELECT_RTX_SECTION docs.
5502
5503 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5504
5505 * i386.md (movsi/movdi): Fix template.
5506 (sse2 patterns): Set attributes consistently.
5507
5508 * i386.md (pushqi2, ashrqi_*): Fix constraint.
5509
5510 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
5511
5512 * optabs.c (complex_part_zero_p): New.
5513 * (expand_cmplxdiv_straight): Use it.
5514 * (expand_cmplxdiv_wide): Ditto.
5515 * (expand_binop): Ditto.
5516
5517 2002-05-18 Richard Henderson <rth@redhat.com>
5518
5519 * final.c (HAVE_READONLY_DATA_SECTION): New.
5520 (shorten_branches): Use it instead of ifdefs.
5521 * varasm.c (enum in_section): Add in_readonly_data.
5522 (text_section, data_section): Tidy.
5523 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5524
5525 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5526 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5527 (READONLY_DATA_SECTION): Don't undef.
5528
5529 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5530 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5531 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5532
5533 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5534 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5535 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5536 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5537
5538 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5539 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5540 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5541 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5542 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5543 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5544 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5545 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5546 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5547
5548 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5549 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5550 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5551 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5552 config/pa/pa64-hpux.h, config/sparc/litecoff.h
5553 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5554
5555 * config/elfos.h, config/netware.h, config/svr3.h,
5556 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5557 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5558 config/h8300/h8300.h, config/i386/i386-interix.h,
5559 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5560 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5561
5562 * config/elfos.h, config/netware.h, config/svr3.h,
5563 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5564 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5565 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5566 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5567
5568 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5569 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5570 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5571 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5572 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5573 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5574 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5575 config/rs6000/sysv4.h, config/v850/v850.h
5576 (EXTRA_SECTIONS): Remove in_const/in_rdata.
5577 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5578
5579 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5580 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5581 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5582 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5583 * config/alpha/alpha.c (alpha_start_function): Likewise.
5584 (alpha_write_linkage): Likewise.
5585 * config/m32r/m32r.c (m32r_select_section): Likewise.
5586 * config/m88k/m88k.c (m88k_select_section): Likewise.
5587 * config/mips/mips.c (mips_select_rtx_section): Likewise.
5588 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5589 (rs6000_elf_select_section): Likewise.
5590 * config/v850/v850.c (v850_select_section): Likewise.
5591
5592 * config/1750a/1750a.h, config/i860/sysv3.h
5593 (READONLY_DATA_SECTION_ASM_OP): New.
5594 READONLY_DATA_SECTION_ASM_OP.
5595 * config/i386/interix.c, config/i386/winnt.c
5596 (i386_pe_unique_section): Always use .rdata prefix.
5597 * config/pa/som.h (readonly_data): Always switch to read-only section.
5598 (READONLY_DATA_SECTION): Predicate on flag_pic.
5599 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5600 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5601 (READONLY_DATA_SECTION): Update.
5602
5603 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
5604
5605 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
5606 is used without -Wformat.
5607 * c-common.h (warn_format_zero_length): Declare extern.
5608 * c-decl.c (warn_options): Add "format-zero-length".
5609 * c-format.c (warn_format_zero_length): Declare.
5610 (set_Wformat): Set warn_format_zero_length for -Wformat.
5611 (check_format_info): Only warn about zero-length formats if
5612 warn_format_zero_length is true. Include the format type
5613 name in the warning message.
5614 * doc/invoke.texi: Document -Wformat-zero-length.
5615 * testsuite/gcc.dg/format/zero-length-1.c: New test.
5616
5617 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5618
5619 * timevar.c: Fix formatting.
5620 * tlink.c: Likewise.
5621 * toplev.c: Likewise.
5622 * tree-dump.c: Likewise.
5623 * tree-inline.c: Likewise.
5624
5625 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5626
5627 * cppinit.c (cpp_post_options): If preprocessed, turn off
5628 traditional. If traditional, turn off column numbers.
5629 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5630 * cpptrad.c (handle_newline): Update line_base.
5631 (skip_comment): Handle -Wcomment.
5632
5633 2002-05-17 Zack Weinberg <zack@codesourcery.com>
5634
5635 * cppinit.c (struct builtin): Remove unused fields.
5636 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5637 (operator_array): New - was second half of builtin_array.
5638 (init_builtins): Simplify loop over builtin_array/operator_array.
5639
5640 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5641
5642 * defaults.h (UNIQUE_SECTION): Remove.
5643 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5644
5645 2002-05-17 Richard Henderson <rth@redhat.com>
5646
5647 * expr.c (init_expr_once): Don't use start/end_sequence.
5648 Use rtx_alloc instead of emit_insn.
5649 * toplev.c (lang_dependent_init): Run init_expr_once here ...
5650 (lang_independent_init): ... not here.
5651
5652 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5653
5654 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5655
5656 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
5657
5658 * config/avr/avr.c (avr_regs_to_save): New function. Also check
5659 for fixed registers, possibly used for global register variables.
5660 (initial_elimination_offset, avr_output_function_prologue,
5661 avr_output_function_epilogue): Move common code to avr_regs_to_save.
5662
5663 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5664
5665 * Makefile.in: Update for cpptrad.c.
5666 * cpphash.h (struct cpp_buffer): New members for buffer
5667 overlays.
5668 (struct cpp_reader): New members for traditional output.
5669 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5670 * cppinit.c (cpp_create_reader): Set trad_line.
5671 (cpp_destroy): Free trad_out_base if used.
5672 (cpp_read_main_file): Overlay an empty buffer if traditional.
5673 (cpp_finish_options): Don't do builtins.
5674 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5675 (cpp_handle_option): Handle it.
5676 * cpplex.c (continue_after_nul): New.
5677 (_cpp_lex_direct): Use handle_nul.
5678 * cpplib.h (struct cpp_options): New traditional option.
5679 * cpptrad.c: New file.
5680
5681 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5682
5683 * c-common.c (c_common_init_options): Use C89 for Objective-C,
5684 and set the options flag.
5685 * cppinit.c (lang_flags): Remove objc.
5686 (lang_defaults): Remove OBJC and OBJCXX.
5687 (set_lang): Update.
5688 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5689 (cpp_handle_option): Remove -+ and -lang-objc++.
5690 For ObjC, just set a flag.
5691 (print_help): Update.
5692 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5693
5694 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5695
5696 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5697 bootstrap with -mips3.
5698
5699 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
5700
5701 * final.c: Fix formatting.
5702 * fix-header.c: Likewise.
5703 * flow.c: Likewise.
5704 * fold-const.c: Likewise.
5705 * function.c: Likewise.
5706
5707 2002-05-17 David S. Miller <davem@redhat.com>
5708
5709 PR c/6689, PR optimization/6615
5710 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5711 and make it a pointer to rtx. Update comments.
5712 (update_equiv_regs): When scanning for equivalences, record
5713 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
5714 it while making the equiv replacements.
5715
5716 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5717
5718 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5719
5720 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
5721
5722 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5723 when encoding visibility into SYMBOL_REF_FLAG.
5724
5725 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
5726
5727 * expr.c (force_operand): Fix reversed move.
5728
5729 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
5730
5731 * doc/install.texi (Testing): Mention two common DejaGnu warnings
5732 that can be ignored.
5733
5734 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5735
5736 * doc/install.texi (Final install): Recommend to install into a
5737 "clean" target directory.
5738
5739 2002-05-17 Richard Henderson <rth@redhat.com>
5740
5741 * config/ia64/ia64.md: Use braced strings instead of quoted strings
5742 for code blocks. Tidy whitespace.
5743
5744 2002-05-17 Richard Henderson <rth@redhat.com>
5745
5746 * hooks.c (hook_tree_bool_false): New.
5747 * hooks.h: Declare it.
5748 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5749 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5750 * target.h (select_section, unique_section): New.
5751 (in_small_data_p): New.
5752 * varasm.c (resolve_unique_section): Use hooks instead of macros.
5753 (variable_section, output_constant_def_contents): Likewise.
5754 (default_select_section, default_unique_section): New.
5755 (categorize_decl_for_section, default_elf_select_section): New.
5756 * output.h: Declare them.
5757
5758 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5759 (TARGET_ASM_SELECT_SECTION): New.
5760 (SELECT_SECTION): Move ...
5761 * config/darwin.c (machopic_select_section): ... here.
5762 * config/darwin-protos.h: Update.
5763
5764 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5765 (SELECT_SECTION): Move ...
5766 * config/nextstep.c (nextstep_select_section): ... here.
5767 * config/nextstep-protos.h: Update.
5768
5769 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5770 (TARGET_ASM_SELECT_SECTION): New.
5771 * config/svr3.h (SELECT_SECTION): Remove.
5772
5773 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5774 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5775 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5776 (alpha_encode_section_info): Use it.
5777 * config/alpha/alpha-protos.h: Update.
5778 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5779 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5780 (TARGET_ASM_SELECT_SECTION): New.
5781 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5782
5783 * config/arm/pe.h (UNIQUE_SECTION): Remove.
5784 (TARGET_ASM_UNIQUE_SECTION): New.
5785
5786 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5787 (avr_unique_section): Rename from unique_section; make static.
5788 * config/avr/avr-protos.h: Update.
5789 * config/avr/avr.h (UNIQUE_SECTION): Remove.
5790
5791 * config/c4x/c4x.h (SELECT_SECTION): Remove.
5792
5793 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5794 (TARGET_ASM_UNIQUE_SECTION): New.
5795 * config/i386/i386-interix.h: Likewise.
5796 * config/i386/win32.h: Likewise.
5797 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5798 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5799 * config/i386/sco5.h (SELECT_SECTION): Remove.
5800 (TARGET_ASM_SELECT_SECTION): New.
5801 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5802
5803 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5804 instead of SELECT_SECTION.
5805 * config/m68k/dpx2.h: Likewise.
5806 * config/rs6000/lynx.h: Likewise.
5807
5808 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5809 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5810 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5811 (ia64_in_small_data_p): New.
5812 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
5813 (ia64_aix_select_section, ia64_aix_unique_section): New.
5814 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5815 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5816
5817 * config/m32r/m32r.h (SELECT_SECTION): Remove.
5818 (TARGET_ASM_SELECT_SECTION): New.
5819 * config/m32r/m32r.c (m32r_select_section): Take align argument.
5820 * config/m32r/m32r-protos.h: Update.
5821
5822 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5823 (SELECT_SECTION): Move ...
5824 * config/m88k/m88k.c (m88k_select_section): ... here.
5825
5826 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5827 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5828 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5829 (mcore_unique_section): Make static.
5830 * config/mcore/mcore-protos.h: Update.
5831
5832 * config/mips/elf.h (UNIQUE_SECTION): Remove.
5833 (TARGET_ASM_UNIQUE_SECTION): New.
5834 * config/mips/elf64.h: Likewise.
5835 * config/mips/iris6gld.h: Likewise.
5836 * config/mips/linux.h: Likewise.
5837 * config/mips/mips-protos.h: Update.
5838 * config/mips/mips.c (mips_select_section): Add align argument.
5839 * config/mips/mips.h (SELECT_SECTION): Remove.
5840 (TARGET_ASM_SELECT_SECTION): New.
5841
5842 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5843 * config/mmix/mmix.c (mmix_select_section): Remove.
5844 (mmix_unique_section): Remove.
5845 * config/mmix/mmix-protos.h: Update.
5846
5847 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5848 (SELECT_SECTION): Move ...
5849 * config/pa/pa.c (pa_select_section): ... here.
5850 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5851
5852 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5853 from rs6000_select_section and make static.
5854 (rs6000_elf_unique_section): Similarly.
5855 (rs6000_xcoff_select_section): From xcoff.h.
5856 (rs6000_xcoff_unique_section): Likewise.
5857 * config/rs6000/rs6000-protos.h: Update.
5858 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5859 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5860 * config/rs6000/xcoff.h: Likewise.
5861
5862 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5863 (SELECT_SECTION): Move ...
5864 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5865
5866 * config/v850/v850.h (SELECT_SECTION): Move ...
5867 * config/v850/v850.c (v850_select_section): ... here.
5868 (TARGET_ASM_SELECT_SECTION): New.
5869
5870 * config/vax/vms.h (SELECT_SECTION): Move ...
5871 * config/vax/vax.c (vms_select_section): ... here.
5872 (TARGET_ASM_SELECT_SECTION): New.
5873
5874 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5875 for the target hooks.
5876
5877 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
5878
5879 * config/arm/arm.c (emit_multi_reg_push): Do not set
5880 RTX_FRAME_RELATED_P on the SEQUENCE.
5881
5882 2002-05-16 Richard Henderson <rth@redhat.com>
5883
5884 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5885 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
5886
5887 2002-05-16 Richard Henderson <rth@redhat.com>
5888
5889 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5890
5891 * config/ia64/ia64.c (saveable_obstack): Do not declare.
5892
5893 2002-05-16 Richard Henderson <rth@redhat.com>
5894
5895 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5896 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5897 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5898 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5899 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5900 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5901 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5902 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5903 Revert "Basic block renumbering removal", and two followup patches.
5904
5905 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5906
5907 * lcm.c (optimize_mode_switching): Revert previous change.
5908
5909 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5910
5911 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5912 with only extant block numbers.
5913
5914 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5915
5916 * lcm.c (optimize_mode_switching): Fix typo.
5917
5918 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5919
5920 * flow.c (calculate_global_regs_live): Queue blocks in program order.
5921
5922 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5923
5924 * doc/install.texi (Configuration): Document PWDCMD.
5925
5926 2002-05-16 Dale Johannesen <dalej@apple.com>
5927
5928 * combine.c (cant_combine_insn_p): Reenable combinations
5929 involving hard regs unless CLASS_LIKELY_SPILLED_P.
5930
5931 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5932
5933 * c-common.c (cb_register_builtins): Handle more built-ins
5934 here rather than in gcc.c specs.
5935 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5936 (cpp_options): Pass -O flags even when only preprocessing.
5937 * toplev.c (set_fast_math_flags): New prototype.
5938 (fast_math_flags_set_p): New.
5939 (set_no_fast_math_flags): Remove.
5940 (decode_f_option): Update.
5941 * toplev.h (set_fast_math_flags): Update.
5942 (fast_math_flags_set_p): New.
5943 (set_no_fast_math_flags): Remove.
5944 config:
5945 * c4x/c4x.c (c4x_override_options): Update.
5946
5947 2002-05-16 Zack Weinberg <zack@codesourcery.com>
5948
5949 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5950 Default-define here.
5951 (builtin_define_with_value): Can now wrap the expansion in
5952 quotation marks if such is wanted.
5953 (cb_register_builtins): Update calls to builtin_define_with_value.
5954 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5955 here.
5956 (c_common_init): Set options->stdc_0_in_system_headers.
5957 * c-lex.h: Update prototype of builtin_define_with_value.
5958 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5959 and REGISTER_PREFIX.
5960
5961 * cppinit.c (VERS, ULP, C, X): Kill.
5962 (builtin_array): Remove entries for __VERSION__,
5963 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5964 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
5965 a constant.
5966 (init_builtins): Kill off a bunch of now-dead code.
5967 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5968 -fno-leading-underscore.
5969 (cpp_handle_option): Remove code to set user_label_prefix.
5970 (cpp_post_options): Likewise.
5971
5972 * cpplib.h (struct cpp_options): Remove user_label_prefix.
5973 (stdc_0_in_system_headers): New.
5974 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5975 stdc_0_in_system_headers) too to decide the value of __STDC__.
5976
5977 * tradcpp.c (user_label_prefix): Kill.
5978 (main): Remove code handling -f(no-)leading-underscore.
5979 (initialize_builtins): Don't define __REGISTER_PREFIX__
5980 or __USER_LABEL_PREFIX__.
5981 (install_value): Wrap compound statement in dummy loop so the
5982 macro works properly in an if statement.
5983
5984
5985 2002-05-16 Janis Johnson <janis187@us.ibm.com>
5986
5987 * loop.h (struct loop_info): Add member has_prefetch.
5988 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5989 (prescan_loop): Initialize has_prefetch.
5990 (struct prefetch_info): Change prefetch_in_loop and
5991 prefetch_before_loop from bit fields to ints.
5992 (emit_prefetch_instructions): Several small fixes.
5993 (check_dbra_loop): Don't reverse loop that uses prefetch.
5994
5995 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5996
5997 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5998 * configure.in: Likewise.
5999 * fixinc/check.tpl: Likewise.
6000 * fixinc/fixinc.dgux: Likewise.
6001 * fixinc/fixinc.svr4: Likewise.
6002 * fixinc/fixinc.winnt: Likewise.
6003 * fixinc/fixincl.sh: Likewise.
6004 * fixproto: Likewise.
6005 * configure: Regenerate.
6006
6007 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6008
6009 Basic block renumbering removal:
6010 * basic_block.h (struct basic_block_def): Renamed index to sindex,
6011 added prev_bb and next_bb fields.
6012 (n_basic_blocks): Renamed to num_basic_blocks.
6013 (last_basic_block): New, index of last basic block.
6014 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6015 traversing basic block chain.
6016 (BLOCK_NUM): index -> sindex.
6017 (create_basic_block_structure, create_basic_block): Declaration changed.
6018 (debug_num2bb): Declare.
6019 (expunge_block_nocompact): Declaration removed.
6020 (link_block, unlink_block, compact_blocks): Declare.
6021 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6022 * cfg.c (entry_exit_blocks): Initialize new fields.
6023 (clear_edges, alloc_block, expunge_block, cached_make_edge,
6024 redirect_edge_pred, dump_flow_info, dump_edge_info,
6025 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6026 free_aux_for_edges): Modified.
6027 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6028 (expunge_block_nocompact): Removed.
6029 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6030 find_unreachable_blocks, create_edge_list, print_edge_list,
6031 verify_edge_list, flow_edge_list_print, remove_fake_successors,
6032 remove_fake_edges, flow_reverse_top_sort_order_compute,
6033 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6034 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6035 flow_dfs_compute_reverse_execute): Modified.
6036 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6037 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6038 Modified.
6039 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6040 merge_blocks_move_predecessor_nojumps,
6041 merge_blocks_move_successor_nojumps, merge_blocks,
6042 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6043 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6044 * cfglayout.c (skip_insns_after_block, label_for_bb,
6045 record_effective_endpoints, scope_to_insns_finalize,
6046 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6047 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6048 cfg_layout_duplicate_bb): Modified.
6049 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6050 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6051 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6052 flow_loops_find, flow_loop_outside_edge_p): Modified.
6053 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6054 flow_delete_block, compute_bb_for_insn, split_block,
6055 try_redirect_by_replacing_jump, redirect_edge_and_branch,
6056 force_nonfallthru_and_redirect, tidy_fallthru_edge,
6057 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6058 commit_edge_insertions, commit_edge_insertions_watch_calls,
6059 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6060 purge_all_dead_edges): Modified.
6061 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6062 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6063 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
6064 Modified.
6065 * conflict.c (conflict_graph_compute): Modified.
6066 * df.c (FOR_ALL_BBS): Removed.
6067 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6068 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
6069 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
6070 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
6071 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6072 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
6073 * final.c (compute_alignments, final_scan_insn): Modified.
6074 * flow.c (verify_local_live_at_start, update_life_info,
6075 update_life_info_in_dirty_blocks, free_basic_block_vars,
6076 delete_noop_moves, calculate_global_regs_live,
6077 initialize_uninitialized_subregs, allocate_bb_life_data,
6078 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
6079 mark_used_reg, count_or_remove_death_notes): Modified.
6080 * function.c (thread_prologue_and_epilogue_insns): Modified.
6081 * gcse.c (struct null_pointer_info): Change typo of current_block
6082 to basic_block.
6083 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
6084 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
6085 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
6086 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
6087 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
6088 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
6089 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
6090 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
6091 pre_delete, one_pre_gcse_pass, compute_transpout,
6092 invalidate_nonnull_info, delete_null_pointer_checks_1,
6093 free_code_hoist_mem, compute_code_hoist_vbeinout,
6094 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6095 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
6096 compute_store_table, build_store_vectors, insert_insn_start_bb,
6097 insert_store, replace_store_insn, free_store_memory, store_motion):
6098 Modified.
6099 * global.c (global_alloc, global_conflicts, mark_elimination,
6100 build_insn_chain): Modified.
6101 * graph.c (print_rtl_graph_with_bb): Modified.
6102 * haifa-sched.c (sched_init): Modified.
6103 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6104 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
6105 if_convert): Modified.
6106 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
6107 compute_insert_delete, pre_edge_lcm, compute_available,
6108 compute_farthest, compute_nearerout, compute_rev_insert_delete,
6109 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
6110 Modified.
6111 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
6112 * loop.c (loop_dump_aux): Modified.
6113 * predict.c (combine_predictions_for_insn, estimate_probability,
6114 last_basic_block_p, process_note_prediction, process_note_predictions,
6115 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
6116 expensive_function_p, estimate_bb_frequencies,
6117 compute_function_frequency): Modified.
6118 * print-rtl.c (print_rtx): Modified.
6119 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
6120 get_exec_counts, compute_branch_probabilities, compute_checksum,
6121 branch_prob, find_spanning_tree): Modified.
6122 * recog.c (split_all_insns, peephole2_optimize): Modified.
6123 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
6124 convert_regs_1, convert_regs_2, convert_regs): Modified.
6125 * regclass.c (scan_one_insn, regclass): Modified.
6126 * regmove.c (mark_flags_life_zones, regmove_optimize,
6127 combine_stack_adjustments): Modified.
6128 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
6129 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
6130 * reorg.c (dbr_schedule): Modified.
6131 * resource.c (find_basic_block, init_resource_info): Modified.
6132 * sbitmap.c (sbitmap_intersection_of_succs,
6133 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
6134 sbitmap_union_of_preds): Modified.
6135 * sched-deps.c (init_dependency_caches): Modified.
6136 * sched-ebb.c (schedule_ebbs): Modified.
6137 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
6138 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
6139 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
6140 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
6141 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
6142 ssa_const_prop): Modified.
6143 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
6144 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
6145 * ssa.c (remove_phi_alternative, find_evaluations,
6146 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
6147 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
6148 make_regs_equivalent_over_bad_edges,
6149 make_equivalent_phi_alternatives_equival,
6150 compute_conservative_reg_partition,
6151 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
6152 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
6153 Modified.
6154
6155 2002-05-16 Mark Mitchell <mark@codesourcery.com>
6156
6157 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
6158
6159 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
6160
6161 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
6162 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6163 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
6164 calling CONSTANT_POOL_ADDRESS_P.
6165 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
6166 to decide whether to define __arm__ or __thumb.
6167 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
6168 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6169
6170 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6171
6172 * config/arc/arc.h (CPP_PREDEFINES): Remove.
6173 (CPP_SPEC): Update.
6174 (TARGET_CPU_CPP_BUILTINS): New.
6175
6176 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6177
6178 * cpphash.h (cpp_macro): Move here, and make expansion a union.
6179 * cppmacro.c (cpp_macro): Remove.
6180 (enter_macro_context, replace_args, warn_of_redefinition,
6181 _cpp_create_definition, cpp_macro_definition): Update.
6182
6183 2002-05-16 Jason Merrill <jason@redhat.com>
6184
6185 * config/mips/mips.c (mips_output_external): Don't do sdata
6186 optimization for a variable with DECL_COMDAT set.
6187
6188 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6189
6190 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6191 Cleanups for accepting modifiers on pointers.
6192 Fix predicate typos.
6193 Allow long pointers as well as int pointers.
6194
6195 2002-05-15 Richard Henderson <rth@redhat.com>
6196
6197 * varasm.c (merge_weak): Remove special case for extern and common.
6198
6199 2002-05-15 Matt Hiller <hiller@redhat.com>
6200
6201 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
6202 XFAILing.
6203 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6204 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6205 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6206 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6207 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6208 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6209
6210 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6211
6212 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
6213
6214 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6215
6216 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6217 ("altivec_mfvscr"): Read from VSCR.
6218
6219 Add vscr sets for the following insns: altivec_vctuxs,
6220 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6221 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6222 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6223 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6224 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6225 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6226 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6227 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6228 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6229 altivec_vsum2sws, altivec_vsumsws.
6230
6231 * config/rs6000/rs6000.h: Add VSCR fixed register.
6232 (CALL_REALLY_USED_REGISTERS): Add vscr.
6233 (CALL_USED_REGISTERS): Same.
6234 (FIXED_REGISTERS): Same.
6235 (REG_ALLOC_ORDER): Same.
6236 (reg_class): Add VSCR_REGS.
6237 (REG_CLASS_NAMES): Same.
6238 (REG_CLASS_CONTENTS): Same.
6239 (VSCR_REGNO): New.
6240 (REGISTER_NAMES): Add vscr.
6241 (DEBUG_REGISTER_NAMES): Same.
6242 (ADDITIONAL_REGISTER_NAMES): Same.
6243 (FIRST_PSEUDO_REGISTER): Increment.
6244 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6245
6246 2002-05-15 Jakub Jelinek <jakub@redhat.com>
6247
6248 * fold-const.c (fold): Fix a typo.
6249
6250 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
6251
6252 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6253 comparison against the highest or lowest integer value before
6254 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6255 transformation and that of an unsigned comparison against 0
6256 right after.
6257
6258 2002-05-15 Richard Henderson <rth@redhat.com>
6259
6260 * varasm.c (merge_weak): Error for any weakening after definition.
6261 Adjust weakening after use warning to catch more cases.
6262 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6263 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6264
6265 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6266
6267 * invoke.texi (-malign-double): Re-add lost warning.
6268
6269 * i386-protos.h (x86_output_mi_thunk): Declare.
6270 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6271 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6272
6273 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6274 when flag_asynchronous_unwind_tables is set.
6275
6276 * flags.h (flag_reorder_functions): Declare.
6277 * function.c (prepare_function_start): Initialize frequnecy.
6278 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
6279 * Makefile.in (predict.o): Add dependency on target.h and params.h
6280 * defaults.h (HOT_TEXT_SECTION_NAME,
6281 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6282 * predict.c (choose_function_section): New function.
6283 (estimate_bb_frequencies): Use it.
6284 * toplev.c (flag_reorder_functions): New global variable.
6285 (lang_independent_options): New.
6286 (parse_options_and_default_flags): Set.
6287 * varasm.c (assemble_start_function): Bypass functdion alignment
6288 for never executed functions.
6289 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6290 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
6291 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6292 Document.
6293
6294 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
6295
6296 * predict.c: Inlude profile.h
6297 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6298 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6299 Use the information about maximal counter in the program.
6300
6301 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
6302
6303 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6304 probably_never_executed_bb_p): New functions.
6305 * cfgcleanup.c (outgoing_edges_match): Use them.
6306 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6307 (maybe_hot_bb_p, probably_cold_bb_p,
6308 probably_never_executed_bb_p): New functions.
6309
6310 * function.h (function): Add new field function_frequency.
6311 * predict.c (compute_function_frequency): New function.
6312 (estimate_probability): Call it.
6313
6314 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6315
6316 PR optimization/5172, optimization/5200
6317 * gcse.c (gcse_main): Disable store_motion.
6318
6319 2002-05-14 Zack Weinberg <zack@codesourcery.com>
6320
6321 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6322 (c_common_nodes_and_builtins): Use it.
6323 (builtin_define_with_value): New function.
6324 (cb_register_builtins): Define __SIZE_TYPE__,
6325 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6326 using builtin_define_with_value. Use consistent notation when
6327 defining __GXX_WEAK__.
6328 (WCHAR_TYPE_SIZE): Don't redefine.
6329 (combine_strings): Don't use WCHAR_TYPE_SIZE.
6330
6331 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6332 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6333 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6334 * tradcpp.c (initialize_builtins): Likewise.
6335 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6336
6337 * c-lex.h (builtin_define_with_value): Prototype.
6338 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6339 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6340 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6341
6342 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6343 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6344 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6345 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6346 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6347 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6348 config/sparc/sol2-bi.h, config/sparc/sparc.h:
6349 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
6350 to __SIZE_TYPE__ etc from all spec strings. When this makes
6351 extra specs empty, delete them.
6352
6353 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
6354
6355 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6356 for PA8000 or generating dwarf2 call frame information.
6357 (output_call): Remove DO_FRAME_NOTES check from return pointer
6358 optimization.
6359 (following_call): Return 0 when scheduling for PA8000 or generating
6360 dwarf2 call frame information. Revise comment.
6361
6362 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6363
6364 config/alpha:
6365 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6366 and __IEEE_FP_INEXACT as appropriate.
6367 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6368 (CPP_SPEC): Remove ieee defines.
6369 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6370
6371 2002-05-14 Richard Henderson <rth@redhat.com>
6372
6373 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6374 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6375
6376 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6377
6378 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6379 (CPP_SPEC): Update.
6380 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6381 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6382 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6383 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6384 (EXTRA_SPECS): Update.
6385 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6386 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6387 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6388 define TARGET_OS_CPP_BUILTINS if necessary.
6389
6390 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6391
6392 * gcc.c (cpp_options): Must pass -m* and -f* options
6393 to the front end even when only preprocessing.
6394 (cc1_options): Remove redundant -lang-c.
6395 * tradcpp.c (main): Ignore -m options.
6396 objc:
6397 * lang-specs.h: Similarly.
6398
6399 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
6400
6401 * genautomata.c (transform_3): Add code for transformation
6402 `(A,B,...)+C -> A+C,B,...'.
6403
6404 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
6405
6406 * final.c (end_final): Do not output profile_arcs constructor, when
6407 no functions are instrumented.
6408
6409 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
6410
6411 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6412
6413 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6414
6415 * doc/install.texi: Remove special markup originally required for
6416 HTML generation with texi2html.
6417
6418 2002-05-14 Andreas Schwab <schwab@suse.de>
6419
6420 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6421 SELECT_SECTION.
6422 (UNIQUE_SECTION): Define to get small data correctly.
6423
6424 * varasm.c (resolve_unique_section): Add third parameter
6425 flag_function_or_data_sections and use it instead of
6426 flag_function_sections.
6427 (assemble_start_function): Pass flag_function_sections.
6428 (asm_emit_uninitialised): Pass flag_data_sections.
6429 (assemble_variable): Likewise.
6430
6431 2002-05-14 Richard Henderson <rth@redhat.com>
6432
6433 * config/i386/i386.md: Use define_constants for unspec numbers.
6434 * config/i386/i386.c: Likewise.
6435
6436 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6437
6438 * doc/contrib.texi: Update my entry.
6439
6440 2002-05-13 Mark Mitchell <mark@codesourcery.com>
6441
6442 * fixinc/inclhack.def (winidss_valist): Limit applicability.
6443 * fixinc/fixincl.x: Regenerated.
6444 * fixinc/tests/base/math.h: Update.
6445 * fixinc/tests/base/testing.h: Likewise.
6446
6447 2002-05-13 Zack Weinberg <zack@codesourcery.com>
6448
6449 * genattr.c (gen_attr): Don't emit a comma after the last
6450 enumerator.
6451
6452 2002-05-13 Richard Henderson <rth@redhat.com>
6453
6454 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6455 by non-local gotos.
6456 * recog.c (peephole2_optimize): Likewise.
6457
6458 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
6459
6460 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6461 input to O_BINARY.
6462
6463 2002-05-13 Jeffrey A Law (law@redhat.com)
6464
6465 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6466 Update prototype and callers.
6467 (propagate_one_insn): Stack pointer adjustments kill MEMs on
6468 the mem_set_list which reference the stack pointer, as do
6469 calls to constant functions as they may clobber outgoing
6470 argument space.
6471
6472 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6473
6474 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6475 (ia32_multipass_dfa_lookahead): New function.
6476
6477 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6478
6479 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6480 (translate_options): Remove 'V'.
6481 (process_command): Similarly.
6482 doc:
6483 * invoke.texi: Remove documentation of 'V'.
6484
6485 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6486
6487 * config/s390/linux.h: Revert 2002-04-22 changes.
6488
6489 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
6490
6491 * config/fr30/fr30.md: Only allow splits of immediate loads
6492 if the destination is a register.
6493
6494 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6495
6496 * Makefile.in (c-common.o, cppinit.o): Update.
6497 * c-common.c: Include except.h.
6498 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6499 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6500 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6501 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6502 CPP_PREDEFINES): Handle here.
6503 config:
6504 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6505 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6506 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6507 TARGET_OS_CPP_BUILTINS.
6508 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6509 (CPP_SPEC, EXTRA_SPECS): Update.
6510 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6511 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6512 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6513 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6514 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6515 doc:
6516 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6517 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6518
6519 2002-05-12 Zack Weinberg <zack@codesourcery.com>
6520
6521 * emit-rtl.c (global_rtl): Update comment.
6522 (const_double_htab, const_double_htab_hash,
6523 const_double_htab_hash, lookup_const_double): New.
6524 (const_int_htab_hash, const_int_htab_eq): Remove const
6525 qualifiers, which cause tons of warnings with RTL checking on.
6526 (gen_rtx_CONST_DOUBLE): Deleted.
6527 (const_double_from_real_value): New function - bears some
6528 resemblance to the former immed_real_const_1.
6529 (immed_double_const): Moved here from varasm.c and
6530 simplified.
6531 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6532 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6533 (gen_rtx): Use immed_double_const.
6534 (init_emit_once): Initialize the const_double_htab. Use
6535 REAL_VALUE_FROM_INT where possible. Can now use
6536 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6537 * varasm.c (struct varasm_status): Remove x_const_double_chain.
6538 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6539 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6540 (init_varasm_status, mark_varasm_status): Don't touch
6541 x_const_double_chain.
6542
6543 * output.h: Delete prototype for clear_const_double_mem.
6544 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
6545 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
6546 const_double_from_real_value, not immed_real_const_1, and use
6547 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
6548 CONST_DOUBLE_ATOF.
6549 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6550 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6551 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6552 (gen_rtx_REG): Second arg is unsigned.
6553
6554 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6555 (excluded_rtx): New, return true for CONST_DOUBLE.
6556 (genmacro): Write nothing for excluded codes.
6557 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6558 * expr.c (expand_expr): Likewise.
6559 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6560 CONST_DOUBLE_CHAIN.
6561 * toplev.c (rest_of_compilation): Don't call
6562 clear_const_double_mem.
6563
6564 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6565 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6566 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6567 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6568 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6569 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6570 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6571 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6572
6573 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6574
6575 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6576
6577 2002-05-12 Tom Tromey <tromey@redhat.com>
6578
6579 * tree.h (copy_node): Don't mention TREE_PERMANENT.
6580
6581 2002-05-12 Zack Weinberg <zack@codesourcery.com>
6582
6583 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6584 (scan_comma_elt): New function. Accepts whitespace in comma lists.
6585 * gensupport.h: Prototype new routines.
6586 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
6587 use of printf.
6588 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6589 (next_comma_elt): Use scan_comma_elt.
6590
6591 * config/i386/i386.md: Use new attribute notation to break up
6592 long lines in define_attr forms.
6593
6594 2002-05-12 Richard Henderson <rth@redhat.com>
6595
6596 * expr.c (compress_float_constant): New.
6597 (emit_move_insn): Use it.
6598 (float_extend_from_mem): New.
6599 (init_expr_once): Initialize it.
6600 * real.c (exact_real_truncate): New.
6601
6602 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6603 dropped into memory; penalize for size.
6604 (RTX_COSTS): FLOAT_EXTEND is free.
6605 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6606 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6607
6608 2002-05-12 Richard Henderson <rth@redhat.com>
6609
6610 * profile.h (profile_info): Add missing extern to declaration.
6611 * profile.c (profile_info): Define it.
6612
6613 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6614
6615 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6616 used for DImode and TImode.
6617
6618 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
6619
6620 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6621 fake a newline.
6622
6623 2002-05-11 Zack Weinberg <zack@codesourcery.com>
6624
6625 * config/rs6000/rs6000.c (rs6000_default_long_calls,
6626 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6627 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6628 (rs6000_override_options): Handle -m(no-)longcall.
6629 (init_cumulative_args, output_mi_thunk): Check for both
6630 longcall and shortcall attributes on the function.
6631 (rs6000_attribute_table): Add "shortcall".
6632 (rs6000_handle_longcall_attribute): Update comment.
6633 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6634 altivec_expand_ternop_builtin): Add default clauses to switches
6635 to silence warnings.
6636
6637 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6638 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
6639 (TARGET_OPTIONS): Add longcall and no-longcall.
6640
6641 * config/rs6000/rs6000.md (call_nonlocal_sysv,
6642 call_value_nonlocal_sysv): Split by alternatives. One pair
6643 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6644 the call cookie. The other pair accepts only LR/CTR and has
6645 no restriction.
6646
6647 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6648 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6649 tmake_file.
6650 * config/rs6000/rs6000-c.c: New file.
6651 * config/rs6000/t-rs6000-c-rule: New file.
6652 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6653 Prototype rs6000_pragma_longcall.
6654
6655 * doc/extend.texi: Document shortcall attribute.
6656 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6657
6658 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6659
6660 * reorg.c (dbr_schedule): Remove unnecessary test.
6661
6662 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
6663
6664 * i386.md (testsi to testqi spliters): New.
6665
6666 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
6667
6668 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6669
6670 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6671
6672 * basic-block.h: New flag EDGE_CAN_FALLTHRU
6673 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6674 that can be made fallthru.
6675
6676 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
6677
6678 * cfglayout.c (cleanup_unconditional_jumps): New static function.
6679 (cfg_layout_initialize): Use it.
6680
6681 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
6682
6683 * config/avr/avr.c (avr_mcu_types): Update supported devices.
6684 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6685 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6686
6687 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
6688
6689 * dbxout.c: Fix formatting.
6690 * dependence.c: Likewise.
6691 * df.c: Likewise.
6692 * diagnostic.c: Likewise.
6693 * doloop.c: Likewise.
6694 * dominance.c: Likewise.
6695 * doschk.c: Likewise.
6696 * dwarf2asm.c: Likewise.
6697 * dwarf2out.c: Likewise.
6698 * dwarfout.c: Likewise.
6699
6700 2002-05-10 Richard Henderson <rth@redhat.com>
6701
6702 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
6703 Convert integers constants as needed. Replace "nwords" field with
6704 "sizeof_bb".
6705 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6706 * function.h: Fix typo in comment.
6707 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6708
6709 2002-05-10 Roger Sayle <roger@eyesopen.com>
6710
6711 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6712 into the equivalent (signed char)c > 0.
6713
6714 2002-05-10 Janis Johnson <janis187@us.ibm.com>
6715
6716 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6717 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6718 (struct prefetch_info): Fix spelling of member bytes_accessed.
6719 (emit_prefetch_instructions): Make dump messages more regular;
6720 restructure code to add more dump messages; use new macros for
6721 heuristics. (There are no code generation changes in any of this).
6722
6723 2002-05-10 David S. Miller <davem@redhat.com>
6724
6725 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6726 (struct rtx_def): Update unchanging flag comment.
6727 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6728 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6729 to be handled to INSN too.
6730 (dbr_schedule): Likewise.
6731 * resource.c (next_insn_no_annul): Likewise.
6732
6733 * cse.c (rtx_cost): Remove multiplication by power of 2 special
6734 casing.
6735
6736 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6737
6738 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6739 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6740 (possibly) work around broken /bin/sh.
6741
6742 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6743
6744 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6745 . as N64/N32 libgcc_s.so subdirs.
6746
6747 2002-05-10 David S. Miller <davem@redhat.com>
6748
6749 * config/sparc/sparc.md: Use define_constants for unspec numbers.
6750
6751 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6752 more accurately.
6753 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6754 comment.
6755 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6756 * doc/rtl.texi: Document these macros more accurately.
6757 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6758 JUMP_INSNs and CALL_INSNs.
6759 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6760 or INSN_FROM_TARGET_P if the code is appropriate.
6761
6762 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6763
6764 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6765 before using SYMBOL_REF_FLAG (addr).
6766
6767 * config/avr/avr-protos.h (avr_io_address_p): Declare.
6768 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6769 Make non-static. Update all callers.
6770 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6771 New insns to clear/set/test a single bit in I/O address space.
6772
6773 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6774
6775 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6776
6777 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6778
6779 * Makefile.in: Update.
6780 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6781 builtin_define_std): New.
6782 (c_common_init): Register CPP builtins callback.
6783 * c-common.h (flag_iso, flag_undef): New.
6784 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6785 * c-lex.c: Don't include target.h.
6786 (cb_register_builtins): Move to c-common.c.
6787 (init_c_lex): Don't register hook here.
6788 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6789 (cpp_define, cpp_assert): Remove.
6790 * gcc.c (cc1_options): Pass -undef to front end.
6791 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6792 (TARGET_INITIALIZER): Update.
6793 * target.h (struct cpp_reader): Don't predeclare.
6794 (struct gcc_target): Remove cpp builtin hook.
6795 * tree.c (default_register_cpp_builtins): Remove.
6796 doc:
6797 * tm.texi: Update.
6798
6799 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6800
6801 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6802
6803 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6804
6805 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6806 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6807
6808 2002-05-09 Jakub Jelinek <jakub@redhat.com>
6809
6810 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6811 * config/sparc/libgcc-sparc-glibc.ver: New file.
6812 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6813 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6814
6815 2002-05-09 Jakub Jelinek <jakub@redhat.com>
6816
6817 PR target/6429
6818 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6819 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6820 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6821 base multilibs.
6822 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6823 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6824 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6825 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6826
6827 2002-05-09 Richard Henderson <rth@redhat.com>
6828
6829 * config/ia64/ia64.md: Use define_constants for unspec numbers.
6830 * config/ia64/ia64.c: Likewise.
6831
6832 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
6833
6834 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6835 (save_restore_insns): Likewise.
6836 (mips_expand_prologue, mips_expand_epilogue): Update callers.
6837 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6838
6839 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
6840
6841 * athlon.md, k6.md, pentium.md, ppro.md): New files.
6842 * i386.md: Move scheduling information into new files.
6843
6844 * i386.md (type attribute): Add "rotate" for rotate insns.
6845 (rotate insns): Set type to "rotate".
6846 (various attributes and function units): Treat rotate like shift.
6847 (pent_pair attribute): Only rotates by one bit position are
6848 pairable.
6849 (sbb insns): Explicitly set pent_pair attribute on a couple
6850 that were missing it.
6851
6852 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
6853
6854 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6855 make sure that buffer starts on odd word address.
6856 (sh_va_arg): Skip odd fp registers when reading a double precision
6857 value.
6858
6859 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6860
6861 * tree.h (preserve_data, object_permanent_p, type_precision):
6862 Remove.
6863
6864 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6865
6866 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6867 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6868 doc:
6869 * cpp.texi: Update for removal of obsolete features.
6870
6871 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
6872 Jeffrey A Law (law@redhat.com)
6873
6874 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
6875 the DFA interface for Pentium processors.
6876 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6877 (attr_pent_pair, ix86_pent_find_pair): Remove.
6878 (ix86_sched_reorder_pentium): Remove.
6879 (ix86_sched_reorder): Remove reordering for Pentium.
6880 * i386.md (Pentium scheduling): Rewrite using DFA description.
6881
6882 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
6883
6884 * cfganal.c (can_fallthru): Fix fast path.
6885 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6886 with edges to the next block.
6887
6888 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
6889 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
6890
6891 * final.c (end_final): Use C trees to output data structures for profiling.
6892
6893 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
6894 (profile.o): New dependency profile.h
6895 (final.o): New dependency profile.h
6896 * profile.h: New file. New global structure profile_info.
6897 * final.h (count_edges_instrumented_now): Declare.
6898 (current_function_cfg_checksum): Declare.
6899 (function_list): New structure.
6900 (functions_head, functions_tail): New static variables.
6901 (end_final): Emits more data, removed some -ax stuff.
6902 (final): Stores function names and chcksums.
6903 * gcov-io.h (__write_gcov_string): New function.
6904 (__read_gcov_string): New function.
6905 * gcov.c (read_profile): New function.
6906 (create_program_flow_graph): Uses read_profile instead of reading
6907 da_file.
6908 (read_files): Removed da_file checking, it's done by read_profile now.
6909 * libgcc2.c (bb_function_info): New structure.
6910 (bb): New field in structure, removed some -ax stuff.
6911 (__bb_exit_func): Changed structure of da_file.
6912 * profile.c (count_edges_instrumented_now): New global variable.
6913 (current_function_cfg_checksum): New global variable.
6914 (max_counter_in_program): New global variable.
6915 (get_exec_counts): New function.
6916 (compute_checksum): New function.
6917 (instrument_edges): Sets count_edges_instrumented_now.
6918 (compute_branch_probabilities): Uses get_exec_counts instead of
6919 reading da_file.
6920 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6921 (init_branch_prob): Removed da_file checking, done in get_exec_counts
6922 now.
6923 (end_branch_prob): Removed da_file checking, done in get_exec_counts
6924 now.
6925 * gcov.texi: Updated information about gcov file format.
6926
6927 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
6928
6929 * sbitmap.c: Fix formatting.
6930 * scan.c: Likewise.
6931 * scan-decls.c: Likewise.
6932 * sched-deps.c: Likewise.
6933 * sched-ebb.c: Likewise.
6934 * sched-rgn.c: Likewise.
6935 * sched-vis.c: Likewise.
6936 * sdbout.c: Likewise.
6937 * sibcall.c: Likewise.
6938 * simplify-rtx.c: Likewise.
6939 * ssa.c: Likewise.
6940 * ssa-ccp.c: Likewise.
6941 * ssa-dce.c: Likewise.
6942 * stmt.c: Likewise.
6943 * stor-layout.c: Likewise.
6944 * stringpool.c: Likewise.
6945
6946 2002-05-09 David S. Miller <davem@redhat.com>
6947
6948 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6949
6950 2002-05-07 David S. Miller <davem@redhat.com>
6951
6952 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6953 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6954 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6955 library implementation clobbers the output before the inputs
6956 are fully consumed, use stack temporary for the output.
6957
6958 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
6959
6960 * config/netbsd.h (CPP_SPEC): Remove.
6961 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6962 * config/i386/netbsd.h (CPP_SPEC): Define.
6963 * config/ns32k/netbsd.h (CPP_SPEC): Define.
6964 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6965 * config/sparc/netbsd.h (CPP_SPEC): Define.
6966 * config/vax/netbsd.h (CPP_SPEC): Define.
6967
6968 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
6969
6970 * read-rtl.c: Fix formatting.
6971 * real.c: Likewise.
6972 * recog.c: Likewise.
6973 * regclass.c: Likewise.
6974 * regmove.c: Likewise.
6975 * reg-stack.c: Likewise.
6976 * reload1.c: Likewise.
6977 * reload.c: Likewise.
6978 * resource.c: Likewise.
6979 * rtlanal.c: Likewise.
6980 * rtl.c: Likewise.
6981 * rtl-error.c: Likewise.
6982
6983 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6984
6985 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6986 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6987
6988 2002-05-08 Bernd Schmidt <bernds@redhat.com>
6989
6990 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6991 use __SSE2__ macro instead.
6992 * config/i386/xmmintrin.h: Likewise.
6993
6994 2002-05-08 Janis Johnson <janis187@us.ibm.com>
6995
6996 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6997 and use it in all invocations of these macros. Clean up comments.
6998 * rtl.c (rtl_check_failed_flag): Add an argument for the name
6999 of the flag access macro whose check failed.
7000 * doc/rtl.texi (Flags): Document additional flag uses.
7001
7002 2002-05-08 Robert Spier <rspier@pobox.com>
7003 Neil Booth <neil@daikokuya.demon.co.uk>
7004
7005 PR preprocessor/6521
7006 * cppfiles.c (handle_missing_header): Don't do anything
7007 different for <> includes.
7008 doc:
7009 * cppopts.texi: Update documentation for -MG.
7010
7011 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
7012
7013 * cpplex.c (cpp_interpret_charconst): Truncate as well as
7014 sign-extend.
7015 doc:
7016 * cpp.texi: Clarify multichar charconst valuation.
7017
7018 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7019
7020 * doc/invoke.texi: Document -mwindiss option.
7021
7022 2002-05-08 Jason Merrill <jason@redhat.com>
7023
7024 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7025
7026 * dwarf2out.c (gen_type_die): Abort on broken recursion.
7027
7028 PR c++/6381
7029 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7030 REAL_CST.
7031
7032 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
7033
7034 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7035 little-endian multilibs to override arm/thumb multilibs.
7036 Do not build hardware floating point multilibs, nor apcs-26
7037 multilibs for the Thumb.
7038
7039 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7040
7041 PR c/6569.
7042 * varasm.c (mark_weak): New function.
7043 (merge_weak): Use it. Do not call declare_weak.
7044 (declare_weak): Use merge_weak.
7045
7046 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7047
7048 * cse.c (dead_libcall_p): Update counts.
7049 (delete_trivially_dead_insns): Update call of dead_libcall_p.
7050
7051 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7052
7053 * cfglayout.c (function_tail_eff_head): Rename to ...
7054 (function_footer): ... this one.
7055 (unlink_insn_chain): New functions.
7056 (label_for_bb): Only call block_label and emit debug message.
7057 (record_effective_endpoints): Actually unlink the headers and footers.
7058 (fixup_reorder_cahin): Re-insert the unlinked sequences.
7059 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7060 * cfglayout.h (struct reorder_block_def): New fields footer/header;
7061 remove eff_head/eff_end.
7062 * rtl.h (set_first_insn): Declare.
7063 * emit-rtl.c (set_first_insn): New function.
7064
7065 * cfglayout.c (fixup_reorder_chain): Dump duplicated
7066 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7067 cfg_layout_duplicate_bb): New global function.
7068 (duplicate_insn_chain): New static function.
7069 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7070 cfg_layout_duplicate_bb): Declare.
7071 (struct reorder_block_def): Add "original" field.
7072 * emit-rtl.c (emit_copy_of_insn_after): New function.
7073 * rtl.h (emit_copy_of_insn_after): Declare.
7074
7075 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
7076 (fixup_reorder_chain): properly handle edges to exit block.
7077
7078 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7079 Jan Hubicka <jh@suse.cz>
7080
7081 * basic-block.h (note_prediction_to_br_prob): declare.
7082 * c-semantics.c: Inlucde predit.h
7083 (expand_stmt): predict GOTO_STMT as not taken.
7084 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
7085 (cleanup_cfg): Do not free tail_recursion_list.
7086 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
7087 (flow_delete_block): Kill predictions past end of basic block.
7088 * output.h (delete_unreachable_blocks): Declare.
7089 * predict.c (predicted_by_p, process_note_predictions,
7090 process_note_prediction, last_block_p): New function.
7091 (estimate_probability): Bypass loop on PRED_CONTINUE;
7092 do not handle noreturn heuristics; kill PRED_RETURN; add
7093 PRED_EARLY_RETURN.
7094 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
7095 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
7096 * predict.h (IS_TAKEN): New constant.
7097 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
7098 * rtl.c (NOTE_INSN_PREDICTION): New.
7099 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
7100 New macro.
7101 (insn_note): add NOTE_INSN_PREDICTION.
7102 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
7103 CFG; free tail_recursion_label_list.
7104 * stmt.c: Include predict.h;
7105 (return_prediction): New.
7106 (expand_value_return): Use it.
7107 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
7108
7109 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
7110
7111 * config/mips/mips.md: Name the unspecs with define_constant.
7112 (*HILO_delay): Rename to 'hilo_delay' (no star).
7113 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
7114 (reload_outdi, reload_outsi): Likewise.
7115
7116 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
7117
7118 * toplev.c: Fix formatting.
7119
7120 2002-05-07 Janis Johnson <janis187@us.ibm.com>
7121
7122 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
7123 * configure.in (ac_rtlflag_checking): New.
7124 * doc/install.texi (--enable-checking): Document RTL flag checking.
7125
7126 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7127
7128 * c-common.c (c_common_init): Set options->unsigned_wchar.
7129 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
7130 group target dependencies.
7131 (init_builtins, cpp_handle_option): Update.
7132 * cpplex.c (cpp_interpret_charconst): Update.
7133 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
7134 signed_char to unsigned_char, group target dependencies.
7135 * defaults.h (WCHAR_UNSIGNED): Remove.
7136 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
7137 config:
7138 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
7139 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
7140 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
7141 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
7142 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
7143 doc:
7144 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
7145
7146 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7147
7148 * fixinc/inclhack.def (windiss_math1): New fix.
7149 (windiss_math2): Likewise.
7150 (windiss_valist): Likewise.
7151 * fixinc/fixincl.x: Regenerated.
7152
7153 2002-05-07 Andreas Jaeger <aj@suse.de>
7154
7155 * genautomata.c (output_internal_min_issue_delay_func): Add
7156 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
7157 (output_internal_trans_func): Likewise.
7158
7159 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
7160
7161 * pa.c (hppa_profile_hook): Use force_reg to get the address
7162 of the profile hook into an appropriate pseudo register.
7163
7164 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7165
7166 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
7167 (LINK_START_SPEC): Handle it.
7168 (LINK_OS_SPEC): Likewise.
7169 (CPP_SPEC): Likewise.
7170 (STARTFILE_SPEC): Likewise.
7171 (LIB_SPEC): Likewise.
7172 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
7173 all platforms.
7174 (CRTSAVRES_DEFAULT_SPEC): New macro.
7175 (LIB_WINDISS_SPEC): New macro.
7176 (CPP_OS_WINDISS_SPEC): Likewise.
7177 (STARTFILE_WINDISS_SPEC): Likewise.
7178 (ENDFILE_WINDISS_SPEC): Likewise.
7179 (LINK_START_WINDISS_SPEC): Likewise.
7180 (LINK_OS_WINDISS_SPEC): Likewise.
7181 * config/rs6000/windiss.h: New file.
7182
7183 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
7184
7185 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
7186
7187 2002-05-06 David S. Miller <davem@redhat.com>
7188
7189 * config/sparc/sparc.md (shift insns): Do not mask off
7190 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7191 take care of it.
7192
7193 2002-05-06 Richard Henderson <rth@redhat.com>
7194
7195 PR c++/6212
7196 * expr.c (highest_pow2_factor_for_type): New.
7197 (expand_assignment): Use it.
7198
7199 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
7200
7201 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7202 unspec_volatile.
7203 ("altivec_mfvscr"): Same.
7204
7205 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7206
7207 * rtl.h (struct rtx_def): Update comments.
7208 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
7209 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
7210 RTL_FLAG_CHECK macros with list of expected RTL codes.
7211 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7212 (rtl_check_failed_flag): New.
7213 * reload1.c (reload): Use REG macro before changing rtx to MEM.
7214 (reload_cse_noop_set_p): Check rtx code before using access macro.
7215 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7216 before using access macro.
7217
7218 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7219
7220 * doc/rtl.texi (Flags): Update to reflect current usage.
7221
7222 2002-05-06 Roger Sayle <roger@eyesopen.com>
7223
7224 PR opt/3995
7225 * fold-const.c (sign_bit_p): New function.
7226 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
7227 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
7228 Reapply fold when converting (A & C) == C into (A & C) != 0.
7229 (fold_binary_op_with_conditional_arg): Fix typo in comment.
7230
7231 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7232
7233 * c-common.c (warn_multichar): New.
7234 (c_common_init): Set CPP's warn_multichar.
7235 * c-common.h (warn_multichar): New.
7236 * c-decl.c (warn_multichar): Remove.
7237 * c-lex.c (lex_charconst): Update.
7238 * c-tree.h (warn_multichar): Remove.
7239 * cppexp.c (eval_token): Sign-extend charconst value.
7240 * cppinit.c (cpp_create_reader): Set warn_multichar.
7241 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7242 each character. Update prototype. Sign-extend the result.
7243 * cpplib.h: Fix conditions.
7244 (struct cpp_options): Add new warning flag.
7245 (cpp_interpret_charconst): Update prototype.
7246 doc:
7247 * cpp.texi: Update documentation.
7248
7249 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
7250
7251 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7252 Fix typo in usage of allof instead of unit.
7253
7254 2002-05-06 Richard Henderson <rth@redhat.com>
7255
7256 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7257 and any jump or call for IN.
7258
7259 2002-05-06 Bernd Schmidt <bernds@redhat.com>
7260
7261 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
7262 -msse2.
7263 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
7264
7265 2002-05-06 Roger Sayle <roger@eyesopen.com>
7266
7267 * fold-const.c (lshift-double): Cast the high word to an unsigned
7268 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7269 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7270 avoid compiler warning. (fold): Remove redundant code from
7271 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7272
7273 2002-05-06 Jeff Law <law@redhat.com>
7274
7275 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7276 * pa.c (pa_adjust_cost): Remove all true dependency cost
7277 adjustments. Also remove support for non-DFA scheduling.
7278 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7279 to adjust true dependency costs. Update various comments.
7280 (7100lc, 7200, 7300 scheduling): Simplify by combining the
7281 FP ALU & MPY units into a single unit.
7282
7283 2002-05-06 Catherine Moore <clm@redhat.com>
7284
7285 * config/v850/v850.c (compute_register_save_size): Make sure
7286 to count all of the registers that will be saved.
7287
7288 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7289
7290 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
7291
7292 2002-05-06 David S. Miller <davem@redhat.com>
7293
7294 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7295 allow result to overlap input operands in memory.
7296
7297 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7298
7299 doc:
7300 * cpp.texi: Update multichar charconst docs.
7301
7302 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7303
7304 * cpplex.c (cpp_interpret_charconst): Sign-extend each
7305 character. Don't ignore excess characters. Treat
7306 multicharacter character constants as signed.
7307 (cpp_parse_escape): Clarify diagnostic.
7308
7309 2002-05-05 Jakub Jelinek <jakub@redhat.com>
7310
7311 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7312 use add instead of shift.
7313 (ashldi3_sp64): Likewise.
7314 (ashlsi3_const1, ashldi3_const1): Remove.
7315 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7316 * config/sparc/sparc.c (const1_operand): New.
7317
7318 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
7319
7320 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7321
7322 2002-05-05 Jakub Jelinek <jakub@redhat.com>
7323
7324 PR target/6561
7325 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7326
7327 2002-05-05 Richard Henderson <rth@redhat.com>
7328
7329 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7330 memory latency adjustments.
7331 (alpha_variable_issue): Remove.
7332 (alpha_use_dfa_pipeline_interface): New.
7333 (alpha_multipass_dfa_lookahead): New.
7334 * config/alpha/alpha.md: Remove define_function_unit scheduling;
7335 include new dfa scheduling.
7336 (attr type): Add none.
7337 (blockage): Use it.
7338 * config/alpha/ev4.md: New.
7339 * config/alpha/ev5.md: New.
7340 * config/alpha/ev6.md: New.
7341
7342 2002-05-05 David S. Miller <davem@redhat.com>
7343
7344 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7345
7346 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
7347
7348 * cse.c: Fix formatting.
7349 * emit-rtl.c: Likewise.
7350
7351 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7352
7353 * genautomata.c (initiate_states): Add additional guard to
7354 initialize `units_array'.
7355
7356 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7357
7358 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7359 process_unit_to_form_the_same_automaton_unit_lists,
7360 form_the_same_automaton_unit_lists
7361 check_unit_distributions_to_automata): New prototypes and
7362 functions.
7363 (check_automata): Rename it into `check_automata_insn_issues'.
7364 (unit_decl): New fields `the_same_automaton_unit' and
7365 `the_same_automaton_message_reported_p'.
7366 (unit_decl_t): New typedef.
7367 (the_same_automaton_lists): New gloval variable.
7368 (unit_regexp, unit_set_el, units_array, units_cmp,
7369 output_get_cpu_unit_code_func): Use the typedef.
7370 (evaluate_max_reserv_cycles): Increment
7371 `description->max_insn_reserv_cycles'.
7372 (initiate_states): Don't increment `max_cycles_num'.
7373 (transform_insn_regexps): Move code around transformation of
7374 regexps from `generate'.
7375 (generate): Remove call of `transform_insn_regexps'.
7376 (expand_automata): Call `transform_insn_regexps' and
7377 `check_unit_distributions_to_automata'. Check errors before
7378 `generate'.
7379
7380 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7381 automaton `ultrasparc3_1'.
7382
7383 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
7384
7385 * c-common.c (c_common_init): Set up CPP arithmetic.
7386 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7387 something reasonable for the host.
7388 (sanity_checks): Add checks.
7389 (cpp_read_main_file): Call sanity_checks() from here...
7390 (cpp_post_options): ... not here.
7391 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7392 * cpplib.h (struct cpp_options): New member int_precision.
7393
7394 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7395
7396 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7397
7398 2002-05-04 David S. Miller <davem@redhat.com>
7399
7400 * config/sparc/linux.h, config/sparc/linux64.h
7401 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7402
7403 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7404 more RTX codes.
7405 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7406
7407 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7408 of SETs.
7409
7410 2002-05-05 Tim Josling <tej@melbpc.org.au>
7411
7412 * treelang; New directory for new sample language treelang.
7413
7414 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7415
7416 * Makefile.in (c-lex.o): Update.
7417 * c-lex.c: Include target.h.
7418 (cb_register_builtins): New.
7419 (init_c_lex): Set builtins callback.
7420 * c-lex.h (cpp_define, cpp_assert): New prototypes.
7421 * cppinit.c (init_builtins): Use callback, including for
7422 GXX_WEAK.
7423 * cpplib.h (struct cpp_callbacks): New member.
7424 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7425 (TARGET_INITIALIZER): Update.
7426 * target.h (struct gcc_target): New hook.
7427 * tree.c (default_register_cpp_builtins): New.
7428 * tree.h (default_register_cpp_builtins): New.
7429 doc:
7430 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7431
7432 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7433
7434 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7435 (cpp_post_options): Move sanity checks to...
7436 (sanity_checks): New.
7437 * cpplex.c (maybe_read_ucs): Fix prototype.
7438 (parse_string, cpp_parse_escape): Cast for %c format specifier.
7439 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7440 if necessary.
7441
7442 2002-05-04 Bernd Schmidt <bernds@redhat.com>
7443
7444 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7445 builtins. Use V2DI patterns instead of TI for logical operations.
7446 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7447 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7448 (ix86_expand_builtins): Change the pattern used for movntdq.
7449 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7450 sse2_nandv2di3): New patterns.
7451 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7452 on operands.
7453 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7454 (cvtdq2pd): Correct mode on operand 1.
7455 (sse2_umulsidi3): Describe without unspec.
7456 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7457 machine modes.
7458 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7459 (ashlv2di3): Likewise, from sse2_ashlv2di3.
7460 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7461 ashlv4si3, ashlv2di3): Use SImode for shift count.
7462 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7463 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7464 New patterns.
7465 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7466 New typedefs.
7467 (__m128i, __m128d): New macros.
7468 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7469 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7470 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7471 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7472 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
7473 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
7474 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7475 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
7476 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
7477 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7478 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7479 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7480 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7481 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7482 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7483 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7484 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7485 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7486 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7487 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7488 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7489 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7490 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7491 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7492 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7493 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7494 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7495 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7496 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7497 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7498 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7499 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7500 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7501 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7502 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7503 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7504 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7505 functions.
7506 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
7507 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7508
7509 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
7510
7511 * dwarf2out.c: Fix formatting.
7512 * varasm.c: Likewise.
7513
7514 2002-05-04 David Edelsohn <edelsohn@gnu.org>
7515
7516 PR c/6543
7517 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7518 clobber and use result as temporary value.
7519
7520 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7521
7522 * expr.c (force_operand): Use expand_simple_* to handle more
7523 cases.
7524
7525 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7526
7527 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7528 and sign-extension.
7529 (lex_charconst): Update for change in prototype of
7530 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
7531 appropriately.
7532 * cpphash.h (BITS_PER_CPPCHAR_T): New.
7533 * cppinit.c (cpp_create_reader): Initialize them for no
7534 change in semantics.
7535 (cpp_post_options): Add sanity checks.
7536 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7537 and truncation issues. Calculate in type cppchar_t.
7538 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7539 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
7540 run-time dependent precision correctly. Return whether the
7541 result is signed or not.
7542 * cpplib.c (dequote_string): Use cppchar_t; update.
7543 * cpplib.h (cppchar_signed_t): New.
7544 struct cpp_options): New precision members.
7545 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
7546 * cppexp.c (eval_token): Update.
7547
7548 2002-05-03 David S. Miller <davem@redhat.com>
7549
7550 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7551 * config/sparc/sparc.c (sparc_rtx_costs): New function
7552 implementing RTX_COSTS and CONST_COSTS.
7553 * config/sparc/sparc.h (CONST_COSTS): Delete.
7554 (RTX_COSTS_CASES): Define.
7555 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7556 the work.
7557
7558 * config/sparc/sparc.md (DFA schedulers): Split out...
7559 * config/sparc/cypress.md, config/sparc/hypersparc.md,
7560 config/sparc/sparclet.md, config/sparc/supersparc.md,
7561 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7562
7563 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7564 checks on it, always defined for Sparc.
7565
7566 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7567 Tweak, and add more detailed comments.
7568
7569 2002-05-03 Zack Weinberg <zack@codesourcery.com>
7570
7571 * Re-apply patch accidentally reverted with
7572 DFA scheduler merge: remove all rules and variables to slurp
7573 source files out of libiberty and rebuild them with HOST_CC.
7574 ($(HOST_PREFIX_1)varray.o): New rule.
7575 (genattrtab rule): Word wrap.
7576
7577 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7578
7579 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7580 (CPP_SUBTARGET_SPEC): Define.
7581 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7582 cpp_subtarget specs.
7583 (CPP_SPEC): Redefine to include %(cpp_subtarget).
7584
7585 2002-05-03 David S. Miller <davem@redhat.com>
7586
7587 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7588 * target.h (struct gcc_target): Delete cycle_display member.
7589
7590 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7591 (rtx_needs_barrier): Delete reference to cycle_display unspec.
7592 (ia64_sched_reorder2): Mention need for cycle display handling
7593 once such notes exist.
7594
7595 2002-05-03 Richard Henderson <rth@redhat.com>
7596
7597 * real.c (etoasc): Strip most trailing zeros for clarity.
7598 * sched-vis.c: Include real.h.
7599 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7600 * Makefile.in (sched-vis.o): Add real.h.
7601
7602 2002-05-03 David S. Miller <davem@redhat.com>
7603
7604 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7605 no longer needed.
7606
7607 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
7608
7609 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7610 when we get an out of range literal.
7611 (altivec_expand_ternop_builtin): Same.
7612 (altivec_expand_unop_builtin): Same.
7613 (altivec_expand_builtin): Same, for dss.
7614 (altivec_expand_builtin): Use trees instead of rtl when
7615 determining literal argument validity.
7616
7617 2002-05-03 David S. Miller <davem@redhat.com>
7618
7619 Delete cycle display scheduling hook.
7620 * config/ia64/ia64.c (ia64_cycle_display,
7621 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7622 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7623 and use emit_insn_before instead of ia64_emit_insn_before.
7624 * config/ia64/ia64.md (unspec usage): Delete cycle display.
7625 (cycle_display): Delete insn pattern.
7626 * config/sparc/sparc.md (unspec usage): Delete cycle display.
7627 (cycle_display): Delete insn pattern.
7628 * config/sparc/sparc.c (sparc_cycle_display,
7629 TARGET_SCHED_CYCLE_DISPLAY): Delete.
7630 * doc/md.texi (cycle_display): Don't mention.
7631 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
7632
7633 2002-05-03 Richard Henderson <rth@redhat.com>
7634
7635 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7636 * recog.h: Declare them.
7637
7638 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7639 * config/sparc/sparc.md: Use store_data_bypass_p instead.
7640 * config/sparc/sparc-protos.h: Update.
7641
7642 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7643
7644 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7645 -D__arch64__. Add -D_LP64.
7646 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7647 from sparc.h.
7648 (CPP_ARCH64_SPEC): Likewise.
7649 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7650 (NO_BUILTIN_SIZE_TYPE): Undef.
7651
7652 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
7653
7654 * genautomata.c (min_issue_delay_pass_states): Change return type
7655 in the prototype.
7656 (min_issue_delay_pass_states): Change the algorithm.
7657 (min_issue_delay): Set up min_insn_issue_delay for the state.
7658 (output_min_issue_delay_table): Interchange the nested loops and
7659 and initiate min_insn_issue_delay for states.
7660
7661 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
7662
7663 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
7664 jump is simplejump.
7665
7666 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
7667
7668 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
7669 sequence.
7670
7671 2002-05-03 Richard Henderson <rth@redhat.com>
7672
7673 PR opt/6534
7674 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7675 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7676 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7677 code before JUMP, not EARLIEST.
7678
7679 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
7680
7681 * c-format.c (check_format_info_main): Don't check for presence of
7682 parameter for * width until after operand number has been read,
7683 and only check for it if format parameters are available.
7684 Fixes PR c/6547.
7685
7686 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7687
7688 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7689 (LINK_SPEC): Undef before defining.
7690
7691 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7692
7693 PR preprocessor/6489
7694 * tradcpp.c (fixup_newlines): New.
7695 (main, finclude): Use it.
7696
7697 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
7698
7699 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7700 * config/mips/mips.c (mips_unique_section): Strip encoding from
7701 decl name.
7702
7703 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7704
7705 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7706 mode.
7707
7708 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7709
7710 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7711 (Specific): Removed buildstats references.
7712 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7713 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7714 Accomodate Solaris versions beyond 8.
7715 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7716 (Specific, *-*-solaris2.8): Removed, obsolete.
7717
7718 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7719
7720 PR target/6542
7721 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7722 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7723 fill leaf_reg_remap with identity.
7724 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7725
7726 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7727
7728 * config/h8300/crti.asm: Remove trailing spaces.
7729 * config/h8300/h8300.c: Likewise.
7730 * config/h8300/lib1funcs.asm: Likewise.
7731
7732 2002-05-02 Jason Merrill <jason@redhat.com>
7733
7734 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7735 * c-decl.c (c_init_decl_processing): Use it.
7736 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7737 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7738 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7739
7740 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7741
7742 * regrename.c: Fix formatting.
7743 * tree.c: Likewise.
7744
7745 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7746
7747 * i386.md (attribute memory): Handle compares properly.
7748
7749 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
7750
7751 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
7752 to none.
7753
7754 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
7755
7756 * function.c: Fix formatting.
7757
7758 2002-05-02 Jan Hubicka <jh@suse.cz>
7759
7760 * haifa-sched.c (schedule_insn): Print table of instructions and
7761 reservations.
7762 (sched_block): Do not print ready list at verbosity level 1.
7763 * sched-vis.c (print_insn): Make global.
7764 * sched-ebb.c (ebb_print_insn): Rename from...
7765 (print_insn): ... this one.
7766 * sched-int.h (print_insn): Declare
7767
7768 2002-05-02 Richard Henderson <rth@redhat.com>
7769
7770 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7771 emitted by cycle_display.
7772
7773 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
7774
7775 * doc/install.texi (*-*-freebsd*): Update to latest status.
7776
7777 2002-05-02 Jakub Jelinek <jakub@redhat.com>
7778
7779 PR target/6540
7780 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7781 * config/float-sparc.h: Assume 128-bit long double if
7782 __LONG_DOUBLE_128__ is defined.
7783
7784 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
7785
7786 * genattrtab.c (write_function_unit_info): Add a dummy element
7787 when num_units == 0.
7788
7789 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7790
7791 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7792 TYPE_MODE (double_type_node) instead of DFmode.
7793
7794 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
7795
7796 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7797 jumps post reload.
7798 * toplev.c (rest_of_compilation): Revert Richard's patch.
7799
7800 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7801
7802 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7803
7804 2002-05-02 Catherine Moore <clm@redhat.com>
7805
7806 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7807
7808 2002-05-02 Kazu Hirata <kazu@hxi.com>
7809
7810 * combine.c: Fix comment typos.
7811 * expr.c: Likewise.
7812 * genautomata.c: Likewise.
7813 * stmt.c: Likewise.
7814 * tree.h: Likewise.
7815
7816 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
7817
7818 * doc/install.texi: State GNAT version requirements.
7819
7820 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
7821
7822 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7823 of the frame pointer or arg pointer register which strict register
7824 checking is not enabled.
7825
7826 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
7827
7828 * gcc.dg/altivec-8.c: New.
7829
7830 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7831 PRE_INC and PRE_DEC for altivec modes.
7832
7833 2002-05-01 Bruce Korb <bkorb@gnu.org>
7834
7835 * fixinc/check.tpl(set-writable): make sure the function exists first
7836 * fixinc/inclhack.def(alpha_assert): fix test_text
7837 * fixinc/tests/base/assert.h: add in missing result
7838
7839 2002-05-01 Jeff Law <law@redhat.com>
7840
7841 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7842 'T' constraint.
7843
7844 2002-05-01 Joel Brobecker <brobecker@gnat.com>
7845
7846 * dbxout.c (dbxout_type): Emit size information for range types,
7847 as well, but only when using GDB extensions.
7848
7849 2002-05-01 Richard Henderson <rth@redhat.com>
7850
7851 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7852 target-independent gnu binutils date test.
7853
7854 2002-05-01 Richard Henderson <rth@redhat.com>
7855
7856 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7857 info before expunging the block.
7858
7859 2002-05-01 Jakub Jelinek <jakub@redhat.com>
7860
7861 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7862 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
7863 -M -or -MM is in effect.
7864
7865 2002-05-01 Zack Weinberg <zack@codesourcery.com>
7866
7867 * config.gcc: Correct test of --enable-obsolete. Obsolete all
7868 A29k configurations.
7869 * doc/install.texi: Update to match.
7870
7871 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7872
7873 PR bootstrap/6514
7874 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7875 for duplicates. Always loop over whole list.
7876
7877 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7878
7879 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7880
7881 2002-05-01 Joel Sherrill <joel@OARcorp.com>
7882
7883 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7884 support routines.
7885
7886 2002-05-01 Joel Sherrill <joel@OARcorp.com>
7887
7888 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7889
7890 2002-05-01 David Edelsohn <edelsohn@gnu.org>
7891
7892 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7893 (nabs_nopower): Same.
7894 (floatdisf2): New pattern.
7895 (absdi2): Convert to define_insn_and_split.
7896 (nabsdi2): Same.
7897 (trunctfsf2): Same.
7898 (floatditf2): Same.
7899 (floatsitf2): Same.
7900 (fix_trunctfdi2): Same.
7901 (fix_trunctfsi2): Same.
7902
7903 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
7904
7905 * doc/install.texi: Update Texinfo version requirement
7906 documentation.
7907
7908 2002-05-01 Jakub Jelinek <jakub@redhat.com>
7909
7910 PR target/6512, PR target/5628
7911 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7912 when memory is not aligned.
7913 (movdf_insn_v9only_vis): Likewise.
7914 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7915 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7916 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7917
7918 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
7919
7920 * gcc.dg/altivec-7.c: New.
7921
7922 * config/rs6000/altivec.h: Cleanup.
7923
7924 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
7925
7926 * doc/invoke.texi (Option Summary): Add -mvrsave=.
7927 (RS/6000 and PowerPC Options): Document -mvrsave=.
7928
7929 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7930 (rs6000_altivec_vrsave_string): Same.
7931 (rs6000_override_options): Call rs6000_parse_vrsave_option.
7932 (rs6000_parse_vrsave_option): New.
7933 (rs6000_stack_info): Only generate vrsave instructions when
7934 TARGET_ALTIVEC_VRSAVE.
7935
7936 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7937 (rs6000_altivec_vrsave_string): Define extern.
7938 (rs6000_altivec_vrsave): Same.
7939 (TARGET_ALTIVEC_VRSAVE): New.
7940
7941 2002-04-30 Richard Henderson <rth@redhat.com>
7942
7943 PR opt/6516
7944 * toplev.c (rest_of_compilation): Don't run cross-jump before
7945 bb-reorder.
7946
7947 2002-04-30 Tom Rix <trix@redhat.com>
7948
7949 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7950 check which_alternative.
7951
7952 2002-04-30 Kazu Hirata <kazu@hxi.com>
7953
7954 * cpplex.c: Fix comment formatting.
7955 * function.c: Likewise.
7956 * integrate.c: Likewise.
7957 * regrename.c: Likewise.
7958 * sibcall.c: Likewise.
7959 * simplify-rtx.c: Likewise.
7960 * tree-inline.c: Likewise.
7961
7962 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7963
7964 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7965 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7966 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7967 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7968 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7969 * pa/x-ada: New file. Define ADA_CFLAGS.
7970
7971 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
7972
7973 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7974 from MMIX_LAST_REGISTER_FILE_REGNUM.
7975 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7976 (struct machine_function): New member highest_saved_stack_register
7977 previously static variable in mmix.c.
7978 (MACHINE_DEPENDENT_REORG): Define.
7979 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7980 (MMIX_OUTPUT_REGNO): New.
7981 (mmix_target_asm_function_prologue): Move calculation of last used
7982 saved-stack-register into...
7983 (mmix_machine_dependent_reorg): New function. Update to also handle
7984 !TARGET_ABI_GNU.
7985 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7986 register names, simplify somewhat by new variable regno.
7987 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
7988 register.
7989 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7990 emitting register names.
7991 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7992 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7993 Remove fixed FIXME.
7994 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7995 Declare.
7996
7997 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7998
7999 2002-04-30 Richard Henderson <rth@redhat.com>
8000
8001 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8002 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8003 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8004 emit_tfmode_cvt): New.
8005 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8006 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8007 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8008 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8009 * config/sparc/sparc-protos.h: Update.
8010
8011 2002-04-30 Janis Johnson <janis187@us.ibm.com>
8012
8013 * install.texi (Final install): Add to the list of info to include
8014 in a report of a successful bootstrap, and add link to 3.1 list.
8015
8016 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
8017
8018 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8019 (mode): Add vector modes
8020 (i387): Kill attribute.
8021 (unit): New attribute.
8022 (length_immediate): Grok new types.
8023 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8024 (modrm): Use "unit".
8025 (memory): Handle MMX/SSE properly.
8026 (scheduling descriptions): Kill uses of fop1.
8027 (sse, mmx, fp patterns): Set type and mode properly.
8028
8029 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
8030
8031 * pa.c (override_options): Default to PA8000 scheduling.
8032 * doc/invoke.texi (HP-PA options): Mention newly added 7300
8033 scheduling parameter.
8034
8035 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8036 handling of double precision multiplies.
8037
8038 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8039 fpdiv and fpsqrt instructions.
8040 (7200 & 7300 scheduling): Fix typo in handling of
8041 store-load and store-store penalties.
8042
8043 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8044
8045 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8046 mips. Add two missing commas.
8047
8048 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
8049
8050 * doc/contrib.texi (Contributors): Update Paolo Carlini's
8051 and Benjamin Kosnik's entries.
8052
8053 2002-04-29 David S. Miller <davem@redhat.com>
8054
8055 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8056 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8057 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8058 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8059
8060 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8061
8062 * combine.c (find_split_point): Use gen_int_mode.
8063
8064 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
8065
8066 Merging code from dfa-branch:
8067
8068 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
8069
8070 * genautomata.c (output_reserv_sets): Fix typo.
8071
8072 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
8073
8074 * genautomata.c (output_reserv_sets): Remove
8075 next_cycle_output_flag.
8076
8077 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
8078
8079 * sched-rgn.c (init_ready_list): Make the DFA code handle
8080 USE/CLOBBER insns in the same way as the traditional
8081 scheduler.
8082 (new_ready): Similarly..
8083
8084 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
8085
8086 * haifa-sched.c (schedule_block): Change the DFA state only after
8087 issuing insn.
8088
8089 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
8090
8091 * pa.c (hppa_use_dfa_pipeline_interface): New function.
8092 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
8093 (override_options): Add PA7300 scheduling support.
8094 (pa_adjust_cost): Update various comments. Properly
8095 handle anti and output dependencies when using the
8096 DFA scheduler.
8097 (pa_issue_rate): Add PA7300 scheduling support.
8098 (pa_can_combine_p): Call extract_insn before calling
8099 constrain_operands (taken from mainline tree).
8100 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
8101 * pa.md (cpu attr): Add 7300. Rewrite pipeline
8102 descriptions using DFA descriptions. Add PA7300
8103 scheduling support.
8104
8105 2002-03-30 David S. Miller <davem@redhat.com>
8106
8107 Add UltraSPARC-III DFA scheduling support.
8108 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
8109 Update FP conditional move on register insn patterns to use it, as
8110 appropriate.
8111 (define_attr cpu): Add ultrasparc3.
8112 (define_attr us3load_type): New, update integer load patterns to
8113 set it, as appropriate.
8114 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
8115 (rest): Add UltraSPARC3 scheduling description.
8116 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
8117 (PROCESSOR_ULTRASPARC3): New.
8118 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
8119 ({ASM,CPP}_CPU_SPEC): Likewise.
8120 (REGISTER_MOVE_COST): Likewise.
8121 (RTX_COSTS): Likewise.
8122 * config/sparc/sparc.c (sparc_override_options,
8123 sparc_initialize_trampoline, sparc64_initialize_trampoline,
8124 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8125 sparc_issue_rate): Likewise.
8126 * config/sparc/sol2.h: Likewise.
8127 * config/sparc/sol2-sld-64.h: Likewise.
8128 * config/sparc/linux64.h: Likewise.
8129
8130 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
8131
8132 * doc/md.texi: Add comments about usage the latency time for the
8133 different dependencies and about case when two or more conditions
8134 in different define_insn_reservations returns TRUE for an insn.
8135
8136 * doc/md.texi: Add reference for automaton based pipeline
8137 description.
8138
8139 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
8140
8141 * doc/passes.texi: Add missed information about genattrtab.
8142
8143 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
8144
8145 * genautomata.c (output_automata_list_transition_code): Check
8146 automata_list on NULL.
8147
8148 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
8149
8150 * genautomata.c (output_insn_code_cases,
8151 output_automata_list_min_issue_delay_code,
8152 output_automata_list_transition_code,
8153 output_automata_list_state_alts_code): Comment the functions.
8154
8155 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
8156
8157 * genautomata.c (automata_list_el_t): New typedef.
8158 (get_free_automata_list_el,free_automata_list_el,
8159 free_automata_list, automata_list_hash, automata_list_eq_p,
8160 initiate_automata_lists, automata_list_start, automata_list_add,
8161 automata_list_finish, finish_automata_lists,
8162 output_insn_code_cases, output_automata_list_min_issue_delay_code,
8163 output_automata_list_transition_code,
8164 output_automata_list_state_alts_code, add_automaton_state,
8165 form_important_insn_automata_lists): New functions and prototypes.
8166 (insn_reserv_decl): Add members important_automata_list and
8167 processed_p.
8168 (ainsn): Add members important_p.
8169 (automata_list_el): New structure.
8170 (first_free_automata_list_el, current_automata_list,
8171 automata_list_table): New global variables.
8172 (create_ainsns): Initiate member important_p.
8173 (output_internal_min_issue_delay_func): Generate the switch and
8174 call output_insn_code_cases.
8175 (output_internal_trans_func, output_internal_state_alts_func):
8176 Ditto.
8177 (generate): Call initiate_automata_lists.
8178 (automaton_states): New global variable.
8179 (expand_automata): Call form_important_insn_automata_lists.
8180 (write_automata): Call finish_automata_lists.
8181
8182 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
8183
8184 * genautomata.c (add_excls, add_presence_absence): Check that
8185 cpu units in the sets belong the same automaton.
8186
8187 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8188 about that cpu units in the sets belong the same automaton.
8189
8190 * doc/md.texi: Ditto.
8191
8192 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
8193 Nitin Gupta <niting@noida.hcltech.com>
8194
8195 * config/sh/sh.c (sh_use_dfa_interface): New function.
8196
8197 (sh_issue_rate): New Function.
8198 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8199 TARGET_SCHED_ISSUE_RATE: define.
8200
8201 * config/sh/sh.md: Add DFA based pipeline description for SH4.
8202
8203 (define_attr insn_class): New attribute used for DFA
8204 scheduling.
8205 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8206 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8207 cmpeqdi_t): Likewise.
8208
8209 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8210 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
8211 ex_group.
8212 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8213
8214 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8215
8216 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8217 break.
8218
8219 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8220
8221 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8222 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8223 necessary.
8224 (output_dfa_start_func): Initiate new variable insn_codes_length,
8225 (write_automata): Output definition of the new variable.
8226
8227 2001-10-02 David S. Miller <davem@redhat.com>
8228
8229 * haifa-sched.c (advance_one_cycle): New function.
8230 (schedule_block): Use it.
8231 (queue_to_ready): Use it, and also make sure to advance the DFA
8232 state on all stall cycles, not just those where insn_queue links
8233 are found.
8234
8235 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
8236
8237 * haifa-sched.c (max_issue): Remove last_p argument. Only return
8238 non-zero if the highest-priority instruction could be scheduled.
8239 (choose_ready): Remove last argument from max_issue call.
8240
8241 2001-09-28 David S. Miller <davem@redhat.com>
8242
8243 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8244 ultrasparc and 3 for other multi-issue sparcs.
8245
8246 2001-09-27 David S. Miller <davem@redhat.com>
8247
8248 * config/sparc/sparc.md (cycle_display): New pattern.
8249 * config/sparc/sparc.c (sparc_cycle_display): New.
8250 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8251
8252 2001-09-25 David S. Miller <davem@redhat.com>
8253
8254 Convert all of Sparc scheduling to DFA
8255 * config/sparc/sparc.md: Kill all define_function_unit
8256 directives and replace with DFA equivalent.
8257 * config/sparc/sparc.c (ultrasparc_adjust_cost,
8258 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8259 ultra_fpmode_conflict_exists, ultra_find_type,
8260 ultra_build_types_avail, ultra_flush_pipeline,
8261 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8262 ultrasparc_variable_issue, ultrasparc_sched_init,
8263 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8264 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8265 ultra_cur_hist, ultra_cycles_elapsed): Kill.
8266 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8267 ultrasparc_store_bypass_p): New.
8268 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8269 Declare.
8270
8271 2001-09-24 David S. Miller <davem@redhat.com>
8272
8273 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8274 ready->vec[foo] not ready[foo].
8275
8276 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8277
8278 * doc/md.texi: Correct examples for define_insn_reservations
8279 `mult' and `div'.
8280
8281 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8282
8283 * genautomata.c (create_automata): Print message about creation of
8284 each automaton.
8285 (generate): Remove printing meease about creation of
8286 automata.
8287
8288 2001-09-05 David S. Miller <davem@redhat.com>
8289
8290 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8291 * config/sparc/linux64.h: Likewise.
8292
8293 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
8294
8295 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8296 schedule_block, sched_init, sched_finish): Add missed calls of
8297 use_dfa_pipeline_interface.
8298
8299 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8300 Ditto.
8301
8302 * sched-vis.c (get_visual_tbl_length): Ditto.
8303
8304 2001-08-27 Richard Henderson <rth@redhat.com>
8305
8306 * genattr.c (main): Emit state_t even when not doing scheduling.
8307
8308 2001-08-27 Richard Henderson <rth@redhat.com>
8309
8310 * genautomata.c (expand_automata): Always create a description.
8311
8312 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8313
8314 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8315 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8316 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8317 RTL constructions.
8318
8319 * genattr.c (main): New variable num_insn_reservations. Increase
8320 it if there is DEFINE_INSN_RESERVATION. Output automaton based
8321 pipeline hazard recognizer interface.
8322
8323 * genattrtab.h: New file.
8324
8325 * genattrtab.c: Include genattrtab.h.
8326 (attr_printf, check_attr_test, make_internal_attr,
8327 make_numeric_value): Move protypes into genattrtab.h. Define them
8328 as external.
8329 (num_dfa_decls): New global variable.
8330 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8331 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8332 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8333 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
8334
8335 * genautomata.c: New file.
8336
8337 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8338
8339 * sched-int.h: (curr_state): Add the external definition for
8340 automaton pipeline interface.
8341 (haifa_insn_data): Add comments for members blockage and units.
8342
8343 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8344 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8345 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8346 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8347 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8348 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8349 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8350 macros.
8351 (TARGET_SCHED): Use the new macros.
8352
8353 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8354 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8355 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8356 dfa_bubble): New members in gcc_target.sched.
8357
8358 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8359 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8360 (insn_queue): Redefine it as pointer to array.
8361 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8362 INSN_QUEUE_SIZE.
8363 (max_insn_queue_index_macro_value): New variable.
8364 (curr_state, dfa_state_size, ready_try): New varaibles for
8365 automaton interface.
8366 (ready_element, ready_remove, max_issue): New function prototypes
8367 for automaton interface.
8368 (choose_ready): New function prototype.
8369 (insn_unit, blockage_range): Add comments.
8370 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8371 FUNCTION_UNITS_SIZE == 0.
8372 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8373 actual_hazard, potential_hazard): Add comments.
8374 (insn_cost): Use cost -1 as undefined value. Remove
8375 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
8376 pipeline interface.
8377 (ready_element, ready_remove): New functions for automaton
8378 interface.
8379 (schedule_insn): Add new code for automaton pipeline interface.
8380 (queue_to_ready): Add new code for automaton pipeline interface.
8381 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8382 (debug_ready_list): Print newline when the queue is empty.
8383 (max_issue): New function for automaton pipeline interface.
8384 (choose_ready): New function.
8385 (schedule_block): Add new code for automaton pipeline interface.
8386 Print ready list before scheduling each insn.
8387 (sched_init): Add new code for automaton pipeline interface.
8388 Initiate insn cost by -1.
8389 (sched_finish): Free the current automaton state and finalize
8390 automaton pipeline interface.
8391
8392 * sched-rgn.c: Include target.h.
8393 (init_ready_list, new_ready, debug_dependencies): Add new code for
8394 automaton pipeline interface.
8395
8396 * sched-vis.c: Include target.h.
8397 (get_visual_tbl_length): Add code for automaton interface.
8398 (target_units, print_block_visualization): Add comments.
8399
8400 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8401 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8402 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8403 (getruntime.o, genautomata.o): New entries.
8404 (genattrtab.o): Add new dependency file genattrtab.h.
8405 (genattrtab): Add new dependencies. Link it with `libm.a'.
8406 (getruntime.o, hashtab.o): New entries for canadian cross.
8407
8408 * doc/md.texi: Description of automaton based model.
8409
8410 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8411 Add comments.
8412 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8413 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8414 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8415 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8416 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8417 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8418 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8419 hook descriptions.
8420 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8421 MAX_DFA_ISSUE_RATE): New macro descriptions.
8422
8423 * doc/contrib.texi: Add dfa based scheduler contribution.
8424
8425 * doc/gcc.texi: Add more information about genattrtab.
8426
8427 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8428
8429 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8430 adjust_address_nv call.
8431
8432 2002-04-29 Janis Johnson <janis187@us.ibm.com>
8433
8434 * doc/install.texi (Testing): Provide additional information, and
8435 a stronger encouragement, for running the testsuites.
8436
8437 2002-04-29 DJ Delorie <dj@redhat.com>
8438
8439 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8440 given in upper case.
8441
8442 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8443
8444 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8445 Solaris 2 <widec.h> if missing.
8446 * fixinc/fixincl.x: Regenerate.
8447 * fixinc/tests/base/widec.h: New file.
8448
8449 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
8450
8451 * toplev.c (f_options): Add "profile" switch so that
8452 -fno-profile can be used to disable -p.
8453
8454 2002-04-29 Bernd Schmidt <bernds@redhat.com>
8455
8456 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8457 UV2DImode.
8458 * tree.c (build_common_tree_nodes_2): Likewise.
8459 * tree.h (enum tree_index): Likewise.
8460 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8461
8462 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8463 entries.
8464 (init_mmx_sse_builtins): Initialize SSE2 builtins.
8465 (ix86_expand_builtin): Add support for SSE2 builtins.
8466 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8467 (VALID_SSE_REG_MODE): Use it.
8468 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8469 (enum ix86_builtins): Add SSE2 builtins.
8470 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8471 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8472 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8473 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8474 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8475 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8476 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8477 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8478 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8479 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8480 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8481 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8482 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8483 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8484 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8485 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8486 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8487 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8488 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8489 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8490 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8491 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8492 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8493 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8494 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8495 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8496 lfence_insn): New patterns.
8497 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8498 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8499
8500 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
8501
8502 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8503
8504 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8505
8506 * doc/contrib.texi (Contributors): Add Paolo Carlini and
8507 Janis Johnson.
8508 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8509 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8510 and CPU instead of cpu.
8511
8512 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8513
8514 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8515 variables.
8516 (lang_independent_options): Add -fif-conversion, -fif-conversion2
8517 (rest_of_compilation): Do if conversion only when asked for.
8518 (parse_options_and_default_flags): Set new variables to 1 for -O1
8519 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8520
8521 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8522
8523 * i386.c (dbx64_register_map): Fix typo.
8524
8525 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8526
8527 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8528 real_one_half, real_bb_freq_max): New static variables.
8529 (debug_profile_bbauxs): Kill.
8530 (process_note_predictions): Kill unused variable.
8531 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8532 volatile double.
8533 (propagate_freq): Use REAL_ARITHMETICS.
8534 (estimate_bb_frequencies): Likevise; init new static variables.
8535 * Makefile.in (predict.o): Add dependency on real.h
8536
8537 2002-04-28 David S. Miller <davem@redhat.com>
8538
8539 PR target/6500
8540 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8541 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
8542 several {reads,writes} instead.
8543 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8544 Define.
8545
8546 2002-04-27 David S. Miller <davem@redhat.com>
8547
8548 PR target/6494
8549 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8550 of the stack bias.
8551
8552 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8553 including signal.h and sys/ucontext.h, not needed.
8554
8555 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
8556
8557 * varasm.c (output_constant_def): Correct test for not calling
8558 ENCODE_SECTION_INFO for INTEGER_CST.
8559
8560 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
8561
8562 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8563 keep most cases as function eval_token.
8564 (eval_token): New function.
8565 (_cpp_parse_expr): Read token here for improved diagnostics.
8566 Don't use op_as_text. Detect bad ':' here.
8567 (reduce): Don't detect bad ':' here.
8568 (op_as_text): Remove.
8569 * cpphash.h (_cpp_test_assertion): Change prototype.
8570 * cpplib.c (_cpp_test_assertion): Change prototype.
8571
8572 2002-04-28 Richard Henderson <rth@redhat.com>
8573
8574 PR c/5154
8575 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
8576 (ggc_mark_rtx_children): New.
8577
8578 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8579
8580 PR target/6496
8581 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8582 after call peepholes for UltraSPARC.
8583 (call + jump 64-bit peepholes): Remove.
8584
8585 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8586
8587 PR c/6497
8588 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8589 result as temporary value.
8590
8591 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8592
8593 PR c++/6396
8594 * toplev.c (rest_of_compilation): Only run regrename and copy
8595 propagation if optimizing.
8596
8597 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8598
8599 PR optimization/6475
8600 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8601 register of REGNO_DECL (i).
8602 * Makefile.in (reload1.o): Add $(TREE_H).
8603
8604 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
8605
8606 * cppexp.c (lex): Update to use state.skip_eval.
8607 (struct op): Remove prio and flags members.
8608 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8609 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8610 (LEFT_ASSOC): New macro.
8611 (optab): New table of operator priorities and flags.
8612 (SHIFT): Update.
8613 (_cpp_parse_expr): Clean up logic. Return bool. Use a
8614 malloc-ed parser stack.
8615 (reduce): New; reduce the operator stack.
8616 (_cpp_expand_op_stack): Expand the operator stack as necessary.
8617 * cpphash.h (struct op): Predeclare.
8618 (struct cpp_reader): New members op_stack, op_limit.
8619 (struct lexer_state): New member skip_eval.
8620 (_cpp_parse_expr): Update.
8621 (_cpp_expand_op_stack): New.
8622 * cpplib.c (do_if): Update.
8623 * cppinit.c (cpp_create_reader): Create op stack.
8624 (cpp_destroy): And destroy it.
8625 * cpplib.h (CPP_LAST_CPP_OP): Correct.
8626 (TTYPE_TABLE): Correct.
8627
8628 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8629
8630 PR c/6343
8631 * c-decl.c (duplicate_decls): Call merge_weak.
8632 * c-pragma.c (apply_pragma_weak): Warn about misuse.
8633 * output.h (merge_weak): Prototype merge_weak.
8634 * varasm.c (merge_weak): New function.
8635 (declare_weak): Make sure we don't give an error on VAR_DECLs.
8636 Mark RTL with SYMBOL_REF_WEAK.
8637
8638 2002-04-27 Kurt Garloff <garloff@suse.de>
8639
8640 * tree-inline.c (inlinable_function_p): Improve heuristics
8641 by using a smoother function to cut down allowable inlinable size.
8642 * param.def: Add parameters max-inline-insns-single,
8643 max-inline-slope, min-inline-insns that determine the exact
8644 shape of the above function.
8645 * param.h: Likewise.
8646
8647 2002-04-26 Richard Henderson <rth@redhat.com>
8648
8649 * c-parse.in (malloced_yyss, malloced_yyvs): New.
8650 (yyoverflow): Re-add. Set them.
8651 (free_parser_stacks): New.
8652 * c-common.h: Declare it.
8653 * c-lex.c (c_common_parse_file): Call it.
8654
8655 2002-04-26 Richard Henderson <rth@redhat.com>
8656
8657 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8658 for fallthru search.
8659
8660 2002-04-26 Eric Christopher <echristo@redhat.com>
8661
8662 PR optimization/3700
8663 * config/mips/mips.c (mips_issue_rate): Define. New function.
8664 (TARGET_SCHED_ISSUE_RATE): Use.
8665
8666 2002-04-25 David S. Miller <davem@redhat.com>
8667
8668 PR target/6422
8669 * reorg.c (optimize_skip): Do not allow exception causing
8670 instructions to be considered for delay slots.
8671 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8672 (relax_delay_slots): Do not try to consider exception causing
8673 instructions as redundant.
8674
8675 2002-04-26 Richard Henderson <rth@redhat.com>
8676
8677 PR c/5225
8678 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8679
8680 2002-04-26 Mark Mitchell <mark@codesourcery.com>
8681
8682 PR bootstrap/6445
8683 * config/i386/i386.md (untyped_call): Return the value in a float
8684 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8685 TARGET_80387.
8686
8687 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
8688
8689 * tree.c (tree_int_cst_lt): Compare constants whose types differ
8690 in unsigned-ness correctly.
8691
8692 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8693
8694 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8695 portable runtime model.
8696
8697 2002-04-26 Richard Henderson <rth@redhat.com>
8698
8699 * c-parse.in (yyoverflow): Revert.
8700
8701 2002-04-26 David Edelsohn <edelsohn@gnu.org>
8702 Richard Henderson <rth@redhat.com>
8703
8704 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8705 result as temporary value.
8706
8707 2002-04-26 Richard Henderson <rth@redhat.com>
8708
8709 PR c/3581
8710 * c-common.c (fix_string_type): Split out of ...
8711 (combine_strings): ... here. Take a varray, not a tree list.
8712 (c_expand_builtin_printf): Use fix_string_type.
8713 * c-common.h: Update decls.
8714 * c-parse.in (string): Remove. Update all uses to use STRING
8715 instead, and not call combine_strings.
8716 (yylexstring): New.
8717 (_yylex): Use it.
8718 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8719 (build_asm_stmt): Likewise.
8720 * objc/objc-act.c (my_build_string): Use fix_string_type.
8721 (build_objc_string_object): Build varray for combine_strings.
8722
8723 2002-04-26 Bo Thorsen <bo@suse.co.uk>
8724
8725 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8726 x86-64.
8727
8728 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
8729
8730 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8731 (HAVE_NO_R_OPERAND): Remove.
8732 (HAVE_VALUE): Remove.
8733 (op_to_prio): Update.
8734 (UNARY): Don't alter flags.
8735 (_cpp_parse_expr): want_value used to indicate whether
8736 a number or unary operator is expected next. Distinguish
8737 unary and binary +/-.
8738 (op_as_text): Update for unary operators.
8739
8740 2002-04-25 Richard Henderson <rth@redhat.com>
8741
8742 PR c/2161
8743 * c-parse.in (yyoverflow): New.
8744
8745 2002-04-25 Richard Henderson <rth@redhat.com>
8746
8747 PR c/2098
8748 * c-common.c (shorten_compare): Simplfy conditions leading to
8749 the generation of a warning.
8750
8751 2002-04-25 Richard Henderson <rth@redhat.com>
8752
8753 PR c/2035
8754 * expmed.c (extract_bit_field): Fall through to generic code rather
8755 than aborting on subreg special case.
8756
8757 2002-04-25 David S. Miller <davem@redhat.com>
8758
8759 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8760 for DECL being NULL.
8761
8762 2002-04-25 Steve Christiansen <smc@us.ibm.com>
8763
8764 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8765
8766 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
8767
8768 * c-decl.c (grokdeclarator): Remove outdated ??? note
8769 on invalid declaration of flexible array members.
8770
8771 2002-04-25 Richard Henderson <rth@redhat.com>
8772
8773 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8774
8775 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8776
8777 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8778 needed by the compiler, even if they are used as global regs.
8779
8780 2002-04-25 Matt Hiller <hiller@redhat.com>
8781
8782 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8783 functions.
8784 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8785 of the corresponding functions.
8786 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8787 New prototypes.
8788
8789 2002-04-25 Matt Hiller <hiller@redhat.com>
8790
8791 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8792
8793 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8794 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8795 registers, adjust comment accordingly.
8796 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8797 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8798 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8799 for coprocessor registers.
8800 (ADDITIONAL_REGISTER_NAMES): Include
8801 ALL_COP_ADDITIONAL_REGISTER_NAMES.
8802
8803 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8804 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8805 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8806 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8807 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8808
8809 (mips_char_to_class): Adjust comment to include coprocessor
8810 constraint letters.
8811
8812 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8813 New functions.
8814 (mips_reg_names, mips_regno_to_class): Include coprocessor
8815 information.
8816 (mips_sw_reg_names): Ditto, make non-static.
8817 (mips_move_1word): Handle moves to and from coprocessor registers.
8818 (mips_move_2words): Handle moves to and from coprocessor
8819 registers.
8820 (mips_class_max_nregs, mips_register_move_cost): Handle
8821 coprocessor register classes.
8822 (override_options): Initialize mips_char_to_class and
8823 mips_hard_regno_mode_ok properly for coprocessor registers.
8824
8825 * config/mips/mips.md (movdi_internal, movdi_internal2,
8826 movsi_internal1, movsi_internal2): Add constraint-sets for
8827 coprocessor registers.
8828 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8829 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8830 isn't mips.
8831 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8832 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8833 isn't mips.
8834 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8835 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8836 isn't mips.
8837 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8838 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8839 isn't mips.
8840
8841 * doc/tm.texi: Document feature.
8842
8843 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8844
8845 * integrate.c (function_attribute_inlinable_p): Simplify.
8846 Check the table pointer is not NULL.
8847
8848 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
8849
8850 * doc/c-tree.texi: Fix typo in introduction.
8851
8852 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8853
8854 * c-common.h (c_common_parse_file): Update.
8855 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8856 * c-lex.c (YYDEBUG): Get from c-lex.h.
8857 (c_common_parse_file): Update.
8858 * c-lex.h (YYDEBUG, yydebug): New.
8859 * c-parse.in (YYDEBUG): Get from c-lex.h.
8860 (c_set_yydebug): Remove.
8861 * c-tree.h (c_set_yydebug): Remove.
8862 * langhooks-def.h (lhd_do_nothing_i): New.
8863 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8864 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8865 * langhooks.c (lhd_do_nothing_i): New.
8866 (lhd_set_yydebug): Remove.
8867 * langhooks.h (struct lang_hooks): Update.
8868 * toplev.c (set_yydebug): New.
8869 (compile_file): Update call to parse_file hook.
8870 (decode_d_option): Update.
8871 objc:
8872 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8873
8874 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
8875
8876 * loop.c (load_mems): Don't change the interface of called functions.
8877
8878 * calls.c (expand_call): Take current_function_pretend_args_size
8879 into account when setting argblock for sibcalls.
8880
8881 2002-04-24 Matt Hiller <hiller@redhat.com>
8882
8883 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8884 * c-lex.c: Ditto.
8885
8886 * cpplex.c (skip_line_comment): Process comment one multibyte
8887 character at a time rather than one char at a time, if
8888 appropriate.
8889 (parse_string): Process string one multibyte character at a time
8890 rather than one char at a time, if appropriate.
8891 * c-lex.c (lex_string): Lex and copy multibyte strings
8892 appropriately.
8893 * cpplib.h (cppchar_t): Change to unsigned.
8894
8895 2002-04-24 Richard Henderson <rth@redhat.com>
8896
8897 PR c/3467
8898 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8899 for c99.
8900
8901 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
8902
8903 * sh.c (sh_va_arg): If argument was passed by reference,
8904 dereference the pointer.
8905
8906 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8907
8908 * sh.md (divsi3_i4_media): Use match_operand for input values
8909 rather than hard registers.
8910 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8911 unnecessarily through hard registers. Keep copies of pseudo
8912 registers outside of the libcall sequence.
8913
8914 * sh.md (casesi_shift_media): Add modes.
8915
8916 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8917 values in memory.
8918
8919 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
8920
8921 * attribs.c (c_common_attribute_table): Move table and handlers
8922 to c-common.c.
8923 (format_attribute_table, lang_attribute_table,
8924 lang_attribute_common): Remove.
8925 (init_attributes): Replace NULL pointers with pointers to the
8926 empty table.
8927 (handle_packed_attribute, handle_nocommon_attribute,
8928 handle_common_attribute, handle_noreturn_attribute,
8929 handle_noinline_attribute, handle_always_inline_attribute,
8930 handle_used_attribute, handle_unused_attribute,
8931 handle_const_attribute, handle_transparent_union_attribute,
8932 handle_constructor_attribute, handle_destructor_attribute,
8933 handle_mode_attribute, handle_section_attribute,
8934 handle_aligned_attribute, handle_weak_attribute,
8935 handle_alias_attribute, handle_visibility_attribute,
8936 handle_no_instrument_function_attribute, handle_malloc_attribute,
8937 handle_no_limit_stack_attribute, handle_pure_attribute,
8938 handle_deprecated_attribute, handle_vector_size_attribute,
8939 vector_size_helper): Move to c-common.c.
8940 * c-common.c (c_common_attribute_table,
8941 handle_packed_attribute, handle_nocommon_attribute,
8942 handle_common_attribute, handle_noreturn_attribute,
8943 handle_noinline_attribute, handle_always_inline_attribute,
8944 handle_used_attribute, handle_unused_attribute,
8945 handle_const_attribute, handle_transparent_union_attribute,
8946 handle_constructor_attribute, handle_destructor_attribute,
8947 handle_mode_attribute, handle_section_attribute,
8948 handle_aligned_attribute, handle_weak_attribute,
8949 handle_alias_attribute, handle_visibility_attribute,
8950 handle_no_instrument_function_attribute, handle_malloc_attribute,
8951 handle_no_limit_stack_attribute, handle_pure_attribute,
8952 handle_deprecated_attribute, handle_vector_size_attribute,
8953 vector_size_helper): Move from attribs.c.
8954 * c-common.h (c_common_attribute_table,
8955 c_common_format_attribute_table): New.
8956 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8957 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8958 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8959 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8960 (LANG_HOOKS_INITIALIZER): Update.
8961 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8962 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8963 * target.h: Update comment.
8964 * tree.c (default_target_attribute_table): Remove.
8965 * tree.h (default_target_attribute_table, format_attribute_table,
8966 lang_attribute_table, lang_attribute_common): Remove.
8967 objc:
8968 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8969 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8970
8971 2002-04-24 Jason Merrill <jason@redhat.com>
8972
8973 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8974 * dwarf2out.c (dwarf_attr_name): Support it.
8975 (gen_array_type_die): Emit it.
8976 (lookup_type_die): No special handling for VECTOR_TYPE.
8977 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8978
8979 2002-04-24 Richard Henderson <rth@redhat.com>
8980
8981 * config/mips/mips.md (movdi_usd): Renumber.
8982
8983 2002-04-24 David S. Miller <davem@redhat.com>
8984
8985 PR target/6420
8986 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8987 32-bit Sparc and current_function_returns_struct is true.
8988
8989 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8990
8991 * loop.c (canonicalize_condition): Use gen_int_mode.
8992
8993 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
8994
8995 * config/rs6000/altivec.h: Cleanup file. Add non individual
8996 variants.
8997 (vec_vaddubm): New.
8998 (vec_vadduhm): New.
8999 (vec_vadduwm): New.
9000 (vec_vaddfp): New.
9001 (vec_vaddcuw): New.
9002 (vec_vaddubs): New.
9003 (vec_vaddsbs): New.
9004 (vec_vadduhs): New.
9005 (vec_vadduws): New.
9006 (vec_vaddsws): New.
9007 (vec_vand): New.
9008 (vec_vandc): New.
9009 (vec_vavgub): New.
9010 (vec_vavgsb): New.
9011 (vec_vavguh): New.
9012 (vec_vavgsh): New.
9013 (vec_vavguw): New.
9014 (vec_vavgsw): New.
9015 (vec_vrfip): New.
9016 (vec_vcmpbfp): New.
9017 (vec_vcmpequb): New.
9018 (vec_vcmpequh): New.
9019 (vec_vcmpequw): New.
9020 (vec_vcmpeqfp): New.
9021 (vec_vcmpgefp): New.
9022 (vec_vcmpgtub): New.
9023 (vec_vcmpgtsb): New.
9024 (vec_vcmpgtuh): New.
9025 (vec_vcmpgtsh): New.
9026 (vec_vcmpgtuw): New.
9027 (vec_vcmpgtsw): New.
9028 (vec_vcmpgtfp): New.
9029 (vec_vcmpgefp): New.
9030 (vec_vcfux): New.
9031 (vec_vcfsx): New.
9032 (vec_vctsxs): New.
9033 (vec_vctuxs): New.
9034 (vec_vexptefp): New.
9035 (vec_vrfim): New.
9036 (vec_lvx): New.
9037 (vec_lvebx): New.
9038 (vec_lvehx): New.
9039 (vec_lde): Add vector float variant.
9040 (vec_lvewx): New.
9041 (vec_lvxl): New.
9042 (vec_vlogefp): New.
9043 (vec_vmaddfp): New.
9044 (vec_vmhaddshs): New.
9045 (vec_vmaxub): New.
9046 (vec_vmaxsb): New.
9047 (vec_vmaxuh): New.
9048 (vec_vmaxsh): New.
9049 (vec_vmaxuw): New.
9050 (vec_vmaxsw): New.
9051 (vec_vmaxsw): New.
9052 (vec_vmaxfp): New.
9053 (vec_vmrghb): New.
9054 (vec_vmrghh): New.
9055 (vec_vmrghw): New.
9056 (vec_vmrglb): New.
9057 (vec_vmrglh): New.
9058 (vec_vmrglw): New.
9059 (vec_vminub): New.
9060 (vec_vminsb): New.
9061 (vec_vminuh): New.
9062 (vec_vminsh): New.
9063 (vec_vminuw): New.
9064 (vec_vminsw): New.
9065 (vec_vminfp): New.
9066 (vec_vmladduhm): New.
9067 (vec_vmhraddshs): New.
9068 (vec_msumubm): New.
9069 (vec_vmsummbm): New.
9070 (vec_vmsumuhm): New.
9071 (vec_vmsumshm): New.
9072 (vec_vmsumuhs): New.
9073 (vec_vmsumshs): New.
9074 (vec_vmuleub): New.
9075 (vec_vmulesb): New.
9076 (vec_vmuleuh): New.
9077 (vec_vmulesh): New.
9078 (vec_vmuloub): New.
9079 (vec_mulosb): New.
9080 (vec_vmulouh): New.
9081 (vec_vmulosh): New.
9082 (vec_vnmsubfp): New.
9083 (vec_vnor): New.
9084 (vec_vor): New.
9085 (vec_vpkuhum): New.
9086 (vec_vpkuwum): New.
9087 (vec_vpkpx): New.
9088 (vec_vpkuhus): New.
9089 (vec_vpkshss): New.
9090 (vec_vpkuwus): New.
9091 (vec_vpkswss): New.
9092 (vec_vpkshus): New.
9093 (vec_vpkswus): New.
9094 (vec_vperm): New.
9095 (vec_vrefp): New.
9096 (vec_vrlb): New.
9097 (vec_vrlh): New.
9098 (vec_vrlw): New.
9099 (vec_vrfin): New.
9100 (vec_vrsqrtefp): New.
9101 (vec_vsel): New.
9102 (vec_vslb): New.
9103 (vec_vslh): New.
9104 (vec_vslw): New.
9105 (vec_vsldoi): New.
9106 (vec_vsl): New.
9107 (vec_vslo): New.
9108 (vec_vspltb): New.
9109 (vec_vsplth): New.
9110 (vec_vspltw): New.
9111 (vec_vspltisb): New.
9112 (vec_vspltish): New.
9113 (vec_vspltisw): New.
9114 (vec_vsrb): New.
9115 (vec_vsrh): New.
9116 (vec_vsrw): New.
9117 (vec_vsrab): New.
9118 (vec_vsrah): New.
9119 (vec_vsraw): New.
9120 (vec_vsr): New.
9121 (vec_vsro): New.
9122 (vec_stvx): New.
9123 (vec_stvebx): New.
9124 (vec_stvehx): New.
9125 (vec_stvewx): New.
9126 (vec_stvxl): New.
9127 (vec_vsububm): New.
9128 (vec_vsubuhm): New.
9129 (vec_vsubuwm): New.
9130 (vec_vsubfp): New.
9131 (vec_vsubcuw): New.
9132 (vec_vsububs): New.
9133 (vec_vsubsbs): New.
9134 (vec_vsubuhs): New.
9135 (vec_vsubshs): New.
9136 (vec_vsubuws): New.
9137 (vec_vsubsws): New.
9138 (vec_vsum4ubs): New.
9139 (vec_vsum4sbs): New.
9140 (vec_vsum4shs): New.
9141 (vec_vsum2sws): New.
9142 (vec_vsumsws): New.
9143 (vec_vrfiz): New.
9144 (vec_vupkhsb): New.
9145 (vec_vupkhpx): New.
9146 (vec_vupkhsh): New.
9147 (vec_vupklsb): New.
9148 (vec_vupklpx): New.
9149 (vec_vupklsh): New.
9150 (vec_vxor): New.
9151
9152 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
9153
9154 PR c/5430
9155 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
9156 added literals from substracted literals.
9157 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
9158 (fold) [associate]: Preserve MINUS_EXPR if needed.
9159
9160 2002-04-23 Zack Weinberg <zack@codesourcery.com>
9161
9162 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
9163 are obsoleted.
9164
9165 2002-04-23 Tom Tromey <tromey@redhat.com>
9166
9167 * gcc.c: Added --resource. For PR java/6314.
9168
9169 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9170
9171 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
9172 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
9173 these libraries.
9174
9175 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9176
9177 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
9178
9179 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9180
9181 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9182 workaround.
9183 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9184 (ix86_expand_clrstr): Fix typo.
9185 * loop.c (gen_load_of_final_value): New.
9186 (loop_givs_rescan, strength_reduce, check_dbra_loop):
9187 Use it.
9188
9189 2002-04-23 Roger Sayle <roger@eyesopen.com>
9190
9191 * builtins.c (builtin_memset_gen_str): New function.
9192 (expand_builtin_memset): Optimize the case of constant length, but
9193 unknown value.
9194
9195 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
9196
9197 * config/rs6000/altivec.h (vec_step): Remove extraneous
9198 parentheses.
9199 (vec_ctu): Cast return.
9200
9201 2002-04-23 Alan Modra <amodra@bigpond.net.au>
9202
9203 PR target/6413
9204 * function.h: (struct function): Add profile_label_no field.
9205 (current_function_profile_label_no): Define.
9206 * function.c: (profile_label_no): New static var.
9207 (expand_function_start): Increment it, and copy to
9208 current_function_profile_label_no.
9209 * output.h (profile_label_no): Delete.
9210 * final.c (profile_label_no): Delete.
9211 (profile_function): Use current_function_profile_label_no.
9212 (final_end_function): Don't increment profile_label_no here.
9213 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9214 profile_label_no with current_function_profile_label_no.
9215 * config/pa/pa.c (current_function_number): Delete.
9216 (pa_output_function_prologue): Don't output profile label here.
9217 (hppa_profile_hook): Use label_no param rather than
9218 current_function_number.
9219 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9220 * config/pa/pa.h: .. here.
9221 (FUNCTION_PROFILER): Output profile label here.
9222
9223 2002-04-22 Eric Christopher <echristo@redhat.com>
9224
9225 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9226 patch of 2002-04-09 due to binutils issues.
9227 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9228
9229 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9230
9231 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9232 constraint to 'o' for m=r and r=m alternatives.
9233 ("*movv8hi_internal1"): Same.
9234 ("*movv16qi_internal1"): Same.
9235 ("*movv4sf_internal1"): Same.
9236
9237 2002-04-22 Janis Johnson <janis187@us.ibm.com>
9238
9239 * rtl.h (RTX_FLAG): New macro.
9240 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9241 * final.c (alter_subreg): Use macro to access rtx flag.
9242 * integrate.c (copy_rtx_and_substitute): Use new access macro.
9243 * print-rtl.c (print_rtx): Use new access macro.
9244
9245 * cse.c (insert): Check rtx code before accessing flag.
9246
9247 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9248 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9249 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9250 convert_const_symbol_ref, make_canonical, make_alternative_compare,
9251 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9252 simplify_test_exp, optimize_attrs, simplify_by_exploding,
9253 find_and_mark_used_attributes, unmark_used_attributes,
9254 add_values_to_cover, simplify_with_current_value,
9255 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9256 copy_rtx_unchanging, main): Use new access macros.
9257
9258 2002-04-22 Tom Rix <trix@redhat.com>
9259
9260 * expmed.c (init_expmed): Generate shifted constant once.
9261
9262 2002-04-22 Zack Weinberg <zack@codesourcery.com>
9263
9264 * c-lex.c (lex_charconst): Call convert to get constant in
9265 proper type; don't just smash the type field.
9266 Fixes PR c/6300.
9267
9268 * config.gcc: Add list of obsolete configurations. Disallow
9269 building these without --enable-obsolete.
9270 * doc/install.texi: Document --enable-obsolete and obsoletion
9271 policy. Mention obsoletion of individual targets in
9272 appropriate places.
9273
9274 2002-04-22 Richard Henderson <rth@redhat.com>
9275
9276 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9277
9278 2002-04-22 Mark Mitchell <mark@codesourcery.com>
9279
9280 PR f/6138.
9281 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9282 (walk_fixup_memory_subreg): Likewise.
9283 (fixup_var_refs_insn): Adjust accordingly.
9284 (fixup_var_refs_1): Likewise.
9285
9286 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
9287
9288 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9289 LIBPATH_ARCH64_SPEC): Define.
9290 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
9291 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
9292 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9293 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9294
9295 2002-04-22 Joel Sherrill <joel@OARcorp.com>
9296
9297 * gthr-rtems.h: Correct prototypes to remove warnings.
9298
9299 2002-04-22 Richard Henderson <rth@redhat.com>
9300
9301 PR c/6344
9302 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9303
9304 * gcse.c (free_insn_expr_list_list): New.
9305 (clear_modify_mem_tables): Use it. Fix bit set usage.
9306 (canon_list_insert): Use EXPR_LISTs for expressions.
9307 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9308
9309 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
9310
9311 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
9312 file change and include code to _cpp_pop_buffer.
9313 * cpphash.h (struct pending_option): Predeclare.
9314 (struct cpp_reader): New member next_include_file.
9315 (_cpp_pop_file_buffer): Update.
9316 (_cpp_push_next_buffer): Update, rename.
9317 * cppinit.c (cpp_destroy): Free include chain and pending here.
9318 (cpp_finish_options): Simplify.
9319 (_cpp_push_next_buffer): Rename and clean up.
9320 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9321 Clarify.
9322 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9323
9324 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9325
9326 * config/rs6000/altivec.h (vec_xor): Add variant for both args
9327 being vector signed int.
9328 (vec_andc): Same.
9329 (vec_xor): Add variant for both args being vector signed char.
9330 Remove redundant variant.
9331 (vec_andc): Same.
9332
9333 2002-04-21 David S. Miller <davem@redhat.com>
9334
9335 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9336 compare mode in output RTL.
9337
9338 2002-04-22 David Edelsohn <edelsohn@gnu.org>
9339
9340 * config/rs6000/rs6000.c (rs6000_override_options): Correct
9341 style and formatting of previous patch.
9342
9343 2002-04-22 Alan Modra <amodra@bigpond.net.au>
9344
9345 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9346 flag_pic for ABI_AIX.
9347
9348 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9349
9350 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9351 * cppfiles.c (read_include_file): Similarly.
9352 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9353 uxstrdup ustrchr, ufputs): Similarly.
9354 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9355 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9356 cpp_ideq, parse_identifier, parse_number): Similarly.
9357 * cpplib.c (struct directive, dequote_string, D, run_directive,
9358 cpp_push_buffer): Similarly.
9359 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9360 _cpp_create_definition, check_trad_stringification,
9361 cpp_macro_definition): Similarly.
9362
9363 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9364
9365 * cppmacro.c (funlike_invocation_p): Don't step back
9366 over CPP_EOF.
9367
9368 2002-04-21 David Edelsohn <edelsohn@gnu.org>
9369
9370 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9371 labelno.
9372
9373 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
9374
9375 * doc/invoke.texi: Remove Chill references.
9376 * doc/gcc.texi: Update last modified date.
9377
9378 2002-04-20 Kazu Hirata <kazu@hxi.com>
9379
9380 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9381 push and pop. Replace add.l with add.w.
9382
9383 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9384
9385 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9386 multiply instructions for H8/300H case.
9387
9388 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9389
9390 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9391 Bum three instructions from each routine.
9392
9393 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
9394
9395 * Makefile.in: Update.
9396 * decl.c (push_c_function_context, pop_c_function_context,
9397 mark_c_function_context): Rename for consistency.
9398 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9399 * c-tree.h (push_c_function_context, pop_c_function_context,
9400 mark_c_function_context): Rename for consistency.
9401 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9402 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9403 * function.c (init_lang_status, save_lang_status,
9404 restore_lang_status, mark_lang_status, free_lang_status):
9405 Move to langhooks.h.
9406 (push_function_context_to, pop_function_context_from,
9407 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9408 Update.
9409 * function.h (init_lang_status, save_lang_status,
9410 restore_lang_status, mark_lang_status, free_lang_status):
9411 Move to langhooks.h.
9412 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9413 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9414 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9415 LANG_HOOKS_FUNCTION_INITIALIZER): New.
9416 (LANG_HOOKS_INITIALIZER): Update.
9417 (lhd_do_nothing_f): New.
9418 * langhooks.h (struct lang_hooks_for_functions): New.
9419 (struct lang_hooks): New hooks.
9420 * langhooks.c (lhd_do_nothing_f): New.
9421 objc:
9422 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9423 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9424
9425 2002-04-19 David S. Miller <davem@redhat.com>
9426
9427 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9428 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9429
9430 2002-04-19 Jakub Jelinek <jakub@redhat.com>
9431
9432 PR optimization/3756
9433 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9434 x = ((int) y < 0) ? cst1 : cst2.
9435
9436 2002-04-19 Jakub Jelinek <jakub@redhat.com>
9437
9438 PR c/6358
9439 * function.c: Reapply patch for c/6358.
9440 (expand_function_end): Copy decl_rtl's mode, not
9441 current_function_return_rtx mode.
9442
9443 2002-04-19 Joel Sherrill <joel@OARcorp.com>
9444
9445 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9446 targets.
9447
9448 2002-04-19 Tom Tromey <tromey@redhat.com>
9449
9450 * doc/install.texi (Specific): Update status of Solaris 2.8.
9451 For PR libgcj/6158.
9452
9453 2002-04-19 Andreas Schwab <schwab@suse.de>
9454
9455 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9456 (PUT_REAL): Restore old definition.
9457
9458 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
9459 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9460
9461 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9462 binutils 2.11.2 and higher generate smaller binaries than Sun's
9463 native tools.
9464
9465 2002-04-19 Mark Mitchell <mark@codesourcery.com>
9466
9467 PR c++/6352
9468 * toplev.c (rest_of_compilation): Do not defer functions for which
9469 TREE_SYMBOL_REFERENCED has already been set.
9470
9471 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
9472
9473 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9474 alternative.
9475
9476 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
9477
9478 * builtins.c: Include langhooks.h.
9479 (lang_type_promotes_to): Remove.
9480 (expand_builtin_va_arg): Use new hook.
9481 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9482 (simple_type_promotes_to): Move to c-typeck.c.
9483 * c-common.h (simple_type_promotes_to): Remove.
9484 * c-decl.c (duplicate_decls, grokdeclarator): Update.
9485 * c-format.c: Include langhooks.h.
9486 (check_format_types): Update.
9487 * c-tree.h (c_type_promotes_to): New.
9488 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9489 (type_lists_compatible_p): Update.
9490 * langhooks-def.h (lhd_type_promotes_to): New.
9491 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9492 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9493 * langhooks.c (lhd_type_promotes_to): New.
9494 * langhooks.h (struct lang_hooks_for_types): New hook.
9495 * tree.h (lang_type_promotes_to): Remove.
9496 objc:
9497 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9498
9499 2002-04-18 Richard Henderson <rth@redhat.com>
9500
9501 * function.c: Revert patch for c/6358.
9502
9503 2002-04-18 Richard Henderson <rth@redhat.com>
9504
9505 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9506 blocks. Handle multiple references to the TRAP block. Handle
9507 non-adjacent THEN and OTHER blocks.
9508
9509 2002-04-18 Richard Henderson <rth@redhat.com>
9510
9511 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9512 crash with no type for by-mode libcalls.
9513
9514 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
9515
9516 2002-04-18 Bob Wilson <bob.wilson@acm.org>
9517
9518 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9519 __xtensa_nonlocal_goto): Use a syscall instructions to flush
9520 the register windows.
9521
9522 2002-04-18 Zack Weinberg <zack@codesourcery.com>
9523
9524 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9525 appropriate. Document need for extended precision even when
9526 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
9527 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
9528 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
9529 instead of relying on later syntax error when REAL_WIDTH > 5.
9530 * real.c: Define NE based only on whether or not we have a
9531 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9532 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
9533 define GET_REAL and PUT_REAL as simple memcpy operations; no
9534 need to byteswap or round.
9535 Use #error instead of #ifdef-ing out the entire file, for
9536 prompt error detection.
9537
9538 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9539
9540 2002-04-18 David S. Miller <davem@redhat.com>
9541
9542 * config/sparc/sparc.h (BRANCH_COST): Define.
9543
9544 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9545 does it.
9546
9547 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9548
9549 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9550 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9551 propagate_block calls after relaxation loop using new variable
9552 stabilized_prop_flags.
9553
9554 2002-04-18 Richard Henderson <rth@redhat.com>
9555
9556 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9557 (ia64_va_arg): Expect variable sized types by reference.
9558 * config/ia64/ia64-protos.h: Update.
9559 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
9560 ia64_function_arg_pass_by_reference.
9561
9562 2002-04-18 Richard Henderson <rth@redhat.com>
9563
9564 * ifcvt.c: Include except.h.
9565 (block_has_only_trap): Break out from find_cond_trap.
9566 (find_cond_trap): Use it. Always delete the trap block.
9567 (merge_if_block): Allow then block null. Be less simplistic about
9568 what insns can end a block.
9569 * Makefile.in (ifcvt.o): Depend on except.h.
9570
9571 * config/ia64/ia64.md (trap, conditional_trap): New.
9572
9573 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9574
9575 PR c/6358
9576 * function.c (assign_parms): Assign hard current_function_return_rtx
9577 register here...
9578 (expand_function_end): ...not here.
9579
9580 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
9581
9582 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9583 * c-tree.h (c_incomplete_type_error): New.
9584 * c-typeck.c (require_complete_type, build_component_ref): Update.
9585 (incomplete_type_error): Rename.
9586 * langhooks-def.h (lhd_incomplete_type_error): New.
9587 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9588 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9589 * langhooks.c (lhd_incomplete_type_error): New.
9590 * langhooks.h (struct lang_hooks_for_types): New hook.
9591 * tree.c (size_in_bytes): Use new hook.
9592 * tree.h (incomplete_type_error): Remove.
9593 objc:
9594 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9595
9596 2002-04-18 Zack Weinberg <zack@codesourcery.com>
9597
9598 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9599 TARGET_FLOAT_FORMAT blocks.
9600
9601 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9602
9603 * doc/install.texi (Downloading the source): Do not mention Chill
9604 any longer, but mention Ada.
9605 (Configuration): Do not mention Chill any longer.
9606
9607 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
9608
9609 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9610
9611 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
9612
9613 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9614 in last patch.
9615
9616 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9617
9618 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9619 instead of unsigned_type.
9620
9621 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
9622
9623 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9624 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9625 later.
9626
9627 2002-04-18 Bernd Schmidt <bernds@redhat.com>
9628
9629 * attribs.c (vector_type_node_list): New static variable.
9630 (handle_vector_size_attribute): Use it to avoid generating a
9631 new type node each time we are called.
9632
9633 * combine.c (subst): Avoid trying to make a vector mode subreg of
9634 an integer constant.
9635 (gen_lowpart_for_combine): Likewise.
9636
9637 2002-04-18 Roger Sayle <roger@eyesopen.com>
9638 Jakub Jelinek <jakub@redhat.com>
9639
9640 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9641 for integer constant c (if x has unsigned type or sign bit is not
9642 set in c). This folds the zero/sign extension into the bit-wise and
9643 operation.
9644
9645 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9646
9647 PR middle-end/6205
9648 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9649 otherwise xorps.
9650
9651 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
9652
9653 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9654
9655 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
9656
9657 * gcc.c (read_specs): Detect and fail if an attempt is made to
9658 rename a spec string to an already existing string.
9659
9660 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9661
9662 * config/s390/s390.c (legitimize_pic_address): Do not generate
9663 illegal address constant without CONST.
9664
9665 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9666
9667 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9668 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9669
9670 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9671
9672 PR optimization/6305
9673 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9674 to make sure previous reloads are taken into account. Generate
9675 better code if one operand is an in-range immediate constant.
9676
9677 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
9678
9679 * doc/install.texi (Building): libgcj requires GNU make.
9680
9681 2002-04-17 Jakub Jelinek <jakub@redhat.com>
9682
9683 PR bootstrap/6315
9684 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9685 even if hard quad and register is not floating.
9686 (movtf reg<-mem split): Disallow splitting if hard quad and
9687 register is floating.
9688 (movtf mem<-reg split): Likewise.
9689 * config/sparc/sparc.c (fp_register_operand): New predicate.
9690 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9691
9692 2002-04-17 Zack Weinberg <zack@codesourcery.com>
9693
9694 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9695 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9696 (unprotoize.o): Ditto. Build from protoize.c. Define
9697 UNPROTOIZE on command line.
9698 * protoize.c: Include cppdefault.h. Delete include_defaults.
9699 (in_system_include_dir): Use cpp_include_defaults (defined in
9700 cppdefault.o).
9701 * unprotoize.c: Delete file.
9702
9703 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
9704
9705 * config/rs6000/altivec.h (vec_ld): Add array variants.
9706 (vec_lde): Same.
9707 (vec_ldl): Same.
9708
9709 2002-04-17 Alan Matsuoka <alanm@redhat.com>
9710 Aldy Hernandez <aldyh@redhat.com>
9711
9712 * config/rs6000/altivec.h: Define __ALTIVEC__.
9713 (bool): New.
9714 (__pixel): New.
9715 (pixel): New.
9716 (vec_cfux): New.
9717 (vec_vmaddfp): New.
9718 (vec_vsldoi): New.
9719 Add parentheses to all macro arguments.
9720
9721 2002-04-16 Richard Henderson <rth@redhat.com>
9722
9723 PR c++/6320
9724 * except.c (remove_eh_handler): Insert inner regions at beginning
9725 of sibling chain. Refactor expressions.
9726
9727 2002-04-16 Richard Henderson <rth@redhat.com>
9728
9729 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9730 * config/sparc/sol2-gas-bi.h: New file.
9731 * config.gcc (sparc*-solaris): Add it as needed.
9732 * configure.in (AS_SPARC64_FLAG): Remove check.
9733 * config.in, configure: Regenerate.
9734
9735 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9736
9737 2002-04-16 Richard Henderson <rth@redhat.com>
9738
9739 * config/mips/mips.c (override_options): Don't override N32 for
9740 a 64-bit ISA.
9741
9742 PR 6202
9743 * config/mips/mips.md (can_delay): Split out of existing define_delays.
9744 (HILO_delay): Set can_delay false.
9745
9746 2002-04-16 Dale Johannesen <dalej@apple.com>
9747
9748 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9749 instruction addresses.
9750 (rs6000_output_function_epilogue): Likewise.
9751
9752 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
9753
9754 * c-parse.in (poplevel, compstmt_start,
9755 compstmt_primary_start): Add ending ';', in accordance
9756 with POSIX.
9757
9758 2002-04-16 Richard Henderson <rth@redhat.com>
9759
9760 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9761 Adjust tm_file order to get TARGET_DEFAULT set properly.
9762 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9763 * doc/install.texi (sparc-solaris): Update.
9764
9765 2002-04-16 Dale Johannesen <dalej@apple.com>
9766
9767 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9768 comparison operands do not match each other or if modes of
9769 conditions do not match result.
9770
9771 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
9772
9773 PR target/6305
9774 * config/s390/s390.md (mulsidi3): Set both subregs of the
9775 multiword register.
9776
9777 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
9778
9779 * config/rs6000/altivec.h (vec_addc): Type check.
9780
9781 2002-04-16 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR middle-end/6279
9784 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9785
9786 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9787
9788 2002-04-15 Richard Henderson <rth@redhat.com>
9789
9790 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9791 call_really_used_regs too.
9792
9793 2002-04-15 Richard Henderson <rth@redhat.com>
9794
9795 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9796
9797 2002-04-15 David S. Miller <davem@redhat.com>
9798
9799 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9800 as being CLOBBERed.
9801
9802 2002-04-16 Jakub Jelinek <jakub@redhat.com>
9803
9804 PR c/6290
9805 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9806 CONST_VECTOR is { 0, ... 0 }.
9807
9808 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
9809
9810 * doc/install.texi (Installing GCC: Configuration): Clarify
9811 the only supported ways to configure gcc.
9812
9813 2002-04-15 Roland McGrath <roland@frob.com>
9814
9815 * config.gcc (alpha*-*-gnu*): New target configuration.
9816 * config/alpha/gnu.h: New file for it.
9817 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9818
9819 2002-04-16 Mark Mitchell <mark@codesourcery.com>
9820
9821 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9822 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9823 * tree.h (expand_start_stmt_expr): Update prototype.
9824 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9825 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9826 on the STMT_EXPR created for the inline function.
9827
9828 2002-04-15 Richard Henderson <rth@redhat.com>
9829
9830 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9831 config/i386/linux-aout.h, config/i386/linux-oldld.h,
9832 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9833 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9834 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9835 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9836 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9837 Define __gnu_linux__, not gnu_linux.
9838 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9839
9840 2002-04-15 Mark Mitchell <mark@codesourcery.com>
9841
9842 Remove Chill front end.
9843 * gcc.c (default_compilers): Remove Chill entries.
9844 * ch: Remove directory.
9845 * doc/frontends.texi: Remove information about Chill.
9846 * doc/sourcebuild.texi: Likewise.
9847 * doc/standards.texi: Likewise.
9848
9849 2002-04-15 Douglas B Rupp <rupp@gnat.com>
9850
9851 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9852 (LONGLONG_STANDALONE): Define.
9853
9854 2002-04-15 David S. Miller <davem@redhat.com>
9855
9856 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9857 Call emit_library_call with LCT_NORMAL.
9858 (sparc_initialize_trampoline): Use LCT_foo instead of
9859 magic constant in emit_library_call invocations.
9860 (sparc64_initialize_trampoline): Likewise.
9861 (sparc_profile_hook): Likewise.
9862 * config/sparc/sparc.md: Likewise.
9863
9864 * config/sparc/sparc.c (sparc_extra_constraint_check):
9865 Fix type of argument 'c'.
9866 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9867 Likewise.
9868
9869 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9870
9871 * diagnostic.h (output_buffer_state): Redefine.
9872 (output_format_decoder): New macro.
9873 (output_prefixing_rule): Likewise.
9874 (output_line_cutoff): Likewise.
9875 (diagnostic_format_decoder): Adjust.
9876 (diagnostic_prefixing_rule): Likewise.
9877 (diagnostic_line_cutoff): Likewise.
9878 (diagnostic_state): Likewise.
9879 (diagnostic_kind_count): Likewise.
9880 (diagnostic_buffer): Now a macro.
9881
9882 * diagnostic.c (diagnostic_buffer): Remove definition.
9883 (output_is_line_wrapping): Adjust.
9884 (set_real_maximum_length): Likewise.
9885 (output_set_maximum_length): Likewise.
9886 (init_output_buffer): Likewise.
9887 (lhd_print_error_function): Likewise.
9888 (output_do_verbatim): Likewise.
9889
9890 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
9891
9892 * cpperror.c (print_location): Don't print include chain
9893 if line == 0.
9894 (cpp_begin_message): Update to use DL_ macros.
9895 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9896 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9897 cpp_notice, cpp_notice_from_errno): Remove.
9898 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9899 level.
9900 (cpp_errno): New.
9901 * cppexp.c (CPP_ICE): Remove.
9902 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9903 lex, integer_overflow, _cpp_parse_expr): Update.
9904 * cppfiles.c (read_include_file, find_include_file,
9905 handle_missing_header, _cpp_read_file, remap_filename): Update.
9906 * cpphash.h (enum error_type): Remove.
9907 (_cpp_begin_message): Update.
9908 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9909 cpp_handle_option, cpp_post_options): Update.
9910 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9911 skip_whitespace, parse_identifier, parse_slow, parse_string,
9912 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9913 cpp_interpret_charconst): Update.
9914 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9915 lex_macro_node, do_undef, glue_header_name, parse_include,
9916 do_include_common, read_flag, do_line, do_linemarker, do_ident,
9917 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9918 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9919 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9920 _cpp_pop_buffer, do_diagnostic): Update.
9921 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9922 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9923 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9924 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9925 cpp_notice, cpp_notice_from_errno): Remove.
9926 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9927 level.
9928 (cpp_errno): New.
9929 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9930 collect_args, enter_macro_context, save_parameter, parse_params,
9931 _cpp_create_definition, check_trad_stringification,
9932 cpp_macro_definition): Update.
9933 * cppmain.c (cpp_preprocess_file): Update.
9934 * fix-header.c (read_scan_file): Update.
9935
9936 2002-04-14 Andreas Schwab <schwab@suse.de>
9937
9938 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9939
9940 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9941
9942 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9943
9944 2002-04-13 Mark Mitchell <mark@codesourcery.com>
9945
9946 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9947 not gnu_hurd.
9948
9949 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
9950
9951 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9952
9953 2002-04-13 Joel Sherrill <joel@OARcorp.com>
9954
9955 * config/sparc/t-elf: Enable v8 multilibs. Impacts
9956 sparc-elf and sparc-rtems targets.
9957
9958 2002-04-13 Mark Mitchell <mark@codesourcery.com>
9959
9960 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9961 defined, and __gnu_hurd__ wherever __GNU__ is defined.
9962 * arm/linux-elf.h: Likewise.
9963 * cris/aout.h: Likewise.
9964 * cris/linux.h: Likewise.
9965 * i370/linux.h: Likewise.
9966 * i386/gnu.h: Likewise.
9967 * i386/linux-aout.h: Likewise.
9968 * i386/linux-oldld.h: Likewise.
9969 * i386/linux.h: Likewise.
9970 * i386/linux64.h: Likewise.
9971 * ia64/linux.h: Likewise.
9972 * m68k/linux-aout.h: Likewise.
9973 * m68k/linux.h: Likewise.
9974 * mips/linux.h: Likewise.
9975 * pa/pa-linux.h: Likewise.
9976 * pj/linux.h: Likewise.
9977 * rs6000/sysv4.h: Likewise.
9978 * s390/linux.h: Likewise.
9979 * sh/linux.h: Likewise.
9980 * sparc/linux-aout.h: Likewise.
9981 * sparc/linux.h: Likewise.
9982 * sparc/linux64.h: Likewise.
9983 * xtensa/linux.h: Likewise.
9984
9985 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
9986
9987 * stmt.c (check_unique_operand_names): Expect operand names to
9988 be strings rather than identifiers. Use simple_cst_equal to
9989 compare them.
9990 (resolve_operand_name_1): Make same identifier to string change here.
9991 * c-parse.in (asm_operand): Convert a named operand into a string.
9992 * cp/parse.y (asm_operand): Likewise.
9993
9994 2002-04-13 Andreas Schwab <schwab@suse.de>
9995
9996 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9997
9998 2002-04-12 Mark Mitchell <mark@codesourcery.com>
9999
10000 Revert these changes:
10001
10002 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10003
10004 PR c++/5571
10005 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10006
10007 2002-04-12 Richard Henderson <rth@redhat.com>
10008
10009 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10010 (sparc*-*-solaris): Clean up header files.
10011 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10012 and plan on generating 64-bit code.
10013 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10014 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10015 * config/sparc/sol2-sld-64.h: Rename ...
10016 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
10017 for AS_SPARC64_FLAG not defined.
10018 * config/sparc/sol2-gld-bi.h: New.
10019 * config/sparc/sol2-sld.h: Remove.
10020 * config/sparc/sol26-sld.h: New.
10021 * config/sparc/sol2.h: Tidy comments.
10022 * doc/install.texi: Document sparc-solaris configury changes.
10023
10024 2002-04-12 Richard Henderson <rth@redhat.com>
10025
10026 * recog.c (offsettable_address_p): Match the logic in adjust_address.
10027
10028 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10029 in 64-bit mode only. Use only for 32-bit or MEDLOW.
10030
10031 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10032
10033 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10034
10035 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
10036
10037 * pa.c (pa_can_combine_p): Call extract_insn before calling
10038 constrain_operands.
10039
10040 2002-04-12 Douglas B Rupp <rupp@gnat.com>
10041
10042 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10043 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10044 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10045 (CPP_PREDEFINES): Handle __declspec.
10046 * config/i386/t-interix (USER_H): Remove.
10047
10048 2002-04-12 DJ Delorie <dj@redhat.com>
10049
10050 * integrate.c (compare_blocks): Make comparisons safe for when
10051 sizeof(int) < sizeof(char *).
10052 (find_block): Likewise.
10053
10054 2002-04-12 Jan Hubicka <jh@suse.cz>
10055 David Edelsohn <edelsohn@gnu.org>
10056
10057 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10058 registers.
10059 (symbol_ref_operand): New.
10060 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10061 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10062
10063 2002-04-12 Andreas Schwab <schwab@suse.de>
10064
10065 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
10066 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
10067 overrides the definition in config/svr4.h.
10068
10069 2002-04-12 Eric Norum <eric.norum@usask.ca>
10070
10071 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
10072 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
10073 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
10074 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
10075 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
10076 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
10077 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
10078 definitions to config/rtems.h and make the targets more similar.
10079
10080 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10081
10082 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
10083 POINTERS_EXTEND_UNSIGNED.
10084 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
10085 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
10086
10087 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
10088 not specified.
10089
10090 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
10091
10092 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
10093 depends on TARGET_SHMEDIA, not TARGET_SH5.
10094
10095 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
10096
10097 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
10098 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
10099
10100 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
10101
10102 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
10103 no r0 clobber.
10104
10105 2002-04-12 Andreas Schwab <schwab@suse.de>
10106
10107 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
10108
10109 2002-04-12 Richard Henderson <rth@redhat.com>
10110
10111 PR bootstrap/4191
10112 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
10113
10114 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
10115 modes spanning multiple hard regs.
10116
10117 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
10118
10119 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10120
10121 * pa.c (pa_output_function_prologue): Don't accumulate the total
10122 number of code bytes when using TARGET_64BIT, or gas, SOM and not
10123 the portable runtime.
10124 (output_deferred_plabels): Handle 64bit plabels.
10125 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
10126 generating pic code using the GAS assembler for object formats that
10127 are not SOM (ie., ELF32 and ELF64).
10128 (output_millicode_call): Check attribute type if attribute length is 28.
10129 Likewise use $PIC_pcrel$0. Only call get_attr_length and
10130 dbr_sequence_length once.
10131 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
10132 dbr_sequence_length once.
10133 * pa.h (TARGET_SOM): Define if not defined.
10134 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
10135 with GAS and not SOM.
10136 (jump, call_internal_reg, call_value_internal_reg): Likewise.
10137 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
10138
10139 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10140
10141 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
10142 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
10143 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
10144 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
10145 elfos.h and dbxelf.h values are fine now.
10146 * config/i386/freebsd.h, config/alpha/freebsd.h
10147 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10148
10149 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10150
10151 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
10152 or set Acpu or Amachine. Reformat.
10153 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10154 define.
10155 (LINK_SPEC): Do not need to undef.
10156 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
10157 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
10158 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10159 define.
10160 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
10161 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
10162 (LINK_SPEC): Do not need to undef.
10163 (DONT_USE_BUILTIN_SETJMP): Do not define.
10164 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
10165 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
10166 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
10167 Remove trailing spaces.
10168 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
10169 __ELF__, or set Acpu or Amachine. Reformat.
10170 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10171 define.
10172
10173 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10174
10175 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
10176 all other *-*-freebsd* targets.
10177
10178 2002-04-11 Richard Henderson <rth@redhat.com>
10179
10180 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10181
10182 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10183
10184 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10185 Include {cpu}/{cpu}.h thru tm_file.
10186 (alpha*-*-linux*ecoff): Remove target.
10187 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10188 (LINK_SPEC): Remove, is not OS independent.
10189 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10190 (LINK_SPEC): Do not need to #undef any longer.
10191 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10192 any longer.
10193 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10194 __ELF__.
10195 (LINK_SPEC): Moved here from alpha/elf.h.
10196 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10197 SUB_CPP_PREDEFINES.
10198 * config/alpha/linux-ecoff.h: Remove.
10199 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10200 (CPP_SPEC): Define _POSIX_SOURCE as needed.
10201 (CPP_SUBTARGET_SPEC): Do not define.
10202 (LINK_SPEC): Do not need to #undef any longer.
10203 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10204 * config/alpha/vms.h: Likewise.
10205
10206 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
10207
10208 * doc/extend.texi: Remove old claim that typedefs cannot have
10209 an alignment attribute.
10210
10211 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR optimization/6177
10214 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10215 bitpos is 0 and bitsize CONCAT size.
10216
10217 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10218
10219 PR c/6223
10220 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10221
10222 2002-04-10 David O'Brien <obrien@FreeBSD.org>
10223
10224 * config/alpha/freebsd.h: Minor reformatting.
10225 (CPP_SPEC): Define ELF and add cpp_subtarget.
10226 (ASM_SPEC): No longer needed.
10227
10228 2002-04-11 Richard Henderson <rth@redhat.com>
10229
10230 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10231 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
10232 (dimode mem/zero splitter): New.
10233
10234 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
10235
10236 * config/cris/cris.c (cris_override_options): Tweak error message
10237 for PIC not implemented.
10238
10239 * config/cris/cris.h: Tweak comments related to parameter-passing.
10240
10241 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10242
10243 2002-04-10 Richard Henderson <rth@redhat.com>
10244
10245 * except.c (add_ehl_entry): Allow duplicates after landing pad
10246 creation.
10247
10248 2002-04-10 David Edelsohn <edelsohn@gnu.org>
10249
10250 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10251
10252 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
10253
10254 * c-decl.c (c_init_decl_processing): Move generation of
10255 decls for g77_integer_type_node and friends from here ...
10256 * c-common.c (c_common_nodes_and_builtins): ... to here.
10257
10258 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
10259
10260 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10261 is only used as frame pointer when frame_pointer_needed is true.
10262
10263 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
10264
10265 PR target/817
10266 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10267 for the fact that the pool entry uses two words.
10268 (movdf_hard_insn): Similarly. Also, ADR instruction can span
10269 1k bytes.
10270 (movdf_soft_insn): Similarly.
10271 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10272 for the fact that the pool entry uses three words.
10273
10274 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
10275
10276 * config/mips/mips.c (mips_va_arg): When using the struct version
10277 of the EABI va_list, allow arguments in the register save area to
10278 take up less room than a stack argument.
10279
10280 2002-04-10 Richard Henderson <rth@redhat.com>
10281
10282 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10283 if EXPAND_INITIALIZER.
10284
10285 2002-04-09 Richard Henderson <rth@redhat.com>
10286
10287 * config/alpha/alpha.md (movdi_er_maybe_g): New.
10288 * config/alpha/alpha.c (alpha_expand_mov): Use it.
10289
10290 2002-04-10 Alan Modra <amodra@bigpond.net.au>
10291
10292 PR optimization/6233
10293 * rtlanal.c (pure_call_p): New function.
10294 * rtl.h (pure_call_p): Declare.
10295 * loop.c (prescan_loop): Use it to set has_nonconst_call.
10296 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10297
10298 2002-04-09 Eric Christopher <echristo@redhat.com>
10299
10300 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10301 information to .comm directive.
10302
10303 2002-04-09 Richard Henderson <rth@redhat.com>
10304
10305 PR c/5078
10306 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10307
10308 2002-04-09 Richard Henderson <rth@redhat.com>
10309
10310 * basic-block.h (flow_delete_block_noexpunge): Declare.
10311 (expunge_block_nocompact): Declare.
10312 * cfg.c (expunge_block_nocompact): Split out from ...
10313 (expunge_block): ... here.
10314 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10315 (flow_delete_block_noexpunge): Split out from ...
10316 (flow_delete_block): ... here.
10317 * cfgcleanup.c (delete_unreachable_blocks): Compact while
10318 removing dead blocks.
10319 * except.c (exception_handler_labels): Remove.
10320 (exception_handler_label_map): New.
10321 (struct eh_region): Add aka member.
10322 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10323 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10324 (for_each_eh_label, for_each_eh_label_1): New.
10325 (init_eh): Register exception_handler_label_map.
10326 (free_eh_status): Use free_region.
10327 (find_exception_handler_labels): Use the map, not the list.
10328 (remove_exception_handler_label): Likewise.
10329 (maybe_remove_eh_handler): Likewise.
10330 (remove_eh_handler): Use the region aka bitmap.
10331 * except.h (exception_handler_labels): Remove.
10332 (for_each_eh_label): Declare.
10333 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10334 * loop.c (invalidate_loops_containing_label): New.
10335 (find_and_verify_loops): Use it. Use for_each_eh_label.
10336 * sched-rgn.c (is_cfg_nonregular): Use
10337 current_function_has_exception_handlers.
10338
10339 2002-04-09 Richard Henderson <rth@redhat.com>
10340
10341 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10342 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10343 Do not return changed status.
10344 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10345 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10346 New functions that do return changed status.
10347 * sbitmap.h: Update decls.
10348 * gcse.c, lcm.c: Use _cg functions as needed.
10349
10350 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
10351
10352 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10353 (sh64-*-elf*, sh-*-rtemself*): Likewise.
10354 * config/sh/embed_bb.c: New file.
10355 * config/sh/embed-elf.h: New file.
10356 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10357 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
10358 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10359 __PTRDIFF_TYPE__ .
10360 (SUBTARGET_CPP_PTR_SPEC): Don't define.
10361 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10362 Add subtarget_asm_endian_spec.
10363 (ASM_SPEC): Use subtarget_asm_endian_spec.
10364 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10365 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10366 (WCHAR_UNSIGNED): Define.
10367 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10368 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10369 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10370 Fix value.
10371 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10372 (sh_adjust_cost): Likewise.
10373 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10374 __PTRDIFF_TYPE__ .
10375 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10376 (WCHAR_TYPE_SIZE): Likewise.
10377 (ASM_SPEC): Use subtarget_asm_endian_spec.
10378 (SH_ELF_WCHAR_TYPE): #undef/ #define.
10379 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10380 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10381 (MAX_WCHAR_TYPE_SIZE): Don't #define .
10382 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10383 (USER_LABEL_PREFIX): Don't #undef /#define .
10384 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10385 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10386 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10387 (ASM_SPEC): Likewise.
10388 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10389 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10390 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10391 (LIB2FUNCS_EXTRA): Define.
10392 * t-sh64 (LIB2FUNCS_EXTRA): Define.
10393 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10394 (LIB1ASMFUNCS_CACHE): Define.
10395 (LIB2FUNCS_EXTRA): Redefine empty.
10396
10397 2002-04-08 Richard Henderson <rth@redhat.com>
10398
10399 * reorg.c (get_branch_condition): Use reversed_comparison_code.
10400
10401 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10402
10403 * config/m68hc11/larith.asm (__map_data_section): Fix condition
10404 and optimize for size.
10405 (__do_global_ctors): Fix pointer comparison.
10406 (__do_global_dtors): Likewise.
10407
10408 2002-04-09 David S. Miller <davem@redhat.com>
10409
10410 * config/sparc/sparc.c (sparc_extra_constraint_check): New
10411 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
10412 allow reloading pseudos.
10413 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10414 * config/sparc/sparc-protos.h: Declare it.
10415
10416 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10417 unsigned comparison warning.
10418 (output_restore_regs): Mark leaf_function as unused.
10419
10420 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10421
10422 * expr.c (is_aligning_offset): New function.
10423 (expand_expr, case COMPONENT_EXPR): Call it.
10424
10425 2002-04-08 David S. Miller <davem@redhat.com>
10426
10427 PR target/6082
10428 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10429
10430 Make init_priority work on Sparc when using GNU ld.
10431 * config/sparc/linux.h, config/sparc/linux64.h,
10432 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10433 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10434 * config/sparc/sol2-gld.h: New file to do the same.
10435 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10436 sparc/sol2-gld.h to tm_file.
10437
10438 PR optimization/4328
10439 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10440 * doc/md.texi: Document it.
10441 * config/sparc/sparc.md (movdi_insn_sp64_novis,
10442 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10443 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10444 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10445 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10446
10447 2002-04-08 Andreas Jaeger <aj@suse.de>
10448
10449 * stmt.c (expand_asm_operands): Revert last patch from Richard
10450 Henderson.
10451
10452 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10453
10454 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10455 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
10456
10457 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10458
10459 * doc/contrib.texi (Contributors): Add David O'Brien.
10460
10461 2002-04-08 Alan Modra <amodra@bigpond.net.au>
10462
10463 * configure.in (auto-build.h): Use target_alias and build_alias
10464 when running configure.
10465 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10466 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10467 * configure: Regenerate.
10468
10469 2002-04-07 David S. Miller <davem@redhat.com>
10470
10471 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10472
10473 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10474
10475 PR 5933
10476 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10477 generating 32-bit pic code.
10478
10479 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
10480
10481 * cppinit.c (cpp_create_reader): Initialize
10482 discard_comments_in_macro_exp.
10483 (COMMAND_LINE_OPTIONS): Add "-CC" option.
10484 (cpp_handle_option): Handle "-CC" option.
10485 * cpplex.c (save_comment): If saving a C++ comment in
10486 a directive, convert it to a C comment.
10487 (_cpp_lex_direct): Pass second comment start character to
10488 save_comment to indicate comment type.
10489 * cpplib.c (_cpp_handle_directive): If processing
10490 a "#define" directive and discard_comments_in_macro_exp
10491 is false, re-enable saving of comments.
10492 (lex_macro_node): If discard_comments_in_macro_exp is false,
10493 discard any comments before the macro identifier.
10494 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10495 member.
10496 * cppmacro.c (cpp_get_token): If expanding a macro while
10497 processing a directive, discard any comments we might encounter.
10498 (parse_params): If discard_comments_in_macro_exp is false,
10499 ignore comments in the macro parameter list.
10500 * gcc.c (cpp_unique_options): Add "-CC" option.
10501 (option_map): Map "--comments-in-macros" to "-CC".
10502 * doc/cppopts.texi: Document "-CC" option.
10503 * f/lang-specs.h: Add "-CC" option.
10504 * testsuite/gcc.dg/cpp/maccom1.c: New test.
10505 * testsuite/gcc.dg/cpp/maccom2.c: New test.
10506 * testsuite/gcc.dg/cpp/maccom3.c: New test.
10507 * testsuite/gcc.dg/cpp/maccom4.c: New test.
10508 * testsuite/gcc.dg/cpp/maccom5.c: New test.
10509 * testsuite/gcc.dg/cpp/maccom6.c: New test.
10510
10511 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
10512
10513 PR middle-end/6180
10514 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10515
10516 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10517
10518 PR c++/5571
10519 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10520
10521 PR opt/5120
10522 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10523 RTX_UNCHANGING_P for the functions arguments when a tail call
10524 is made.
10525
10526 2002-04-06 Jason Merrill <jason@redhat.com>
10527
10528 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10529 (parse_options_and_default_flags): Set them appropriately.
10530 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10531
10532 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
10533
10534 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10535 here.
10536
10537 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10538 semicolon.
10539
10540 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10541 types come in by-reference. Fix typo in comment.
10542
10543 2002-04-05 David S. Miller <davem@redhat.com>
10544
10545 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10546 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10547 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10548 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10549
10550 2002-04-05 David S. Miller <davem@redhat.com>
10551
10552 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10553 are not going to emit return instructions, emit at least a nop
10554 for the sake of sane backtraces.
10555
10556 2002-04-05 Richard Henderson <rth@redhat.com>
10557
10558 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10559
10560 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
10561
10562 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10563
10564 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
10565
10566 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10567 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10568 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10569
10570 2002-04-05 Andreas Schwab <schwab@suse.de>
10571
10572 * c-convert.c: Include c-common.h.
10573 * Makefile.in (c-convert.o): Updated.
10574
10575 2002-04-05 Jakub Jelinek <jakub@redhat.com>
10576
10577 * mklibgcc.in: Use separate libgcc.map for each multilib.
10578 * Makefile.in (distclean): Don't remove libgcc.map here.
10579
10580 2002-04-05 Jakub Jelinek <jakub@redhat.com>
10581
10582 * Makefile.in (s-mlib): Handle --disable-multilib by separate
10583 genmultilib invocation.
10584
10585 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
10586
10587 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10588 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
10589 to num_gprs for symmetry.
10590 * config/mips/mips.c: Adjust accordingly.
10591
10592 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10593
10594 * c-common.c (truthvalue_conversion): Rename, update.
10595 * c-common.h (c_common_truthvalue_conversion): New.
10596 * c-convert.c (convert): Update.
10597 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10598 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10599 * c-typeck.c (build_binary_op, build_unary_op,
10600 build_conditional_expr): Update.
10601 * fold-const.c (constant_boolean_node, fold): Use langhook.
10602 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10603 * langhooks.h (struct lang_hooks): New hook.
10604 * stmt.c (expand_decl_cleanup): Use langhook.
10605 * tree.h (truthvalue_conversion): Remove.
10606 objc:
10607 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10608
10609 2002-04-05 Alan Modra <amodra@bigpond.net.au>
10610
10611 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10612 Add rules to make null object file.
10613
10614 2002-04-04 Jim Blandy <jimb@redhat.com>
10615
10616 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10617 macro formal parameter names.
10618
10619 2002-04-04 David S. Miller <davem@redhat.com>
10620
10621 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10622
10623 2002-04-04 Richard Henderson <rth@redhat.com>
10624
10625 PR middle-end/5099
10626 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10627 Support copies into and out of memory. Don't accept allows_reg
10628 and allows_mem as gospel.
10629
10630 2002-04-04 Richard Henderson <rth@redhat.com>
10631
10632 PR opt/6165
10633 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10634 (write_dependence_p): Likewise.
10635
10636 2002-04-04 Richard Henderson <rth@redhat.com>
10637
10638 * predict.c (estimate_bb_frequencies): Do frequency calculation
10639 with a volatile temporary.
10640
10641 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
10642
10643 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10644
10645 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10646
10647 PR c++/6119
10648 * final.c (final_start_function): Don't bump profile_label_no here...
10649 (final_end_function): ...but here.
10650
10651 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10652
10653 * config/sparc/sparc.md (pic): New attribute.
10654 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10655 into stack slots.
10656 (split after do_builtin_setjmp_setup): New.
10657
10658 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10659
10660 PR fortran/6106
10661 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10662 change.
10663
10664 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10665
10666 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10667 UNITS_PER_WORD for zero sized aggregates.
10668
10669 2002-04-03 David S. Miller <davem@redhat.com>
10670
10671 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10672 one-character spec for this, just use %(link_gcc_c_sequence).
10673
10674 2002-04-03 David S. Miller <davem@redhat.com>
10675
10676 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10677 handling.
10678
10679 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10680
10681 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10682 (DWARF_FRAME_RETURN_COLUMN): Move.
10683 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10684 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10685 * pa.c (except.h, predict.h): Include.
10686 (FRP): Delete.
10687 (store_reg_modify, set_reg_plus_d): Revise prototypes.
10688 (output_ascii): Add cast.
10689 (store_reg_modify): Revise to add frame notes.
10690 (set_reg_plus_d): Likewise.
10691 (compute_frame_size): Include space for eh data registers in frame if
10692 the current function calls eh_return.
10693 (hppa_expand_prologue): Ensure register %r2 is saved if the current
10694 function calls eh_return. Save eh data registers if the current
10695 function calls eh_return. Fix code to add frame notes. Emit
10696 blockage to prevent insns with frame notes being scheduled in the
10697 delay slot of calls.
10698 (hppa_expand_epilogue): Restore eh data registers and do final stack
10699 adjustment if the current function calls eh_return. Don't add frame
10700 notes.
10701 (output_call): Revise for change in length of call insn. Don't do
10702 return pointer adjustment for an unconditional jump in the delay slot
10703 of a call when using frame notes.
10704 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10705 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10706 (ARG_POINTER_CFA_OFFSET): Define.
10707 * pa.md (return_external_pic): New pattern.
10708 (prologue): Correct formatting. Use return_external_pic if current
10709 function calls eh_return.
10710 (call_internal_symref, call_value_internal_symref,
10711 sibcall_internal_symref, sibcall_value_internal_symref): Change default
10712 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10713 respectively.
10714 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10715
10716 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10717 list of targets to check using "nop" insn.
10718 * configure: Rebuilt.
10719
10720 2002-04-04 Alan Modra <amodra@bigpond.net.au>
10721
10722 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10723
10724 2002-04-03 David S. Miller <davem@redhat.com>
10725
10726 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10727 library sequence passed to the linker.
10728 (LINK_COMMAND_SPEC): Use it.
10729 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10730 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10731 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10732
10733 2002-04-03 Jason Merrill <jason@redhat.com>
10734
10735 * except.c (struct eh_status): Remove protect_list.
10736 (begin_protect_partials, end_protect_partials): Remove.
10737 (add_partial_entry): Remove.
10738 * except.h: Remove prototypes.
10739
10740 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10741 expand_decl_cleanup_eh.
10742
10743 PR c++/5636
10744 * tree.h (CLEANUP_EH_ONLY): New macro.
10745 * stmt.c (expand_decl_cleanup_eh): New fn.
10746 (expand_cleanups): Check CLEANUP_EH_ONLY.
10747 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10748 Use expand_decl_cleanup_eh.
10749 (expand_stmt): Adjust.
10750 * c-common.h: Adjust prototype.
10751
10752 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
10753
10754 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10755 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10756 (cris_target_asm_function_epilogue): Ditto.
10757 (cris_initial_frame_pointer_offset): Ditto.
10758 (cris_simple_epilogue): Ditto.
10759 (cris_expand_builtin_va_arg): Variable-size types come in
10760 by-reference.
10761
10762 2002-04-03 David S. Miller <davem@redhat.com>
10763
10764 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10765 little-endian.
10766 (set_fast_math): Correct 'fsr' type.
10767
10768 2002-04-03 Richard Henderson <rth@redhat.com>
10769
10770 PR opt/3569
10771 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10772 * toplev.c (check_global_declarations): Use it.
10773 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10774 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10775 (LANG_HOOKS_DECLS): Add it.
10776 * langhooks.c (lhd_warn_unused_global_decl): New.
10777 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10778 * c-objc-common.c (c_warn_unused_global_decl): New.
10779 * c-tree.h (c_warn_unused_global_decl): Declare.
10780 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10781
10782 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
10783
10784 * langhooks-def.h (lhd_set_decl_assembler_name,
10785 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10786 (LANG_HOOKS_INITIALIZER): Update.
10787 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10788 * langhooks.h (struct lang_hooks): New hook.
10789 * tree.c (set_decl_assembler_name): Move to langhooks.c.
10790 (lang_set_decl_assembler_name): Remove.
10791 (init_obstacks): Don't set hook.
10792 (decl_assembler_name): New function.
10793 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10794 (decl_assembler_name): New.
10795 (lang_set_decl_assembler_name): Remove.
10796
10797 2002-04-03 Jakub Jelinek <jakub@redhat.com>
10798
10799 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10800 works properly with .hidden symbols.
10801 * configure: Rebuilt.
10802 * config.in: Rebuilt.
10803 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10804 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10805 properly with .hidden symbols.
10806
10807 2002-04-03 Jakub Jelinek <jakub@redhat.com>
10808
10809 PR middle-end/6102
10810 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10811 USE argument.
10812
10813 2002-04-03 Richard Henderson <rth@redhat.com>
10814
10815 PR opt/4120
10816 * sched-rgn.c (sets_likely_spilled): New.
10817 (sets_likely_spilled_1): New.
10818 (add_branch_dependences): Use it.
10819
10820 2002-04-02 Richard Henderson <rth@redhat.com>
10821
10822 PR opt/4311
10823 * loop.h (LOOP_FIRST_PASS): New.
10824 * loop.c (strength_reduce): Mind it when deciding to unroll.
10825 * toplev.c (rest_of_compilation): Set it.
10826
10827 2002-04-02 David S. Miller <davem@redhat.com>
10828
10829 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10830 mems_ok_for_ldd_peep when the order of the loads being examined
10831 is reversed.
10832 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10833 existing comment to increase comprehension of this situation.
10834
10835 2002-04-02 Zack Weinberg <zack@codesourcery.com>
10836
10837 * config/sh/sh.md: Don't use union real_extract.
10838
10839 2002-04-02 Richard Henderson <rth@redhat.com>
10840
10841 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10842
10843 2002-04-02 David O'Brien <obrien@FreeBSD.org>
10844
10845 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10846 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10847 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10848 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10849 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10850 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10851 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10852 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10853 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10854 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10855 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10856 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10857 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10858 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10859 Include as many configury headers via tm_file as possible. This
10860 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10861 * config/openbsd-oldgas.h: New file.
10862 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10863 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10864 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10865 config/i386/i386-coff.h, config/i386/i386-interix.h,
10866 config/i386/iscdbx.h, config/i386/linux-aout.h,
10867 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10868 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10869 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10870 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10871 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10872 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10873 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10874 config/i386/vxi386.h: Do not directly include configury headers.
10875 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10876 Directly include configury headers that are no longer automatically
10877 included by the above headers.
10878 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10879 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10880 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10881 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10882 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10883 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10884 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10885 (TARGET_VERSION): Define.
10886 * config/i386/beos-elf.h, config/i386/freebsd.h,
10887 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10888 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10889 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10890 config/i386/sco5.h, config/i386/sysv4.h
10891 (TARGET_VERSION): Do not need to protect.
10892 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10893 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10894 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10895 config/i386/i386-interix.h, config/i386/linux-aout.h,
10896 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10897 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10898 (YES_UNDERSCORES): Do not define - not needed.
10899 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10900 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10901 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10902 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10903 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10904 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10905 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10906 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10907
10908 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
10909 Richard Henderson <rth@redhat.com>
10910
10911 PR c/5484
10912 * function.c (assign_temp): Accept either type or decl argument.
10913 Detect variables whose size is too large to fit into an integer.
10914 * stmt.c (expand_decl): Pass the decl, not the type.
10915
10916 2002-04-02 David O'Brien <obrien@FreeBSD.org>
10917
10918 * protoize.c: Match include directory usage with cppdefault.c.
10919
10920 2002-04-03 Jeffrey A Law (law@redhat.com)
10921 Hans-Peter Nilsson <hp@bitrange.com>
10922
10923 * combine.c (simplify_comparison): Avoid narrowing a comparison
10924 with a paradoxical subreg when doing so would drop signficant bits.
10925
10926 2002-04-02 Steve Ellcey <sje@cup.hp.com>
10927
10928 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10929 if POINTERS_EXTEND_UNSIGNED is defined.
10930
10931 2002-04-02 Richard Henderson <rth@redhat.com>
10932
10933 PR opt/3967
10934 * local-alloc.c (contains_replace_regs): LO_SUM may contain
10935 replace regs.
10936
10937 2002-04-02 Richard Henderson <rth@redhat.com>
10938
10939 * doc/standards.texi: Document required freestanding libc entry points.
10940
10941 2002-04-02 Alan Modra <amodra@bigpond.net.au>
10942
10943 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10944 associated splitter. Remove MQ constraint.
10945 (ctrdi_internal4): Correct CCmode clobber.
10946
10947 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10948
10949 * milli64.S ($$dyncall): New function.
10950 * t-linux (LIB1ASMFUNCS): Revise module list.
10951 (LIB1ASMSRC): Use pa/milli64.S.
10952
10953 2002-04-02 Richard Henderson <rth@redhat.com>
10954
10955 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10956 rename solaris_sys_varargs_h.
10957
10958 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10959
10960 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10961 the same mode as its component.
10962
10963 2002-04-02 Richard Henderson <rth@redhat.com>
10964
10965 PR opt/190
10966 * final.c (this_is_asm_operands): Export.
10967 * output.h (this_is_asm_operands): Declare.
10968 * config/i386/i386.c (print_operand): Error odd asm operands.
10969
10970 2002-04-02 Richard Henderson <rth@redhat.com>
10971
10972 PR opt/420
10973 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10974
10975 2002-04-01 Richard Henderson <rth@redhat.com>
10976
10977 PR target/1538
10978 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10979 * fixinc/fixincl.x: Rebuild.
10980
10981 2002-04-01 Richard Henderson <rth@redhat.com>
10982
10983 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10984 (atomic_alloc, atomic_free): New.
10985 (SIZE, MASK_FOR, PTR_IN): New.
10986 (emergency_reg_state, emergency_reg_state_free): New.
10987 (emergency_labeled_state, emergency_labeled_state_free): New.
10988 (reg_state_alloced, labeled_state_alloced): New.
10989 (alloc_reg_state, free_reg_state): New.
10990 (alloc_label_state, free_label_state, free_label_states): New.
10991 (push, pop, dup_state_stack, free_state_stack): Use them.
10992 (desc_label_state): Likewise.
10993 (uw_frame_state_for): Free label states and state stack.
10994 (uw_update_reg_address): Eliminate warnings.
10995
10996 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
10997
10998 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10999 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11000
11001 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11002
11003 * c-decl.c (grokdeclarator): Update.
11004 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11005 * c-tree.h (c_mark_addressable): New.
11006 * c-typeck.c (default_function_array_conversion, build_unary_op,
11007 build_array_ref, convert_for_assignment): Update.
11008 (mark_addressable): Rename.
11009 * calls.c (try_to_integrate, expand_call): Use langhook.
11010 * expr.c (expand_expr): Use langhook.
11011 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11012 * langhooks.h (struct lang_hooks): New hook.
11013 * stmt.c (expand_asm_operands): Use langhook.
11014 * tree.h (mark_addressable): Remove.
11015 objc:
11016 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11017
11018 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11019
11020 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11021 in previous change.
11022
11023 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11024
11025 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11026 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11027
11028 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11029
11030 * c-common.c (unsigned_conversion_warning, convert_and_check,
11031 unsigned_type, signed_type, shorten_compare,
11032 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11033 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11034 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11035 New.
11036 * c-decl.c (grokdeclarator): Update.
11037 * c-format.c (check_format_types): Update.
11038 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11039 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11040 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11041 * convert.c (convert_to_integer): Use new hooks.
11042 * expmed.c (make_tree): Use new hooks.
11043 * expr.c (store_expr): Use new hooks.
11044 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11045 all_ones_mask_p, unextend, fold): Use new hooks.
11046 * langhooks.h (struct lang_hooks_for_types): New hooks.
11047 * tree.h (signed_or_unsigned_type, signed_type,
11048 unsigned_type): Remove.
11049 objc:
11050 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11051 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11052
11053 2002-03-31 Richard Henderson <rth@redhat.com>
11054
11055 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11056 (desc_frgr_mem): Fix reference to f16-f31.
11057
11058 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11059
11060 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11061 RTVEC_ELT): Const-ify.
11062 * varray.h (VARRAY_CHECK): Const-ify.
11063 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
11064 ggc_mark_rtvec, ggc_mark): Const-ify.
11065
11066 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11067
11068 * diagnostic.c: Include langhooks-def.h.
11069 * Makefile.in (diagnostic.o): Update.
11070
11071 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11072
11073 * c-common.c (c_unsafe_for_reeval): Rename.
11074 * c-common.h (c_unsafe_for_reeval): Rename.
11075 * c-decl.c (finish_incomplete_decl): Rename.
11076 (c_init_decl_processing): Don't set langhook.
11077 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11078 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11079 * c-objc-common.c (c_objc_common_init): Don't set langhook.
11080 * c-tree.h (finish_incomplete_decl): Rename.
11081 * langhooks-def.h (lhd_unsafe_for_reeval): New.
11082 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
11083 (LANG_HOOKS_INITIALIZER): Update.
11084 * langhooks.c (lhd_unsafe_For_reeval): New.
11085 * langhooks.h (struct langhooks): New hooks.
11086 * toplev.c (incomplete_decl_finalize_hook): Remove.
11087 (wrapup_global_declarations): Update.
11088 * tree.c (lang_unsafe_for_reeval): Remove.
11089 (unsafe_for_reeval): Update.
11090 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
11091 Remove.
11092 objc:
11093 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11094 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11095
11096 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11097
11098 * diagnostic.c (print_error_function): Remove.
11099 (default_print_error_function): Rename.
11100 (report_error_function): Update.
11101 * diagnostic.h (print_error_function): Remove.
11102 (default_print_error_function): Remove.
11103 * langhooks-def.h (struct diagnostic_context): Predeclare.
11104 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
11105 (LANG_HOOKS_INITIALIZER): Update.
11106 * langhooks.h (struct diagnostic context): Predeclare.
11107 (struct lang_hooks): New hook.
11108
11109 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11110
11111 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
11112 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
11113 !flag_pic.
11114 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
11115 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
11116 of PIC_OFFSET_TABLE_REGNUM thruout.
11117 * config/rs6000/rs6000.md: Likewise.
11118 * config/rs6000/darwin.h: Likewise.
11119
11120 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11121
11122 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
11123 unsigned HOST_WIDE_INT, not unsigned int.
11124
11125 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11126
11127 PR middle-end/6096, middle-end/6098, middle-end/6099
11128 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
11129 CODE_LABELs.
11130 (fill_slots_from_thread): Likewise.
11131
11132 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11133
11134 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
11135 floating fields in float regs.
11136 (function_arg_record_value_2): Likewise.
11137
11138 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11139
11140 * config/mmix/mmix.md (define_constants): Remove misleading
11141 FIXME. Add MMIX_fp_rO_OFFSET.
11142 ("nonlocal_goto_receiver"): Don't have stack-frame address of
11143 saved rO as part of the pattern. Remove FIXME.
11144 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
11145 here, at output-time.
11146
11147 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11148
11149 PR middle-end/6100
11150 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
11151 REG_BR_PRED.
11152 (output_v9branch): Likewise.
11153
11154 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11155
11156 * gcc.c: Revert previous patch for now.
11157 * config/i386/djgpp.h: Likewise.
11158
11159 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11160
11161 * config/mmix/crti.asm (_init): Register _fini with atexit.
11162 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
11163
11164 2002-03-31 Richard Henderson <rth@redhat.com>
11165
11166 PR target/3997
11167 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
11168 (ASM_OUTPUT_DEF_FROM_DECLS): New.
11169
11170 2002-03-31 Richard Henderson <rth@redhat.com>
11171
11172 * libgcc2.c (__bb_exit_func): Make static.
11173
11174 * config/alpha/alpha.md (trap): New.
11175
11176 2002-03-31 Richard Henderson <rth@redhat.com>
11177
11178 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
11179 promoted argument types; build trap.
11180 (expand_builtin_trap): New.
11181 (expand_builtin): Use it.
11182 * stmt.c (expand_nl_goto_receivers): Likewise.
11183 * expr.h (expand_builtin_trap): Declare.
11184 * libfuncs.h (LTI_abort, abort_libfunc): New.
11185 * optabs.c (init_optabs): Init abort_libfunc.
11186
11187 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11188
11189 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11190 (LINK_COMMAND_SPEC): ... from here.
11191 (init_gcc_specs): Duplicate it here too, omitting
11192 shared_name in the second copy.
11193 (init_spec): Test for duplicate
11194 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11195
11196 2002-03-30 David S. Miller <davem@redhat.com>
11197
11198 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11199 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11200
11201 2002-03-30 Roger Sayle <roger@eyesopen.com>
11202 Richard Henderson <rth@redhat.com>
11203
11204 * regmove.c (combine_stack_adjustments_for_block): Avoid
11205 emitting a stack adjustment of zero bytes. Let delete_insn
11206 update bb->head.
11207
11208 2002-03-30 Richard Henderson <rth@redhat.com>
11209
11210 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11211 (sparc_emitting_epilogue): New.
11212 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11213 * config/sparc/sparc-protos.h: Update.
11214 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11215 (TARGET_SWITCHES): Update.
11216 * config/sparc/sparc.md (return): Remove.
11217 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11218 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11219 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11220 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11221 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11222 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11223 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11224 Remove MASK_EPILOGUE.
11225 * doc/invoke.texi: Update.
11226
11227 2002-03-30 Daniel Berlin <dan@dberlin.org>
11228
11229 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11230 CPP will start the file for us.
11231
11232 2002-03-30 Richard Henderson <rth@redhat.com>
11233
11234 PR target/5446
11235 * config/ia64/ia64.c (group_barrier_needed_p): Special case
11236 prologue_allocate_stack.
11237 (ia64_single_set): Use insn codes for recognition of special
11238 cases, not rtl matching.
11239 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11240
11241 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
11242
11243 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11244
11245 2002-03-30 Richard Henderson <rth@redhat.com>
11246
11247 PR target/6032
11248 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11249 or -fomit-frame-pointer with profiling.
11250 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11251 (FUNCTION_PROFILER): Do nothing.
11252 (PROFILE_HOOK): New.
11253 * config/sparc/sparc.c (sparc_override_options): Don't check
11254 code models for profiling.
11255 (sparc_function_profiler): Remove.
11256 (sparc_profile_hook): New.
11257 * config/sparc/sparc-protos.h: Update.
11258
11259 2002-03-30 Jakub Jelinek <jakub@redhat.com>
11260
11261 PR optimization/6086
11262 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11263 of SUBREG of volatile MEM or because the MEM was mode dependent,
11264 return CLOBBER instead of unmodified SUBREG.
11265
11266 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
11267
11268 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11269 when not optimizing.
11270
11271 * toplev.c (rest_of_compilation): Cann mark_constant_function
11272 only when optimizing.
11273
11274 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11275 are NULL.
11276
11277 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11278 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11279 (try_optimize_cfg): clear all AUX fields.
11280
11281 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11282 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11283 (ix86_address_cost): Be prepared for SUBREGed registers.
11284 (legitimate_address_p): Accept SUBREGed registers.
11285
11286 2002-03-29 Richard Henderson <rth@redhat.com>
11287
11288 PR target/5672
11289 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
11290
11291 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11292
11293 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11294 for aggregate and TFmode types.
11295
11296 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11297
11298 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11299
11300 2002-03-29 Richard Henderson <rth@redhat.com>
11301
11302 PR target/5886
11303 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11304 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11305
11306 2002-03-29 Richard Henderson <rth@redhat.com>
11307
11308 PR target/6041
11309 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11310 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11311 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11312 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11313 conditional.
11314 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11315
11316 2002-03-29 Dale Johannesen <dalej@apple.com>
11317
11318 * loop.c (combine_movables): Do allow combination of pseudos.
11319
11320 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
11321
11322 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11323 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11324 No functional change except ...
11325 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
11326 * doc/install.texi (*-*-freebsd*): Document port configuration.
11327
11328 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11329
11330 * Makefile.in (convert.o, calls.o, expmed.o): Update.
11331 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11332 Use new hooks.
11333 * builtin-types.def (BT_PTRMODE): Update.
11334 * c-common.c (type_for_size): Rename c_common_type_for_size.
11335 (type_for_mode): Similarly.
11336 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11337 Use new hook.
11338 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11339 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11340 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11341 Redefine.
11342 * c-typeck.c (common_type, comptypes, default_conversion):
11343 Use new hooks.
11344 * calls.c: Include langhooks.h.
11345 (emit_library_call_value_1): Use new hooks. Avoid redundant
11346 calls.
11347 * convert.c: Include langhooks.h
11348 (convert_to_pointer, convert_to_integer): Use new hooks.
11349 * except.c (init_eh): Similarly.
11350 * expmed.c: Include langhooks.h.
11351 (expand_mult_add): Use new hooks.
11352 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11353 try_casesi): Similarly.
11354 * fold-const.c (optimize_bit_field_compare, make_range,
11355 decode_field_reference, fold_truthop, fold): Similarly.
11356 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11357 put_var_into_stack): Similarly.
11358 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11359 LANG_HOOKS_TYPE_FOR_SIZE): New.
11360 (LANG_HOOKS_TYPES_INITIALIZER): Update.
11361 * langhooks.h (lang_hooks_for_types): New hooks.
11362 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11363 * tree.c (get_unwidened, get_narrower): Similarly.
11364 * tree.h (type_for_mode, type_for_size): Remove.
11365 * varasm.c (force_const_mem): Use new hooks.
11366 * utils2.c (nonbinary_modular_operation): Update.
11367 objc:
11368 * objc-act.c (handle_impent): Update.
11369 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11370 Redefine.
11371
11372 2002-03-29 Steve Ellcey <sje@cup.hp.com>
11373
11374 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11375 * config/ia64/ia64.c (basereg_operand): New.
11376 * config/ia64/ia64-protos.h (basereg_operand): Declare.
11377 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11378
11379 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11380
11381 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11382 unwind information when frame_pointer_needed.
11383 (mmix_assemble_integer): Tweak wording in comment.
11384
11385 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11386
11387 * Makefile.in (except.o): Update.
11388 * except.c: Include langhooks.h.
11389 (init_eh): Use langhook.
11390 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11391 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11392 (LANG_HOOKS_INITIALIZER): Update.
11393 * langhooks.h (lang_hooks_for_types): New.
11394 (struct lang_hooks): Add it.
11395 * tree.c (make_lang_type_fn, make_lang_type): Remove.
11396 * tree.h (make_lang_type_fn, make_lang_type): Remove.
11397 config:
11398 * alpha/alpha.c: Include langhooks.h.
11399 (alpha_build_va_list): Use langhook.
11400 * d30v/d30v.c: Include langhooks.h.
11401 (d30v_build_va_list): Use langhook.
11402 * i386/i386.c: Include langhooks.h.
11403 (ix86_build_va_list): Use langhook.
11404 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11405 * s390/s390.c: Include langhooks.h.
11406 (s390_build_va_list): Use langhook.
11407 * stormy16/stormy16.c: Include langhooks.h.
11408 (stormy16_build_va_list): Use langhook.
11409
11410 2002-03-29 Jakub Jelinek <jakub@redhat.com>
11411
11412 PR c++/5964
11413 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11414 attributes.
11415 (length): Compute variable length for branches/calls/jumps here.
11416 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11417 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11418 define branch_type attribute.
11419 (divsi3_sp32): Maximum length is 6 not 7.
11420 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11421 call_address_untyped_struct_value_sp32,
11422 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11423 * config/sparc/sparc.c (empty_delay_slot): New function.
11424 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11425 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11426
11427 2002-03-29 Jakub Jelinek <jakub@redhat.com>
11428
11429 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11430 nonzero_bits if not needed.
11431 (nonzero_bits) [XOR]: Likewise.
11432 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11433 reg_last_set_mode and mode are both MODE_INT, but not equal.
11434 (record_value_for_reg): Compute reg_last_set_nonzero_bits
11435 in nonzero_bits_mode for MODE_INT modes.
11436
11437 2002-03-28 Richard Henderson <rth@redhat.com>
11438
11439 PR target/5715
11440 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11441 to GAS. Correct drift between alternatives.
11442
11443 2002-03-28 Richard Henderson <rth@redhat.com>
11444
11445 PR target/6087
11446 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11447
11448 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
11449
11450 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11451 emulation to the linker.
11452
11453 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
11454
11455 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11456 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11457
11458 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
11459
11460 * combine.c (simplify_and_const_int): Make sure to apply mask
11461 when force_to_mode returns a constant integer. PR3311.
11462
11463 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11464
11465 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11466
11467 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11468
11469 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11470 and Objective-C Dialect Options.
11471
11472 2002-03-28 Richard Henderson <rth@redhat.com>
11473
11474 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11475 comparison should be done vs !=0 not >0 return code. Tidy cases.
11476
11477 2002-03-28 Richard Henderson <rth@redhat.com>
11478
11479 * c-decl.c (finish_function): New arg can_defer_p. Pass it
11480 on to c_expand_body.
11481 * c-tree.h (finish_function): Update decl.
11482 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11483
11484 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
11485
11486 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11487
11488 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
11489
11490 * rtlanal.c: Include flags.h
11491 (may_trap_p): Do not mark FP operations if trapping
11492 if !flag_trapping_math
11493 * Makefile.in (rtlanal.o): Add dependency on flag.h
11494 * ifcvt.c (noce_operand_ok): Avoid the lameness.
11495
11496 2002-03-27 Zack Weinberg <zack@codesourcery.com>
11497
11498 * mips.md: Use dconst1, not 1.0, as first argument of
11499 REAL_VALUE_LDEXP. Don't use union real_extract.
11500
11501 2002-03-28 Alan Modra <amodra@bigpond.net.au>
11502
11503 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11504 rather than $target. Heed program_prefix and
11505 program_transform_name. Search for gas in cross-compiler case too.
11506 "test -x" rather than "test -f".
11507 (gcc_cv_ld): Likewise.
11508 (gcc_cv_nm): Heed program_prefix and program_transform_name.
11509 (gcc_cv_objdump): Likewise.
11510 * configure: Regenerate.
11511
11512 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11513
11514 * Makefile.in (attribs.o): Update.
11515 * attribs.c: Include langhooks.h.
11516 (decl_attributes): Use langhook.
11517 * c-decl.c (insert_default_attributes): Rename.
11518 * c-tree.h (c_insert_default_attributes): New.
11519 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11520 (LANG_HOOKS_INITIALIZER): Update.
11521 * langhooks.h (struct lang_hooks): New hook.
11522 * tree.h (insert_default_attributes): Remove.
11523 objc:
11524 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11525
11526 2002-03-27 Andreas Schwab <schwab@suse.de>
11527
11528 * config/i386/i386.c (classify_argument): Also check for
11529 QUAL_UNION_TYPE.
11530
11531 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11532
11533 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11534 any more.
11535
11536 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
11537
11538 * i960.md (ret): Set PC.
11539 (nonlocal_goto): Fix expander.
11540 * builtins.c (epxand_builin_longjmp): Check that we've emitted
11541 some jump or call.
11542
11543 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
11544
11545 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11546 of libcall regions.
11547
11548 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11549
11550 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11551 assigning to BLOCK_FOR_INSN directly.
11552
11553 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
11554
11555 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11556
11557 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11558
11559 * c-common.c (c_expand_expr): Fix prototype.
11560 * c-common.h (c_expand_expr): Always declare, update.
11561 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11562 * c-objc-common.c (c_objc_common_init): No global hook.
11563 * expr.c (expand_expr): Use langhook.
11564 * expr.h (enum expand_modifier): Conditionally declare.
11565 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11566 (LANG_HOOKS_INITIALIZER): Update.
11567 * langhooks.c (lhd_expand_expr): New.
11568 * langhooks.h (struct lang_hooks): New hook.
11569 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11570 (lang_independent_init): Don't default hook.
11571 objc:
11572 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11573
11574 2002-03-27 Richard Henderson <rth@redhat.com>
11575
11576 PR target/6054
11577 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11578 TARGET_CONST_GP. Simplify conditions.
11579
11580 2002-03-27 Richard Henderson <rth@redhat.com>
11581
11582 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11583 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11584 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11585
11586 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
11587
11588 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11589 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11590 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11591 Remove unnecessary masks.
11592 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11593 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11594 -mwindows, -mdll switches and their negations.
11595
11596 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11597
11598 * gcc-common.c (lang_mark_false_label_stack): Remove.
11599 * ggc.h (lang_mark_false_label_stack): Similarly.
11600
11601 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
11602
11603 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11604
11605 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11606 or __rtems_ is defined.
11607
11608 2002-03-26 Richard Henderson <rth@redhat.com>
11609
11610 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11611 if a non-trivial load was emitted.
11612 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
11613 in high+extra+low case.
11614
11615 2002-03-26 Richard Henderson <rth@redhat.com>
11616
11617 * config.gcc (sparc*-solaris): Use float_format=sparc.
11618
11619 2002-03-26 Richard Henderson <rth@redhat.com>
11620
11621 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11622 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11623 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11624 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11625 (WINT_TYPE_SIZE): Fix at 32.
11626
11627 2002-03-26 Richard Henderson <rth@redhat.com>
11628
11629 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11630 until after eh landing pad generation.
11631 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11632 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11633
11634 2002-03-26 Richard Henderson <rth@redhat.com>
11635
11636 * expr.h (ADD_PARM_SIZE): One more convert for INC.
11637
11638 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
11639
11640 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
11641 and warning switches.
11642 (cc1_options): Likewise.
11643
11644 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
11645
11646 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11647 Restore more of the signal context. Set no_reg_stack_frame.
11648 * config/ia64/unwind-ia64.c (unw_state_record):
11649 Add no_reg_stack_frame, comments.
11650 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11651 (uw_update_context): Adjust bsp when unwinding from leaf,
11652 but not signal frame.
11653
11654 2002-03-26 David Edelsohn <edelsohn@gnu.org>
11655
11656 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11657
11658 2002-03-26 Bob Wilson <bob.wilson@acm.org>
11659
11660 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11661
11662 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
11663
11664 PR target/5621
11665 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11666 "Add a pool_range attribute", which was lost during the ARM/Thumb
11667 merge.
11668
11669 2002-03-26 Bob Wilson <bob.wilson@acm.org>
11670
11671 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11672 a register into the MAC16 accumulator.
11673
11674 2002-03-26 Andrew Cagney <ac131313@redhat.com>
11675
11676 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11677 (Warning Options): Document -Wswitch-enum.
11678 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
11679 -Wswitch.
11680 (warn_switch_enum): Define variables.
11681 * flags.h (warn_switch_enum): Declare variables.
11682 * stmt.c (expand_end_case_type): When warn_switch_enum /
11683 -Wswitch-enum, perform switch checks.
11684 Fix PR c/5044.
11685
11686 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
11687
11688 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11689 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11690 (reload_muladdsi_compare0_scratch): Delete.
11691
11692 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
11693
11694 * doc/install.texi (*-*-freebsd*): Update.
11695
11696 2002-03-26 Richard Henderson <rth@redhat.com>
11697
11698 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11699 (SUB_PARM_SIZE): Cast DEC to ssizetype.
11700
11701 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11702 types from the normal argument frame.
11703
11704 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11705 variable sized objects by reference.
11706 (sparc_va_arg): Receive them by reference too.
11707
11708 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
11709
11710 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
11711 code to not restoring global registers.
11712
11713 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11714
11715 * Makefile.in (ggc-common.o): Update.
11716 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11717 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11718 * c-tree.h (c_mark_tree): New.
11719 * ggc-common.c: Include langhooks.h.
11720 (gcc_mark_trees): Use new langhook.
11721 * ggc-callbacks.c: Delete file.
11722 * ggc.h (lang_mark_tree): Remove.
11723 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11724 (LANG_HOOKS_INITIALIZER): Update.
11725 * langhooks.h (struct lang_hooks): New hook.
11726 objc:
11727 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11728
11729 2002-03-25 Zack Weinberg <zack@codesourcery.com>
11730
11731 * doc/cpp.texi: Exclude entire Top node from printed manual.
11732 Move option index after directive index. Insert page breaks
11733 before GFDL and concept index. Index environment variables
11734 with command line options.
11735 * doc/cppenv.texi: Use @vtable for environment variable list.
11736 Add paragraph explaining semantics of empty elements in path
11737 variables. Exclude a cross-reference to Fishkill from the
11738 manpage. Remove an unnecessary cross-reference of the entry
11739 right above the referer. Don't use @anchor in text that goes
11740 into manpage.
11741 * doc/cppopts.texi: Cross-reference the environment variables
11742 section, not the specific environment variable, for consistency.
11743
11744 2002-03-25 Richard Henderson <rth@redhat.com>
11745
11746 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11747 anywhere in the block. Don't refer to insns that have been
11748 removed from the chain. Iterate backward through the new insns.
11749 Don't refer to edges that have been removed.
11750
11751 2002-03-26 Alan Modra <amodra@bigpond.net.au>
11752
11753 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11754 test for overflow of constant.
11755
11756 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
11757
11758 PR target/2623
11759 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11760 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11761 these patterns on arm_archv4.
11762
11763 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
11764
11765 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11766 int".
11767
11768 2002-03-25 Zack Weinberg <zack@codesourcery.com>
11769
11770 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
11771 float_handled, float_handler, float_signal, set_float_handler,
11772 and do_float_handler. Set handler for SIGFPE to crash_signal.
11773 * toplev.h: Don't prototype do_float_handler.
11774
11775 * c-lex.c: Fold parse_float into lex_number. Make warning
11776 about portability of hex float constants more informative, and
11777 don't issue it on top of a syntax error.
11778 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11779 their callers.
11780 * real.h: Define REAL_VALUE_ABS here...
11781 * simplify-rtx.c: ... not here. Fold check_fold_consts,
11782 simplify_unary_real, simplify_binary_real, and
11783 simplify_binary_is2orm1 into their callers.
11784 * tree.c: Fold build_real_from_int_cst_1 into caller.
11785
11786 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11787
11788 * tsystem.h: Include float.h here...
11789 * libgcc2.c: ... not here.
11790
11791 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
11792
11793 Fixes for: PR bootstrap/3591, target/5676
11794 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11795 defined. Do not disable exceptions or rtti.
11796 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11797 mcore.h. Disable exceptions and rtti, since they are not
11798 supported by EPOC.
11799
11800 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11801
11802 * c-decl.c (maybe_build_cleanup): Remove.
11803 * expr.c (expand_expr): Use langhook.
11804 * langhooks-def.h (lhd_return_null_tree,
11805 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11806 (LANGHOOKS_INITIALIZER): Update.
11807 * langhooks.c (lhd_return_null_tree): New.
11808 * langhooks.h (struct lang_hooks): New hook.
11809 * tree-inline.c (initialize_inlined_parameters): Use langhook.
11810 * tree.h (maybe_build_cleanup): Remove.
11811
11812 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11813
11814 * regrename.c (build_def_use): Move recog_memoized
11815 before extract_insn.
11816
11817 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11818
11819 PR target/6043
11820 * expr.c (emit_group_store): Handle storing into CONCAT.
11821
11822 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11823
11824 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11825 corresponding MATCH_DUP.
11826
11827 2002-03-24 Richard Henderson <rth@redhat.com>
11828
11829 * unroll.c (unroll_loop): Zero label_map.
11830
11831 * gcse.c: Include except.h.
11832 * Makefile.in (gcse.o): Update.
11833
11834 2002-03-24 Richard Henderson <rth@redhat.com>
11835
11836 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11837 Do resolve_unique_section before shared data clause.
11838
11839 2002-03-24 Richard Henderson <rth@redhat.com>
11840
11841 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11842
11843 2002-03-24 Richard Henderson <rth@redhat.com>
11844
11845 * recog.c (peephole2_optimize): Split blocks when EH insns are
11846 generated in the middle of a block. Do global life update if
11847 zapped EH edges.
11848
11849 2002-03-24 Richard Henderson <rth@redhat.com>
11850
11851 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11852
11853 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11854
11855 preprocessor/3951
11856 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
11857 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11858 (init_dependency_output): Don't make no_output decision here.
11859
11860 2002-03-24 Andrew Cagney <ac131313@redhat.com>
11861
11862 * stmt.c (check_for_full_enumeration_handling): Remove tests of
11863 warn_switch. Update description.
11864 (expand_end_case_type): Call check_for_full_enumeration_handling
11865 when warn_switch.
11866
11867 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11868
11869 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11870 (m68hc11_split_move): Call it to see if the source and destination
11871 operands use the same direction auto inc/dec mode, otherwise make the
11872 source an offsetable memory operand and generate an add.
11873
11874 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11875
11876 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11877 register for operand 2.
11878 ("*subsi3_zero_extendqi"): Likewise.
11879 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11880 bits so that it is compatible with a pop.
11881 ("*andhi3_gen"): Likewise.
11882 ("xorhi3"): Likewise.
11883
11884 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11885
11886 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11887 -pedantic here...
11888 (cpp_post_options): ... not here.
11889
11890 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11891 Aldy Hernandez <aldyh@redhat.com>
11892
11893 Removal of separate preprocessor cpp0.
11894
11895 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11896 cpp0, install-common): Update.
11897 * c-common.c (flag_preprocess_only): New.
11898 (c_common_init): Preprocess for -E.
11899 * c-common.h (flag_preprocess_only): New.
11900 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11901 * c-objc-common.c (c_init_decl_processing): Exit quickly
11902 for NULL return from c_common_init.
11903 * cpplib.h (cpp_preprocess_file): New.
11904 * cppmain.c (main, general_init, pfile, progname): Remove.
11905 (do_preprocessing): Rename cpp_preprocess_file, don't call
11906 cpp_finish. Don't close stdout here.
11907 (setup_callbacks): Update prototype.
11908 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11909 Update.
11910 * tradcpp.c (main): Ignore -quiet.
11911 objc:
11912 * lang-specs.h (default_compilers): Preprocess with cc1obj.
11913
11914 2002-03-24 Richard Henderson <rth@redhat.com>
11915
11916 PR optimization/5742
11917 * machmode.def: Add inner mode field to complex modes.
11918 * config/mips/mips.c (mips_function_value): Always define. Add
11919 new argument to handle libcalls.
11920 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11921 (FUNCTION_VALUE): Likewise.
11922 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11923 * config/mips/mips-protos.h: Update.
11924
11925 2002-03-23 Richard Henderson <rth@redhat.com>
11926
11927 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11928 * config/sparc/sparc-protos.h: Update.
11929 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11930
11931 2002-03-23 Richard Henderson <rth@redhat.com>
11932
11933 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11934 _start or _init begins the text segment.
11935
11936 2002-03-23 David Edelsohn <edelsohn@gnu.org>
11937
11938 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
11939 not HOST_WIDEST_INT.
11940 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11941
11942 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
11943
11944 PR java/5489
11945 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11946 operand argument to output_return_instruction.
11947 * arm.c (arm_print_operand, case 'd'): If the operand is
11948 const_true_rtx then just return.
11949 (arm_print_operand, case 'D'): If the operand is const_true_rtx
11950 then abort.
11951
11952 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11953
11954 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11955 (Warning Options): Document -Wswitch-default.
11956 * toplev.c (W_options): Add -Wswitch-default. Update comment on
11957 -Wswitch.
11958 (warn_switch_default): Define variable.
11959 (warn_switch): Update comment.
11960 * flags.h (warn_switch_default): Declare variable.
11961 (warn_switch): Update comment.
11962 * stmt.c (expand_end_case): Check for and, when
11963 warn_switch_no_default, warn of a missing default case.
11964
11965 2002-03-23 Alan Modra <amodra@bigpond.net.au>
11966
11967 * real.h (N): Special case 128 bit doubles.
11968
11969 * combine.c (simplify_comparison): When widening modes, ignore
11970 sign extension on CONST_INTs.
11971
11972 2002-03-22 Bob Wilson <bob.wilson@acm.org>
11973
11974 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11975 passed to adjust_address. Fix comment formatting.
11976
11977
11978 2002-03-22 Zack Weinberg <zack@codesourcery.com>
11979
11980 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11981 Always make REAL_VALUE_TYPE a struct containing an array of
11982 HOST_WIDE_INT, not a double. Tidy up the code deciding how
11983 big it is. Don't declare or use union real_extract.
11984
11985 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11986 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11987 (print_operand), config/arm/arm.c (output_move_double),
11988 config/arm/arm.md (consttable_4, consttable_8),
11989 config/romp/romp.c (output_fpops), config/s390/s390.h
11990 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11991 (xtensa_output_literal): Don't use union real_extract.
11992
11993 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11994 (sfmode_constant_to_ulong), config/ns32k/merlin.h
11995 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11996 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11997 (PRINT_OPERAND): Don't use local version of union
11998 real_extract.
11999
12000 * config/convex/convex.c (check_float_value), config/vax/vax.c
12001 (vax_float_literal), config/m88k/m88k.md (divdf3),
12002 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12003 config/pdp11/pdp11.c (output_move_quad): Don't do host
12004 arithmetic on target floating point quantities.
12005
12006 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12007 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12008
12009 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12010 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12011
12012 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12013 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12014 INFINITY.
12015 * print-rtl.c (print_rtx): Disable code which needs
12016 floating-point emulator.
12017 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12018 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12019 depending on HOST_FLOAT_FORMAT to be defined properly.
12020
12021 * config/1750a/1750a.c (get_double, float_label): Delete.
12022 (print_operand): Delete huge commented-out chunk. Use
12023 REAL_VALUE_TO_DECIMAL.
12024 * config/1750a/1750a-protos.h: Delete prototypes of deleted
12025 functions.
12026 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12027 IEEE_FLOAT_FORMAT.
12028 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12029 Use REAL_VALUE_TO_DECIMAL as ELF version does.
12030 * config/m88k/m88k.c (real_power_of_2_operand,
12031 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12032 real_extract out of the union; run the input through
12033 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12034 from that into the union.
12035 * config/pdp11/pdp11.c (output_move_double): Rearrange
12036 parentheses to make automatic indenter happy.
12037
12038 * doc/tm.texi (Cross-compilation): Rename node to "Floating
12039 Point" and rewrite to describe current situation. Also adjust
12040 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12041 match code.
12042 * doc/rtl.texi: Adjust cross reference.
12043
12044 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12045
12046 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12047 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12048 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12049 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12050 prevent use of sp as a reload register.
12051 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12052 non_acc_reg_operand.
12053 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12054 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12055 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12056 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12057
12058 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12059
12060 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12061 * cpplex.c (unterminated): Delete.
12062 (parse_string): No string literal may extend over multiple
12063 lines. Suppress the error when preprocessing assembly.
12064 * cppmain.c (scan_translation_unit): Strings are single-line.
12065
12066 * doc/cpp.texi: Update to match.
12067
12068 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12069
12070 PR optimization/5854
12071 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
12072 Shut up warnings.
12073 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
12074 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
12075 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
12076 const0 if scratch register was not allocated.
12077 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
12078 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
12079 with GEN_INT (...).
12080 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
12081 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
12082 with GEN_INT (...) everywhere. Remove constraints in define_split
12083 patterns.
12084 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
12085 require scratch register for setting 0 into regs/non-pushable memory.
12086
12087 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12088
12089 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
12090 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
12091
12092 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
12093
12094 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
12095 * cppinit.c (cpp_create_reader): On by default.
12096 (cpp_handle_option): Handle -W[no-]endif-labels.
12097 (cpp_post_options): Also enable if -pedantic.
12098 * cpplib.c (do_else): Use it.
12099 (do_endif): Likewise.
12100 * doc/cppopts.texi: Document new option.
12101 * doc/invoke.texi: Document new option.
12102
12103 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
12104
12105 * config/i386/i386.c, config/i386/i386.md: Change all occurences
12106 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
12107
12108 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12109
12110 * flow.c (calculate_global_regs_live): Clear aux fields of
12111 ENTRY and EXIT.
12112
12113 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12114
12115 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
12116 REG or MEM subregs, pass rtx * instead of rtx to it.
12117 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
12118 rtx * instead of rtx to alter_subreg.
12119 * config/m32r/m32r.c (gen_split_move_double): Likewise.
12120 * config/pj/pj.c (pj_output_rval): Likewise.
12121
12122 2002-03-22 Richard Henderson <rth@redhat.com>
12123
12124 PR target/3177
12125 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
12126 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
12127 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
12128 (ia64_expand_prologue): Look at int_regs, not words, for number
12129 of incomming int regs.
12130
12131 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
12132
12133 * expr.c (expand_expr): A RESULT_DECL is part of a call.
12134
12135 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
12136
12137 * toplev.c (flag_loop_optimize, flag_crossjumping):
12138 New static variables.
12139 (rest_of_compilation): Conditionalize crossjumping and
12140 loop optimizer.
12141 (parse_options_and_default_flags): Default loop_optimize and
12142 crossjumping.
12143 (lang_independent_options): Add -fcrossjumping and -floop-optimize
12144 * invoke.texi (crossjumping, loop-optimize): Document.
12145
12146 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12147
12148 * real.c (eiisneg): Move outside #ifdef NANS.
12149
12150 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
12151
12152 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
12153 frequencies match; avoid match on different loop depths.
12154 (try_crossjump_to_bb): Kill tests that no longer brings time
12155 savings.
12156 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
12157 updating code.
12158 (split_edge): Likewise.
12159
12160 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
12161 variable.
12162
12163 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
12164 * cfgrtl.c: Include insn-config.h
12165 (split_block) Dirtify block in presence of conditional execution
12166
12167 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12168
12169 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
12170 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
12171 (function_arg): Constify CUMULATIVE_ARGS.
12172 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
12173 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
12174 (UNITS_PER_DOUBLE): New macro.
12175 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
12176 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
12177 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
12178 fp_regs and stack_words.
12179 (EABI_FLOAT_VARARGS_P): New macro.
12180 * config/mips/mips.c (struct mips_arg_info): New.
12181 (mips_arg_info): New function.
12182 (function_arg_advance): Use it. Add adjustment instructions here
12183 rather than in function_arg.
12184 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
12185 for VOIDmode at the beginning of the function.
12186 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
12187 (function_arg_pass_by_reference): Likewise.
12188 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12189 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12190 (mips_va_start): Likewise. Use the new stack_words field of
12191 CUMULATIVE_ARGS to set up overflow area. Reformat.
12192 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
12193 doubles and other types, aligning the overflow pointer for non-doubles
12194 too. Remove some code duplication. Replace hard-coded constants.
12195
12196 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12197
12198 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12199 (CLASS_UNITS): Undefine.
12200 (CLASS_MAX_NREGS): Use FP_INC.
12201 * config/mips/mips.c (compute_frame_size): Likewise.
12202 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12203
12204 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12205
12206 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12207 prototype, and handle lexing numbers and identifiers.
12208 (parse_identifier): Update to new form of parse_slow.
12209 (parse_number): Fast path only, use parse_slow otherwise.
12210 (_cpp_lex_direct): Update calls to parse_number.
12211
12212 2002-03-21 DJ Delorie <dj@redhat.com>
12213
12214 * bb-reorder.c (make_reorder_chain_1): Protect against
12215 when redundant edges are omitted.
12216 * predict.c (dump_prediction): Likewise.
12217
12218 2002-03-21 Richard Henderson <rth@redhat.com>
12219
12220 PR target/5996
12221 * fixinc/inclhack.def (solaris_stdio_tag): New.
12222 * fixinc/fixincl.x: Regenerate.
12223
12224 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12225
12226 PR c/5597
12227 * c-typeck.c (process_init_element): Flag non-static
12228 initialization of a flexible array member as illegal.
12229
12230 2002-03-22 Alan Modra <amodra@bigpond.net.au>
12231
12232 * config/rs6000/t-linux64: New.
12233 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12234 t-ppccomm. Use t-rs6000 and t-linux64.
12235 (powerpc64-*-gnu* <tmake_file>): Likewise.
12236 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12237 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12238 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
12239
12240 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
12241
12242 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12243 flag_really_no_inline instead of optimize == 0.
12244
12245 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12246
12247 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12248
12249 * flags.h (flag_really_no_inline): New.
12250
12251 * c-common.c (c_common_post_options): Initialize
12252 flag_really_no_inline.
12253
12254 * toplev.c (flag_really_no_inline): New.
12255
12256 2002-03-21 Jakub Jelinek <jakub@redhat.com>
12257
12258 * config/avr/avr.md (length): Fix length computation for
12259 conditional branches.
12260
12261 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
12262
12263 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12264 sdbout.o, profile.o): Update.
12265 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12266 langhook.
12267 * c-common.h (gettags): Move here from tree.h.
12268 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12269 insert_block, getdecls, kept_level_p, global_bindings_p): New.
12270 * dbxout.c (dbxout_init): Use getdecls langhook.
12271 * expr.c (expand_expr): Use insert_block langhook.
12272 * fold-const.c: Include langhooks.h.
12273 (fold_range_test, fold_binary_op_with_conditional_arg,
12274 fold): Use global_bindings_p langhook.
12275 * integrate.c (expand_inline_function): Use insert_block langhook.
12276 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12277 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12278 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12279 LANG_HOOKS_GETDECLS): New.
12280 (LANG_HOOKS_INITIALIZER): Update.
12281 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12282 langhook.
12283 * langhooks.h (struct lang_hooks_for_decls): New.
12284 (struct lang_hooks): Update.
12285 * profile.c: Include langhooks.h.
12286 (output_func_start_profiler): Use new langhooks.
12287 * sdbout.c: Include langhooks.h.
12288 (sdbout_init, sdbout_finish): Use getdecls langhook.
12289 * stmt.c: Include langhooks.h.
12290 (expand_fixup, fixup_gotos): Use new langhooks.
12291 * stor-layout.c: Include langhooks.h.
12292 (variable_size): Use global_bindings_p langhook.
12293 * toplev.c (compile_file): Use getdecls langhook.
12294 * tree-inline.c (remap_block): Use insert_block langhook.
12295 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12296 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12297
12298 2002-03-21 Richard Henderson <rth@redhat.com>
12299
12300 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12301 constants in .data when -fpic.
12302
12303 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12304
12305 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12306 where appropriate.
12307
12308 2002-03-21 Tom Tromey <tromey@redhat.com>
12309
12310 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
12311
12312 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12313
12314 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
12315
12316 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12317
12318 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12319 Richard Henderson <rth@redhat.com>
12320
12321 PR c/5354
12322 * c-common.c (c_expand_expr): Preserve result of a statement
12323 expression if needed.
12324
12325 2002-03-21 Jakub Jelinek <jakub@redhat.com>
12326
12327 PR bootstrap/4195
12328 * genrecog.c (maybe_both_true_mode): Remove.
12329 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12330 * machmode.def (Pmode): Likewise.
12331
12332 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
12333
12334 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12335 (nonlocal_mentioned_p_1): New function.
12336 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12337 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12338 (mark_constant_function): Recognize pure functions.
12339 * rtl.h (global_reg_mentioned_p): New prototype.
12340 * rtlanal.c (global_reg_mentioned_p,
12341 global_reg_mentioned_p_1): New function.
12342
12343 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12344
12345 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12346 UNIX assert.h.
12347 * fixinc/fixincl.x: Regenerate.
12348
12349 2002-03-20 Jason Merrill <jason@redhat.com>
12350
12351 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12352
12353 2002-03-20 Michael Meissner <meissner@redhat.com>
12354
12355 * doc/invoke.texi (Optimize Options): Document that -O2 sets
12356 -fstrict-aliasing.
12357
12358 2002-03-20 Bob Wilson <bob.wilson@acm.org>
12359
12360 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12361 ".literal_position" directive before the constant pool.
12362
12363 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12364
12365 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12366 Add Craig Rodrigues.
12367 Add Brad Lucier to testers.
12368
12369 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12370
12371 PR target/4792
12372 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12373 to if_then_else.
12374 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12375 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12376 instead of insn_extract.
12377
12378 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12379
12380 PR bootstrap/4192
12381 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
12382
12383 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12384 stmt if some case has been output.
12385
12386 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12387
12388 PR c/5972
12389 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12390 movsfcc_1, movdfcc_1): Add %O2.
12391 * config/i386/i386.c (print_operand): Handle %ON.
12392 Print . before float condition codes in Sun as cmov syntax.
12393 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12394 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12395 no longer true.
12396
12397 2002-03-20 Philip Blundell <pb@nexus.co.uk>
12398
12399 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12400 return instruction if PC was popped.
12401
12402 2002-03-20 Bob Wilson <bob.wilson@acm.org>
12403
12404 * config/xtensa/xtensa.md: Remove unused type attributes.
12405 (adddi_carry, subddi_carry): Change type attribute to "multi".
12406
12407 2002-03-19 Dale Johannesen <dalej@apple.com>
12408
12409 PR optimization/5999, middle-end/5731
12410 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12411 multiplications by reciprocals.
12412
12413 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
12414
12415 * Makefile.in: Update.
12416 * c-common.c: Include langhooks.h.
12417 (inline_forbidden_p): Use new hook.
12418 * diagnostic.c: Include langhooks.h.
12419 (format_with_decl, announce_function,
12420 default_print_error_function): Use new hook.
12421 * dwarf2out.c (dwarf2_name): Use new hook.
12422 * function.c: Include langhooks.h.
12423 (init_function_start): Use new hook.
12424 * langhooks-def.h (lhd_decl_printable_name): New.
12425 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12426 (LANGHOOKS_INITIALIZER): Update.
12427 * langhooks.c (lhd_decl_printable_name): New.
12428 * langhooks.h (struct lang_hooks): New hook.
12429 * toplev.c (decl_name, decl_printable_name): Remove.
12430 (open_dump_file): Use new hook.
12431 (process_options): Remove old hook.
12432 * tree.h (decl_printable_name): Remove.
12433 objc:
12434 * objc-act.c (objc_init): Remove old hook.
12435 (objc_printable_name): Export.
12436 * objc-act.h (objc_printable_name): New.
12437 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12438
12439 2002-03-19 Jim Blandy <jimb@redhat.com>
12440
12441 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12442 the start_source_file debug hook, not the current line number.
12443
12444 2002-03-19 Richard Henderson <rth@redhat.com>
12445
12446 * flow.c (EH_USES): Provide default.
12447 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12448 * doc/tm.texi (EH_USES): New.
12449
12450 * config/ia64/ia64.c (ia64_eh_uses): New.
12451 * config/ia64/ia64-protos.h: Update.
12452 * config/ia64/ia64.h (EH_USES): New.
12453
12454 2002-03-19 Richard Henderson <rth@redhat.com>
12455
12456 * varasm.c (output_constant_def): Fix stupid typo.
12457
12458 2002-03-19 Richard Henderson <rth@redhat.com>
12459
12460 PR 5879
12461 * except.c (current_function_has_exception_handlers): New.
12462 * except.h: Declare it.
12463 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12464 Combine tests that disable all sibcalls for the function.
12465
12466 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
12467
12468 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12469 for INTEGER_CST.
12470
12471 2002-03-19 Richard Henderson <rth@redhat.com>
12472
12473 PR 5977, 5991
12474 * config/ia64/ia64.c: Revert 2002-03-01 patch.
12475 * config/ia64/ia64.h (INIT_EXPANDERS): New.
12476
12477 2002-03-19 Jim Blandy <jimb@redhat.com>
12478
12479 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12480 name, even if the replacement list contains no tokens, as required
12481 by Dwarf.
12482
12483 2002-03-19 Jason Merrill <jason@redhat.com>
12484
12485 * varasm.c (globalize_decl): Get the name from the RTL, not
12486 DECL_ASSEMBLER_NAME.
12487
12488 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12489
12490 2002-03-19 Bob Wilson <bob.wilson@acm.org>
12491
12492 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12493 subdi_carry): Define.
12494
12495 2002-03-19 David Edelsohn <edelsohn@gnu.org>
12496
12497 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12498 about -fpic/-fPIC if extra_warnings set.
12499
12500 2002-03-19 David Edelsohn <edelsohn@gnu.org>
12501
12502 * expr.c (expand_expr): Sign-extend CONST_INT generated from
12503 TREE_STRING_POINTER.
12504 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
12505
12506 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12507
12508 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12509 in favor of SP if FRAME_POINTER_REQUIRED is false.
12510
12511 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
12512
12513 * emit-rtl.c (gen_int_mode): New function.
12514 * rtl.h: Prototype for it.
12515 * combine.c (make_extraction, simplify_comparison), expmed.c
12516 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12517 (convert_modes, store_field), optabs.c (expand_fix),
12518 simplify-rtx.c (neg_const_int, simplify_unary_real),
12519
12520 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12521 Use it instead of GEN_INT (trunc_int_for_mode (...)).
12522
12523 2002-03-19 Jakub Jelinek <jakub@redhat.com>
12524
12525 PR c/5656
12526 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12527 convert_parm_for_inlining.
12528 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12529 Define.
12530 * langhooks-def.h: Likewise.
12531 * objc/objc-lang.c: Likewise.
12532 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12533 function.
12534 * tree-inline.c (initialize_inlined_parameters):
12535 Call convert_parm_for_inlining lang hook if needed.
12536 * c-typeck.c (c_convert_parm_for_inlining): New function.
12537 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12538
12539 2002-03-18 Mark Mitchell <mark@codesourcery.com>
12540
12541 * calls.c (precompute_arguments): Do not assume that temporaries
12542 can be destroyed after expanding the argument.
12543 (expand_call): Likewise.
12544
12545 2002-03-15 Eric Christopher <echristo@redhat.com>
12546
12547 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12548 Fix register preference on last change.
12549 * config/mips/mips.c (mips_return_in_memory): New function.
12550 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12551 * config/mips/mips-protos.h: Declare.
12552 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12553 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12554
12555 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
12556
12557 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12558 a register too.
12559 (anddi3, iorsi3): Likewise.
12560
12561 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12562 use %gprel for symbols that are going to be placed in linkonce
12563 sections.
12564
12565 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12566 RETURN_ADDRESS_POINTER_REGNUM to $ra.
12567 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12568 not needed. Disregard leaf_function_p().
12569 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12570 mips16 frame pointer.
12571 * config/mips/mips.md (store ra): Only to small SP offsets.
12572 2001-08-22 Graham Stott <grahams@redhat.com>
12573 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12574 return a REG rtx for the return address register.
12575
12576 2002-03-18 Bob Wilson <bob.wilson@acm.org>
12577
12578 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12579 constant-pool addresses as "mode-dependent".
12580 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12581
12582 2002-03-18 Jakub Jelinek <jakub@redhat.com>
12583
12584 PR target/5740
12585 * expr.c (emit_group_load): Use extract_bit_field if
12586 needed for CONCAT arguments.
12587
12588 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
12589
12590 PR target/4863
12591 * arm.md (tablejump): Make this a define_expand. For PIC add the
12592 offset to the base of the table.
12593 (thumb_tablejump): Matcher for Thumb tablejump insn.
12594 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12595 as the difference of two labels.
12596 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12597 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12598 tables in the code.
12599 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12600 * arm.c (get_jump_table_size): If the table is not in the text
12601 section, return zero.
12602
12603 2002-03-18 Bernd Schmidt <bernds@redhat.com>
12604
12605 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12606 of gen_rtx_SUBREG.
12607 (arm_reload_out_hi): Use gen_lowpart instead of
12608 gen_rtx_SUBREG to access QImode components.
12609 * config/arm/arm.md: Disable zero_extend split for QImode
12610 subregs in BIG_ENDIAN mode.
12611 (storehi_bigend): Match use of least significant byte.
12612 (storeinthi): Remove extraneous SUBREG.
12613 Add missing construction of operands[2].
12614 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12615 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12616 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12617
12618 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
12619
12620 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12621 any_operand.
12622
12623 2002-03-17 Richard Henderson <rth@redhat.com>
12624
12625 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12626 explicitly.
12627
12628 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12629
12630 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12631 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12632
12633 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12634
12635 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12636
12637 * predict.c (estimate_bb_frequencies): Delete unused variables.
12638
12639 2002-03-17 Richard Henderson <rth@redhat.com>
12640
12641 * config/ia64/ia64.c (ia64_attribute_table): Move before
12642 targetm definition. Make static.
12643
12644 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12645
12646 * c-common.h (yyparse, c_common_parse_file): New.
12647 * c-lang.c: Include c-common.h.
12648 (LANG_HOOKS_PARSE_FILE): Redefine.
12649 * c-lex.c: Include c-common.h.
12650 (yyparse): Rename c_common_parse_file. Call yyparse.
12651 * c-parse.in (yyparse): Remove macro.
12652 * c-tree.h (yyparse_1): Remove.
12653 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12654 (LANG_HOOKS_INITIALIZER): Update.
12655 * langhooks.h (struct lang_hoooks): New hook parse_file.
12656 * toplev.c (compile_file): Use parse_file hook.
12657 * tree.h (yyparse): Remove.
12658 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
12659
12660 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12661
12662 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12663 float_truncate, not fix.
12664 ("*truncdfsf2_real"): Ditto.
12665 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12666
12667 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12668
12669 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
12670
12671 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12672 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
12673 where appropriate. Make the second reference to
12674 leaf_function_p a function call, as intended. Reindented.
12675
12676 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12677 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12678
12679 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12680 add register to non-constant into sp.
12681
12682 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12683 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12684 (mips16_gp_pseudo_rtx): Lose.
12685 (INIT_EXPANDERS): Deleted.
12686 * config/mips/mips.c (mips_init_machine_status): New.
12687 (mips_free_machine_status): New.
12688 (mips_mark_machine_status): New.
12689 (override_options): Set them.
12690 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12691 (struct machine_function): ... new. Replaced all references.
12692 (mips_add_gc_roots): Don't mark them.
12693 (embedded_pic_fnaddr_reg): New, extracted from...
12694 (embedded_pic_offset): ... here.
12695 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12696 (movsi): Likewise.
12697
12698 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12699
12700 * cppinit.c: Revert -MD removal.
12701
12702 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12703
12704 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12705 soft registers by default for 68HC12.
12706 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12707 when compiling with -fomit-frame-pointer.
12708 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12709 (expand_epilogue): Likewise.
12710 (m68hc11_gen_rotate): Use exg when rotating by 8.
12711
12712 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12713
12714 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12715 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12716 (splits): Remove unused add splits.
12717 ("*addhi3_68hc12"): Tune constraints.
12718 ("addhi_sp"): Try to use X instead of Y in all cases and if the
12719 constant fits in 8-bits and D is dead use abx/aby instructions.
12720 ("*addhi3"): Remove extern declaration of ix_reg.
12721 ("*subsi3"): Optimize and provide new split.
12722 ("subhi3"): Cleanup.
12723 ("*subhi3_sp"): Avoid saving X if we know it is dead.
12724 (arith splits): For 68hc12 save the address register on the stack
12725 and do the arithmetic operation with a pop.
12726
12727 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12728
12729 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12730 allocating QImode in address registers.
12731 ("*movqi_m68hc11"): Likewise.
12732
12733 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
12734
12735 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12736
12737 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12738
12739 * cppinit.c (print_help): Display -MD and -MMD.
12740 Don't display usage string. Update assertion syntax and
12741 typo.
12742 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12743 (cpp_handle_option): Update.
12744
12745 2002-03-15 Chris Demetriou <cgd@broadcom.com>
12746
12747 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12748 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12749 and define it so that regardless of target CPU size,
12750 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12751 of "int" rather than "long."
12752
12753 2002-03-15 Richard Henderson <rth@redhat.com>
12754
12755 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12756 size as a tree.
12757
12758 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12759
12760 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12761 ("tstqi" split): Avoid using memory for tstqi on address register.
12762 (splits): Remove constraints.
12763 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12764 ("cmpdf", "cmpsf"): Remove since not used.
12765 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12766 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12767
12768 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12769
12770 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12771 ("neghi2"): Tighten constraints.
12772 ("one_cmplsi2"): Optimize and simplify split.
12773 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12774
12775 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12776
12777 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12778 and split of AND operation to clear the upper bits.
12779 ("*logicalsi3_zextqi"): Likewise.
12780 ("*logicallhi3_zexthi_ashift8"): Likewise.
12781 ("*logicalsi3_silshr16"): Likewise.
12782 ("logicalsi3_silshl16"): Likewise.
12783 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12784
12785 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12786
12787 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12788 (m68hc11_indirect_p): New function.
12789 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12790 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12791 TARGET_M6812.
12792 (asm_print_register): Likewise.
12793 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12794 (m68hc11_indirect_p): Declare.
12795 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12796 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12797 (TARGET_SWITCHES): New option -mrelax.
12798 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12799 destination.
12800 ("iorsi3", "xorsi3"): Likewise.
12801 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12802 ("*andhi3_mem"): New to handle destination in memory with bclr
12803 and a scratch register.
12804 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12805 ("*andhi3_const"): New when operand2 is constant.
12806 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12807 ("*andhi3_gen"): Cleanup of the old "andhi3".
12808 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12809 ("xorqi3"): Update constraints.
12810
12811 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12812
12813 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12814 for reg_equiv_memory_loc when the operand is a register that does
12815 not get a hard register (stack location).
12816 (tst_operand): After reload, accept all memory operand.
12817 (symbolic_memory_operand): Fix detection of symbolic references.
12818 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12819 accept symbols and any constant.
12820
12821 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12822
12823 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12824 note on the insn that sets the soft frame register.
12825 (must_parenthesize): ix and iy are also reserved names.
12826 (print_operand_address): One more place where parenthesis are required
12827 to avoid confusion with register names.
12828 (m68hc11_gen_movhi): Allow push of stack pointer.
12829 (m68hc11_check_z_replacement): Fix handling of parallel with a
12830 clobber.
12831 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12832 the replacement register is.
12833 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12834 and D8_REGS classes.
12835 (MODES_TIEABLE_P): All modes are tieable except QImode.
12836
12837 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12838
12839 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12840 (___subdi3): Likewise.
12841 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12842 (__map_data_section): Optimize 68hc11 case.
12843
12844 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12845
12846 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12847 than a shift to avoid adding a register with itself.
12848 (m68hc11_memory_move_cost): Take into account NO_REGS.
12849 (m68hc11_register_move_cost): Update and use memory move cost
12850 for soft registers.
12851 (m68hc11_address_cost): Make cost of valid offset not 0 so that
12852 it gives more opportunities to cse to optimize.
12853 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12854 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12855
12856 2002-03-15 Mark Mitchell <mark@codesourcery.com>
12857
12858 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12859 * c-common.def (CLEANUP_STMT): New tree node.
12860 * c-common.h (CLEANUP_DECL): New macro.
12861 (CLEANUP_EXPR): Likewise.
12862 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12863 * expr.c (expand_expr): Tidy.
12864 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12865 * tree-inline.c (initialize_inlined_parameters): Clean up
12866 new local variables.
12867
12868 2002-03-15 Jakub Jelinek <jakub@redhat.com>
12869
12870 PR bootstrap/4128
12871 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12872 before movrXX only, use reg_overlap_mentioned_p.
12873 Only special case NE if just one insn can be generated.
12874
12875 2002-03-15 Jason Merrill <jason@redhat.com>
12876
12877 * varasm.c (assemble_variable): Call resolve_unique_section before
12878 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
12879 of error_mark_node.
12880
12881 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
12882
12883 PR target/5170
12884 * arm.md (split pattern for thumb shiftable immediates): Add comment
12885 explaining non-obvious test.
12886
12887 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
12888
12889 PR target/5712
12890 * arm.md (movaddr, movaddr_insn): Delete.
12891
12892 2002-03-15 Jason Merrill <jason@redhat.com>
12893
12894 * toplev.c (wrapup_global_declarations): Clarify variable handling.
12895 -fkeep-static-consts doesn't apply to comdats.
12896
12897 2002-03-14 Richard Henderson <rth@redhat.com>
12898
12899 * c-decl.c: Include c-pragma.h.
12900 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12901 (finish_function): Tidy.
12902 * c-pragma.c: Include c-common.h.
12903 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12904 (handle_pragma_weak): Use them.
12905 (init_pragma): Register pending_weaks.
12906 * c-pragma.h (maybe_apply_pragma_weak): Declare.
12907 * print-tree.c (print_node): Print DECL_WEAK.
12908 * varasm.c (mark_weak_decls): Remove.
12909 (remove_from_pending_weak_list): Remove.
12910 (add_weak): Remove.
12911 (asm_emit_uninitialised): Call globalize_decl for weak commons.
12912 (weak_decls): Make a tree_list.
12913 (declare_weak): Cons weak_decls directly.
12914 (globalize_decl): Remove weak_decls elements directly.
12915 (weak_finish): Simplify weak_decls walk. Don't weaken unused
12916 symbols. Don't pretend to handle aliases.
12917 (init_varasm_once): Update weak_decls registry.
12918 * Makefile.in: Update dependencies.
12919
12920 2002-03-14 Richard Henderson <rth@redhat.com>
12921
12922 PR target/5312
12923 * config/ia64/ia64.c: Include tm_p.h last.
12924 (gen_nop_type): Remove duplicate definition.
12925 (cycle_end_fill_slots): Set sched_data for second L slot.
12926 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12927 (nop_cycles_until): Fix typos.
12928
12929 2002-03-15 Jakub Jelinek <jakub@redhat.com>
12930
12931 PR optimization/5891
12932 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12933
12934 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12935
12936 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12937 descriptors correctly.
12938
12939 2002-03-14 Michael Meissner <meissner@redhat.com>
12940
12941 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12942 100, allowing MAX_UNROLLED_INSNS to be overridden.
12943
12944 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12945 --param.
12946
12947 * unroll.c (params.h): Include.
12948 (MAX_UNROLLED_INSNS): Delete, now in params.h.
12949
12950 * doc/invoke.texi (--param max-unroll-insns): Document.
12951
12952 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12953
12954 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
12955
12956 * arm.md: Fix warnings about constraints in peepholes and splits.
12957
12958 2002-03-14 Zack Weinberg <zack@codesourcery.com>
12959
12960 * cpphash.h (struct lexer_state): Remove line_extension member.
12961 * cpplib.c (dequote_string, do_linemarker): New functions.
12962 (linemarker_dir): New data object.
12963 (DIRECTIVE_TABLE): No longer need to interpret #line in
12964 preprocessed source. Delete obsolete comment about return
12965 values of handlers.
12966 (end_directive, directive_diagnostics, _cpp_handle_directive):
12967 Don't muck with line_extension.
12968 (directive_diagnostics): No need to issue warnings for
12969 linemarkers here.
12970 (_cpp_handle_directive): Issue warnings for linemarkers here,
12971 when appropriate. Dispatch linemarkers to do_linemarker, not
12972 do_line.
12973 (do_line): Code to handle linemarkers split out to do_linemarker.
12974 Convert escape sequences in filename argument, both places.
12975
12976 * cppmacro.c (quote_string): Rename cpp_quote_string and
12977 export. All callers changed.
12978 * cpplib.h (cpp_quote_string): Prototype.
12979 * cppmain.c (print_line): Call cpp_quote_string on to_file
12980 before printing it.
12981
12982 * doc/cpp.texi: Document that escapes are now interpreted in
12983 #line and in linemarkers, and that non-printing characters are
12984 converted to octal escapes when linemarkers are generated.
12985
12986 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
12987
12988 * emit-rtl.c (try_split): Use delete_insns.
12989 * recog.c (split_all_insns): Fix terminating condition.
12990
12991 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
12992 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12993
12994 PR target/5828
12995 * arm.c (arm_output_epilogue): Fix floating-point register save
12996 adjustment when using a frame pointer.
12997
12998 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
12999
13000 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13001 * config/mips/mips.c (compute_frame_size): Retrofit them here.
13002 (save_restore_insns, mips_expand_epilogue): And here.
13003 (build_mips16_call_stub): And here.
13004 (mips_function_value): Use the new macros to decide whether a single
13005 or complex float can be returned in floating-point registers. Return
13006 a parallel rtx in the complex case.
13007
13008 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
13009
13010 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13011 call after liveness analysis.
13012
13013 * recog.c (split_insn): Use delete_insn_and_edges.
13014
13015 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13016 instructions to have branch prediction notes.
13017 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13018
13019 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
13020
13021 * configure.in: Don't pass -Wno-long-long to a ADA compiler
13022 that doesn't support it.
13023 * configure: Regenerate.
13024
13025 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13026
13027 PR target/5626
13028 * config/sparc/sparc.md (normal_branch, inverted_branch,
13029 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13030 inverted_fp_branch): Adjust calls to output_cbranch.
13031 Set length attribute.
13032 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13033 output_v9branch. Set length attribute.
13034 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13035 predicates.
13036 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13037 (output_cbranch): Likewise. Handle far branches.
13038 (output_v9branch): Handle far branches.
13039 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13040 Adjust prototypes.
13041 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13042 noov_compare64_op predicates.
13043
13044 2002-03-13 Jason Merrill <jason@redhat.com>
13045
13046 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13047 into the function and constify it.
13048 * gthr-dce.h, gthr-solaris.h: Likewise.
13049
13050 2002-03-13 David Edelsohn <edelsohn@gnu.org>
13051
13052 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13053 * config/rs6000/rs6000.c (rs6000_va_arg): Use
13054 std_expand_builtin_va_arg if not ABI_V4.
13055
13056 2002-03-13 Jason Merrill <jason@redhat.com>
13057
13058 * varasm.c (globalize_decl): New fn.
13059 (assemble_start_function): Use it.
13060 (asm_emit_uninitialized): Use it.
13061 (assemble_alias): Use it.
13062 (assemble_variable): Use it.
13063
13064 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
13065
13066 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
13067 2002-03-12 internal visibility change.
13068 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
13069 visibility into SYMBOL_REF_FLAG.
13070
13071 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
13072
13073 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
13074 VOIDmode operand. Add compile-time optimization for constant results.
13075
13076 2002-03-12 Jason Merrill <jason@redhat.com>
13077
13078 * c-typeck.c (convert_for_assignment): Don't allow conversions
13079 between pointers and references. Only allow lvalues to convert to
13080 reference.
13081
13082 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
13083
13084 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
13085 before prologue, to avoid scheduling problems.
13086
13087 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13088
13089 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13090 (ELIMINABLE_REGS): Add sfp->sp.
13091 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
13092
13093 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13094
13095 PR optimization/5892
13096 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
13097
13098 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13099
13100 * loop.c (basic_induction_var): Don't call convert_modes if mode
13101 classes are different.
13102
13103 2002-03-12 Richard Henderson <rth@redhat.com>
13104
13105 PR optimization/5901
13106 * function.c (reposition_prologue_and_epilogue_notes): Position
13107 the markers after/before the last/first insn not deleted.
13108
13109 2002-03-12 Richard Henderson <rth@redhat.com>
13110
13111 PR optimization/5878
13112 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
13113 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
13114 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13115
13116 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
13117 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
13118 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
13119
13120 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
13121 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
13122 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
13123 also. Don't set it if not flag_pic.
13124 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
13125 to be INVALID_REGNUM when not used.
13126
13127 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
13128
13129 * expmed.c (store_bit_field): Reset alias set for memory.
13130 (extract_bit_field): Same.
13131
13132 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13133
13134 * c-common.c (c_tree_code_type, c_tree_code_length,
13135 c_tree_code_name, add_c_tree_codes): Delete.
13136 * c-common.h (add_c_tree_codes): Delete.
13137 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
13138 Define.
13139 * c-objc-common.c (c_objc_common_init): Don't call
13140 add_c_tree_codes, instead set lang_unsafe_for_reeval.
13141 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
13142 objc_tree_code_name, add_objc_tree_codes): Delete.
13143 (objc_init): Don't call add_objc_tree_codes.
13144 * objc/objc-lang.c (tree_code_type, tree_code_length,
13145 tree_code_name): Define.
13146 * toplev.c (lang_independent_init): Don't set
13147 tree_code_length[IDENTIFIER_NODE].
13148 * tree.c (tree_code_type, tree_code_length, tree_code_name):
13149 Delete definitions, moved to language front-ends.
13150 * tree.def (IDENTIFIER_NODE): Hardwire the length.
13151 * tree.h (tree_code_type, tree_code_length, tree_code_name):
13152 Const-ify.
13153 (tree_code_length): Change type to unsigned char.
13154
13155 2002-03-12 Richard Henderson <rth@redhat.com>
13156
13157 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
13158 internal visibility change.
13159
13160 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13161
13162 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
13163 validize_mem() instead of change_address to avoid clobbering
13164 memory attributes.
13165
13166 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
13167
13168 * c-lex.h (position_after_whitespace): Remove.
13169
13170 2002-03-12 Jakub Jelinek <jakub@redhat.com>
13171
13172 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
13173 (lex_string): Use unsigned char pointers.
13174
13175 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13176
13177 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
13178 is not a valid memory_operand.
13179
13180 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13181
13182 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13183 * config/xtensa/lib1funcs.asm: Fix copyright to include
13184 special case for libgcc files.
13185 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13186 (__divsi3): Likewise.
13187 (__umodsi3): Likewise.
13188 (__modsi3): Likewise.
13189 * config/xtensa/lib2funcs.S: Fix copyright to include
13190 special case for libgcc files.
13191
13192 2002-03-12 Tom Rix <trix@redhat.com>
13193
13194 * collect2.c (resolve_lib_name): Move outside of
13195 OBJECT_FORMAT_COFF ifdef.
13196 (ignore_library): Same.
13197
13198 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13199
13200 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13201
13202 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13203
13204 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13205 to function_section before writing out the constant pool.
13206
13207 2002-03-12 David Edelsohn <edelsohn@gnu.org>
13208
13209 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13210 zero_constant.
13211 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13212
13213 2002-03-12 Alan Modra <amodra@bigpond.net.au>
13214
13215 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13216 (adddi3): Likewise.
13217 (movdf): Likewise.
13218 (movdi): Likewise.
13219 (cmpsi splitter): Likewise.
13220 (modsi3): Fail if <= 0.
13221 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13222 redundant test when HOST_BITS_PER_WIDE_INT != 32.
13223 (reg_or_sub_cint64_operand): Likewise.
13224 (num_insns_constant_wide): Optimize sign extension.
13225 (rs6000_legitimize_address): Likewise.
13226
13227 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13228
13229 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13230 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13231
13232 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13233
13234 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13235 address calculation.
13236
13237 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13238
13239 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13240 scratch register to DImode / TImode.
13241 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13242 register used does not overlap the target.
13243
13244 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13245
13246 * Makefile.in (debug.o): Depend on debug.h.
13247 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13248 * debug.c (do_nothing_debug_hooks): Likewise.
13249 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13250 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13251 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13252 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13253 * dwarfout.c (dwarf_debug_hooks): Likewise.
13254 * integrate.c (output_inline_function): Likewise.
13255 * objc/objc-act.c (synth_module_prologue): Likewise.
13256 * sdbout.c (sdb_debug_hooks): Likewise.
13257 * toplev.c (debug_hooks): Likewise.
13258 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13259
13260 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13261
13262 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13263 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13264 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13265 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13266 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13267 * defaults.h (POINTER_SIZE): Define.
13268 * doc/tm.texi (POINTER_SIZE): Document default.
13269
13270 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13271
13272 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13273
13274 2002-03-11 Richard Henderson <rth@redhat.com>
13275
13276 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13277 if rebuild_label_notes_after_reload.
13278
13279 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
13280
13281 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
13282 emit pic register load if "internal" visibility.
13283 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13284 (cris_expand_builtin_va_arg): Do all computations on trees.
13285
13286 2002-03-11 Richard Henderson <rth@redhat.com>
13287
13288 * rtlanal.c: Include recog.h.
13289 (keep_with_call_p): Fix thinko.
13290 * Makefile.in (rtlanal.o): Update dependencies.
13291
13292 2002-03-11 Chris Meyer <cmeyer@gatan.com>
13293
13294 * genflags.c (gen_insn): Use IS_VSPACE.
13295 * genoutput.c (output_insn_data): Likewise.
13296 (process_template): Likewise.
13297
13298 2002-03-11 Richard Henderson <rth@redhat.com>
13299
13300 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13301
13302 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
13303
13304 * Makefile.in: Update.
13305 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
13306 Update documentation.
13307 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13308 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
13309
13310 2002-03-11 Zack Weinberg <zack@codesourcery.com>
13311
13312 * Makefile.in: Give texi2pod its input file as a command line
13313 argument, not on stdin.
13314
13315 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
13316 Daniel Berlin <dan@dberlin.org>
13317
13318 C++ alias analysis improvement.
13319 * alias.c (record_component_aliases): Record aliases for base
13320 classes too.
13321
13322 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
13323
13324 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13325
13326 2002-03-11 Douglas B Rupp <rupp@gnat.com>
13327
13328 * toplev.c (vms_fopen): Remove, not needed.
13329
13330 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13331
13332 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13333
13334 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13335 for FP, already done later.
13336
13337 * toplev.c (debug_args): Add entry for VMS_DEBUG.
13338 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13339
13340 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
13341
13342 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13343 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13344 LARGEST_EXPONENT_IS_NORMAL for the given mode.
13345 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13346 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13347 (ediv, emul, eldexp, esqrt): Likewise.
13348 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13349 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13350 (saturate): New function.
13351 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13352 (make_nan): Use a saturation value instead of a NaN if
13353 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
13354 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13355 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
13356 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
13357 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13358 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13359 !ROUND_TOWARDS_ZERO.
13360 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13361 (ROUND_TOWARDS_ZERO): Document.
13362
13363 2002-03-11 Andreas Jaeger <aj@suse.de>
13364
13365 * cfg.c (dump_flow_info): Remove unused variable.
13366
13367 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
13368
13369 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13370 computations on trees.
13371
13372 2002-03-10 Richard Henderson <rth@redhat.com>
13373
13374 PR 5693:
13375 * reload.c (copy_replacements_1): New.
13376 (copy_replacements): Use it to recurse through the rtx.
13377
13378 2002-03-10 Richard Henderson <rth@redhat.com>
13379
13380 * loop.c (strength_reduce): Compute number of iterations as
13381 unsigned HOST_WIDE_INT.
13382
13383 2002-03-10 Richard Henderson <rth@redhat.com>
13384
13385 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13386 to move away from the end of the block.
13387
13388 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
13389
13390 PR preprocessor/5899
13391 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
13392
13393 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13394
13395 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13396
13397 * attribs.c (decl_attributes): Fix signed/unsigned warning.
13398
13399 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
13400
13401 * config/mmix/mmix.c: Improve comments.
13402 (mmix_target_asm_function_prologue): Drop variable
13403 empty_stack_frame. Don't allocate unused slot above fp.
13404 (mmix_target_asm_function_epilogue): Mirror prologue changes.
13405 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13406 brace in first column.
13407 (enum reg_class): Ditto.
13408 (FIRST_PARM_OFFSET): Now 0.
13409 (USER_LABEL_PREFIX): Remove #if 0:d definition.
13410
13411 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13412
13413 * combine.c (make_extraction): Fix error in last change.
13414
13415 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13416
13417 * c4x.c (c4x_fp_reglist): Const-ify.
13418 * cris.c (cris_print_operand): Likewise.
13419 * i386.c (ix86_va_arg): Likewise.
13420 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13421 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13422 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13423 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13424 * mcore.h (regno_reg_class): Likewise.
13425 * mips.c (gen_int_relational): Likewise.
13426 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13427 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
13428 * pdp11.c (move_costs): Likewise.
13429 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13430 * s390.c (s390_branch_condition_mnemonic, regclass_map):
13431 Likewise.
13432 * s390.h (regclass_map): Likewise.
13433 * sh.c (shift_amounts): Likewise.
13434 * sh.md (rotlsi3): Likewise.
13435
13436 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
13437
13438 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13439 (ne0+5): Use new clobber to generate proper shift pattern.
13440 Patch by Michael Matz <matz@kde.org>.
13441
13442 2002-03-09 Andreas Schwab <schwab@suse.de>
13443
13444 * gcc.c (validate_all_switches): Also handle `%W{...}'.
13445
13446 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
13447
13448 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13449
13450 2002-03-09 Jakub Jelinek <jakub@redhat.com>
13451
13452 PR middle-end/5877
13453 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13454 even for non-representable constants.
13455
13456 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13457
13458 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13459 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13460 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13461 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13462 (pop_function_context): Compute MAY_SHARE parameter for
13463 fixup_var_refs.
13464 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13465 (gen_mem_addressof): Call fixup_var_refs with new parm.
13466
13467 * combine.c (make_extraction): Don't make extension of CONST_INT.
13468
13469 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
13470
13471 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13472 in o32 and o64 ABIs.
13473 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13474 but getting fixed-size structs passed in registers regardless of
13475 padding in o32 and o64 ABIs.
13476
13477 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13478 offset before loading address of argument passed by transparent
13479 reference.
13480
13481 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
13482
13483 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13484
13485 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
13486
13487 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13488 marker such that registers after it are saved.
13489
13490 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13491
13492 * sparc.c (arith_4096_operand): Fix error in last change.
13493
13494 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
13495
13496 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13497 defaults for MEABI.
13498
13499 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
13500
13501 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13502 vectors.
13503
13504 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
13505
13506 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
13507
13508 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
13509
13510 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13511 removed; fix return value.
13512 * combine.c (combine_instructions): Dirtify blocks where we failed to
13513 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13514 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13515
13516 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13517
13518 * gcse.c (insert_insn_end_bb): Fix typo in last change.
13519
13520 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
13521
13522 * recog.c (peephole2_optimize): Re-distribute EH edges.
13523
13524 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
13525
13526 * expr.c (expand_expr): Use unsave lang hook.
13527 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13528 (LANG_HOOKS_INITIALIZER): Update.
13529 * langhooks.h (struct lang_hooks): New hook unsave.
13530 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13531 (unsave_expr_1): Remove unused lang_unsave_expr_now.
13532 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
13533 (unsave_expr_now): Remove.
13534 * tree.h (unsave_expr_now, lang_unsave,
13535 lang_unsave_expr_now): Remove.
13536 (lhd_unsave): New.
13537
13538 2002-03-08 Andreas Jaeger <aj@suse.de>
13539
13540 * flow.c (propagate_block_delete_insn): Remove unused variable.
13541
13542 2002-03-08 Kazu Hirata <kazu@hxi.com>
13543
13544 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13545 insn length for memory load/store.
13546
13547 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
13548
13549 * doc/install.texi (--with-libiconv-prefix): Document.
13550
13551 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
13552
13553 * doc/sourcebuild.texi: Fix typo.
13554
13555 2002-03-08 Jakub Jelinek <jakub@redhat.com>
13556
13557 PR c/3711
13558 * builtins.c (std_expand_builtin_va_arg): Do all computations on
13559 trees.
13560
13561 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13562
13563 * rtl.c (copy_most_rtx): Move from here ...
13564 * emit-rtl.c (copy_most_rtx): ... to here.
13565
13566 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
13567
13568 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13569 SUBTARGET_CPP_SIZE_SPEC.
13570 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13571
13572 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13573
13574 2002-03-07 Matt Hiller <hiller@redhat.com>
13575
13576 * gensupport.c (first_dir_md_include): Renamed from include;
13577 change all references.
13578 (last_dir_md_include): Renamed from last_include; change all
13579 references.
13580 (init_md_reader): Unconditionally initialize base_dir whether or
13581 not filename is a relative path.
13582
13583 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
13584
13585 * config/fp-bit.c (_unord_f2): Compile it in even if
13586 US_SOFTWARE_GOFAST is enabled.
13587
13588 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13589 NULL_RTX. Set all HFmode operations as NULL_RTX.
13590 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13591 NULL_RTX, try reversing the comparison and the operands.
13592
13593 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13594
13595 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13596 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13597 and MATCH_OP_DUP.
13598
13599 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
13600
13601 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13602
13603 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13604
13605 * basic-block.h (fixup_abnormal_edges): Declare.
13606 * reload1.c (fixup_abnormal_edges): New function.
13607 * reg-stack.c (convert_regs): Use it.
13608
13609 * gcse.c (insert_insn_end_bb): Handle trapping insns.
13610
13611 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13612
13613 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
13614
13615 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13616 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13617 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13618 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13619 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13620 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13621 unless x and y could be infinite.
13622 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13623 Check that the common type of both arguments is a real, even for
13624 targets without unordered comparisons. Allow an integer argument
13625 to be compared against a real.
13626 (expand_tree_builtin): Use expand_unordered_cmp.
13627 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13628 * cse.c (fold_rtx): Likewise. Fix indentation.
13629 * fold-const.c (fold_real_zero_addition_p): New.
13630 (fold): Use it, and the new HONOR_... macros.
13631 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13632 * jump.c (reversed_comparison_code_parts): After searching for
13633 the true comparison mode, use HONOR_NANS to decide whether it
13634 can be safely reversed.
13635 (reverse_condition_maybe_unordered): Remove IEEE check.
13636 * simplify-rtx.c (simplify_binary_operation): Use the new macros
13637 to decide which simplifications are valid. Allow the following
13638 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13639 and (a - -b) to (a + b).
13640 (simplify_relational_operation): Use HONOR_NANS.
13641 * doc/tm.texi: Document the MODE_HAS_... macros.
13642
13643 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
13644
13645 * combine.c (simplify_comparison): If simplifying a logical shift
13646 right and compare with constant, force the comparison to unsigned.
13647
13648 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
13649
13650 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
13651
13652 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13653 -mabi=no-altivec
13654 (alt_reg_names): Remove % for vrsave.
13655
13656 2002-03-06 Richard Henderson <rth@redhat.com>
13657
13658 PR optimization/5844
13659 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
13660 if used indicates we've already emitted one copy of an operand.
13661 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13662 (gen_split): Supply a non-null used.
13663
13664 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13665
13666 * reload1.c (reload): Unshare all rtl after reload is done.
13667
13668 * simplify-rtx.c (simplify_plus_minus): Do not abort,
13669 but simply fail if the expression is too complex to simplify.
13670 (simplify_gen_binary): Handle simplify_plus_minus failures.
13671
13672 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
13673
13674 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13675 consistently call delete_trivially_dead_insns after CSE and GCSE;
13676 fix DFI_life dumping; do jump threading after liveness; do crossjumping
13677 after liveness2; update comment in last crossjumping.
13678 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13679
13680 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
13681
13682 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13683 after completing fast dead code elimination.
13684
13685 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13686 COMPARE operator.
13687
13688 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
13689
13690 * version.c: Fix misplaced leading blanks on first line.
13691
13692 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
13693
13694 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13695
13696 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
13697
13698 * cfgcleanup.c (mentions_nonequal_regs): New function.
13699 (thread_jump): Use it.
13700 * toplev.c (rest_of_compilation): Run jump threading after
13701 liveness.
13702
13703 2002-03-06 Jakub Jelinek <jakub@redhat.com>
13704
13705 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13706 patch.
13707
13708 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
13709
13710 * predict.c (estimate_bb_frequencies): Do not reload the
13711 frequencies from notes.
13712
13713 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
13714
13715 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13716 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13717
13718 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13719 delete_noop_moves): Return indeger.
13720 * flow.c (ndead): New variable.
13721 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13722 BB argument; update callers.
13723 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13724 (life_analysis): Do not call purge_all_dead_edges.
13725 (update_life_info): Return number of deleted insns; print statistics.
13726 (update_life_info_in_dirty_blocks): likewise.
13727 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13728 return number of insns deleted.
13729
13730 * cse.c: Include timevar.h
13731 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13732 iterate until stabilizes; print statistics; return number of killed
13733 insns.
13734 * Makefile.in: (cse.o): Add timevar.h dependency
13735 * rtl.h (delete_trivially_dead_insns): New.
13736 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13737 * toplev.c (rest_of_compilation): Update callers.
13738
13739 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13740 (try_optimize_cfg): Do not update liveness.
13741 (cleanup-cfg): Loop until try_optimize_cfg and dead code
13742 removal stabilizes; use delete_trivially_dead_insns.
13743
13744 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13745
13746 2002-03-05 Zack Weinberg <zack@codesourcery.com>
13747
13748 * cppmain.c (setup_callbacks): Disable #pragma and #ident
13749 callbacks when processing assembly language.
13750
13751 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13752
13753 * pa.h (ASM_FILE_END): Define.
13754 * som.h (ASM_FILE_END): Delete.
13755
13756 * pa.c (function_arg): Don't pass floats in general registers in
13757 indirect calls if TARGET_ELF32.
13758
13759 2002-03-05 Richard Henderson <rth@redhat.com>
13760
13761 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13762
13763 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
13764
13765 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13766
13767 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13768
13769 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13770 -r command line. Don't hide any symbols if not building
13771 shared libgcc.
13772
13773 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
13774
13775 * cfg.c (dump_flow_info): Warn about profile mismatches.
13776 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13777 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13778
13779 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13780
13781 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13782 wide volatile memory by parts.
13783
13784 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13785
13786 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13787 is NULL.
13788
13789 2002-03-05 Richard Henderson <rth@redhat.com>
13790
13791 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
13792
13793 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
13794
13795 * toplev.c (documented_lang_options): Document more
13796 language-specific options.
13797 * doc/invoke.texi (Warning Options): Correct documentation for
13798 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13799 * c-decl.c (c_decode_option): Use a table to handle warning options.
13800
13801 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
13802
13803 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13804 parameter to mmix_encode_section_info.
13805 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13806 relocatably. Always produce ELF, not mmo if linking relocatably.
13807 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13808 first is non-zero, don't add symbol prefix.
13809 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13810 prototype accordingly.
13811
13812 2002-03-04 Krister Walfridsson <cato@df.lth.se>
13813
13814 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13815
13816 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
13817
13818 * configure.in: Increase required makeinfo version to 4.1.
13819 * configure: Regenerate.
13820
13821 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
13822
13823 * .cvsignore: Remove *.info* and genrtl*; these files are generated
13824 elsewhere now.
13825
13826 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
13827
13828 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13829 * doc/invoke.texi: Fix @math uses.
13830
13831 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13832
13833 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13834 removal
13835
13836 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
13837
13838 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13839 (powerpc-*-eabisimaltivec*): Same.
13840
13841 * config/rs6000/t-ppcendian: New.
13842
13843 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13844
13845 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13846 nonimmediate_src_operand and nonimmediate_lsrc_operand to
13847 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13848
13849 2002-03-03 Richard Henderson <rth@redhat.com>
13850
13851 * toplev.c (rest_of_decl_compilation): Revert last two changes.
13852
13853 2002-03-03 Zack Weinberg <zack@codesourcery.com>
13854
13855 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13856 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13857 tree.c, config/m68k/m68k.c:
13858 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13859 REAL_ARITHMETIC blocks unconditional. Delete some further
13860 #ifdef blocks predicated on REAL_ARITHMETIC.
13861 * flags.h, toplev.c: Delete remaining references to
13862 flag_pretend_float.
13863
13864 * doc/invoke.texi: Remove documentation of -fpretend-float.
13865 * doc/tm.texi: Describe the various REAL_* macros as provided by
13866 real.h, not by the target configuration files.
13867
13868 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13869 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13870 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13871 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13872 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13873 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13874 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13875 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13876 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13877 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13878 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13879 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13880 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13881 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13882 config/xtensa/xtensa.h:
13883 Do not define, undefine, or mention in comments any of
13884 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13885 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13886 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13887 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13888 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13889 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13890 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13891 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13892 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13893
13894 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13895
13896 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13897 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13898 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13899 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13900 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13901 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13902 Delete.
13903 * defaults.h (BITS_PER_WORD): Define.
13904 * doc/tm.texi (BITS_PER_WORD): Document default value.
13905
13906 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13907 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13908 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13909
13910 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13911
13912 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13913 lieu of explicit sizeof/sizeof.
13914 * i386.c (override_options, ix86_init_mmx_sse_builtins,
13915 ix86_expand_builtin): Likewise.
13916 * mips.c (mips_add_gc_roots): Likewise.
13917 * mmix.c (mmix_output_condition): Likewise.
13918 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13919 altivec_init_builtins): Likewise.
13920 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13921 * cppexp.c (Nsuff, parse_number): Likewise.
13922 * cppinit.c (builtin_array_end): Likewise.
13923 * gcc.c (n_default_compilers, process_command): Likewise.
13924 * genpreds.c (output_predicate_decls): Likewise.
13925 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13926 * lcm.c (N_ENTITIES): Likewise.
13927 * stor-layout.c (set_sizetype): Likewise.
13928
13929 2002-03-03 Richard Henderson <rth@redhat.com>
13930
13931 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13932 for types or labels.
13933
13934 2002-03-03 Richard Henderson <rth@redhat.com>
13935
13936 * c-decl.c (start_decl): Initialized variables are not common.
13937
13938 2002-03-02 Per Bothner <per@bothner.com>
13939
13940 * gcc.c (option_map): Suport new --bootclasspath option.
13941 --CLASSPATH is now just an alias for --classpath.
13942
13943 2002-03-02 Richard Henderson <rth@redhat.com>
13944
13945 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13946 load if "internal" visibility.
13947 * doc/extend.texi: Document visibility meanings.
13948
13949 2002-03-02 Richard Henderson <rth@redhat.com>
13950
13951 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13952 to functions as well.
13953
13954 2002-03-02 Richard Henderson <rth@redhat.com>
13955
13956 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13957 (handle_visibility_attribute): Don't call assemble_visibility.
13958 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13959 without asmspec. Invoke assemble_alias when needed.
13960 * varasm.c (maybe_assemble_visibility): New.
13961 (assemble_start_function, assemble_variable, assemble_alias): Use it.
13962
13963 2002-03-02 Richard Henderson <rth@redhat.com>
13964
13965 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13966 invoke ENCODE_SECTION_INFO with first call flag.
13967
13968 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13969 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13970 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13971 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13972 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13973 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13974 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13975 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13976 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13977 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13978 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13979 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13980 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13981 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13982 config/mcore/mcore-protos.h, config/mcore/mcore.c,
13983 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13984 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13985 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13986 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13987 config/sh/sh.h, config/sparc/sparc.h,
13988 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13989 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13990 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13991 FIRST argument. As needed, examine it and do nothing.
13992
13993 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13994 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13995 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13996
13997 * config/arm/t-pe (pe.o): Add dependencies.
13998
13999 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14000
14001 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14002 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14003 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14004 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14005 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14006 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14007 * defaults.h (BITS_PER_UNIT): Define.
14008 * doc/tm.texi (BITS_PER_UNIT): Document default value.
14009
14010 2002-03-02 Kazu Hirata <kazu@hxi.com>
14011
14012 * config/h8300/h8300-protos.h: Add a prototype for
14013 compute_a_shift_length.
14014 * config/h8300/h8300.c (h8300_asm_insn_count): New.
14015 (compute_a_shift_length): Likewise.
14016 (h8300_adjust_insn_length): Do not adjust insn length of shift
14017 insns.
14018 * config/h8300/h8300.md (anonymous shift patterns): Use
14019 compute_a_shift_length.
14020
14021 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14022
14023 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14024 trunc_int_for_mode.
14025
14026 * emit-rtl.c (offset_address): Call update_temp_slot_address.
14027
14028 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14029
14030 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14031 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14032 * flags.h (flag_zero_initialized_in_bss): Declare.
14033 * toplev.c (flag_zero_initialized_in_bss): New flag.
14034 (lang_independent_options): Add flag_zero_initialized_in_bss.
14035 * tree.c (initializer_zerop): New function.
14036 * tree.h (initializer_zerop): Declare.
14037 * varasm.c (assemble_variable): If we can emit bss, put zero
14038 initializers in the bss section.
14039
14040 2002-03-02 Alan Modra <amodra@bigpond.net.au>
14041
14042 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14043 like more than one symbol per .weak directive.
14044
14045 2002-03-01 Richard Henderson <rth@redhat.com>
14046
14047 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14048 adjust argument_pointer by pretend_args_size.
14049 (ia64_va_start): Adjust va_start address by -pretend_args_size.
14050
14051 2002-03-01 Kazu Hirata <kazu@hxi.com>
14052
14053 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14054
14055 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
14056
14057 * toplev.c (rest_of_compilation): Delete dead jumptables before
14058 loop.
14059 * flow.c (delete_dead_jumptables): Make global.
14060 * rtl.h (delete_dead_jumptables): Declare.
14061
14062 2002-03-01 David Edelsohn <edelsohn@gnu.org>
14063
14064 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
14065 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
14066 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
14067
14068 2002-03-01 Kazu Hirata <kazu@hxi.com>
14069
14070 * config/h8300/h8300-protos.h: Fix formatting.
14071 * config/h8300/h8300.c: Likewise.
14072 * config/h8300/h8300.h: Likewise.
14073
14074 2002-03-01 Kazu Hirata <kazu@hxi.com>
14075
14076 * config/h8300/h8300.c (print_operand): Support 16-bit
14077 constant addresses.
14078 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
14079
14080 2002-02-28 Richard Henderson <rth@redhat.com>
14081
14082 * expmed.c (store_bit_field): Prevent generation of CONCATs;
14083 pun complex values as integers; use gen_lowpart instead of
14084 gen_rtx_SUBREG.
14085 (extract_bit_field): Likewise.
14086
14087 2002-03-01 Alan Modra <amodra@bigpond.net.au>
14088 David Edelsohn <edelsohn@gnu.org>
14089
14090 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
14091 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
14092 (SUPPORTS_WEAK): Likewise.
14093 * output.h (add_weak): Add tree param.
14094 * varasm.c (add_weak): Likewise. Save decl.
14095 (struct weak_syms): Add decl field.
14096 (mark_weak_decls): New function.
14097 (init_varasm_once): ggc_add_root mark_weak_decls.
14098 (assemble_start_function): Use ASM_WEAKEN_DECL.
14099 (assemble_variable): Likewise.
14100 (assemble_alias): Likewise.
14101 (declare_weak): Pass decl to add_weak.
14102 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
14103 (remove_from_pending_weak_list): Declare and define for
14104 ASM_WEAKEN_DECL.
14105 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
14106 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
14107 * defaults.h (SUPPORTS_WEAK): Likewise.
14108 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14109 .weak for code sym. Do emit .size for descriptor sym.
14110 (ASM_DECLARE_FUNCTION_SIZE): Define.
14111 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
14112 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
14113 .lglobl unless TARGET_XCOFF. Formatting fixes.
14114 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14115 .weak for code sym.
14116 (HANDLE_PRAGMA_WEAK): Remove.
14117 (ASM_WEAKEN_LABEL): Remove.
14118 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
14119
14120 2002-03-01 Jason Merrill <jason@redhat.com>
14121
14122 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
14123 (TARGET_EXPR_CLEANUP): New macro.
14124
14125 2002-02-28 Steve Ellcey <sje@cup.hp.com>
14126
14127 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
14128 to take ptr_extend into account as third type of extension.
14129 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
14130 fields used by SUBREG_PROMOTED_UNSIGNED_P.
14131 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
14132 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
14133 * calls.c (precompute_arguments): Use new macro.
14134 (expand_call): Ditto.
14135 * combine.c (nonzero_bits): Ditto.
14136 (record_promoted_value): Ditto.
14137 * expr.c (store_expr): Ditto.
14138 (expand_expr): Ditto.
14139 * function.c (assign_parms): Ditto.
14140
14141 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
14142
14143 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
14144 override -shared and -shared-libgcc.
14145
14146 2002-02-28 David O'Brien <obrien@FreeBSD.org>
14147
14148 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
14149 of "ultrasparc".
14150 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
14151 to be broken.
14152
14153 2002-02-28 Richard Henderson <rth@redhat.com>
14154
14155 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
14156 4 cycle latency from MM producers.
14157 (ia64_internal_sched_reorder): Likewise with pipeline flush.
14158
14159 2002-02-28 Jakub Jelinek <jakub@redhat.com>
14160
14161 * mklibgcc.in: Don't use GNU make extension.
14162
14163 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14164
14165 * c-parse.in (STATIC): New terminal.
14166 (scspec): New non-terminal. Update productions accordingly.
14167 (program): Remove bogus ifc / end ifc.
14168 (array_declarator): Simplify production using STATIC.
14169
14170 2002-02-28 Jim Meyering <meyering@lucent.com>
14171
14172 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
14173 \a still means TARGET_BELL.
14174
14175 2002-02-28 Richard Henderson <rth@redhat.com>
14176
14177 * haifa-sched.c (sched_emit_insn): New.
14178 (schedule_block): Use last_scheduled_insn to track last insn.
14179 * sched-int.h (sched_emit_insn): Prototype.
14180 * config/ia64/ia64.c (last_issued): Remove.
14181 (ia64_variable_issue): Don't set it.
14182 (nop_cycles_until): Use sched_emit_insn.
14183
14184 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
14185
14186 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14187 extended constants.
14188
14189 2002-02-28 Kazu Hirata <kazu@hxi.com>
14190
14191 * config/h8300/h8300.c: Fix formatting.
14192 * config/h8300/h8300.h: Likewise.
14193
14194 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
14195
14196 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14197 which may overwrite the high byte of the frame pointer.
14198
14199 2002-02-28 Bo Thorsen <bo@suse.de>
14200
14201 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14202 (STARTFILE_SPEC): Add 64 bit files.
14203 (ENDFILE_SPEC): Likewise.
14204
14205 2002-02-28 Jason Merrill <jason@redhat.com>
14206
14207 * c-decl.c (finish_function): Only warn about missing return
14208 statement with -Wreturn-type.
14209
14210 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
14211
14212 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14213
14214 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14215 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14216
14217 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
14218
14219 * basic-block.h (BB_REACHABLE): Renumber.
14220 (BB_DIRTY, BB_NEW): New flags.
14221 (clear_bb_flags): Declare.
14222 (update_life_info_in_dirty_blocks): Declare.
14223 * cfg.c (clear_bb_flags): New function.
14224 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14225 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14226 reorder_insns, emit_insn_after): Mark block as dirty.
14227 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14228 (update_life_info_in_dirty_blocks): New function.
14229 * recog.c (apply_change_group): Dirtify block.
14230
14231 * cse.c (cse_insn): Reorder emitting of jump insn to keep
14232 cfg consistent.
14233 * gcse.c (delete_null_pointer_checks): Likewise.
14234
14235 * toplev.c (dump_file_index): Move cse2 after bp,
14236 add DFI_null
14237 (dump_file_info): Similary.
14238 (rest_of_compilation): Avoid most of CFG rebuilds;
14239 do first if converision after null pointer checks, do cse2
14240 after branch prediction; avoid full liveness rebuild after
14241 initializing subregs.
14242 * invoke.texi (-d options): Document -du, renumber.
14243
14244 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14245 (notice_new_block): Do not set BB_UPDATE_LIFE.
14246 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14247 merge_blocks_move_successor_nojumps, merge_blocks,
14248 try_crossjump_to_edge): Likewise.
14249 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14250 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14251 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14252 (merge_of_block): Do not use life_data_ok.
14253 (find_if_case_1): Do not use SET_UPDATE_LIFE.
14254 (if_convert): Use BB_DIRTY mechanizm to update life.
14255 * lcm.c (optimize_mode_switching): Update
14256 update_life_info_in_dirty_blocks
14257
14258 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14259
14260 * Makefile.in (integrate.o): Update.
14261 * c-decl.c (copy_lang_decl): Rename.
14262 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14263 * integrate.c: Include langhooks.h.
14264 (copy_decl_for_inlining): Update to use langhook.
14265 * langhooks-def.h (lhd_do_nothing_t,
14266 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14267 (LANG_HOOKS_INITIALIZER): Update.
14268 * langhooks.c (lhd_do_nothing_t): New.
14269 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14270 * tree.h (copy_lang_decl): Remove.
14271 objc:
14272 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14273
14274 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
14275
14276 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
14277 POST_DEC, and POST_MODIFY.
14278
14279 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14280
14281 * c-typeck.c (digest_init): Remove unused parameter; all
14282 callers changed.
14283
14284 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
14285
14286 * expmed.c (expand_shift): Correctly test for low part of a
14287 subreg.
14288
14289 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
14290
14291 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
14292 insn UIDs with insn addresses.
14293
14294 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14295
14296 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14297 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14298 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14299 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14300 gcc.c, toplev.c: Delete code implementing -traditional mode.
14301
14302 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14303 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14304 Document removal of -traditional mode for compilation, and
14305 remove documentation only relevant to that mode.
14306
14307 * config/nextstep.h, config/ptx4.h, config/svr4.h,
14308 config/convex/convex.h, config/d30v/d30v.h,
14309 config/i386/dgux.h, config/i386/osf1elf.h,
14310 config/i386/osfelf.h, config/i386/osfrose.h,
14311 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14312 config/m68k/hp310.h, config/m88k/dgux.h,
14313 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14314 config/m88k/m88k.h, config/m88k/openbsd.h,
14315 config/mips/abi64.h, config/mips/osfrose.h,
14316 config/mips/svr4-5.h, config/mips/svr4-t.h,
14317 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14318 config/stormy16/stormy16.h: Remove all references to
14319 -traditional from target specs. Delete all mention of the
14320 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
14321 delete a couple of commented-out definitions of
14322 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14323 to -traditional.
14324
14325 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14326 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14327
14328 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14329
14330 * mklibgcc.in: Don't use \n in a line subject to
14331 interpretation by echo.
14332
14333 2002-02-27 Graham Stott <grahams@redhat.com>
14334
14335 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14336 Constify NAME.
14337
14338 * loop.c (prescan_loop): Handle PARALLEL.
14339
14340 * unroll.c (loop_iterations): Return 0 if the add_val for
14341 a BIV is REG.
14342
14343 * final.c (output_operand_lossage): Constify PFX_STR.
14344
14345 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14346
14347 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
14348
14349 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14350 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14351
14352 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
14353
14354 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14355
14356 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
14357
14358 * cpplex.c (_cpp_lex_token): Handle directives in macro
14359 arguments.
14360 * cpplib.c (_cpp_handle_directive): Save and restore state
14361 if parsing macro args when entering a directive.
14362 * cppmacro.c (collect_args): No need to handle directives
14363 in macro arguments.
14364 (enter_macro_context, replace_args): Use the original macro
14365 definition in case it was redefined whilst collecting arguments.
14366 doc:
14367 * cpp.texi: Update.
14368
14369 2002-02-26 David Edelsohn <edelsohn@gnu.org>
14370
14371 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14372 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14373 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14374 method on AIX.
14375 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14376 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14377 (load_toc_v4_PIC_2): Same.
14378
14379 2002-02-26 Alan Modra <amodra@bigpond.net.au>
14380
14381 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14382
14383 2002-02-26 Richard Henderson <rth@redhat.com>
14384
14385 * config/alpha/alpha.md (ashldi_se): Re-enable.
14386
14387 2002-02-26 Richard Henderson <rth@redhat.com>
14388
14389 * config/alpha/alpha.c (alpha_encode_section_info): Examine
14390 MODULE_LOCAL_P; improve commentary.
14391
14392 2002-02-26 Zack Weinberg <zack@codesourcery.com>
14393
14394 * doc/cpp.texi: Clarify documentation of relationship between
14395 #line and #include.
14396
14397 2002-02-26 Kazu Hirata <kazu@hxi.com>
14398
14399 * config/h8300/h8300-protos.h: Update the prototype for
14400 compute_logical_op_length. Add the prototype for
14401 compute_logical_op_cc.
14402 * config/h8300/h8300.c (compute_logical_op_length): Figure out
14403 code from operands.
14404 (compute_logical_op_cc): New.
14405 * config/h8300/h8300.md: Combine all the logical op patterns
14406 in HImode and SImode. Use compute_logical_op_cc.
14407
14408 2002-02-26 Kelley Cook <kelleycook@comcast.net>
14409
14410 * config/i386/i386.c (print_operand): Don't append ATT-style
14411 length suffixs to x87 opcodes when in Intel mode.
14412
14413 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
14414
14415 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14416 (init_emit_once): Update calls.
14417 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14418 (init_syntax_once): Prototype.
14419
14420 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
14421
14422 * pa-linux.h (LIB_SPEC): Update definition.
14423 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14424
14425 2002-02-26 Richard Henderson <rth@redhat.com>
14426
14427 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14428 if we emitted a stop bit.
14429
14430 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14431
14432 * configure.in (libgcc_visibility): Substitute.
14433 * configure: Rebuilt.
14434 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14435 defined symbols .hidden.
14436
14437 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14438
14439 * attribs.c (c_common_attribute_table): Add visibility.
14440 (handle_visibility_attribute): New function.
14441 * varasm.c (assemble_visibility): New function.
14442 * output.h (assemble_visibility): Add prototype.
14443 * tree.h (MODULE_LOCAL_P): Define.
14444 * crtstuff.c (__dso_handle): Use visibility attribute.
14445 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14446 for MODULE_LOCAL_P symbols too.
14447 * config/ia64/ia64.c (ia64_encode_section_info): Handle
14448 MODULE_LOCAL_P symbols the same way as local symbols.
14449 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14450 into .sdata/.sbss by the user.
14451 * doc/extend.texi (Function Attributes): Document visibility
14452 attribute.
14453
14454 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14455
14456 PR debug/5770
14457 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14458 STRING_CST initializer spanning the whole variable without
14459 embedded zeros.
14460 If expand_expr returned MEM, don't use it.
14461
14462 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
14463
14464 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14465 generate a die for the lexical block.
14466
14467 2002-02-26 Kazu Hirata <kazu@hxi.com>
14468
14469 * config/h8300/h8300-protos.h: Add a prototype for
14470 compute_logical_op_length.
14471 * config/h8300/h8300.c (compute_logical_op_length): New.
14472 * config/h8300/h8300.md (anonymous logical patterns): Use
14473 compute_logical_op_length for length.
14474
14475 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14476
14477 * dwarf2out.c (modified_type_die): Do not call type_main_variant
14478 for vectors.
14479 (gen_type_die): Same.
14480
14481 * attribs.c (handle_vector_size_attribute): Set debug information.
14482
14483 2002-02-26 Daniel Egger <degger@fhm.edu>
14484
14485 * config/rs6000/rs6000.md: Swap define_insn attributes to
14486 fix incorrect generation of merge high instructions instead
14487 of merge low.
14488
14489 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14490
14491 * c-typeck.c (really_start_incremental_init): Use
14492 bitsize_zero_node for vectors.
14493
14494 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14495
14496 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14497 ("*set_vrsave_internal"): Same.
14498
14499 2002-02-25 Richard Henderson <rth@redhat.com>
14500
14501 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14502 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
14503
14504 2002-02-25 Jakub Jelinek <jakub@redhat.com>
14505
14506 PR target/5755
14507 * config/i386/i386.c (ix86_return_pops_args): Only pop
14508 fake structure return argument if it was passed on the stack.
14509
14510 2002-02-25 Jason Merrill <jason@redhat.com>
14511
14512 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14513 RESULT_DECL.
14514
14515 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
14516
14517 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14518 link with shared_name only.
14519 * doc/invoke.texi (Link Options): Document new behavior.
14520
14521 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
14522
14523 * c-typeck.c (push_init_level): Handle vectors.
14524
14525 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
14526
14527 * config/sparc/sparc.c (const64_high_operand): Zero-extend
14528 operands of SPARC_SETHI_P.
14529 (input_operand): Likewise.
14530 (sparc_emit_set_const32): Likewise.
14531 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14532 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14533 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
14534 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14535 (movdi_insn_sp64_vis): Likewise.
14536 (movdi split, movdf split): Use SETHI32.
14537 * doc/md.texi: Document SPARC constraints L, M and N.
14538
14539 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
14540
14541 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14542 ("*set_vrsave_internal"): use mfspr for Darwin.
14543
14544 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14545 gen_get_vrsave_internal.
14546
14547 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14548
14549 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14550
14551 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
14552
14553 * cpplex.c (cpp_interpret_charconst): Get signedness or
14554 otherwise of wide character constants correct.
14555 * cppexp.c (lex): Get signedness of wide charconsts correct.
14556
14557 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14558
14559 * optabs.c (widen_operand): Only call convert_modes for
14560 promoted SUBREG if signedness matches.
14561 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14562
14563 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14564
14565 * cpplib.c (glue_header_name): Use local buffer to build up
14566 header name.
14567
14568 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14569
14570 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14571
14572 2002-02-23 Kazu Hirata <kazu@hxi.com>
14573
14574 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14575 H8/300[HS] separately.
14576 * config/h8300/h8300.md: Remove the early clobber constraint
14577 from bit field patterns.
14578
14579 2002-02-23 Kazu Hirata <kazu@hxi.com>
14580
14581 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14582 register_operand.
14583 (mulhisi3): Likewise.
14584 (umulqisi3): Likewise.
14585 (umulhisi3): Likewise.
14586
14587 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14588
14589 * cppinit.c (output_deps): Correct test for stdout output.
14590 (init_dependency_output): Cure warning.
14591
14592 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14593
14594 * expr.c (store_expr): When converting expression to promoted
14595 equivalent type, allow using SUBREG_REG of TARGET as the target
14596 of the expansion of EXP.
14597 * loop.c (basic_induction_var, case SUBREG): Always look inside.
14598 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14599 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14600 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14601 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14602
14603 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
14604
14605 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14606 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14607 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14608
14609 2002-02-23 Jakub Jelinek <jakub@redhat.com>
14610
14611 PR optimization/5747
14612 * loop.c (scan_loop): Update reg info if move_movables created new
14613 pseudos.
14614
14615 2002-02-23 David Edelsohn <edelsohn@gnu.org>
14616
14617 * gcc.c (init_gcc_spec): Revert last change.
14618
14619 2002-02-23 David Edelsohn <edelsohn@gnu.org>
14620
14621 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14622 gpc_reg_operand constraint.
14623
14624 2002-02-23 Alan Modra <amodra@bigpond.net.au>
14625
14626 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14627 Simplify comparison of `low'.
14628 (add_operand): Fix formatting.
14629 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
14630 (mask_operand): Disallow mask to wrap in 64-bit mode.
14631 (rs6000_stack_info): Remove redundant test setting push_p.
14632 (output_toc): Fix formatting.
14633 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14634 cc_reg_not_cr0_operand constraint.
14635 (booldi3, boolcdi3 splitters): Same.
14636
14637 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
14638
14639 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
14640
14641 2002-02-22 David Edelsohn <edelsohn@gnu.org>
14642
14643 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14644 gcc invoked with -shared-libgcc.
14645
14646 2002-02-22 Jakub Jelinek <jakub@redhat.com>
14647
14648 PR c++/5748
14649 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14650 decl if any of elements was TREE_USED.
14651
14652 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
14653
14654 * config/sparc/sol2.h: Don't include sys/mman.h.
14655 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14656 (arith_4096_operand): Don't throw high bits away.
14657 (const64_operand): Take sign extension of CONST_INTs into account.
14658 (const64_high_operand, sparc_emit_set_const32): Likewise.
14659 (GEN_HIGHINT64): Likewise.
14660 (sparc_emit_set_const64_quick1): Likewise.
14661 (const64_is_2insns): Likewise.
14662 (print_operand): Use trunc_int_for_mode for sign extension.
14663 * config/sparc/sparc.h (SMALL_INT32): Likewise.
14664 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14665 chars. Assume CONST_INT is already properly sign-extended.
14666 (movdi split): Sign-extend each SImode part.
14667 (andsi3 split): Don't mask high bits off, so that result
14668 remains properly sign-extend.
14669 (iorsi3 split): Likewise.
14670 (xorsi3 split): Likewise.
14671
14672 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
14673
14674 * fold-const.c (fold): Fix typo in comments.
14675
14676 2002-02-21 Diego Novillo <dnovillo@redhat.com>
14677
14678 * Makefile.in (langhooks.o): Update dependencies.
14679
14680 2002-02-21 Diego Novillo <dnovillo@redhat.com>
14681
14682 * langhooks.c: Include flags.h.
14683
14684 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
14685
14686 * testsuite/gcc.dg/attr-alwaysinline.c: New.
14687
14688 * c-common.c (c_common_post_options): Set inline trees by
14689 default.
14690
14691 * doc/extend.texi (Function Attributes): Document always_inline
14692 attribute.
14693 Update documentation about inlining when not optimizing.
14694
14695 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14696
14697 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14698 unless DECL_ALWAYS_INLINE.
14699
14700 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14701 unless DECL_ALWAYS_INLINE.
14702 (c_disregard_inline_limits): Disregard if always_inline set.
14703
14704 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14705 Disregard if always_inline set.
14706 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14707 unless DECL_ALWAYS_INLINE.
14708
14709 * attribs.c (handle_always_inline_attribute): New.
14710 (c_common_attribute_table): Add always_inline.
14711
14712 * config/rs6000/altivec.h: Add prototypes for builtins
14713 requiring the always_inline attribute.
14714
14715 2002-02-21 Eric Christopher <echristo@redhat.com>
14716
14717 * expmed.c (store_bit_field): Try to simplify the subreg
14718 before generating a new one when when the mode size of
14719 value is less than maxmode.
14720
14721 2002-02-21 Richard Henderson <rth@redhat.com>
14722
14723 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14724 than gen_rtx_PLUS to form the sum.
14725 * explow.c (force_reg): Rearrange to not allocate new pseudo
14726 when force_operand returns a register.
14727 * expr.c (expand_assignment): Allow offset_rtx expansion to
14728 return a sum. Do not force addresses into registers.
14729 (expand_expr): Likewise.
14730 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14731 to canonicalize arithmetic that didn't simpify.
14732 (simplify_plus_minus): New argument force; update
14733 all callers. Don't split CONST unless we can do something with it,
14734 and wouldn't lose the constness of the operands.
14735
14736 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14737 that we generated earlier.
14738
14739 2002-02-21 Tom Tromey <tromey@redhat.com>
14740
14741 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14742 (output_line_info): Use constant `1', with a long explanatory
14743 comment.
14744 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14745
14746 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
14747
14748 * jump.c (redirect_jump): If old label has no UID, don't try to
14749 delete it.
14750
14751 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
14752
14753 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14754 If input is constant, do shifts at compile time.
14755
14756 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
14757
14758 * doc/extend.texi: Fix some more overfull hboxes.
14759
14760 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14761
14762 PR optimization/4994
14763 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14764 register moves.
14765
14766 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14767
14768 PR c++/4574
14769 * expr.h (expand_and): Add mode argument.
14770 * expmed.c (expand_and): Add mode argument.
14771 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14772 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14773 * except.c (expand_builtin_extract_return_addr): Likewise.
14774 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14775 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14776 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14777 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14778 * config/c4x/c4x.md: Use GEN_INT (x) instead of
14779 gen_rtx (CONST_INT, VOIDmode, x).
14780
14781 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14782
14783 PR c/4697:
14784 * stmt.c (warn_if_unused_value): Move side effects test once more.
14785
14786 2002-02-20 Torbjorn Granlund <tege@swox.com>
14787
14788 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
14789 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
14790
14791 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
14792
14793 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14794 SUBREG or ZERO_EXTEND.
14795
14796 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
14797
14798 * sh.h (current_function_anonymous_args): Remove.
14799 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14800 of current_function_varargs and current_function_stdarg is set.
14801 * sh.c (sh_expand_prologue): Check current_function_varargs /
14802 current_function_stdarg / TARGET_SH5 instead of
14803 current_function_anonymous_args.
14804
14805 * sh64.h (TARGET_VERSION): Define.
14806
14807 2002-02-20 David Edelsohn <edelsohn@gnu.org>
14808
14809 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14810 VRSAVE_REGNO on TARGET_ALTIVEC.
14811
14812 2002-02-20 Alan Modra <amodra@bigpond.net.au>
14813
14814 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14815 bits of SImode const_int.
14816 (includes_rshift_p): Likewise.
14817 (print_operand): Call mask_operand and mask64_operand with correct
14818 mode.
14819 (rs6000_output_function_epilogue): Pad traceback table to word.
14820 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14821 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14822 mask64_operand with correct mode.
14823 (FUNCTION_ARG_REGNO_P): Correct parentheses.
14824
14825 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14826
14827 PR debug/4461
14828 * varasm.c (get_pool_constant_mark): New.
14829 * rtl.h (get_pool_constant_mark): Add prototype.
14830 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14831 be represented if it has not been output.
14832
14833 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
14834
14835 * combine.c (do_SUBST): Sanity check substitutions of
14836 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14837 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14838 CONST_INT into its operand.
14839 (known_cond): Likewise, for ZERO_EXTEND.
14840 * simplify-rtx.c (simplify_unary_operation): Fix condition to
14841 allow for simplification of wide modes. Reject CONST_INTs in
14842 ZERO_EXTEND when their actual mode is not given.
14843
14844 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
14845
14846 * c-decl.c (pushdecl): If no global declaration is found for an
14847 extern declaration in block scope, try a limbo one.
14848
14849 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14850
14851 PR c++/4401
14852 * c-common.c (pointer_int_sum): Moved from...
14853 * c-typeck.c (pointer_int_sum): ...here.
14854 * c-common.h (pointer_int_sum): Add prototype.
14855
14856 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14857
14858 PR c++/5713
14859 * c-decl.c (duplicate_decls): Return 0 if issued error about
14860 redeclaration.
14861
14862 2002-02-20 Roger Sayle <roger@eyesopen.com>
14863 Jakub Jelinek <jakub@redhat.com>
14864
14865 PR c/4389
14866 * tree.c (host_integerp): Ensure that the constant integer is
14867 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14868 when pos is zero or non-zero respectively. Clarify comment.
14869 * c-format.c (check_format_info_recurse): Fix host_integerp
14870 usage; the pos argument should be zero when assigning to a
14871 signed HOST_WIDE_INT.
14872
14873 2002-02-20 Richard Henderson <rth@redhat.com>
14874
14875 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14876 of the operand, rather than assuming TImode.
14877 (ix86_expand_binop_builtin): Cope with commutative patterns
14878 using nonimmediate_operand for both operands.
14879 (ix86_expand_timode_binop_builtin): Likewise.
14880 (ix86_expand_store_builtin): Validate operand 1.
14881 (ix86_expand_unop1_builtin): Likewise.
14882
14883 2002-02-20 Philip Blundell <philb@gnu.org>
14884
14885 PR 5705
14886 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14887
14888 2002-02-20 Richard Henderson <rth@redhat.com>
14889
14890 PR c/5615
14891 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14892
14893 2002-02-20 Tom Tromey <tromey@redhat.com>
14894
14895 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14896 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14897 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14898 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14899 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14900 unconditionally.
14901
14902 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14903
14904 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14905 for (const_int 0) in X not just INTVAL.
14906
14907 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
14908
14909 * doc/extend.texi: Avoid or reduce overfull hboxes.
14910
14911 2002-02-20 Diego Novillo <dnovillo@redhat.com>
14912
14913 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14914 operations if the field does not start at a mode boundary.
14915
14916 2001-02-20 Joel Sherrill <joel@OARcorp.com>
14917
14918 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14919 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14920 Also done for -Acpu and -Amachine.
14921
14922 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
14923
14924 * cppinit.c (init_dependency_output): Take deps output file
14925 from -o if none given with -MF. Suppress normal output.
14926 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
14927 * doc/cpp.texi, doc/invoke.texi: Update.
14928
14929 2002-02-19 Zack Weinberg <zack@codesourcery.com>
14930
14931 * toplev.c (output_quoted_string): Write unprintable
14932 characters with octal escapes.
14933
14934 2002-02-19 David Edelsohn <edelsohn@gnu.org>
14935
14936 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14937 really_call_used[VRSAVE_REGNO] if not Altivec.
14938
14939 2002-02-19 Alan Modra <amodra@bigpond.net.au>
14940
14941 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14942 MODE_MASK.
14943 (constant_pool_expr_1): Fix formatting.
14944 (rs6000_legitimize_reload_address): Likewise.
14945
14946 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14947
14948 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14949 now that we have one.
14950
14951 2002-02-19 Zack Weinberg <zack@codesourcery.com>
14952
14953 * tree.h (struct tree_common): Remove aux. Add unused_0 at
14954 end of first block of bitfields (which was only seven bits);
14955 rename dummy to unused_1; remove comment which is no longer true.
14956
14957 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14958
14959 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14960
14961 2002-02-19 Philip Blundell <pb@nexus.co.uk>
14962
14963 PR 5399
14964 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14965 if generating PIC.
14966
14967 PR 5054
14968 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14969 arm_is_longcall_p rather than inspecting call-type cookie
14970 directly.
14971 (call_value_insn) [TARGET_THUMB]: Likewise.
14972
14973 2002-02-19 Graham Stott <grahams@redhat.com>
14974
14975 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14976
14977 2002-02-19 David Edelsohn <edelsohn@gnu.org>
14978
14979 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14980 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14981 (FP_SAVE_INLINE): Delete.
14982
14983 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14984 * config/rs6000/eabi.asm: Remove ABI save restore routines.
14985 * config/rs6000/t-ppccomm: Build crtsavres.o.
14986 * config/rs6000/crtsavres.asm: New file.
14987
14988 2002-02-19 Philip Blundell <philb@gnu.org>
14989
14990 * config/arm/arm.c (use_return_insn): Don't reject interrupt
14991 functions.
14992 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14993 (output_return_instruction): Allow interrupt functions to return with
14994 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
14995 (arm_expand_prologue): Subtract 4 before stacking LR in an
14996 interrupt function.
14997
14998 2002-02-19 Philip Blundell <pb@nexus.co.uk>
14999
15000 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15001 decl, not just FUNCTION_DECL.
15002 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15003 (arm_assemble_integer): Likewise.
15004 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15005 marked local.
15006
15007 2002-02-19 matthew green <mrg@eterna.com.au>
15008
15009 * config.gcc (sparc-*-netbsdelf*): Enable target.
15010 (sparc64-*-netbsd*): New target.
15011 * config/sparc/netbsd-elf.h: New file.
15012 * config/sparc/t-netbsd64: New file.
15013
15014 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15015
15016 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15017
15018 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
15019
15020 * doc/invoke.texi: explicitly list the style guidelines that
15021 -Weffc++ checks for.
15022
15023 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
15024
15025 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15026
15027 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
15028
15029 PR other/5718
15030 * gcc.c (cpp_unique_options): Treat -o as indicating object file
15031 only if not -E. If -E, pass -o through to the preprocessor.
15032
15033 2002-02-19 Kazu Hirata <kazu@hxi.com>
15034
15035 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15036 register number with an appropriate macro.
15037
15038 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15039
15040 * doc/rtl.texi (Constants): Close @code tag.
15041
15042 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
15043
15044 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15045 ("mmx_uavgv4hi3"): Same.
15046 ("pmulhrwv4hi3"): Same.
15047
15048 * tree-inline.c (walk_tree): Handle vectors.
15049
15050 * c-common.c (constant_expression_warning): Handle vectors.
15051 (overflow_warning): Same.
15052
15053 * sched-deps.c (sched_analyze_2): Handle vectors.
15054
15055 * rtlanal.c (rtx_unstable_p): Handle vectors.
15056 (rtx_varies_p): Same.
15057 (count_occurrences): Same.
15058 (regs_set_between_p): Same.
15059 (modified_between_p): Same.
15060 (modified_in_p): Same.
15061 (volatile_insn_p): Same.
15062 (volatile_refs_p): Same.
15063 (side_effects_p): Same.
15064 (may_trap_p): Same.
15065 (inequality_comparisons_p): Same.
15066 (replace_regs): Same.
15067 (computed_jump_p_1): Same.
15068
15069 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
15070 argument.
15071 (inner_mode_array): New.
15072 (copy_rtx): Handle vectors.
15073 (copy_most_rtx): Same.
15074 (rtx_equal_p): Same.
15075 (get_mode_alignment): Adjust for vectors.
15076
15077 * resource.c (mark_referenced_resources): Handle vectors.
15078 (mark_set_resources): Same.
15079
15080 * reload1.c (eliminate_regs): Handle vectors.
15081 (elimination_effects): Same.
15082 (scan_paradoxical_subregs): Same.
15083
15084 * reload.c (subst_reg_equivs): Handle vectors.
15085
15086 * regrename.c (scan_rtx): Handle vectors.
15087
15088 * regclass.c (reg_scan_mark_refs): Handle vectors.
15089
15090 * recog.c (find_single_use_1): Handle vectors.
15091
15092 * local-alloc.c (equiv_init_varies_p): Handle vectors.
15093 (contains_replace_regs): Same.
15094 (memref_referenced_p): Same.
15095
15096 * integrate.c (copy_rtx_and_substitute): Handle vectors.
15097 (subst_constants): Same.
15098
15099 * genattrtab.c (attr_copy_rtx): Handle vectors.
15100 (encode_units_mask): Same.
15101 (clear_struct_flag): Same.
15102 (count_sub_rtxs): Same.
15103
15104 * gcse.c (want_to_gcse_p): Handle vectors.
15105 (oprs_unchanged_p): Same.
15106 (hash_expr_1): Same.
15107 (oprs_not_set_p): Same.
15108 (expr_killed_p): Same.
15109 (compute_transp): Same.
15110 (store_ops_ok): Same.
15111
15112 * function.c (purge_addressof_1): Do not allow paradoxical subregs
15113 of vectors.
15114 (fixup_var_refs_1): Same.
15115 (instantiate_virtual_regs_1): Same.
15116
15117 * fold-const.c (operand_equal_p): Handle vectors.
15118 (fold): Same.
15119 (rtl_expr_nonnegative_p): Same.
15120
15121 * flow.c (mark_used_regs): Handle vectors.
15122
15123 * df.c (df_uses_record): Handle vectors.
15124
15125 * cselib.c (cselib_subst_to_values): Handle vectors.
15126 (cselib_mem_conflict_p): Same.
15127 (hash_rtx): Same.
15128
15129 * cse.c (canon_reg): Handle vectors.
15130 (fold_rt): Same.
15131 (cse_process_notes): Same.
15132 (count_reg_usage): Same.
15133 (canon_hash): Same.
15134
15135 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
15136
15137 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
15138
15139 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
15140 (gen_rtx): Handle CONST_VECTOR.
15141 (gen_const_vector_0): New.
15142 (copy_rtx_if_shared): CONST_VECTORs can be shared.
15143 (reset_used_flags): Same.
15144 (copy_insn_1): Same.
15145 (initializer_constant_valid_p): Handle VECTOR_CST.
15146
15147 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
15148
15149 * doc/rtl.texi (Constants): Document const_vector.
15150 (CONST0_RTX): Update for vectors.
15151 (RTL sharing): Same.
15152
15153 * print-tree.c (print_node): Add case for VECTOR_CST.
15154
15155 * tree.h (TREE_VECTOR_CST_ELTS): New.
15156 (struct tree_vector): New.
15157 (union tree_node): Add vector node.
15158 (build_vector): Add prototype.
15159
15160 * tree.def (VECTOR_CST): New.
15161
15162 * tree.c (build_vector): New.
15163
15164 * expmed.c (make_tree): Handle CONST_VECTOR.
15165
15166 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
15167 (CONST_VECTOR_ELT): New.
15168 (CONST_VECTOR_NUNITS): New.
15169
15170 * machmode.h (GET_MODE_INNER): New.
15171 (DEF_MACHMODE): Accept 8th arg.
15172
15173 * machmode.def: Add 8th argument for vector inner mode.
15174 Add inner vector modes for vectors.
15175
15176 * rtl.def (VEC_CONST): Remove.
15177 (CONST_VECTOR): New.
15178
15179 * expr.c (clear_storage): Allow vectors.
15180 (is_zeros_p): Handle VECTOR_CST.
15181
15182 * varasm.c (output_constant_pool): Handle vectors.
15183 (rtx_const): Add veclo and vechi fields.
15184 (kind): Add RTX_VECTOR.
15185 (decode_rtx_const): Add case for vector.
15186
15187 * config/rs6000/rs6000-protos.h: Add zero_constant.
15188
15189 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15190 constants. Force easy vector constants into memory.
15191 (easy_vector_constant): New.
15192 (emit_easy_vector_constant): New.
15193 (rs6000_legitimize_reload_address): Do not generate bad reloads on
15194 darwin.
15195
15196 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15197 instruction does.
15198 ("altivec_lvxl"): Same.
15199 (altivec_lvebx): Same.
15200 (altivec_lvehx): Same.
15201 (altivec_lvewx): Same.
15202 ("*movv4si_const0"): New.
15203 ("*movv4sf_const0"): New.
15204 ("*movv8hi_const0"): New.
15205 ("*movv16qi_const0"): New.
15206
15207 2002-02-18 Kazu Hirata <kazu@hxi.com>
15208
15209 * config/h8300/h8300.c (notice_update_cc): Use
15210 cc_status.value2.
15211
15212 2002-02-18 Kazu Hirata <kazu@hxi.com>
15213
15214 * config/h8300/h8300.md (divmod patterns): Change the
15215 constraints for operands[1] to register_operand.
15216
15217 2002-02-18 Kazu Hirata <kazu@hxi.com>
15218
15219 * config/h8300/h8300-protos.h: Remove the prototype for
15220 p_operand.
15221 * config/h8300/h8300.c (p_operand): Remove.
15222 * config/h8300/h8300.md: Replace p_operand with
15223 const_int_operand.
15224
15225 2002-02-18 Philip Blundell <pb@nexus.co.uk>
15226
15227 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15228 comment.
15229 (output_return_instruction): Allow use of LDR to unstack
15230 return addresss even for interrupt handlers or when
15231 interworking. If compiling for ARMv5, use interworking-safe
15232 return instructions by default. Remove duplicated code and
15233 lengthy "strcat" sequences.
15234
15235 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15236
15237 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15238 (LINK_EH_SPEC): Define.
15239 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15240
15241 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
15242
15243 * config/s390/s390.c (s390_emit_prologue): Do not set the
15244 frame_related flag for call-clobbered registers.
15245
15246 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
15247
15248 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15249 (construct_container): Fix handling of SSE operands.
15250 (ix86_expand_builtin): Fix handling of 64bit pointers.
15251 (mmx_maskmovq_rex): New pattern.
15252
15253 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
15254
15255 * regrename.c (kill_set_value): Handle subregs properly.
15256
15257 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
15258
15259 * objc/objc-act.c (handle_impent): Remove leading '*'
15260 from objc_class_name.
15261
15262 2002-02-17 Richard Henderson <rth@redhat.com>
15263
15264 * config/alpha/alpha.c (some_small_symbolic_operand,
15265 some_small_symbolic_operand_1, split_small_symbolic_operand,
15266 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15267 Handle small SYMBOL_REFs anywhere, not just inside memories.
15268 * config/alpha/alpha-protos.h: Update.
15269 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15270 * config/alpha/alpha.md (small symbolic operand splitter): Update.
15271
15272 2002-02-17 Roland McGrath <roland@frob.com>
15273
15274 * config.gcc (powerpc-*-gnu-gnualtivec*,
15275 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15276 * config/rs6000/gnu.h: New file.
15277 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15278 Grok "gnu" in rs6000_abi_name.
15279 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15280 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15281 Grok -mcall-gnu analogous to -mcall-linux et al.
15282 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15283 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15284 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15285
15286 2002-02-17 Jakub Jelinek <jakub@redhat.com>
15287
15288 PR c/3444:
15289 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
15290 shortening.
15291
15292 2002-02-17 Philipp Thomas <pthomas@suse.de>
15293
15294 * config/cris/cris.h: Undefine STARTFILE_SPEC and
15295 ENDFILE_SPEC before (re)defining them.
15296
15297 2002-02-17 Kazu Hirata <kazu@hxi.com>
15298
15299 * config/h8300/h8300.c: Fix formatting.
15300 * config/h8300/h8300.h: Likewise.
15301
15302 2002-02-17 Philipp Thomas <pthomas@suse.de>
15303
15304 * doc/tm.texi: Explain why empty strings should not be
15305 marked for translation.
15306
15307 2002-02-17 Philipp Thomas <pthomas@suse.de>
15308
15309 * final.c (output_operand_lossage): Changed to accept
15310 printf style arguments. Change calls where necessary.
15311 * output.h (output_operand_lossage): Change declaration
15312 accordingly. Update copyright.
15313 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15314 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15315 Update copyright date where necessary.
15316
15317 * config/i386/i386.c (print_operand): Likewise. Remove use of
15318 sprintf.
15319
15320 * config/cris/cris.c (cris_operand_lossage): Likewise.
15321 Rename parameter so that exgettext recognizes it as
15322 translatable message.
15323 (LOSE_AND_RETURN): Rename parameter to msgid.
15324
15325 2002-02-17 Kazu Hirata <kazu@hxi.com>
15326
15327 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15328 hard coded register number with an appropriate macro.
15329 (HARD_REGNO_MODE_OK): Likewise.
15330 (ARG_POINTER_REGNUM): Likewise.
15331 (STATIC_CHAIN_REGNUM): Likewise.
15332 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15333 * config/h8300/h8300.md (define_constants): Define more
15334 register numbers.
15335
15336 2002-02-17 Philipp Thomas <pthomas@suse.de>
15337
15338 * config/i386/i386.h: Don't mark empty strings for translation.
15339
15340 2002-02-16 H.J. Lu <hjl@gnu.org>
15341
15342 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15343
15344 2002-02-16 Zack Weinberg <zack@codesourcery.com>
15345
15346 * cppinit.c (merge_include_chains): Check for brack being
15347 NULL before attempting to merge it with qtail.
15348
15349 2002-02-16 Andrew Cagney <ac131313@redhat.com>
15350
15351 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15352 DBX_DEBUG.
15353
15354 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15355
15356 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15357
15358 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15359
15360 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15361 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15362 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15363
15364 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15365
15366 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
15367 now only if !TARGET_FIX.
15368 (*movsi_nt_vms_fix): New pattern.
15369
15370 2002-02-16 Douglas B Rupp <rupp@gnat.com>
15371
15372 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15373 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15374 (alpha_sa_mask, alpha_sa_size): Reflect above change.
15375 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15376 (alpha_start_function, alpha_expand_epilogue): Likewise.
15377 (unicosmk_gen_dsib): Likewise.
15378
15379 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15380
15381 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15382
15383 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
15384
15385 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
15386 check_and_change_labels, s390_final_chunkify): Delete.
15387 (s390_split_branches, s390_chunkify_pool): New functions.
15388 (s390_function_prologue): Call them.
15389
15390 * config/s390/s390.h (S390_REL_MAX): Delete.
15391 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15392
15393 * config/s390/s390.md (cjump, icjump, jump): Fix length
15394 attribute calculation.
15395
15396
15397 2002-02-15 David Edelsohn <edelsohn@gnu.org>
15398
15399 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15400 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15401
15402 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15403
15404 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15405 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15406 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15407
15408 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
15409
15410 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15411
15412 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
15413
15414 * reload.c (find_dummy_reload): Check that an output register
15415 is valid for its mode.
15416
15417 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
15418
15419 * combine.c (known_cond): After replacing the REG of a SUBREG, try
15420 to simplify it.
15421
15422 * function.c (assign_parms): Demote promoted argument passed by
15423 transparent reference.
15424
15425 2001-02-14 Joel Sherrill <joel@OARcorp.com>
15426
15427 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15428 -Acpu() and -Amachine() to eliminate warnings.
15429
15430 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
15431
15432 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15433
15434 2002-02-14 Kazu Hirata <kazu@hxi.com>
15435
15436 * config/h8300/h8300-protos.h: Update the prototype for
15437 const_costs.
15438 * config/h8300/h8300.c (const_costs): Treat SET as a little
15439 more expensive operation.
15440 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15441 reference to const_costs.
15442
15443 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
15444
15445 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15446
15447 2002-02-14 Jakub Jelinek <jakub@redhat.com>
15448
15449 PR c/5503:
15450 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15451 use arguments from newtype.
15452
15453 2002-02-13 Eric Christopher <echristo@redhat.com>
15454
15455 * config/mips/mips.c (override_options): Add check for march/mipsX
15456 on the same command line. Fix error message in cpu processing.
15457 Remove architecture and ISA checks.
15458
15459 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
15460
15461 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
15462
15463 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
15464
15465 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
15466
15467 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15468 alternatives.
15469 ("*movv8hi_internal1"): Same.
15470 ("*movv16qi_internal1"): Same.
15471 ("*movv4sf_internal1"): Same.
15472
15473 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15474 not push_reload for altivec modes.
15475
15476 2002-02-13 Joel Sherrill <joel@OARcorp.com>
15477
15478 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15479 all RTEMS targets including removal of #includes from config/*/rtems*.h
15480 file and adding them to tm_file setting. Added xm_defines=POSIX to
15481 many targets.
15482 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15483 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15484 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15485 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15486 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15487 config/m68k/rtemself.h: Ditto.
15488 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15489 config/mips/rtems64.h: Ditto.
15490 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15491 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15492 Ditto.
15493 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15494 config/sparc/rtemself.h: Ditto.
15495 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15496 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15497 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15498 more like arm-elf.
15499 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15500 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15501 target made more similar to i386-elf.
15502 * config/i386/t-rtems-i386: Added soft float support and multilibs.
15503 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15504 be similar to config/m68k/t-m68kelf.
15505 * gthr-rtems.h: Encapsulate with extern "C" for C++.
15506
15507 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
15508
15509 * regmove.c (kill_value): Handle subregs.
15510
15511 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
15512
15513 * i386.md (mul patterns): Allow memory operand to be first;
15514 add expanders where needed; fix constraints.
15515 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15516 Allow memory operand to be the first.
15517
15518 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15519 operands.
15520
15521 2002-02-13 Jakub Jelinek <jakub@redhat.com>
15522
15523 PR c/5681:
15524 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15525 GET_MODE (x).
15526
15527 2002-02-13 Jakub Jelinek <jakub@redhat.com>
15528
15529 PR optimization/5547:
15530 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15531 all valid IA-32 address modes involving non-scaled %ebx and
15532 GOT/GOTOFF as displacement.
15533
15534 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
15535
15536 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15537 after emitting ltorg insns.
15538
15539 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15540 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15541 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15542 *abssf2): Fix "op_type" attribute.
15543
15544 2002-02-13 Douglas B Rupp <rupp@gnat.com>
15545
15546 * mkconfig.sh: Avoid using a subshell redirect.
15547 ($output.T): Change to $(output)T.
15548 (ENABLE_NLS): Remove unneeded undef.
15549
15550 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15551 * config/alpha/x-vms (libsubdir): Define.
15552
15553 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15554 register frame procedures. Optimize retrieving context.
15555
15556 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15557 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15558 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15559
15560 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15561
15562 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15563 Make same change as for find_base_value.
15564
15565 2002-02-13 Kazu Hirata <kazu@hxi.com>
15566
15567 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15568 of QImode and SImode.
15569
15570 2002-02-13 Kazu Hirata <kazu@hxi.com>
15571
15572 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15573 length computation of movsi.
15574 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15575
15576 2002-02-13 Kazu Hirata <kazu@hxi.com>
15577
15578 * config/h8300/h8300.md (subqi3): Tighten the predicate for
15579 operands[2] to register_operand.
15580
15581 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
15582
15583 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15584
15585 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
15586
15587 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15588 for altivec_lvx* and altivec_stvx*.
15589 ("*movv4si_internal"): Add constraint for loading from GPRs.
15590 ("*movv8hi_internal1"): Same.
15591 ("*movv16qi_internal1"): Same.
15592 ("*movv4sf_internal1"): Same.
15593
15594 * config/rs6000/rs6000.c (altivec_register_operand): New.
15595
15596 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15597 altivec_register_operand.
15598
15599 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
15600
15601 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15602 handle SYMBOL_REF.
15603
15604 2002-02-13 Stan Shebs <shebs@apple.com>
15605
15606 * c-typeck.c (digest_init): Handle vectors.
15607 (really_start_incremental_init): Same.
15608 (pop_init_level): Same.
15609 (process_init_element): Same.
15610
15611 * varasm.c (output_constant): Same.
15612
15613 * expr.c (clear_storage): Same.
15614 (store_constructor): Same.
15615
15616 2002-02-12 Eric Christopher <echristo@redhat.com>
15617
15618 * explow.c (hard_function_value): Add comment explaining
15619 signed/unsigned comparison.
15620
15621 2002-02-12 Jakub Jelinek <jakub@redhat.com>
15622
15623 * jump.c (never_reached_warning): Add finish argument.
15624 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15625 real insn after end.
15626 * rtl.h (never_reached_warning): Adjust prototype.
15627 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15628 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15629 never_reached_warning.
15630
15631 2002-02-12 Graham Stott <grahams@redhat.com>
15632
15633 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15634
15635 2002-02-12 Kazu Hirata <kazu@hxi.com>
15636
15637 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15638 logical shifts on H8/300.
15639 (shift_alg_si): Improve several shifts on H8/300.
15640 (get_shift_alg): Likewise.
15641
15642 2002-02-12 Graham Stott <grahams@redhat.com>
15643
15644 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15645
15646 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15647
15648 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15649 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15650
15651 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
15652
15653 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15654 non-CONST_INT through default_assemble_integer.
15655 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15656 <case 8>: Abort for CONST_DOUBLE.
15657
15658 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15659
15660 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15661 is specified.
15662 * config/pa/pa-linux.h (LIB_SPEC): Delete.
15663 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15664
15665 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
15666
15667 * config/stormy16/stormy16.md (zero_extendqihi2): New.
15668
15669 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
15670
15671 * regrename.c (regrename_optimize): Don't accept a
15672 part-clobbered register if the replaced register is not part
15673 clobbered.
15674
15675 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15676 take padding into account when computing the argument value.
15677
15678 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15679
15680 * combine.c (try_combine): Apply substitutions in
15681 CALL_INSN_FUNCTION_USAGE too.
15682
15683 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
15684
15685 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15686 __builtin_altivec_abs*.
15687 (bdesc_abs): New.
15688
15689 * config/rs6000/rs6000.h (rs6000_builtins): Add
15690 ALTIVEC_BUILTIN_ABS*.
15691
15692 * config/rs6000/altivec.h: Use const char for builtins expecting
15693 literals.
15694 (vec_abs): New versions for C and C++.
15695 (vec_abss): Same.
15696
15697 2002-02-10 Kazu Hirata <kazu@hxi.com>
15698
15699 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15700 using Pmode.
15701
15702 2002-02-10 Kazu Hirata <kazu@hxi.com>
15703
15704 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15705 constant definition from h8300.md.
15706 (FRAME_POINTER_REGNUM): Likewise.
15707 * config/h8300/h8300.md (define_constants): Add FP_REG.
15708
15709 2002-02-10 Kazu Hirata <kazu@hxi.com>
15710
15711 * config/h8300/h8300.c (print_operand): Remove redundant code.
15712
15713 2002-02-10 Kazu Hirata <kazu@hxi.com>
15714
15715 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15716 * config/h8300/h8300.c (byte_reg): Make it static.
15717
15718 2002-02-10 Richard Henderson <rth@redhat.com>
15719
15720 PR c/5623
15721 * c-typeck.c (incomplete_type_error): Handle flexible array members.
15722
15723 2002-02-10 Richard Henderson <rth@redhat.com>
15724
15725 PR c++/5624
15726 * tree.c (append_random_chars): Don't abort if main_input_filename
15727 does not exist.
15728
15729 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
15730
15731 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15732
15733 2002-02-10 Kazu Hirata <kazu@hxi.com>
15734
15735 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
15736 (pushhi1): Likewise.
15737
15738 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
15739
15740 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15741 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15742
15743 2002-02-09 David O'Brien <obrien@FreeBSD.org>
15744
15745 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15746 remove MASK_VIS.
15747 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
15748
15749 2002-02-09 Kazu Hirata <kazu@hxi.com>
15750
15751 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15752 a half of an SImode register on H8/300.
15753
15754 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
15755
15756 * i386.md (movdi_2): Add missing '!'.
15757
15758 2002-02-09 Kazu Hirata <kazu@hxi.com>
15759
15760 * config/h8300/h8300.h: Fix formatting. Remove commented-out
15761 definitions.
15762
15763 2002-02-09 Kazu Hirata <kazu@hxi.com>
15764
15765 * config/h8300/h8300.md (length): Correct the distance valid
15766 for the short branch.
15767
15768 2002-02-09 Kazu Hirata <kazu@hxi.com>
15769
15770 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15771
15772 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15773
15774 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15775 registers in SImode.
15776 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15777 part-clobbered.
15778
15779 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15780 patch.
15781
15782 Contribute sh64-elf.
15783 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15784 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15785 (sh_cannot_modify_jumps_p): New function.
15786 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15787 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15788 (sh_ms_bitfield_layout_p): New function.
15789 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
15790 Zack Weinberg <zack@codesourcery.com>
15791 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15792 expand_simple_binop instead of expand_binop.
15793 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
15794 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15795 use of .quad and .uaquad.
15796 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15797 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15798 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15799 * config/sh/sh.md (movdi_const, movdi_const_32bit,
15800 movdi_const_16bit): Make sure all CONSTs have modes.
15801 (sym2PIC): Ditto, but by adjusting all callers.
15802 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15803 if the prologue calls the SHmedia argument decoder or register
15804 saver.
15805 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15806 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15807 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15808 (sh_expand_epilogue): Don't emit USE of return target register.
15809 (prepare_move_operands): Legitimize DImode PIC addresses.
15810 (sh_media_register_for_return): Skip tr0, used to initialize the
15811 PIC register.
15812 (sh_expand_prologue): Remove explicit USE of return register.
15813 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
15814 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
15815 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15816 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15817 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15818 EXTRA_CONSTRAINT_T.
15819 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15820 (MOVI_SHORI_BASE_OPERAND_P): New.
15821 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15822 (EXTRA_CONSTRAINT_T): Define in terms of them.
15823 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15824 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15825 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15826 alternatives supporting TARGET_REGS.
15827 (UNSPEC_GOTPLT): New constant.
15828 (movdi split): Move incrementing of LABEL_NUSES...
15829 (movdi_const, movdi_const_32bit): Here. Use
15830 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15831 (movdi_const_16bit): New.
15832 (call, call_value) [flag_pic]: Use GOTPLT.
15833 (call_pop, call_value_pop): New expands.
15834 (call_pop_compact, call_pop_rettramp): New insns.
15835 (call_value_pop_compact, call_value_pop_rettramp): New insns.
15836 (sibcall) [flag_pic]: Use GOT.
15837 (builtint_setjmp_receiver): Remove bogus, unused expand.
15838 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15839 (*pt, *ptb, ptrel): New insns.
15840 (sym2GOT): Handle DImode GOT.
15841 (sym2GOTPLT, symGOTPLT2reg): New expands.
15842 (sym2PIC): New expand.
15843 (shcompact_return_tramp): Use GOTPLT to return trampoline.
15844 (shcompact_return_tramp_i): Use return register explicitly.
15845 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15846 disable flag_reorder_blocks.
15847 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15848 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15849 clobbers, for clarity.
15850 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15851 restoring of r0 in macl as MAYBE_DEAD.
15852 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
15853 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15854 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15855 alter_subreg all over.
15856 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15857 reload, instead of emitting instructions that would require
15858 reloading.
15859 (casesi_load_media): Add missing modes.
15860 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
15861 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15862 as used if the argument decoder is called.
15863 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15864 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15865 Pmode, then extend it to DImode if necessary.
15866 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15867 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15868 constants in FPU-enabled SHmedia, let them be loaded from memory.
15869 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15870 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15871 Adjust whitespace in assembly output templates.
15872 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15873 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15874 mode of if_then_else.
15875 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
15876 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15877 sh.h.
15878 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
15879 Joern Rennecke <amylaar@redhat.com>
15880 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15881 (SUBTARGET_CPP_PTR_SPEC): New.
15882 (SUBTARGET_CPP_SPEC): Remove.
15883 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15884 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15885 Fix typo in previous checkin.
15886 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
15887 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15888 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
15889 Alexandre Oliva <aoliva@redhat.com>
15890 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15891 what single FP register can hold for SHmedia target.
15892 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15893 Alexandre Oliva <aoliva@redhat.com>
15894 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15895 Do not split into SUBREG.
15896 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
15897 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15898 and added new functions as specified in SH5 ABI r9.
15899 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
15900 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15901 8-byte boundary.
15902 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
15903 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15904 gen_consttable_4 and gen_consttable_8. Emit multiple labels
15905 and consttable_window_ends.
15906 2001-06-03 Graham Stott <grahams@redhat,com>
15907 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15908 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
15909 * config/sh/sh.c (print_operand): Handle floating-point pair,
15910 vector and matrix registers.
15911 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15912 vector modes into account.
15913 * config/sh/sh.md (movv2sf): Split move between registers into
15914 movdf.
15915 (movv4sf, movv16sf): Introduce insns that get split only after
15916 reload.
15917 * config/sh/shmedia.h: Fix Copyright dates.
15918 * config/sh/ushmedia.h: Likewise. Move loop counter
15919 declarations into conditionals that uses them.
15920 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15921 loop boundary.
15922 * config/sh/sshmedia.h: Fix Copyright dates.
15923 (sh_media_PUTCFG): Fix constraints.
15924 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
15925 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15926 ptrmemfunc_vbit_in_delta for SH5.
15927 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
15928 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15929 * invoke.texi: Likewise.
15930 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
15931 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15932 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15933 GCC_pop_shmedia_regs_nofpu): New global symbols.
15934 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15935 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15936 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15937 compact function with nonlocal labels.
15938 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15939 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15940 (initial_elimination_offset): Account for their stack space.
15941 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15942 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15943 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15944 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15945 least one of the operands to be a register.
15946 (movv2sf): Likewise. Renamed to movv2sf_i.
15947 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15948 prepare_move_operands() before emitting SHmedia insns.
15949 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
15950 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15951 Don't save nor initialize r12. Don't mis-align the stack.
15952 Pad the code with a nop.
15953 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
15954 stack.
15955 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
15956 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15957 [__SHMEDIA__]: Implement.
15958 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
15959 * config/sh/sh.md: Set latency of `pt' closer to reality.
15960 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15961 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15962 Set move, load and store type attributes.
15963 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15964 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15965 profiling.
15966 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15967 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15968 * config/sh/sh.c (sh_media_register_for_return): New function.
15969 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15970 branch-target register.
15971 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15972 * config/sh/sh.md (return_media_i): Use any call-clobbered
15973 branch-target register.
15974 (return_media): If r18 wasn't copied in the prologue, copy it
15975 here.
15976 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15977 Clear class FP0_REGS.
15978 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15979 from elf.h.
15980 2001-03-08 DJ Delorie <dj@redhat.com>
15981 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15982 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
15983 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15984 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
15985 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15986 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
15987 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15988 return value correctly for call_cookie.
15989 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
15990 * config/sh/crt1.asm (start): Modified so as to call
15991 ___setup_argv_and_call_main.
15992 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
15993 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15994 SHmedia mode.
15995 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
15996 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15997 (STRIP_NAME_ENCODING): Use it.
15998 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
15999 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
16000 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16001 prepare_scc_operands().
16002 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16003 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16004 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
16005 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16006 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
16007 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16008 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16009 used in shcompact_incoming_args.
16010 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16011 change.
16012 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16013 mode.
16014 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16015 Adjust accordingly.
16016 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16017 Simplify. Adjust. Add sanity check.
16018 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16019 FPU_SINGLE_BIT.
16020 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16021 TARGET_SHCOMPACT.
16022 (udivsi3, divsi3): Use them.
16023 (force_mode_for_call): New insn.
16024 (call, call_value, sibcall_value): Emit it before SHcompact
16025 calls.
16026 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
16027 * config/sh/sh.md (call, call_value, sibcall): Make sure the
16028 call cookie is non-NULL before taking its value.
16029 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
16030 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16031 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
16032 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16033 block.
16034 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16035 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16036 temporary for stack adjusts. Use MACL and MACH to pass
16037 arguments to shcompact_incoming_args.
16038 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
16039 clobber r1.
16040 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16041 (nested_trampoline): Load static chain address into r1.
16042 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16043 2001-01-07 Alexandre Oliva <aoliva@redhat.com
16044 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16045 fp_arith_reg_operand().
16046 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
16047 * config/sh/sh.md (casesi): Sign-extend the first two operands,
16048 and use signed compares for them.
16049 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16050 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
16051 ones properly aligned.
16052 (find_barrier): Account for extra alignment needed for 8-byte wide
16053 constants.
16054 (machine_dependent_reorg): Require a label for the second 4-byte
16055 constant after an 8-byte one.
16056 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16057 change.
16058 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16059 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16060 last_float when switching float modes.
16061 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16062 auto-increment for general-purpose registers.
16063 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
16064 result.
16065 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
16066 for stack adjust.
16067 * config/sh/sh.c (sh_builtin_saveregs): Support using all
16068 registers for varargs.
16069 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
16070 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
16071 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
16072 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
16073 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
16074 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
16075 call_cookie accordingly.
16076 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
16077 (SHCOMPACT_BYREF): Likewise.
16078 (SHCOMPACT_FORCE_ON_STACK): New macro.
16079 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
16080 (sh_builtin_saveregs): Likewise.
16081 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16082 shcompact_incoming_args): Use new shift values. Support
16083 sequences of consecutive and non-consecutive pushes/pops.
16084 * config/sh/sh.md (return): Don't explicitly use PR_REG.
16085 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
16086 * config/sh/sh.h (TEXT_SECTION): Define.
16087 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
16088 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16089 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
16090 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
16091 return values on FPU-enabled SHmedia.
16092 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
16093 FPU-enabled SHmedia.
16094 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
16095 value is returned in a non-FP reg and is not returned by
16096 reference.
16097 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
16098 jump_ind.
16099 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
16100 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
16101 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
16102 quad-aligned to be passed by callee-copy reference.
16103 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
16104 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
16105 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
16106 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
16107 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
16108 copying low-numbered FP regs to r7 and r8.
16109 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
16110 FP regs to general-purpose regs only if the copy was passed on the
16111 stack.
16112 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
16113 copying FP reg to r9.
16114 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
16115 copy FP regs to general-purpose regs only in outgoing calls.
16116 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
16117 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
16118 HOST_WIDE_INT.
16119 * config/sh/sh.h (struct sh_args): Document all fields.
16120 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
16121 passed partially on the stack should not consider making
16122 sibcalls.
16123 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
16124 stack_regs only for incoming calls. When passing FP args,
16125 make sure there are FP regs available before modifying
16126 call_cookie.
16127 (SHCOMPACT_BYREF): Pass double args in general-purpose
16128 registers by reference.
16129 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
16130 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
16131 attempt to generate sibcalls if the caller got any arguments
16132 by reference.
16133 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
16134 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
16135 to 8-byte boundaries.
16136 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
16137 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
16138 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
16139 stored in the stack.
16140 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
16141 for the offsets to have the ISA bit set.
16142 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
16143 invocation. Use beq instead of bgt to mark end of sequence of
16144 loads.
16145 (shcompact_incoming_args): Fix store of r2. Use beq instead of
16146 bgt to mark end of sequence of stores.
16147 * config/sh/sh.c (arith_operand): Don't check whether
16148 CONST_OK_FOR_J for now.
16149 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
16150 instead of long for conversion.
16151 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
16152 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
16153 before passing it to fprintf.
16154 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
16155 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
16156 Call set_fpscr before reading/writing SR.
16157 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
16158 Call set_fpscr.
16159 * config/sh/lib1funcs.asm: Add `.align 2' directives before
16160 SHmedia code.
16161 (FMOVD_WORKS): Define on SH5 with FPU.
16162 (set_fpscr): Define on SH5. Remove separate _fpscr_values
16163 setting.
16164 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
16165 _fpscr_values.
16166 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
16167 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
16168 address.
16169 (ia_main_table): Ditto.
16170 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
16171 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16172 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
16173 the definitions from sh.h.
16174 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
16175 TARGET_SH5.
16176 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
16177 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
16178 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16179 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
16180 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16181 Increment LABEL_NUSES.
16182
16183 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16184 TARGET_SH5.
16185 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16186 defined.
16187 * config/sh/elf.h (SIZE_TYPE): Likewise.
16188 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16189 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16190 shcompact_incoming_args): Load switch table addresses using
16191 datalabel.
16192 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16193 (NO_BUILTIN_SIZE_TYPE): Define.
16194 (SIZE_TYPE): Don't define.
16195 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16196 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16197 definition of __SH5__=32 for -m5-compact-nofpu.
16198 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16199 ADDR_DIFF_VEC.
16200 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
16201 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16202 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
16203 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16204 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16205 (INSN_LENGTH_ALIGNMENT): Likewise.
16206 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16207 * config/sh/sh.md (call, call_value, sibcall): Simplify
16208 copying of non-branch-target register.
16209 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16210 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
16211 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16212 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16213 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16214 floating-point values as structs.
16215 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16216 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16217 general-purpose register.
16218 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16219 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16220 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16221 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16222 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16223 (ENCODE_SECTION_INFO): Enclose variables and constants in
16224 DATALABEL unspecs.
16225 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16226 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16227 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16228 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16229 only for LABEL_REFs. For SYMBOL_REFs, prepend
16230 SH_DATALABEL_ENCODING to the symbol name.
16231 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16232 convert_mode().
16233 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16234 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16235 UNSPEC_DATALABEL.
16236 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16237 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16238 (DATALABEL_REF_P): Don't require CONST.
16239 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16240 REL label.
16241 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
16242 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16243 right.
16244 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16245 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16246 Use shallow_copy_rtx and PUT_MODE to change the mode of
16247 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16248 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16249 on SHmedia using GENERAL_REGs.
16250 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16251 bltu_media_i): Fix reversion of conditions.
16252 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16253 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16254 * config/sh/sh.c (output_far_jump): Save r13 in macl.
16255 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
16256 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16257 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
16258 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16259 (GCC_nested_trampoline): Likewise.
16260 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16261 * config/sh/sh.c (gen_datalabel_ref): Define.
16262 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16263 (INITIALIZE_TRAMPOLINE): Likewise.
16264 (TRAMPOLINE_ADJUST_ADDRESS): Define.
16265 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16266 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16267 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16268 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16269 (ic_invalidate): Adjust for SH5.
16270 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16271 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16272 _nested_trampoline.
16273 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
16274 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16275 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16276 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16277 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16278 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16279 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16280 * config/sh/sh.c (target_reg_operand): Match only target-branch
16281 registers and pseudos that aren't virtual registers.
16282 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16283 Copy operands that don't match target_reg_operand to pseudos.
16284 (call_media, call_value_media, sibcall_media): Use
16285 target_reg_operand instead of target_operand.
16286 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
16287 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
16288 * config/sh/sh.c (target_reg_operand): Match hardware registers
16289 other than branch-target registers.
16290 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
16291 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
16292 (fpscr_values) [SH5 == 32]: Define.
16293 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16294 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16295 Handle function addresses coming in SUBREGs.
16296 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
16297 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16298 shcompact_return_trampoline): Use datalabel where appropriate.
16299 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
16300 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16301 general-purpose register to copy one branch-target register to
16302 another.
16303 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16304 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16305 SYMBOL_REFs with VOIDmode.
16306 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16307 bltu_media_i): New insns.
16308 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16309 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16310 (INIT_CUMULATIVE_ARGS): Likewise.
16311 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
16312 * machmode.def (V16SFmode): New mode.
16313 * c-common.c (type_for_mode): Support V2SF and V16SF.
16314 * tree.c (build_common_tree_nodes_2): Likewise.
16315 * tree.h (tree_index): Likewise.
16316 * calls.c (emit_call_1): Take args_so_far. Adjust all
16317 callers. Introduce CALL_POPS_ARGS.
16318 * tm.texi (CALL_POPS_ARGS): Document.
16319 * config/sh/crt1.asm: Implement in SHmedia mode.
16320 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16321 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16322 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16323 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16324 Implement divsi and udivsi in SHmedia mode. Introduce
16325 SHcompact trampolines.
16326 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16327 only in SHmedia64.
16328 (regno_reg_class): Rewrite.
16329 (fp_reg_names): Remove.
16330 (sh_register_names, sh_additional_register_names): New.
16331 (print_operand): Added `u'. Support SUBREGs in addresses.
16332 Add parentheses around shifted CONSTs.
16333 (output_file_start): Output .mode and .abi directives.
16334 (shiftcosts, addsubcosts, multcosts): Adjust.
16335 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
16336 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
16337 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
16338 bytes, not registers. Take into account the need for the
16339 SHcompact incoming args trampoline. Adjust all callers.
16340 (sh_expand_prologue): Take stack_regs into account. Call
16341 incoming args trampoline. Keep stack aligned as per SH5 ABI.
16342 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
16343 stack aligned as per SH5 ABI.
16344 (sh_builtin_saveregs): Support SH5 ABI.
16345 (sh_build_va_list, sh_va_start): Likewise.
16346 (initial_elimination_offset): Take alignment into account.
16347 Compute location of PR according to the SH5 stack frame.
16348 (arith_reg_operand): Reject branch-target registers.
16349 (shmedia_6bit_operand): New.
16350 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16351 (target_reg_operand): Match DImode only. Accept SUBREGs.
16352 (target_operand): New.
16353 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16354 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
16355 SIBCALL_REGS for SHmedia.
16356 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16357 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16358 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16359 (TARGET_SWITCHES): New SH5 flags.
16360 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
16361 VALID_REGISTER_P to disable unsupported registers.
16362 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16363 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16364 (FUNCTION_ARG_PADDING): Define.
16365 (FASTEST_ALIGNMENT): Adjust.
16366 (SH_REGISTER_NAMES_INITIALIZER): New.
16367 (sh_register_names): Declare.
16368 (DEBUG_REGISTER_NAMES): Define.
16369 (REGISTER_NAMES): Define based on sh_register_names.
16370 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16371 (sh_additional_register_names): Declare.
16372 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16373 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16374 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16375 (REGISTER_NATURAL_MODE): Define.
16376 (FIRST_PSEUDO_REGISTER): Adjust.
16377 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16378 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16379 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16380 (VECTOR_MODE_SUPPORTED_P): Define.
16381 (REG_CLASS_CONTENTS): Adjust.
16382 (SMALL_REGISTER_CLASSES): Adjust.
16383 (REG_ALLOC_ORDER): Adjust.
16384 (INDEX_REG_CLASS): Adjust.
16385 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16386 (CONST_OK_FOR_LETTER_P): Adjust.
16387 (PREFERRED_RELOAD_CLASS): Adjust.
16388 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16389 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16390 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16391 (FIRST_FP_PARM_REG): Adjust.
16392 (CALL_POPS_ARGS): Define.
16393 (FUNCTION_ARG_REGNO_P): Adjust.
16394 (struct sh_args): New fields.
16395 (GET_SH_ARG_CLASS): Adjust.
16396 (INIT_CUMULATIVE_ARGS): Adjust.
16397 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16398 (FUNCTION_ARG_ADVANCE): Adjust.
16399 (FUNCTION_ARG): Adjust.
16400 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16401 (FUNCTION_ARG_CALLEE_COPIES): Define.
16402 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16403 (STRICT_ARGUMENT_NAMING): Define.
16404 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16405 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16406 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16407 (SETUP_INCOMING_VARARGS): Adjust.
16408 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16409 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16410 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16411 (SUBREG_OK_FOR_INDEX_P): Adjust.
16412 (EXTRA_CONSTRAINT_S): Update.
16413 (EXTRA_CONSTRAINT_T): New.
16414 (EXTRA_CONSTRAINT): Adjust.
16415 (GO_IF_LEGITIMATE_INDEX): Adjust.
16416 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16417 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16418 (MOVE_MAX): Adjust.
16419 (MAX_MOVE_MAX): Define.
16420 (Pmode): Adjust.
16421 (CONST_COSTS): Adjust.
16422 (REGISTER_MOVE_COST): Adjust.
16423 (BRANCH_COST): Adjust.
16424 (TEXT_SECTION_ASM_OP): Adjust.
16425 (DBX_REGISTER_NUMBER): Adjust.
16426 (ASM_OUTPUT_DOUBLE_INT): New.
16427 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16428 (PREDICATE_CODES): Adjust.
16429 (PROMOTE_MODE): Adjust.
16430 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16431 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16432 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16433 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16434 (DR0_REG, DR2_REG, DR4_REG): Renumber.
16435 (TR0_REG, TR1_REG, TR2_REG): New.
16436 (XD0_REG): Renumber.
16437 (UNSPEC_COMPACT_ARGS): New.
16438 (type): Added pt and ptabs.
16439 (length): Default to 4 on SHmedia. Default pt length to 12
16440 and 20 on SHmedia32 and SHmedia64, respectively.
16441 (pt): New function unit.
16442 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
16443 Add whitespace between operands of SHmedia instructions.
16444 (movdicc): Fix.
16445 (adddi3_media, addsi3_media): Adjust constraints.
16446 (subsi3) [SHmedia]: Force operand 1 into a register.
16447 (udivsi3_i1_media, udivsi3_i4_media): New.
16448 (udivsi3): Support SHmedia.
16449 (divsi3_i1_media, divsi3_i4_media): New.
16450 (divsi3): Support SHmedia.
16451 (anddi3, iordi3, xordi3): Adjust constraints.
16452 (zero_extendhidi2, zero_extendqidi2): New.
16453 (extendsidi2, extendhidi2, extendqidi2): New.
16454 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16455 (pop_e, pop_fpul, pop_4): Likewise.
16456 (movsi_media): Support FP and BT registers.
16457 (movsi_media_nofpu): New. Adjust splits to DImode.
16458 (lduw, ldub): Renamed to zero_extend* above.
16459 (movqi_media): Fix typo.
16460 (movdi_media): Support FP and BT registers.
16461 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
16462 (movdi_const_32bit): New.
16463 (shori_media): Require immediate operand. Use `u' for output.
16464 (movdf_media, movsf_media): Simplified.
16465 (movdf_media_nofpu, movsf_media_nofpu): New.
16466 (movdf, movsf): Adjust
16467 (movv2sf, movv2sf, movv16sf): New.
16468 (beq_media, beq_media_i): Adjust constraints. Don't use
16469 scratch BT register.
16470 (bne_media, bne_media_i): Likewise.
16471 (bgt_media, bgt_media_i): Likewise.
16472 (bge_media, bge_media_i): Likewise.
16473 (bgtu_media, bgtu_media_i): Likewise.
16474 (bgeu_media, bgeu_media_i): Likewise.
16475 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16476 bunordered): Emit jump insn. Force operands to registers when
16477 needed.
16478 (jump_media, jump): Simplify.
16479 (call_compact, call_compact_rettramp): New.
16480 (call_value_compact, call_value_compact_rettramp): New.
16481 (call_media, call_value_media): Simplify.
16482 (sibcall_compact, sibcall_media): New.
16483 (call, call_value): Adjust for SHmedia and SHcompact.
16484 (sibcall, sibcall_value, untyped_call): Likewise.
16485 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16486 (indirect_jump): Adjust for SHmedia.
16487 (casesi_jump_media): New.
16488 (nop): Re-enable for SHmedia.
16489 (call_site): Restrict to SH1.
16490 (casesi): Adjust for SHmedia.
16491 (casesi_shift_media, casesi_load_media): New.
16492 (return): Explicitly use PR register. Call return trampoline
16493 on SHcompact.
16494 (return_i): Explicitly use PR register.
16495 (shcompact_return_tramp, shcompact_return_tramp_i): New.
16496 (return_media): Adjust.
16497 (shcompact_incoming_args): New.
16498 (epilogue): Adjust.
16499 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16500 (movstrsi): Disable on SH5.
16501 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16502 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16503 (subsf3, subsf3_media): Likewise.
16504 (mulsf3, mulsf3_media, mac_media): Likewise.
16505 (divsf3, divsf3_media): Likewise.
16506 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
16507 (floatsisf2, fux_truncsfsi2): Likewise.
16508 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
16509 constraints.
16510 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16511 (cmpunsf_media, cmpsf): Likewise.
16512 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16513 (abssf2, abssf2_media): Likewise.
16514 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16515 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16516 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
16517 (floatsidf2, fix_truncdfsi2): Likewise.
16518 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
16519 constraints.
16520 (cmpeqdf_media, cmpgtdf_media): Likewise.
16521 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16522 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16523 (absdf2, absdf2_media): Likewise.
16524 (extendsfdf2, extendsfdf2_media): Likewise.
16525 (truncsfdf2, truncsfdf2_media): Likewise.
16526 * config/sh/sh64.h: New file.
16527 * config/sh/t-sh64: New file.
16528 * config/sh/shmedia.h: New file.
16529 * config/sh/ushmedia.h: New file.
16530 * config/sh/sshmedia.h: New file.
16531 * configure.in: Added sh64-*-elf.
16532 * configure: Rebuilt.
16533 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
16534 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16535 (reg_class_from_letter): Use `b' for TARGET_REGS.
16536 (print_operand): Support `%M', `%m', `AND' and
16537 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
16538 (andcosts): Adjust for SHmedia.
16539 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16540 Likewise.
16541 (target_reg_operand): New function.
16542 * config/sh/sh-protos.h (target_reg_operand): Declare.
16543 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16544 FP registers on SH5.
16545 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16546 on SH4.
16547 (TARGET_REGISTER_P): New macro.
16548 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16549 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16550 (EXTRA_CONSTRAINT_S): New macro.
16551 (EXTRA_CONSTRAINT): Adjust.
16552 (FLOAT_TYPE_SIZE): Define to 32.
16553 (Pmode): DImode on SHmedia.
16554 (CONST_COSTS): Adjust for SHmedia literals.
16555 (PREDICATE_CODES): Added target_reg_operand.
16556 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16557 * config/sh/sh.md: Remove all attrs from SHmedia insns.
16558 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16559 (cmpdi): Accept SHmedia.
16560 (movdicc_false, movdicc_true): New insns.
16561 (movdicc): New expand.
16562 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16563 no_new_pseudos.
16564 (addsi3_media): Match `S' constraint.
16565 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16566 (negdi2): Expand for SHmedia.
16567 (one_cmpldi2): New expand.
16568 (zero_extendsidi2): Change from expand to insn.
16569 (extendsidi2): Add constraints.
16570 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
16571 LD/ST address. Fix SI immediate loading split.
16572 (movhi_media, movqi_media, lduw, ldub): New insns.
16573 (movhi, movqi): Accept SHmedia.
16574 (shori_media, movdi_media): Relax input constraints. Split
16575 symbolic constants.
16576 (movdf_media, movsf_media): New insn. New split to movdi.
16577 (movdf, movsf): Match on SHmedia.
16578 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16579 bgeu_media): New insns and splits. New insns with `_i' suffix.
16580 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16581 (bunordered): New expand.
16582 (jump_compact): Renamed from `jump'.
16583 (jump_media): New insn.
16584 (jump): New expand.
16585 (call_media, call_value_media): New insns.
16586 (call, call_value): Adjust.
16587 (indirect_jump_compact): Renamed from `indirect_jump'.
16588 (indirect_jump_media): New insn.
16589 (indirect_jump): New expand.
16590 (untyped_call, return): Accept SHmedia.
16591 (return_media): New insn.
16592 (prologue, epilogue, blockage): Accept SHmedia.
16593 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16594 (sunordered): New expand.
16595 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16596 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16597 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16598 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16599 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16600 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16601 abssf2_media): New insns.
16602 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16603 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16604 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16605 floatdidf2, floatsidf2_media, fix_truncdfdi2,
16606 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16607 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16608 absdf2_media): New insns.
16609 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16610 (extendsfdf2_media, truncdfsf2_media): New insns.
16611 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
16612 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16613 * config/sh/sh.h (CONST_OK_FOR_J): Document.
16614 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16615 * config/sh/sh.md (adddi3): New expand.
16616 (adddi3_media, adddi3z_media): New insns.
16617 (adddi3_compact): Renamed from adddi3.
16618 (addsi3_media): Use add.l r63 to add constant zero.
16619 (subdi3): New expand.
16620 (subdi3_media): New insn.
16621 (subdi3_compact): Renamed from subdi3.
16622 (mulsidi3): New expand.
16623 (mulsidi3_media): New insn.
16624 (mulsidi3_compact): Renamed from mulsidi3.
16625 (umulsidi3): New expand.
16626 (umulsidi3_media): New insn.
16627 (umulsidi3_compact): Renamed from umulsidi3.
16628 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16629 (ashlsi3, ashrsi3, lshrsi3): Use them.
16630 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16631 (ashldi3, ashrdi3, lshrdi3): Use them.
16632 (zero_extendsidi2): New expand.
16633 (extendsidi2): New insn.
16634 (movsi_media): New insn. Split to movdi to load constants.
16635 (movsi): Enable for shmedia.
16636 (movdi_media): New insn. Use shori_media to load wide constants.
16637 (short_media): New insn.
16638 (movdi): Enable for shmedia.
16639 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
16640 * config/sh/sh.h (CPP_SPEC): Added `m5'.
16641 (SUBTARGET_CPP_SPEC): Added `!m5'.
16642 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16643 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
16644 to all other SH variants.
16645 (TARGET_DEFAULT): Set to SH1_BIT.
16646 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16647 (BITS_PER_WORD): Raise to 64 on shmedia.
16648 (MAX_BITS_PER_WORD): Change to 64.
16649 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16650 (INT_TYPE_SIZE): Keep as 32.
16651 (UNITS_PER_WORD): Raise to 8 on shmedia.
16652 (MIN_UNITS_PER_WORD): Keep as 4.
16653 (POINTER_SIZE): Raise to 64 on shmedia.
16654 (CONST_OK_FOR_J): New macro.
16655 (CONST_OK_FOR_LETTER_P): Use it.
16656 (processor_type): Add PROCESSOR_SH5.
16657 * config/sh/sh.md: Conditionalize all expands, insns and
16658 splits to TARGET_SH1.
16659 (cpu): Added sh5.
16660 (addsi3_compact): Renamed from...
16661 (addsi3): Now an expand.
16662 (addsi3_media, subsi3_media): New insns.
16663 (subsi3): Don't negate constants with SHmedia.
16664
16665 * hooks.c: New file.
16666 * hooks.h: New file.
16667 * Makefile.in (HOOKS_H): New.
16668 (TARGET_DEF_H): Added $(HOOKS_H).
16669 (OBJS): Added hooks.o.
16670 (cfgcleanup.o, bb-reorder.o): Added target.h.
16671 (hooks.o): Added dependencies.
16672 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16673 (TARGET_INITIALIZER): this.
16674 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16675 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16676 * bb-reorder.c: Include target.h.
16677 (reorder_basic_blocks): Skip if cannot modify jumps.
16678 * cfgcleanup.c: Include target.h.
16679 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16680
16681 2002-02-08 Chris Demetriou <cgd@broadcom.com>
16682
16683 * config/mips/mips.md (casesi_internal, casesi_internal_di):
16684 Protect jump delay slot instructions with .set noreorder and
16685 .set nomacro.
16686
16687 2002-02-08 Chris Demetriou <cgd@broadcom.com>
16688
16689 * config/mips/mips.md (casesi_internal_di): Calculate
16690 the index into the target offset table correctly.
16691
16692 2002-02-08 Richard Henderson <rth@redhat.com>
16693
16694 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16695 * final.c (output_addr_const): Accept and discard SUBREG.
16696 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16697 mark them unknown instead.
16698 (simplify_subtraction): Handle RTX_UNKNOWN.
16699 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16700
16701 2002-02-08 David Edelsohn <edelsohn@gnu.org>
16702
16703 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16704
16705 2002-02-08 Richard Henderson <rth@redhat.com>
16706
16707 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16708
16709 2002-02-08 Andreas Jaeger <aj@suse.de>
16710
16711 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16712 * config/i386/t-linux64: New file.
16713
16714 2002-02-08 Jakub Jelinek <jakub@redhat.com>
16715
16716 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16717 * c-parse.in (compstmt): Clear last_expr_type.
16718
16719 2002-02-07 Richard Henderson <rth@redhat.com>
16720
16721 * loop.c (strength_reduce): Sink final_value when not
16722 eliminating a biv.
16723
16724 2002-02-07 David O'Brien <obrien@FreeBSD.org>
16725
16726 * config/sparc/freebsd.h: Fix mismatched spec {.
16727
16728 2002-02-07 Richard Henderson <rth@redhat.com>
16729
16730 * cfgrtl.c: Include recog.h and insn-config.h.
16731 (keep_with_call_p): Fix general_operand invocation.
16732 * Makefile.in (cfgrtl.o): Update dependencies.
16733
16734 2002-02-07 Kazu Hirata <kazu@hxi.com>
16735
16736 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16737 comment. Accept HImode only if TARGET_H8300.
16738
16739 2002-02-07 Eric Christopher <echristo@redhat.com>
16740
16741 * config/mips/crtn.asm: Cleanup #ifdefs.
16742
16743 2002-02-07 Eric Christopher <echristo@redhat.com>
16744
16745 * config/mips/crti.asm: Add changes for mips16. mips16 uses
16746 register 7 as RA instead of $31.
16747 * config/mips/crtn.asm: Ditto.
16748 * config/mips/mips.c (mips_move_2words): Add case for
16749 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16750 (compute_frame_size): Fix typo.
16751 (save_restore_insns): Ditto. Make documentation about using
16752 register $7 as return register more precise.
16753 (mips_expand_epilogue): Fix comment. Add code to work around not
16754 being able to add to the stack pointer directly.
16755 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16756 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16757 epilogue.
16758
16759 2002-02-07 Tom Rix <trix@redhat.com>
16760
16761 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
16762 immediates in ldu and stdu DS opcode field.
16763 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16764 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16765 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16766
16767 2002-02-07 Jeff Sturm <jsturm@one-point.com>
16768
16769 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16770 offset for stack bias.
16771
16772 2002-02-07 H.J. Lu <hjl@gnu.org>
16773
16774 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16775
16776 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
16777
16778 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16779
16780 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
16781
16782 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16783 * i386.c (x86_order_regs_for_local_alloc): New global function.
16784 * i386.h (REG_ALLOC_ORDER): CLeanup.
16785 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16786
16787 2002-02-07 Richard Henderson <rth@redhat.com>
16788
16789 PR optimization/2463
16790 * alias.c (find_base_value): Recall base values for fixed hard regs.
16791 * loop.c (loop_regs_update): Don't use single_set on non-insns.
16792
16793 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
16794
16795 * config/mips/mips.md (define_delay) [mips16]: Adjust required
16796 length.
16797
16798 2002-02-06 Richard Henderson <rth@redhat.com>
16799
16800 PR c/5609
16801 * stmt.c (resolve_operand_name_1): Take more care with mixed
16802 named and unnamed operands.
16803
16804 2002-02-06 Janis Johnson <janis187@us.ibm.com>
16805 Jan Hubicka <jh@suse.cz>
16806
16807 * loop.c (remove_constant_addition): Avoid clobbering a shared
16808 CONST expression.
16809
16810 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16811
16812 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16813 * config/s390/t-linux64: New file.
16814 * config/s390/libgcc-glibc.ver: New file.
16815
16816 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16817
16818 * config/s390/linux64.h: Delete file.
16819 * config/s390/s390x.h: New file.
16820 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16821 as target header file.
16822 * config/s390/linux.h (TARGET_VERSION): Define depending on
16823 DEFAULT_TARGET_64BIT.
16824 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16825 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16826 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16827 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16828 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16829 (EXTRA_SPEC): New define.
16830 * config/s390/s390.h (TARGET_VERSION): Define depending on
16831 DEFAULT_TARGET_64BIT.
16832 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16833
16834 2002-02-06 Jason Merrill <jason@redhat.com>
16835
16836 * c-decl.c (finish_function): Warn about a non-void function with
16837 no return statement and no abnormal exit.
16838 (current_function_returns_abnormally): New variable.
16839 (start_function): Clear it.
16840 (struct c_language_function): Add returns_abnormally.
16841 (push_c_function_context): Save it.
16842 (pop_c_function_context): Restore it.
16843 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16844 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16845 an explicit return type.
16846 * c-tree.h: Declare current_function_returns_abnormally.
16847 (C_FUNCTION_IMPLICIT_INT): New macro.
16848 * c-typeck.c (build_function_call): Set it.
16849 (c_expand_return): Set current_function_returns_value even if the
16850 value is erroneous.
16851
16852 2002-02-06 Jakub Jelinek <jakub@redhat.com>
16853
16854 PR c/5420:
16855 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16856 unsafe for reevaluation.
16857
16858 2002-02-06 Jakub Jelinek <jakub@redhat.com>
16859
16860 PR c/5482:
16861 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16862 EXPR_STMT, but COMPOUND_STMT, recurse into it.
16863
16864 2002-02-06 Richard Henderson <rth@redhat.com>
16865
16866 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16867 be a general_operand. Dest for function value must be a pseudo.
16868
16869 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
16870
16871 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16872 as SYMBOL_REFs from the constant pool.
16873
16874 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
16875
16876 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16877 passed by invisible reference.
16878
16879 2002-02-05 Richard Henderson <rth@redhat.com>
16880
16881 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16882
16883 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
16884
16885 Implement using "base addresses" in insn operands as default.
16886 * config/mmix/mmix.c (mmix_conditional_register_usage): if
16887 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16888 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16889 used to read the rtx value.
16890 (mmix_target_asm_function_epilogue): Fix spacing.
16891 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16892 (mmix_legitimate_address): Ditto.
16893 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16894 should be loaded with a GETA insn. Don't allocate needless extra
16895 char for nul termination and fix misleading comment.
16896 (mmix_print_operand_address): Handle constants if
16897 TARGET_BASE_ADDRESSES.
16898 (mmix_output_register_setting): Use base addressing if
16899 TARGET_BASE_ADDRESSES and the number of insns is 3.
16900 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16901 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16902 to use R as constraint, add LDA to match s.
16903 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16904 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16905 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16906 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16907 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16908 order with other fixed registers.
16909 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16910 other parameter/call-clobbered registers.
16911 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16912 -mbase-addresses, -mno-base-addresses.
16913 (MMIX Options): Ditto.
16914
16915 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16916
16917 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16918
16919 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
16920
16921 * config/rs6000/altivec.h: Change elem to _S_elem.
16922
16923 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16924
16925 * config/netbsd.h (WCHAR_TYPE): Define.
16926 (WCHAR_TYPE_SIZE): Ditto.
16927 (WINT_TYPE): Ditto.
16928 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16929 (WCHAR_UNSIGNED): Ditto.
16930 (WCHAR_TYPE_SIZE): Ditto.
16931 (WINT_TYPE): Ditto.
16932 * config/arm/netbsd.h: Likewise.
16933 * config/i386/netbsd-elf.h: Likewise.
16934 * config/i386/netbsd.h: Likewise.
16935 * config/m68k/netbsd-elf.h: Likewise.
16936 * config/m68k/netbsd.h: Likewise.
16937 * config/ns32k/netbsd.h: Likewise.
16938 * config/sparc/netbsd.h: Likewise.
16939 * config/vax/netbsd.: Likewise.
16940
16941 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16942
16943 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16944 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
16945 (TARGET_INITIALIZER): this.
16946 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16947 (BITFIELD_NBYTES_LIMITED): Markup fix.
16948 * tree.h (default_ms_bitfield_layout_p): Declare.
16949 (record_layout_info): Added prev_field.
16950 * tree.c (default_ms_bitfield_layout_p): New fn.
16951 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16952 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16953 * stor-layout.c: Include target.h.
16954 (start_record_layout): Initialize prev_field.
16955 (place_field): Handle MS bit-field layout, and disregard
16956 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16957 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
16958 * Makefile.in (stor-layout.o): Adjust dependencies.
16959
16960 2002-02-05 Jason Merrill <jason@redhat.com>
16961
16962 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16963
16964 2002-02-05 Andreas Jaeger <aj@suse.de>
16965
16966 * crtstuff.c: Fix comments.
16967
16968 2002-02-05 Richard Henderson <rth@redhat.com>
16969
16970 PR fortran/3393
16971 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16972 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16973
16974 PR fortran/3392
16975 * config/mips/mips.c (function_arg): Handle TImode.
16976 (function_arg_advance): Likewise.
16977
16978 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16979
16980 * config/rs6000/altivec.h (vec_step_help): Rename to
16981 __vec_step_help.
16982
16983 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16984
16985 * config/rs6000/altivec.h: Fix typos.
16986
16987 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16988
16989 * config/arm/netbsd.h: Correct a comment.
16990
16991 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16992
16993 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16994 building void typed builtins.
16995
16996 * config/rs6000/altivec.h (vec_ld*): Fix typos.
16997 (vec_step): Implement for C++.
16998
16999 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17000
17001 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17002
17003 2002-02-04 Richard Henderson <rth@redhat.com>
17004
17005 * combine.c (nonzero_bits): Re-introduce special case for
17006 sp/fp/ap wrt REGNO_POINTER_ALIGN.
17007
17008 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17009
17010 * doc/extend.texi: Warn about unsupported usage of altivec
17011 builtins.
17012
17013 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17014 (altivec_predicate_*): New.
17015
17016 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17017 Add C++ version of vec_*() functions.
17018
17019 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17020 (bdesc_2arg): Remove altivec predicates.
17021 (altivec_expand_builtin): Handle predicates.
17022 (altivec_init_builtins): Handle predicates.
17023 (altivec_expand_predicate_builtin): New.
17024
17025 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17026
17027 * pa.c (DO_FRAME_NOTES): Move forward.
17028 (store_reg): Revise handling of frame notes.
17029 (load_reg): Likewise.
17030 (set_reg_plus_d): Likewise.
17031 (hppa_expand_prologue): Likewise.
17032 (hppa_expand_epilogue): Likewise.
17033
17034 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17035
17036 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17037
17038 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17039
17040 PR c/4475, c++/3780:
17041 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17042 * c-common.h (SWITCH_TYPE): Define.
17043 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17044 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17045 Rename spareness variable to sparseness.
17046 (expand_end_case_type): Renamed from expand_end_case, use orig_type
17047 if non-NULL instead of TREE_TYPE (orig_index).
17048 * tree.h (expand_end_case_type): Renamed from expand_end_case.
17049 (expand_end_case): Define using expand_end_case_type.
17050 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17051 to expand_end_case_type.
17052 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17053
17054 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17055
17056 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17057 (BIGGEST_ALIGNMENT): Change to 128.
17058
17059 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17060
17061 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17062
17063 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17064
17065 * pa.md (call_internal_reg_64bit): Remove unused variable.
17066
17067 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
17068
17069 * config/arm/arm.h (machine_function): Add uses_anonymous_args
17070 field.
17071 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
17072 * config/arm/arm.c (current_function_anonymous_args): Delete,
17073 replace uses with cfun->machine->uses_anonymous_args.
17074 (arm_reorg): Do not reset uses_anonymous_args.
17075
17076 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
17077 any geenral register.
17078
17079 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
17080
17081 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
17082 the entry block.
17083
17084 2002-02-04 Richard Henderson <rth@redhat.com>
17085
17086 * combine.c (force_to_mode): Remove STACK_BIAS code.
17087 (nonzero_bits): Likewise. Replace sp/fp special case with
17088 REGNO_POINTER_ALIGN.
17089
17090 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
17091 (HARD_FRAME_POINTER_REGNUM): New.
17092 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
17093 (FIXED_REGS, CALL_USED_REGS): Update.
17094 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
17095 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
17096 (HARD_REGNO_NREGS): Update for SFP.
17097 (STACK_POINTER_OFFSET): Include bias here ...
17098 (FIRST_PARM_OFFSET): ... not here.
17099 (STACK_BIAS): Remove.
17100 (INIT_EXPANDERS): New.
17101 (STARTING_FRAME_OFFSET): Do not include bias.
17102 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17103 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
17104 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
17105 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
17106 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
17107 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
17108 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
17109 (MUST_SAVE_REGISTER): Likewise.
17110 (sparc_flat_function_prologue): Likewise.
17111 (sparc_flat_function_epilogue): Likewise.
17112 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
17113 (sparc_init_modes): SFP is GENERAL_REGS.
17114 (sparc_builtin_saveregs): SFP does not have bias applied.
17115
17116 2002-02-04 Richard Henderson <rth@redhat.com>
17117
17118 * config/alpha/alpha.c (current_function_is_thunk): Don't check
17119 current_function_is_thunk.
17120 (alpha_sa_mask): Distinguish between current_function_is_thunk
17121 called from ASM_OUTPUT_MI_THUNK and not.
17122 (alpha_does_function_need_gp): Thunks always need gp.
17123 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17124 (alpha_output_mi_thunk_osf): New.
17125 * config/alpha/alpha-protos.h: Update.
17126 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
17127
17128 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
17129
17130 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
17131 function types, not when they're taken away.
17132
17133 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
17134
17135 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
17136 CODE_LABEL and jump table when replacing a table jump with a
17137 simple jump.
17138
17139 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17140
17141 * config/s390/s390-protos.h (legitimize_la_operand,
17142 s390_secondary_input_reload_class, s390_plus_operand,
17143 s390_expand_plus_operand): Add prototypes.
17144
17145 config/s390/s390.c (s390_secondary_input_reload_class,
17146 s390_plus_operand, s390_expand_plus_operand): New functions.
17147
17148 (struct s390_address): New member 'pointer'.
17149 (s390_decompose_address): Compute it.
17150 (legitimate_la_operand_p): Use it.
17151 (legitimize_la_operand): New function.
17152 (movti, movdi, movdf splitters): Call it.
17153
17154 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
17155 (PREDICATE_CODES): Add s390_plus_operand.
17156
17157 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
17158 (la_ccclobber): Allow GENERAL_REGS as output operand.
17159
17160 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
17161 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
17162 (*la_64, *la_31, reload_indi, reload_insi): ... these.
17163
17164 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17165
17166 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
17167 register names for regular asm () construct.
17168
17169 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17170
17171 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
17172 registers.
17173
17174 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17175
17176 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
17177 pat for recog.
17178
17179 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
17180
17181 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17182 constant pool to be identical by string address and index.
17183
17184 2002-02-04 Anthony Green <green@redhat.com>
17185
17186 * output.h (SECTION_OVERRIDE): Define.
17187 * varasm.c (named_section): Obey SECTION_OVERRIDE.
17188
17189 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17190
17191 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17192 by existing arm*-*-netbsd* (a.out) target.
17193 (ns32k-*-netbsdelf*): Likewise.
17194 (sparc-*-netbsdelf*): Likewise.
17195 (vax-*-netbsdelf*): Likewise.
17196
17197 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
17198
17199 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17200 headers and libobjc headers.
17201
17202 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
17203
17204 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17205 (_mingw.h): Remove duplicate include.
17206
17207 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17208
17209 * config.gcc: Set cpu_type to m68k for 68010, as well.
17210 (m68010-*-netbsdelf*): New...
17211 (m68k*-*-netbsdelf*): ...targets.
17212 * config/m68k/netbsd-elf.h: New file.
17213
17214 2002-02-02 Kazu Hirata <kazu@hxi.com>
17215
17216 * config/h8300/h8300.c (hand_list): Move inside function_arg.
17217
17218 2002-02-02 Kazu Hirata <kazu@hxi.com>
17219
17220 * config/h8300/h8300.c (h8_push_ops): Move inside
17221 h8300_init_once.
17222 (h8_pop_ops): Likewise.
17223 (h8_move_ops): Likewise.
17224
17225 2002-02-02 Kazu Hirata <kazu@hxi.com>
17226
17227 * config/h8300/h8300.c (os_task): Make it static.
17228 (monitor): Likewise.
17229 (pragma_saveall): Likewise.
17230
17231 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
17232
17233 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17234 constant is a valid sign-extension for Pmode.
17235
17236 2002-02-02 Kazu Hirata <kazu@hxi.com>
17237
17238 * config/h8300/h8300.c: Fix formatting.
17239
17240 2002-02-02 Kazu Hirata <kazu@hxi.com>
17241
17242 * config/h8300/h8300.md: Fix formatting.
17243
17244 2002-02-02 Kazu Hirata <kazu@hxi.com>
17245
17246 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17247 predicates of operands[1]. Split the patterns for each
17248 processor variant.
17249
17250 2002-02-02 Kazu Hirata <kazu@hxi.com>
17251
17252 * config/h8300/h8300.md (xor patterns): Tighten the predicates
17253 of operands[1] to register_operand.
17254
17255 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17256
17257 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17258 * cpphash.c (_cpp_init_hashtable): Similarly.
17259 * cppinit.c (cpp_create_reader): Default the signed_char flag.
17260 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17261 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17262 (cpp_handle_option): Handle the new options.
17263 * cpplex.c (cpp_interpret_charconst): Use new flag.
17264 * cpplib.h (struct cpp_options): New member signed_char.
17265 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17266 (cpp_options): Handle -fsigned-char and -funsigned-char.
17267 (static_specs): Remove signed_char_spec.
17268 (do_spec1): Don't handle %c.
17269 * system.h: Poison SIGNED_CHAR_SPEC.
17270 * tradcif.y (yylex): Use flag_signed_char.
17271 * tradcpp.h (flag_signed_char): New.
17272 * tradcpp.c (flag_signed_char): New.
17273 (main): Handle new command-line options.
17274 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17275 config:
17276 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17277 * avr/avr.h: Remove old comments.
17278 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17279 (CC1_SPEC): Pass -fsigned-char if -mic*.
17280 (SIGNED_CHAR_SPEC): Remove.
17281 doc:
17282 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17283
17284 2002-02-01 Eric Christopher <echristo@redhat.com>
17285
17286 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17287 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17288 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17289 (ASM_OUTPUT_REG_POP): Ditto.
17290
17291 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17292
17293 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17294 patch.
17295
17296 2002-02-02 Jakub Jelinek <jakub@redhat.com>
17297
17298 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17299
17300 2002-02-02 Jakub Jelinek <jakub@redhat.com>
17301
17302 PR c/5304:
17303 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17304 unconditionally.
17305
17306 2002-02-01 Janis Johnson <janis187@us.ibm.com>
17307
17308 * cfganal.c: Include tm_p.h.
17309 (keep_with_call_p): Fix the test that determines if a register holds
17310 the return value of a call.
17311
17312 2002-02-01 DJ Delorie <dj@redhat.com>
17313
17314 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17315 we are given conflicting registers, switch to the other one we
17316 had allocated for us.
17317 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17318 as TImode so we know when the "other" register is available.
17319
17320 2002-02-01 David O'Brien <obrien@FreeBSD.org>
17321
17322 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17323 sparc/sparc_bi.h.
17324
17325 2002-02-01 Janis Johnson <janis187@us.ibm.com>
17326
17327 * cfganal.c (keep_with_call_p): New function.
17328 (flow_call_edges_add): Prevent splitting a block between a call and
17329 a single-set instruction that should be kept in the same block.
17330
17331 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
17332
17333 * doc/install.texi (avr): Update outdated URL.
17334
17335 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
17336
17337 * config/stormy16/stormy16.md (pushqi): New.
17338 (popqi): New.
17339 (pushhi): New.
17340 (pophi): New.
17341 (movhi): Remove stack operands.
17342 (movqi): Likewise.
17343 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17344 nonimmediate_nonstack_operand.
17345 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17346 New.
17347 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17348 New.
17349
17350 2002-01-31 Jason Merrill <jason@redhat.com>
17351
17352 * Makefile.in (c-parse.c): Handle .output file.
17353 * objc/Make-lang.in (objc-parse.c): Likewise.
17354
17355 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
17356
17357 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17358 the -me[lb] option is given. Don't output the default flag
17359 twice.
17360
17361 2002-01-31 Zack Weinberg <zack@codesourcery.com>
17362
17363 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17364 the primary source file; this has not been done yet.
17365 * c-decl.c (c_expand_body): Reset input_filename from
17366 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17367
17368 2002-01-31 Kazu Hirata <kazu@hxi.com>
17369
17370 * rtlanal.c (subreg_regno_offset): Do not use
17371 SUBREG_REGNO_OFFSET.
17372 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17373 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17374
17375 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17376
17377 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
17378 version rather than GNATS version in --version output.
17379
17380 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
17381
17382 * ifcvt.c (noce_process_if_block): Make a copy of the destination
17383 when copying back from a temporary.
17384
17385 2002-01-30 Richard Henderson <rth@redhat.com>
17386
17387 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17388 and new_dest are the same.
17389
17390 2002-01-30 Richard Henderson <rth@redhat.com>
17391
17392 PR opt/5076
17393 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17394 * rtl.c (note_insn_name): Update.
17395 * emit-rtl.c (remove_unnecessary_notes): Kill it.
17396 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
17397 to perform loop rotation.
17398 (expand_exit_loop_top_cond): New.
17399 * tree.h (expand_exit_loop_top_cond): Declare it.
17400 * c-semantics.c (genrtl_while_stmt): Use it.
17401 (genrtl_for_stmt): Likewise.
17402
17403 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
17404
17405 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17406 arguments to 64-bit boundaries on 64-bit ABIs.
17407
17408 2002-01-30 Steve Ellcey <sje@cup.hp.com>
17409
17410 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17411
17412 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17413
17414 * c-decl.c (grokdeclarator): Handle type being a typedef for an
17415 invalid type.
17416
17417 2002-01-30 David O'Brien <obrien@FreeBSD.org>
17418
17419 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17420 * config/sparc/sparc_bi.h: Remove file.
17421 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17422
17423 2002-01-30 Richard Henderson <rth@redhat.com>
17424
17425 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17426
17427 2002-01-30 Zack Weinberg <zack@codesourcery.com>
17428
17429 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17430
17431 2002-01-30 Jason Merrill <jason@redhat.com>
17432
17433 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17434 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17435 (reg_save): Use DW_CFA_offset_extended_sf instead.
17436
17437 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17438
17439 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17440
17441 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17442 in cselib_lookup.
17443
17444 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
17445
17446 * rs6000.md ("*call_value_local32"): Remove constraints.
17447 ("*call_value_local64"): Same.
17448 ("*call_value_indirect_nonlocal_aix32"): Same.
17449 ("*call_value_nonlocal_aix32"): Same.
17450 ("*call_value_indirect_nonlocal_aix64"): Same.
17451 ("*call_value_nonlocal_aix64"): Same.
17452 ("*call_value_nonlocal_sysv"): Same.
17453
17454 2002-01-29 Richard Henderson <rth@redhat.com>
17455
17456 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17457
17458 2002-01-29 Richard Henderson <rth@redhat.com>
17459
17460 * expr.c (force_operand): Ignore flag_pic for detecting pic
17461 address loads.
17462 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17463 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17464 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17465 instead of open-coded loop.
17466 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17467 be fixed when in use.
17468
17469 2002-01-29 Richard Henderson <rth@redhat.com>
17470
17471 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17472 * sched-rgn.c (propagate_deps): Update them.
17473 * sched-deps.c (sched_analyze_insn): Update them. Flush the
17474 clobbers list when either gets too long.
17475
17476 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17477
17478 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17479 and INDEX_REGS the same as GENERAL_REGS.
17480 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17481
17482 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17483
17484 * tree.c (build_nonstandard_integer_type): Correct prototype.
17485
17486 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
17487
17488 * config/s390/s390.md (movstrsico, movstrdix_64,
17489 movstrsix_31): Remove, replace by ...
17490 (movstrdi_short, movstrsi_short, movstrdi_long,
17491 movstrsi_long): ... these. New.
17492 (movstrdi, movstrsi): Adapt.
17493
17494 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
17495 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
17496 Remove unnecessary CC clobber.
17497 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17498 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17499
17500 (divmoddi4): Don't partially initialize TImode register.
17501
17502 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
17503
17504 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17505
17506 2002-01-29 Richard Henderson <rth@redhat.com>
17507
17508 * flow.c (print_rtl_and_abort): Remove.
17509 (print_rtl_and_abort_fcn): Remove.
17510 (verify_local_live_at_start): Use dump_bb instead.
17511 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17512 (verify_wide_reg_1): Return 2 on mode test failure.
17513
17514 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17515
17516 PR c/3325, c/3326, c/2511, c/3347
17517 * c-decl.c (enum_decl_context): Remove BITFIELD.
17518 (grokdeclarator): Take bitfield width as an input.
17519 Ensure bitfields are given the correct type. Perform
17520 bitfield width validation with build_bitfield_integer_type
17521 rather than waiting for finish_struct.
17522 (grok_typename, grok_typename_in_parm_context, start_decl,
17523 push_parmdecl, grokfield, start_function): Update calls to
17524 grokdeclarator.
17525 (build_bitfield_integer_type): New function.
17526 (finish_struct): Move bitfield validation to grokdeclarator
17527 and build_bitfield_integer_type.
17528 * tree.c (build_nonstandard_integer_type): New function.
17529 * tree.h (build_nonstandard_integer_type): New prototype.
17530 objc:
17531 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17532
17533 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17534
17535 PR other/1502:
17536 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17537 don't ignore unrecognized -W* options.
17538 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17539 * cpplib.h (cpp_handle_option): Adjust prototype.
17540 * c-decl.c (c_decode_options): Pass 0 as last argument to
17541 cpp_handle_option.
17542
17543 PR c/2896:
17544 * gcc.c (cpp_unique_options): Split from cpp_options.
17545 (cpp_options): Source cpp_unique_options.
17546 (default_compilers): Use cpp_unique_options instead of cpp_options
17547 when used together with cc1_options.
17548 (static_specs): Add cpp_unique_options.
17549 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17550 when used together with cc1_options.
17551
17552 2002-01-29 Kazu Hirata <kazu@hxi.com>
17553
17554 * config/h8300/h8300-protos.h: Update the prototype of
17555 output_a_shift.
17556 * config/h8300/h8300.c (output_a_shift): Remove an unused
17557 argument 'insn'. Remove redundant code.
17558 * config/h8300/h8300.md: Adust to the new prototype of
17559 output_a_shift.
17560
17561 2002-01-29 Kazu Hirata <kazu@hxi.com>
17562
17563 * config/h8300/h8300-protos.h: Update the prototypes of
17564 emit_a_rotate and expand_a_rotate.
17565 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17566 first argument to 'enum rtx_code'.
17567 (expand_a_rotate): Likewise.
17568
17569 2002-01-28 Kazu Hirata <kazu@hxi.com>
17570
17571 * config/h8300/h8300-protos.h: Update the prototype of
17572 output_simode_bld.
17573 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17574 'log2'.
17575 * config/h8300/h8300.md: Adjust to the new prototype.
17576
17577 2002-01-28 Kazu Hirata <kazu@hxi.com>
17578
17579 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17580 redundant code.
17581
17582 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
17583
17584 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17585 is a fixed register before returning pic_offset_table_rtx.
17586 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17587 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17588
17589 2002-01-28 Jason Merrill <jason@redhat.com>
17590
17591 * dwarf2.h: Sync with src version.
17592
17593 2002-01-28 Paul Koning <pkoning@equallogic.com>
17594
17595 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17596 BT_FN_VOID_PTR_VAR.
17597 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17598 * doc/extend.texi (__builtin_prefetch): Update documentation:
17599 first argument is now const void ptr.
17600
17601 2002-01-28 Kazu Hirata <kazu@hxi.com>
17602
17603 * config/h8300/h8300-protos.h: Remove an unused prototype.
17604
17605 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
17606
17607 * toplev.c (lang_independent_init): Round up identifier size.
17608
17609 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
17610
17611 * config.gcc: Revert previous change.
17612
17613 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
17614
17615 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17616
17617 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
17618
17619 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17620 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
17621 other non-elf netbsd config frags.
17622 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17623 collect2 will does that.
17624 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17625 shared-lib frobbing will work.
17626
17627 2002-01-28 Kazu Hirata <kazu@hxi.com>
17628
17629 * config/h8300/h8300.h: Fix formatting.
17630 * config/h8300/h8300.md: Likewise.
17631
17632 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
17633
17634 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17635 the old, removed AAA_standards fix.
17636 * fixinc/fixincl.x: Rebuilt.
17637
17638 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
17639
17640 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17641 atexit call in crtbegin, hooked in after call to frame_dummy;
17642 register EH before registering __fini__start.
17643
17644 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
17645
17646 * config/rs6000/altivec.h: Remove spurious semicolons.
17647
17648 2002-01-27 Kazu Hirata <kazu@hxi.com>
17649
17650 * config/h8300/h8300.md: Replace dead bit extraction patterns
17651 with ones that work.
17652
17653 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17654
17655 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17656 if not STRICT_ALIGNMENT.
17657 * rtl.h (MEM_ALIGN): Likewise.
17658
17659 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
17660
17661 * doc/invoke.texi (-fdump-translation-unit): Revert this
17662 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
17663
17664 2002-01-27 Kazu Hirata <kazu@hxi.com>
17665
17666 * config/h8300/h8300.md (define_constants): New.
17667 (anonymous patterns) Use defined constants appropriately.
17668
17669 2002-01-27 Kazu Hirata <kazu@hxi.com>
17670
17671 * config/h8300/h8300.c (function_arg): Remove redundant code.
17672
17673 2002-01-26 Richard Henderson <rth@redhat.com>
17674
17675 * sched-deps.c (reg_pending_uses_head): New.
17676 (reg_pending_barrier): Rename from reg_pending_sets_all.
17677 (find_insn_list): Don't mark inline.
17678 (find_insn_mem_list): Remove.
17679 (add_dependence_list, add_dependence_list_and_free): New.
17680 (flush_pending_lists): Replace only_write param with separate
17681 for_read and for_write parameters. Update all callers. Use
17682 add_dependence_list_and_free.
17683 (sched_analyze_1): Do not add reg dependencies here; just set
17684 the pending bits. Use add_dependence_list.
17685 (sched_analyze_2): Likewise.
17686 (sched_analyze_insn): Replace schedule_barrier_found with
17687 reg_pending_barrier. Add all dependencies for pending reg
17688 uses, sets, and clobbers.
17689 (sched_analyze): Don't add reg dependencies for calls, just
17690 set pending bits. Use regs_invalidated_by_call. Treat
17691 sched_before_next_call as a normal list, not a fake insn.
17692 (init_deps): No funny init for sched_before_next_call.
17693 (free_deps): Free pending mems lists. Don't zero reg_last.
17694 (init_deps_global): Init reg_pending_uses.
17695 (finish_deps_global): Free it.
17696 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
17697 (find_insn_mem_list): Remove.
17698 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17699 (propagate_deps): Use them. Zero temp mem lists.
17700
17701 2002-01-26 Richard Henderson <rth@redhat.com>
17702
17703 * Makefile.in (CRTSTUFF_CFLAGS): New.
17704 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17705 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17706 crtstuff.c instead of alpha assembly version.
17707 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17708 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
17709 not FORCE_{INIT,FINI}_SECTION_ALIGN.
17710 (__do_global_dtors_aux): Mark used.
17711 (frame_dummy, __do_global_ctors_aux): Mark used.
17712 (fini_dummy, init_dummy): Remove.
17713
17714 * config/alpha/crtbegin.asm: Remove file.
17715 * config/alpha/crtend.asm: Remove file.
17716 * config/alpha/t-crtbe: Remove file.
17717 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17718 (LINK_EH_SPEC): New.
17719
17720 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17721 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
17722 calling constructors.
17723 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17724
17725 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17726 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17727 CRT_END_INIT_DUMMY hack.
17728 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17729 FORCE_{INIT,FINI}_SECTION_ALIGN.
17730
17731 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17732 FORCE_{INIT,FINI}_SECTION_ALIGN.
17733
17734 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17735 invocation sequence.
17736 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17737
17738 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17739 (FORCE_CODE_SECTION_ALIGN): New.
17740
17741 2002-01-26 Richard Henderson <rth@redhat.com>
17742
17743 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17744
17745 2002-01-26 Richard Henderson <rth@redhat.com>
17746
17747 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17748 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17749
17750 2002-01-26 Kazu Hirata <kazu@hxi.com>
17751
17752 * config/h8300/h8300.md: Remove bit extraction patterns that
17753 cannot be triggered.
17754 Restrict each bit extraction pattern to a variant on which the
17755 pattern is tested.
17756
17757 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
17758
17759 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17760
17761 2002-01-26 Kazu Hirata <kazu@hxi.com>
17762
17763 * config/h8300/h8300.md: Remove bit test patterns that cannot
17764 be triggered.
17765 Restrict each bit test pattern to a variant on which the
17766 pattern is tested.
17767
17768 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17769
17770 * builtins.c (expand_builtin_strncat): Remove redundant check for
17771 INTEGER_CST.
17772
17773 2002-01-25 David O'Brien <obrien@FreeBSD.org>
17774
17775 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17776 default setting.
17777 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17778 existing setting.
17779
17780 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
17781
17782 * dbxout.c (dbxout_init): Use assemble_name rather than just
17783 stripping off the first character.
17784 (dbxout_source_file): Likewise.
17785
17786 2002-01-25 DJ Delorie <dj@redhat.com>
17787
17788 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17789 using rtx_equal_p, not by comparing pointers.
17790
17791 2002-01-25 Steve Ellcey <sje@cup.hp.com>
17792
17793 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17794 for PIC_OFFSET_TABLE_REGNUM.
17795 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17796
17797 2002-01-25 David O'Brien <obrien@FreeBSD.org>
17798
17799 * config.gcc (x86_64-*-freebsd*): New target.
17800 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17801 value.
17802 (i[34567]86-*-freebsd*): Don't include svr4.h.
17803 * config/i386/freebsd64.h: New file.
17804
17805 2002-01-25 Douglas B Rupp <rupp@gnat.com>
17806
17807 * config/alpha/x-vms (version): Make static.
17808
17809 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17810 in previous checkin.
17811
17812 * Makefile.in (install-headers-cp): New target.
17813 * config.gcc (alpha-dec-*vms*): Install headers with
17814 install-headers-cp
17815
17816 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
17817
17818 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17819 avoid it's copies.
17820
17821 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17822
17823 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17824 of compare_tree_int.
17825 (expand_builtin_strncat): Likewise.
17826 * c-decl.c (finish_struct): Use tree_low_cst.
17827 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17828 * tree.c (compare_tree_int): Likewise.
17829
17830 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17831
17832 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17833 adjustments even if they are implemented by more than two insns.
17834
17835 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
17836
17837 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
17838 * df.h (struct ref): Kill B.
17839 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17840
17841 * basic-block.h (PROP_EQUAL_NOTES): New flag.
17842 * flow.c (propagate_one_insn): Use it.
17843 (mark_used_regs): Handle NIL.
17844
17845 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
17846
17847 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17848 to help folding.
17849
17850 2002-01-25 David Edelsohn <edelsohn@gnu.org>
17851
17852 * rs6000.md (prefetch): Make address V4SI mode so that the address
17853 is restricted to legitimate form for instruction.
17854
17855 2002-01-25 Bob Wilson <bob.wilson@acm.org>
17856
17857 * doc/install.texi (xtensa-*-elf): New target.
17858 (xtensa-*-linux*): New target.
17859 * doc/contrib.texi: Add myself.
17860
17861 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
17862
17863 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17864 purpose register to hold an SImode (or smaller) value.
17865
17866 2002-01-25 Jakub Jelinek <jakub@redhat.com>
17867
17868 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17869 registry only.
17870 * crtstuff.c: Likewise.
17871
17872 2002-01-25 Kazu Hirata <kazu@hxi.com>
17873
17874 * config/h8300/h8300.md (negation patterns): Tighten
17875 predicates to register_operand.
17876
17877 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
17878
17879 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17880 mode, not Pmode.
17881
17882 * builtins.c (expand_builtin_prefetch): Same.
17883
17884 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17885
17886 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17887 modes.
17888
17889 2002-01-24 Kazu Hirata <kazu@hxi.com>
17890
17891 * config/h8300/h8300.c (print_operand): Remove support for
17892 operand character 'A'.
17893 * config/h8300/h8300.md (three anonymous patterns): Replace
17894 operand character 'A' with either 'T' or 'S'.
17895
17896 2002-01-24 Kazu Hirata <kazu@hxi.com>
17897
17898 * config/h8300/h8300.c (print_operand): Remove support for
17899 operand character 'U'.
17900
17901 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
17902
17903 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
17904
17905 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
17906
17907 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17908 values to be assigned to the stack pointer.
17909
17910 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17911
17912 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
17913 to const_double needs to be done right for big-endian systems.
17914
17915 2002-01-24 Jason Merrill <jason@redhat.com>
17916
17917 PR c++/2432
17918 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17919 to can_throw_internal.
17920
17921 2002-01-23 Richard Henderson <rth@redhat.com>
17922
17923 * fold-const.c (fold): Change UINT_MAX test to check vs precision
17924 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
17925
17926 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17927
17928 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17929 (symGOT2reg): Use them, then set as GOT value as unchanging.
17930 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
17931 as a temporary, if possible.
17932 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
17933 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17934
17935 2002-01-23 Kazu Hirata <kazu@hxi.com>
17936
17937 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17938 accept to accept 0x80 as operands[2].
17939
17940 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17941
17942 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17943
17944 2002-01-23 Richard Henderson <rth@redhat.com>
17945
17946 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17947
17948 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
17949
17950 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17951 (parmlist_or_identifiers_1): Verify that only a parmlist follows
17952 an attribute.
17953
17954 2002-01-23 Richard Henderson <rth@redhat.com>
17955
17956 * expr.c (move_by_pieces_1): Extend size before negation.
17957
17958 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17959 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17960 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17961 * config/m68k/t-m68kelf: Likewise.
17962
17963 2002-01-23 Bob Wilson <bob.wilson@acm.org>
17964
17965 * config/xtensa/elf.h: New file.
17966 * config/xtensa/lib1funcs.asm: New file.
17967 * config/xtensa/lib2funcs.S: New file.
17968 * config/xtensa/linux.h: New file.
17969 * config/xtensa/t-xtensa: New file.
17970 * config/xtensa/xtensa-config.h: New file.
17971 * config/xtensa/xtensa-protos.h: New file.
17972 * config/xtensa/xtensa.c: New file.
17973 * config/xtensa/xtensa.h: New file.
17974 * config/xtensa/xtensa.md: New file.
17975 * config.gcc (xtensa-*-elf*): New target.
17976 (xtensa-*-linux*): New target.
17977 * cse.c (canon_hash): Compare rtx pointers instead of register
17978 numbers. This is required for the Xtensa port.
17979 * integrate.c (copy_insn_list): Handle case where the static
17980 chain is in memory and the memory address has to be copied to
17981 a register.
17982 * doc/invoke.texi (Option Summary): Add Xtensa options.
17983 (Xtensa Options): New node.
17984 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17985
17986 2002-01-23 Zack Weinberg <zack@codesourcery.com>
17987
17988 * diagnostic.c (internal_error): Do ICE suppression only
17989 when ENABLE_CHECKING is not defined.
17990
17991 * c-typeck.c (require_complete_type): Return error_mark_node
17992 if type is error_mark_node.
17993
17994 2002-01-23 Janis Johnson <janis187@us.ibm.com>
17995
17996 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17997 -Os and issue a warning.
17998
17999 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18000
18001 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18002 current (lack of) need for host configuration by hand.
18003
18004 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18005 references. Documentation of some target macros moved from
18006 hostconfig.texi to tm.texi.
18007
18008 2002-01-23 Will Cohen <wcohen@redhat.com>
18009
18010 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18011 defined.
18012
18013 2002-01-23 Kazu Hirata <kazu@hxi.com>
18014
18015 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18016 operand[3].
18017
18018 2002-01-23 Jason Merrill <jason@redhat.com>
18019
18020 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18021
18022 * function.c (assign_parms): Don't put args of inline functions
18023 into registers when not optimizing.
18024
18025 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
18026
18027 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18028 (prologue_use): New pattern.
18029 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18030 preference to gen_rtx_USE.
18031 (thumb_expand_prologue): Use gen_prologue_use in preference to
18032 gen_rtx_USE.
18033 (thumb_expand_epilogue): Use gen_prologue_use in preference to
18034 gen_rtx_USE.
18035
18036 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
18037
18038 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18039
18040 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
18041
18042 PR c/3504
18043 * doc/extend.texi: Correct documentation of __alignof__.
18044
18045 2002-01-22 Zack Weinberg <zack@codesourcery.com>
18046
18047 * params.h: Rename arguments of DEFPARAM so that it will be
18048 recognized as a translation keyword.
18049
18050 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18051
18052 * extend.texi: Document altivec functions.
18053 Fix N-bit adjectives in X86 builtin documentation.
18054
18055 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18056
18057 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18058 auto_inc_dec values.
18059
18060 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
18061
18062 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
18063 after backslash.
18064 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
18065
18066 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18067
18068 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
18069
18070 2002-01-22 Richard Henderson <rth@redhat.com>
18071
18072 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
18073 copy_insn not copy_rtx.
18074
18075 2002-01-23 Alan Modra <amodra@bigpond.net.au>
18076
18077 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
18078 "nonzero" as that might add "1" bits. Ensure "constop" is
18079 properly sign extened.
18080 (force_to_mode): Tweak for sign extended constop.
18081
18082 2002-01-22 Richard Henderson <rth@redhat.com>
18083
18084 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
18085 for_each_rtx instead of assuming we're already looking at the MEM.
18086 (split_small_symbolic_mem_operand): Likewise.
18087 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18088 * config/alpha/alpha.md (small symbolic memory splitters): Update.
18089
18090 2002-01-22 Richard Henderson <rth@redhat.com>
18091
18092 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
18093 sequence number for the literal.
18094 (divmoddi_internal_er): Likewise.
18095
18096 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18097
18098 PR java/4972
18099 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
18100 in LIBICONV variable.
18101 * configure: Regenerated.
18102
18103 2002-01-22 Krister Walfridsson <cato@df.lth.se>
18104
18105 * dependence.c (build_def_use): Remove array_idx.
18106
18107 * dwarfout.c (last_filename): Remove.
18108 (output_compile_unit_die): Remove last_filename.
18109
18110 2002-01-22 Roger Sayle <roger@eyesopen.com>
18111 Richard Henderson <rth@redhat.com>
18112
18113 PR opt/3640
18114 * fold-const.c (fold): Optimize unsigned comparisons against
18115 UINT_MAX (and similar unsigned constants).
18116
18117 2002-01-22 Janis Johnson <janis187@us.ibm.com>
18118
18119 * Makefile.in (loop.o): Depend on OPTABS_H.
18120 * loop.c (emit_prefetch_instructions): Check the prefetch operand
18121 against the predicate.
18122
18123 PR target/5379
18124 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
18125 for the address operand.
18126
18127 2002-01-22 Richard Henderson <rth@redhat.com>
18128
18129 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
18130
18131 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18132
18133 PR other/5450
18134 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
18135 preprocessor flags.
18136
18137 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
18138
18139 * config.gcc (x86_64-*-netbsd*): New target.
18140 * config/i386/netbsd64.h: New file.
18141
18142 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18143
18144 * regrename.c (kill_value): Fix typo.
18145
18146 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18147
18148 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
18149
18150 * config/rs6000/rs6000.h: Same.
18151
18152 * function.c (instantiate_virtual_regs): Remove
18153 STARTING_FRAME_PHASE.
18154 (assign_stack_local_1): Same.
18155 Calculate frame phase.
18156
18157 2002-01-22 Nick Clifton <nickc@redhat.com>
18158
18159 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
18160 variable declaration to outer scope in order to simplify
18161 future extensions.
18162 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
18163 arm_hard_regno_mode_ok.
18164 * config/arm/arm-protos.h: Add a prototype for
18165 arm_hard_regno_mode_ok.
18166 * config/arm/arm.c (soft_df_operand): Remove now redundant
18167 check for DImode values using IP_REGNUM.
18168 (nonimmediate_soft_df_operand): Remove now redundant check for
18169 DImode values using IP_REGNUM.
18170 (arm_hard_regno_mode_ok): New function. New check: make sure
18171 that DImode values are not stored in IP_REGNUM.
18172
18173 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
18174 note with a USE.
18175 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
18176
18177 2002-01-22 Jason Merrill <jason@redhat.com>
18178
18179 * c-semantics.c (genrtl_compound_stmt): Only check nesting
18180 consistency if this COMPOUND_STMT is scoped.
18181
18182 2002-01-22 Kazu Hirata <kazu@hxi.com>
18183
18184 * predict.c: Fix formatting.
18185 * print-tree.c: Likewise.
18186 * protoize.c: Likewise.
18187 * real.h: Likewise.
18188 * rtl.h: Likewise.
18189 * sbitmap.h: Likewise.
18190 * scan.c: Likewise.
18191 * sched-deps.c: Likewise.
18192 * sched-vis.c: Likewise.
18193 * sdbout.c: Likewise.
18194 * sibcall.c: Likewise.
18195 * ssa.c: Likewise.
18196 * ssa-ccp.c: Likewise.
18197 * ssa-dce.c: Likewise.
18198 * stmt.c: Likewise.
18199 * stor-layout.c: Likewise.
18200 * system.h: Likewise.
18201
18202 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18203
18204 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18205 if fits in bounds of base type.
18206
18207 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18208 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18209 (add_bound_info, default): If can't find a context, make a
18210 SAVE_EXPR.
18211 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18212
18213 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
18214
18215 * c-typeck.c (parser_build_binary_op): If result from
18216 build_binary_op is ERROR_MARK just return error_mark_node without
18217 further processing.
18218
18219 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18220
18221 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18222 Split a.out-specific bits into...
18223 * config/netbsd-aout.h: ...this.
18224 * config/netbsd-elf.h: New file.
18225 * config/alpha/netbsd-elf.h: Remove.
18226 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18227 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
18228 (STARTFILE_SPEC): Remove redundant definition.
18229 (ENDFILE_SPEC): Likewise.
18230 (LINK_SPEC): Likewise.
18231 (CPP_SPEC): Likewise.
18232 (ASM_SPEC): Likewise.
18233 (LIB_SPEC): Likewise.
18234 (SWITCH_TAKES_ARG): Likewise.
18235 (TARGET_MEM_FUNCTIONS): Likewise.
18236 (CPP_PREDEFINES): Redefine.
18237 (ASM_FINAL_SPEC): Remove redefinition.
18238 (ASM_COMMENT_START): Redefine.
18239 (FUNCTION_PROFILER): Define.
18240 (TARGET_VERSION): Redefine.
18241 Comment and formatting cleanup.
18242 * config/i386/netbsd.h: Include <netbsd-aout.h>.
18243 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18244 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18245 big- or little-endian.
18246 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18247 * config.gcc (*-*-netbsd*): Add definitions common to all
18248 NetBSD configs.
18249 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18250 gnu_ld definitions. Add netbsd-elf.h to and remove
18251 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
18252 tmake_file, and don't lose previous tmake_file contents.
18253 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18254 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18255 gnu_ld definitions. Add netbsd-elf.h to tm_file.
18256 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18257 (mipsel-*-netbsd*): Rename this to...
18258 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
18259 mips/little.h to tm_file for mips*el-*.
18260 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18261 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18262 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18263
18264 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18265
18266 * pa-protos.h (reg_before_reload_operand): New function prototype.
18267 * pa.c (reg_before_reload_operand): New function implementation.
18268 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
18269 contraints to "*m".
18270
18271 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18272
18273 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18274
18275 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18276
18277 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18278 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18279 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18280 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18281 (ENDFILE_SPEC): Undefine.
18282 (STARTFILE_SPEC): Redefine for PA.
18283
18284 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18285
18286 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18287
18288 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
18289
18290 * config.gcc: Add entries to supported PowerPC --with-cpu
18291 types.
18292
18293 2002-01-21 Jakub Jelinek <jakub@redhat.com>
18294
18295 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18296 true for 64-bit mode only SSE registers in 32-bit mode.
18297
18298 2002-01-21 Kazu Hirata <kazu@hxi.com>
18299
18300 * unwind-dw2.c: Fix formatting.
18301 * unwind-dw2-fde.c: Likewise.
18302 * unwind-dw2-fde.h: Likewise.
18303 * unwind-pe.h: Likewise.
18304 * varasm.c: Likewise.
18305 * varray.h: Likewise.
18306
18307 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
18308
18309 Remove workaround for register stack overwrite bug in mmix.
18310 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18311 support for TARGET_REG_STACK_FILL_BUG.
18312 * config/mmix/mmix.h: Remove member has_call_without_parameters.
18313 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18314 Delete.
18315 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18316 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18317 -mno-reg-stack-fill-bug-workaround.
18318 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18319 machine member has_call_without_parameters.
18320 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18321 -mreg-stack-fill-bug-workaround and
18322 -mno-reg-stack-fill-bug-workaround.
18323 (MMIX Options): Ditto.
18324
18325 2002-01-21 Kazu Hirata <kazu@hxi.com>
18326
18327 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18328 as appropriate.
18329 Remove redundant code.
18330
18331 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
18332
18333 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18334 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18335 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18336 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18337 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18338 out target macro definitions and non-target-specific comments
18339 mostly taken from old versions of the manual.
18340
18341 2002-01-20 Kazu Hirata <kazu@hxi.com>
18342
18343 * config/h8300/h8300.h: Fix comment formatting.
18344 * config/ia64/aix.h: Likewise.
18345 * config/ia64/ia64-protos.h: Likewise.
18346 * config/ia64/ia64.c: Likewise.
18347 * config/ia64/ia64.h: Likewise.
18348 * config/ia64/ia64intrin.h: Likewise.
18349 * config/ia64/linux.h: Likewise.
18350 * config/ia64/unwind-aix.c: Likewise.
18351 * config/ia64/unwind-ia64.c: Likewise.
18352
18353 2002-01-20 Kazu Hirata <kazu@hxi.com>
18354
18355 * config/h8300/h8300.c: Revise comments about shift code.
18356
18357 2002-01-20 Kazu Hirata <kazu@hxi.com>
18358
18359 * config/h8300/h8300.c (function_arg): Update a comment.
18360
18361 2002-01-20 Kazu Hirata <kazu@hxi.com>
18362
18363 * config/h8300/h8300.md: Update the comments at the beginning
18364 of the file.
18365
18366 2002-01-20 Kazu Hirata <kazu@hxi.com>
18367
18368 * config/i370/i370.c: Fix comment formatting.
18369 * config/i370/i370.h: Likewise.
18370 * config/i370/i370.md: Likewise.
18371 * config/i370/linux.h: Likewise.
18372
18373 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18374
18375 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18376
18377 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18378 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18379 in incomplete case.
18380
18381 2002-01-20 Graham Stott <grahams@redhat.com>
18382
18383 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18384
18385 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
18386
18387 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18388
18389 2002-01-19 Tom Rix <trix@redhat.com>
18390
18391 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18392
18393 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
18394
18395 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
18396
18397 * function.c (assign_stack_local_1): Adjust x_frame_offset with
18398 STARTING_FRAME_PHASE.
18399 (STARTING_FRAME_PHASE): New.
18400 (instantiate_virtual_regs): Check saneness of
18401 STARTING_FRAME_PHASE.
18402
18403 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
18404
18405 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18406
18407 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18408
18409 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
18410
18411 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18412 be used for bootstrapping GCC 3.0.
18413
18414 2002-01-18 Kazu Hirata <kazu@hxi.com>
18415
18416 * config/h8300/h8300.md: Fix an insn length.
18417
18418 2002-01-18 Kazu Hirata <kazu@hxi.com>
18419
18420 * bitmap.h: Fix comment formatting.
18421 * combine.c: Likewise.
18422 * cppfiles.c: Likewise.
18423 * c-pragma.h: Likewise.
18424 * c-typeck.c: Likewise.
18425 * df.c: Likewise.
18426 * dwarf2out.c: Likewise.
18427 * function.c: Likewise.
18428 * gcc.c: Likewise.
18429 * genattrtab.c: Likewise.
18430 * gthr-win32.h: Likewise.
18431 * haifa-sched.c: Likewise.
18432 * predict.c: Likewise.
18433 * rtlanal.c: Likewise.
18434 * rtl.h: Likewise.
18435 * unwind-dw2-fde.h: Likewise.
18436 * unwind-pe.h: Likewise.
18437 * vmsdbgout.c: Likewise.
18438
18439 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18440
18441 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18442 if type_required and passed decl.
18443
18444 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
18445
18446 * config.gcc (cpu_type): Include altivec.h in powerpc
18447 extra_headers.
18448 Same for darwin.
18449
18450 * config/rs6000/altivec.h: New.
18451
18452 2002-01-17 David Edelsohn <edelsohn@gnu.org>
18453
18454 * doc/install.texi (*-ibm-aix*): Update assembler and exception
18455 handling information.
18456 * doc/trouble.texi (Interoperation): Add libstdc++ information
18457 for AIX.
18458 (Misunderstandings): Add template instantiation and static template
18459 member information for AIX.
18460
18461 2002-01-17 Jason Merrill <jason@redhat.com>
18462
18463 * dbxout.c (dbxout_type): Support const and volatile.
18464
18465 * except.c (add_partial_entry): Remove backwards compatibility code.
18466 (end_protect_partials): Likewise.
18467
18468 2002-01-17 Jakub Jelinek <jakub@redhat.com>
18469
18470 * config/ia64/ia64.md (prologue_use): New.
18471 * config/ia64/ia64.c (ia64_expand_prologue): Use
18472 gen_prologue_use instead of gen_rtx_USE.
18473 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18474 as CODE_FOR_pred_rel_mutex.
18475 (ia64_sched_reorder2): Likewise.
18476
18477 2002-01-16 Eric Christopher <echristo@redhat.com>
18478
18479 * config/mips/r3900.h: Reformat.
18480 (SUBTARGET_CPP_SIZE_SPEC): Remove.
18481 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18482 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18483 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18484 * config/mips/t-elf: Remove mips3 multilib.
18485
18486 2002-01-16 H.J. Lu <hjl@gnu.org>
18487
18488 * config/mips/linux.h: Include "mips/abi64.h".
18489
18490 2002-01-16 H.J. Lu <hjl@gnu.org>
18491
18492 * config/mips/t-linux: New.
18493
18494 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18495
18496 * config/mips/linux.h: Don't include "gofast.h".
18497 (INIT_SUBTARGET_OPTABS): Removed.
18498
18499 2002-01-16 Kazu Hirata <kazu@hxi.com>
18500
18501 * config/h8300/h8300-protos.h: Replace emit_a_shift with
18502 output_a_shift.
18503 * config/h8300/h8300.c: Likewise.
18504 * config/h8300/h8300.md: Likewise.
18505
18506 2002-01-16 Kazu Hirata <kazu@hxi.com>
18507
18508 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18509 spaces after an opcode name.
18510 (pushqi1_h8300hs): Likewise.
18511 (pushhi1_h8300hs): Likewise.
18512
18513 2002-01-16 Kazu Hirata <kazu@hxi.com>
18514
18515 * doc/extend.texi: Replace "option" with "attribute"
18516 appropriately.
18517
18518 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18519
18520 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18521 (and:DI () (const_int -8)).
18522 (split_small_symbolic_mem_operand): Split
18523 (mem (and:DI () (const_int -8)).
18524
18525 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18526
18527 PR target/5309:
18528 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
18529 same way as TYPE_IMUL.
18530 (ultrasparc_sched_reorder): Likewise.
18531 * config/sparc/sparc.md (type): Add comment to update
18532 ultrasparc_sched_reorder when making changes.
18533
18534 2002-01-16 Kazu Hirata <kazu@hxi.com>
18535
18536 * doc/invoke.texi: Change the dump file name of block
18537 reordering pass from 28.bbro to 29.bbro.
18538 Mention -dk option.
18539
18540 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
18541
18542 * i386.md (minsf splitter): Fix pasto.
18543
18544 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18545
18546 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18547 to frame pointer initialisation instruction.
18548 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18549 initialisation instruction.
18550 (soft_df_operand): Do not accept the IP register.
18551 (nonimmediate_soft_df_operand): Do not accept the IP register.
18552
18553 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18554
18555 PR target/5357:
18556 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18557 MASK_V8 being both set.
18558
18559 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
18560
18561 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18562 insn for GOT register; add REG_MAYBE_DEAD notes instead.
18563 config/s390/s390.md (call, call_value): Add GOT register to
18564 CALL_INSN_FUNCTION_USAGE where needed.
18565 (call_exp, call_value_exp): New.
18566
18567 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18568
18569 * config/arm/arm.c: General formatting tidy up.
18570
18571 2002-01-16 Graham Stott <grahams@redhat.com>
18572
18573 * calls.c (try_to_integrate): Use "(size_t)" intermediate
18574 cast and when casting an integer literal to "rtx" pointer.
18575 (expand_call): Likewise.
18576 * flow.c (try_pre_increment): Likewise.
18577 (find_use_as_address): Likewise.
18578 * integrate.c (expand_iline_function): Likewise.
18579 * regmove.c (try_auto_increment): Likewise.
18580
18581 2002-01-16 Graham Stott <grahams@redhat.com>
18582
18583 * sched-rgn.c (passed): Use sbitmap_free.
18584 (header): Likewise.
18585 (inner): Likewise.
18586 (in_queue): Likewise.
18587 (in_stack): Likewise.
18588
18589 2002-01-15 Eric Christopher <echristo@redhat.com>
18590
18591 * flow.c (propagate_one_insn): Change to use fatal_insn.
18592
18593 2002-01-15 Kazu Hirata <kazu@hxi.com>
18594
18595 * expmed.c (extract_fixed_bit_field): Remove unused code.
18596 * system.h: Poison SLOW_ZERO_EXTEND.
18597 * doc/tm.texi: Remove.
18598 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18599 * config/arm/arm.h: Likewise.
18600 * config/avr/avr.h: Likewise.
18601 * config/clipper/clipper.h: Likewise.
18602 * config/convex/convex.h: Likewise.
18603 * config/d30v/d30v.h: Likewise.
18604 * config/dsp16xx/dsp16xx.h: Likewise.
18605 * config/elxsi/elxsi.h: Likewise.
18606 * config/fr30/fr30.h: Likewise.
18607 * config/h8300/h8300.h: Likewise.
18608 * config/i370/i370.h: Likewise.
18609 * config/i386/i386.h: Likewise.
18610 * config/m68k/m68k.h: Likewise.
18611 * config/mips/mips.h: Likewise.
18612 * config/ns32k/ns32k.h: Likewise.
18613 * config/pdp11/pdp11.h: Likewise.
18614 * config/pj/pj.h: Likewise.
18615 * config/s390/s390.h: Likewise.
18616 * config/sh/sh.h: Likewise.
18617 * config/stormy16/stormy16.h: Likewise.
18618 * config/v850/v850.h: Likewise.
18619 * config/vax/vax.h: Likewise.
18620 * config/we32k/we32k.h: Likewise.
18621
18622 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
18623
18624 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18625 (altivec_lvsl): Change constraint to b.
18626 (altivec_lvsr): Same.
18627 (altivec_lvebx): Same.
18628 (altivec_lvehx): Same.
18629 (altivec_lvewx): Same.
18630 (altivec_lvxl): Same.
18631 (altivec_lvx): Same.
18632 (altivec_stvx): Add parallel.
18633 (altivec_stvxl): Same.
18634 (altivec_stvehx): Same.
18635 (altivec_stvebx): Same.
18636 (altivec_stvebx): Same.
18637
18638 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
18639
18640 * config.gcc: Change altivec.h to altivec-defs.h.
18641
18642 * config/rs6000/altivec.h: Delete.
18643
18644 * config/rs6000/altivec-defs.h: Add.
18645
18646 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18647
18648 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18649 and UMOD modes.
18650
18651 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18652 less than or equal to eight bytes.
18653
18654 * vax.md (andsi3): Remove constraints and change SET destination
18655 operand type to nonimmediate_operand.
18656 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
18657 when it is a CONST_INT.
18658
18659 2002-01-15 Jason Merrill <jason@redhat.com>
18660
18661 * c-common.def (FILE_STMT): New code.
18662 * c-common.c (statement_code_p): It's a statement.
18663 * c-common.h (stmt_tree_s): Add x_last_filename.
18664 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18665 (last_expr_filename): New macro.
18666 * c-semantics.c (begin_stmt_tree): Initialize it.
18667 (add_stmt): If the filename changed, also insert a
18668 FILE_STMT.
18669 (expand_stmt): Handle seeing one.
18670
18671 2002-01-15 Eric Christopher <echristo@redhat.com>
18672
18673 * flow.c (propagate_one_insn): Add error message and print out
18674 insn for debugging.
18675
18676 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18677
18678 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18679 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18680 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18681 TRAMPOLINE_ALIGNMENT.
18682 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
18683 to be in bits.
18684 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18685 PCC_BITFIELD_TYPE_MATTERS.
18686 * config/interix.h (STDC_VALUE): Remove. Use
18687 STDC_0_IN_SYSTEM_HEADERS.
18688 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18689 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18690 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18691
18692 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
18693
18694 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18695 not work on this platform currently.
18696
18697 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18698
18699 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18700 readonly_warning in _().
18701
18702 2002-01-15 Douglas B Rupp <rupp@gnat.com>
18703
18704 * gcc.c (delete_if_ordinary): Backout previous change.
18705
18706 2002-01-15 Kazu Hirata <kazu@hxi.com>
18707
18708 * config/h8300/h8300.c (print_operand): Remove support for
18709 unused operand characters.
18710
18711 * read-rtl.c: Fix formatting.
18712 * real.c: Likewise.
18713 * recog.c: Likewise.
18714 * regclass.c: Likewise.
18715 * regmove.c: Likewise.
18716 * reg-stack.c: Likewise.
18717 * reload1.c: Likewise.
18718 * rtlanal.c: Likewise.
18719
18720 2002-01-15 Kazu Hirata <kazu@hxi.com>
18721
18722 * config/i386/i386.c: Fix formatting.
18723
18724 2002-01-15 Jakub Jelinek <jakub@redhat.com>
18725
18726 * c-typeck.c (process_init_element): Don't save_expr
18727 COMPOUND_LITERAL_EXPR if just its initializer will be used.
18728
18729 2002-01-15 David Edelsohn <edelsohn@gnu.org>
18730
18731 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18732 emit optional traceback table if optimize_size or TARGET_ELF.
18733 * config/rs6000/rs6000.md (prefetch): New.
18734
18735 2002-01-15 Andreas Jaeger <aj@suse.de>
18736
18737 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18738
18739 2002-01-15 Kazu Hirata <kazu@hxi.com>
18740
18741 * mips-tfile.c: Fix formatting.
18742
18743 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
18744
18745 * unroll.c (final_reg_note_copy): Fix previous commit.
18746
18747 2002-01-14 Kazu Hirata <kazu@hxi.com>
18748
18749 * config/h8300/h8300-protos.h: Remove the prototype for
18750 eq_operator.
18751 * config/h8300/h8300.c (eq_operator): Remove.
18752
18753 2002-01-14 Richard Henderson <rth@redhat.com>
18754
18755 * config/i386/i386.md (prefetch): Tidy.
18756 (prefetch_3dnow): Fix locality operand.
18757
18758 2002-01-14 Richard Henderson <rth@redhat.com>
18759
18760 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18761 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18762
18763 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
18764
18765 * reload1.c (reload_combine): Pass reg_sum replacement through
18766 copy_rtx in loop performing multiple changes.
18767
18768 2002-01-14 Jakub Jelinek <jakub@redhat.com>
18769
18770 * except.c (remove_unreachable_regions): New.
18771 (free_eh_status): Clear exception_handler_labels.
18772 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18773 (find_exception_handler_labels): Don't add the same label more than
18774 once.
18775 (remove_exception_handler_label): Don't die if
18776 find_exception_handler_labels hasn't been called for the current
18777 function yet.
18778
18779 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
18780
18781 * toplev.c (rest_of_compilation): Rebuild jump labels after
18782 gcse.
18783
18784 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
18785
18786 * doc/extend.texi: Move documentation of X86 built-in functions
18787 here.
18788 * doc/invoke.texi: From here.
18789 * doc/sourcebuild.texi: Document location of documentation for
18790 machine built-in functions.
18791
18792 2002-01-13 Christopher Faylor <cgf@redhat.com>
18793
18794 * cppfiles.c (TEST_THRESHOLD): New macro.
18795 (SHOULD_MMAP): Ditto.
18796 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18797 be used.
18798
18799 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
18800
18801 * unroll.c (final_reg_note_copy): Properly handle
18802 REG_LABEL
18803 (unroll_loops): Fix LOOP_CONDITION heuristics.
18804
18805 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
18806
18807 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18808 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18809
18810 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
18811
18812 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18813 threaded loop.
18814
18815 2002-01-14 Tom Rix <trix@redhat.com>
18816
18817 * config/rs6000/rs6000.md: Fix typo with sradi.
18818
18819 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
18820
18821 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18822 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18823 (clrstrdi, clrstrsi): Adapt callers.
18824
18825 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18826
18827 (movti splitter): Never use register 0 as base register.
18828
18829 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18830
18831 * combine.c (simplify_shift_const): Always generate new rtx
18832 for shift expression instead of reusing given expression.
18833
18834 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18835
18836 * config/alpha/alpha.c (alpha_expand_mov): Don't call
18837 alpha_legitimize_address unless mode is Pmode.
18838
18839 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
18840
18841 * doc/md.texi (Modifiers): Document the '*' constraint for the
18842 user.
18843
18844 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18845 * doc/extend.texi (Function Attributes): 'interrupt' is valid
18846 for xstormy16 too.
18847
18848 2002-01-13 Richard Henderson <rth@redhat.com>
18849
18850 * reload.c (find_reloads): Use a hard reg destination as reload reg
18851 for an input reload of the source.
18852
18853 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18854
18855 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18856 more generic.
18857
18858 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
18859
18860 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18861 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18862
18863 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18864
18865 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18866
18867 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18868
18869 2002-01-12 Tom Rix <trix@redhat.com>
18870
18871 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
18872 TARGET_POWERPC64.
18873
18874 2002-01-12 Richard Henderson <rth@redhat.com>
18875
18876 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18877
18878 * doc/invoke.texi: Update Alpha options.
18879
18880 * doc/invoke.texi: Update i386 built-in function lists.
18881
18882 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
18883
18884 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18885 referencing outside.
18886
18887 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18888
18889 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18890 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18891 offsets, and change line folding.
18892 * optabs.c (expand_binop): Remove warnings.
18893 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
18894
18895 2002-01-12 Graham Stott <grahams@redhat.com>
18896
18897 * attribs.c (handle_deprecated_attribute): constify WHAT.
18898 * diagnostic.c (warn_deprecated_use): Add braces, fixes
18899 dangling else warning and constify WHAT.
18900 * except.h (struct function, struct inline_remap): Move
18901 struct tag forward defs before all prototypes.
18902 (duplicate_eh_regions): Whitespace.
18903
18904 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
18905
18906 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18907 MODE_BASE_REG_CLASS.
18908 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18909
18910 2002-01-12 Richard Henderson <rth@redhat.com>
18911
18912 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18913 (ix86_expand_vector_move): New.
18914 (bdesc_2arg): Remove andps, andnps, orps, xorps.
18915 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
18916 Remove old prefetch builtins. Special case the logicals removed above.
18917 (ix86_expand_builtin): Likewise.
18918 (safe_vector_operand): Use V4SFmode, not TImode.
18919 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
18920 (ix86_expand_timode_binop_builtin): New.
18921 * config/i386/i386-protos.h: Update.
18922 * config/i386/i386.h (enum ix86_builtins): Update.
18923 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18924 Use ix86_expand_vector_move in vector move expanders.
18925 (movti_internal, movti_rex64): Add xorps alternative.
18926 (sse_clrv4sf): Rename and adjust from sse_clrti.
18927 (prefetch): Don't work so hard.
18928 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18929 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18930 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18931
18932 2002-01-11 Richard Henderson <rth@redhat.com>
18933
18934 * config/i386/mmintrin.h: New file.
18935 * config/i386/xmmintrin.h: New file.
18936 * config.gcc (i?86-*-*): Add extra_headers.
18937 * simplify-rtx.c (simplify_unary_operation): Handle saturating
18938 truncation codes.
18939 (simplify_binary_operation): Handle saturating arithmetic codes.
18940 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18941 not the lowpart subreg.
18942 (ix86_expand_builtin): Return a TImode dummy register instead of 0
18943 on error.
18944 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18945
18946 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18947
18948 * conflict.c (conflict_graph_compute): Free regsets when finished.
18949 * ssa.c (compute_coalesced_reg_partition): Likewise.
18950
18951 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18952
18953 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18954 every where we allocate a register.
18955
18956 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18957
18958 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18959 * lcm.c (compute_earliest, compute_farthest): Likewise.
18960
18961 2002-01-11 Janis Johnson <janis187@us.ibm.com>
18962
18963 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18964
18965 2002-01-11 Janis Johnson <janis187@us.ibm.com>
18966
18967 * doc/rtl.texi (Insns): Fix 2 typos.
18968
18969 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
18970
18971 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
18972 options. Use @table @gcctabopt for MMIX options. Add index
18973 entries for MMIX options. Start new paragraph with first
18974 heading of the machine-dependent options.
18975
18976 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
18977
18978 PR other/5299
18979 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18980 * combine.c (force_to_mode): Same.
18981 * reload1.c (clear_reload_reg_in_use): Same.
18982
18983 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
18984
18985 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18986 and 'subtargets'.
18987
18988 2002-01-11 Andreas Jaeger <aj@suse.de>,
18989 Brad Lucier <lucier@math.purdue.edu>
18990
18991 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18992 mcpu.
18993
18994 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
18995
18996 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18997 Protect with IN_LIBGCC.
18998 (LINK_EH_SPEC): Add required trailing space.
18999
19000 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
19001
19002 * c-tree.h: Move function declarations so that they are listed
19003 under the filename which contains them.
19004 (check_identifier, finish_decl_top_level,
19005 lookup_name_current_level_global, shadow_record_fields): Remove.
19006
19007 2002-01-11 Andreas Jaeger <aj@suse.de>
19008
19009 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19010 march.
19011
19012 2002-01-10 Richard Henderson <rth@redhat.com>
19013
19014 * config/alpha/alpha.c (print_operand): Add 'J'.
19015 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19016 new operand with the sequence number for the lituse. When splitting
19017 the insns, use gen_movdi_er_high_g and generate a sequence number.
19018 (gen_movdi_er_high_g): Print the sequence number if non-zero.
19019
19020 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
19021
19022 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19023 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19024 stvxl.
19025 (altivec_expand_builtin): Same.
19026 (altivec_expand_stv_builtin): New.
19027
19028 * config/rs6000/rs6000.h (rs6000_builtins): Same.
19029
19030 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19031 ("altivec_lvehx"): New.
19032 ("altivec_lvewx"): New.
19033 ("altivec_lvxl"): New.
19034 ("altivec_lvx"): New.
19035 ("altivec_stvx"): New.
19036 ("altivec_stvebx"): New.
19037 ("altivec_stvehx"): New.
19038 ("altivec_stvewx"): New.
19039 ("altivec_stvxl"): New.
19040
19041 2002-01-10 Richard Henderson <rth@redhat.com>
19042
19043 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19044 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
19045 care not to delete instructions twice.
19046
19047 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19048
19049 * toplev.c: Don't declare environ (it's not used anywhere).
19050 * configure.in: Don't check for declaration of environ.
19051 * config/i386/xm-mingw32.h: Don't #define environ.
19052 * config.in, configure: Regenerate.
19053
19054 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19055
19056 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19057 * configure: Regenerate.
19058
19059 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19060 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19061 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19062 alpha/xm-vms.h.
19063 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
19064 LIMITS_H_TEST here, not in m68k/x-next.
19065 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
19066 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
19067
19068 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
19069 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
19070 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
19071
19072 * config/i386/x-djgpp: Renamed i386/t-djgpp.
19073 * config/m88k/x-dolph: Renamed m88k/t-dolph.
19074 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
19075 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
19076 replacement of quadlib.asm with quadlib.c.
19077
19078 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
19079 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
19080 config/rs6000/xm-beos.h: Delete file.
19081
19082 * config.gcc: Update to match above changes.
19083
19084 2002-01-10 Kazu Hirata <kazu@hxi.com>
19085
19086 * config/h8300/h8300.h: Fix comment typos.
19087 * config/h8300/h8300.md: Likewise.
19088 * config/h8300/lib1funcs.asm: Likewise.
19089
19090 2002-01-10 Dale Johannesen <dalej@apple.com>
19091
19092 PR optimization/5269
19093 * unroll.c (precondition_loop_p): Make *increment be the correct
19094 sign when n_iterations known, to avoid confusing caller.
19095
19096 2002-01-10 Kazu Hirata <kazu@hxi.com>
19097
19098 * doc/extend.texi (deprecated): Fix a typo.
19099
19100 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
19101
19102 * basic-block.h (update_br_prob_note): Declare.
19103 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
19104 (try_forward_edges): Care negative frequencies and update note.
19105 (outgoing_edges_match): Tweek conditional merging heuristics.
19106 (try_crossjump_to_edge): use update_br_prob_note.
19107 * cfglayout.c (fixup_reorder_chain): Likewise.
19108 * cfrtl.c (update_br_prob_note): New.
19109 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
19110
19111 * i386.c (ix86_decompose_address): Return -1 if address contains
19112 shift.
19113 (legitimate_address_p): Require ix86_decompose_address to return 1.
19114
19115 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
19116 (cprop_insn): Likewise.
19117
19118 2002-01-10 Kazu Hirata <kazu@hxi.com>
19119
19120 * toplev.c: Fix formatting.
19121 * tree.c: Likewise.
19122 * tree-dump.c: Likewise.
19123 * unroll.c: Likewise.
19124 * unwind-dw2.c: Likewise.
19125 * unwind-dw2-fde.c: Likewise.
19126 * unwind-dw2-fde-glibc.c: Likewise.
19127 * unwind-sjlj.c: Likewise.
19128
19129 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19130
19131 * doc/invoke.texi: Document PDP-11 options.
19132
19133 2002-01-10 Kazu Hirata <kazu@hxi.com>
19134
19135 * config/h8300/h8300.h: Fix formatting.
19136
19137 2002-01-10 Ira Ruben <ira@apple.com>
19138
19139 Add __attribute__ ((deprecated)).
19140 * extend.texi: Document __attribute__ ((deprecated)).
19141 * invoke.texi: Document -Wno-deprecated-declarations.
19142 * testsuite/g++.dg/other/deprecated.C: New C++ test.
19143 * testsuite/gcc.dg/deprecated.c: New C test.
19144 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
19145 (c_common_attribute_table): Add "deprecated" entry.
19146 (handle_deprecated_attribute): New function.
19147 * c-decl.c (deprecated_states): New enum.
19148 deprecated_state: State of "deprecated" handling.
19149 (start_decl): Set deprecated_state based on attributes.
19150 (grokdeclarator): Test for deprecated uses, propagate attribute.
19151 * c-typeck.c (build_component_ref): Test for deprecated fields.
19152 (build_external_ref): Test for deprecated primaries.
19153 * diagnostic.c (warn_deprecated_use) New function to issue
19154 warnings about __attribute__ ((depricated)) references.
19155 * flags.h (warn_deprecated_decl): Extern declared for
19156 -W[no-]deprecated-declarations option.
19157 * print-tree.c (print_node): Show deprecated flag status.
19158 * toplev.c (warn_deprecated_decl): Defined.
19159 (W_options): Added "deprecated-declaration".
19160 * toplev.h (warn_deprecated_use): Extern declared.
19161 * tree.h (struct tree_common): Define deprecated_flag.
19162 (TREE_DEPRECATED): New macro to access flag.
19163 * cp/call.c (build_call): Test for deprecated calls.
19164 * cp/class.c (add_implicitly_declared_members): Set global
19165 flag to tell grokdeclarator to not issue deprecated warnings.
19166 * cp/cp-tree.h: Add extern for adding_implicit_members.
19167 * cp/decl.c (deprecated_states): New enum.
19168 (start_decl): Set deprecated_state based on attributes.
19169 (grokdeclarator): Test for deprecated uses, propagate attribute.
19170 * cp/lex.c (do_identifier): Test for deprecated primaries.
19171 * cp/typeck.c (build_component_ref): Test for deprecated fields.
19172
19173 2002-01-10 Ira Ruben <ira@apple.com>
19174
19175 Fix to assign attributes to inline member functions.
19176 * cp/decl.c (start_method): Handle attrlist.
19177
19178 2002-01-10 Kazu Hirata <kazu@hxi.com>
19179
19180 * combine.c (expand_field_assignment): Use subreg_lsb().
19181
19182 2002-01-10 David Edelsohn <edelsohn@gnu.org>
19183
19184 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19185 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19186 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19187 Recurse for any operand of AND as long as constant is non-zero.
19188
19189 2002-01-10 Kazu Hirata <kazu@hxi.com>
19190
19191 * config/h8300/h8300.md: Remove constraints from expanders.
19192
19193 2002-01-10 Kazu Hirata <kazu@hxi.com>
19194
19195 * varasm.c: Fix formatting.
19196 * varray.c: Likewise.
19197 * vmsdbgout.c: Likewise.
19198 * xcoffout.c: Likewise.
19199
19200 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
19201
19202 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
19203 update edge probabilities to match.
19204
19205 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19206
19207 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19208 dependencies.
19209 * doc/languages.texi, doc/sourcebuild.texi: New files.
19210 * doc/configfiles.texi: Make a subsubsection. Update.
19211 * doc/configterms.texi: Add @node. Remove warning that this isn't
19212 instructions for building GCC.
19213 * doc/makefile.texi: Make a subsection.
19214 * doc/gccint.texi: Update.
19215
19216 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
19217
19218 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19219
19220 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
19221
19222 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19223
19224 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
19225
19226 * optabs.c (expand_fix): Look for wider integer modes first.
19227
19228 * i386.md (mov?f): Avoid the fake const double trick for medium
19229 memory model.
19230 (min?f*/max?f*): Prohibit memory operands for i387 variant.
19231 (fop_df_4): Disable for SSE compilation.
19232
19233 2002-01-10 Graham Stott <grahams@redhat.com>
19234
19235 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
19236 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
19237
19238 2002-01-10 Richard Henderson <rth@redhat.com>
19239
19240 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19241
19242 2002-01-10 Richard Henderson <rth@redhat.com>
19243
19244 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19245 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
19246
19247 2002-01-10 Kazu Hirata <kazu@hxi.com>
19248
19249 * combine.c (can_combine_p): Fix a comment typo.
19250
19251 2002-01-09 Zack Weinberg <zack@codesourcery.com>
19252
19253 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19254 empty list correctly. Change loop index $t to $f for
19255 consistency with rest of Makefile.
19256
19257 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
19258
19259 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19260 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19261
19262 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19263 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19264 (altivec_init_builtins): Same.
19265 (altivec_expand_unop_builtin): Return NULL_RTX on error.
19266 (altivec_expand_binop_builtin): Same.
19267 (altivec_expand_ternop_builtin): Same.
19268 (bdesc_dst): New.
19269
19270 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19271 ("altivec_vctuxs"): Fix typo.
19272 ("altivec_vnmsubfp"): Same.
19273 ("altivec_dssall"): New.
19274 ("altivec_mfvscr"): New.
19275 ("altivec_dss"): New.
19276 ("altivec_lvsl"): New.
19277 ("altivec_lvsr"): New.
19278 ("altivec_dstt"): New.
19279 ("altivec_dstst"): New.
19280 ("altivec_dststt"): New.
19281 ("altivec_dst"): New.
19282
19283 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19284 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19285
19286 2002-01-09 Richard Henderson <rth@redhat.com>
19287
19288 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19289
19290 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
19291
19292 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19293 function.
19294 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19295 prototype.
19296 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
19297
19298 2002-01-09 Kazu Hirata <kazu@hxi.com>
19299
19300 * read-rtl.c: Fix formatting.
19301 * real.c: Likewise.
19302 * regclass.c: Likewise.
19303 * regrename.c: Likewise.
19304 * reg-stack.c: Likewise.
19305 * reload1.c: Likewise.
19306 * reload.c: Likewise.
19307 * rtl.c: Likewise.
19308
19309 2002-01-09 Kazu Hirata <kazu@hxi.com>
19310
19311 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19312 to extract items in the expr_list chain.
19313
19314 2002-01-09 Richard Henderson <rth@redhat.com>
19315
19316 * config/vax/vax.c (vax_rtx_cost): Never abort.
19317
19318 * config/vax/vax.h (REAL_ARITHMETIC): Define.
19319
19320 2002-01-09 Jan Hubicka <jh@suse.cz>
19321
19322 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19323
19324 2002-01-09 Richard Henderson <rth@redhat.com>
19325
19326 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19327 Unify code from various alternatives.
19328
19329 2002-01-09 Richard Henderson <rth@redhat.com>
19330
19331 * regrename.c (copy_value): Ignore the copy if the source register
19332 is present in the value chain with a narrower mode.
19333
19334 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19335
19336 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19337 for the c4x target. Also improve layout.
19338
19339 2002-01-09 Richard Henderson <rth@redhat.com>
19340
19341 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19342 * config/m32r/m32r.md (and ior xor splitters): Swap operands
19343 to match insn patterns.
19344
19345 2002-01-09 Richard Henderson <rth@redhat.com>
19346
19347 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19348 (copyprop_hardreg_forward_1): Likewise.
19349
19350 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
19351
19352 * pa.md (decrement_and_branch_until_zero): Change predicate for
19353 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19354
19355 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
19356
19357 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19358 gets undefined. For Darwin.
19359
19360 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19361
19362 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19363
19364 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19365
19366 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19367
19368 2002-01-08 Richard Henderson <rth@redhat.com>
19369
19370 * regrename.c (copy_value): Ignore overlapping copies.
19371
19372 2002-01-08 Richard Henderson <rth@redhat.com>
19373
19374 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19375 as needed to avoid shared structure.
19376
19377 2002-01-08 Kazu Hirata <kazu@hxi.com>
19378
19379 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19380 H8/300H and H8/S.
19381
19382 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19383
19384 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19385 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19386 documentation of obsolete macros.
19387 * system.h: Poison these macros.
19388 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19389 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19390 config/c4x/c4x.h, config/clipper/clipper.h,
19391 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19392 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19393 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19394 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19395 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19396 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19397 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19398 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19399 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19400 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19401 config/sparc/sparc.h, config/stormy16/stormy16.h,
19402 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19403 definitions and commented out definitions of obsolete macros.
19404 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19405 of MAX_INT_TYPE_SIZE.
19406
19407 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19408
19409 * config/s390/s390.c (s390_preferred_reload_class): Never
19410 return ADDR_REGS if it isn't a subset of the given class.
19411 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19412 FP_REGS, but all superclasses as well.
19413
19414 * config/s390/s390.c (s390_function_profiler): Fix thinko.
19415
19416 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19417 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19418 must not be a const_int.
19419
19420 2002-01-08 Richard Henderson <rth@redhat.com>
19421
19422 * Makefile.in (toplev.o): Depend on options.h.
19423 (gcc.o): Depend on specs.h.
19424
19425 2002-01-08 Jakub Jelinek <jakub@redhat.com>
19426
19427 * expr.c (store_expr): Convert VOIDmode constants back to target's
19428 mode.
19429
19430 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19431
19432 * doc/invoke.texi: Markup gcc as @command. Refer to
19433 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19434 of http://gcc.gnu.org/thanks.html.
19435
19436 2002-01-08 Dale Johannesen <dalej@apple.com>
19437
19438 * config/rs6000/rs6000.md: Add missing int register
19439 target case to movdf_low.
19440
19441 2002-01-08 Zack Weinberg <zack@codesourcery.com>
19442
19443 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19444 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
19445 (cppinit.o): Depend on except.h.
19446 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19447 s-specs): New rules.
19448
19449 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19450 Don't create specs.h/options.h/gencheck.h here. Remove
19451 unnecessary variable settings from last argument of AC_OUTPUT.
19452 * config.in, configure: Regenerate.
19453 * intl.c: Hardcode package name as "gcc".
19454
19455 * cppinit.c: Include except.h.
19456 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19457 appropriate.
19458 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19459 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19460 (!)USING_SJLJ_EXCEPTIONS.
19461 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19462
19463 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19464
19465 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19466 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19467 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19468 documentation of obsolete macros.
19469 * system.h: Poison these macros.
19470 * config/d30v/d30v.h, config/ns32k/encore.h,
19471 config/stormy16/stormy16.h: Remove definitions and commented out
19472 definitions of obsolete macros.
19473
19474 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
19475
19476 * objc/objc-act.c (handle_class_ref): Mark the declaration of
19477 %sobjc_class_ref_%s as used - to prevent unwanted compiler
19478 warnings.
19479
19480 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19481
19482 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19483 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19484 to insn adjusting stack/frame pointer.
19485 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
19486 accept operands that cause the insn to be non-splittable.
19487
19488 2002-01-08 Graham Stott <grahams@redhat.com>
19489
19490 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19491 (C_TYPE_FIELDS_VOLATILE): Likewise.
19492 (C_TYPE_BEING_DEFINED): Likewise.
19493 (C_IS_RESERVED_WORD): Likewise.
19494 (C_TYPE_VARIABLE_SIZE): Likewise.
19495 (C_DECL_VARIABLE_SIZE): Likewise.
19496 (C_MISSING_PROTOTYPE_WARNED): Likewise.
19497 (C_SET_EXP_ORIGINAL_CODE): Likewise.
19498 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19499 parenthesis.
19500 (C_DECL_ANTICIPATED): Likewise.
19501 (c_build_type_variant): Add parenthesis.
19502
19503 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19504
19505 * gcc.c (option_map): Remove --version.
19506 (process_command): Handle -fversion following the GNU Coding
19507 Standards. Partially addresses PR other/704.
19508
19509 2002-01-08 Graham Stott <grahams@redhat.com>
19510
19511 * combine.c (combine_instructions): Fix typo.
19512
19513 2002-01-08 Graham Stott <grahams@redhat.com>
19514
19515 * debug.h: Use "tree" and "rtx" throughout.
19516
19517 * debug.c: Likewise.
19518
19519 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
19520
19521 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19522 constant pool, use the pool's version of the symbol instead.
19523
19524 2002-01-07 Richard Henderson <rth@redhat.com>
19525
19526 * regrename.c (find_oldest_value_reg): Ignore the value chain if
19527 the original register was copied in a mode with a fewer number of
19528 hard registers than the desired mode.
19529 (copyprop_hardreg_forward_1): Likewise.
19530 (debug_value_data): Fix loop test.
19531 * toplev.c (parse_options_and_default_flags): Reenable
19532 -fcprop-registers at -O1.
19533
19534 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19535
19536 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19537 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
19538
19539 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19540 predicates.
19541
19542 * config/rs6000/rs6000.md: Add altivec predicate patterns.
19543
19544 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
19545
19546 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19547 (pa_output_function_prologue): Output local label at the beginning of
19548 the prologue when profiling.
19549 (hppa_profile_hook): Use the local label rather than the function label.
19550 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19551
19552 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19553
19554 * config/rs6000/rs6000.c (print_operand): Remove extra space.
19555 (altivec_expand_unop_builtin): Fix thinko.
19556 (altivec_expand_binop_builtin): Same.
19557 (altivec_expand_ternop_builtin): Same.
19558 (altivec_expand_builtin): Same.
19559
19560 2002-01-07 Richard Henderson <rth@redhat.com>
19561
19562 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19563
19564 2002-01-07 Jason Merrill <jason@redhat.com>
19565
19566 * unwind-dw2.c (execute_cfa_program): Use < again.
19567
19568 2002-01-07 Jakub Jelinek <jakub@redhat.com>
19569
19570 * predict.c (combine_predictions_for_insn): Avoid division by zero.
19571
19572 2002-01-07 Jakub Jelinek <jakub@redhat.com>
19573
19574 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19575 Don't allow -1 - x -> ~x simplifications in the first pass.
19576
19577 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19578
19579 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19580 arguments.
19581 (altivec_expand_binop_builtin): Same.
19582 (altivec_expand_unop_builtin): Same.
19583 (print_operand): Fix typo.
19584 (bdesc_1arg): Add vupk* variants.
19585
19586 * rs6000.h (rs6000_builtins): Add vupk* enums.
19587
19588 * rs6000.md: Add altivec_vupk* variants.
19589
19590 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
19591
19592 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19593 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19594 and last update dates.
19595
19596 2002-01-07 Janis Johnson <janis187@us.ibm.com>
19597
19598 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19599
19600 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
19601
19602 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19603 * config/avr/avr.h (CPP_SPEC): Likewise.
19604 (LINK_SPEC): Likewise.
19605 (CRT_BINUTILS_SPECS): Likewise.
19606 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19607 * doc/invoke.texi (AVR Options): Document them.
19608
19609 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
19610
19611 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19612 LABEL_NUSES.
19613
19614 2002-01-07 Graham Stott <grahams@redhat.com>
19615
19616 * config/i386/i386.h: Update copyright date.
19617 (HALF_PIC_PTR): Add parenthesis.
19618 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19619 (CONSTANT_ALIGNMENT): Add parenthesis.
19620 (DATA_ALIGNMENT): Likewise.
19621 (LOCAL_ALIGNMENT): Likewise.
19622 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19623 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19624 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19625 (HARD_REGNO_NREGS): Add paranethesis.
19626 (VALID_SSE_REG_MODE): Whitespace.
19627 (VALID_MMX_REG_MODE): Whitespace.
19628 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19629 (ix86_hard_regno_mode_ok): Add parenthesis.
19630 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19631 (RETURN_IN_MEMORY): Whitespace.
19632 (N_REG_CLASSES): Add parenthesis.
19633 (INTEGER_CLASS_P): Add parenthesis and wrap.
19634 (FLOAT_CLASS_P): Likewise.
19635 (SSE_CLASS_P): Likewise.
19636 (MMX_CLASS_P): Likewise.
19637 (MAYBE_INTEGER_CLASS_P): Likewise.
19638 (MAYBE_FLOAT_CLASS_P): Likewise.
19639 (MAYBE_SSE_CLASS_P): Likewise.
19640 (MAYBE_MMX_CLASS_P): Likewise.
19641 (Q_CLASS_P): Likewise.
19642 (GENERAL_REGNO_P): Uppercase macro parameter.
19643 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19644 (FP_REGNO_P): Likewise.
19645 (ANY_FP_REGNO_P): Uppercase macro parameter.
19646 (SSE_REGNO_P): Likewise.
19647 (SSE_REGNO): Likewise.
19648 (SSE_REG_P): Likewise.
19649 (SSE_FLOAT_MODE_P): Likewise.
19650 (MMX_REGNO_P): Likewise.
19651 (MMX_REG_P):Likewise.
19652 (STACK_REG_P): Likewise.
19653 (NON_STACK_REG_P): Likewise.
19654 (STACK_TOP_P): Likewise.
19655 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19656 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19657 (SECONDARY_MEMORY_NEEDED): Likewise.
19658 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19659 (MD_ASM_CLOBBERS): Whitespace and wrap.
19660 (MUST_PASS_IN_STACK): Whitespace and wrap.
19661 (RETURN_POPS_ARGS): Add parenthesis.
19662 (INIT_CUMULATIVE_ARGS): Likewise.
19663 (FUNCTION_ARG): Likewise.
19664 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19665 (SETUP_INCOMING_VARARGS): Likewise.
19666 (BUILD_VA_LIST_TYPE): Add parenthesis.
19667 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19668 parenthsis.
19669 (EXPAND_BUILTIN_VA_ARG): Likewise.
19670 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19671 (INITIALIZE_TRAMPOLINE): Add parenthesis.
19672 (INITIAL_ELIMINATION_OFFSET): Likewise.
19673 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19674 (REGNO_OK_FOR_BASE_P): Likewise.
19675 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19676 (REGNO_OK_FOR_DIREG_P): Likewise.
19677 (REG_OK_FOR_INDEX_P): Whitespace.
19678 (REG_OK_FOR_BASE_P): Whitespace.
19679 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19680 parenthesis.
19681 (FIND_BASE_TERM): Fix typo.
19682 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
19683 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19684 (SYMBOLIC_CONST; Whitespace.
19685 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
19686 (ENCODE_SECTION_INFO): Whitespace.
19687 (FINALIZE_PIC): Remove do { ... } while (0).
19688 (PROMOTE_MODE): Wrap in do { ... } while (0).
19689 (CONST_COSTS): Whitespace.
19690 (RTX_COSTS): Add paramethesis, whitespace and wrap.
19691 (REGISTER_MOVE_COST): Add parenthesis.
19692 (MEMORY_MOVE_COST): Likewise.
19693 (EXTRA_CC_MODES): Whitespace.
19694 (SELECT_CC_MODE): Add parenthesis and whitespace.
19695 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19696 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19697 (ASM_OUTPUT_LABEL): Add paramethesis.
19698 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19699 (ASM_OUTPUT_REG_POP): Likewise.
19700 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19701 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19702
19703 * config/i386/i386.c: Update copyright.
19704 (CHECK_STACK_LIMIT): Add parenthesis.
19705 (AT_BP): Uppercase macro parameter.
19706 (x86_64_int_parameter_registers): Constify.
19707 (x86_64_int_return_registers): Likewise.
19708 (ix86_compare_op0): Use rtx.
19709 (construct_container): Constify INTREG parameter.
19710 (function_arg): Use rtx.
19711
19712 * diagnostic.h: Update copyright date.
19713 (output_buffer_state): Add parenthesis.
19714 (output_buffer_format_args): Likewise.
19715
19716 * combine.c (combine_instructions): Replace XEXP (links, 0)
19717 with link.
19718
19719 2002-01-06 H.J. Lu <hjl@gnu.org>
19720
19721 * cfgcleanup.c (thread_jump): Fix 2 typos.
19722
19723 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
19724
19725 * config.gcc: Add support for --enable-altivec.
19726
19727 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19728
19729 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19730
19731 2002-01-06 Jakub Jelinek <jakub@redhat.com>
19732
19733 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19734 __objc_class_name_*.
19735
19736 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19737
19738 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19739
19740 2002-01-06 Richard Henderson <rth@redhat.com>
19741
19742 * reorg.c (emit_delay_sequence): Remove death notes, not merely
19743 nop them out. Increment label reference count for REG_LABEL.
19744 (fill_slots_from_thread): Frob label reference count around
19745 delete_related_insns.
19746
19747 2002-01-05 Richard Henderson <rth@redhat.com>
19748
19749 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19750 jump threading.
19751
19752 2002-01-05 Richard Henderson <rth@redhat.com>
19753
19754 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19755 * integrate.c (output_inline_function): Likewise.
19756 * toplev.c (rest_of_compilation): Do it here instead. Move call
19757 to remove_unnecessary_notes after emitting abstract instance.
19758 Force an emitted nested function to have its parent emited as well.
19759 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19760 for null.
19761 (rtl_for_decl_location): Do not look at reload data structures
19762 before reload has run.
19763
19764 2002-01-05 Kazu Hirata <kazu@hxi.com>
19765
19766 * cse.c: Fix formatting.
19767 * dwarf2asm.c: Likewise.
19768 * dwarf2out.c: Likewise.
19769 * explow.c: Likewise.
19770 * expmed.c: Likewise.
19771 * function.c: Likewise.
19772 * gcov.c: Likewise.
19773 * gencheck.c: Likewise.
19774 * genrecog.c: Likewise.
19775 * ggc-common.c: Likewise.
19776 * ggc-page.c: Likewise.
19777 * global.c: Likewise.
19778
19779 2002-01-05 Kazu Hirata <kazu@hxi.com>
19780
19781 * combine.c: Fix formatting.
19782
19783 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
19784
19785 PR middle-end/1557
19786 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19787
19788 2002-01-05 David Edelsohn <edelsohn@gnu.org>
19789
19790 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19791 as 1 for __powerpc64__ as well.
19792
19793 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19794
19795 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19796 return it.
19797
19798 2002-01-05 Daniel Berlin <dan@dberlin.org>
19799
19800 * lcm.c: Revert change, due to performance regression it causes on
19801 SPEC because it's slightly more conservative (sigh, I hate
19802 edge-based LCM).
19803
19804 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
19805
19806 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19807
19808 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
19809
19810 * doc/cppinternals.texi: Update.
19811
19812 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
19813
19814 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19815 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19816 negatives.
19817 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
19818 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19819 kludge for pre-october-14th mmix versions to handle new-found bug
19820 with PUSHJ/PUSHGO and the register stack.
19821 * config/mmix/mmix.h (struct machine_function): Rename member
19822 has_call_value_without_parameters to has_call_without_parameters.
19823 All referers changed.
19824 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19825 TARGET_MASK_BRANCH_PREDICT): New macros.
19826 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19827 -mno-reg-stack-fill-bug-workaround.
19828 * config/mmix/mmix.md ("call"): Set struct machine member
19829 has_call_without_parameters.
19830
19831 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
19832
19833 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19834
19835 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
19836
19837 * cfgcleanup.c: Include tm_p.h
19838 (mark_effect): Fix handling of hard register; fix handling of SET
19839
19840 2002-01-04 Kazu Hirata <kazu@hxi.com>
19841
19842 * config/h8300/h8300.md (anonymous patterns): Check that
19843 operands are registers before using REGNO on them.
19844
19845 2002-01-03 Roland McGrath <roland@frob.com>
19846
19847 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19848
19849 2002-01-04 Jakub Jelinek <jakub@redhat.com>
19850
19851 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19852 * c-common.h (genrtl_expr_stmt_value): Likewise.
19853 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19854 (expand_expr_stmt_value): Add maybe_last argument.
19855 Don't warn about statement with no effect if it is the last statement
19856 in expression statement.
19857 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19858 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19859 expand_expr_stmt_value.
19860 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19861 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19862 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19863 as maybe_last to expand_expr_stmt_value.
19864
19865 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
19866
19867 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19868 be passed in, do not build it.
19869 (c_begin_if_stmt): New function.
19870 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19871 * c-common.h (c_expand_start_cond): Update prototype.
19872 (c_begin_if_stmt): Prototype new function.
19873 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19874 * c-parse.in (if_prefix): Use c_begin_if_stmt,
19875 c_begin_while_stmt and c_finish_while_stmt_cond.
19876
19877 2002-01-04 William Cohen <wcohen@redhat.com>
19878
19879 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19880 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19881 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19882 * config/pa/som.h (ASM_FILE_START): Likewise.
19883
19884 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
19885
19886 * lcm.c: Include df.h.
19887 Add available_transfer_function prototype.
19888 (compute_available): Rework to use iterative dataflow framework.
19889 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19890 with bb_info in df.h
19891 (available_transfer_function): New function.
19892
19893 * Makefile.in (lcm.o): add df.h to dependencies.
19894
19895 2002-01-04 Richard Henderson <rth@redhat.com>
19896
19897 * config/alpha/alpha.c (some_operand): Accept HIGH.
19898 (input_operand): Likewise; accept simple references to globals.
19899 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19900 (alpha_const_double_ok_for_letter_p): Likewise.
19901 (alpha_extra_constraint): Likewise.
19902 (alpha_preferred_reload_class): Likewise. Do not force
19903 symbolic constants to memory.
19904 (alpha_legitimate_address_p): Accept simple references
19905 to small_symbolic_operand.
19906 (alpha_legitimize_address): New arg scratch. Be prepared to be
19907 called when no_new_pseudos. Emit simple symbolic references.
19908 Split integers into low, high, and rest.
19909 (alpha_expand_mov): Use alpha_legitimize_address.
19910 (some_small_symbolic_mem_operand): New.
19911 (split_small_symbolic_mem_operand): New.
19912 * config/alpha/alpha-protos.h: Update.
19913 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19914 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19915 (EXTRA_CONSTRAINT): Likewise.
19916 (PREFERRED_RELOAD_CLASS): Likewise.
19917 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19918 (PREDICATE_CODES): Update.
19919 * config/alpha/alpha.md: New post-reload splitters to convert
19920 simplfied symbolic operands to the form that references $29.
19921 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19922 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19923
19924 2002-01-03 Richard Henderson <rth@redhat.com>
19925
19926 * local-alloc.c (function_invariant_p): Update commentary.
19927
19928 2002-01-04 H.J. Lu <hjl@gnu.org>
19929
19930 * toplev.c (rest_of_compilation): Fix a typo when calling
19931 cleanup_cfg.
19932
19933 2002-01-03 Kazu Hirata <kazu@hxi.com>
19934
19935 * c-common.c: Fix formatting.
19936 * diagnostic.c: Likewise.
19937 * doloop.c: Likewise.
19938 * dwarf2out.c: Likewise.
19939
19940 2002-01-03 Kazu Hirata <kazu@hxi.com>
19941
19942 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19943 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19944
19945 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19946
19947 * cpperror.c: Update comments and copyright.
19948 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19949 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19950
19951 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
19952
19953 * collect2.c (main): Use strcmp when testing for "-shared".
19954
19955 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19956
19957 * cppmacro.c: Don't include intl.h. Update comments.
19958 (new_number_token): Allocate enough buffer for 64-bit unsigned
19959 integers; update prototype.
19960 * cppmain.c: Update comments.
19961
19962 2002-01-03 William Cohen <wcohen@redhat.com>
19963
19964 * function.h (struct function): Add profile.
19965 (current_function_profile): New.
19966 doc/extend.texi: Update documentation.
19967 * final.c (final_start_function): Use current_function_profile
19968 instead of profile_flag.
19969 (profile_after_prologue): Likewise.
19970 * function.c (expand_function_start): Likewise.
19971 (expand_function_start): Likewise.
19972 * config/alpha/alpha.c (direct_call_operand):
19973 (alpha_does_function_need_gp): Likewise.
19974 (alpha_expand_prologue): Likewise.
19975 * config/arm/arm.c (arm_expand_prologue): Likewise.
19976 thumb_expand_prologue: Likewise.
19977 * config/d30v/d30v.c (d30v_stack_info): Likewise.
19978 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19979 (fr30_expand_prologue): Likewise.
19980 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19981 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19982 * config/i386/i386.h (FINALIZE_PIC): Likewise.
19983 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19984 * config/i960/i960.c (i960_output_function_prologue): Likewise.
19985 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19986 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19987 (m32r_expand_prologue): Likewise.
19988 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19989 (m88k_expand_prologue): Likewise.
19990 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19991 * config/mips/mips.c (compute_frame_size): Likewise.
19992 (mips_expand_prologue): Likewise.
19993 (mips_can_use_return_insn): Likewise.
19994 * config/pa/elf.h (ASM_FILE_START): Likewise.
19995 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19996 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19997 * config/pa/som.h (ASM_FILE_START): Likewise.
19998 * config/romp/romp.c (romp_using_r14): Likewise.
19999 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20000 (rs6000_stack_info): Likewise.
20001 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20002 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20003 * config/v850/v850.c (compute_register_save_size): Likewise.
20004
20005 2002-01-03 Jakub Jelinek <jakub@redhat.com>
20006
20007 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20008 gen_lowpart_common fails, use gen_lowpart_SUBREG.
20009
20010 2002-01-03 Turly O'Connor <turly@apple.com>
20011
20012 * darwin.c (machopic_output_possible_stub_label): Don't generate
20013 stub routines for pseudo-stubs which we've just defined.
20014
20015 2002-01-03 Kazu Hirata <kazu@hxi.com>
20016
20017 * builtins.c: Fix formatting.
20018 * c-typeck.c: Likewise.
20019 * combine.c: Likewise.
20020 * expr.c: Likewise.
20021 * loop.c: Likewise.
20022
20023 2002-01-03 Andreas Schwab <schwab@suse.de>
20024
20025 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20026 and return true if _cpp_push_next_buffer pushed a new include
20027 file.
20028 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20029 _cpp_pop_file_buffer did not push a new file.
20030 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20031
20032 2002-01-02 Eric Christopher <echristo@redhat.com>
20033
20034 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20035 FIND_REG_INC_NOTE call. Update copyright.
20036 * loop.c (canonicalize_condition): Ditto.
20037 * reorg.c (delete_scheduled_jump): Ditto.
20038
20039 2002-01-03 Kazu Hirata <kazu@hxi.com>
20040
20041 * gcse.c: Fix formatting.
20042
20043 2002-01-03 Graham Stott <grahams@redhat.com>
20044
20045 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20046 forward defs for struct tags rtx_def, union_tree, rtvec_def
20047 also output corresponding typedefs for rtx, tree, and rtvec.
20048
20049 * system.h: Move forward defs for struct tags rtx_def, union_tree,
20050 rtvec_def along with corresponding typedefs for rtx, tree, and
20051 rtvec to config.h, hconfig.h, tconfig.h.
20052
20053 2002-01-03 Graham Stott <grahams@redhat.com>
20054
20055 * tree.h: Update copyright date.
20056 (IS_EXPR_CODE_CLASS): Add parenthesis.
20057 (TREE_SET_CODE): Add whitespace.
20058 (TREE_CHECK): Add parenthesis.
20059 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20060 (CST_OR_CONSTRUCTOR_CHECK):
20061 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20062 (TREE_SYMBOL_REFERENCED): Whitespace.
20063 (INT_CST_LT): Likewise.
20064 (INT_CST_LT_UNSIGNED): Likewise.
20065 (tree_real_cst): Unwrap comment.
20066 (tree_string): Likewise.
20067 (tree_complex): Likewise.
20068 (IDENTIFIER_POINTER): correct cast.
20069 (SAVE_EXPR_CONTEXT): Whitespace.
20070 (EXPR_WFL_FILENAME_NODE): Likewise.
20071 (EXPR_WFL_FILENAME): Remove parenthesis.
20072 (DECL_ORIGIN): Add parenthesis.
20073 (DECL_FROM_INLINE): Use NULL_TREE.
20074 (build_int_2): Whitespace.
20075 (build_type_variant): Add parenthesis.
20076
20077 * gcc/jcf-parse.c: Update copyright date.
20078 (yyparse): Constify resource_filename.
20079
20080 2002-01-03 Graham Stott <grahams@redhat.com>
20081
20082 * rtl.h: Update copyright date.
20083 (RTL_CHECK1): Wrap long line.
20084 (RTL_CHECK2): Likewise.
20085 (RTL_CHECKC1): Wrap long line and whitespace.
20086 (RTL_CHECKC2): Likewise.
20087 (XWINT): Whitespace.
20088 (XINT): Likewise.
20089 (XSTR): Likewise.
20090 (XEXP): Likewise.
20091 (XVEC): Likewise.
20092 (XMODE): Likewise.
20093 (XBITMAP): Likewise.
20094 (XTREE): Likewise.
20095 (XBBDEF): Likewise.
20096 (XTMPL): Likewise.
20097 (X0WINT): Likewise.
20098 (X0INT):Likewise.
20099 (X0UINT): Likewise.
20100 (X0STR): Likewise.
20101 (X0EXP): Likewise.
20102 (X0VEC): Likewise.
20103 (X0MODE): Likewise.
20104 (X0BITMAP): Likewise.
20105 (X0TREE): Likewise.
20106 (X0BBDEF): Likewise.
20107 (X0ADVFLAGS): Likewise.
20108 (X0CSELIB): Likewise.
20109 (X0MEMATTR): Likewise.
20110 (XCWINT): Likewise.
20111 (XCINT): Likewise.
20112 (XCUINT): Likewise.
20113 (XCSTR): Likewise.
20114 (XCEXP): Likewise.
20115 (XCVEC): Likewise.
20116 (XCMODE): Likewise.
20117 (XCBITMAP): Likewise.
20118 (XCTREE): Likewise.
20119 (XCBBDEF): Likewise.
20120 (XCADVFLAGS): Likewise.
20121 (XCCSELIB): Likewise.
20122 (XC2EXP): Likewise.
20123 (INSN_UID): Likewise.
20124 (PREV_INSN): Likewise.
20125 (PATTERN): Likewise.
20126 (INSN_CODE): Likewise.
20127 (PUT_REG_NOTE_KIND): Likewise.
20128 (CODE_LABEL_NUMBER): Likewise.
20129 (NOTE_SOURCE_FILE): Likewise.
20130 (NOTE_BLOCK): Likewise.
20131 (NOTE_EH_HANDLER): Likewise.
20132 (NOTE_RANGE_INFO): Likewise.
20133 (NOTE_LIVE_INFO): Likewise.
20134 (NOTE_BASIC_BLOCK): Likewise.
20135 (NOTE_EXPECTED_VALUE): Likewise.
20136 (NOTE_LINE_NUMBER): Likewise.
20137 (LABEL_NAME): Likewise.
20138 (LABEL_NUSES): Likewise.
20139 (LABEL_ALTERNATE_NAME): Likewise.
20140 (ADDRESSOF_DECL): Likewise.
20141 (JUMP_LABEL): Likewise.
20142 (LABEL_NEXTREF): Likewise.
20143 (REGNO): Likewise.
20144 (ORIGINAL_REGNO: Likewise.
20145 (HARD_REGISTER_NUM_P): Add parenthesis.
20146 (SUBREG_REG): Whitespace.
20147 (SUBREG_BYTE): Likewise.
20148 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
20149 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
20150 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
20151 (ASM_OPERANDS_INPUT_VEC): Likewise.
20152 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
20153 (ASM_OPERANDS_INPUT): Likewise.
20154 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
20155 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
20156 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
20157 (ASM_OPERANDS_INPUT_MODE): Likewise.
20158 (ASM_OPERANDS_SOURCE_FILE): Likewise.
20159 (ASM_OPERANDS_SOURCE_LINE): Likewise.
20160 (MEM_SET_IN_STRUCT_P): Minor reformat.
20161 (TRAP_CONDITION): Whitespace.
20162 (TRAP_CODE): Likewise.
20163 (COND_EXEC_TEST): Likewise.
20164 (COND_EXEC_CODE): Likewise.
20165 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
20166 (PHI_NODE_P): Add parenthesis.
20167 (plus_constant): Whitespace and add parenthesis.
20168
20169 2002-01-03 Kazu Hirata <kazu@hxi.com>
20170
20171 * config/avr/avr.c: Fix comment typos.
20172 * config/c4x/c4x.md: Likewise.
20173 * config/dsp16xx/dsp16xx.h: Likewise.
20174 * config/dsp16xx/dsp16xx.md: Likewise.
20175 * config/i386/i386.md: Likewise.
20176 * config/ia64/ia64.c: Likewise.
20177 * config/m32r/m32r.h: Likewise.
20178 * config/m68hc11/m68hc11.md: Likewise.
20179 * config/mmix/mmix.c: Likewise.
20180 * config/mn10200/mn10200.c: Likewise.
20181 * config/romp/romp.c: Likewise.
20182 * config/sh/sh.c: Likewise.
20183 * config/stormy16/stormy16.c: Likewise.
20184 * config/stormy16/stormy16.h: Likewise.
20185 * config/stormy16/stormy16.md: Likewise.
20186
20187 2002-01-03 Graham Stott <grahams@redhat.com>
20188
20189 * loop.h: Update copyright date.
20190 (LOOP_MOVABLES): Fix typo.
20191 (LOOP_REGS): Likewise.
20192 (LOOP_IVS): Likewise.
20193
20194 2002-01-03 Graham Stott <grahams@redhat.com>
20195
20196 * cppinit.c: Update copyright date.
20197 Don't include output.h
20198 * Makefile.in: Update copyright date.
20199 Update dependency.
20200
20201 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
20202
20203 PR c/5226
20204 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20205 (-pthread) Add to RS/6000 options.
20206
20207 2002-01-02 Kazu Hirata <kazu@hxi.com>
20208
20209 * except.c: Fix comment typos.
20210 * loop.c: Likewise.
20211 * varasm.c: Likewise.
20212 * doc/tm.texi: Fix a typo.
20213
20214 2002-01-02 Jakub Jelinek <jakub@redhat.com>
20215
20216 * c-typeck.c (output_init_element): Allow initializing static storage
20217 duration objects with compound literals.
20218
20219 2002-01-02 Richard Henderson <rth@redhat.com>
20220
20221 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20222 after abusing it.
20223
20224 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20225
20226 * gcc.c (default_compilers): Const-ify.
20227 * mips-tdump.c (stab_names): Likewise.
20228 * mips-tfile.c (map_coff_types, map_coff_storage,
20229 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20230 pseudo_ops_t, pseudo_ops): Likewise.
20231 * protoize.c (default_include): Likewise
20232
20233 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20234 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20235 Add array size in declaration.
20236 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20237 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20238 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20239 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20240 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20241 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20242 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20243 emtens, make_nan): Const-ify.
20244 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20245 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20246
20247 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
20248
20249 * config.gcc (ia64-*-*): Set extra_headers.
20250 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
20251 * config/alpha/t-osf: Remove.
20252 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20253
20254 2002-01-02 David Edelsohn <edelsohn@gnu.org>
20255
20256 * config/rs6000/t-aix43: Revert previous change.
20257
20258 2002-01-02 Jason Merrill <jason@redhat.com>
20259
20260 * c-decl.c (c_expand_body): Call outlining_inline_function when
20261 emitting an inline function out of line.
20262
20263 2002-01-02 Richard Henderson <rth@redhat.com>
20264
20265 * dwarf2out.c (limbo_die_node): Add created_for member.
20266 (new_die): New argument created_for. Update all callers.
20267 (mark_limbo_die_list): New.
20268 (dwarf2out_init): Register limbo_die_list as a root.
20269 (dwarf2out_finish): Force insert limbo dies into their function
20270 context.
20271
20272 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
20273
20274 PR c++/5089
20275 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20276
20277 2002-01-02 Kazu Hirata <kazu@hxi.com>
20278
20279 * config/h8300/fixunssfsi.c: Update copyright.
20280 Fix comment typos.
20281 Fix formatting.
20282 * config/h8300/h8300.c: Update copyright.
20283 Eliminate warnings.
20284
20285 2002-01-02 Kazu Hirata <kazu@hxi.com>
20286
20287 * config/romp/romp.c: Fix comment formatting.
20288 * config/romp/romp.h: Likewise.
20289 * config/romp/romp.md: Likewise.
20290 * config/s390/s390.c: Likewise.
20291 * config/stormy16/stormy16.c: Likewise.
20292 * config/stormy16/stormy16.h: Likewise.
20293
20294 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
20295
20296 * c-common.h (genrtl_expr_stmt_value): Declare.
20297 * c-semantics.c (genrtl_goto_stmt): Redirect to...
20298 (genrtl_goto_stmt_value): ... this new function. Pass new
20299 argument down to expand_expr_stmt_value, taking
20300 TREE_ADDRESSABLE into account.
20301 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20302 STMT_EXPR as addressable, i.e., one whose result we want.
20303 * expr.c (expand_expr): Don't save expression statement value
20304 of labeled_blocks or loop_exprs.
20305 * stmt.c (expand_expr_stmt): Redirect to...
20306 (expand_expr_stmt_value): ... this new function. Use new
20307 argument to tell whether to save expression value.
20308 (expand_end_stmt_expr): Reset last_expr_type and
20309 last_expr_value if we don't have either.
20310 * tree-inline.c (declare_return_variable): Mark its use
20311 statement as addressable.
20312 * tree.h: Document new use of TREE_ADDRESSABLE.
20313 (expand_expr_stmt_value): Declare.
20314
20315 2002-01-01 Tom Rix <trix@redhat.com>
20316
20317 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20318 rs6000_emit_allocate_stack.
20319
20320 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
20321
20322 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20323 ${srcdir}/ginclude/ to every entry in extra_headers.
20324 * configure: Regenerate.
20325 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20326 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20327 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20328 * ginclude/proto.h: Rename to config/convex/proto.h.
20329
20330 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20331
20332 * attribs.c (handle_vector_size_attribute): Use host_integerp
20333 and tree_int_cst; remove warnings.
20334 * caller-save.c (insert_restore): Add cast to get rid of warning.
20335 (insert_save): Likewise.
20336 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20337 * regmove.c (find_matches): Add temporary var to kill a warning.
20338
20339 2002-01-01 Douglas B Rupp <rupp@gnat.com>
20340
20341 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20342 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20343 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20344 (vms-dwarf2eh.o): Add Makefile rule.
20345 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20346 * config/alpha/vms-dwarf2eh.asm: New file.
20347
20348 * gcc.c (delete_if_ordinary): Delete all versions.
20349
20350 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
20351
20352 * config/mmix/mmix.md: Update FIXME to not mention
20353 define_constants.
20354 (MMIX_rJ_REGNUM): New define_constants constant.
20355 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20356 "*movdicc_real"): Adjust contraints formatting.
20357 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20358 for branch prediction.
20359 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20360 output template.
20361 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20362 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20363 number. Delete related FIXMEs.
20364 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20365 from number to MMIX_rJ_REGNUM.
20366 (TARGET_MASK_BRANCH_PREDICT): New.
20367 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20368 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
20369 value. Add -mbranch-predict and -mno-branch-predict.
20370 (TARGET_VERSION): Drop date.
20371 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20372 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20373 for finding out global symbols.
20374 (mmix_asm_output_labelref): Revert condition for global symbol.
20375 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20376 (mmix_print_operand_punct_valid_p): A '+' is valid.
20377
20378 See ChangeLog.6 for earlier changes.