]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
i386.c (ix86_save_reg): Make regno unsigned.
[gcc.git] / gcc / ChangeLog
1 2002-05-14 Richard Henderson <rth@redhat.com>
2
3 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
4 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5
6 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7
8 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
9 (CPP_SPEC): Update.
10 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
11 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
12 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
13 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
14 (EXTRA_SPECS): Update.
15 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
16 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
17 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
18 define TARGET_OS_CPP_BUILTINS if necessary.
19
20 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
21
22 * gcc.c (cpp_options): Must pass -m* and -f* options
23 to the front end even when only preprocessing.
24 (cc1_options): Remove redundant -lang-c.
25 * tradcpp.c (main): Ignore -m options.
26 objc:
27 * lang-specs.h: Similarly.
28
29 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
30
31 * genautomata.c (transform_3): Add code for transformation
32 `(A,B,...)+C -> A+C,B,...'.
33
34 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
35
36 * final.c (end_final): Do not output profile_arcs constructor, when
37 no functions are instrumented.
38
39 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
40
41 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
42
43 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
44
45 * doc/install.texi: Remove special markup originally required for
46 HTML generation with texi2html.
47
48 2002-05-14 Andreas Schwab <schwab@suse.de>
49
50 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
51 SELECT_SECTION.
52 (UNIQUE_SECTION): Define to get small data correctly.
53
54 * varasm.c (resolve_unique_section): Add third parameter
55 flag_function_or_data_sections and use it instead of
56 flag_function_sections.
57 (assemble_start_function): Pass flag_function_sections.
58 (asm_emit_uninitialised): Pass flag_data_sections.
59 (assemble_variable): Likewise.
60
61 2002-05-14 Richard Henderson <rth@redhat.com>
62
63 * config/i386/i386.md: Use define_constants for unspec numbers.
64 * config/i386/i386.c: Likewise.
65
66 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
67
68 * doc/contrib.texi: Update my entry.
69
70 2002-05-13 Mark Mitchell <mark@codesourcery.com>
71
72 * fixinc/inclhack.def (winidss_valist): Limit applicability.
73 * fixinc/fixincl.x: Regenerated.
74 * fixinc/tests/base/math.h: Update.
75 * fixinc/tests/base/testing.h: Likewise.
76
77 2002-05-13 Zack Weinberg <zack@codesourcery.com>
78
79 * genattr.c (gen_attr): Don't emit a comma after the last
80 enumerator.
81
82 2002-05-13 Richard Henderson <rth@redhat.com>
83
84 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
85 by non-local gotos.
86 * recog.c (peephole2_optimize): Likewise.
87
88 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
89
90 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
91 input to O_BINARY.
92
93 2002-05-13 Jeffrey A Law (law@redhat.com)
94
95 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
96 Update prototype and callers.
97 (propagate_one_insn): Stack pointer adjustments kill MEMs on
98 the mem_set_list which reference the stack pointer, as do
99 calls to constant functions as they may clobber outgoing
100 argument space.
101
102 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
103
104 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
105 (ia32_multipass_dfa_lookahead): New function.
106
107 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
108
109 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
110 (translate_options): Remove 'V'.
111 (process_command): Similarly.
112 doc:
113 * invoke.texi: Remove documentation of 'V'.
114
115 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
116
117 * config/s390/linux.h: Revert 2002-04-22 changes.
118
119 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
120
121 * config/fr30/fr30.md: Only allow splits of immediate loads
122 if the destination is a register.
123
124 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
125
126 * Makefile.in (c-common.o, cppinit.o): Update.
127 * c-common.c: Include except.h.
128 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
129 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
130 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
131 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
132 CPP_PREDEFINES): Handle here.
133 config:
134 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
135 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
136 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
137 TARGET_OS_CPP_BUILTINS.
138 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
139 (CPP_SPEC, EXTRA_SPECS): Update.
140 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
141 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
142 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
143 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
144 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
145 doc:
146 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
147 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
148
149 2002-05-12 Zack Weinberg <zack@codesourcery.com>
150
151 * emit-rtl.c (global_rtl): Update comment.
152 (const_double_htab, const_double_htab_hash,
153 const_double_htab_hash, lookup_const_double): New.
154 (const_int_htab_hash, const_int_htab_eq): Remove const
155 qualifiers, which cause tons of warnings with RTL checking on.
156 (gen_rtx_CONST_DOUBLE): Deleted.
157 (const_double_from_real_value): New function - bears some
158 resemblance to the former immed_real_const_1.
159 (immed_double_const): Moved here from varasm.c and
160 simplified.
161 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
162 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
163 (gen_rtx): Use immed_double_const.
164 (init_emit_once): Initialize the const_double_htab. Use
165 REAL_VALUE_FROM_INT where possible. Can now use
166 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
167 * varasm.c (struct varasm_status): Remove x_const_double_chain.
168 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
169 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
170 (init_varasm_status, mark_varasm_status): Don't touch
171 x_const_double_chain.
172
173 * output.h: Delete prototype for clear_const_double_mem.
174 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
175 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
176 const_double_from_real_value, not immed_real_const_1, and use
177 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
178 CONST_DOUBLE_ATOF.
179 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
180 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
181 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
182 (gen_rtx_REG): Second arg is unsigned.
183
184 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
185 (excluded_rtx): New, return true for CONST_DOUBLE.
186 (genmacro): Write nothing for excluded codes.
187 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
188 * expr.c (expand_expr): Likewise.
189 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
190 CONST_DOUBLE_CHAIN.
191 * toplev.c (rest_of_compilation): Don't call
192 clear_const_double_mem.
193
194 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
195 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
196 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
197 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
198 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
199 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
200 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
201 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
202
203 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
204
205 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
206
207 2002-05-12 Tom Tromey <tromey@redhat.com>
208
209 * tree.h (copy_node): Don't mention TREE_PERMANENT.
210
211 2002-05-12 Zack Weinberg <zack@codesourcery.com>
212
213 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
214 (scan_comma_elt): New function. Accepts whitespace in comma lists.
215 * gensupport.h: Prototype new routines.
216 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
217 use of printf.
218 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
219 (next_comma_elt): Use scan_comma_elt.
220
221 * config/i386/i386.md: Use new attribute notation to break up
222 long lines in define_attr forms.
223
224 2002-05-12 Richard Henderson <rth@redhat.com>
225
226 * expr.c (compress_float_constant): New.
227 (emit_move_insn): Use it.
228 (float_extend_from_mem): New.
229 (init_expr_once): Initialize it.
230 * real.c (exact_real_truncate): New.
231
232 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
233 dropped into memory; penalize for size.
234 (RTX_COSTS): FLOAT_EXTEND is free.
235 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
236 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
237
238 2002-05-12 Richard Henderson <rth@redhat.com>
239
240 * profile.h (profile_info): Add missing extern to declaration.
241 * profile.c (profile_info): Define it.
242
243 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
244
245 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
246 used for DImode and TImode.
247
248 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
249
250 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
251 fake a newline.
252
253 2002-05-11 Zack Weinberg <zack@codesourcery.com>
254
255 * config/rs6000/rs6000.c (rs6000_default_long_calls,
256 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
257 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
258 (rs6000_override_options): Handle -m(no-)longcall.
259 (init_cumulative_args, output_mi_thunk): Check for both
260 longcall and shortcall attributes on the function.
261 (rs6000_attribute_table): Add "shortcall".
262 (rs6000_handle_longcall_attribute): Update comment.
263 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
264 altivec_expand_ternop_builtin): Add default clauses to switches
265 to silence warnings.
266
267 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
268 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
269 (TARGET_OPTIONS): Add longcall and no-longcall.
270
271 * config/rs6000/rs6000.md (call_nonlocal_sysv,
272 call_value_nonlocal_sysv): Split by alternatives. One pair
273 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
274 the call cookie. The other pair accepts only LR/CTR and has
275 no restriction.
276
277 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
278 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
279 tmake_file.
280 * config/rs6000/rs6000-c.c: New file.
281 * config/rs6000/t-rs6000-c-rule: New file.
282 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
283 Prototype rs6000_pragma_longcall.
284
285 * doc/extend.texi: Document shortcall attribute.
286 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
287
288 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
289
290 * reorg.c (dbr_schedule): Remove unnecessary test.
291
292 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
293
294 * i386.md (testsi to testqi spliters): New.
295
296 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
297
298 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
299
300 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
301
302 * basic-block.h: New flag EDGE_CAN_FALLTHRU
303 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
304 that can be made fallthru.
305
306 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
307
308 * cfglayout.c (cleanup_unconditional_jumps): New static function.
309 (cfg_layout_initialize): Use it.
310
311 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
312
313 * config/avr/avr.c (avr_mcu_types): Update supported devices.
314 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
315 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
316
317 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
318
319 * dbxout.c: Fix formatting.
320 * dependence.c: Likewise.
321 * df.c: Likewise.
322 * diagnostic.c: Likewise.
323 * doloop.c: Likewise.
324 * dominance.c: Likewise.
325 * doschk.c: Likewise.
326 * dwarf2asm.c: Likewise.
327 * dwarf2out.c: Likewise.
328 * dwarfout.c: Likewise.
329
330 2002-05-10 Richard Henderson <rth@redhat.com>
331
332 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
333 Convert integers constants as needed. Replace "nwords" field with
334 "sizeof_bb".
335 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
336 * function.h: Fix typo in comment.
337 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
338
339 2002-05-10 Roger Sayle <roger@eyesopen.com>
340
341 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
342 into the equivalent (signed char)c > 0.
343
344 2002-05-10 Janis Johnson <janis187@us.ibm.com>
345
346 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
347 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
348 (struct prefetch_info): Fix spelling of member bytes_accessed.
349 (emit_prefetch_instructions): Make dump messages more regular;
350 restructure code to add more dump messages; use new macros for
351 heuristics. (There are no code generation changes in any of this).
352
353 2002-05-10 David S. Miller <davem@redhat.com>
354
355 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
356 (struct rtx_def): Update unchanging flag comment.
357 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
358 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
359 to be handled to INSN too.
360 (dbr_schedule): Likewise.
361 * resource.c (next_insn_no_annul): Likewise.
362
363 * cse.c (rtx_cost): Remove multiplication by power of 2 special
364 casing.
365
366 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
367
368 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
369 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
370 (possibly) work around broken /bin/sh.
371
372 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
373
374 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
375 . as N64/N32 libgcc_s.so subdirs.
376
377 2002-05-10 David S. Miller <davem@redhat.com>
378
379 * config/sparc/sparc.md: Use define_constants for unspec numbers.
380
381 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
382 more accurately.
383 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
384 comment.
385 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
386 * doc/rtl.texi: Document these macros more accurately.
387 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
388 JUMP_INSNs and CALL_INSNs.
389 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
390 or INSN_FROM_TARGET_P if the code is appropriate.
391
392 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
393
394 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
395 before using SYMBOL_REF_FLAG (addr).
396
397 * config/avr/avr-protos.h (avr_io_address_p): Declare.
398 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
399 Make non-static. Update all callers.
400 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
401 New insns to clear/set/test a single bit in I/O address space.
402
403 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
404
405 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
406
407 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
408
409 * Makefile.in: Update.
410 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
411 builtin_define_std): New.
412 (c_common_init): Register CPP builtins callback.
413 * c-common.h (flag_iso, flag_undef): New.
414 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
415 * c-lex.c: Don't include target.h.
416 (cb_register_builtins): Move to c-common.c.
417 (init_c_lex): Don't register hook here.
418 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
419 (cpp_define, cpp_assert): Remove.
420 * gcc.c (cc1_options): Pass -undef to front end.
421 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
422 (TARGET_INITIALIZER): Update.
423 * target.h (struct cpp_reader): Don't predeclare.
424 (struct gcc_target): Remove cpp builtin hook.
425 * tree.c (default_register_cpp_builtins): Remove.
426 doc:
427 * tm.texi: Update.
428
429 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
430
431 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
432
433 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
434
435 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
436 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
437
438 2002-05-09 Jakub Jelinek <jakub@redhat.com>
439
440 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
441 * config/sparc/libgcc-sparc-glibc.ver: New file.
442 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
443 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
444
445 2002-05-09 Jakub Jelinek <jakub@redhat.com>
446
447 PR target/6429
448 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
449 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
450 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
451 base multilibs.
452 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
453 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
454 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
455 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
456
457 2002-05-09 Richard Henderson <rth@redhat.com>
458
459 * config/ia64/ia64.md: Use define_constants for unspec numbers.
460 * config/ia64/ia64.c: Likewise.
461
462 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
463
464 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
465 (save_restore_insns): Likewise.
466 (mips_expand_prologue, mips_expand_epilogue): Update callers.
467 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
468
469 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
470
471 * athlon.md, k6.md, pentium.md, ppro.md): New files.
472 * i386.md: Move scheduling information into new files.
473
474 * i386.md (type attribute): Add "rotate" for rotate insns.
475 (rotate insns): Set type to "rotate".
476 (various attributes and function units): Treat rotate like shift.
477 (pent_pair attribute): Only rotates by one bit position are
478 pairable.
479 (sbb insns): Explicitly set pent_pair attribute on a couple
480 that were missing it.
481
482 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
483
484 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
485 make sure that buffer starts on odd word address.
486 (sh_va_arg): Skip odd fp registers when reading a double precision
487 value.
488
489 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
490
491 * tree.h (preserve_data, object_permanent_p, type_precision):
492 Remove.
493
494 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
495
496 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
497 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
498 doc:
499 * cpp.texi: Update for removal of obsolete features.
500
501 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
502 Jeffrey A Law (law@redhat.com)
503
504 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
505 the DFA interface for Pentium processors.
506 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
507 (attr_pent_pair, ix86_pent_find_pair): Remove.
508 (ix86_sched_reorder_pentium): Remove.
509 (ix86_sched_reorder): Remove reordering for Pentium.
510 * i386.md (Pentium scheduling): Rewrite using DFA description.
511
512 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
513
514 * cfganal.c (can_fallthru): Fix fast path.
515 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
516 with edges to the next block.
517
518 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
519 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
520
521 * final.c (end_final): Use C trees to output data structures for profiling.
522
523 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
524 (profile.o): New dependency profile.h
525 (final.o): New dependency profile.h
526 * profile.h: New file. New global structure profile_info.
527 * final.h (count_edges_instrumented_now): Declare.
528 (current_function_cfg_checksum): Declare.
529 (function_list): New structure.
530 (functions_head, functions_tail): New static variables.
531 (end_final): Emits more data, removed some -ax stuff.
532 (final): Stores function names and chcksums.
533 * gcov-io.h (__write_gcov_string): New function.
534 (__read_gcov_string): New function.
535 * gcov.c (read_profile): New function.
536 (create_program_flow_graph): Uses read_profile instead of reading
537 da_file.
538 (read_files): Removed da_file checking, it's done by read_profile now.
539 * libgcc2.c (bb_function_info): New structure.
540 (bb): New field in structure, removed some -ax stuff.
541 (__bb_exit_func): Changed structure of da_file.
542 * profile.c (count_edges_instrumented_now): New global variable.
543 (current_function_cfg_checksum): New global variable.
544 (max_counter_in_program): New global variable.
545 (get_exec_counts): New function.
546 (compute_checksum): New function.
547 (instrument_edges): Sets count_edges_instrumented_now.
548 (compute_branch_probabilities): Uses get_exec_counts instead of
549 reading da_file.
550 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
551 (init_branch_prob): Removed da_file checking, done in get_exec_counts
552 now.
553 (end_branch_prob): Removed da_file checking, done in get_exec_counts
554 now.
555 * gcov.texi: Updated information about gcov file format.
556
557 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
558
559 * sbitmap.c: Fix formatting.
560 * scan.c: Likewise.
561 * scan-decls.c: Likewise.
562 * sched-deps.c: Likewise.
563 * sched-ebb.c: Likewise.
564 * sched-rgn.c: Likewise.
565 * sched-vis.c: Likewise.
566 * sdbout.c: Likewise.
567 * sibcall.c: Likewise.
568 * simplify-rtx.c: Likewise.
569 * ssa.c: Likewise.
570 * ssa-ccp.c: Likewise.
571 * ssa-dce.c: Likewise.
572 * stmt.c: Likewise.
573 * stor-layout.c: Likewise.
574 * stringpool.c: Likewise.
575
576 2002-05-09 David S. Miller <davem@redhat.com>
577
578 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
579
580 2002-05-07 David S. Miller <davem@redhat.com>
581
582 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
583 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
584 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
585 library implementation clobbers the output before the inputs
586 are fully consumed, use stack temporary for the output.
587
588 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
589
590 * config/netbsd.h (CPP_SPEC): Remove.
591 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
592 * config/i386/netbsd.h (CPP_SPEC): Define.
593 * config/ns32k/netbsd.h (CPP_SPEC): Define.
594 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
595 * config/sparc/netbsd.h (CPP_SPEC): Define.
596 * config/vax/netbsd.h (CPP_SPEC): Define.
597
598 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
599
600 * read-rtl.c: Fix formatting.
601 * real.c: Likewise.
602 * recog.c: Likewise.
603 * regclass.c: Likewise.
604 * regmove.c: Likewise.
605 * reg-stack.c: Likewise.
606 * reload1.c: Likewise.
607 * reload.c: Likewise.
608 * resource.c: Likewise.
609 * rtlanal.c: Likewise.
610 * rtl.c: Likewise.
611 * rtl-error.c: Likewise.
612
613 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
614
615 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
616 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
617
618 2002-05-08 Bernd Schmidt <bernds@redhat.com>
619
620 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
621 use __SSE2__ macro instead.
622 * config/i386/xmmintrin.h: Likewise.
623
624 2002-05-08 Janis Johnson <janis187@us.ibm.com>
625
626 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
627 and use it in all invocations of these macros. Clean up comments.
628 * rtl.c (rtl_check_failed_flag): Add an argument for the name
629 of the flag access macro whose check failed.
630 * doc/rtl.texi (Flags): Document additional flag uses.
631
632 2002-05-08 Robert Spier <rspier@pobox.com>
633 Neil Booth <neil@daikokuya.demon.co.uk>
634
635 PR preprocessor/6521
636 * cppfiles.c (handle_missing_header): Don't do anything
637 different for <> includes.
638 doc:
639 * cppopts.texi: Update documentation for -MG.
640
641 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
642
643 * cpplex.c (cpp_interpret_charconst): Truncate as well as
644 sign-extend.
645 doc:
646 * cpp.texi: Clarify multichar charconst valuation.
647
648 2002-05-08 Mark Mitchell <mark@codesourcery.com>
649
650 * doc/invoke.texi: Document -mwindiss option.
651
652 2002-05-08 Jason Merrill <jason@redhat.com>
653
654 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
655
656 * dwarf2out.c (gen_type_die): Abort on broken recursion.
657
658 PR c++/6381
659 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
660 REAL_CST.
661
662 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
663
664 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
665 little-endian multilibs to override arm/thumb multilibs.
666 Do not build hardware floating point multilibs, nor apcs-26
667 multilibs for the Thumb.
668
669 2002-05-08 Mark Mitchell <mark@codesourcery.com>
670
671 PR c/6569.
672 * varasm.c (mark_weak): New function.
673 (merge_weak): Use it. Do not call declare_weak.
674 (declare_weak): Use merge_weak.
675
676 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
677
678 * cse.c (dead_libcall_p): Update counts.
679 (delete_trivially_dead_insns): Update call of dead_libcall_p.
680
681 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
682
683 * cfglayout.c (function_tail_eff_head): Rename to ...
684 (function_footer): ... this one.
685 (unlink_insn_chain): New functions.
686 (label_for_bb): Only call block_label and emit debug message.
687 (record_effective_endpoints): Actually unlink the headers and footers.
688 (fixup_reorder_cahin): Re-insert the unlinked sequences.
689 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
690 * cfglayout.h (struct reorder_block_def): New fields footer/header;
691 remove eff_head/eff_end.
692 * rtl.h (set_first_insn): Declare.
693 * emit-rtl.c (set_first_insn): New function.
694
695 * cfglayout.c (fixup_reorder_chain): Dump duplicated
696 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
697 cfg_layout_duplicate_bb): New global function.
698 (duplicate_insn_chain): New static function.
699 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
700 cfg_layout_duplicate_bb): Declare.
701 (struct reorder_block_def): Add "original" field.
702 * emit-rtl.c (emit_copy_of_insn_after): New function.
703 * rtl.h (emit_copy_of_insn_after): Declare.
704
705 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
706 (fixup_reorder_chain): properly handle edges to exit block.
707
708 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
709 Jan Hubicka <jh@suse.cz>
710
711 * basic-block.h (note_prediction_to_br_prob): declare.
712 * c-semantics.c: Inlucde predit.h
713 (expand_stmt): predict GOTO_STMT as not taken.
714 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
715 (cleanup_cfg): Do not free tail_recursion_list.
716 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
717 (flow_delete_block): Kill predictions past end of basic block.
718 * output.h (delete_unreachable_blocks): Declare.
719 * predict.c (predicted_by_p, process_note_predictions,
720 process_note_prediction, last_block_p): New function.
721 (estimate_probability): Bypass loop on PRED_CONTINUE;
722 do not handle noreturn heuristics; kill PRED_RETURN; add
723 PRED_EARLY_RETURN.
724 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
725 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
726 * predict.h (IS_TAKEN): New constant.
727 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
728 * rtl.c (NOTE_INSN_PREDICTION): New.
729 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
730 New macro.
731 (insn_note): add NOTE_INSN_PREDICTION.
732 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
733 CFG; free tail_recursion_label_list.
734 * stmt.c: Include predict.h;
735 (return_prediction): New.
736 (expand_value_return): Use it.
737 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
738
739 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
740
741 * config/mips/mips.md: Name the unspecs with define_constant.
742 (*HILO_delay): Rename to 'hilo_delay' (no star).
743 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
744 (reload_outdi, reload_outsi): Likewise.
745
746 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
747
748 * toplev.c: Fix formatting.
749
750 2002-05-07 Janis Johnson <janis187@us.ibm.com>
751
752 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
753 * configure.in (ac_rtlflag_checking): New.
754 * doc/install.texi (--enable-checking): Document RTL flag checking.
755
756 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
757
758 * c-common.c (c_common_init): Set options->unsigned_wchar.
759 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
760 group target dependencies.
761 (init_builtins, cpp_handle_option): Update.
762 * cpplex.c (cpp_interpret_charconst): Update.
763 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
764 signed_char to unsigned_char, group target dependencies.
765 * defaults.h (WCHAR_UNSIGNED): Remove.
766 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
767 config:
768 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
769 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
770 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
771 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
772 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
773 doc:
774 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
775
776 2002-05-07 Mark Mitchell <mark@codesourcery.com>
777
778 * fixinc/inclhack.def (windiss_math1): New fix.
779 (windiss_math2): Likewise.
780 (windiss_valist): Likewise.
781 * fixinc/fixincl.x: Regenerated.
782
783 2002-05-07 Andreas Jaeger <aj@suse.de>
784
785 * genautomata.c (output_internal_min_issue_delay_func): Add
786 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
787 (output_internal_trans_func): Likewise.
788
789 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
790
791 * pa.c (hppa_profile_hook): Use force_reg to get the address
792 of the profile hook into an appropriate pseudo register.
793
794 2002-05-07 Mark Mitchell <mark@codesourcery.com>
795
796 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
797 (LINK_START_SPEC): Handle it.
798 (LINK_OS_SPEC): Likewise.
799 (CPP_SPEC): Likewise.
800 (STARTFILE_SPEC): Likewise.
801 (LIB_SPEC): Likewise.
802 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
803 all platforms.
804 (CRTSAVRES_DEFAULT_SPEC): New macro.
805 (LIB_WINDISS_SPEC): New macro.
806 (CPP_OS_WINDISS_SPEC): Likewise.
807 (STARTFILE_WINDISS_SPEC): Likewise.
808 (ENDFILE_WINDISS_SPEC): Likewise.
809 (LINK_START_WINDISS_SPEC): Likewise.
810 (LINK_OS_WINDISS_SPEC): Likewise.
811 * config/rs6000/windiss.h: New file.
812
813 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
814
815 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
816
817 2002-05-06 David S. Miller <davem@redhat.com>
818
819 * config/sparc/sparc.md (shift insns): Do not mask off
820 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
821 take care of it.
822
823 2002-05-06 Richard Henderson <rth@redhat.com>
824
825 PR c++/6212
826 * expr.c (highest_pow2_factor_for_type): New.
827 (expand_assignment): Use it.
828
829 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
830
831 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
832 unspec_volatile.
833 ("altivec_mfvscr"): Same.
834
835 2002-05-06 Janis Johnson <janis187@us.ibm.com>
836
837 * rtl.h (struct rtx_def): Update comments.
838 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
839 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
840 RTL_FLAG_CHECK macros with list of expected RTL codes.
841 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
842 (rtl_check_failed_flag): New.
843 * reload1.c (reload): Use REG macro before changing rtx to MEM.
844 (reload_cse_noop_set_p): Check rtx code before using access macro.
845 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
846 before using access macro.
847
848 2002-05-06 Janis Johnson <janis187@us.ibm.com>
849
850 * doc/rtl.texi (Flags): Update to reflect current usage.
851
852 2002-05-06 Roger Sayle <roger@eyesopen.com>
853
854 PR opt/3995
855 * fold-const.c (sign_bit_p): New function.
856 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
857 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
858 Reapply fold when converting (A & C) == C into (A & C) != 0.
859 (fold_binary_op_with_conditional_arg): Fix typo in comment.
860
861 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
862
863 * c-common.c (warn_multichar): New.
864 (c_common_init): Set CPP's warn_multichar.
865 * c-common.h (warn_multichar): New.
866 * c-decl.c (warn_multichar): Remove.
867 * c-lex.c (lex_charconst): Update.
868 * c-tree.h (warn_multichar): Remove.
869 * cppexp.c (eval_token): Sign-extend charconst value.
870 * cppinit.c (cpp_create_reader): Set warn_multichar.
871 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
872 each character. Update prototype. Sign-extend the result.
873 * cpplib.h: Fix conditions.
874 (struct cpp_options): Add new warning flag.
875 (cpp_interpret_charconst): Update prototype.
876 doc:
877 * cpp.texi: Update documentation.
878
879 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
880
881 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
882 Fix typo in usage of allof instead of unit.
883
884 2002-05-06 Richard Henderson <rth@redhat.com>
885
886 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
887 and any jump or call for IN.
888
889 2002-05-06 Bernd Schmidt <bernds@redhat.com>
890
891 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
892 -msse2.
893 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
894
895 2002-05-06 Roger Sayle <roger@eyesopen.com>
896
897 * fold-const.c (lshift-double): Cast the high word to an unsigned
898 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
899 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
900 avoid compiler warning. (fold): Remove redundant code from
901 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
902
903 2002-05-06 Jeff Law <law@redhat.com>
904
905 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
906 * pa.c (pa_adjust_cost): Remove all true dependency cost
907 adjustments. Also remove support for non-DFA scheduling.
908 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
909 to adjust true dependency costs. Update various comments.
910 (7100lc, 7200, 7300 scheduling): Simplify by combining the
911 FP ALU & MPY units into a single unit.
912
913 2002-05-06 Catherine Moore <clm@redhat.com>
914
915 * config/v850/v850.c (compute_register_save_size): Make sure
916 to count all of the registers that will be saved.
917
918 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
919
920 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
921
922 2002-05-06 David S. Miller <davem@redhat.com>
923
924 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
925 allow result to overlap input operands in memory.
926
927 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
928
929 doc:
930 * cpp.texi: Update multichar charconst docs.
931
932 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
933
934 * cpplex.c (cpp_interpret_charconst): Sign-extend each
935 character. Don't ignore excess characters. Treat
936 multicharacter character constants as signed.
937 (cpp_parse_escape): Clarify diagnostic.
938
939 2002-05-05 Jakub Jelinek <jakub@redhat.com>
940
941 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
942 use add instead of shift.
943 (ashldi3_sp64): Likewise.
944 (ashlsi3_const1, ashldi3_const1): Remove.
945 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
946 * config/sparc/sparc.c (const1_operand): New.
947
948 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
949
950 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
951
952 2002-05-05 Jakub Jelinek <jakub@redhat.com>
953
954 PR target/6561
955 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
956
957 2002-05-05 Richard Henderson <rth@redhat.com>
958
959 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
960 memory latency adjustments.
961 (alpha_variable_issue): Remove.
962 (alpha_use_dfa_pipeline_interface): New.
963 (alpha_multipass_dfa_lookahead): New.
964 * config/alpha/alpha.md: Remove define_function_unit scheduling;
965 include new dfa scheduling.
966 (attr type): Add none.
967 (blockage): Use it.
968 * config/alpha/ev4.md: New.
969 * config/alpha/ev5.md: New.
970 * config/alpha/ev6.md: New.
971
972 2002-05-05 David S. Miller <davem@redhat.com>
973
974 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
975
976 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
977
978 * cse.c: Fix formatting.
979 * emit-rtl.c: Likewise.
980
981 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
982
983 * genautomata.c (initiate_states): Add additional guard to
984 initialize `units_array'.
985
986 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
987
988 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
989 process_unit_to_form_the_same_automaton_unit_lists,
990 form_the_same_automaton_unit_lists
991 check_unit_distributions_to_automata): New prototypes and
992 functions.
993 (check_automata): Rename it into `check_automata_insn_issues'.
994 (unit_decl): New fields `the_same_automaton_unit' and
995 `the_same_automaton_message_reported_p'.
996 (unit_decl_t): New typedef.
997 (the_same_automaton_lists): New gloval variable.
998 (unit_regexp, unit_set_el, units_array, units_cmp,
999 output_get_cpu_unit_code_func): Use the typedef.
1000 (evaluate_max_reserv_cycles): Increment
1001 `description->max_insn_reserv_cycles'.
1002 (initiate_states): Don't increment `max_cycles_num'.
1003 (transform_insn_regexps): Move code around transformation of
1004 regexps from `generate'.
1005 (generate): Remove call of `transform_insn_regexps'.
1006 (expand_automata): Call `transform_insn_regexps' and
1007 `check_unit_distributions_to_automata'. Check errors before
1008 `generate'.
1009
1010 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1011 automaton `ultrasparc3_1'.
1012
1013 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
1014
1015 * c-common.c (c_common_init): Set up CPP arithmetic.
1016 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1017 something reasonable for the host.
1018 (sanity_checks): Add checks.
1019 (cpp_read_main_file): Call sanity_checks() from here...
1020 (cpp_post_options): ... not here.
1021 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1022 * cpplib.h (struct cpp_options): New member int_precision.
1023
1024 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1025
1026 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1027
1028 2002-05-04 David S. Miller <davem@redhat.com>
1029
1030 * config/sparc/linux.h, config/sparc/linux64.h
1031 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1032
1033 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1034 more RTX codes.
1035 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1036
1037 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1038 of SETs.
1039
1040 2002-05-05 Tim Josling <tej@melbpc.org.au>
1041
1042 * treelang; New directory for new sample language treelang.
1043
1044 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1045
1046 * Makefile.in (c-lex.o): Update.
1047 * c-lex.c: Include target.h.
1048 (cb_register_builtins): New.
1049 (init_c_lex): Set builtins callback.
1050 * c-lex.h (cpp_define, cpp_assert): New prototypes.
1051 * cppinit.c (init_builtins): Use callback, including for
1052 GXX_WEAK.
1053 * cpplib.h (struct cpp_callbacks): New member.
1054 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1055 (TARGET_INITIALIZER): Update.
1056 * target.h (struct gcc_target): New hook.
1057 * tree.c (default_register_cpp_builtins): New.
1058 * tree.h (default_register_cpp_builtins): New.
1059 doc:
1060 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1061
1062 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1063
1064 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1065 (cpp_post_options): Move sanity checks to...
1066 (sanity_checks): New.
1067 * cpplex.c (maybe_read_ucs): Fix prototype.
1068 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1069 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1070 if necessary.
1071
1072 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1073
1074 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1075 builtins. Use V2DI patterns instead of TI for logical operations.
1076 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1077 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1078 (ix86_expand_builtins): Change the pattern used for movntdq.
1079 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1080 sse2_nandv2di3): New patterns.
1081 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1082 on operands.
1083 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1084 (cvtdq2pd): Correct mode on operand 1.
1085 (sse2_umulsidi3): Describe without unspec.
1086 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1087 machine modes.
1088 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1089 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1090 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1091 ashlv4si3, ashlv2di3): Use SImode for shift count.
1092 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1093 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1094 New patterns.
1095 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1096 New typedefs.
1097 (__m128i, __m128d): New macros.
1098 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1099 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1100 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1101 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1102 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1103 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1104 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1105 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1106 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1107 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1108 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1109 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1110 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1111 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1112 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1113 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1114 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1115 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1116 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1117 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1118 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1119 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1120 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1121 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1122 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1123 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1124 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1125 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1126 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1127 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1128 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1129 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1130 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1131 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1132 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1133 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1134 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1135 functions.
1136 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1137 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1138
1139 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1140
1141 * dwarf2out.c: Fix formatting.
1142 * varasm.c: Likewise.
1143
1144 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1145
1146 PR c/6543
1147 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1148 clobber and use result as temporary value.
1149
1150 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1151
1152 * expr.c (force_operand): Use expand_simple_* to handle more
1153 cases.
1154
1155 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1156
1157 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1158 and sign-extension.
1159 (lex_charconst): Update for change in prototype of
1160 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1161 appropriately.
1162 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1163 * cppinit.c (cpp_create_reader): Initialize them for no
1164 change in semantics.
1165 (cpp_post_options): Add sanity checks.
1166 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1167 and truncation issues. Calculate in type cppchar_t.
1168 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1169 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1170 run-time dependent precision correctly. Return whether the
1171 result is signed or not.
1172 * cpplib.c (dequote_string): Use cppchar_t; update.
1173 * cpplib.h (cppchar_signed_t): New.
1174 struct cpp_options): New precision members.
1175 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1176 * cppexp.c (eval_token): Update.
1177
1178 2002-05-03 David S. Miller <davem@redhat.com>
1179
1180 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1181 * config/sparc/sparc.c (sparc_rtx_costs): New function
1182 implementing RTX_COSTS and CONST_COSTS.
1183 * config/sparc/sparc.h (CONST_COSTS): Delete.
1184 (RTX_COSTS_CASES): Define.
1185 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1186 the work.
1187
1188 * config/sparc/sparc.md (DFA schedulers): Split out...
1189 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1190 config/sparc/sparclet.md, config/sparc/supersparc.md,
1191 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1192
1193 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1194 checks on it, always defined for Sparc.
1195
1196 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1197 Tweak, and add more detailed comments.
1198
1199 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1200
1201 * Re-apply patch accidentally reverted with
1202 DFA scheduler merge: remove all rules and variables to slurp
1203 source files out of libiberty and rebuild them with HOST_CC.
1204 ($(HOST_PREFIX_1)varray.o): New rule.
1205 (genattrtab rule): Word wrap.
1206
1207 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1208
1209 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1210 (CPP_SUBTARGET_SPEC): Define.
1211 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1212 cpp_subtarget specs.
1213 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1214
1215 2002-05-03 David S. Miller <davem@redhat.com>
1216
1217 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1218 * target.h (struct gcc_target): Delete cycle_display member.
1219
1220 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1221 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1222 (ia64_sched_reorder2): Mention need for cycle display handling
1223 once such notes exist.
1224
1225 2002-05-03 Richard Henderson <rth@redhat.com>
1226
1227 * real.c (etoasc): Strip most trailing zeros for clarity.
1228 * sched-vis.c: Include real.h.
1229 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1230 * Makefile.in (sched-vis.o): Add real.h.
1231
1232 2002-05-03 David S. Miller <davem@redhat.com>
1233
1234 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1235 no longer needed.
1236
1237 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1238
1239 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1240 when we get an out of range literal.
1241 (altivec_expand_ternop_builtin): Same.
1242 (altivec_expand_unop_builtin): Same.
1243 (altivec_expand_builtin): Same, for dss.
1244 (altivec_expand_builtin): Use trees instead of rtl when
1245 determining literal argument validity.
1246
1247 2002-05-03 David S. Miller <davem@redhat.com>
1248
1249 Delete cycle display scheduling hook.
1250 * config/ia64/ia64.c (ia64_cycle_display,
1251 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1252 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1253 and use emit_insn_before instead of ia64_emit_insn_before.
1254 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1255 (cycle_display): Delete insn pattern.
1256 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1257 (cycle_display): Delete insn pattern.
1258 * config/sparc/sparc.c (sparc_cycle_display,
1259 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1260 * doc/md.texi (cycle_display): Don't mention.
1261 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1262
1263 2002-05-03 Richard Henderson <rth@redhat.com>
1264
1265 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1266 * recog.h: Declare them.
1267
1268 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1269 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1270 * config/sparc/sparc-protos.h: Update.
1271
1272 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1273
1274 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1275 -D__arch64__. Add -D_LP64.
1276 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1277 from sparc.h.
1278 (CPP_ARCH64_SPEC): Likewise.
1279 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1280 (NO_BUILTIN_SIZE_TYPE): Undef.
1281
1282 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1283
1284 * genautomata.c (min_issue_delay_pass_states): Change return type
1285 in the prototype.
1286 (min_issue_delay_pass_states): Change the algorithm.
1287 (min_issue_delay): Set up min_insn_issue_delay for the state.
1288 (output_min_issue_delay_table): Interchange the nested loops and
1289 and initiate min_insn_issue_delay for states.
1290
1291 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1292
1293 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1294 jump is simplejump.
1295
1296 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1297
1298 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1299 sequence.
1300
1301 2002-05-03 Richard Henderson <rth@redhat.com>
1302
1303 PR opt/6534
1304 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1305 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1306 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1307 code before JUMP, not EARLIEST.
1308
1309 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1310
1311 * c-format.c (check_format_info_main): Don't check for presence of
1312 parameter for * width until after operand number has been read,
1313 and only check for it if format parameters are available.
1314 Fixes PR c/6547.
1315
1316 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1317
1318 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1319 (LINK_SPEC): Undef before defining.
1320
1321 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1322
1323 PR preprocessor/6489
1324 * tradcpp.c (fixup_newlines): New.
1325 (main, finclude): Use it.
1326
1327 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1328
1329 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1330 * config/mips/mips.c (mips_unique_section): Strip encoding from
1331 decl name.
1332
1333 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1334
1335 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1336 mode.
1337
1338 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1339
1340 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1341 (Specific): Removed buildstats references.
1342 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1343 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1344 Accomodate Solaris versions beyond 8.
1345 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1346 (Specific, *-*-solaris2.8): Removed, obsolete.
1347
1348 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1349
1350 PR target/6542
1351 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1352 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1353 fill leaf_reg_remap with identity.
1354 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1355
1356 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1357
1358 * config/h8300/crti.asm: Remove trailing spaces.
1359 * config/h8300/h8300.c: Likewise.
1360 * config/h8300/lib1funcs.asm: Likewise.
1361
1362 2002-05-02 Jason Merrill <jason@redhat.com>
1363
1364 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1365 * c-decl.c (c_init_decl_processing): Use it.
1366 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1367 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1368 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1369
1370 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1371
1372 * regrename.c: Fix formatting.
1373 * tree.c: Likewise.
1374
1375 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1376
1377 * i386.md (attribute memory): Handle compares properly.
1378
1379 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1380
1381 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1382 to none.
1383
1384 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1385
1386 * function.c: Fix formatting.
1387
1388 2002-05-02 Jan Hubicka <jh@suse.cz>
1389
1390 * haifa-sched.c (schedule_insn): Print table of instructions and
1391 reservations.
1392 (sched_block): Do not print ready list at verbosity level 1.
1393 * sched-vis.c (print_insn): Make global.
1394 * sched-ebb.c (ebb_print_insn): Rename from...
1395 (print_insn): ... this one.
1396 * sched-int.h (print_insn): Declare
1397
1398 2002-05-02 Richard Henderson <rth@redhat.com>
1399
1400 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1401 emitted by cycle_display.
1402
1403 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1404
1405 * doc/install.texi (*-*-freebsd*): Update to latest status.
1406
1407 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1408
1409 PR target/6540
1410 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1411 * config/float-sparc.h: Assume 128-bit long double if
1412 __LONG_DOUBLE_128__ is defined.
1413
1414 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1415
1416 * genattrtab.c (write_function_unit_info): Add a dummy element
1417 when num_units == 0.
1418
1419 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1420
1421 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1422 TYPE_MODE (double_type_node) instead of DFmode.
1423
1424 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1425
1426 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1427 jumps post reload.
1428 * toplev.c (rest_of_compilation): Revert Richard's patch.
1429
1430 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1431
1432 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1433
1434 2002-05-02 Catherine Moore <clm@redhat.com>
1435
1436 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1437
1438 2002-05-02 Kazu Hirata <kazu@hxi.com>
1439
1440 * combine.c: Fix comment typos.
1441 * expr.c: Likewise.
1442 * genautomata.c: Likewise.
1443 * stmt.c: Likewise.
1444 * tree.h: Likewise.
1445
1446 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1447
1448 * doc/install.texi: State GNAT version requirements.
1449
1450 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1451
1452 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1453 of the frame pointer or arg pointer register which strict register
1454 checking is not enabled.
1455
1456 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1457
1458 * gcc.dg/altivec-8.c: New.
1459
1460 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1461 PRE_INC and PRE_DEC for altivec modes.
1462
1463 2002-05-01 Bruce Korb <bkorb@gnu.org>
1464
1465 * fixinc/check.tpl(set-writable): make sure the function exists first
1466 * fixinc/inclhack.def(alpha_assert): fix test_text
1467 * fixinc/tests/base/assert.h: add in missing result
1468
1469 2002-05-01 Jeff Law <law@redhat.com>
1470
1471 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1472 'T' constraint.
1473
1474 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1475
1476 * dbxout.c (dbxout_type): Emit size information for range types,
1477 as well, but only when using GDB extensions.
1478
1479 2002-05-01 Richard Henderson <rth@redhat.com>
1480
1481 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1482 target-independent gnu binutils date test.
1483
1484 2002-05-01 Richard Henderson <rth@redhat.com>
1485
1486 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1487 info before expunging the block.
1488
1489 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1490
1491 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1492 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1493 -M -or -MM is in effect.
1494
1495 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1496
1497 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1498 A29k configurations.
1499 * doc/install.texi: Update to match.
1500
1501 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1502
1503 PR bootstrap/6514
1504 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1505 for duplicates. Always loop over whole list.
1506
1507 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1508
1509 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1510
1511 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1512
1513 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1514 support routines.
1515
1516 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1517
1518 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1519
1520 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1521
1522 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1523 (nabs_nopower): Same.
1524 (floatdisf2): New pattern.
1525 (absdi2): Convert to define_insn_and_split.
1526 (nabsdi2): Same.
1527 (trunctfsf2): Same.
1528 (floatditf2): Same.
1529 (floatsitf2): Same.
1530 (fix_trunctfdi2): Same.
1531 (fix_trunctfsi2): Same.
1532
1533 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1534
1535 * doc/install.texi: Update Texinfo version requirement
1536 documentation.
1537
1538 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1539
1540 PR target/6512, PR target/5628
1541 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1542 when memory is not aligned.
1543 (movdf_insn_v9only_vis): Likewise.
1544 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1545 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1546 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1547
1548 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1549
1550 * gcc.dg/altivec-7.c: New.
1551
1552 * config/rs6000/altivec.h: Cleanup.
1553
1554 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1555
1556 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1557 (RS/6000 and PowerPC Options): Document -mvrsave=.
1558
1559 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1560 (rs6000_altivec_vrsave_string): Same.
1561 (rs6000_override_options): Call rs6000_parse_vrsave_option.
1562 (rs6000_parse_vrsave_option): New.
1563 (rs6000_stack_info): Only generate vrsave instructions when
1564 TARGET_ALTIVEC_VRSAVE.
1565
1566 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1567 (rs6000_altivec_vrsave_string): Define extern.
1568 (rs6000_altivec_vrsave): Same.
1569 (TARGET_ALTIVEC_VRSAVE): New.
1570
1571 2002-04-30 Richard Henderson <rth@redhat.com>
1572
1573 PR opt/6516
1574 * toplev.c (rest_of_compilation): Don't run cross-jump before
1575 bb-reorder.
1576
1577 2002-04-30 Tom Rix <trix@redhat.com>
1578
1579 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1580 check which_alternative.
1581
1582 2002-04-30 Kazu Hirata <kazu@hxi.com>
1583
1584 * cpplex.c: Fix comment formatting.
1585 * function.c: Likewise.
1586 * integrate.c: Likewise.
1587 * regrename.c: Likewise.
1588 * sibcall.c: Likewise.
1589 * simplify-rtx.c: Likewise.
1590 * tree-inline.c: Likewise.
1591
1592 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1593
1594 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1595 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1596 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1597 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1598 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1599 * pa/x-ada: New file. Define ADA_CFLAGS.
1600
1601 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
1602
1603 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1604 from MMIX_LAST_REGISTER_FILE_REGNUM.
1605 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1606 (struct machine_function): New member highest_saved_stack_register
1607 previously static variable in mmix.c.
1608 (MACHINE_DEPENDENT_REORG): Define.
1609 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1610 (MMIX_OUTPUT_REGNO): New.
1611 (mmix_target_asm_function_prologue): Move calculation of last used
1612 saved-stack-register into...
1613 (mmix_machine_dependent_reorg): New function. Update to also handle
1614 !TARGET_ABI_GNU.
1615 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1616 register names, simplify somewhat by new variable regno.
1617 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
1618 register.
1619 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1620 emitting register names.
1621 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1622 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1623 Remove fixed FIXME.
1624 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1625 Declare.
1626
1627 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1628
1629 2002-04-30 Richard Henderson <rth@redhat.com>
1630
1631 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1632 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1633 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1634 emit_tfmode_cvt): New.
1635 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1636 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1637 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1638 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1639 * config/sparc/sparc-protos.h: Update.
1640
1641 2002-04-30 Janis Johnson <janis187@us.ibm.com>
1642
1643 * install.texi (Final install): Add to the list of info to include
1644 in a report of a successful bootstrap, and add link to 3.1 list.
1645
1646 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
1647
1648 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1649 (mode): Add vector modes
1650 (i387): Kill attribute.
1651 (unit): New attribute.
1652 (length_immediate): Grok new types.
1653 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1654 (modrm): Use "unit".
1655 (memory): Handle MMX/SSE properly.
1656 (scheduling descriptions): Kill uses of fop1.
1657 (sse, mmx, fp patterns): Set type and mode properly.
1658
1659 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
1660
1661 * pa.c (override_options): Default to PA8000 scheduling.
1662 * doc/invoke.texi (HP-PA options): Mention newly added 7300
1663 scheduling parameter.
1664
1665 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1666 handling of double precision multiplies.
1667
1668 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1669 fpdiv and fpsqrt instructions.
1670 (7200 & 7300 scheduling): Fix typo in handling of
1671 store-load and store-store penalties.
1672
1673 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1674
1675 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1676 mips. Add two missing commas.
1677
1678 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
1679
1680 * doc/contrib.texi (Contributors): Update Paolo Carlini's
1681 and Benjamin Kosnik's entries.
1682
1683 2002-04-29 David S. Miller <davem@redhat.com>
1684
1685 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1686 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1687 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1688 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1689
1690 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1691
1692 * combine.c (find_split_point): Use gen_int_mode.
1693
1694 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
1695
1696 Merging code from dfa-branch:
1697
1698 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
1699
1700 * genautomata.c (output_reserv_sets): Fix typo.
1701
1702 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
1703
1704 * genautomata.c (output_reserv_sets): Remove
1705 next_cycle_output_flag.
1706
1707 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
1708
1709 * sched-rgn.c (init_ready_list): Make the DFA code handle
1710 USE/CLOBBER insns in the same way as the traditional
1711 scheduler.
1712 (new_ready): Similarly..
1713
1714 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
1715
1716 * haifa-sched.c (schedule_block): Change the DFA state only after
1717 issuing insn.
1718
1719 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
1720
1721 * pa.c (hppa_use_dfa_pipeline_interface): New function.
1722 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1723 (override_options): Add PA7300 scheduling support.
1724 (pa_adjust_cost): Update various comments. Properly
1725 handle anti and output dependencies when using the
1726 DFA scheduler.
1727 (pa_issue_rate): Add PA7300 scheduling support.
1728 (pa_can_combine_p): Call extract_insn before calling
1729 constrain_operands (taken from mainline tree).
1730 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1731 * pa.md (cpu attr): Add 7300. Rewrite pipeline
1732 descriptions using DFA descriptions. Add PA7300
1733 scheduling support.
1734
1735 2002-03-30 David S. Miller <davem@redhat.com>
1736
1737 Add UltraSPARC-III DFA scheduling support.
1738 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1739 Update FP conditional move on register insn patterns to use it, as
1740 appropriate.
1741 (define_attr cpu): Add ultrasparc3.
1742 (define_attr us3load_type): New, update integer load patterns to
1743 set it, as appropriate.
1744 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1745 (rest): Add UltraSPARC3 scheduling description.
1746 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1747 (PROCESSOR_ULTRASPARC3): New.
1748 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1749 ({ASM,CPP}_CPU_SPEC): Likewise.
1750 (REGISTER_MOVE_COST): Likewise.
1751 (RTX_COSTS): Likewise.
1752 * config/sparc/sparc.c (sparc_override_options,
1753 sparc_initialize_trampoline, sparc64_initialize_trampoline,
1754 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1755 sparc_issue_rate): Likewise.
1756 * config/sparc/sol2.h: Likewise.
1757 * config/sparc/sol2-sld-64.h: Likewise.
1758 * config/sparc/linux64.h: Likewise.
1759
1760 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
1761
1762 * doc/md.texi: Add comments about usage the latency time for the
1763 different dependencies and about case when two or more conditions
1764 in different define_insn_reservations returns TRUE for an insn.
1765
1766 * doc/md.texi: Add reference for automaton based pipeline
1767 description.
1768
1769 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
1770
1771 * doc/passes.texi: Add missed information about genattrtab.
1772
1773 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
1774
1775 * genautomata.c (output_automata_list_transition_code): Check
1776 automata_list on NULL.
1777
1778 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
1779
1780 * genautomata.c (output_insn_code_cases,
1781 output_automata_list_min_issue_delay_code,
1782 output_automata_list_transition_code,
1783 output_automata_list_state_alts_code): Comment the functions.
1784
1785 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
1786
1787 * genautomata.c (automata_list_el_t): New typedef.
1788 (get_free_automata_list_el,free_automata_list_el,
1789 free_automata_list, automata_list_hash, automata_list_eq_p,
1790 initiate_automata_lists, automata_list_start, automata_list_add,
1791 automata_list_finish, finish_automata_lists,
1792 output_insn_code_cases, output_automata_list_min_issue_delay_code,
1793 output_automata_list_transition_code,
1794 output_automata_list_state_alts_code, add_automaton_state,
1795 form_important_insn_automata_lists): New functions and prototypes.
1796 (insn_reserv_decl): Add members important_automata_list and
1797 processed_p.
1798 (ainsn): Add members important_p.
1799 (automata_list_el): New structure.
1800 (first_free_automata_list_el, current_automata_list,
1801 automata_list_table): New global variables.
1802 (create_ainsns): Initiate member important_p.
1803 (output_internal_min_issue_delay_func): Generate the switch and
1804 call output_insn_code_cases.
1805 (output_internal_trans_func, output_internal_state_alts_func):
1806 Ditto.
1807 (generate): Call initiate_automata_lists.
1808 (automaton_states): New global variable.
1809 (expand_automata): Call form_important_insn_automata_lists.
1810 (write_automata): Call finish_automata_lists.
1811
1812 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
1813
1814 * genautomata.c (add_excls, add_presence_absence): Check that
1815 cpu units in the sets belong the same automaton.
1816
1817 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1818 about that cpu units in the sets belong the same automaton.
1819
1820 * doc/md.texi: Ditto.
1821
1822 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
1823 Nitin Gupta <niting@noida.hcltech.com>
1824
1825 * config/sh/sh.c (sh_use_dfa_interface): New function.
1826
1827 (sh_issue_rate): New Function.
1828 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1829 TARGET_SCHED_ISSUE_RATE: define.
1830
1831 * config/sh/sh.md: Add DFA based pipeline description for SH4.
1832
1833 (define_attr insn_class): New attribute used for DFA
1834 scheduling.
1835 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1836 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1837 cmpeqdi_t): Likewise.
1838
1839 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1840 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1841 ex_group.
1842 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1843
1844 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1845
1846 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1847 break.
1848
1849 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1850
1851 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1852 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1853 necessary.
1854 (output_dfa_start_func): Initiate new variable insn_codes_length,
1855 (write_automata): Output definition of the new variable.
1856
1857 2001-10-02 David S. Miller <davem@redhat.com>
1858
1859 * haifa-sched.c (advance_one_cycle): New function.
1860 (schedule_block): Use it.
1861 (queue_to_ready): Use it, and also make sure to advance the DFA
1862 state on all stall cycles, not just those where insn_queue links
1863 are found.
1864
1865 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
1866
1867 * haifa-sched.c (max_issue): Remove last_p argument. Only return
1868 non-zero if the highest-priority instruction could be scheduled.
1869 (choose_ready): Remove last argument from max_issue call.
1870
1871 2001-09-28 David S. Miller <davem@redhat.com>
1872
1873 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1874 ultrasparc and 3 for other multi-issue sparcs.
1875
1876 2001-09-27 David S. Miller <davem@redhat.com>
1877
1878 * config/sparc/sparc.md (cycle_display): New pattern.
1879 * config/sparc/sparc.c (sparc_cycle_display): New.
1880 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
1881
1882 2001-09-25 David S. Miller <davem@redhat.com>
1883
1884 Convert all of Sparc scheduling to DFA
1885 * config/sparc/sparc.md: Kill all define_function_unit
1886 directives and replace with DFA equivalent.
1887 * config/sparc/sparc.c (ultrasparc_adjust_cost,
1888 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
1889 ultra_fpmode_conflict_exists, ultra_find_type,
1890 ultra_build_types_avail, ultra_flush_pipeline,
1891 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
1892 ultrasparc_variable_issue, ultrasparc_sched_init,
1893 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
1894 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
1895 ultra_cur_hist, ultra_cycles_elapsed): Kill.
1896 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1897 ultrasparc_store_bypass_p): New.
1898 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
1899 Declare.
1900
1901 2001-09-24 David S. Miller <davem@redhat.com>
1902
1903 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1904 ready->vec[foo] not ready[foo].
1905
1906 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1907
1908 * doc/md.texi: Correct examples for define_insn_reservations
1909 `mult' and `div'.
1910
1911 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1912
1913 * genautomata.c (create_automata): Print message about creation of
1914 each automaton.
1915 (generate): Remove printing meease about creation of
1916 automata.
1917
1918 2001-09-05 David S. Miller <davem@redhat.com>
1919
1920 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1921 * config/sparc/linux64.h: Likewise.
1922
1923 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
1924
1925 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1926 schedule_block, sched_init, sched_finish): Add missed calls of
1927 use_dfa_pipeline_interface.
1928
1929 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1930 Ditto.
1931
1932 * sched-vis.c (get_visual_tbl_length): Ditto.
1933
1934 2001-08-27 Richard Henderson <rth@redhat.com>
1935
1936 * genattr.c (main): Emit state_t even when not doing scheduling.
1937
1938 2001-08-27 Richard Henderson <rth@redhat.com>
1939
1940 * genautomata.c (expand_automata): Always create a description.
1941
1942 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1943
1944 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1945 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1946 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1947 RTL constructions.
1948
1949 * genattr.c (main): New variable num_insn_reservations. Increase
1950 it if there is DEFINE_INSN_RESERVATION. Output automaton based
1951 pipeline hazard recognizer interface.
1952
1953 * genattrtab.h: New file.
1954
1955 * genattrtab.c: Include genattrtab.h.
1956 (attr_printf, check_attr_test, make_internal_attr,
1957 make_numeric_value): Move protypes into genattrtab.h. Define them
1958 as external.
1959 (num_dfa_decls): New global variable.
1960 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1961 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1962 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1963 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
1964
1965 * genautomata.c: New file.
1966
1967 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1968
1969 * sched-int.h: (curr_state): Add the external definition for
1970 automaton pipeline interface.
1971 (haifa_insn_data): Add comments for members blockage and units.
1972
1973 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1974 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1975 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1976 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1977 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1978 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1979 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1980 macros.
1981 (TARGET_SCHED): Use the new macros.
1982
1983 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1984 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1985 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1986 dfa_bubble): New members in gcc_target.sched.
1987
1988 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1989 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1990 (insn_queue): Redefine it as pointer to array.
1991 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1992 INSN_QUEUE_SIZE.
1993 (max_insn_queue_index_macro_value): New variable.
1994 (curr_state, dfa_state_size, ready_try): New varaibles for
1995 automaton interface.
1996 (ready_element, ready_remove, max_issue): New function prototypes
1997 for automaton interface.
1998 (choose_ready): New function prototype.
1999 (insn_unit, blockage_range): Add comments.
2000 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2001 FUNCTION_UNITS_SIZE == 0.
2002 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2003 actual_hazard, potential_hazard): Add comments.
2004 (insn_cost): Use cost -1 as undefined value. Remove
2005 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
2006 pipeline interface.
2007 (ready_element, ready_remove): New functions for automaton
2008 interface.
2009 (schedule_insn): Add new code for automaton pipeline interface.
2010 (queue_to_ready): Add new code for automaton pipeline interface.
2011 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2012 (debug_ready_list): Print newline when the queue is empty.
2013 (max_issue): New function for automaton pipeline interface.
2014 (choose_ready): New function.
2015 (schedule_block): Add new code for automaton pipeline interface.
2016 Print ready list before scheduling each insn.
2017 (sched_init): Add new code for automaton pipeline interface.
2018 Initiate insn cost by -1.
2019 (sched_finish): Free the current automaton state and finalize
2020 automaton pipeline interface.
2021
2022 * sched-rgn.c: Include target.h.
2023 (init_ready_list, new_ready, debug_dependencies): Add new code for
2024 automaton pipeline interface.
2025
2026 * sched-vis.c: Include target.h.
2027 (get_visual_tbl_length): Add code for automaton interface.
2028 (target_units, print_block_visualization): Add comments.
2029
2030 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2031 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2032 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2033 (getruntime.o, genautomata.o): New entries.
2034 (genattrtab.o): Add new dependency file genattrtab.h.
2035 (genattrtab): Add new dependencies. Link it with `libm.a'.
2036 (getruntime.o, hashtab.o): New entries for canadian cross.
2037
2038 * doc/md.texi: Description of automaton based model.
2039
2040 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2041 Add comments.
2042 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2043 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2044 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2045 TARGET_SCHED_DFA_POST_CYCLE_INSN,
2046 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2047 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2048 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2049 hook descriptions.
2050 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2051 MAX_DFA_ISSUE_RATE): New macro descriptions.
2052
2053 * doc/contrib.texi: Add dfa based scheduler contribution.
2054
2055 * doc/gcc.texi: Add more information about genattrtab.
2056
2057 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2058
2059 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2060 adjust_address_nv call.
2061
2062 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2063
2064 * doc/install.texi (Testing): Provide additional information, and
2065 a stronger encouragement, for running the testsuites.
2066
2067 2002-04-29 DJ Delorie <dj@redhat.com>
2068
2069 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2070 given in upper case.
2071
2072 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2073
2074 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2075 Solaris 2 <widec.h> if missing.
2076 * fixinc/fixincl.x: Regenerate.
2077 * fixinc/tests/base/widec.h: New file.
2078
2079 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2080
2081 * toplev.c (f_options): Add "profile" switch so that
2082 -fno-profile can be used to disable -p.
2083
2084 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2085
2086 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2087 UV2DImode.
2088 * tree.c (build_common_tree_nodes_2): Likewise.
2089 * tree.h (enum tree_index): Likewise.
2090 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2091
2092 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2093 entries.
2094 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2095 (ix86_expand_builtin): Add support for SSE2 builtins.
2096 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2097 (VALID_SSE_REG_MODE): Use it.
2098 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2099 (enum ix86_builtins): Add SSE2 builtins.
2100 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2101 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2102 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2103 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2104 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2105 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2106 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2107 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2108 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2109 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2110 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2111 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2112 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2113 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2114 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2115 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2116 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2117 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2118 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2119 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2120 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2121 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2122 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2123 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2124 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2125 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2126 lfence_insn): New patterns.
2127 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2128 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2129
2130 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2131
2132 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2133
2134 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2135
2136 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2137 Janis Johnson.
2138 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2139 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2140 and CPU instead of cpu.
2141
2142 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2143
2144 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2145 variables.
2146 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2147 (rest_of_compilation): Do if conversion only when asked for.
2148 (parse_options_and_default_flags): Set new variables to 1 for -O1
2149 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2150
2151 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2152
2153 * i386.c (dbx64_register_map): Fix typo.
2154
2155 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2156
2157 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2158 real_one_half, real_bb_freq_max): New static variables.
2159 (debug_profile_bbauxs): Kill.
2160 (process_note_predictions): Kill unused variable.
2161 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2162 volatile double.
2163 (propagate_freq): Use REAL_ARITHMETICS.
2164 (estimate_bb_frequencies): Likevise; init new static variables.
2165 * Makefile.in (predict.o): Add dependency on real.h
2166
2167 2002-04-28 David S. Miller <davem@redhat.com>
2168
2169 PR target/6500
2170 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2171 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2172 several {reads,writes} instead.
2173 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2174 Define.
2175
2176 2002-04-27 David S. Miller <davem@redhat.com>
2177
2178 PR target/6494
2179 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2180 of the stack bias.
2181
2182 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2183 including signal.h and sys/ucontext.h, not needed.
2184
2185 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2186
2187 * varasm.c (output_constant_def): Correct test for not calling
2188 ENCODE_SECTION_INFO for INTEGER_CST.
2189
2190 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2191
2192 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2193 keep most cases as function eval_token.
2194 (eval_token): New function.
2195 (_cpp_parse_expr): Read token here for improved diagnostics.
2196 Don't use op_as_text. Detect bad ':' here.
2197 (reduce): Don't detect bad ':' here.
2198 (op_as_text): Remove.
2199 * cpphash.h (_cpp_test_assertion): Change prototype.
2200 * cpplib.c (_cpp_test_assertion): Change prototype.
2201
2202 2002-04-28 Richard Henderson <rth@redhat.com>
2203
2204 PR c/5154
2205 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2206 (ggc_mark_rtx_children): New.
2207
2208 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2209
2210 PR target/6496
2211 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2212 after call peepholes for UltraSPARC.
2213 (call + jump 64-bit peepholes): Remove.
2214
2215 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2216
2217 PR c/6497
2218 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2219 result as temporary value.
2220
2221 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR c++/6396
2224 * toplev.c (rest_of_compilation): Only run regrename and copy
2225 propagation if optimizing.
2226
2227 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2228
2229 PR optimization/6475
2230 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2231 register of REGNO_DECL (i).
2232 * Makefile.in (reload1.o): Add $(TREE_H).
2233
2234 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2235
2236 * cppexp.c (lex): Update to use state.skip_eval.
2237 (struct op): Remove prio and flags members.
2238 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2239 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2240 (LEFT_ASSOC): New macro.
2241 (optab): New table of operator priorities and flags.
2242 (SHIFT): Update.
2243 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2244 malloc-ed parser stack.
2245 (reduce): New; reduce the operator stack.
2246 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2247 * cpphash.h (struct op): Predeclare.
2248 (struct cpp_reader): New members op_stack, op_limit.
2249 (struct lexer_state): New member skip_eval.
2250 (_cpp_parse_expr): Update.
2251 (_cpp_expand_op_stack): New.
2252 * cpplib.c (do_if): Update.
2253 * cppinit.c (cpp_create_reader): Create op stack.
2254 (cpp_destroy): And destroy it.
2255 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2256 (TTYPE_TABLE): Correct.
2257
2258 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2259
2260 PR c/6343
2261 * c-decl.c (duplicate_decls): Call merge_weak.
2262 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2263 * output.h (merge_weak): Prototype merge_weak.
2264 * varasm.c (merge_weak): New function.
2265 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2266 Mark RTL with SYMBOL_REF_WEAK.
2267
2268 2002-04-27 Kurt Garloff <garloff@suse.de>
2269
2270 * tree-inline.c (inlinable_function_p): Improve heuristics
2271 by using a smoother function to cut down allowable inlinable size.
2272 * param.def: Add parameters max-inline-insns-single,
2273 max-inline-slope, min-inline-insns that determine the exact
2274 shape of the above function.
2275 * param.h: Likewise.
2276
2277 2002-04-26 Richard Henderson <rth@redhat.com>
2278
2279 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2280 (yyoverflow): Re-add. Set them.
2281 (free_parser_stacks): New.
2282 * c-common.h: Declare it.
2283 * c-lex.c (c_common_parse_file): Call it.
2284
2285 2002-04-26 Richard Henderson <rth@redhat.com>
2286
2287 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2288 for fallthru search.
2289
2290 2002-04-26 Eric Christopher <echristo@redhat.com>
2291
2292 PR optimization/3700
2293 * config/mips/mips.c (mips_issue_rate): Define. New function.
2294 (TARGET_SCHED_ISSUE_RATE): Use.
2295
2296 2002-04-25 David S. Miller <davem@redhat.com>
2297
2298 PR target/6422
2299 * reorg.c (optimize_skip): Do not allow exception causing
2300 instructions to be considered for delay slots.
2301 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2302 (relax_delay_slots): Do not try to consider exception causing
2303 instructions as redundant.
2304
2305 2002-04-26 Richard Henderson <rth@redhat.com>
2306
2307 PR c/5225
2308 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2309
2310 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2311
2312 PR bootstrap/6445
2313 * config/i386/i386.md (untyped_call): Return the value in a float
2314 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2315 TARGET_80387.
2316
2317 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2318
2319 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2320 in unsigned-ness correctly.
2321
2322 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2323
2324 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2325 portable runtime model.
2326
2327 2002-04-26 Richard Henderson <rth@redhat.com>
2328
2329 * c-parse.in (yyoverflow): Revert.
2330
2331 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2332 Richard Henderson <rth@redhat.com>
2333
2334 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2335 result as temporary value.
2336
2337 2002-04-26 Richard Henderson <rth@redhat.com>
2338
2339 PR c/3581
2340 * c-common.c (fix_string_type): Split out of ...
2341 (combine_strings): ... here. Take a varray, not a tree list.
2342 (c_expand_builtin_printf): Use fix_string_type.
2343 * c-common.h: Update decls.
2344 * c-parse.in (string): Remove. Update all uses to use STRING
2345 instead, and not call combine_strings.
2346 (yylexstring): New.
2347 (_yylex): Use it.
2348 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2349 (build_asm_stmt): Likewise.
2350 * objc/objc-act.c (my_build_string): Use fix_string_type.
2351 (build_objc_string_object): Build varray for combine_strings.
2352
2353 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2354
2355 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2356 x86-64.
2357
2358 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2359
2360 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2361 (HAVE_NO_R_OPERAND): Remove.
2362 (HAVE_VALUE): Remove.
2363 (op_to_prio): Update.
2364 (UNARY): Don't alter flags.
2365 (_cpp_parse_expr): want_value used to indicate whether
2366 a number or unary operator is expected next. Distinguish
2367 unary and binary +/-.
2368 (op_as_text): Update for unary operators.
2369
2370 2002-04-25 Richard Henderson <rth@redhat.com>
2371
2372 PR c/2161
2373 * c-parse.in (yyoverflow): New.
2374
2375 2002-04-25 Richard Henderson <rth@redhat.com>
2376
2377 PR c/2098
2378 * c-common.c (shorten_compare): Simplfy conditions leading to
2379 the generation of a warning.
2380
2381 2002-04-25 Richard Henderson <rth@redhat.com>
2382
2383 PR c/2035
2384 * expmed.c (extract_bit_field): Fall through to generic code rather
2385 than aborting on subreg special case.
2386
2387 2002-04-25 David S. Miller <davem@redhat.com>
2388
2389 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2390 for DECL being NULL.
2391
2392 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2393
2394 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2395
2396 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2397
2398 * c-decl.c (grokdeclarator): Remove outdated ??? note
2399 on invalid declaration of flexible array members.
2400
2401 2002-04-25 Richard Henderson <rth@redhat.com>
2402
2403 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2404
2405 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2406
2407 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2408 needed by the compiler, even if they are used as global regs.
2409
2410 2002-04-25 Matt Hiller <hiller@redhat.com>
2411
2412 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2413 functions.
2414 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2415 of the corresponding functions.
2416 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2417 New prototypes.
2418
2419 2002-04-25 Matt Hiller <hiller@redhat.com>
2420
2421 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2422
2423 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2424 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2425 registers, adjust comment accordingly.
2426 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2427 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2428 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2429 for coprocessor registers.
2430 (ADDITIONAL_REGISTER_NAMES): Include
2431 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2432
2433 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2434 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2435 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2436 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2437 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2438
2439 (mips_char_to_class): Adjust comment to include coprocessor
2440 constraint letters.
2441
2442 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2443 New functions.
2444 (mips_reg_names, mips_regno_to_class): Include coprocessor
2445 information.
2446 (mips_sw_reg_names): Ditto, make non-static.
2447 (mips_move_1word): Handle moves to and from coprocessor registers.
2448 (mips_move_2words): Handle moves to and from coprocessor
2449 registers.
2450 (mips_class_max_nregs, mips_register_move_cost): Handle
2451 coprocessor register classes.
2452 (override_options): Initialize mips_char_to_class and
2453 mips_hard_regno_mode_ok properly for coprocessor registers.
2454
2455 * config/mips/mips.md (movdi_internal, movdi_internal2,
2456 movsi_internal1, movsi_internal2): Add constraint-sets for
2457 coprocessor registers.
2458 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2459 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2460 isn't mips.
2461 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2462 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2463 isn't mips.
2464 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2465 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2466 isn't mips.
2467 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2468 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2469 isn't mips.
2470
2471 * doc/tm.texi: Document feature.
2472
2473 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2474
2475 * integrate.c (function_attribute_inlinable_p): Simplify.
2476 Check the table pointer is not NULL.
2477
2478 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2479
2480 * doc/c-tree.texi: Fix typo in introduction.
2481
2482 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2483
2484 * c-common.h (c_common_parse_file): Update.
2485 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2486 * c-lex.c (YYDEBUG): Get from c-lex.h.
2487 (c_common_parse_file): Update.
2488 * c-lex.h (YYDEBUG, yydebug): New.
2489 * c-parse.in (YYDEBUG): Get from c-lex.h.
2490 (c_set_yydebug): Remove.
2491 * c-tree.h (c_set_yydebug): Remove.
2492 * langhooks-def.h (lhd_do_nothing_i): New.
2493 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2494 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2495 * langhooks.c (lhd_do_nothing_i): New.
2496 (lhd_set_yydebug): Remove.
2497 * langhooks.h (struct lang_hooks): Update.
2498 * toplev.c (set_yydebug): New.
2499 (compile_file): Update call to parse_file hook.
2500 (decode_d_option): Update.
2501 objc:
2502 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2503
2504 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2505
2506 * loop.c (load_mems): Don't change the interface of called functions.
2507
2508 * calls.c (expand_call): Take current_function_pretend_args_size
2509 into account when setting argblock for sibcalls.
2510
2511 2002-04-24 Matt Hiller <hiller@redhat.com>
2512
2513 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2514 * c-lex.c: Ditto.
2515
2516 * cpplex.c (skip_line_comment): Process comment one multibyte
2517 character at a time rather than one char at a time, if
2518 appropriate.
2519 (parse_string): Process string one multibyte character at a time
2520 rather than one char at a time, if appropriate.
2521 * c-lex.c (lex_string): Lex and copy multibyte strings
2522 appropriately.
2523 * cpplib.h (cppchar_t): Change to unsigned.
2524
2525 2002-04-24 Richard Henderson <rth@redhat.com>
2526
2527 PR c/3467
2528 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2529 for c99.
2530
2531 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2532
2533 * sh.c (sh_va_arg): If argument was passed by reference,
2534 dereference the pointer.
2535
2536 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2537
2538 * sh.md (divsi3_i4_media): Use match_operand for input values
2539 rather than hard registers.
2540 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2541 unnecessarily through hard registers. Keep copies of pseudo
2542 registers outside of the libcall sequence.
2543
2544 * sh.md (casesi_shift_media): Add modes.
2545
2546 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2547 values in memory.
2548
2549 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2550
2551 * attribs.c (c_common_attribute_table): Move table and handlers
2552 to c-common.c.
2553 (format_attribute_table, lang_attribute_table,
2554 lang_attribute_common): Remove.
2555 (init_attributes): Replace NULL pointers with pointers to the
2556 empty table.
2557 (handle_packed_attribute, handle_nocommon_attribute,
2558 handle_common_attribute, handle_noreturn_attribute,
2559 handle_noinline_attribute, handle_always_inline_attribute,
2560 handle_used_attribute, handle_unused_attribute,
2561 handle_const_attribute, handle_transparent_union_attribute,
2562 handle_constructor_attribute, handle_destructor_attribute,
2563 handle_mode_attribute, handle_section_attribute,
2564 handle_aligned_attribute, handle_weak_attribute,
2565 handle_alias_attribute, handle_visibility_attribute,
2566 handle_no_instrument_function_attribute, handle_malloc_attribute,
2567 handle_no_limit_stack_attribute, handle_pure_attribute,
2568 handle_deprecated_attribute, handle_vector_size_attribute,
2569 vector_size_helper): Move to c-common.c.
2570 * c-common.c (c_common_attribute_table,
2571 handle_packed_attribute, handle_nocommon_attribute,
2572 handle_common_attribute, handle_noreturn_attribute,
2573 handle_noinline_attribute, handle_always_inline_attribute,
2574 handle_used_attribute, handle_unused_attribute,
2575 handle_const_attribute, handle_transparent_union_attribute,
2576 handle_constructor_attribute, handle_destructor_attribute,
2577 handle_mode_attribute, handle_section_attribute,
2578 handle_aligned_attribute, handle_weak_attribute,
2579 handle_alias_attribute, handle_visibility_attribute,
2580 handle_no_instrument_function_attribute, handle_malloc_attribute,
2581 handle_no_limit_stack_attribute, handle_pure_attribute,
2582 handle_deprecated_attribute, handle_vector_size_attribute,
2583 vector_size_helper): Move from attribs.c.
2584 * c-common.h (c_common_attribute_table,
2585 c_common_format_attribute_table): New.
2586 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2587 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2588 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2589 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2590 (LANG_HOOKS_INITIALIZER): Update.
2591 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2592 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2593 * target.h: Update comment.
2594 * tree.c (default_target_attribute_table): Remove.
2595 * tree.h (default_target_attribute_table, format_attribute_table,
2596 lang_attribute_table, lang_attribute_common): Remove.
2597 objc:
2598 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2599 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2600
2601 2002-04-24 Jason Merrill <jason@redhat.com>
2602
2603 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2604 * dwarf2out.c (dwarf_attr_name): Support it.
2605 (gen_array_type_die): Emit it.
2606 (lookup_type_die): No special handling for VECTOR_TYPE.
2607 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2608
2609 2002-04-24 Richard Henderson <rth@redhat.com>
2610
2611 * config/mips/mips.md (movdi_usd): Renumber.
2612
2613 2002-04-24 David S. Miller <davem@redhat.com>
2614
2615 PR target/6420
2616 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2617 32-bit Sparc and current_function_returns_struct is true.
2618
2619 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2620
2621 * loop.c (canonicalize_condition): Use gen_int_mode.
2622
2623 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
2624
2625 * config/rs6000/altivec.h: Cleanup file. Add non individual
2626 variants.
2627 (vec_vaddubm): New.
2628 (vec_vadduhm): New.
2629 (vec_vadduwm): New.
2630 (vec_vaddfp): New.
2631 (vec_vaddcuw): New.
2632 (vec_vaddubs): New.
2633 (vec_vaddsbs): New.
2634 (vec_vadduhs): New.
2635 (vec_vadduws): New.
2636 (vec_vaddsws): New.
2637 (vec_vand): New.
2638 (vec_vandc): New.
2639 (vec_vavgub): New.
2640 (vec_vavgsb): New.
2641 (vec_vavguh): New.
2642 (vec_vavgsh): New.
2643 (vec_vavguw): New.
2644 (vec_vavgsw): New.
2645 (vec_vrfip): New.
2646 (vec_vcmpbfp): New.
2647 (vec_vcmpequb): New.
2648 (vec_vcmpequh): New.
2649 (vec_vcmpequw): New.
2650 (vec_vcmpeqfp): New.
2651 (vec_vcmpgefp): New.
2652 (vec_vcmpgtub): New.
2653 (vec_vcmpgtsb): New.
2654 (vec_vcmpgtuh): New.
2655 (vec_vcmpgtsh): New.
2656 (vec_vcmpgtuw): New.
2657 (vec_vcmpgtsw): New.
2658 (vec_vcmpgtfp): New.
2659 (vec_vcmpgefp): New.
2660 (vec_vcfux): New.
2661 (vec_vcfsx): New.
2662 (vec_vctsxs): New.
2663 (vec_vctuxs): New.
2664 (vec_vexptefp): New.
2665 (vec_vrfim): New.
2666 (vec_lvx): New.
2667 (vec_lvebx): New.
2668 (vec_lvehx): New.
2669 (vec_lde): Add vector float variant.
2670 (vec_lvewx): New.
2671 (vec_lvxl): New.
2672 (vec_vlogefp): New.
2673 (vec_vmaddfp): New.
2674 (vec_vmhaddshs): New.
2675 (vec_vmaxub): New.
2676 (vec_vmaxsb): New.
2677 (vec_vmaxuh): New.
2678 (vec_vmaxsh): New.
2679 (vec_vmaxuw): New.
2680 (vec_vmaxsw): New.
2681 (vec_vmaxsw): New.
2682 (vec_vmaxfp): New.
2683 (vec_vmrghb): New.
2684 (vec_vmrghh): New.
2685 (vec_vmrghw): New.
2686 (vec_vmrglb): New.
2687 (vec_vmrglh): New.
2688 (vec_vmrglw): New.
2689 (vec_vminub): New.
2690 (vec_vminsb): New.
2691 (vec_vminuh): New.
2692 (vec_vminsh): New.
2693 (vec_vminuw): New.
2694 (vec_vminsw): New.
2695 (vec_vminfp): New.
2696 (vec_vmladduhm): New.
2697 (vec_vmhraddshs): New.
2698 (vec_msumubm): New.
2699 (vec_vmsummbm): New.
2700 (vec_vmsumuhm): New.
2701 (vec_vmsumshm): New.
2702 (vec_vmsumuhs): New.
2703 (vec_vmsumshs): New.
2704 (vec_vmuleub): New.
2705 (vec_vmulesb): New.
2706 (vec_vmuleuh): New.
2707 (vec_vmulesh): New.
2708 (vec_vmuloub): New.
2709 (vec_mulosb): New.
2710 (vec_vmulouh): New.
2711 (vec_vmulosh): New.
2712 (vec_vnmsubfp): New.
2713 (vec_vnor): New.
2714 (vec_vor): New.
2715 (vec_vpkuhum): New.
2716 (vec_vpkuwum): New.
2717 (vec_vpkpx): New.
2718 (vec_vpkuhus): New.
2719 (vec_vpkshss): New.
2720 (vec_vpkuwus): New.
2721 (vec_vpkswss): New.
2722 (vec_vpkshus): New.
2723 (vec_vpkswus): New.
2724 (vec_vperm): New.
2725 (vec_vrefp): New.
2726 (vec_vrlb): New.
2727 (vec_vrlh): New.
2728 (vec_vrlw): New.
2729 (vec_vrfin): New.
2730 (vec_vrsqrtefp): New.
2731 (vec_vsel): New.
2732 (vec_vslb): New.
2733 (vec_vslh): New.
2734 (vec_vslw): New.
2735 (vec_vsldoi): New.
2736 (vec_vsl): New.
2737 (vec_vslo): New.
2738 (vec_vspltb): New.
2739 (vec_vsplth): New.
2740 (vec_vspltw): New.
2741 (vec_vspltisb): New.
2742 (vec_vspltish): New.
2743 (vec_vspltisw): New.
2744 (vec_vsrb): New.
2745 (vec_vsrh): New.
2746 (vec_vsrw): New.
2747 (vec_vsrab): New.
2748 (vec_vsrah): New.
2749 (vec_vsraw): New.
2750 (vec_vsr): New.
2751 (vec_vsro): New.
2752 (vec_stvx): New.
2753 (vec_stvebx): New.
2754 (vec_stvehx): New.
2755 (vec_stvewx): New.
2756 (vec_stvxl): New.
2757 (vec_vsububm): New.
2758 (vec_vsubuhm): New.
2759 (vec_vsubuwm): New.
2760 (vec_vsubfp): New.
2761 (vec_vsubcuw): New.
2762 (vec_vsububs): New.
2763 (vec_vsubsbs): New.
2764 (vec_vsubuhs): New.
2765 (vec_vsubshs): New.
2766 (vec_vsubuws): New.
2767 (vec_vsubsws): New.
2768 (vec_vsum4ubs): New.
2769 (vec_vsum4sbs): New.
2770 (vec_vsum4shs): New.
2771 (vec_vsum2sws): New.
2772 (vec_vsumsws): New.
2773 (vec_vrfiz): New.
2774 (vec_vupkhsb): New.
2775 (vec_vupkhpx): New.
2776 (vec_vupkhsh): New.
2777 (vec_vupklsb): New.
2778 (vec_vupklpx): New.
2779 (vec_vupklsh): New.
2780 (vec_vxor): New.
2781
2782 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
2783
2784 PR c/5430
2785 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2786 added literals from substracted literals.
2787 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2788 (fold) [associate]: Preserve MINUS_EXPR if needed.
2789
2790 2002-04-23 Zack Weinberg <zack@codesourcery.com>
2791
2792 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2793 are obsoleted.
2794
2795 2002-04-23 Tom Tromey <tromey@redhat.com>
2796
2797 * gcc.c: Added --resource. For PR java/6314.
2798
2799 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2800
2801 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2802 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2803 these libraries.
2804
2805 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2806
2807 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2808
2809 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2810
2811 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2812 workaround.
2813 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2814 (ix86_expand_clrstr): Fix typo.
2815 * loop.c (gen_load_of_final_value): New.
2816 (loop_givs_rescan, strength_reduce, check_dbra_loop):
2817 Use it.
2818
2819 2002-04-23 Roger Sayle <roger@eyesopen.com>
2820
2821 * builtins.c (builtin_memset_gen_str): New function.
2822 (expand_builtin_memset): Optimize the case of constant length, but
2823 unknown value.
2824
2825 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
2826
2827 * config/rs6000/altivec.h (vec_step): Remove extraneous
2828 parentheses.
2829 (vec_ctu): Cast return.
2830
2831 2002-04-23 Alan Modra <amodra@bigpond.net.au>
2832
2833 PR target/6413
2834 * function.h: (struct function): Add profile_label_no field.
2835 (current_function_profile_label_no): Define.
2836 * function.c: (profile_label_no): New static var.
2837 (expand_function_start): Increment it, and copy to
2838 current_function_profile_label_no.
2839 * output.h (profile_label_no): Delete.
2840 * final.c (profile_label_no): Delete.
2841 (profile_function): Use current_function_profile_label_no.
2842 (final_end_function): Don't increment profile_label_no here.
2843 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2844 profile_label_no with current_function_profile_label_no.
2845 * config/pa/pa.c (current_function_number): Delete.
2846 (pa_output_function_prologue): Don't output profile label here.
2847 (hppa_profile_hook): Use label_no param rather than
2848 current_function_number.
2849 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2850 * config/pa/pa.h: .. here.
2851 (FUNCTION_PROFILER): Output profile label here.
2852
2853 2002-04-22 Eric Christopher <echristo@redhat.com>
2854
2855 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
2856 patch of 2002-04-09 due to binutils issues.
2857 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
2858
2859 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2860
2861 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2862 constraint to 'o' for m=r and r=m alternatives.
2863 ("*movv8hi_internal1"): Same.
2864 ("*movv16qi_internal1"): Same.
2865 ("*movv4sf_internal1"): Same.
2866
2867 2002-04-22 Janis Johnson <janis187@us.ibm.com>
2868
2869 * rtl.h (RTX_FLAG): New macro.
2870 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
2871 * final.c (alter_subreg): Use macro to access rtx flag.
2872 * integrate.c (copy_rtx_and_substitute): Use new access macro.
2873 * print-rtl.c (print_rtx): Use new access macro.
2874
2875 * cse.c (insert): Check rtx code before accessing flag.
2876
2877 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
2878 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
2879 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
2880 convert_const_symbol_ref, make_canonical, make_alternative_compare,
2881 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
2882 simplify_test_exp, optimize_attrs, simplify_by_exploding,
2883 find_and_mark_used_attributes, unmark_used_attributes,
2884 add_values_to_cover, simplify_with_current_value,
2885 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
2886 copy_rtx_unchanging, main): Use new access macros.
2887
2888 2002-04-22 Tom Rix <trix@redhat.com>
2889
2890 * expmed.c (init_expmed): Generate shifted constant once.
2891
2892 2002-04-22 Zack Weinberg <zack@codesourcery.com>
2893
2894 * c-lex.c (lex_charconst): Call convert to get constant in
2895 proper type; don't just smash the type field.
2896 Fixes PR c/6300.
2897
2898 * config.gcc: Add list of obsolete configurations. Disallow
2899 building these without --enable-obsolete.
2900 * doc/install.texi: Document --enable-obsolete and obsoletion
2901 policy. Mention obsoletion of individual targets in
2902 appropriate places.
2903
2904 2002-04-22 Richard Henderson <rth@redhat.com>
2905
2906 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2907
2908 2002-04-22 Mark Mitchell <mark@codesourcery.com>
2909
2910 PR f/6138.
2911 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2912 (walk_fixup_memory_subreg): Likewise.
2913 (fixup_var_refs_insn): Adjust accordingly.
2914 (fixup_var_refs_1): Likewise.
2915
2916 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
2917
2918 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2919 LIBPATH_ARCH64_SPEC): Define.
2920 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2921 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2922 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2923 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2924
2925 2002-04-22 Joel Sherrill <joel@OARcorp.com>
2926
2927 * gthr-rtems.h: Correct prototypes to remove warnings.
2928
2929 2002-04-22 Richard Henderson <rth@redhat.com>
2930
2931 PR c/6344
2932 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2933
2934 * gcse.c (free_insn_expr_list_list): New.
2935 (clear_modify_mem_tables): Use it. Fix bit set usage.
2936 (canon_list_insert): Use EXPR_LISTs for expressions.
2937 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2938
2939 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
2940
2941 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
2942 file change and include code to _cpp_pop_buffer.
2943 * cpphash.h (struct pending_option): Predeclare.
2944 (struct cpp_reader): New member next_include_file.
2945 (_cpp_pop_file_buffer): Update.
2946 (_cpp_push_next_buffer): Update, rename.
2947 * cppinit.c (cpp_destroy): Free include chain and pending here.
2948 (cpp_finish_options): Simplify.
2949 (_cpp_push_next_buffer): Rename and clean up.
2950 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2951 Clarify.
2952 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2953
2954 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2955
2956 * config/rs6000/altivec.h (vec_xor): Add variant for both args
2957 being vector signed int.
2958 (vec_andc): Same.
2959 (vec_xor): Add variant for both args being vector signed char.
2960 Remove redundant variant.
2961 (vec_andc): Same.
2962
2963 2002-04-21 David S. Miller <davem@redhat.com>
2964
2965 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2966 compare mode in output RTL.
2967
2968 2002-04-22 David Edelsohn <edelsohn@gnu.org>
2969
2970 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2971 style and formatting of previous patch.
2972
2973 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2974
2975 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2976 flag_pic for ABI_AIX.
2977
2978 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2979
2980 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2981 * cppfiles.c (read_include_file): Similarly.
2982 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2983 uxstrdup ustrchr, ufputs): Similarly.
2984 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2985 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2986 cpp_ideq, parse_identifier, parse_number): Similarly.
2987 * cpplib.c (struct directive, dequote_string, D, run_directive,
2988 cpp_push_buffer): Similarly.
2989 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2990 _cpp_create_definition, check_trad_stringification,
2991 cpp_macro_definition): Similarly.
2992
2993 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2994
2995 * cppmacro.c (funlike_invocation_p): Don't step back
2996 over CPP_EOF.
2997
2998 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2999
3000 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3001 labelno.
3002
3003 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
3004
3005 * doc/invoke.texi: Remove Chill references.
3006 * doc/gcc.texi: Update last modified date.
3007
3008 2002-04-20 Kazu Hirata <kazu@hxi.com>
3009
3010 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3011 push and pop. Replace add.l with add.w.
3012
3013 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3014
3015 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3016 multiply instructions for H8/300H case.
3017
3018 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3019
3020 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3021 Bum three instructions from each routine.
3022
3023 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
3024
3025 * Makefile.in: Update.
3026 * decl.c (push_c_function_context, pop_c_function_context,
3027 mark_c_function_context): Rename for consistency.
3028 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3029 * c-tree.h (push_c_function_context, pop_c_function_context,
3030 mark_c_function_context): Rename for consistency.
3031 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3032 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3033 * function.c (init_lang_status, save_lang_status,
3034 restore_lang_status, mark_lang_status, free_lang_status):
3035 Move to langhooks.h.
3036 (push_function_context_to, pop_function_context_from,
3037 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3038 Update.
3039 * function.h (init_lang_status, save_lang_status,
3040 restore_lang_status, mark_lang_status, free_lang_status):
3041 Move to langhooks.h.
3042 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3043 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3044 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3045 LANG_HOOKS_FUNCTION_INITIALIZER): New.
3046 (LANG_HOOKS_INITIALIZER): Update.
3047 (lhd_do_nothing_f): New.
3048 * langhooks.h (struct lang_hooks_for_functions): New.
3049 (struct lang_hooks): New hooks.
3050 * langhooks.c (lhd_do_nothing_f): New.
3051 objc:
3052 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3053 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3054
3055 2002-04-19 David S. Miller <davem@redhat.com>
3056
3057 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3058 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3059
3060 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3061
3062 PR optimization/3756
3063 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3064 x = ((int) y < 0) ? cst1 : cst2.
3065
3066 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR c/6358
3069 * function.c: Reapply patch for c/6358.
3070 (expand_function_end): Copy decl_rtl's mode, not
3071 current_function_return_rtx mode.
3072
3073 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3074
3075 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3076 targets.
3077
3078 2002-04-19 Tom Tromey <tromey@redhat.com>
3079
3080 * doc/install.texi (Specific): Update status of Solaris 2.8.
3081 For PR libgcj/6158.
3082
3083 2002-04-19 Andreas Schwab <schwab@suse.de>
3084
3085 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3086 (PUT_REAL): Restore old definition.
3087
3088 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3089 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3090
3091 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3092 binutils 2.11.2 and higher generate smaller binaries than Sun's
3093 native tools.
3094
3095 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3096
3097 PR c++/6352
3098 * toplev.c (rest_of_compilation): Do not defer functions for which
3099 TREE_SYMBOL_REFERENCED has already been set.
3100
3101 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3102
3103 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3104 alternative.
3105
3106 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3107
3108 * builtins.c: Include langhooks.h.
3109 (lang_type_promotes_to): Remove.
3110 (expand_builtin_va_arg): Use new hook.
3111 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3112 (simple_type_promotes_to): Move to c-typeck.c.
3113 * c-common.h (simple_type_promotes_to): Remove.
3114 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3115 * c-format.c: Include langhooks.h.
3116 (check_format_types): Update.
3117 * c-tree.h (c_type_promotes_to): New.
3118 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3119 (type_lists_compatible_p): Update.
3120 * langhooks-def.h (lhd_type_promotes_to): New.
3121 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3122 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3123 * langhooks.c (lhd_type_promotes_to): New.
3124 * langhooks.h (struct lang_hooks_for_types): New hook.
3125 * tree.h (lang_type_promotes_to): Remove.
3126 objc:
3127 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3128
3129 2002-04-18 Richard Henderson <rth@redhat.com>
3130
3131 * function.c: Revert patch for c/6358.
3132
3133 2002-04-18 Richard Henderson <rth@redhat.com>
3134
3135 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3136 blocks. Handle multiple references to the TRAP block. Handle
3137 non-adjacent THEN and OTHER blocks.
3138
3139 2002-04-18 Richard Henderson <rth@redhat.com>
3140
3141 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3142 crash with no type for by-mode libcalls.
3143
3144 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3145
3146 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3147
3148 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3149 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3150 the register windows.
3151
3152 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3153
3154 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3155 appropriate. Document need for extended precision even when
3156 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3157 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3158 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3159 instead of relying on later syntax error when REAL_WIDTH > 5.
3160 * real.c: Define NE based only on whether or not we have a
3161 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3162 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3163 define GET_REAL and PUT_REAL as simple memcpy operations; no
3164 need to byteswap or round.
3165 Use #error instead of #ifdef-ing out the entire file, for
3166 prompt error detection.
3167
3168 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3169
3170 2002-04-18 David S. Miller <davem@redhat.com>
3171
3172 * config/sparc/sparc.h (BRANCH_COST): Define.
3173
3174 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3175 does it.
3176
3177 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3178
3179 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3180 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3181 propagate_block calls after relaxation loop using new variable
3182 stabilized_prop_flags.
3183
3184 2002-04-18 Richard Henderson <rth@redhat.com>
3185
3186 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3187 (ia64_va_arg): Expect variable sized types by reference.
3188 * config/ia64/ia64-protos.h: Update.
3189 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3190 ia64_function_arg_pass_by_reference.
3191
3192 2002-04-18 Richard Henderson <rth@redhat.com>
3193
3194 * ifcvt.c: Include except.h.
3195 (block_has_only_trap): Break out from find_cond_trap.
3196 (find_cond_trap): Use it. Always delete the trap block.
3197 (merge_if_block): Allow then block null. Be less simplistic about
3198 what insns can end a block.
3199 * Makefile.in (ifcvt.o): Depend on except.h.
3200
3201 * config/ia64/ia64.md (trap, conditional_trap): New.
3202
3203 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3204
3205 PR c/6358
3206 * function.c (assign_parms): Assign hard current_function_return_rtx
3207 register here...
3208 (expand_function_end): ...not here.
3209
3210 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3211
3212 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3213 * c-tree.h (c_incomplete_type_error): New.
3214 * c-typeck.c (require_complete_type, build_component_ref): Update.
3215 (incomplete_type_error): Rename.
3216 * langhooks-def.h (lhd_incomplete_type_error): New.
3217 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3218 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3219 * langhooks.c (lhd_incomplete_type_error): New.
3220 * langhooks.h (struct lang_hooks_for_types): New hook.
3221 * tree.c (size_in_bytes): Use new hook.
3222 * tree.h (incomplete_type_error): Remove.
3223 objc:
3224 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3225
3226 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3227
3228 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3229 TARGET_FLOAT_FORMAT blocks.
3230
3231 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3232
3233 * doc/install.texi (Downloading the source): Do not mention Chill
3234 any longer, but mention Ada.
3235 (Configuration): Do not mention Chill any longer.
3236
3237 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3238
3239 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3240
3241 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3242
3243 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3244 in last patch.
3245
3246 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3247
3248 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3249 instead of unsigned_type.
3250
3251 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3252
3253 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3254 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3255 later.
3256
3257 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3258
3259 * attribs.c (vector_type_node_list): New static variable.
3260 (handle_vector_size_attribute): Use it to avoid generating a
3261 new type node each time we are called.
3262
3263 * combine.c (subst): Avoid trying to make a vector mode subreg of
3264 an integer constant.
3265 (gen_lowpart_for_combine): Likewise.
3266
3267 2002-04-18 Roger Sayle <roger@eyesopen.com>
3268 Jakub Jelinek <jakub@redhat.com>
3269
3270 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3271 for integer constant c (if x has unsigned type or sign bit is not
3272 set in c). This folds the zero/sign extension into the bit-wise and
3273 operation.
3274
3275 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3276
3277 PR middle-end/6205
3278 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3279 otherwise xorps.
3280
3281 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3282
3283 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3284
3285 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3286
3287 * gcc.c (read_specs): Detect and fail if an attempt is made to
3288 rename a spec string to an already existing string.
3289
3290 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3291
3292 * config/s390/s390.c (legitimize_pic_address): Do not generate
3293 illegal address constant without CONST.
3294
3295 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3296
3297 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3298 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3299
3300 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3301
3302 PR optimization/6305
3303 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3304 to make sure previous reloads are taken into account. Generate
3305 better code if one operand is an in-range immediate constant.
3306
3307 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3308
3309 * doc/install.texi (Building): libgcj requires GNU make.
3310
3311 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3312
3313 PR bootstrap/6315
3314 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3315 even if hard quad and register is not floating.
3316 (movtf reg<-mem split): Disallow splitting if hard quad and
3317 register is floating.
3318 (movtf mem<-reg split): Likewise.
3319 * config/sparc/sparc.c (fp_register_operand): New predicate.
3320 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3321
3322 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3323
3324 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3325 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3326 (unprotoize.o): Ditto. Build from protoize.c. Define
3327 UNPROTOIZE on command line.
3328 * protoize.c: Include cppdefault.h. Delete include_defaults.
3329 (in_system_include_dir): Use cpp_include_defaults (defined in
3330 cppdefault.o).
3331 * unprotoize.c: Delete file.
3332
3333 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3334
3335 * config/rs6000/altivec.h (vec_ld): Add array variants.
3336 (vec_lde): Same.
3337 (vec_ldl): Same.
3338
3339 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3340 Aldy Hernandez <aldyh@redhat.com>
3341
3342 * config/rs6000/altivec.h: Define __ALTIVEC__.
3343 (bool): New.
3344 (__pixel): New.
3345 (pixel): New.
3346 (vec_cfux): New.
3347 (vec_vmaddfp): New.
3348 (vec_vsldoi): New.
3349 Add parentheses to all macro arguments.
3350
3351 2002-04-16 Richard Henderson <rth@redhat.com>
3352
3353 PR c++/6320
3354 * except.c (remove_eh_handler): Insert inner regions at beginning
3355 of sibling chain. Refactor expressions.
3356
3357 2002-04-16 Richard Henderson <rth@redhat.com>
3358
3359 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3360 * config/sparc/sol2-gas-bi.h: New file.
3361 * config.gcc (sparc*-solaris): Add it as needed.
3362 * configure.in (AS_SPARC64_FLAG): Remove check.
3363 * config.in, configure: Regenerate.
3364
3365 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3366
3367 2002-04-16 Richard Henderson <rth@redhat.com>
3368
3369 * config/mips/mips.c (override_options): Don't override N32 for
3370 a 64-bit ISA.
3371
3372 PR 6202
3373 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3374 (HILO_delay): Set can_delay false.
3375
3376 2002-04-16 Dale Johannesen <dalej@apple.com>
3377
3378 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3379 instruction addresses.
3380 (rs6000_output_function_epilogue): Likewise.
3381
3382 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3383
3384 * c-parse.in (poplevel, compstmt_start,
3385 compstmt_primary_start): Add ending ';', in accordance
3386 with POSIX.
3387
3388 2002-04-16 Richard Henderson <rth@redhat.com>
3389
3390 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3391 Adjust tm_file order to get TARGET_DEFAULT set properly.
3392 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3393 * doc/install.texi (sparc-solaris): Update.
3394
3395 2002-04-16 Dale Johannesen <dalej@apple.com>
3396
3397 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3398 comparison operands do not match each other or if modes of
3399 conditions do not match result.
3400
3401 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3402
3403 PR target/6305
3404 * config/s390/s390.md (mulsidi3): Set both subregs of the
3405 multiword register.
3406
3407 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3408
3409 * config/rs6000/altivec.h (vec_addc): Type check.
3410
3411 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3412
3413 PR middle-end/6279
3414 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3415
3416 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3417
3418 2002-04-15 Richard Henderson <rth@redhat.com>
3419
3420 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3421 call_really_used_regs too.
3422
3423 2002-04-15 Richard Henderson <rth@redhat.com>
3424
3425 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3426
3427 2002-04-15 David S. Miller <davem@redhat.com>
3428
3429 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3430 as being CLOBBERed.
3431
3432 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR c/6290
3435 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3436 CONST_VECTOR is { 0, ... 0 }.
3437
3438 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3439
3440 * doc/install.texi (Installing GCC: Configuration): Clarify
3441 the only supported ways to configure gcc.
3442
3443 2002-04-15 Roland McGrath <roland@frob.com>
3444
3445 * config.gcc (alpha*-*-gnu*): New target configuration.
3446 * config/alpha/gnu.h: New file for it.
3447 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3448
3449 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3450
3451 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3452 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3453 * tree.h (expand_start_stmt_expr): Update prototype.
3454 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3455 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3456 on the STMT_EXPR created for the inline function.
3457
3458 2002-04-15 Richard Henderson <rth@redhat.com>
3459
3460 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3461 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3462 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3463 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3464 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3465 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3466 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3467 Define __gnu_linux__, not gnu_linux.
3468 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3469
3470 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3471
3472 Remove Chill front end.
3473 * gcc.c (default_compilers): Remove Chill entries.
3474 * ch: Remove directory.
3475 * doc/frontends.texi: Remove information about Chill.
3476 * doc/sourcebuild.texi: Likewise.
3477 * doc/standards.texi: Likewise.
3478
3479 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3480
3481 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3482 (LONGLONG_STANDALONE): Define.
3483
3484 2002-04-15 David S. Miller <davem@redhat.com>
3485
3486 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3487 Call emit_library_call with LCT_NORMAL.
3488 (sparc_initialize_trampoline): Use LCT_foo instead of
3489 magic constant in emit_library_call invocations.
3490 (sparc64_initialize_trampoline): Likewise.
3491 (sparc_profile_hook): Likewise.
3492 * config/sparc/sparc.md: Likewise.
3493
3494 * config/sparc/sparc.c (sparc_extra_constraint_check):
3495 Fix type of argument 'c'.
3496 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3497 Likewise.
3498
3499 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3500
3501 * diagnostic.h (output_buffer_state): Redefine.
3502 (output_format_decoder): New macro.
3503 (output_prefixing_rule): Likewise.
3504 (output_line_cutoff): Likewise.
3505 (diagnostic_format_decoder): Adjust.
3506 (diagnostic_prefixing_rule): Likewise.
3507 (diagnostic_line_cutoff): Likewise.
3508 (diagnostic_state): Likewise.
3509 (diagnostic_kind_count): Likewise.
3510 (diagnostic_buffer): Now a macro.
3511
3512 * diagnostic.c (diagnostic_buffer): Remove definition.
3513 (output_is_line_wrapping): Adjust.
3514 (set_real_maximum_length): Likewise.
3515 (output_set_maximum_length): Likewise.
3516 (init_output_buffer): Likewise.
3517 (lhd_print_error_function): Likewise.
3518 (output_do_verbatim): Likewise.
3519
3520 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3521
3522 * cpperror.c (print_location): Don't print include chain
3523 if line == 0.
3524 (cpp_begin_message): Update to use DL_ macros.
3525 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3526 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3527 cpp_notice, cpp_notice_from_errno): Remove.
3528 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3529 level.
3530 (cpp_errno): New.
3531 * cppexp.c (CPP_ICE): Remove.
3532 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3533 lex, integer_overflow, _cpp_parse_expr): Update.
3534 * cppfiles.c (read_include_file, find_include_file,
3535 handle_missing_header, _cpp_read_file, remap_filename): Update.
3536 * cpphash.h (enum error_type): Remove.
3537 (_cpp_begin_message): Update.
3538 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3539 cpp_handle_option, cpp_post_options): Update.
3540 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3541 skip_whitespace, parse_identifier, parse_slow, parse_string,
3542 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3543 cpp_interpret_charconst): Update.
3544 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3545 lex_macro_node, do_undef, glue_header_name, parse_include,
3546 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3547 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3548 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3549 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3550 _cpp_pop_buffer, do_diagnostic): Update.
3551 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3552 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3553 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3554 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3555 cpp_notice, cpp_notice_from_errno): Remove.
3556 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3557 level.
3558 (cpp_errno): New.
3559 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3560 collect_args, enter_macro_context, save_parameter, parse_params,
3561 _cpp_create_definition, check_trad_stringification,
3562 cpp_macro_definition): Update.
3563 * cppmain.c (cpp_preprocess_file): Update.
3564 * fix-header.c (read_scan_file): Update.
3565
3566 2002-04-14 Andreas Schwab <schwab@suse.de>
3567
3568 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3569
3570 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3571
3572 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3573
3574 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3575
3576 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3577 not gnu_hurd.
3578
3579 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3580
3581 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3582
3583 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3584
3585 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3586 sparc-elf and sparc-rtems targets.
3587
3588 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3589
3590 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3591 defined, and __gnu_hurd__ wherever __GNU__ is defined.
3592 * arm/linux-elf.h: Likewise.
3593 * cris/aout.h: Likewise.
3594 * cris/linux.h: Likewise.
3595 * i370/linux.h: Likewise.
3596 * i386/gnu.h: Likewise.
3597 * i386/linux-aout.h: Likewise.
3598 * i386/linux-oldld.h: Likewise.
3599 * i386/linux.h: Likewise.
3600 * i386/linux64.h: Likewise.
3601 * ia64/linux.h: Likewise.
3602 * m68k/linux-aout.h: Likewise.
3603 * m68k/linux.h: Likewise.
3604 * mips/linux.h: Likewise.
3605 * pa/pa-linux.h: Likewise.
3606 * pj/linux.h: Likewise.
3607 * rs6000/sysv4.h: Likewise.
3608 * s390/linux.h: Likewise.
3609 * sh/linux.h: Likewise.
3610 * sparc/linux-aout.h: Likewise.
3611 * sparc/linux.h: Likewise.
3612 * sparc/linux64.h: Likewise.
3613 * xtensa/linux.h: Likewise.
3614
3615 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3616
3617 * stmt.c (check_unique_operand_names): Expect operand names to
3618 be strings rather than identifiers. Use simple_cst_equal to
3619 compare them.
3620 (resolve_operand_name_1): Make same identifier to string change here.
3621 * c-parse.in (asm_operand): Convert a named operand into a string.
3622 * cp/parse.y (asm_operand): Likewise.
3623
3624 2002-04-13 Andreas Schwab <schwab@suse.de>
3625
3626 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3627
3628 2002-04-12 Mark Mitchell <mark@codesourcery.com>
3629
3630 Revert these changes:
3631
3632 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3633
3634 PR c++/5571
3635 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3636
3637 2002-04-12 Richard Henderson <rth@redhat.com>
3638
3639 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3640 (sparc*-*-solaris): Clean up header files.
3641 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3642 and plan on generating 64-bit code.
3643 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3644 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3645 * config/sparc/sol2-sld-64.h: Rename ...
3646 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
3647 for AS_SPARC64_FLAG not defined.
3648 * config/sparc/sol2-gld-bi.h: New.
3649 * config/sparc/sol2-sld.h: Remove.
3650 * config/sparc/sol26-sld.h: New.
3651 * config/sparc/sol2.h: Tidy comments.
3652 * doc/install.texi: Document sparc-solaris configury changes.
3653
3654 2002-04-12 Richard Henderson <rth@redhat.com>
3655
3656 * recog.c (offsettable_address_p): Match the logic in adjust_address.
3657
3658 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3659 in 64-bit mode only. Use only for 32-bit or MEDLOW.
3660
3661 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3662
3663 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3664
3665 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
3666
3667 * pa.c (pa_can_combine_p): Call extract_insn before calling
3668 constrain_operands.
3669
3670 2002-04-12 Douglas B Rupp <rupp@gnat.com>
3671
3672 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3673 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3674 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3675 (CPP_PREDEFINES): Handle __declspec.
3676 * config/i386/t-interix (USER_H): Remove.
3677
3678 2002-04-12 DJ Delorie <dj@redhat.com>
3679
3680 * integrate.c (compare_blocks): Make comparisons safe for when
3681 sizeof(int) < sizeof(char *).
3682 (find_block): Likewise.
3683
3684 2002-04-12 Jan Hubicka <jh@suse.cz>
3685 David Edelsohn <edelsohn@gnu.org>
3686
3687 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3688 registers.
3689 (symbol_ref_operand): New.
3690 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3691 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3692
3693 2002-04-12 Andreas Schwab <schwab@suse.de>
3694
3695 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3696 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3697 overrides the definition in config/svr4.h.
3698
3699 2002-04-12 Eric Norum <eric.norum@usask.ca>
3700
3701 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3702 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3703 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3704 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3705 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3706 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3707 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3708 definitions to config/rtems.h and make the targets more similar.
3709
3710 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3711
3712 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3713 POINTERS_EXTEND_UNSIGNED.
3714 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3715 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3716
3717 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3718 not specified.
3719
3720 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
3721
3722 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3723 depends on TARGET_SHMEDIA, not TARGET_SH5.
3724
3725 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
3726
3727 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3728 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3729
3730 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3731
3732 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3733 no r0 clobber.
3734
3735 2002-04-12 Andreas Schwab <schwab@suse.de>
3736
3737 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3738
3739 2002-04-12 Richard Henderson <rth@redhat.com>
3740
3741 PR bootstrap/4191
3742 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3743
3744 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3745 modes spanning multiple hard regs.
3746
3747 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3748
3749 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3750
3751 * pa.c (pa_output_function_prologue): Don't accumulate the total
3752 number of code bytes when using TARGET_64BIT, or gas, SOM and not
3753 the portable runtime.
3754 (output_deferred_plabels): Handle 64bit plabels.
3755 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3756 generating pic code using the GAS assembler for object formats that
3757 are not SOM (ie., ELF32 and ELF64).
3758 (output_millicode_call): Check attribute type if attribute length is 28.
3759 Likewise use $PIC_pcrel$0. Only call get_attr_length and
3760 dbr_sequence_length once.
3761 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3762 dbr_sequence_length once.
3763 * pa.h (TARGET_SOM): Define if not defined.
3764 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3765 with GAS and not SOM.
3766 (jump, call_internal_reg, call_value_internal_reg): Likewise.
3767 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
3768
3769 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3770
3771 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3772 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3773 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3774 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3775 elfos.h and dbxelf.h values are fine now.
3776 * config/i386/freebsd.h, config/alpha/freebsd.h
3777 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3778
3779 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3780
3781 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3782 or set Acpu or Amachine. Reformat.
3783 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3784 define.
3785 (LINK_SPEC): Do not need to undef.
3786 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3787 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3788 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3789 define.
3790 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3791 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3792 (LINK_SPEC): Do not need to undef.
3793 (DONT_USE_BUILTIN_SETJMP): Do not define.
3794 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3795 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
3796 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3797 Remove trailing spaces.
3798 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3799 __ELF__, or set Acpu or Amachine. Reformat.
3800 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3801 define.
3802
3803 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3804
3805 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3806 all other *-*-freebsd* targets.
3807
3808 2002-04-11 Richard Henderson <rth@redhat.com>
3809
3810 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3811
3812 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3813
3814 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3815 Include {cpu}/{cpu}.h thru tm_file.
3816 (alpha*-*-linux*ecoff): Remove target.
3817 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3818 (LINK_SPEC): Remove, is not OS independent.
3819 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3820 (LINK_SPEC): Do not need to #undef any longer.
3821 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3822 any longer.
3823 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3824 __ELF__.
3825 (LINK_SPEC): Moved here from alpha/elf.h.
3826 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
3827 SUB_CPP_PREDEFINES.
3828 * config/alpha/linux-ecoff.h: Remove.
3829 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
3830 (CPP_SPEC): Define _POSIX_SOURCE as needed.
3831 (CPP_SUBTARGET_SPEC): Do not define.
3832 (LINK_SPEC): Do not need to #undef any longer.
3833 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
3834 * config/alpha/vms.h: Likewise.
3835
3836 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3837
3838 * doc/extend.texi: Remove old claim that typedefs cannot have
3839 an alignment attribute.
3840
3841 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3842
3843 PR optimization/6177
3844 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3845 bitpos is 0 and bitsize CONCAT size.
3846
3847 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3848
3849 PR c/6223
3850 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3851
3852 2002-04-10 David O'Brien <obrien@FreeBSD.org>
3853
3854 * config/alpha/freebsd.h: Minor reformatting.
3855 (CPP_SPEC): Define ELF and add cpp_subtarget.
3856 (ASM_SPEC): No longer needed.
3857
3858 2002-04-11 Richard Henderson <rth@redhat.com>
3859
3860 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3861 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
3862 (dimode mem/zero splitter): New.
3863
3864 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
3865
3866 * config/cris/cris.c (cris_override_options): Tweak error message
3867 for PIC not implemented.
3868
3869 * config/cris/cris.h: Tweak comments related to parameter-passing.
3870
3871 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3872
3873 2002-04-10 Richard Henderson <rth@redhat.com>
3874
3875 * except.c (add_ehl_entry): Allow duplicates after landing pad
3876 creation.
3877
3878 2002-04-10 David Edelsohn <edelsohn@gnu.org>
3879
3880 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3881
3882 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
3883
3884 * c-decl.c (c_init_decl_processing): Move generation of
3885 decls for g77_integer_type_node and friends from here ...
3886 * c-common.c (c_common_nodes_and_builtins): ... to here.
3887
3888 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3889
3890 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3891 is only used as frame pointer when frame_pointer_needed is true.
3892
3893 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
3894
3895 PR target/817
3896 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3897 for the fact that the pool entry uses two words.
3898 (movdf_hard_insn): Similarly. Also, ADR instruction can span
3899 1k bytes.
3900 (movdf_soft_insn): Similarly.
3901 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3902 for the fact that the pool entry uses three words.
3903
3904 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
3905
3906 * config/mips/mips.c (mips_va_arg): When using the struct version
3907 of the EABI va_list, allow arguments in the register save area to
3908 take up less room than a stack argument.
3909
3910 2002-04-10 Richard Henderson <rth@redhat.com>
3911
3912 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3913 if EXPAND_INITIALIZER.
3914
3915 2002-04-09 Richard Henderson <rth@redhat.com>
3916
3917 * config/alpha/alpha.md (movdi_er_maybe_g): New.
3918 * config/alpha/alpha.c (alpha_expand_mov): Use it.
3919
3920 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3921
3922 PR optimization/6233
3923 * rtlanal.c (pure_call_p): New function.
3924 * rtl.h (pure_call_p): Declare.
3925 * loop.c (prescan_loop): Use it to set has_nonconst_call.
3926 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3927
3928 2002-04-09 Eric Christopher <echristo@redhat.com>
3929
3930 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3931 information to .comm directive.
3932
3933 2002-04-09 Richard Henderson <rth@redhat.com>
3934
3935 PR c/5078
3936 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3937
3938 2002-04-09 Richard Henderson <rth@redhat.com>
3939
3940 * basic-block.h (flow_delete_block_noexpunge): Declare.
3941 (expunge_block_nocompact): Declare.
3942 * cfg.c (expunge_block_nocompact): Split out from ...
3943 (expunge_block): ... here.
3944 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3945 (flow_delete_block_noexpunge): Split out from ...
3946 (flow_delete_block): ... here.
3947 * cfgcleanup.c (delete_unreachable_blocks): Compact while
3948 removing dead blocks.
3949 * except.c (exception_handler_labels): Remove.
3950 (exception_handler_label_map): New.
3951 (struct eh_region): Add aka member.
3952 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3953 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3954 (for_each_eh_label, for_each_eh_label_1): New.
3955 (init_eh): Register exception_handler_label_map.
3956 (free_eh_status): Use free_region.
3957 (find_exception_handler_labels): Use the map, not the list.
3958 (remove_exception_handler_label): Likewise.
3959 (maybe_remove_eh_handler): Likewise.
3960 (remove_eh_handler): Use the region aka bitmap.
3961 * except.h (exception_handler_labels): Remove.
3962 (for_each_eh_label): Declare.
3963 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3964 * loop.c (invalidate_loops_containing_label): New.
3965 (find_and_verify_loops): Use it. Use for_each_eh_label.
3966 * sched-rgn.c (is_cfg_nonregular): Use
3967 current_function_has_exception_handlers.
3968
3969 2002-04-09 Richard Henderson <rth@redhat.com>
3970
3971 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3972 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3973 Do not return changed status.
3974 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3975 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3976 New functions that do return changed status.
3977 * sbitmap.h: Update decls.
3978 * gcse.c, lcm.c: Use _cg functions as needed.
3979
3980 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3981
3982 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3983 (sh64-*-elf*, sh-*-rtemself*): Likewise.
3984 * config/sh/embed_bb.c: New file.
3985 * config/sh/embed-elf.h: New file.
3986 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3987 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
3988 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3989 __PTRDIFF_TYPE__ .
3990 (SUBTARGET_CPP_PTR_SPEC): Don't define.
3991 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3992 Add subtarget_asm_endian_spec.
3993 (ASM_SPEC): Use subtarget_asm_endian_spec.
3994 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3995 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3996 (WCHAR_UNSIGNED): Define.
3997 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3998 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3999 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4000 Fix value.
4001 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4002 (sh_adjust_cost): Likewise.
4003 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4004 __PTRDIFF_TYPE__ .
4005 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4006 (WCHAR_TYPE_SIZE): Likewise.
4007 (ASM_SPEC): Use subtarget_asm_endian_spec.
4008 (SH_ELF_WCHAR_TYPE): #undef/ #define.
4009 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4010 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4011 (MAX_WCHAR_TYPE_SIZE): Don't #define .
4012 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4013 (USER_LABEL_PREFIX): Don't #undef /#define .
4014 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4015 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4016 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4017 (ASM_SPEC): Likewise.
4018 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4019 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4020 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4021 (LIB2FUNCS_EXTRA): Define.
4022 * t-sh64 (LIB2FUNCS_EXTRA): Define.
4023 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4024 (LIB1ASMFUNCS_CACHE): Define.
4025 (LIB2FUNCS_EXTRA): Redefine empty.
4026
4027 2002-04-08 Richard Henderson <rth@redhat.com>
4028
4029 * reorg.c (get_branch_condition): Use reversed_comparison_code.
4030
4031 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4032
4033 * config/m68hc11/larith.asm (__map_data_section): Fix condition
4034 and optimize for size.
4035 (__do_global_ctors): Fix pointer comparison.
4036 (__do_global_dtors): Likewise.
4037
4038 2002-04-09 David S. Miller <davem@redhat.com>
4039
4040 * config/sparc/sparc.c (sparc_extra_constraint_check): New
4041 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
4042 allow reloading pseudos.
4043 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4044 * config/sparc/sparc-protos.h: Declare it.
4045
4046 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4047 unsigned comparison warning.
4048 (output_restore_regs): Mark leaf_function as unused.
4049
4050 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4051
4052 * expr.c (is_aligning_offset): New function.
4053 (expand_expr, case COMPONENT_EXPR): Call it.
4054
4055 2002-04-08 David S. Miller <davem@redhat.com>
4056
4057 PR target/6082
4058 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4059
4060 Make init_priority work on Sparc when using GNU ld.
4061 * config/sparc/linux.h, config/sparc/linux64.h,
4062 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4063 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4064 * config/sparc/sol2-gld.h: New file to do the same.
4065 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4066 sparc/sol2-gld.h to tm_file.
4067
4068 PR optimization/4328
4069 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4070 * doc/md.texi: Document it.
4071 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4072 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4073 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4074 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4075 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4076
4077 2002-04-08 Andreas Jaeger <aj@suse.de>
4078
4079 * stmt.c (expand_asm_operands): Revert last patch from Richard
4080 Henderson.
4081
4082 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4083
4084 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4085 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4086
4087 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4088
4089 * doc/contrib.texi (Contributors): Add David O'Brien.
4090
4091 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4092
4093 * configure.in (auto-build.h): Use target_alias and build_alias
4094 when running configure.
4095 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4096 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4097 * configure: Regenerate.
4098
4099 2002-04-07 David S. Miller <davem@redhat.com>
4100
4101 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4102
4103 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4104
4105 PR 5933
4106 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4107 generating 32-bit pic code.
4108
4109 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4110
4111 * cppinit.c (cpp_create_reader): Initialize
4112 discard_comments_in_macro_exp.
4113 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4114 (cpp_handle_option): Handle "-CC" option.
4115 * cpplex.c (save_comment): If saving a C++ comment in
4116 a directive, convert it to a C comment.
4117 (_cpp_lex_direct): Pass second comment start character to
4118 save_comment to indicate comment type.
4119 * cpplib.c (_cpp_handle_directive): If processing
4120 a "#define" directive and discard_comments_in_macro_exp
4121 is false, re-enable saving of comments.
4122 (lex_macro_node): If discard_comments_in_macro_exp is false,
4123 discard any comments before the macro identifier.
4124 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4125 member.
4126 * cppmacro.c (cpp_get_token): If expanding a macro while
4127 processing a directive, discard any comments we might encounter.
4128 (parse_params): If discard_comments_in_macro_exp is false,
4129 ignore comments in the macro parameter list.
4130 * gcc.c (cpp_unique_options): Add "-CC" option.
4131 (option_map): Map "--comments-in-macros" to "-CC".
4132 * doc/cppopts.texi: Document "-CC" option.
4133 * f/lang-specs.h: Add "-CC" option.
4134 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4135 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4136 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4137 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4138 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4139 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4140
4141 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4142
4143 PR middle-end/6180
4144 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4145
4146 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4147
4148 PR c++/5571
4149 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4150
4151 PR opt/5120
4152 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4153 RTX_UNCHANGING_P for the functions arguments when a tail call
4154 is made.
4155
4156 2002-04-06 Jason Merrill <jason@redhat.com>
4157
4158 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4159 (parse_options_and_default_flags): Set them appropriately.
4160 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4161
4162 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4163
4164 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4165 here.
4166
4167 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4168 semicolon.
4169
4170 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4171 types come in by-reference. Fix typo in comment.
4172
4173 2002-04-05 David S. Miller <davem@redhat.com>
4174
4175 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4176 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4177 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4178 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4179
4180 2002-04-05 David S. Miller <davem@redhat.com>
4181
4182 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4183 are not going to emit return instructions, emit at least a nop
4184 for the sake of sane backtraces.
4185
4186 2002-04-05 Richard Henderson <rth@redhat.com>
4187
4188 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4189
4190 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4191
4192 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4193
4194 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4195
4196 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4197 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4198 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4199
4200 2002-04-05 Andreas Schwab <schwab@suse.de>
4201
4202 * c-convert.c: Include c-common.h.
4203 * Makefile.in (c-convert.o): Updated.
4204
4205 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4206
4207 * mklibgcc.in: Use separate libgcc.map for each multilib.
4208 * Makefile.in (distclean): Don't remove libgcc.map here.
4209
4210 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4211
4212 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4213 genmultilib invocation.
4214
4215 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4216
4217 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4218 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4219 to num_gprs for symmetry.
4220 * config/mips/mips.c: Adjust accordingly.
4221
4222 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4223
4224 * c-common.c (truthvalue_conversion): Rename, update.
4225 * c-common.h (c_common_truthvalue_conversion): New.
4226 * c-convert.c (convert): Update.
4227 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4228 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4229 * c-typeck.c (build_binary_op, build_unary_op,
4230 build_conditional_expr): Update.
4231 * fold-const.c (constant_boolean_node, fold): Use langhook.
4232 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4233 * langhooks.h (struct lang_hooks): New hook.
4234 * stmt.c (expand_decl_cleanup): Use langhook.
4235 * tree.h (truthvalue_conversion): Remove.
4236 objc:
4237 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4238
4239 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4240
4241 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4242 Add rules to make null object file.
4243
4244 2002-04-04 Jim Blandy <jimb@redhat.com>
4245
4246 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4247 macro formal parameter names.
4248
4249 2002-04-04 David S. Miller <davem@redhat.com>
4250
4251 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4252
4253 2002-04-04 Richard Henderson <rth@redhat.com>
4254
4255 PR middle-end/5099
4256 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4257 Support copies into and out of memory. Don't accept allows_reg
4258 and allows_mem as gospel.
4259
4260 2002-04-04 Richard Henderson <rth@redhat.com>
4261
4262 PR opt/6165
4263 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4264 (write_dependence_p): Likewise.
4265
4266 2002-04-04 Richard Henderson <rth@redhat.com>
4267
4268 * predict.c (estimate_bb_frequencies): Do frequency calculation
4269 with a volatile temporary.
4270
4271 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4272
4273 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4274
4275 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4276
4277 PR c++/6119
4278 * final.c (final_start_function): Don't bump profile_label_no here...
4279 (final_end_function): ...but here.
4280
4281 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4282
4283 * config/sparc/sparc.md (pic): New attribute.
4284 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4285 into stack slots.
4286 (split after do_builtin_setjmp_setup): New.
4287
4288 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4289
4290 PR fortran/6106
4291 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4292 change.
4293
4294 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4295
4296 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4297 UNITS_PER_WORD for zero sized aggregates.
4298
4299 2002-04-03 David S. Miller <davem@redhat.com>
4300
4301 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4302 one-character spec for this, just use %(link_gcc_c_sequence).
4303
4304 2002-04-03 David S. Miller <davem@redhat.com>
4305
4306 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4307 handling.
4308
4309 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4310
4311 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4312 (DWARF_FRAME_RETURN_COLUMN): Move.
4313 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4314 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4315 * pa.c (except.h, predict.h): Include.
4316 (FRP): Delete.
4317 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4318 (output_ascii): Add cast.
4319 (store_reg_modify): Revise to add frame notes.
4320 (set_reg_plus_d): Likewise.
4321 (compute_frame_size): Include space for eh data registers in frame if
4322 the current function calls eh_return.
4323 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4324 function calls eh_return. Save eh data registers if the current
4325 function calls eh_return. Fix code to add frame notes. Emit
4326 blockage to prevent insns with frame notes being scheduled in the
4327 delay slot of calls.
4328 (hppa_expand_epilogue): Restore eh data registers and do final stack
4329 adjustment if the current function calls eh_return. Don't add frame
4330 notes.
4331 (output_call): Revise for change in length of call insn. Don't do
4332 return pointer adjustment for an unconditional jump in the delay slot
4333 of a call when using frame notes.
4334 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4335 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4336 (ARG_POINTER_CFA_OFFSET): Define.
4337 * pa.md (return_external_pic): New pattern.
4338 (prologue): Correct formatting. Use return_external_pic if current
4339 function calls eh_return.
4340 (call_internal_symref, call_value_internal_symref,
4341 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4342 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4343 respectively.
4344 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4345
4346 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4347 list of targets to check using "nop" insn.
4348 * configure: Rebuilt.
4349
4350 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4351
4352 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4353
4354 2002-04-03 David S. Miller <davem@redhat.com>
4355
4356 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4357 library sequence passed to the linker.
4358 (LINK_COMMAND_SPEC): Use it.
4359 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4360 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4361 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4362
4363 2002-04-03 Jason Merrill <jason@redhat.com>
4364
4365 * except.c (struct eh_status): Remove protect_list.
4366 (begin_protect_partials, end_protect_partials): Remove.
4367 (add_partial_entry): Remove.
4368 * except.h: Remove prototypes.
4369
4370 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4371 expand_decl_cleanup_eh.
4372
4373 PR c++/5636
4374 * tree.h (CLEANUP_EH_ONLY): New macro.
4375 * stmt.c (expand_decl_cleanup_eh): New fn.
4376 (expand_cleanups): Check CLEANUP_EH_ONLY.
4377 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4378 Use expand_decl_cleanup_eh.
4379 (expand_stmt): Adjust.
4380 * c-common.h: Adjust prototype.
4381
4382 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4383
4384 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4385 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4386 (cris_target_asm_function_epilogue): Ditto.
4387 (cris_initial_frame_pointer_offset): Ditto.
4388 (cris_simple_epilogue): Ditto.
4389 (cris_expand_builtin_va_arg): Variable-size types come in
4390 by-reference.
4391
4392 2002-04-03 David S. Miller <davem@redhat.com>
4393
4394 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4395 little-endian.
4396 (set_fast_math): Correct 'fsr' type.
4397
4398 2002-04-03 Richard Henderson <rth@redhat.com>
4399
4400 PR opt/3569
4401 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4402 * toplev.c (check_global_declarations): Use it.
4403 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4404 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4405 (LANG_HOOKS_DECLS): Add it.
4406 * langhooks.c (lhd_warn_unused_global_decl): New.
4407 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4408 * c-objc-common.c (c_warn_unused_global_decl): New.
4409 * c-tree.h (c_warn_unused_global_decl): Declare.
4410 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4411
4412 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4413
4414 * langhooks-def.h (lhd_set_decl_assembler_name,
4415 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4416 (LANG_HOOKS_INITIALIZER): Update.
4417 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4418 * langhooks.h (struct lang_hooks): New hook.
4419 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4420 (lang_set_decl_assembler_name): Remove.
4421 (init_obstacks): Don't set hook.
4422 (decl_assembler_name): New function.
4423 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4424 (decl_assembler_name): New.
4425 (lang_set_decl_assembler_name): Remove.
4426
4427 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4428
4429 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4430 works properly with .hidden symbols.
4431 * configure: Rebuilt.
4432 * config.in: Rebuilt.
4433 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4434 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4435 properly with .hidden symbols.
4436
4437 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4438
4439 PR middle-end/6102
4440 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4441 USE argument.
4442
4443 2002-04-03 Richard Henderson <rth@redhat.com>
4444
4445 PR opt/4120
4446 * sched-rgn.c (sets_likely_spilled): New.
4447 (sets_likely_spilled_1): New.
4448 (add_branch_dependences): Use it.
4449
4450 2002-04-02 Richard Henderson <rth@redhat.com>
4451
4452 PR opt/4311
4453 * loop.h (LOOP_FIRST_PASS): New.
4454 * loop.c (strength_reduce): Mind it when deciding to unroll.
4455 * toplev.c (rest_of_compilation): Set it.
4456
4457 2002-04-02 David S. Miller <davem@redhat.com>
4458
4459 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4460 mems_ok_for_ldd_peep when the order of the loads being examined
4461 is reversed.
4462 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4463 existing comment to increase comprehension of this situation.
4464
4465 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4466
4467 * config/sh/sh.md: Don't use union real_extract.
4468
4469 2002-04-02 Richard Henderson <rth@redhat.com>
4470
4471 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4472
4473 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4474
4475 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4476 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4477 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4478 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4479 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4480 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4481 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4482 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4483 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4484 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4485 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4486 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4487 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4488 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4489 Include as many configury headers via tm_file as possible. This
4490 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4491 * config/openbsd-oldgas.h: New file.
4492 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4493 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4494 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4495 config/i386/i386-coff.h, config/i386/i386-interix.h,
4496 config/i386/iscdbx.h, config/i386/linux-aout.h,
4497 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4498 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4499 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4500 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4501 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4502 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4503 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4504 config/i386/vxi386.h: Do not directly include configury headers.
4505 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4506 Directly include configury headers that are no longer automatically
4507 included by the above headers.
4508 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4509 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4510 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4511 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4512 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4513 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4514 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4515 (TARGET_VERSION): Define.
4516 * config/i386/beos-elf.h, config/i386/freebsd.h,
4517 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4518 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4519 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4520 config/i386/sco5.h, config/i386/sysv4.h
4521 (TARGET_VERSION): Do not need to protect.
4522 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4523 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4524 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4525 config/i386/i386-interix.h, config/i386/linux-aout.h,
4526 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4527 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4528 (YES_UNDERSCORES): Do not define - not needed.
4529 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4530 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4531 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4532 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4533 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4534 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4535 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4536 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4537
4538 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4539 Richard Henderson <rth@redhat.com>
4540
4541 PR c/5484
4542 * function.c (assign_temp): Accept either type or decl argument.
4543 Detect variables whose size is too large to fit into an integer.
4544 * stmt.c (expand_decl): Pass the decl, not the type.
4545
4546 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4547
4548 * protoize.c: Match include directory usage with cppdefault.c.
4549
4550 2002-04-03 Jeffrey A Law (law@redhat.com)
4551 Hans-Peter Nilsson <hp@bitrange.com>
4552
4553 * combine.c (simplify_comparison): Avoid narrowing a comparison
4554 with a paradoxical subreg when doing so would drop signficant bits.
4555
4556 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4557
4558 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4559 if POINTERS_EXTEND_UNSIGNED is defined.
4560
4561 2002-04-02 Richard Henderson <rth@redhat.com>
4562
4563 PR opt/3967
4564 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4565 replace regs.
4566
4567 2002-04-02 Richard Henderson <rth@redhat.com>
4568
4569 * doc/standards.texi: Document required freestanding libc entry points.
4570
4571 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4572
4573 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4574 associated splitter. Remove MQ constraint.
4575 (ctrdi_internal4): Correct CCmode clobber.
4576
4577 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4578
4579 * milli64.S ($$dyncall): New function.
4580 * t-linux (LIB1ASMFUNCS): Revise module list.
4581 (LIB1ASMSRC): Use pa/milli64.S.
4582
4583 2002-04-02 Richard Henderson <rth@redhat.com>
4584
4585 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4586 rename solaris_sys_varargs_h.
4587
4588 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4589
4590 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4591 the same mode as its component.
4592
4593 2002-04-02 Richard Henderson <rth@redhat.com>
4594
4595 PR opt/190
4596 * final.c (this_is_asm_operands): Export.
4597 * output.h (this_is_asm_operands): Declare.
4598 * config/i386/i386.c (print_operand): Error odd asm operands.
4599
4600 2002-04-02 Richard Henderson <rth@redhat.com>
4601
4602 PR opt/420
4603 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4604
4605 2002-04-01 Richard Henderson <rth@redhat.com>
4606
4607 PR target/1538
4608 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4609 * fixinc/fixincl.x: Rebuild.
4610
4611 2002-04-01 Richard Henderson <rth@redhat.com>
4612
4613 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4614 (atomic_alloc, atomic_free): New.
4615 (SIZE, MASK_FOR, PTR_IN): New.
4616 (emergency_reg_state, emergency_reg_state_free): New.
4617 (emergency_labeled_state, emergency_labeled_state_free): New.
4618 (reg_state_alloced, labeled_state_alloced): New.
4619 (alloc_reg_state, free_reg_state): New.
4620 (alloc_label_state, free_label_state, free_label_states): New.
4621 (push, pop, dup_state_stack, free_state_stack): Use them.
4622 (desc_label_state): Likewise.
4623 (uw_frame_state_for): Free label states and state stack.
4624 (uw_update_reg_address): Eliminate warnings.
4625
4626 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
4627
4628 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4629 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4630
4631 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4632
4633 * c-decl.c (grokdeclarator): Update.
4634 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4635 * c-tree.h (c_mark_addressable): New.
4636 * c-typeck.c (default_function_array_conversion, build_unary_op,
4637 build_array_ref, convert_for_assignment): Update.
4638 (mark_addressable): Rename.
4639 * calls.c (try_to_integrate, expand_call): Use langhook.
4640 * expr.c (expand_expr): Use langhook.
4641 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4642 * langhooks.h (struct lang_hooks): New hook.
4643 * stmt.c (expand_asm_operands): Use langhook.
4644 * tree.h (mark_addressable): Remove.
4645 objc:
4646 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4647
4648 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4649
4650 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4651 in previous change.
4652
4653 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4654
4655 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4656 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4657
4658 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4659
4660 * c-common.c (unsigned_conversion_warning, convert_and_check,
4661 unsigned_type, signed_type, shorten_compare,
4662 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4663 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4664 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4665 New.
4666 * c-decl.c (grokdeclarator): Update.
4667 * c-format.c (check_format_types): Update.
4668 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4669 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4670 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4671 * convert.c (convert_to_integer): Use new hooks.
4672 * expmed.c (make_tree): Use new hooks.
4673 * expr.c (store_expr): Use new hooks.
4674 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4675 all_ones_mask_p, unextend, fold): Use new hooks.
4676 * langhooks.h (struct lang_hooks_for_types): New hooks.
4677 * tree.h (signed_or_unsigned_type, signed_type,
4678 unsigned_type): Remove.
4679 objc:
4680 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4681 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4682
4683 2002-03-31 Richard Henderson <rth@redhat.com>
4684
4685 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4686 (desc_frgr_mem): Fix reference to f16-f31.
4687
4688 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4689
4690 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4691 RTVEC_ELT): Const-ify.
4692 * varray.h (VARRAY_CHECK): Const-ify.
4693 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4694 ggc_mark_rtvec, ggc_mark): Const-ify.
4695
4696 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4697
4698 * diagnostic.c: Include langhooks-def.h.
4699 * Makefile.in (diagnostic.o): Update.
4700
4701 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4702
4703 * c-common.c (c_unsafe_for_reeval): Rename.
4704 * c-common.h (c_unsafe_for_reeval): Rename.
4705 * c-decl.c (finish_incomplete_decl): Rename.
4706 (c_init_decl_processing): Don't set langhook.
4707 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4708 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4709 * c-objc-common.c (c_objc_common_init): Don't set langhook.
4710 * c-tree.h (finish_incomplete_decl): Rename.
4711 * langhooks-def.h (lhd_unsafe_for_reeval): New.
4712 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4713 (LANG_HOOKS_INITIALIZER): Update.
4714 * langhooks.c (lhd_unsafe_For_reeval): New.
4715 * langhooks.h (struct langhooks): New hooks.
4716 * toplev.c (incomplete_decl_finalize_hook): Remove.
4717 (wrapup_global_declarations): Update.
4718 * tree.c (lang_unsafe_for_reeval): Remove.
4719 (unsafe_for_reeval): Update.
4720 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4721 Remove.
4722 objc:
4723 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4724 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4725
4726 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4727
4728 * diagnostic.c (print_error_function): Remove.
4729 (default_print_error_function): Rename.
4730 (report_error_function): Update.
4731 * diagnostic.h (print_error_function): Remove.
4732 (default_print_error_function): Remove.
4733 * langhooks-def.h (struct diagnostic_context): Predeclare.
4734 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4735 (LANG_HOOKS_INITIALIZER): Update.
4736 * langhooks.h (struct diagnostic context): Predeclare.
4737 (struct lang_hooks): New hook.
4738
4739 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4740
4741 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4742 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4743 !flag_pic.
4744 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4745 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4746 of PIC_OFFSET_TABLE_REGNUM thruout.
4747 * config/rs6000/rs6000.md: Likewise.
4748 * config/rs6000/darwin.h: Likewise.
4749
4750 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4751
4752 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4753 unsigned HOST_WIDE_INT, not unsigned int.
4754
4755 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4756
4757 PR middle-end/6096, middle-end/6098, middle-end/6099
4758 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4759 CODE_LABELs.
4760 (fill_slots_from_thread): Likewise.
4761
4762 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4763
4764 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4765 floating fields in float regs.
4766 (function_arg_record_value_2): Likewise.
4767
4768 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4769
4770 * config/mmix/mmix.md (define_constants): Remove misleading
4771 FIXME. Add MMIX_fp_rO_OFFSET.
4772 ("nonlocal_goto_receiver"): Don't have stack-frame address of
4773 saved rO as part of the pattern. Remove FIXME.
4774 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
4775 here, at output-time.
4776
4777 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4778
4779 PR middle-end/6100
4780 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4781 REG_BR_PRED.
4782 (output_v9branch): Likewise.
4783
4784 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4785
4786 * gcc.c: Revert previous patch for now.
4787 * config/i386/djgpp.h: Likewise.
4788
4789 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4790
4791 * config/mmix/crti.asm (_init): Register _fini with atexit.
4792 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4793
4794 2002-03-31 Richard Henderson <rth@redhat.com>
4795
4796 PR target/3997
4797 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4798 (ASM_OUTPUT_DEF_FROM_DECLS): New.
4799
4800 2002-03-31 Richard Henderson <rth@redhat.com>
4801
4802 * libgcc2.c (__bb_exit_func): Make static.
4803
4804 * config/alpha/alpha.md (trap): New.
4805
4806 2002-03-31 Richard Henderson <rth@redhat.com>
4807
4808 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4809 promoted argument types; build trap.
4810 (expand_builtin_trap): New.
4811 (expand_builtin): Use it.
4812 * stmt.c (expand_nl_goto_receivers): Likewise.
4813 * expr.h (expand_builtin_trap): Declare.
4814 * libfuncs.h (LTI_abort, abort_libfunc): New.
4815 * optabs.c (init_optabs): Init abort_libfunc.
4816
4817 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4818
4819 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4820 (LINK_COMMAND_SPEC): ... from here.
4821 (init_gcc_specs): Duplicate it here too, omitting
4822 shared_name in the second copy.
4823 (init_spec): Test for duplicate
4824 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
4825
4826 2002-03-30 David S. Miller <davem@redhat.com>
4827
4828 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4829 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4830
4831 2002-03-30 Roger Sayle <roger@eyesopen.com>
4832 Richard Henderson <rth@redhat.com>
4833
4834 * regmove.c (combine_stack_adjustments_for_block): Avoid
4835 emitting a stack adjustment of zero bytes. Let delete_insn
4836 update bb->head.
4837
4838 2002-03-30 Richard Henderson <rth@redhat.com>
4839
4840 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
4841 (sparc_emitting_epilogue): New.
4842 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
4843 * config/sparc/sparc-protos.h: Update.
4844 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
4845 (TARGET_SWITCHES): Update.
4846 * config/sparc/sparc.md (return): Remove.
4847 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
4848 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
4849 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
4850 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4851 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
4852 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
4853 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
4854 Remove MASK_EPILOGUE.
4855 * doc/invoke.texi: Update.
4856
4857 2002-03-30 Daniel Berlin <dan@dberlin.org>
4858
4859 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4860 CPP will start the file for us.
4861
4862 2002-03-30 Richard Henderson <rth@redhat.com>
4863
4864 PR target/5446
4865 * config/ia64/ia64.c (group_barrier_needed_p): Special case
4866 prologue_allocate_stack.
4867 (ia64_single_set): Use insn codes for recognition of special
4868 cases, not rtl matching.
4869 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
4870
4871 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
4872
4873 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4874
4875 2002-03-30 Richard Henderson <rth@redhat.com>
4876
4877 PR target/6032
4878 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
4879 or -fomit-frame-pointer with profiling.
4880 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4881 (FUNCTION_PROFILER): Do nothing.
4882 (PROFILE_HOOK): New.
4883 * config/sparc/sparc.c (sparc_override_options): Don't check
4884 code models for profiling.
4885 (sparc_function_profiler): Remove.
4886 (sparc_profile_hook): New.
4887 * config/sparc/sparc-protos.h: Update.
4888
4889 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4890
4891 PR optimization/6086
4892 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
4893 of SUBREG of volatile MEM or because the MEM was mode dependent,
4894 return CLOBBER instead of unmodified SUBREG.
4895
4896 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
4897
4898 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4899 when not optimizing.
4900
4901 * toplev.c (rest_of_compilation): Cann mark_constant_function
4902 only when optimizing.
4903
4904 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
4905 are NULL.
4906
4907 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
4908 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
4909 (try_optimize_cfg): clear all AUX fields.
4910
4911 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
4912 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
4913 (ix86_address_cost): Be prepared for SUBREGed registers.
4914 (legitimate_address_p): Accept SUBREGed registers.
4915
4916 2002-03-29 Richard Henderson <rth@redhat.com>
4917
4918 PR target/5672
4919 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4920
4921 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4922
4923 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4924 for aggregate and TFmode types.
4925
4926 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4927
4928 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4929
4930 2002-03-29 Richard Henderson <rth@redhat.com>
4931
4932 PR target/5886
4933 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4934 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4935
4936 2002-03-29 Richard Henderson <rth@redhat.com>
4937
4938 PR target/6041
4939 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4940 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4941 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4942 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4943 conditional.
4944 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4945
4946 2002-03-29 Dale Johannesen <dalej@apple.com>
4947
4948 * loop.c (combine_movables): Do allow combination of pseudos.
4949
4950 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
4951
4952 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4953 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4954 No functional change except ...
4955 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
4956 * doc/install.texi (*-*-freebsd*): Document port configuration.
4957
4958 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4959
4960 * Makefile.in (convert.o, calls.o, expmed.o): Update.
4961 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4962 Use new hooks.
4963 * builtin-types.def (BT_PTRMODE): Update.
4964 * c-common.c (type_for_size): Rename c_common_type_for_size.
4965 (type_for_mode): Similarly.
4966 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4967 Use new hook.
4968 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4969 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4970 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4971 Redefine.
4972 * c-typeck.c (common_type, comptypes, default_conversion):
4973 Use new hooks.
4974 * calls.c: Include langhooks.h.
4975 (emit_library_call_value_1): Use new hooks. Avoid redundant
4976 calls.
4977 * convert.c: Include langhooks.h
4978 (convert_to_pointer, convert_to_integer): Use new hooks.
4979 * except.c (init_eh): Similarly.
4980 * expmed.c: Include langhooks.h.
4981 (expand_mult_add): Use new hooks.
4982 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4983 try_casesi): Similarly.
4984 * fold-const.c (optimize_bit_field_compare, make_range,
4985 decode_field_reference, fold_truthop, fold): Similarly.
4986 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4987 put_var_into_stack): Similarly.
4988 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4989 LANG_HOOKS_TYPE_FOR_SIZE): New.
4990 (LANG_HOOKS_TYPES_INITIALIZER): Update.
4991 * langhooks.h (lang_hooks_for_types): New hooks.
4992 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4993 * tree.c (get_unwidened, get_narrower): Similarly.
4994 * tree.h (type_for_mode, type_for_size): Remove.
4995 * varasm.c (force_const_mem): Use new hooks.
4996 * utils2.c (nonbinary_modular_operation): Update.
4997 objc:
4998 * objc-act.c (handle_impent): Update.
4999 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5000 Redefine.
5001
5002 2002-03-29 Steve Ellcey <sje@cup.hp.com>
5003
5004 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5005 * config/ia64/ia64.c (basereg_operand): New.
5006 * config/ia64/ia64-protos.h (basereg_operand): Declare.
5007 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5008
5009 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
5010
5011 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5012 unwind information when frame_pointer_needed.
5013 (mmix_assemble_integer): Tweak wording in comment.
5014
5015 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
5016
5017 * Makefile.in (except.o): Update.
5018 * except.c: Include langhooks.h.
5019 (init_eh): Use langhook.
5020 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5021 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5022 (LANG_HOOKS_INITIALIZER): Update.
5023 * langhooks.h (lang_hooks_for_types): New.
5024 (struct lang_hooks): Add it.
5025 * tree.c (make_lang_type_fn, make_lang_type): Remove.
5026 * tree.h (make_lang_type_fn, make_lang_type): Remove.
5027 config:
5028 * alpha/alpha.c: Include langhooks.h.
5029 (alpha_build_va_list): Use langhook.
5030 * d30v/d30v.c: Include langhooks.h.
5031 (d30v_build_va_list): Use langhook.
5032 * i386/i386.c: Include langhooks.h.
5033 (ix86_build_va_list): Use langhook.
5034 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5035 * s390/s390.c: Include langhooks.h.
5036 (s390_build_va_list): Use langhook.
5037 * stormy16/stormy16.c: Include langhooks.h.
5038 (stormy16_build_va_list): Use langhook.
5039
5040 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5041
5042 PR c++/5964
5043 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5044 attributes.
5045 (length): Compute variable length for branches/calls/jumps here.
5046 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5047 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5048 define branch_type attribute.
5049 (divsi3_sp32): Maximum length is 6 not 7.
5050 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5051 call_address_untyped_struct_value_sp32,
5052 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5053 * config/sparc/sparc.c (empty_delay_slot): New function.
5054 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5055 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5056
5057 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5058
5059 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5060 nonzero_bits if not needed.
5061 (nonzero_bits) [XOR]: Likewise.
5062 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5063 reg_last_set_mode and mode are both MODE_INT, but not equal.
5064 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5065 in nonzero_bits_mode for MODE_INT modes.
5066
5067 2002-03-28 Richard Henderson <rth@redhat.com>
5068
5069 PR target/5715
5070 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5071 to GAS. Correct drift between alternatives.
5072
5073 2002-03-28 Richard Henderson <rth@redhat.com>
5074
5075 PR target/6087
5076 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5077
5078 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5079
5080 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5081 emulation to the linker.
5082
5083 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5084
5085 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5086 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5087
5088 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5089
5090 * combine.c (simplify_and_const_int): Make sure to apply mask
5091 when force_to_mode returns a constant integer. PR3311.
5092
5093 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5094
5095 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5096
5097 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5098
5099 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5100 and Objective-C Dialect Options.
5101
5102 2002-03-28 Richard Henderson <rth@redhat.com>
5103
5104 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5105 comparison should be done vs !=0 not >0 return code. Tidy cases.
5106
5107 2002-03-28 Richard Henderson <rth@redhat.com>
5108
5109 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5110 on to c_expand_body.
5111 * c-tree.h (finish_function): Update decl.
5112 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5113
5114 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5115
5116 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5117
5118 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5119
5120 * rtlanal.c: Include flags.h
5121 (may_trap_p): Do not mark FP operations if trapping
5122 if !flag_trapping_math
5123 * Makefile.in (rtlanal.o): Add dependency on flag.h
5124 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5125
5126 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5127
5128 * mips.md: Use dconst1, not 1.0, as first argument of
5129 REAL_VALUE_LDEXP. Don't use union real_extract.
5130
5131 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5132
5133 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5134 rather than $target. Heed program_prefix and
5135 program_transform_name. Search for gas in cross-compiler case too.
5136 "test -x" rather than "test -f".
5137 (gcc_cv_ld): Likewise.
5138 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5139 (gcc_cv_objdump): Likewise.
5140 * configure: Regenerate.
5141
5142 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5143
5144 * Makefile.in (attribs.o): Update.
5145 * attribs.c: Include langhooks.h.
5146 (decl_attributes): Use langhook.
5147 * c-decl.c (insert_default_attributes): Rename.
5148 * c-tree.h (c_insert_default_attributes): New.
5149 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5150 (LANG_HOOKS_INITIALIZER): Update.
5151 * langhooks.h (struct lang_hooks): New hook.
5152 * tree.h (insert_default_attributes): Remove.
5153 objc:
5154 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5155
5156 2002-03-27 Andreas Schwab <schwab@suse.de>
5157
5158 * config/i386/i386.c (classify_argument): Also check for
5159 QUAL_UNION_TYPE.
5160
5161 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5162
5163 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5164 any more.
5165
5166 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5167
5168 * i960.md (ret): Set PC.
5169 (nonlocal_goto): Fix expander.
5170 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5171 some jump or call.
5172
5173 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5174
5175 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5176 of libcall regions.
5177
5178 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5179
5180 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5181 assigning to BLOCK_FOR_INSN directly.
5182
5183 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5184
5185 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5186
5187 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5188
5189 * c-common.c (c_expand_expr): Fix prototype.
5190 * c-common.h (c_expand_expr): Always declare, update.
5191 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5192 * c-objc-common.c (c_objc_common_init): No global hook.
5193 * expr.c (expand_expr): Use langhook.
5194 * expr.h (enum expand_modifier): Conditionally declare.
5195 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5196 (LANG_HOOKS_INITIALIZER): Update.
5197 * langhooks.c (lhd_expand_expr): New.
5198 * langhooks.h (struct lang_hooks): New hook.
5199 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5200 (lang_independent_init): Don't default hook.
5201 objc:
5202 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5203
5204 2002-03-27 Richard Henderson <rth@redhat.com>
5205
5206 PR target/6054
5207 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5208 TARGET_CONST_GP. Simplify conditions.
5209
5210 2002-03-27 Richard Henderson <rth@redhat.com>
5211
5212 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5213 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5214 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5215
5216 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5217
5218 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5219 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5220 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5221 Remove unnecessary masks.
5222 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5223 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5224 -mwindows, -mdll switches and their negations.
5225
5226 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5227
5228 * gcc-common.c (lang_mark_false_label_stack): Remove.
5229 * ggc.h (lang_mark_false_label_stack): Similarly.
5230
5231 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5232
5233 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5234
5235 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5236 or __rtems_ is defined.
5237
5238 2002-03-26 Richard Henderson <rth@redhat.com>
5239
5240 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5241 if a non-trivial load was emitted.
5242 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5243 in high+extra+low case.
5244
5245 2002-03-26 Richard Henderson <rth@redhat.com>
5246
5247 * config.gcc (sparc*-solaris): Use float_format=sparc.
5248
5249 2002-03-26 Richard Henderson <rth@redhat.com>
5250
5251 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5252 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5253 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5254 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5255 (WINT_TYPE_SIZE): Fix at 32.
5256
5257 2002-03-26 Richard Henderson <rth@redhat.com>
5258
5259 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5260 until after eh landing pad generation.
5261 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5262 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5263
5264 2002-03-26 Richard Henderson <rth@redhat.com>
5265
5266 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5267
5268 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5269
5270 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5271 and warning switches.
5272 (cc1_options): Likewise.
5273
5274 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5275
5276 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5277 Restore more of the signal context. Set no_reg_stack_frame.
5278 * config/ia64/unwind-ia64.c (unw_state_record):
5279 Add no_reg_stack_frame, comments.
5280 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5281 (uw_update_context): Adjust bsp when unwinding from leaf,
5282 but not signal frame.
5283
5284 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5285
5286 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5287
5288 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5289
5290 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5291
5292 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5293
5294 PR target/5621
5295 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5296 "Add a pool_range attribute", which was lost during the ARM/Thumb
5297 merge.
5298
5299 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5300
5301 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5302 a register into the MAC16 accumulator.
5303
5304 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5305
5306 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5307 (Warning Options): Document -Wswitch-enum.
5308 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5309 -Wswitch.
5310 (warn_switch_enum): Define variables.
5311 * flags.h (warn_switch_enum): Declare variables.
5312 * stmt.c (expand_end_case_type): When warn_switch_enum /
5313 -Wswitch-enum, perform switch checks.
5314 Fix PR c/5044.
5315
5316 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5317
5318 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5319 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5320 (reload_muladdsi_compare0_scratch): Delete.
5321
5322 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5323
5324 * doc/install.texi (*-*-freebsd*): Update.
5325
5326 2002-03-26 Richard Henderson <rth@redhat.com>
5327
5328 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5329 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5330
5331 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5332 types from the normal argument frame.
5333
5334 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5335 variable sized objects by reference.
5336 (sparc_va_arg): Receive them by reference too.
5337
5338 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5339
5340 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5341 code to not restoring global registers.
5342
5343 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5344
5345 * Makefile.in (ggc-common.o): Update.
5346 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5347 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5348 * c-tree.h (c_mark_tree): New.
5349 * ggc-common.c: Include langhooks.h.
5350 (gcc_mark_trees): Use new langhook.
5351 * ggc-callbacks.c: Delete file.
5352 * ggc.h (lang_mark_tree): Remove.
5353 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5354 (LANG_HOOKS_INITIALIZER): Update.
5355 * langhooks.h (struct lang_hooks): New hook.
5356 objc:
5357 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5358
5359 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5360
5361 * doc/cpp.texi: Exclude entire Top node from printed manual.
5362 Move option index after directive index. Insert page breaks
5363 before GFDL and concept index. Index environment variables
5364 with command line options.
5365 * doc/cppenv.texi: Use @vtable for environment variable list.
5366 Add paragraph explaining semantics of empty elements in path
5367 variables. Exclude a cross-reference to Fishkill from the
5368 manpage. Remove an unnecessary cross-reference of the entry
5369 right above the referer. Don't use @anchor in text that goes
5370 into manpage.
5371 * doc/cppopts.texi: Cross-reference the environment variables
5372 section, not the specific environment variable, for consistency.
5373
5374 2002-03-25 Richard Henderson <rth@redhat.com>
5375
5376 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5377 anywhere in the block. Don't refer to insns that have been
5378 removed from the chain. Iterate backward through the new insns.
5379 Don't refer to edges that have been removed.
5380
5381 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5382
5383 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5384 test for overflow of constant.
5385
5386 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5387
5388 PR target/2623
5389 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5390 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5391 these patterns on arm_archv4.
5392
5393 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5394
5395 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5396 int".
5397
5398 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5399
5400 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5401 float_handled, float_handler, float_signal, set_float_handler,
5402 and do_float_handler. Set handler for SIGFPE to crash_signal.
5403 * toplev.h: Don't prototype do_float_handler.
5404
5405 * c-lex.c: Fold parse_float into lex_number. Make warning
5406 about portability of hex float constants more informative, and
5407 don't issue it on top of a syntax error.
5408 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5409 their callers.
5410 * real.h: Define REAL_VALUE_ABS here...
5411 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5412 simplify_unary_real, simplify_binary_real, and
5413 simplify_binary_is2orm1 into their callers.
5414 * tree.c: Fold build_real_from_int_cst_1 into caller.
5415
5416 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5417
5418 * tsystem.h: Include float.h here...
5419 * libgcc2.c: ... not here.
5420
5421 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5422
5423 Fixes for: PR bootstrap/3591, target/5676
5424 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5425 defined. Do not disable exceptions or rtti.
5426 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5427 mcore.h. Disable exceptions and rtti, since they are not
5428 supported by EPOC.
5429
5430 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5431
5432 * c-decl.c (maybe_build_cleanup): Remove.
5433 * expr.c (expand_expr): Use langhook.
5434 * langhooks-def.h (lhd_return_null_tree,
5435 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5436 (LANGHOOKS_INITIALIZER): Update.
5437 * langhooks.c (lhd_return_null_tree): New.
5438 * langhooks.h (struct lang_hooks): New hook.
5439 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5440 * tree.h (maybe_build_cleanup): Remove.
5441
5442 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5443
5444 * regrename.c (build_def_use): Move recog_memoized
5445 before extract_insn.
5446
5447 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5448
5449 PR target/6043
5450 * expr.c (emit_group_store): Handle storing into CONCAT.
5451
5452 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5453
5454 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5455 corresponding MATCH_DUP.
5456
5457 2002-03-24 Richard Henderson <rth@redhat.com>
5458
5459 * unroll.c (unroll_loop): Zero label_map.
5460
5461 * gcse.c: Include except.h.
5462 * Makefile.in (gcse.o): Update.
5463
5464 2002-03-24 Richard Henderson <rth@redhat.com>
5465
5466 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5467 Do resolve_unique_section before shared data clause.
5468
5469 2002-03-24 Richard Henderson <rth@redhat.com>
5470
5471 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5472
5473 2002-03-24 Richard Henderson <rth@redhat.com>
5474
5475 * recog.c (peephole2_optimize): Split blocks when EH insns are
5476 generated in the middle of a block. Do global life update if
5477 zapped EH edges.
5478
5479 2002-03-24 Richard Henderson <rth@redhat.com>
5480
5481 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5482
5483 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5484
5485 preprocessor/3951
5486 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5487 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5488 (init_dependency_output): Don't make no_output decision here.
5489
5490 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5491
5492 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5493 warn_switch. Update description.
5494 (expand_end_case_type): Call check_for_full_enumeration_handling
5495 when warn_switch.
5496
5497 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5498
5499 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5500 (m68hc11_split_move): Call it to see if the source and destination
5501 operands use the same direction auto inc/dec mode, otherwise make the
5502 source an offsetable memory operand and generate an add.
5503
5504 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5505
5506 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5507 register for operand 2.
5508 ("*subsi3_zero_extendqi"): Likewise.
5509 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5510 bits so that it is compatible with a pop.
5511 ("*andhi3_gen"): Likewise.
5512 ("xorhi3"): Likewise.
5513
5514 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5515
5516 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5517 -pedantic here...
5518 (cpp_post_options): ... not here.
5519
5520 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5521 Aldy Hernandez <aldyh@redhat.com>
5522
5523 Removal of separate preprocessor cpp0.
5524
5525 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5526 cpp0, install-common): Update.
5527 * c-common.c (flag_preprocess_only): New.
5528 (c_common_init): Preprocess for -E.
5529 * c-common.h (flag_preprocess_only): New.
5530 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5531 * c-objc-common.c (c_init_decl_processing): Exit quickly
5532 for NULL return from c_common_init.
5533 * cpplib.h (cpp_preprocess_file): New.
5534 * cppmain.c (main, general_init, pfile, progname): Remove.
5535 (do_preprocessing): Rename cpp_preprocess_file, don't call
5536 cpp_finish. Don't close stdout here.
5537 (setup_callbacks): Update prototype.
5538 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5539 Update.
5540 * tradcpp.c (main): Ignore -quiet.
5541 objc:
5542 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5543
5544 2002-03-24 Richard Henderson <rth@redhat.com>
5545
5546 PR optimization/5742
5547 * machmode.def: Add inner mode field to complex modes.
5548 * config/mips/mips.c (mips_function_value): Always define. Add
5549 new argument to handle libcalls.
5550 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5551 (FUNCTION_VALUE): Likewise.
5552 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5553 * config/mips/mips-protos.h: Update.
5554
5555 2002-03-23 Richard Henderson <rth@redhat.com>
5556
5557 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5558 * config/sparc/sparc-protos.h: Update.
5559 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5560
5561 2002-03-23 Richard Henderson <rth@redhat.com>
5562
5563 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5564 _start or _init begins the text segment.
5565
5566 2002-03-23 David Edelsohn <edelsohn@gnu.org>
5567
5568 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
5569 not HOST_WIDEST_INT.
5570 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5571
5572 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
5573
5574 PR java/5489
5575 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5576 operand argument to output_return_instruction.
5577 * arm.c (arm_print_operand, case 'd'): If the operand is
5578 const_true_rtx then just return.
5579 (arm_print_operand, case 'D'): If the operand is const_true_rtx
5580 then abort.
5581
5582 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5583
5584 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5585 (Warning Options): Document -Wswitch-default.
5586 * toplev.c (W_options): Add -Wswitch-default. Update comment on
5587 -Wswitch.
5588 (warn_switch_default): Define variable.
5589 (warn_switch): Update comment.
5590 * flags.h (warn_switch_default): Declare variable.
5591 (warn_switch): Update comment.
5592 * stmt.c (expand_end_case): Check for and, when
5593 warn_switch_no_default, warn of a missing default case.
5594
5595 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5596
5597 * real.h (N): Special case 128 bit doubles.
5598
5599 * combine.c (simplify_comparison): When widening modes, ignore
5600 sign extension on CONST_INTs.
5601
5602 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5603
5604 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5605 passed to adjust_address. Fix comment formatting.
5606
5607
5608 2002-03-22 Zack Weinberg <zack@codesourcery.com>
5609
5610 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5611 Always make REAL_VALUE_TYPE a struct containing an array of
5612 HOST_WIDE_INT, not a double. Tidy up the code deciding how
5613 big it is. Don't declare or use union real_extract.
5614
5615 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5616 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5617 (print_operand), config/arm/arm.c (output_move_double),
5618 config/arm/arm.md (consttable_4, consttable_8),
5619 config/romp/romp.c (output_fpops), config/s390/s390.h
5620 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5621 (xtensa_output_literal): Don't use union real_extract.
5622
5623 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5624 (sfmode_constant_to_ulong), config/ns32k/merlin.h
5625 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5626 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5627 (PRINT_OPERAND): Don't use local version of union
5628 real_extract.
5629
5630 * config/convex/convex.c (check_float_value), config/vax/vax.c
5631 (vax_float_literal), config/m88k/m88k.md (divdf3),
5632 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5633 config/pdp11/pdp11.c (output_move_quad): Don't do host
5634 arithmetic on target floating point quantities.
5635
5636 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5637 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5638
5639 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5640 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5641
5642 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5643 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5644 INFINITY.
5645 * print-rtl.c (print_rtx): Disable code which needs
5646 floating-point emulator.
5647 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5648 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5649 depending on HOST_FLOAT_FORMAT to be defined properly.
5650
5651 * config/1750a/1750a.c (get_double, float_label): Delete.
5652 (print_operand): Delete huge commented-out chunk. Use
5653 REAL_VALUE_TO_DECIMAL.
5654 * config/1750a/1750a-protos.h: Delete prototypes of deleted
5655 functions.
5656 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5657 IEEE_FLOAT_FORMAT.
5658 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5659 Use REAL_VALUE_TO_DECIMAL as ELF version does.
5660 * config/m88k/m88k.c (real_power_of_2_operand,
5661 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5662 real_extract out of the union; run the input through
5663 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5664 from that into the union.
5665 * config/pdp11/pdp11.c (output_move_double): Rearrange
5666 parentheses to make automatic indenter happy.
5667
5668 * doc/tm.texi (Cross-compilation): Rename node to "Floating
5669 Point" and rewrite to describe current situation. Also adjust
5670 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5671 match code.
5672 * doc/rtl.texi: Adjust cross reference.
5673
5674 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5675
5676 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5677 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5678 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5679 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5680 prevent use of sp as a reload register.
5681 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5682 non_acc_reg_operand.
5683 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5684 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5685 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5686 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5687
5688 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5689
5690 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5691 * cpplex.c (unterminated): Delete.
5692 (parse_string): No string literal may extend over multiple
5693 lines. Suppress the error when preprocessing assembly.
5694 * cppmain.c (scan_translation_unit): Strings are single-line.
5695
5696 * doc/cpp.texi: Update to match.
5697
5698 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR optimization/5854
5701 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5702 Shut up warnings.
5703 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5704 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5705 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5706 const0 if scratch register was not allocated.
5707 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5708 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5709 with GEN_INT (...).
5710 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5711 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5712 with GEN_INT (...) everywhere. Remove constraints in define_split
5713 patterns.
5714 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5715 require scratch register for setting 0 into regs/non-pushable memory.
5716
5717 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5718
5719 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5720 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5721
5722 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
5723
5724 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
5725 * cppinit.c (cpp_create_reader): On by default.
5726 (cpp_handle_option): Handle -W[no-]endif-labels.
5727 (cpp_post_options): Also enable if -pedantic.
5728 * cpplib.c (do_else): Use it.
5729 (do_endif): Likewise.
5730 * doc/cppopts.texi: Document new option.
5731 * doc/invoke.texi: Document new option.
5732
5733 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
5734
5735 * config/i386/i386.c, config/i386/i386.md: Change all occurences
5736 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5737
5738 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5739
5740 * flow.c (calculate_global_regs_live): Clear aux fields of
5741 ENTRY and EXIT.
5742
5743 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5744
5745 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5746 REG or MEM subregs, pass rtx * instead of rtx to it.
5747 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5748 rtx * instead of rtx to alter_subreg.
5749 * config/m32r/m32r.c (gen_split_move_double): Likewise.
5750 * config/pj/pj.c (pj_output_rval): Likewise.
5751
5752 2002-03-22 Richard Henderson <rth@redhat.com>
5753
5754 PR target/3177
5755 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5756 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5757 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5758 (ia64_expand_prologue): Look at int_regs, not words, for number
5759 of incomming int regs.
5760
5761 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
5762
5763 * expr.c (expand_expr): A RESULT_DECL is part of a call.
5764
5765 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
5766
5767 * toplev.c (flag_loop_optimize, flag_crossjumping):
5768 New static variables.
5769 (rest_of_compilation): Conditionalize crossjumping and
5770 loop optimizer.
5771 (parse_options_and_default_flags): Default loop_optimize and
5772 crossjumping.
5773 (lang_independent_options): Add -fcrossjumping and -floop-optimize
5774 * invoke.texi (crossjumping, loop-optimize): Document.
5775
5776 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5777
5778 * real.c (eiisneg): Move outside #ifdef NANS.
5779
5780 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
5781
5782 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5783 frequencies match; avoid match on different loop depths.
5784 (try_crossjump_to_bb): Kill tests that no longer brings time
5785 savings.
5786 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5787 updating code.
5788 (split_edge): Likewise.
5789
5790 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5791 variable.
5792
5793 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5794 * cfgrtl.c: Include insn-config.h
5795 (split_block) Dirtify block in presence of conditional execution
5796
5797 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5798
5799 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5800 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5801 (function_arg): Constify CUMULATIVE_ARGS.
5802 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5803 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5804 (UNITS_PER_DOUBLE): New macro.
5805 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
5806 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
5807 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
5808 fp_regs and stack_words.
5809 (EABI_FLOAT_VARARGS_P): New macro.
5810 * config/mips/mips.c (struct mips_arg_info): New.
5811 (mips_arg_info): New function.
5812 (function_arg_advance): Use it. Add adjustment instructions here
5813 rather than in function_arg.
5814 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
5815 for VOIDmode at the beginning of the function.
5816 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
5817 (function_arg_pass_by_reference): Likewise.
5818 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5819 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5820 (mips_va_start): Likewise. Use the new stack_words field of
5821 CUMULATIVE_ARGS to set up overflow area. Reformat.
5822 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
5823 doubles and other types, aligning the overflow pointer for non-doubles
5824 too. Remove some code duplication. Replace hard-coded constants.
5825
5826 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5827
5828 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
5829 (CLASS_UNITS): Undefine.
5830 (CLASS_MAX_NREGS): Use FP_INC.
5831 * config/mips/mips.c (compute_frame_size): Likewise.
5832 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
5833
5834 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5835
5836 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
5837 prototype, and handle lexing numbers and identifiers.
5838 (parse_identifier): Update to new form of parse_slow.
5839 (parse_number): Fast path only, use parse_slow otherwise.
5840 (_cpp_lex_direct): Update calls to parse_number.
5841
5842 2002-03-21 DJ Delorie <dj@redhat.com>
5843
5844 * bb-reorder.c (make_reorder_chain_1): Protect against
5845 when redundant edges are omitted.
5846 * predict.c (dump_prediction): Likewise.
5847
5848 2002-03-21 Richard Henderson <rth@redhat.com>
5849
5850 PR target/5996
5851 * fixinc/inclhack.def (solaris_stdio_tag): New.
5852 * fixinc/fixincl.x: Regenerate.
5853
5854 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5855
5856 PR c/5597
5857 * c-typeck.c (process_init_element): Flag non-static
5858 initialization of a flexible array member as illegal.
5859
5860 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5861
5862 * config/rs6000/t-linux64: New.
5863 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
5864 t-ppccomm. Use t-rs6000 and t-linux64.
5865 (powerpc64-*-gnu* <tmake_file>): Likewise.
5866 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
5867 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
5868 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
5869
5870 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
5871
5872 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5873 flag_really_no_inline instead of optimize == 0.
5874
5875 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5876
5877 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5878
5879 * flags.h (flag_really_no_inline): New.
5880
5881 * c-common.c (c_common_post_options): Initialize
5882 flag_really_no_inline.
5883
5884 * toplev.c (flag_really_no_inline): New.
5885
5886 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5887
5888 * config/avr/avr.md (length): Fix length computation for
5889 conditional branches.
5890
5891 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
5892
5893 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
5894 sdbout.o, profile.o): Update.
5895 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
5896 langhook.
5897 * c-common.h (gettags): Move here from tree.h.
5898 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
5899 insert_block, getdecls, kept_level_p, global_bindings_p): New.
5900 * dbxout.c (dbxout_init): Use getdecls langhook.
5901 * expr.c (expand_expr): Use insert_block langhook.
5902 * fold-const.c: Include langhooks.h.
5903 (fold_range_test, fold_binary_op_with_conditional_arg,
5904 fold): Use global_bindings_p langhook.
5905 * integrate.c (expand_inline_function): Use insert_block langhook.
5906 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
5907 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
5908 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
5909 LANG_HOOKS_GETDECLS): New.
5910 (LANG_HOOKS_INITIALIZER): Update.
5911 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
5912 langhook.
5913 * langhooks.h (struct lang_hooks_for_decls): New.
5914 (struct lang_hooks): Update.
5915 * profile.c: Include langhooks.h.
5916 (output_func_start_profiler): Use new langhooks.
5917 * sdbout.c: Include langhooks.h.
5918 (sdbout_init, sdbout_finish): Use getdecls langhook.
5919 * stmt.c: Include langhooks.h.
5920 (expand_fixup, fixup_gotos): Use new langhooks.
5921 * stor-layout.c: Include langhooks.h.
5922 (variable_size): Use global_bindings_p langhook.
5923 * toplev.c (compile_file): Use getdecls langhook.
5924 * tree-inline.c (remap_block): Use insert_block langhook.
5925 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5926 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5927
5928 2002-03-21 Richard Henderson <rth@redhat.com>
5929
5930 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5931 constants in .data when -fpic.
5932
5933 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5934
5935 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5936 where appropriate.
5937
5938 2002-03-21 Tom Tromey <tromey@redhat.com>
5939
5940 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
5941
5942 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5943
5944 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5945
5946 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5947
5948 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5949 Richard Henderson <rth@redhat.com>
5950
5951 PR c/5354
5952 * c-common.c (c_expand_expr): Preserve result of a statement
5953 expression if needed.
5954
5955 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5956
5957 PR bootstrap/4195
5958 * genrecog.c (maybe_both_true_mode): Remove.
5959 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5960 * machmode.def (Pmode): Likewise.
5961
5962 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
5963
5964 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5965 (nonlocal_mentioned_p_1): New function.
5966 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5967 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5968 (mark_constant_function): Recognize pure functions.
5969 * rtl.h (global_reg_mentioned_p): New prototype.
5970 * rtlanal.c (global_reg_mentioned_p,
5971 global_reg_mentioned_p_1): New function.
5972
5973 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5974
5975 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5976 UNIX assert.h.
5977 * fixinc/fixincl.x: Regenerate.
5978
5979 2002-03-20 Jason Merrill <jason@redhat.com>
5980
5981 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5982
5983 2002-03-20 Michael Meissner <meissner@redhat.com>
5984
5985 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5986 -fstrict-aliasing.
5987
5988 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5989
5990 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5991 ".literal_position" directive before the constant pool.
5992
5993 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5994
5995 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5996 Add Craig Rodrigues.
5997 Add Brad Lucier to testers.
5998
5999 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6000
6001 PR target/4792
6002 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6003 to if_then_else.
6004 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6005 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6006 instead of insn_extract.
6007
6008 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6009
6010 PR bootstrap/4192
6011 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6012
6013 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6014 stmt if some case has been output.
6015
6016 2002-03-20 Jakub Jelinek <jakub@redhat.com>
6017
6018 PR c/5972
6019 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6020 movsfcc_1, movdfcc_1): Add %O2.
6021 * config/i386/i386.c (print_operand): Handle %ON.
6022 Print . before float condition codes in Sun as cmov syntax.
6023 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6024 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6025 no longer true.
6026
6027 2002-03-20 Philip Blundell <pb@nexus.co.uk>
6028
6029 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6030 return instruction if PC was popped.
6031
6032 2002-03-20 Bob Wilson <bob.wilson@acm.org>
6033
6034 * config/xtensa/xtensa.md: Remove unused type attributes.
6035 (adddi_carry, subddi_carry): Change type attribute to "multi".
6036
6037 2002-03-19 Dale Johannesen <dalej@apple.com>
6038
6039 PR optimization/5999, middle-end/5731
6040 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6041 multiplications by reciprocals.
6042
6043 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
6044
6045 * Makefile.in: Update.
6046 * c-common.c: Include langhooks.h.
6047 (inline_forbidden_p): Use new hook.
6048 * diagnostic.c: Include langhooks.h.
6049 (format_with_decl, announce_function,
6050 default_print_error_function): Use new hook.
6051 * dwarf2out.c (dwarf2_name): Use new hook.
6052 * function.c: Include langhooks.h.
6053 (init_function_start): Use new hook.
6054 * langhooks-def.h (lhd_decl_printable_name): New.
6055 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6056 (LANGHOOKS_INITIALIZER): Update.
6057 * langhooks.c (lhd_decl_printable_name): New.
6058 * langhooks.h (struct lang_hooks): New hook.
6059 * toplev.c (decl_name, decl_printable_name): Remove.
6060 (open_dump_file): Use new hook.
6061 (process_options): Remove old hook.
6062 * tree.h (decl_printable_name): Remove.
6063 objc:
6064 * objc-act.c (objc_init): Remove old hook.
6065 (objc_printable_name): Export.
6066 * objc-act.h (objc_printable_name): New.
6067 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6068
6069 2002-03-19 Jim Blandy <jimb@redhat.com>
6070
6071 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6072 the start_source_file debug hook, not the current line number.
6073
6074 2002-03-19 Richard Henderson <rth@redhat.com>
6075
6076 * flow.c (EH_USES): Provide default.
6077 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6078 * doc/tm.texi (EH_USES): New.
6079
6080 * config/ia64/ia64.c (ia64_eh_uses): New.
6081 * config/ia64/ia64-protos.h: Update.
6082 * config/ia64/ia64.h (EH_USES): New.
6083
6084 2002-03-19 Richard Henderson <rth@redhat.com>
6085
6086 * varasm.c (output_constant_def): Fix stupid typo.
6087
6088 2002-03-19 Richard Henderson <rth@redhat.com>
6089
6090 PR 5879
6091 * except.c (current_function_has_exception_handlers): New.
6092 * except.h: Declare it.
6093 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6094 Combine tests that disable all sibcalls for the function.
6095
6096 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6097
6098 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6099 for INTEGER_CST.
6100
6101 2002-03-19 Richard Henderson <rth@redhat.com>
6102
6103 PR 5977, 5991
6104 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6105 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6106
6107 2002-03-19 Jim Blandy <jimb@redhat.com>
6108
6109 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6110 name, even if the replacement list contains no tokens, as required
6111 by Dwarf.
6112
6113 2002-03-19 Jason Merrill <jason@redhat.com>
6114
6115 * varasm.c (globalize_decl): Get the name from the RTL, not
6116 DECL_ASSEMBLER_NAME.
6117
6118 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6119
6120 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6121
6122 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6123 subdi_carry): Define.
6124
6125 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6126
6127 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6128 about -fpic/-fPIC if extra_warnings set.
6129
6130 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6131
6132 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6133 TREE_STRING_POINTER.
6134 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6135
6136 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6137
6138 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6139 in favor of SP if FRAME_POINTER_REQUIRED is false.
6140
6141 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6142
6143 * emit-rtl.c (gen_int_mode): New function.
6144 * rtl.h: Prototype for it.
6145 * combine.c (make_extraction, simplify_comparison), expmed.c
6146 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6147 (convert_modes, store_field), optabs.c (expand_fix),
6148 simplify-rtx.c (neg_const_int, simplify_unary_real),
6149
6150 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6151 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6152
6153 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6154
6155 PR c/5656
6156 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6157 convert_parm_for_inlining.
6158 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6159 Define.
6160 * langhooks-def.h: Likewise.
6161 * objc/objc-lang.c: Likewise.
6162 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6163 function.
6164 * tree-inline.c (initialize_inlined_parameters):
6165 Call convert_parm_for_inlining lang hook if needed.
6166 * c-typeck.c (c_convert_parm_for_inlining): New function.
6167 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6168
6169 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6170
6171 * calls.c (precompute_arguments): Do not assume that temporaries
6172 can be destroyed after expanding the argument.
6173 (expand_call): Likewise.
6174
6175 2002-03-15 Eric Christopher <echristo@redhat.com>
6176
6177 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6178 Fix register preference on last change.
6179 * config/mips/mips.c (mips_return_in_memory): New function.
6180 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6181 * config/mips/mips-protos.h: Declare.
6182 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6183 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6184
6185 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6186
6187 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6188 a register too.
6189 (anddi3, iorsi3): Likewise.
6190
6191 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6192 use %gprel for symbols that are going to be placed in linkonce
6193 sections.
6194
6195 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6196 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6197 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6198 not needed. Disregard leaf_function_p().
6199 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6200 mips16 frame pointer.
6201 * config/mips/mips.md (store ra): Only to small SP offsets.
6202 2001-08-22 Graham Stott <grahams@redhat.com>
6203 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6204 return a REG rtx for the return address register.
6205
6206 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6207
6208 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6209 constant-pool addresses as "mode-dependent".
6210 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6211
6212 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6213
6214 PR target/5740
6215 * expr.c (emit_group_load): Use extract_bit_field if
6216 needed for CONCAT arguments.
6217
6218 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6219
6220 PR target/4863
6221 * arm.md (tablejump): Make this a define_expand. For PIC add the
6222 offset to the base of the table.
6223 (thumb_tablejump): Matcher for Thumb tablejump insn.
6224 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6225 as the difference of two labels.
6226 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6227 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6228 tables in the code.
6229 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6230 * arm.c (get_jump_table_size): If the table is not in the text
6231 section, return zero.
6232
6233 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6234
6235 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6236 of gen_rtx_SUBREG.
6237 (arm_reload_out_hi): Use gen_lowpart instead of
6238 gen_rtx_SUBREG to access QImode components.
6239 * config/arm/arm.md: Disable zero_extend split for QImode
6240 subregs in BIG_ENDIAN mode.
6241 (storehi_bigend): Match use of least significant byte.
6242 (storeinthi): Remove extraneous SUBREG.
6243 Add missing construction of operands[2].
6244 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6245 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6246 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6247
6248 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6249
6250 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6251 any_operand.
6252
6253 2002-03-17 Richard Henderson <rth@redhat.com>
6254
6255 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6256 explicitly.
6257
6258 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6259
6260 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6261 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6262
6263 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6264
6265 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6266
6267 * predict.c (estimate_bb_frequencies): Delete unused variables.
6268
6269 2002-03-17 Richard Henderson <rth@redhat.com>
6270
6271 * config/ia64/ia64.c (ia64_attribute_table): Move before
6272 targetm definition. Make static.
6273
6274 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6275
6276 * c-common.h (yyparse, c_common_parse_file): New.
6277 * c-lang.c: Include c-common.h.
6278 (LANG_HOOKS_PARSE_FILE): Redefine.
6279 * c-lex.c: Include c-common.h.
6280 (yyparse): Rename c_common_parse_file. Call yyparse.
6281 * c-parse.in (yyparse): Remove macro.
6282 * c-tree.h (yyparse_1): Remove.
6283 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6284 (LANG_HOOKS_INITIALIZER): Update.
6285 * langhooks.h (struct lang_hoooks): New hook parse_file.
6286 * toplev.c (compile_file): Use parse_file hook.
6287 * tree.h (yyparse): Remove.
6288 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6289
6290 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6291
6292 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6293 float_truncate, not fix.
6294 ("*truncdfsf2_real"): Ditto.
6295 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6296
6297 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6298
6299 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6300
6301 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6302 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6303 where appropriate. Make the second reference to
6304 leaf_function_p a function call, as intended. Reindented.
6305
6306 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6307 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6308
6309 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6310 add register to non-constant into sp.
6311
6312 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6313 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6314 (mips16_gp_pseudo_rtx): Lose.
6315 (INIT_EXPANDERS): Deleted.
6316 * config/mips/mips.c (mips_init_machine_status): New.
6317 (mips_free_machine_status): New.
6318 (mips_mark_machine_status): New.
6319 (override_options): Set them.
6320 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6321 (struct machine_function): ... new. Replaced all references.
6322 (mips_add_gc_roots): Don't mark them.
6323 (embedded_pic_fnaddr_reg): New, extracted from...
6324 (embedded_pic_offset): ... here.
6325 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6326 (movsi): Likewise.
6327
6328 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6329
6330 * cppinit.c: Revert -MD removal.
6331
6332 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6333
6334 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6335 soft registers by default for 68HC12.
6336 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6337 when compiling with -fomit-frame-pointer.
6338 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6339 (expand_epilogue): Likewise.
6340 (m68hc11_gen_rotate): Use exg when rotating by 8.
6341
6342 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6343
6344 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6345 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6346 (splits): Remove unused add splits.
6347 ("*addhi3_68hc12"): Tune constraints.
6348 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6349 constant fits in 8-bits and D is dead use abx/aby instructions.
6350 ("*addhi3"): Remove extern declaration of ix_reg.
6351 ("*subsi3"): Optimize and provide new split.
6352 ("subhi3"): Cleanup.
6353 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6354 (arith splits): For 68hc12 save the address register on the stack
6355 and do the arithmetic operation with a pop.
6356
6357 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6358
6359 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6360 allocating QImode in address registers.
6361 ("*movqi_m68hc11"): Likewise.
6362
6363 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6364
6365 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6366
6367 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6368
6369 * cppinit.c (print_help): Display -MD and -MMD.
6370 Don't display usage string. Update assertion syntax and
6371 typo.
6372 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6373 (cpp_handle_option): Update.
6374
6375 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6376
6377 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6378 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6379 and define it so that regardless of target CPU size,
6380 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6381 of "int" rather than "long."
6382
6383 2002-03-15 Richard Henderson <rth@redhat.com>
6384
6385 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6386 size as a tree.
6387
6388 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6389
6390 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6391 ("tstqi" split): Avoid using memory for tstqi on address register.
6392 (splits): Remove constraints.
6393 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6394 ("cmpdf", "cmpsf"): Remove since not used.
6395 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6396 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6397
6398 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6399
6400 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6401 ("neghi2"): Tighten constraints.
6402 ("one_cmplsi2"): Optimize and simplify split.
6403 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6404
6405 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6406
6407 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6408 and split of AND operation to clear the upper bits.
6409 ("*logicalsi3_zextqi"): Likewise.
6410 ("*logicallhi3_zexthi_ashift8"): Likewise.
6411 ("*logicalsi3_silshr16"): Likewise.
6412 ("logicalsi3_silshl16"): Likewise.
6413 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6414
6415 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6416
6417 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6418 (m68hc11_indirect_p): New function.
6419 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6420 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6421 TARGET_M6812.
6422 (asm_print_register): Likewise.
6423 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6424 (m68hc11_indirect_p): Declare.
6425 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6426 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6427 (TARGET_SWITCHES): New option -mrelax.
6428 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6429 destination.
6430 ("iorsi3", "xorsi3"): Likewise.
6431 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6432 ("*andhi3_mem"): New to handle destination in memory with bclr
6433 and a scratch register.
6434 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6435 ("*andhi3_const"): New when operand2 is constant.
6436 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6437 ("*andhi3_gen"): Cleanup of the old "andhi3".
6438 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6439 ("xorqi3"): Update constraints.
6440
6441 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6442
6443 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6444 for reg_equiv_memory_loc when the operand is a register that does
6445 not get a hard register (stack location).
6446 (tst_operand): After reload, accept all memory operand.
6447 (symbolic_memory_operand): Fix detection of symbolic references.
6448 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6449 accept symbols and any constant.
6450
6451 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6452
6453 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6454 note on the insn that sets the soft frame register.
6455 (must_parenthesize): ix and iy are also reserved names.
6456 (print_operand_address): One more place where parenthesis are required
6457 to avoid confusion with register names.
6458 (m68hc11_gen_movhi): Allow push of stack pointer.
6459 (m68hc11_check_z_replacement): Fix handling of parallel with a
6460 clobber.
6461 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6462 the replacement register is.
6463 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6464 and D8_REGS classes.
6465 (MODES_TIEABLE_P): All modes are tieable except QImode.
6466
6467 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6468
6469 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6470 (___subdi3): Likewise.
6471 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6472 (__map_data_section): Optimize 68hc11 case.
6473
6474 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6475
6476 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6477 than a shift to avoid adding a register with itself.
6478 (m68hc11_memory_move_cost): Take into account NO_REGS.
6479 (m68hc11_register_move_cost): Update and use memory move cost
6480 for soft registers.
6481 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6482 it gives more opportunities to cse to optimize.
6483 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6484 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6485
6486 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6487
6488 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6489 * c-common.def (CLEANUP_STMT): New tree node.
6490 * c-common.h (CLEANUP_DECL): New macro.
6491 (CLEANUP_EXPR): Likewise.
6492 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6493 * expr.c (expand_expr): Tidy.
6494 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6495 * tree-inline.c (initialize_inlined_parameters): Clean up
6496 new local variables.
6497
6498 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6499
6500 PR bootstrap/4128
6501 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6502 before movrXX only, use reg_overlap_mentioned_p.
6503 Only special case NE if just one insn can be generated.
6504
6505 2002-03-15 Jason Merrill <jason@redhat.com>
6506
6507 * varasm.c (assemble_variable): Call resolve_unique_section before
6508 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6509 of error_mark_node.
6510
6511 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6512
6513 PR target/5170
6514 * arm.md (split pattern for thumb shiftable immediates): Add comment
6515 explaining non-obvious test.
6516
6517 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6518
6519 PR target/5712
6520 * arm.md (movaddr, movaddr_insn): Delete.
6521
6522 2002-03-15 Jason Merrill <jason@redhat.com>
6523
6524 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6525 -fkeep-static-consts doesn't apply to comdats.
6526
6527 2002-03-14 Richard Henderson <rth@redhat.com>
6528
6529 * c-decl.c: Include c-pragma.h.
6530 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6531 (finish_function): Tidy.
6532 * c-pragma.c: Include c-common.h.
6533 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6534 (handle_pragma_weak): Use them.
6535 (init_pragma): Register pending_weaks.
6536 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6537 * print-tree.c (print_node): Print DECL_WEAK.
6538 * varasm.c (mark_weak_decls): Remove.
6539 (remove_from_pending_weak_list): Remove.
6540 (add_weak): Remove.
6541 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6542 (weak_decls): Make a tree_list.
6543 (declare_weak): Cons weak_decls directly.
6544 (globalize_decl): Remove weak_decls elements directly.
6545 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6546 symbols. Don't pretend to handle aliases.
6547 (init_varasm_once): Update weak_decls registry.
6548 * Makefile.in: Update dependencies.
6549
6550 2002-03-14 Richard Henderson <rth@redhat.com>
6551
6552 PR target/5312
6553 * config/ia64/ia64.c: Include tm_p.h last.
6554 (gen_nop_type): Remove duplicate definition.
6555 (cycle_end_fill_slots): Set sched_data for second L slot.
6556 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6557 (nop_cycles_until): Fix typos.
6558
6559 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6560
6561 PR optimization/5891
6562 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6563
6564 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6565
6566 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6567 descriptors correctly.
6568
6569 2002-03-14 Michael Meissner <meissner@redhat.com>
6570
6571 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6572 100, allowing MAX_UNROLLED_INSNS to be overridden.
6573
6574 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6575 --param.
6576
6577 * unroll.c (params.h): Include.
6578 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6579
6580 * doc/invoke.texi (--param max-unroll-insns): Document.
6581
6582 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6583
6584 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6585
6586 * arm.md: Fix warnings about constraints in peepholes and splits.
6587
6588 2002-03-14 Zack Weinberg <zack@codesourcery.com>
6589
6590 * cpphash.h (struct lexer_state): Remove line_extension member.
6591 * cpplib.c (dequote_string, do_linemarker): New functions.
6592 (linemarker_dir): New data object.
6593 (DIRECTIVE_TABLE): No longer need to interpret #line in
6594 preprocessed source. Delete obsolete comment about return
6595 values of handlers.
6596 (end_directive, directive_diagnostics, _cpp_handle_directive):
6597 Don't muck with line_extension.
6598 (directive_diagnostics): No need to issue warnings for
6599 linemarkers here.
6600 (_cpp_handle_directive): Issue warnings for linemarkers here,
6601 when appropriate. Dispatch linemarkers to do_linemarker, not
6602 do_line.
6603 (do_line): Code to handle linemarkers split out to do_linemarker.
6604 Convert escape sequences in filename argument, both places.
6605
6606 * cppmacro.c (quote_string): Rename cpp_quote_string and
6607 export. All callers changed.
6608 * cpplib.h (cpp_quote_string): Prototype.
6609 * cppmain.c (print_line): Call cpp_quote_string on to_file
6610 before printing it.
6611
6612 * doc/cpp.texi: Document that escapes are now interpreted in
6613 #line and in linemarkers, and that non-printing characters are
6614 converted to octal escapes when linemarkers are generated.
6615
6616 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6617
6618 * emit-rtl.c (try_split): Use delete_insns.
6619 * recog.c (split_all_insns): Fix terminating condition.
6620
6621 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6622 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6623
6624 PR target/5828
6625 * arm.c (arm_output_epilogue): Fix floating-point register save
6626 adjustment when using a frame pointer.
6627
6628 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
6629
6630 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6631 * config/mips/mips.c (compute_frame_size): Retrofit them here.
6632 (save_restore_insns, mips_expand_epilogue): And here.
6633 (build_mips16_call_stub): And here.
6634 (mips_function_value): Use the new macros to decide whether a single
6635 or complex float can be returned in floating-point registers. Return
6636 a parallel rtx in the complex case.
6637
6638 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
6639
6640 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6641 call after liveness analysis.
6642
6643 * recog.c (split_insn): Use delete_insn_and_edges.
6644
6645 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6646 instructions to have branch prediction notes.
6647 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6648
6649 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
6650
6651 * configure.in: Don't pass -Wno-long-long to a ADA compiler
6652 that doesn't support it.
6653 * configure: Regenerate.
6654
6655 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6656
6657 PR target/5626
6658 * config/sparc/sparc.md (normal_branch, inverted_branch,
6659 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6660 inverted_fp_branch): Adjust calls to output_cbranch.
6661 Set length attribute.
6662 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6663 output_v9branch. Set length attribute.
6664 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6665 predicates.
6666 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6667 (output_cbranch): Likewise. Handle far branches.
6668 (output_v9branch): Handle far branches.
6669 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6670 Adjust prototypes.
6671 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6672 noov_compare64_op predicates.
6673
6674 2002-03-13 Jason Merrill <jason@redhat.com>
6675
6676 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6677 into the function and constify it.
6678 * gthr-dce.h, gthr-solaris.h: Likewise.
6679
6680 2002-03-13 David Edelsohn <edelsohn@gnu.org>
6681
6682 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6683 * config/rs6000/rs6000.c (rs6000_va_arg): Use
6684 std_expand_builtin_va_arg if not ABI_V4.
6685
6686 2002-03-13 Jason Merrill <jason@redhat.com>
6687
6688 * varasm.c (globalize_decl): New fn.
6689 (assemble_start_function): Use it.
6690 (asm_emit_uninitialized): Use it.
6691 (assemble_alias): Use it.
6692 (assemble_variable): Use it.
6693
6694 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
6695
6696 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6697 2002-03-12 internal visibility change.
6698 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6699 visibility into SYMBOL_REF_FLAG.
6700
6701 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
6702
6703 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6704 VOIDmode operand. Add compile-time optimization for constant results.
6705
6706 2002-03-12 Jason Merrill <jason@redhat.com>
6707
6708 * c-typeck.c (convert_for_assignment): Don't allow conversions
6709 between pointers and references. Only allow lvalues to convert to
6710 reference.
6711
6712 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
6713
6714 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6715 before prologue, to avoid scheduling problems.
6716
6717 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6718
6719 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6720 (ELIMINABLE_REGS): Add sfp->sp.
6721 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6722
6723 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6724
6725 PR optimization/5892
6726 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6727
6728 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6729
6730 * loop.c (basic_induction_var): Don't call convert_modes if mode
6731 classes are different.
6732
6733 2002-03-12 Richard Henderson <rth@redhat.com>
6734
6735 PR optimization/5901
6736 * function.c (reposition_prologue_and_epilogue_notes): Position
6737 the markers after/before the last/first insn not deleted.
6738
6739 2002-03-12 Richard Henderson <rth@redhat.com>
6740
6741 PR optimization/5878
6742 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6743 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6744 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6745
6746 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6747 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6748 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6749
6750 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6751 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6752 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6753 also. Don't set it if not flag_pic.
6754 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6755 to be INVALID_REGNUM when not used.
6756
6757 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
6758
6759 * expmed.c (store_bit_field): Reset alias set for memory.
6760 (extract_bit_field): Same.
6761
6762 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6763
6764 * c-common.c (c_tree_code_type, c_tree_code_length,
6765 c_tree_code_name, add_c_tree_codes): Delete.
6766 * c-common.h (add_c_tree_codes): Delete.
6767 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6768 Define.
6769 * c-objc-common.c (c_objc_common_init): Don't call
6770 add_c_tree_codes, instead set lang_unsafe_for_reeval.
6771 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6772 objc_tree_code_name, add_objc_tree_codes): Delete.
6773 (objc_init): Don't call add_objc_tree_codes.
6774 * objc/objc-lang.c (tree_code_type, tree_code_length,
6775 tree_code_name): Define.
6776 * toplev.c (lang_independent_init): Don't set
6777 tree_code_length[IDENTIFIER_NODE].
6778 * tree.c (tree_code_type, tree_code_length, tree_code_name):
6779 Delete definitions, moved to language front-ends.
6780 * tree.def (IDENTIFIER_NODE): Hardwire the length.
6781 * tree.h (tree_code_type, tree_code_length, tree_code_name):
6782 Const-ify.
6783 (tree_code_length): Change type to unsigned char.
6784
6785 2002-03-12 Richard Henderson <rth@redhat.com>
6786
6787 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6788 internal visibility change.
6789
6790 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6791
6792 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6793 validize_mem() instead of change_address to avoid clobbering
6794 memory attributes.
6795
6796 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
6797
6798 * c-lex.h (position_after_whitespace): Remove.
6799
6800 2002-03-12 Jakub Jelinek <jakub@redhat.com>
6801
6802 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6803 (lex_string): Use unsigned char pointers.
6804
6805 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6806
6807 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6808 is not a valid memory_operand.
6809
6810 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6811
6812 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6813 * config/xtensa/lib1funcs.asm: Fix copyright to include
6814 special case for libgcc files.
6815 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6816 (__divsi3): Likewise.
6817 (__umodsi3): Likewise.
6818 (__modsi3): Likewise.
6819 * config/xtensa/lib2funcs.S: Fix copyright to include
6820 special case for libgcc files.
6821
6822 2002-03-12 Tom Rix <trix@redhat.com>
6823
6824 * collect2.c (resolve_lib_name): Move outside of
6825 OBJECT_FORMAT_COFF ifdef.
6826 (ignore_library): Same.
6827
6828 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6829
6830 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6831
6832 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6833
6834 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6835 to function_section before writing out the constant pool.
6836
6837 2002-03-12 David Edelsohn <edelsohn@gnu.org>
6838
6839 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6840 zero_constant.
6841 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6842
6843 2002-03-12 Alan Modra <amodra@bigpond.net.au>
6844
6845 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
6846 (adddi3): Likewise.
6847 (movdf): Likewise.
6848 (movdi): Likewise.
6849 (cmpsi splitter): Likewise.
6850 (modsi3): Fail if <= 0.
6851 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
6852 redundant test when HOST_BITS_PER_WIDE_INT != 32.
6853 (reg_or_sub_cint64_operand): Likewise.
6854 (num_insns_constant_wide): Optimize sign extension.
6855 (rs6000_legitimize_address): Likewise.
6856
6857 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6858
6859 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6860 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6861
6862 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6863
6864 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6865 address calculation.
6866
6867 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6868
6869 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
6870 scratch register to DImode / TImode.
6871 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
6872 register used does not overlap the target.
6873
6874 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6875
6876 * Makefile.in (debug.o): Depend on debug.h.
6877 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
6878 * debug.c (do_nothing_debug_hooks): Likewise.
6879 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
6880 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
6881 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
6882 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6883 * dwarfout.c (dwarf_debug_hooks): Likewise.
6884 * integrate.c (output_inline_function): Likewise.
6885 * objc/objc-act.c (synth_module_prologue): Likewise.
6886 * sdbout.c (sdb_debug_hooks): Likewise.
6887 * toplev.c (debug_hooks): Likewise.
6888 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6889
6890 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6891
6892 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
6893 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
6894 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
6895 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
6896 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
6897 * defaults.h (POINTER_SIZE): Define.
6898 * doc/tm.texi (POINTER_SIZE): Document default.
6899
6900 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6901
6902 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6903
6904 2002-03-11 Richard Henderson <rth@redhat.com>
6905
6906 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6907 if rebuild_label_notes_after_reload.
6908
6909 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
6910
6911 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
6912 emit pic register load if "internal" visibility.
6913 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
6914 (cris_expand_builtin_va_arg): Do all computations on trees.
6915
6916 2002-03-11 Richard Henderson <rth@redhat.com>
6917
6918 * rtlanal.c: Include recog.h.
6919 (keep_with_call_p): Fix thinko.
6920 * Makefile.in (rtlanal.o): Update dependencies.
6921
6922 2002-03-11 Chris Meyer <cmeyer@gatan.com>
6923
6924 * genflags.c (gen_insn): Use IS_VSPACE.
6925 * genoutput.c (output_insn_data): Likewise.
6926 (process_template): Likewise.
6927
6928 2002-03-11 Richard Henderson <rth@redhat.com>
6929
6930 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6931
6932 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
6933
6934 * Makefile.in: Update.
6935 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6936 Update documentation.
6937 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6938 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6939
6940 2002-03-11 Zack Weinberg <zack@codesourcery.com>
6941
6942 * Makefile.in: Give texi2pod its input file as a command line
6943 argument, not on stdin.
6944
6945 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
6946 Daniel Berlin <dan@dberlin.org>
6947
6948 C++ alias analysis improvement.
6949 * alias.c (record_component_aliases): Record aliases for base
6950 classes too.
6951
6952 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
6953
6954 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6955
6956 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6957
6958 * toplev.c (vms_fopen): Remove, not needed.
6959
6960 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6961
6962 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6963
6964 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6965 for FP, already done later.
6966
6967 * toplev.c (debug_args): Add entry for VMS_DEBUG.
6968 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6969
6970 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
6971
6972 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6973 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6974 LARGEST_EXPONENT_IS_NORMAL for the given mode.
6975 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6976 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6977 (ediv, emul, eldexp, esqrt): Likewise.
6978 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6979 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6980 (saturate): New function.
6981 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6982 (make_nan): Use a saturation value instead of a NaN if
6983 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
6984 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6985 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
6986 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
6987 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6988 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6989 !ROUND_TOWARDS_ZERO.
6990 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6991 (ROUND_TOWARDS_ZERO): Document.
6992
6993 2002-03-11 Andreas Jaeger <aj@suse.de>
6994
6995 * cfg.c (dump_flow_info): Remove unused variable.
6996
6997 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6998
6999 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7000 computations on trees.
7001
7002 2002-03-10 Richard Henderson <rth@redhat.com>
7003
7004 PR 5693:
7005 * reload.c (copy_replacements_1): New.
7006 (copy_replacements): Use it to recurse through the rtx.
7007
7008 2002-03-10 Richard Henderson <rth@redhat.com>
7009
7010 * loop.c (strength_reduce): Compute number of iterations as
7011 unsigned HOST_WIDE_INT.
7012
7013 2002-03-10 Richard Henderson <rth@redhat.com>
7014
7015 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7016 to move away from the end of the block.
7017
7018 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7019
7020 PR preprocessor/5899
7021 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7022
7023 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7024
7025 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7026
7027 * attribs.c (decl_attributes): Fix signed/unsigned warning.
7028
7029 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
7030
7031 * config/mmix/mmix.c: Improve comments.
7032 (mmix_target_asm_function_prologue): Drop variable
7033 empty_stack_frame. Don't allocate unused slot above fp.
7034 (mmix_target_asm_function_epilogue): Mirror prologue changes.
7035 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7036 brace in first column.
7037 (enum reg_class): Ditto.
7038 (FIRST_PARM_OFFSET): Now 0.
7039 (USER_LABEL_PREFIX): Remove #if 0:d definition.
7040
7041 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7042
7043 * combine.c (make_extraction): Fix error in last change.
7044
7045 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7046
7047 * c4x.c (c4x_fp_reglist): Const-ify.
7048 * cris.c (cris_print_operand): Likewise.
7049 * i386.c (ix86_va_arg): Likewise.
7050 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7051 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7052 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7053 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7054 * mcore.h (regno_reg_class): Likewise.
7055 * mips.c (gen_int_relational): Likewise.
7056 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7057 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7058 * pdp11.c (move_costs): Likewise.
7059 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7060 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7061 Likewise.
7062 * s390.h (regclass_map): Likewise.
7063 * sh.c (shift_amounts): Likewise.
7064 * sh.md (rotlsi3): Likewise.
7065
7066 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7067
7068 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7069 (ne0+5): Use new clobber to generate proper shift pattern.
7070 Patch by Michael Matz <matz@kde.org>.
7071
7072 2002-03-09 Andreas Schwab <schwab@suse.de>
7073
7074 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7075
7076 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7077
7078 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7079
7080 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7081
7082 PR middle-end/5877
7083 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7084 even for non-representable constants.
7085
7086 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7087
7088 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7089 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7090 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7091 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7092 (pop_function_context): Compute MAY_SHARE parameter for
7093 fixup_var_refs.
7094 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7095 (gen_mem_addressof): Call fixup_var_refs with new parm.
7096
7097 * combine.c (make_extraction): Don't make extension of CONST_INT.
7098
7099 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7100
7101 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7102 in o32 and o64 ABIs.
7103 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7104 but getting fixed-size structs passed in registers regardless of
7105 padding in o32 and o64 ABIs.
7106
7107 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7108 offset before loading address of argument passed by transparent
7109 reference.
7110
7111 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7112
7113 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7114
7115 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7116
7117 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7118 marker such that registers after it are saved.
7119
7120 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7121
7122 * sparc.c (arith_4096_operand): Fix error in last change.
7123
7124 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7125
7126 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7127 defaults for MEABI.
7128
7129 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7130
7131 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7132 vectors.
7133
7134 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7135
7136 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7137
7138 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7139
7140 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7141 removed; fix return value.
7142 * combine.c (combine_instructions): Dirtify blocks where we failed to
7143 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7144 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7145
7146 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7147
7148 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7149
7150 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7151
7152 * recog.c (peephole2_optimize): Re-distribute EH edges.
7153
7154 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7155
7156 * expr.c (expand_expr): Use unsave lang hook.
7157 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7158 (LANG_HOOKS_INITIALIZER): Update.
7159 * langhooks.h (struct lang_hooks): New hook unsave.
7160 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7161 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7162 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7163 (unsave_expr_now): Remove.
7164 * tree.h (unsave_expr_now, lang_unsave,
7165 lang_unsave_expr_now): Remove.
7166 (lhd_unsave): New.
7167
7168 2002-03-08 Andreas Jaeger <aj@suse.de>
7169
7170 * flow.c (propagate_block_delete_insn): Remove unused variable.
7171
7172 2002-03-08 Kazu Hirata <kazu@hxi.com>
7173
7174 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7175 insn length for memory load/store.
7176
7177 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7178
7179 * doc/install.texi (--with-libiconv-prefix): Document.
7180
7181 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7182
7183 * doc/sourcebuild.texi: Fix typo.
7184
7185 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7186
7187 PR c/3711
7188 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7189 trees.
7190
7191 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7192
7193 * rtl.c (copy_most_rtx): Move from here ...
7194 * emit-rtl.c (copy_most_rtx): ... to here.
7195
7196 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7197
7198 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7199 SUBTARGET_CPP_SIZE_SPEC.
7200 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7201
7202 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7203
7204 2002-03-07 Matt Hiller <hiller@redhat.com>
7205
7206 * gensupport.c (first_dir_md_include): Renamed from include;
7207 change all references.
7208 (last_dir_md_include): Renamed from last_include; change all
7209 references.
7210 (init_md_reader): Unconditionally initialize base_dir whether or
7211 not filename is a relative path.
7212
7213 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7214
7215 * config/fp-bit.c (_unord_f2): Compile it in even if
7216 US_SOFTWARE_GOFAST is enabled.
7217
7218 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7219 NULL_RTX. Set all HFmode operations as NULL_RTX.
7220 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7221 NULL_RTX, try reversing the comparison and the operands.
7222
7223 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7224
7225 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7226 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7227 and MATCH_OP_DUP.
7228
7229 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7230
7231 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7232
7233 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7234
7235 * basic-block.h (fixup_abnormal_edges): Declare.
7236 * reload1.c (fixup_abnormal_edges): New function.
7237 * reg-stack.c (convert_regs): Use it.
7238
7239 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7240
7241 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7242
7243 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7244
7245 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7246 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7247 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7248 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7249 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7250 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7251 unless x and y could be infinite.
7252 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7253 Check that the common type of both arguments is a real, even for
7254 targets without unordered comparisons. Allow an integer argument
7255 to be compared against a real.
7256 (expand_tree_builtin): Use expand_unordered_cmp.
7257 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7258 * cse.c (fold_rtx): Likewise. Fix indentation.
7259 * fold-const.c (fold_real_zero_addition_p): New.
7260 (fold): Use it, and the new HONOR_... macros.
7261 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7262 * jump.c (reversed_comparison_code_parts): After searching for
7263 the true comparison mode, use HONOR_NANS to decide whether it
7264 can be safely reversed.
7265 (reverse_condition_maybe_unordered): Remove IEEE check.
7266 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7267 to decide which simplifications are valid. Allow the following
7268 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7269 and (a - -b) to (a + b).
7270 (simplify_relational_operation): Use HONOR_NANS.
7271 * doc/tm.texi: Document the MODE_HAS_... macros.
7272
7273 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7274
7275 * combine.c (simplify_comparison): If simplifying a logical shift
7276 right and compare with constant, force the comparison to unsigned.
7277
7278 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7279
7280 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7281
7282 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7283 -mabi=no-altivec
7284 (alt_reg_names): Remove % for vrsave.
7285
7286 2002-03-06 Richard Henderson <rth@redhat.com>
7287
7288 PR optimization/5844
7289 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7290 if used indicates we've already emitted one copy of an operand.
7291 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7292 (gen_split): Supply a non-null used.
7293
7294 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7295
7296 * reload1.c (reload): Unshare all rtl after reload is done.
7297
7298 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7299 but simply fail if the expression is too complex to simplify.
7300 (simplify_gen_binary): Handle simplify_plus_minus failures.
7301
7302 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7303
7304 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7305 consistently call delete_trivially_dead_insns after CSE and GCSE;
7306 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7307 after liveness2; update comment in last crossjumping.
7308 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7309
7310 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7311
7312 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7313 after completing fast dead code elimination.
7314
7315 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7316 COMPARE operator.
7317
7318 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7319
7320 * version.c: Fix misplaced leading blanks on first line.
7321
7322 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7323
7324 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7325
7326 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7327
7328 * cfgcleanup.c (mentions_nonequal_regs): New function.
7329 (thread_jump): Use it.
7330 * toplev.c (rest_of_compilation): Run jump threading after
7331 liveness.
7332
7333 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7334
7335 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7336 patch.
7337
7338 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7339
7340 * predict.c (estimate_bb_frequencies): Do not reload the
7341 frequencies from notes.
7342
7343 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7344
7345 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7346 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7347
7348 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7349 delete_noop_moves): Return indeger.
7350 * flow.c (ndead): New variable.
7351 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7352 BB argument; update callers.
7353 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7354 (life_analysis): Do not call purge_all_dead_edges.
7355 (update_life_info): Return number of deleted insns; print statistics.
7356 (update_life_info_in_dirty_blocks): likewise.
7357 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7358 return number of insns deleted.
7359
7360 * cse.c: Include timevar.h
7361 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7362 iterate until stabilizes; print statistics; return number of killed
7363 insns.
7364 * Makefile.in: (cse.o): Add timevar.h dependency
7365 * rtl.h (delete_trivially_dead_insns): New.
7366 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7367 * toplev.c (rest_of_compilation): Update callers.
7368
7369 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7370 (try_optimize_cfg): Do not update liveness.
7371 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7372 removal stabilizes; use delete_trivially_dead_insns.
7373
7374 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7375
7376 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7377
7378 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7379 callbacks when processing assembly language.
7380
7381 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7382
7383 * pa.h (ASM_FILE_END): Define.
7384 * som.h (ASM_FILE_END): Delete.
7385
7386 * pa.c (function_arg): Don't pass floats in general registers in
7387 indirect calls if TARGET_ELF32.
7388
7389 2002-03-05 Richard Henderson <rth@redhat.com>
7390
7391 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7392
7393 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7394
7395 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7396
7397 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7398
7399 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7400 -r command line. Don't hide any symbols if not building
7401 shared libgcc.
7402
7403 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7404
7405 * cfg.c (dump_flow_info): Warn about profile mismatches.
7406 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7407 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7408
7409 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7410
7411 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7412 wide volatile memory by parts.
7413
7414 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7415
7416 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7417 is NULL.
7418
7419 2002-03-05 Richard Henderson <rth@redhat.com>
7420
7421 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7422
7423 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7424
7425 * toplev.c (documented_lang_options): Document more
7426 language-specific options.
7427 * doc/invoke.texi (Warning Options): Correct documentation for
7428 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7429 * c-decl.c (c_decode_option): Use a table to handle warning options.
7430
7431 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7432
7433 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7434 parameter to mmix_encode_section_info.
7435 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7436 relocatably. Always produce ELF, not mmo if linking relocatably.
7437 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7438 first is non-zero, don't add symbol prefix.
7439 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7440 prototype accordingly.
7441
7442 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7443
7444 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7445
7446 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7447
7448 * configure.in: Increase required makeinfo version to 4.1.
7449 * configure: Regenerate.
7450
7451 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7452
7453 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7454 elsewhere now.
7455
7456 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7457
7458 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7459 * doc/invoke.texi: Fix @math uses.
7460
7461 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7462
7463 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7464 removal
7465
7466 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7467
7468 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7469 (powerpc-*-eabisimaltivec*): Same.
7470
7471 * config/rs6000/t-ppcendian: New.
7472
7473 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7474
7475 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7476 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7477 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7478
7479 2002-03-03 Richard Henderson <rth@redhat.com>
7480
7481 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7482
7483 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7484
7485 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7486 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7487 tree.c, config/m68k/m68k.c:
7488 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7489 REAL_ARITHMETIC blocks unconditional. Delete some further
7490 #ifdef blocks predicated on REAL_ARITHMETIC.
7491 * flags.h, toplev.c: Delete remaining references to
7492 flag_pretend_float.
7493
7494 * doc/invoke.texi: Remove documentation of -fpretend-float.
7495 * doc/tm.texi: Describe the various REAL_* macros as provided by
7496 real.h, not by the target configuration files.
7497
7498 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7499 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7500 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7501 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7502 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7503 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7504 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7505 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7506 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7507 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7508 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7509 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7510 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7511 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7512 config/xtensa/xtensa.h:
7513 Do not define, undefine, or mention in comments any of
7514 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7515 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7516 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7517 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7518 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7519 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7520 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7521 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7522 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7523
7524 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7525
7526 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7527 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7528 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7529 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7530 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7531 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7532 Delete.
7533 * defaults.h (BITS_PER_WORD): Define.
7534 * doc/tm.texi (BITS_PER_WORD): Document default value.
7535
7536 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7537 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7538 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7539
7540 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7541
7542 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7543 lieu of explicit sizeof/sizeof.
7544 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7545 ix86_expand_builtin): Likewise.
7546 * mips.c (mips_add_gc_roots): Likewise.
7547 * mmix.c (mmix_output_condition): Likewise.
7548 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7549 altivec_init_builtins): Likewise.
7550 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7551 * cppexp.c (Nsuff, parse_number): Likewise.
7552 * cppinit.c (builtin_array_end): Likewise.
7553 * gcc.c (n_default_compilers, process_command): Likewise.
7554 * genpreds.c (output_predicate_decls): Likewise.
7555 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7556 * lcm.c (N_ENTITIES): Likewise.
7557 * stor-layout.c (set_sizetype): Likewise.
7558
7559 2002-03-03 Richard Henderson <rth@redhat.com>
7560
7561 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7562 for types or labels.
7563
7564 2002-03-03 Richard Henderson <rth@redhat.com>
7565
7566 * c-decl.c (start_decl): Initialized variables are not common.
7567
7568 2002-03-02 Per Bothner <per@bothner.com>
7569
7570 * gcc.c (option_map): Suport new --bootclasspath option.
7571 --CLASSPATH is now just an alias for --classpath.
7572
7573 2002-03-02 Richard Henderson <rth@redhat.com>
7574
7575 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7576 load if "internal" visibility.
7577 * doc/extend.texi: Document visibility meanings.
7578
7579 2002-03-02 Richard Henderson <rth@redhat.com>
7580
7581 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7582 to functions as well.
7583
7584 2002-03-02 Richard Henderson <rth@redhat.com>
7585
7586 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7587 (handle_visibility_attribute): Don't call assemble_visibility.
7588 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7589 without asmspec. Invoke assemble_alias when needed.
7590 * varasm.c (maybe_assemble_visibility): New.
7591 (assemble_start_function, assemble_variable, assemble_alias): Use it.
7592
7593 2002-03-02 Richard Henderson <rth@redhat.com>
7594
7595 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7596 invoke ENCODE_SECTION_INFO with first call flag.
7597
7598 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7599 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7600 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7601 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7602 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7603 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7604 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7605 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7606 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7607 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7608 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7609 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7610 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7611 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7612 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7613 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7614 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7615 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7616 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7617 config/sh/sh.h, config/sparc/sparc.h,
7618 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7619 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7620 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7621 FIRST argument. As needed, examine it and do nothing.
7622
7623 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7624 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7625 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7626
7627 * config/arm/t-pe (pe.o): Add dependencies.
7628
7629 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7630
7631 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7632 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7633 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7634 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7635 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7636 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7637 * defaults.h (BITS_PER_UNIT): Define.
7638 * doc/tm.texi (BITS_PER_UNIT): Document default value.
7639
7640 2002-03-02 Kazu Hirata <kazu@hxi.com>
7641
7642 * config/h8300/h8300-protos.h: Add a prototype for
7643 compute_a_shift_length.
7644 * config/h8300/h8300.c (h8300_asm_insn_count): New.
7645 (compute_a_shift_length): Likewise.
7646 (h8300_adjust_insn_length): Do not adjust insn length of shift
7647 insns.
7648 * config/h8300/h8300.md (anonymous shift patterns): Use
7649 compute_a_shift_length.
7650
7651 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7652
7653 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7654 trunc_int_for_mode.
7655
7656 * emit-rtl.c (offset_address): Call update_temp_slot_address.
7657
7658 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7659
7660 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7661 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7662 * flags.h (flag_zero_initialized_in_bss): Declare.
7663 * toplev.c (flag_zero_initialized_in_bss): New flag.
7664 (lang_independent_options): Add flag_zero_initialized_in_bss.
7665 * tree.c (initializer_zerop): New function.
7666 * tree.h (initializer_zerop): Declare.
7667 * varasm.c (assemble_variable): If we can emit bss, put zero
7668 initializers in the bss section.
7669
7670 2002-03-02 Alan Modra <amodra@bigpond.net.au>
7671
7672 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7673 like more than one symbol per .weak directive.
7674
7675 2002-03-01 Richard Henderson <rth@redhat.com>
7676
7677 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7678 adjust argument_pointer by pretend_args_size.
7679 (ia64_va_start): Adjust va_start address by -pretend_args_size.
7680
7681 2002-03-01 Kazu Hirata <kazu@hxi.com>
7682
7683 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7684
7685 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
7686
7687 * toplev.c (rest_of_compilation): Delete dead jumptables before
7688 loop.
7689 * flow.c (delete_dead_jumptables): Make global.
7690 * rtl.h (delete_dead_jumptables): Declare.
7691
7692 2002-03-01 David Edelsohn <edelsohn@gnu.org>
7693
7694 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7695 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7696 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7697
7698 2002-03-01 Kazu Hirata <kazu@hxi.com>
7699
7700 * config/h8300/h8300-protos.h: Fix formatting.
7701 * config/h8300/h8300.c: Likewise.
7702 * config/h8300/h8300.h: Likewise.
7703
7704 2002-03-01 Kazu Hirata <kazu@hxi.com>
7705
7706 * config/h8300/h8300.c (print_operand): Support 16-bit
7707 constant addresses.
7708 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7709
7710 2002-02-28 Richard Henderson <rth@redhat.com>
7711
7712 * expmed.c (store_bit_field): Prevent generation of CONCATs;
7713 pun complex values as integers; use gen_lowpart instead of
7714 gen_rtx_SUBREG.
7715 (extract_bit_field): Likewise.
7716
7717 2002-03-01 Alan Modra <amodra@bigpond.net.au>
7718 David Edelsohn <edelsohn@gnu.org>
7719
7720 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7721 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7722 (SUPPORTS_WEAK): Likewise.
7723 * output.h (add_weak): Add tree param.
7724 * varasm.c (add_weak): Likewise. Save decl.
7725 (struct weak_syms): Add decl field.
7726 (mark_weak_decls): New function.
7727 (init_varasm_once): ggc_add_root mark_weak_decls.
7728 (assemble_start_function): Use ASM_WEAKEN_DECL.
7729 (assemble_variable): Likewise.
7730 (assemble_alias): Likewise.
7731 (declare_weak): Pass decl to add_weak.
7732 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7733 (remove_from_pending_weak_list): Declare and define for
7734 ASM_WEAKEN_DECL.
7735 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7736 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7737 * defaults.h (SUPPORTS_WEAK): Likewise.
7738 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7739 .weak for code sym. Do emit .size for descriptor sym.
7740 (ASM_DECLARE_FUNCTION_SIZE): Define.
7741 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7742 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
7743 .lglobl unless TARGET_XCOFF. Formatting fixes.
7744 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7745 .weak for code sym.
7746 (HANDLE_PRAGMA_WEAK): Remove.
7747 (ASM_WEAKEN_LABEL): Remove.
7748 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7749
7750 2002-03-01 Jason Merrill <jason@redhat.com>
7751
7752 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7753 (TARGET_EXPR_CLEANUP): New macro.
7754
7755 2002-02-28 Steve Ellcey <sje@cup.hp.com>
7756
7757 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7758 to take ptr_extend into account as third type of extension.
7759 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7760 fields used by SUBREG_PROMOTED_UNSIGNED_P.
7761 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7762 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7763 * calls.c (precompute_arguments): Use new macro.
7764 (expand_call): Ditto.
7765 * combine.c (nonzero_bits): Ditto.
7766 (record_promoted_value): Ditto.
7767 * expr.c (store_expr): Ditto.
7768 (expand_expr): Ditto.
7769 * function.c (assign_parms): Ditto.
7770
7771 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
7772
7773 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7774 override -shared and -shared-libgcc.
7775
7776 2002-02-28 David O'Brien <obrien@FreeBSD.org>
7777
7778 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7779 of "ultrasparc".
7780 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
7781 to be broken.
7782
7783 2002-02-28 Richard Henderson <rth@redhat.com>
7784
7785 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7786 4 cycle latency from MM producers.
7787 (ia64_internal_sched_reorder): Likewise with pipeline flush.
7788
7789 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7790
7791 * mklibgcc.in: Don't use GNU make extension.
7792
7793 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7794
7795 * c-parse.in (STATIC): New terminal.
7796 (scspec): New non-terminal. Update productions accordingly.
7797 (program): Remove bogus ifc / end ifc.
7798 (array_declarator): Simplify production using STATIC.
7799
7800 2002-02-28 Jim Meyering <meyering@lucent.com>
7801
7802 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7803 \a still means TARGET_BELL.
7804
7805 2002-02-28 Richard Henderson <rth@redhat.com>
7806
7807 * haifa-sched.c (sched_emit_insn): New.
7808 (schedule_block): Use last_scheduled_insn to track last insn.
7809 * sched-int.h (sched_emit_insn): Prototype.
7810 * config/ia64/ia64.c (last_issued): Remove.
7811 (ia64_variable_issue): Don't set it.
7812 (nop_cycles_until): Use sched_emit_insn.
7813
7814 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
7815
7816 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7817 extended constants.
7818
7819 2002-02-28 Kazu Hirata <kazu@hxi.com>
7820
7821 * config/h8300/h8300.c: Fix formatting.
7822 * config/h8300/h8300.h: Likewise.
7823
7824 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
7825
7826 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
7827 which may overwrite the high byte of the frame pointer.
7828
7829 2002-02-28 Bo Thorsen <bo@suse.de>
7830
7831 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7832 (STARTFILE_SPEC): Add 64 bit files.
7833 (ENDFILE_SPEC): Likewise.
7834
7835 2002-02-28 Jason Merrill <jason@redhat.com>
7836
7837 * c-decl.c (finish_function): Only warn about missing return
7838 statement with -Wreturn-type.
7839
7840 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
7841
7842 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7843
7844 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7845 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7846
7847 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
7848
7849 * basic-block.h (BB_REACHABLE): Renumber.
7850 (BB_DIRTY, BB_NEW): New flags.
7851 (clear_bb_flags): Declare.
7852 (update_life_info_in_dirty_blocks): Declare.
7853 * cfg.c (clear_bb_flags): New function.
7854 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
7855 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
7856 reorder_insns, emit_insn_after): Mark block as dirty.
7857 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
7858 (update_life_info_in_dirty_blocks): New function.
7859 * recog.c (apply_change_group): Dirtify block.
7860
7861 * cse.c (cse_insn): Reorder emitting of jump insn to keep
7862 cfg consistent.
7863 * gcse.c (delete_null_pointer_checks): Likewise.
7864
7865 * toplev.c (dump_file_index): Move cse2 after bp,
7866 add DFI_null
7867 (dump_file_info): Similary.
7868 (rest_of_compilation): Avoid most of CFG rebuilds;
7869 do first if converision after null pointer checks, do cse2
7870 after branch prediction; avoid full liveness rebuild after
7871 initializing subregs.
7872 * invoke.texi (-d options): Document -du, renumber.
7873
7874 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
7875 (notice_new_block): Do not set BB_UPDATE_LIFE.
7876 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
7877 merge_blocks_move_successor_nojumps, merge_blocks,
7878 try_crossjump_to_edge): Likewise.
7879 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
7880 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
7881 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
7882 (merge_of_block): Do not use life_data_ok.
7883 (find_if_case_1): Do not use SET_UPDATE_LIFE.
7884 (if_convert): Use BB_DIRTY mechanizm to update life.
7885 * lcm.c (optimize_mode_switching): Update
7886 update_life_info_in_dirty_blocks
7887
7888 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7889
7890 * Makefile.in (integrate.o): Update.
7891 * c-decl.c (copy_lang_decl): Rename.
7892 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7893 * integrate.c: Include langhooks.h.
7894 (copy_decl_for_inlining): Update to use langhook.
7895 * langhooks-def.h (lhd_do_nothing_t,
7896 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
7897 (LANG_HOOKS_INITIALIZER): Update.
7898 * langhooks.c (lhd_do_nothing_t): New.
7899 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
7900 * tree.h (copy_lang_decl): Remove.
7901 objc:
7902 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7903
7904 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
7905
7906 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7907 POST_DEC, and POST_MODIFY.
7908
7909 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7910
7911 * c-typeck.c (digest_init): Remove unused parameter; all
7912 callers changed.
7913
7914 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
7915
7916 * expmed.c (expand_shift): Correctly test for low part of a
7917 subreg.
7918
7919 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7920
7921 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7922 insn UIDs with insn addresses.
7923
7924 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7925
7926 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7927 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7928 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7929 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7930 gcc.c, toplev.c: Delete code implementing -traditional mode.
7931
7932 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7933 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7934 Document removal of -traditional mode for compilation, and
7935 remove documentation only relevant to that mode.
7936
7937 * config/nextstep.h, config/ptx4.h, config/svr4.h,
7938 config/convex/convex.h, config/d30v/d30v.h,
7939 config/i386/dgux.h, config/i386/osf1elf.h,
7940 config/i386/osfelf.h, config/i386/osfrose.h,
7941 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7942 config/m68k/hp310.h, config/m88k/dgux.h,
7943 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7944 config/m88k/m88k.h, config/m88k/openbsd.h,
7945 config/mips/abi64.h, config/mips/osfrose.h,
7946 config/mips/svr4-5.h, config/mips/svr4-t.h,
7947 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7948 config/stormy16/stormy16.h: Remove all references to
7949 -traditional from target specs. Delete all mention of the
7950 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
7951 delete a couple of commented-out definitions of
7952 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7953 to -traditional.
7954
7955 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7956 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7957
7958 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7959
7960 * mklibgcc.in: Don't use \n in a line subject to
7961 interpretation by echo.
7962
7963 2002-02-27 Graham Stott <grahams@redhat.com>
7964
7965 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7966 Constify NAME.
7967
7968 * loop.c (prescan_loop): Handle PARALLEL.
7969
7970 * unroll.c (loop_iterations): Return 0 if the add_val for
7971 a BIV is REG.
7972
7973 * final.c (output_operand_lossage): Constify PFX_STR.
7974
7975 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7976
7977 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7978
7979 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7980 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7981
7982 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7983
7984 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7985
7986 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7987
7988 * cpplex.c (_cpp_lex_token): Handle directives in macro
7989 arguments.
7990 * cpplib.c (_cpp_handle_directive): Save and restore state
7991 if parsing macro args when entering a directive.
7992 * cppmacro.c (collect_args): No need to handle directives
7993 in macro arguments.
7994 (enter_macro_context, replace_args): Use the original macro
7995 definition in case it was redefined whilst collecting arguments.
7996 doc:
7997 * cpp.texi: Update.
7998
7999 2002-02-26 David Edelsohn <edelsohn@gnu.org>
8000
8001 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8002 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8003 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8004 method on AIX.
8005 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8006 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8007 (load_toc_v4_PIC_2): Same.
8008
8009 2002-02-26 Alan Modra <amodra@bigpond.net.au>
8010
8011 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8012
8013 2002-02-26 Richard Henderson <rth@redhat.com>
8014
8015 * config/alpha/alpha.md (ashldi_se): Re-enable.
8016
8017 2002-02-26 Richard Henderson <rth@redhat.com>
8018
8019 * config/alpha/alpha.c (alpha_encode_section_info): Examine
8020 MODULE_LOCAL_P; improve commentary.
8021
8022 2002-02-26 Zack Weinberg <zack@codesourcery.com>
8023
8024 * doc/cpp.texi: Clarify documentation of relationship between
8025 #line and #include.
8026
8027 2002-02-26 Kazu Hirata <kazu@hxi.com>
8028
8029 * config/h8300/h8300-protos.h: Update the prototype for
8030 compute_logical_op_length. Add the prototype for
8031 compute_logical_op_cc.
8032 * config/h8300/h8300.c (compute_logical_op_length): Figure out
8033 code from operands.
8034 (compute_logical_op_cc): New.
8035 * config/h8300/h8300.md: Combine all the logical op patterns
8036 in HImode and SImode. Use compute_logical_op_cc.
8037
8038 2002-02-26 Kelley Cook <kelleycook@comcast.net>
8039
8040 * config/i386/i386.c (print_operand): Don't append ATT-style
8041 length suffixs to x87 opcodes when in Intel mode.
8042
8043 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
8044
8045 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8046 (init_emit_once): Update calls.
8047 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8048 (init_syntax_once): Prototype.
8049
8050 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8051
8052 * pa-linux.h (LIB_SPEC): Update definition.
8053 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8054
8055 2002-02-26 Richard Henderson <rth@redhat.com>
8056
8057 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8058 if we emitted a stop bit.
8059
8060 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8061
8062 * configure.in (libgcc_visibility): Substitute.
8063 * configure: Rebuilt.
8064 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8065 defined symbols .hidden.
8066
8067 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8068
8069 * attribs.c (c_common_attribute_table): Add visibility.
8070 (handle_visibility_attribute): New function.
8071 * varasm.c (assemble_visibility): New function.
8072 * output.h (assemble_visibility): Add prototype.
8073 * tree.h (MODULE_LOCAL_P): Define.
8074 * crtstuff.c (__dso_handle): Use visibility attribute.
8075 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8076 for MODULE_LOCAL_P symbols too.
8077 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8078 MODULE_LOCAL_P symbols the same way as local symbols.
8079 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8080 into .sdata/.sbss by the user.
8081 * doc/extend.texi (Function Attributes): Document visibility
8082 attribute.
8083
8084 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8085
8086 PR debug/5770
8087 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8088 STRING_CST initializer spanning the whole variable without
8089 embedded zeros.
8090 If expand_expr returned MEM, don't use it.
8091
8092 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8093
8094 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8095 generate a die for the lexical block.
8096
8097 2002-02-26 Kazu Hirata <kazu@hxi.com>
8098
8099 * config/h8300/h8300-protos.h: Add a prototype for
8100 compute_logical_op_length.
8101 * config/h8300/h8300.c (compute_logical_op_length): New.
8102 * config/h8300/h8300.md (anonymous logical patterns): Use
8103 compute_logical_op_length for length.
8104
8105 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8106
8107 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8108 for vectors.
8109 (gen_type_die): Same.
8110
8111 * attribs.c (handle_vector_size_attribute): Set debug information.
8112
8113 2002-02-26 Daniel Egger <degger@fhm.edu>
8114
8115 * config/rs6000/rs6000.md: Swap define_insn attributes to
8116 fix incorrect generation of merge high instructions instead
8117 of merge low.
8118
8119 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8120
8121 * c-typeck.c (really_start_incremental_init): Use
8122 bitsize_zero_node for vectors.
8123
8124 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8125
8126 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8127 ("*set_vrsave_internal"): Same.
8128
8129 2002-02-25 Richard Henderson <rth@redhat.com>
8130
8131 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8132 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8133
8134 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8135
8136 PR target/5755
8137 * config/i386/i386.c (ix86_return_pops_args): Only pop
8138 fake structure return argument if it was passed on the stack.
8139
8140 2002-02-25 Jason Merrill <jason@redhat.com>
8141
8142 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8143 RESULT_DECL.
8144
8145 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8146
8147 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8148 link with shared_name only.
8149 * doc/invoke.texi (Link Options): Document new behavior.
8150
8151 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8152
8153 * c-typeck.c (push_init_level): Handle vectors.
8154
8155 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8156
8157 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8158 operands of SPARC_SETHI_P.
8159 (input_operand): Likewise.
8160 (sparc_emit_set_const32): Likewise.
8161 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8162 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8163 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8164 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8165 (movdi_insn_sp64_vis): Likewise.
8166 (movdi split, movdf split): Use SETHI32.
8167 * doc/md.texi: Document SPARC constraints L, M and N.
8168
8169 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8170
8171 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8172 ("*set_vrsave_internal"): use mfspr for Darwin.
8173
8174 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8175 gen_get_vrsave_internal.
8176
8177 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8178
8179 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8180
8181 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8182
8183 * cpplex.c (cpp_interpret_charconst): Get signedness or
8184 otherwise of wide character constants correct.
8185 * cppexp.c (lex): Get signedness of wide charconsts correct.
8186
8187 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8188
8189 * optabs.c (widen_operand): Only call convert_modes for
8190 promoted SUBREG if signedness matches.
8191 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8192
8193 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8194
8195 * cpplib.c (glue_header_name): Use local buffer to build up
8196 header name.
8197
8198 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8199
8200 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8201
8202 2002-02-23 Kazu Hirata <kazu@hxi.com>
8203
8204 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8205 H8/300[HS] separately.
8206 * config/h8300/h8300.md: Remove the early clobber constraint
8207 from bit field patterns.
8208
8209 2002-02-23 Kazu Hirata <kazu@hxi.com>
8210
8211 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8212 register_operand.
8213 (mulhisi3): Likewise.
8214 (umulqisi3): Likewise.
8215 (umulhisi3): Likewise.
8216
8217 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8218
8219 * cppinit.c (output_deps): Correct test for stdout output.
8220 (init_dependency_output): Cure warning.
8221
8222 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8223
8224 * expr.c (store_expr): When converting expression to promoted
8225 equivalent type, allow using SUBREG_REG of TARGET as the target
8226 of the expansion of EXP.
8227 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8228 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8229 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8230 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8231 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8232
8233 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8234
8235 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8236 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8237 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8238
8239 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8240
8241 PR optimization/5747
8242 * loop.c (scan_loop): Update reg info if move_movables created new
8243 pseudos.
8244
8245 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8246
8247 * gcc.c (init_gcc_spec): Revert last change.
8248
8249 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8250
8251 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8252 gpc_reg_operand constraint.
8253
8254 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8255
8256 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8257 Simplify comparison of `low'.
8258 (add_operand): Fix formatting.
8259 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8260 (mask_operand): Disallow mask to wrap in 64-bit mode.
8261 (rs6000_stack_info): Remove redundant test setting push_p.
8262 (output_toc): Fix formatting.
8263 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8264 cc_reg_not_cr0_operand constraint.
8265 (booldi3, boolcdi3 splitters): Same.
8266
8267 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8268
8269 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8270
8271 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8272
8273 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8274 gcc invoked with -shared-libgcc.
8275
8276 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8277
8278 PR c++/5748
8279 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8280 decl if any of elements was TREE_USED.
8281
8282 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8283
8284 * config/sparc/sol2.h: Don't include sys/mman.h.
8285 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8286 (arith_4096_operand): Don't throw high bits away.
8287 (const64_operand): Take sign extension of CONST_INTs into account.
8288 (const64_high_operand, sparc_emit_set_const32): Likewise.
8289 (GEN_HIGHINT64): Likewise.
8290 (sparc_emit_set_const64_quick1): Likewise.
8291 (const64_is_2insns): Likewise.
8292 (print_operand): Use trunc_int_for_mode for sign extension.
8293 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8294 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8295 chars. Assume CONST_INT is already properly sign-extended.
8296 (movdi split): Sign-extend each SImode part.
8297 (andsi3 split): Don't mask high bits off, so that result
8298 remains properly sign-extend.
8299 (iorsi3 split): Likewise.
8300 (xorsi3 split): Likewise.
8301
8302 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8303
8304 * fold-const.c (fold): Fix typo in comments.
8305
8306 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8307
8308 * Makefile.in (langhooks.o): Update dependencies.
8309
8310 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8311
8312 * langhooks.c: Include flags.h.
8313
8314 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8315
8316 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8317
8318 * c-common.c (c_common_post_options): Set inline trees by
8319 default.
8320
8321 * doc/extend.texi (Function Attributes): Document always_inline
8322 attribute.
8323 Update documentation about inlining when not optimizing.
8324
8325 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8326
8327 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8328 unless DECL_ALWAYS_INLINE.
8329
8330 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8331 unless DECL_ALWAYS_INLINE.
8332 (c_disregard_inline_limits): Disregard if always_inline set.
8333
8334 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8335 Disregard if always_inline set.
8336 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8337 unless DECL_ALWAYS_INLINE.
8338
8339 * attribs.c (handle_always_inline_attribute): New.
8340 (c_common_attribute_table): Add always_inline.
8341
8342 * config/rs6000/altivec.h: Add prototypes for builtins
8343 requiring the always_inline attribute.
8344
8345 2002-02-21 Eric Christopher <echristo@redhat.com>
8346
8347 * expmed.c (store_bit_field): Try to simplify the subreg
8348 before generating a new one when when the mode size of
8349 value is less than maxmode.
8350
8351 2002-02-21 Richard Henderson <rth@redhat.com>
8352
8353 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8354 than gen_rtx_PLUS to form the sum.
8355 * explow.c (force_reg): Rearrange to not allocate new pseudo
8356 when force_operand returns a register.
8357 * expr.c (expand_assignment): Allow offset_rtx expansion to
8358 return a sum. Do not force addresses into registers.
8359 (expand_expr): Likewise.
8360 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8361 to canonicalize arithmetic that didn't simpify.
8362 (simplify_plus_minus): New argument force; update
8363 all callers. Don't split CONST unless we can do something with it,
8364 and wouldn't lose the constness of the operands.
8365
8366 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8367 that we generated earlier.
8368
8369 2002-02-21 Tom Tromey <tromey@redhat.com>
8370
8371 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8372 (output_line_info): Use constant `1', with a long explanatory
8373 comment.
8374 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8375
8376 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8377
8378 * jump.c (redirect_jump): If old label has no UID, don't try to
8379 delete it.
8380
8381 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8382
8383 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8384 If input is constant, do shifts at compile time.
8385
8386 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8387
8388 * doc/extend.texi: Fix some more overfull hboxes.
8389
8390 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8391
8392 PR optimization/4994
8393 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8394 register moves.
8395
8396 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8397
8398 PR c++/4574
8399 * expr.h (expand_and): Add mode argument.
8400 * expmed.c (expand_and): Add mode argument.
8401 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8402 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8403 * except.c (expand_builtin_extract_return_addr): Likewise.
8404 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8405 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8406 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8407 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8408 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8409 gen_rtx (CONST_INT, VOIDmode, x).
8410
8411 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8412
8413 PR c/4697:
8414 * stmt.c (warn_if_unused_value): Move side effects test once more.
8415
8416 2002-02-20 Torbjorn Granlund <tege@swox.com>
8417
8418 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8419 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8420
8421 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8422
8423 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8424 SUBREG or ZERO_EXTEND.
8425
8426 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8427
8428 * sh.h (current_function_anonymous_args): Remove.
8429 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8430 of current_function_varargs and current_function_stdarg is set.
8431 * sh.c (sh_expand_prologue): Check current_function_varargs /
8432 current_function_stdarg / TARGET_SH5 instead of
8433 current_function_anonymous_args.
8434
8435 * sh64.h (TARGET_VERSION): Define.
8436
8437 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8438
8439 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8440 VRSAVE_REGNO on TARGET_ALTIVEC.
8441
8442 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8443
8444 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8445 bits of SImode const_int.
8446 (includes_rshift_p): Likewise.
8447 (print_operand): Call mask_operand and mask64_operand with correct
8448 mode.
8449 (rs6000_output_function_epilogue): Pad traceback table to word.
8450 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8451 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8452 mask64_operand with correct mode.
8453 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8454
8455 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8456
8457 PR debug/4461
8458 * varasm.c (get_pool_constant_mark): New.
8459 * rtl.h (get_pool_constant_mark): Add prototype.
8460 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8461 be represented if it has not been output.
8462
8463 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8464
8465 * combine.c (do_SUBST): Sanity check substitutions of
8466 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8467 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8468 CONST_INT into its operand.
8469 (known_cond): Likewise, for ZERO_EXTEND.
8470 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8471 allow for simplification of wide modes. Reject CONST_INTs in
8472 ZERO_EXTEND when their actual mode is not given.
8473
8474 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8475
8476 * c-decl.c (pushdecl): If no global declaration is found for an
8477 extern declaration in block scope, try a limbo one.
8478
8479 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8480
8481 PR c++/4401
8482 * c-common.c (pointer_int_sum): Moved from...
8483 * c-typeck.c (pointer_int_sum): ...here.
8484 * c-common.h (pointer_int_sum): Add prototype.
8485
8486 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8487
8488 PR c++/5713
8489 * c-decl.c (duplicate_decls): Return 0 if issued error about
8490 redeclaration.
8491
8492 2002-02-20 Roger Sayle <roger@eyesopen.com>
8493 Jakub Jelinek <jakub@redhat.com>
8494
8495 PR c/4389
8496 * tree.c (host_integerp): Ensure that the constant integer is
8497 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8498 when pos is zero or non-zero respectively. Clarify comment.
8499 * c-format.c (check_format_info_recurse): Fix host_integerp
8500 usage; the pos argument should be zero when assigning to a
8501 signed HOST_WIDE_INT.
8502
8503 2002-02-20 Richard Henderson <rth@redhat.com>
8504
8505 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8506 of the operand, rather than assuming TImode.
8507 (ix86_expand_binop_builtin): Cope with commutative patterns
8508 using nonimmediate_operand for both operands.
8509 (ix86_expand_timode_binop_builtin): Likewise.
8510 (ix86_expand_store_builtin): Validate operand 1.
8511 (ix86_expand_unop1_builtin): Likewise.
8512
8513 2002-02-20 Philip Blundell <philb@gnu.org>
8514
8515 PR 5705
8516 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8517
8518 2002-02-20 Richard Henderson <rth@redhat.com>
8519
8520 PR c/5615
8521 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8522
8523 2002-02-20 Tom Tromey <tromey@redhat.com>
8524
8525 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8526 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8527 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8528 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8529 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8530 unconditionally.
8531
8532 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8533
8534 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8535 for (const_int 0) in X not just INTVAL.
8536
8537 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8538
8539 * doc/extend.texi: Avoid or reduce overfull hboxes.
8540
8541 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8542
8543 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8544 operations if the field does not start at a mode boundary.
8545
8546 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8547
8548 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8549 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8550 Also done for -Acpu and -Amachine.
8551
8552 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
8553
8554 * cppinit.c (init_dependency_output): Take deps output file
8555 from -o if none given with -MF. Suppress normal output.
8556 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8557 * doc/cpp.texi, doc/invoke.texi: Update.
8558
8559 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8560
8561 * toplev.c (output_quoted_string): Write unprintable
8562 characters with octal escapes.
8563
8564 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8565
8566 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8567 really_call_used[VRSAVE_REGNO] if not Altivec.
8568
8569 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8570
8571 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8572 MODE_MASK.
8573 (constant_pool_expr_1): Fix formatting.
8574 (rs6000_legitimize_reload_address): Likewise.
8575
8576 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8577
8578 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8579 now that we have one.
8580
8581 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8582
8583 * tree.h (struct tree_common): Remove aux. Add unused_0 at
8584 end of first block of bitfields (which was only seven bits);
8585 rename dummy to unused_1; remove comment which is no longer true.
8586
8587 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8588
8589 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8590
8591 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8592
8593 PR 5399
8594 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8595 if generating PIC.
8596
8597 PR 5054
8598 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8599 arm_is_longcall_p rather than inspecting call-type cookie
8600 directly.
8601 (call_value_insn) [TARGET_THUMB]: Likewise.
8602
8603 2002-02-19 Graham Stott <grahams@redhat.com>
8604
8605 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8606
8607 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8608
8609 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8610 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8611 (FP_SAVE_INLINE): Delete.
8612
8613 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8614 * config/rs6000/eabi.asm: Remove ABI save restore routines.
8615 * config/rs6000/t-ppccomm: Build crtsavres.o.
8616 * config/rs6000/crtsavres.asm: New file.
8617
8618 2002-02-19 Philip Blundell <philb@gnu.org>
8619
8620 * config/arm/arm.c (use_return_insn): Don't reject interrupt
8621 functions.
8622 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8623 (output_return_instruction): Allow interrupt functions to return with
8624 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
8625 (arm_expand_prologue): Subtract 4 before stacking LR in an
8626 interrupt function.
8627
8628 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8629
8630 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8631 decl, not just FUNCTION_DECL.
8632 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8633 (arm_assemble_integer): Likewise.
8634 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8635 marked local.
8636
8637 2002-02-19 matthew green <mrg@eterna.com.au>
8638
8639 * config.gcc (sparc-*-netbsdelf*): Enable target.
8640 (sparc64-*-netbsd*): New target.
8641 * config/sparc/netbsd-elf.h: New file.
8642 * config/sparc/t-netbsd64: New file.
8643
8644 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8645
8646 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8647
8648 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
8649
8650 * doc/invoke.texi: explicitly list the style guidelines that
8651 -Weffc++ checks for.
8652
8653 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
8654
8655 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8656
8657 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
8658
8659 PR other/5718
8660 * gcc.c (cpp_unique_options): Treat -o as indicating object file
8661 only if not -E. If -E, pass -o through to the preprocessor.
8662
8663 2002-02-19 Kazu Hirata <kazu@hxi.com>
8664
8665 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8666 register number with an appropriate macro.
8667
8668 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8669
8670 * doc/rtl.texi (Constants): Close @code tag.
8671
8672 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
8673
8674 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8675 ("mmx_uavgv4hi3"): Same.
8676 ("pmulhrwv4hi3"): Same.
8677
8678 * tree-inline.c (walk_tree): Handle vectors.
8679
8680 * c-common.c (constant_expression_warning): Handle vectors.
8681 (overflow_warning): Same.
8682
8683 * sched-deps.c (sched_analyze_2): Handle vectors.
8684
8685 * rtlanal.c (rtx_unstable_p): Handle vectors.
8686 (rtx_varies_p): Same.
8687 (count_occurrences): Same.
8688 (regs_set_between_p): Same.
8689 (modified_between_p): Same.
8690 (modified_in_p): Same.
8691 (volatile_insn_p): Same.
8692 (volatile_refs_p): Same.
8693 (side_effects_p): Same.
8694 (may_trap_p): Same.
8695 (inequality_comparisons_p): Same.
8696 (replace_regs): Same.
8697 (computed_jump_p_1): Same.
8698
8699 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8700 argument.
8701 (inner_mode_array): New.
8702 (copy_rtx): Handle vectors.
8703 (copy_most_rtx): Same.
8704 (rtx_equal_p): Same.
8705 (get_mode_alignment): Adjust for vectors.
8706
8707 * resource.c (mark_referenced_resources): Handle vectors.
8708 (mark_set_resources): Same.
8709
8710 * reload1.c (eliminate_regs): Handle vectors.
8711 (elimination_effects): Same.
8712 (scan_paradoxical_subregs): Same.
8713
8714 * reload.c (subst_reg_equivs): Handle vectors.
8715
8716 * regrename.c (scan_rtx): Handle vectors.
8717
8718 * regclass.c (reg_scan_mark_refs): Handle vectors.
8719
8720 * recog.c (find_single_use_1): Handle vectors.
8721
8722 * local-alloc.c (equiv_init_varies_p): Handle vectors.
8723 (contains_replace_regs): Same.
8724 (memref_referenced_p): Same.
8725
8726 * integrate.c (copy_rtx_and_substitute): Handle vectors.
8727 (subst_constants): Same.
8728
8729 * genattrtab.c (attr_copy_rtx): Handle vectors.
8730 (encode_units_mask): Same.
8731 (clear_struct_flag): Same.
8732 (count_sub_rtxs): Same.
8733
8734 * gcse.c (want_to_gcse_p): Handle vectors.
8735 (oprs_unchanged_p): Same.
8736 (hash_expr_1): Same.
8737 (oprs_not_set_p): Same.
8738 (expr_killed_p): Same.
8739 (compute_transp): Same.
8740 (store_ops_ok): Same.
8741
8742 * function.c (purge_addressof_1): Do not allow paradoxical subregs
8743 of vectors.
8744 (fixup_var_refs_1): Same.
8745 (instantiate_virtual_regs_1): Same.
8746
8747 * fold-const.c (operand_equal_p): Handle vectors.
8748 (fold): Same.
8749 (rtl_expr_nonnegative_p): Same.
8750
8751 * flow.c (mark_used_regs): Handle vectors.
8752
8753 * df.c (df_uses_record): Handle vectors.
8754
8755 * cselib.c (cselib_subst_to_values): Handle vectors.
8756 (cselib_mem_conflict_p): Same.
8757 (hash_rtx): Same.
8758
8759 * cse.c (canon_reg): Handle vectors.
8760 (fold_rt): Same.
8761 (cse_process_notes): Same.
8762 (count_reg_usage): Same.
8763 (canon_hash): Same.
8764
8765 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8766
8767 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8768
8769 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8770 (gen_rtx): Handle CONST_VECTOR.
8771 (gen_const_vector_0): New.
8772 (copy_rtx_if_shared): CONST_VECTORs can be shared.
8773 (reset_used_flags): Same.
8774 (copy_insn_1): Same.
8775 (initializer_constant_valid_p): Handle VECTOR_CST.
8776
8777 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8778
8779 * doc/rtl.texi (Constants): Document const_vector.
8780 (CONST0_RTX): Update for vectors.
8781 (RTL sharing): Same.
8782
8783 * print-tree.c (print_node): Add case for VECTOR_CST.
8784
8785 * tree.h (TREE_VECTOR_CST_ELTS): New.
8786 (struct tree_vector): New.
8787 (union tree_node): Add vector node.
8788 (build_vector): Add prototype.
8789
8790 * tree.def (VECTOR_CST): New.
8791
8792 * tree.c (build_vector): New.
8793
8794 * expmed.c (make_tree): Handle CONST_VECTOR.
8795
8796 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8797 (CONST_VECTOR_ELT): New.
8798 (CONST_VECTOR_NUNITS): New.
8799
8800 * machmode.h (GET_MODE_INNER): New.
8801 (DEF_MACHMODE): Accept 8th arg.
8802
8803 * machmode.def: Add 8th argument for vector inner mode.
8804 Add inner vector modes for vectors.
8805
8806 * rtl.def (VEC_CONST): Remove.
8807 (CONST_VECTOR): New.
8808
8809 * expr.c (clear_storage): Allow vectors.
8810 (is_zeros_p): Handle VECTOR_CST.
8811
8812 * varasm.c (output_constant_pool): Handle vectors.
8813 (rtx_const): Add veclo and vechi fields.
8814 (kind): Add RTX_VECTOR.
8815 (decode_rtx_const): Add case for vector.
8816
8817 * config/rs6000/rs6000-protos.h: Add zero_constant.
8818
8819 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8820 constants. Force easy vector constants into memory.
8821 (easy_vector_constant): New.
8822 (emit_easy_vector_constant): New.
8823 (rs6000_legitimize_reload_address): Do not generate bad reloads on
8824 darwin.
8825
8826 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
8827 instruction does.
8828 ("altivec_lvxl"): Same.
8829 (altivec_lvebx): Same.
8830 (altivec_lvehx): Same.
8831 (altivec_lvewx): Same.
8832 ("*movv4si_const0"): New.
8833 ("*movv4sf_const0"): New.
8834 ("*movv8hi_const0"): New.
8835 ("*movv16qi_const0"): New.
8836
8837 2002-02-18 Kazu Hirata <kazu@hxi.com>
8838
8839 * config/h8300/h8300.c (notice_update_cc): Use
8840 cc_status.value2.
8841
8842 2002-02-18 Kazu Hirata <kazu@hxi.com>
8843
8844 * config/h8300/h8300.md (divmod patterns): Change the
8845 constraints for operands[1] to register_operand.
8846
8847 2002-02-18 Kazu Hirata <kazu@hxi.com>
8848
8849 * config/h8300/h8300-protos.h: Remove the prototype for
8850 p_operand.
8851 * config/h8300/h8300.c (p_operand): Remove.
8852 * config/h8300/h8300.md: Replace p_operand with
8853 const_int_operand.
8854
8855 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8856
8857 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
8858 comment.
8859 (output_return_instruction): Allow use of LDR to unstack
8860 return addresss even for interrupt handlers or when
8861 interworking. If compiling for ARMv5, use interworking-safe
8862 return instructions by default. Remove duplicated code and
8863 lengthy "strcat" sequences.
8864
8865 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8866
8867 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
8868 (LINK_EH_SPEC): Define.
8869 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8870
8871 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
8872
8873 * config/s390/s390.c (s390_emit_prologue): Do not set the
8874 frame_related flag for call-clobbered registers.
8875
8876 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
8877
8878 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
8879 (construct_container): Fix handling of SSE operands.
8880 (ix86_expand_builtin): Fix handling of 64bit pointers.
8881 (mmx_maskmovq_rex): New pattern.
8882
8883 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
8884
8885 * regrename.c (kill_set_value): Handle subregs properly.
8886
8887 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
8888
8889 * objc/objc-act.c (handle_impent): Remove leading '*'
8890 from objc_class_name.
8891
8892 2002-02-17 Richard Henderson <rth@redhat.com>
8893
8894 * config/alpha/alpha.c (some_small_symbolic_operand,
8895 some_small_symbolic_operand_1, split_small_symbolic_operand,
8896 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
8897 Handle small SYMBOL_REFs anywhere, not just inside memories.
8898 * config/alpha/alpha-protos.h: Update.
8899 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8900 * config/alpha/alpha.md (small symbolic operand splitter): Update.
8901
8902 2002-02-17 Roland McGrath <roland@frob.com>
8903
8904 * config.gcc (powerpc-*-gnu-gnualtivec*,
8905 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
8906 * config/rs6000/gnu.h: New file.
8907 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
8908 Grok "gnu" in rs6000_abi_name.
8909 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
8910 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
8911 Grok -mcall-gnu analogous to -mcall-linux et al.
8912 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8913 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
8914 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
8915
8916 2002-02-17 Jakub Jelinek <jakub@redhat.com>
8917
8918 PR c/3444:
8919 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8920 shortening.
8921
8922 2002-02-17 Philipp Thomas <pthomas@suse.de>
8923
8924 * config/cris/cris.h: Undefine STARTFILE_SPEC and
8925 ENDFILE_SPEC before (re)defining them.
8926
8927 2002-02-17 Kazu Hirata <kazu@hxi.com>
8928
8929 * config/h8300/h8300.c: Fix formatting.
8930 * config/h8300/h8300.h: Likewise.
8931
8932 2002-02-17 Philipp Thomas <pthomas@suse.de>
8933
8934 * doc/tm.texi: Explain why empty strings should not be
8935 marked for translation.
8936
8937 2002-02-17 Philipp Thomas <pthomas@suse.de>
8938
8939 * final.c (output_operand_lossage): Changed to accept
8940 printf style arguments. Change calls where necessary.
8941 * output.h (output_operand_lossage): Change declaration
8942 accordingly. Update copyright.
8943 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8944 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8945 Update copyright date where necessary.
8946
8947 * config/i386/i386.c (print_operand): Likewise. Remove use of
8948 sprintf.
8949
8950 * config/cris/cris.c (cris_operand_lossage): Likewise.
8951 Rename parameter so that exgettext recognizes it as
8952 translatable message.
8953 (LOSE_AND_RETURN): Rename parameter to msgid.
8954
8955 2002-02-17 Kazu Hirata <kazu@hxi.com>
8956
8957 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8958 hard coded register number with an appropriate macro.
8959 (HARD_REGNO_MODE_OK): Likewise.
8960 (ARG_POINTER_REGNUM): Likewise.
8961 (STATIC_CHAIN_REGNUM): Likewise.
8962 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8963 * config/h8300/h8300.md (define_constants): Define more
8964 register numbers.
8965
8966 2002-02-17 Philipp Thomas <pthomas@suse.de>
8967
8968 * config/i386/i386.h: Don't mark empty strings for translation.
8969
8970 2002-02-16 H.J. Lu <hjl@gnu.org>
8971
8972 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8973
8974 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8975
8976 * cppinit.c (merge_include_chains): Check for brack being
8977 NULL before attempting to merge it with qtail.
8978
8979 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8980
8981 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8982 DBX_DEBUG.
8983
8984 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8985
8986 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8987
8988 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8989
8990 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8991 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8992 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8993
8994 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8995
8996 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8997 now only if !TARGET_FIX.
8998 (*movsi_nt_vms_fix): New pattern.
8999
9000 2002-02-16 Douglas B Rupp <rupp@gnat.com>
9001
9002 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9003 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9004 (alpha_sa_mask, alpha_sa_size): Reflect above change.
9005 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9006 (alpha_start_function, alpha_expand_epilogue): Likewise.
9007 (unicosmk_gen_dsib): Likewise.
9008
9009 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9010
9011 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9012
9013 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
9014
9015 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9016 check_and_change_labels, s390_final_chunkify): Delete.
9017 (s390_split_branches, s390_chunkify_pool): New functions.
9018 (s390_function_prologue): Call them.
9019
9020 * config/s390/s390.h (S390_REL_MAX): Delete.
9021 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9022
9023 * config/s390/s390.md (cjump, icjump, jump): Fix length
9024 attribute calculation.
9025
9026
9027 2002-02-15 David Edelsohn <edelsohn@gnu.org>
9028
9029 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9030 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9031
9032 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9033
9034 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9035 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9036 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9037
9038 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9039
9040 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9041
9042 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
9043
9044 * reload.c (find_dummy_reload): Check that an output register
9045 is valid for its mode.
9046
9047 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
9048
9049 * combine.c (known_cond): After replacing the REG of a SUBREG, try
9050 to simplify it.
9051
9052 * function.c (assign_parms): Demote promoted argument passed by
9053 transparent reference.
9054
9055 2001-02-14 Joel Sherrill <joel@OARcorp.com>
9056
9057 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9058 -Acpu() and -Amachine() to eliminate warnings.
9059
9060 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9061
9062 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9063
9064 2002-02-14 Kazu Hirata <kazu@hxi.com>
9065
9066 * config/h8300/h8300-protos.h: Update the prototype for
9067 const_costs.
9068 * config/h8300/h8300.c (const_costs): Treat SET as a little
9069 more expensive operation.
9070 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9071 reference to const_costs.
9072
9073 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9074
9075 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9076
9077 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9078
9079 PR c/5503:
9080 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9081 use arguments from newtype.
9082
9083 2002-02-13 Eric Christopher <echristo@redhat.com>
9084
9085 * config/mips/mips.c (override_options): Add check for march/mipsX
9086 on the same command line. Fix error message in cpu processing.
9087 Remove architecture and ISA checks.
9088
9089 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9090
9091 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9092
9093 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9094
9095 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9096
9097 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9098 alternatives.
9099 ("*movv8hi_internal1"): Same.
9100 ("*movv16qi_internal1"): Same.
9101 ("*movv4sf_internal1"): Same.
9102
9103 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9104 not push_reload for altivec modes.
9105
9106 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9107
9108 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9109 all RTEMS targets including removal of #includes from config/*/rtems*.h
9110 file and adding them to tm_file setting. Added xm_defines=POSIX to
9111 many targets.
9112 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9113 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9114 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9115 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9116 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9117 config/m68k/rtemself.h: Ditto.
9118 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9119 config/mips/rtems64.h: Ditto.
9120 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9121 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9122 Ditto.
9123 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9124 config/sparc/rtemself.h: Ditto.
9125 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9126 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9127 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9128 more like arm-elf.
9129 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9130 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9131 target made more similar to i386-elf.
9132 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9133 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9134 be similar to config/m68k/t-m68kelf.
9135 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9136
9137 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9138
9139 * regmove.c (kill_value): Handle subregs.
9140
9141 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9142
9143 * i386.md (mul patterns): Allow memory operand to be first;
9144 add expanders where needed; fix constraints.
9145 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9146 Allow memory operand to be the first.
9147
9148 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9149 operands.
9150
9151 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9152
9153 PR c/5681:
9154 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9155 GET_MODE (x).
9156
9157 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9158
9159 PR optimization/5547:
9160 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9161 all valid IA-32 address modes involving non-scaled %ebx and
9162 GOT/GOTOFF as displacement.
9163
9164 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9165
9166 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9167 after emitting ltorg insns.
9168
9169 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9170 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9171 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9172 *abssf2): Fix "op_type" attribute.
9173
9174 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9175
9176 * mkconfig.sh: Avoid using a subshell redirect.
9177 ($output.T): Change to $(output)T.
9178 (ENABLE_NLS): Remove unneeded undef.
9179
9180 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9181 * config/alpha/x-vms (libsubdir): Define.
9182
9183 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9184 register frame procedures. Optimize retrieving context.
9185
9186 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9187 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9188 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9189
9190 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9191
9192 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9193 Make same change as for find_base_value.
9194
9195 2002-02-13 Kazu Hirata <kazu@hxi.com>
9196
9197 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9198 of QImode and SImode.
9199
9200 2002-02-13 Kazu Hirata <kazu@hxi.com>
9201
9202 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9203 length computation of movsi.
9204 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9205
9206 2002-02-13 Kazu Hirata <kazu@hxi.com>
9207
9208 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9209 operands[2] to register_operand.
9210
9211 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9212
9213 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9214
9215 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9216
9217 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9218 for altivec_lvx* and altivec_stvx*.
9219 ("*movv4si_internal"): Add constraint for loading from GPRs.
9220 ("*movv8hi_internal1"): Same.
9221 ("*movv16qi_internal1"): Same.
9222 ("*movv4sf_internal1"): Same.
9223
9224 * config/rs6000/rs6000.c (altivec_register_operand): New.
9225
9226 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9227 altivec_register_operand.
9228
9229 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9230
9231 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9232 handle SYMBOL_REF.
9233
9234 2002-02-13 Stan Shebs <shebs@apple.com>
9235
9236 * c-typeck.c (digest_init): Handle vectors.
9237 (really_start_incremental_init): Same.
9238 (pop_init_level): Same.
9239 (process_init_element): Same.
9240
9241 * varasm.c (output_constant): Same.
9242
9243 * expr.c (clear_storage): Same.
9244 (store_constructor): Same.
9245
9246 2002-02-12 Eric Christopher <echristo@redhat.com>
9247
9248 * explow.c (hard_function_value): Add comment explaining
9249 signed/unsigned comparison.
9250
9251 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9252
9253 * jump.c (never_reached_warning): Add finish argument.
9254 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9255 real insn after end.
9256 * rtl.h (never_reached_warning): Adjust prototype.
9257 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9258 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9259 never_reached_warning.
9260
9261 2002-02-12 Graham Stott <grahams@redhat.com>
9262
9263 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9264
9265 2002-02-12 Kazu Hirata <kazu@hxi.com>
9266
9267 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9268 logical shifts on H8/300.
9269 (shift_alg_si): Improve several shifts on H8/300.
9270 (get_shift_alg): Likewise.
9271
9272 2002-02-12 Graham Stott <grahams@redhat.com>
9273
9274 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9275
9276 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9277
9278 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9279 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9280
9281 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9282
9283 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9284 non-CONST_INT through default_assemble_integer.
9285 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9286 <case 8>: Abort for CONST_DOUBLE.
9287
9288 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9289
9290 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9291 is specified.
9292 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9293 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9294
9295 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9296
9297 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9298
9299 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9300
9301 * regrename.c (regrename_optimize): Don't accept a
9302 part-clobbered register if the replaced register is not part
9303 clobbered.
9304
9305 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9306 take padding into account when computing the argument value.
9307
9308 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9309
9310 * combine.c (try_combine): Apply substitutions in
9311 CALL_INSN_FUNCTION_USAGE too.
9312
9313 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9314
9315 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9316 __builtin_altivec_abs*.
9317 (bdesc_abs): New.
9318
9319 * config/rs6000/rs6000.h (rs6000_builtins): Add
9320 ALTIVEC_BUILTIN_ABS*.
9321
9322 * config/rs6000/altivec.h: Use const char for builtins expecting
9323 literals.
9324 (vec_abs): New versions for C and C++.
9325 (vec_abss): Same.
9326
9327 2002-02-10 Kazu Hirata <kazu@hxi.com>
9328
9329 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9330 using Pmode.
9331
9332 2002-02-10 Kazu Hirata <kazu@hxi.com>
9333
9334 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9335 constant definition from h8300.md.
9336 (FRAME_POINTER_REGNUM): Likewise.
9337 * config/h8300/h8300.md (define_constants): Add FP_REG.
9338
9339 2002-02-10 Kazu Hirata <kazu@hxi.com>
9340
9341 * config/h8300/h8300.c (print_operand): Remove redundant code.
9342
9343 2002-02-10 Kazu Hirata <kazu@hxi.com>
9344
9345 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9346 * config/h8300/h8300.c (byte_reg): Make it static.
9347
9348 2002-02-10 Richard Henderson <rth@redhat.com>
9349
9350 PR c/5623
9351 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9352
9353 2002-02-10 Richard Henderson <rth@redhat.com>
9354
9355 PR c++/5624
9356 * tree.c (append_random_chars): Don't abort if main_input_filename
9357 does not exist.
9358
9359 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9360
9361 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9362
9363 2002-02-10 Kazu Hirata <kazu@hxi.com>
9364
9365 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9366 (pushhi1): Likewise.
9367
9368 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9369
9370 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9371 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9372
9373 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9374
9375 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9376 remove MASK_VIS.
9377 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9378
9379 2002-02-09 Kazu Hirata <kazu@hxi.com>
9380
9381 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9382 a half of an SImode register on H8/300.
9383
9384 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9385
9386 * i386.md (movdi_2): Add missing '!'.
9387
9388 2002-02-09 Kazu Hirata <kazu@hxi.com>
9389
9390 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9391 definitions.
9392
9393 2002-02-09 Kazu Hirata <kazu@hxi.com>
9394
9395 * config/h8300/h8300.md (length): Correct the distance valid
9396 for the short branch.
9397
9398 2002-02-09 Kazu Hirata <kazu@hxi.com>
9399
9400 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9401
9402 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9403
9404 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9405 registers in SImode.
9406 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9407 part-clobbered.
9408
9409 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9410 patch.
9411
9412 Contribute sh64-elf.
9413 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9414 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9415 (sh_cannot_modify_jumps_p): New function.
9416 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9417 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9418 (sh_ms_bitfield_layout_p): New function.
9419 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9420 Zack Weinberg <zack@codesourcery.com>
9421 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9422 expand_simple_binop instead of expand_binop.
9423 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9424 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9425 use of .quad and .uaquad.
9426 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9427 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9428 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9429 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9430 movdi_const_16bit): Make sure all CONSTs have modes.
9431 (sym2PIC): Ditto, but by adjusting all callers.
9432 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9433 if the prologue calls the SHmedia argument decoder or register
9434 saver.
9435 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9436 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9437 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9438 (sh_expand_epilogue): Don't emit USE of return target register.
9439 (prepare_move_operands): Legitimize DImode PIC addresses.
9440 (sh_media_register_for_return): Skip tr0, used to initialize the
9441 PIC register.
9442 (sh_expand_prologue): Remove explicit USE of return register.
9443 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9444 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9445 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9446 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9447 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9448 EXTRA_CONSTRAINT_T.
9449 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9450 (MOVI_SHORI_BASE_OPERAND_P): New.
9451 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9452 (EXTRA_CONSTRAINT_T): Define in terms of them.
9453 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9454 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9455 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9456 alternatives supporting TARGET_REGS.
9457 (UNSPEC_GOTPLT): New constant.
9458 (movdi split): Move incrementing of LABEL_NUSES...
9459 (movdi_const, movdi_const_32bit): Here. Use
9460 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9461 (movdi_const_16bit): New.
9462 (call, call_value) [flag_pic]: Use GOTPLT.
9463 (call_pop, call_value_pop): New expands.
9464 (call_pop_compact, call_pop_rettramp): New insns.
9465 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9466 (sibcall) [flag_pic]: Use GOT.
9467 (builtint_setjmp_receiver): Remove bogus, unused expand.
9468 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9469 (*pt, *ptb, ptrel): New insns.
9470 (sym2GOT): Handle DImode GOT.
9471 (sym2GOTPLT, symGOTPLT2reg): New expands.
9472 (sym2PIC): New expand.
9473 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9474 (shcompact_return_tramp_i): Use return register explicitly.
9475 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9476 disable flag_reorder_blocks.
9477 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9478 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9479 clobbers, for clarity.
9480 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9481 restoring of r0 in macl as MAYBE_DEAD.
9482 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9483 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9484 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9485 alter_subreg all over.
9486 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9487 reload, instead of emitting instructions that would require
9488 reloading.
9489 (casesi_load_media): Add missing modes.
9490 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9491 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9492 as used if the argument decoder is called.
9493 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9494 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9495 Pmode, then extend it to DImode if necessary.
9496 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9497 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9498 constants in FPU-enabled SHmedia, let them be loaded from memory.
9499 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9500 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9501 Adjust whitespace in assembly output templates.
9502 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9503 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9504 mode of if_then_else.
9505 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9506 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9507 sh.h.
9508 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9509 Joern Rennecke <amylaar@redhat.com>
9510 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9511 (SUBTARGET_CPP_PTR_SPEC): New.
9512 (SUBTARGET_CPP_SPEC): Remove.
9513 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9514 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9515 Fix typo in previous checkin.
9516 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9517 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9518 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9519 Alexandre Oliva <aoliva@redhat.com>
9520 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9521 what single FP register can hold for SHmedia target.
9522 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9523 Alexandre Oliva <aoliva@redhat.com>
9524 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9525 Do not split into SUBREG.
9526 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9527 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9528 and added new functions as specified in SH5 ABI r9.
9529 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9530 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9531 8-byte boundary.
9532 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9533 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9534 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9535 and consttable_window_ends.
9536 2001-06-03 Graham Stott <grahams@redhat,com>
9537 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9538 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9539 * config/sh/sh.c (print_operand): Handle floating-point pair,
9540 vector and matrix registers.
9541 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9542 vector modes into account.
9543 * config/sh/sh.md (movv2sf): Split move between registers into
9544 movdf.
9545 (movv4sf, movv16sf): Introduce insns that get split only after
9546 reload.
9547 * config/sh/shmedia.h: Fix Copyright dates.
9548 * config/sh/ushmedia.h: Likewise. Move loop counter
9549 declarations into conditionals that uses them.
9550 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9551 loop boundary.
9552 * config/sh/sshmedia.h: Fix Copyright dates.
9553 (sh_media_PUTCFG): Fix constraints.
9554 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
9555 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9556 ptrmemfunc_vbit_in_delta for SH5.
9557 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
9558 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9559 * invoke.texi: Likewise.
9560 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9561 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9562 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9563 GCC_pop_shmedia_regs_nofpu): New global symbols.
9564 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9565 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9566 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9567 compact function with nonlocal labels.
9568 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9569 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9570 (initial_elimination_offset): Account for their stack space.
9571 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9572 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9573 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9574 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9575 least one of the operands to be a register.
9576 (movv2sf): Likewise. Renamed to movv2sf_i.
9577 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9578 prepare_move_operands() before emitting SHmedia insns.
9579 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
9580 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9581 Don't save nor initialize r12. Don't mis-align the stack.
9582 Pad the code with a nop.
9583 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
9584 stack.
9585 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9586 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9587 [__SHMEDIA__]: Implement.
9588 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
9589 * config/sh/sh.md: Set latency of `pt' closer to reality.
9590 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9591 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9592 Set move, load and store type attributes.
9593 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9594 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9595 profiling.
9596 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9597 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9598 * config/sh/sh.c (sh_media_register_for_return): New function.
9599 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9600 branch-target register.
9601 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9602 * config/sh/sh.md (return_media_i): Use any call-clobbered
9603 branch-target register.
9604 (return_media): If r18 wasn't copied in the prologue, copy it
9605 here.
9606 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9607 Clear class FP0_REGS.
9608 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9609 from elf.h.
9610 2001-03-08 DJ Delorie <dj@redhat.com>
9611 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9612 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
9613 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9614 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
9615 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9616 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
9617 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9618 return value correctly for call_cookie.
9619 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
9620 * config/sh/crt1.asm (start): Modified so as to call
9621 ___setup_argv_and_call_main.
9622 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
9623 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9624 SHmedia mode.
9625 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
9626 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9627 (STRIP_NAME_ENCODING): Use it.
9628 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
9629 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
9630 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9631 prepare_scc_operands().
9632 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9633 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9634 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
9635 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9636 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
9637 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9638 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9639 used in shcompact_incoming_args.
9640 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9641 change.
9642 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9643 mode.
9644 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9645 Adjust accordingly.
9646 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9647 Simplify. Adjust. Add sanity check.
9648 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9649 FPU_SINGLE_BIT.
9650 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9651 TARGET_SHCOMPACT.
9652 (udivsi3, divsi3): Use them.
9653 (force_mode_for_call): New insn.
9654 (call, call_value, sibcall_value): Emit it before SHcompact
9655 calls.
9656 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
9657 * config/sh/sh.md (call, call_value, sibcall): Make sure the
9658 call cookie is non-NULL before taking its value.
9659 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
9660 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9661 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
9662 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9663 block.
9664 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9665 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9666 temporary for stack adjusts. Use MACL and MACH to pass
9667 arguments to shcompact_incoming_args.
9668 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
9669 clobber r1.
9670 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9671 (nested_trampoline): Load static chain address into r1.
9672 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9673 2001-01-07 Alexandre Oliva <aoliva@redhat.com
9674 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9675 fp_arith_reg_operand().
9676 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
9677 * config/sh/sh.md (casesi): Sign-extend the first two operands,
9678 and use signed compares for them.
9679 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9680 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
9681 ones properly aligned.
9682 (find_barrier): Account for extra alignment needed for 8-byte wide
9683 constants.
9684 (machine_dependent_reorg): Require a label for the second 4-byte
9685 constant after an 8-byte one.
9686 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9687 change.
9688 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9689 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9690 last_float when switching float modes.
9691 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9692 auto-increment for general-purpose registers.
9693 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9694 result.
9695 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9696 for stack adjust.
9697 * config/sh/sh.c (sh_builtin_saveregs): Support using all
9698 registers for varargs.
9699 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
9700 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9701 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9702 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9703 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9704 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
9705 call_cookie accordingly.
9706 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9707 (SHCOMPACT_BYREF): Likewise.
9708 (SHCOMPACT_FORCE_ON_STACK): New macro.
9709 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9710 (sh_builtin_saveregs): Likewise.
9711 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9712 shcompact_incoming_args): Use new shift values. Support
9713 sequences of consecutive and non-consecutive pushes/pops.
9714 * config/sh/sh.md (return): Don't explicitly use PR_REG.
9715 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
9716 * config/sh/sh.h (TEXT_SECTION): Define.
9717 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9718 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9719 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9720 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9721 return values on FPU-enabled SHmedia.
9722 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9723 FPU-enabled SHmedia.
9724 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9725 value is returned in a non-FP reg and is not returned by
9726 reference.
9727 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9728 jump_ind.
9729 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
9730 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9731 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9732 quad-aligned to be passed by callee-copy reference.
9733 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
9734 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9735 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9736 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
9737 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9738 copying low-numbered FP regs to r7 and r8.
9739 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9740 FP regs to general-purpose regs only if the copy was passed on the
9741 stack.
9742 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9743 copying FP reg to r9.
9744 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9745 copy FP regs to general-purpose regs only in outgoing calls.
9746 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9747 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
9748 HOST_WIDE_INT.
9749 * config/sh/sh.h (struct sh_args): Document all fields.
9750 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9751 passed partially on the stack should not consider making
9752 sibcalls.
9753 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9754 stack_regs only for incoming calls. When passing FP args,
9755 make sure there are FP regs available before modifying
9756 call_cookie.
9757 (SHCOMPACT_BYREF): Pass double args in general-purpose
9758 registers by reference.
9759 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
9760 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9761 attempt to generate sibcalls if the caller got any arguments
9762 by reference.
9763 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9764 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9765 to 8-byte boundaries.
9766 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9767 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9768 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9769 stored in the stack.
9770 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9771 for the offsets to have the ISA bit set.
9772 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
9773 invocation. Use beq instead of bgt to mark end of sequence of
9774 loads.
9775 (shcompact_incoming_args): Fix store of r2. Use beq instead of
9776 bgt to mark end of sequence of stores.
9777 * config/sh/sh.c (arith_operand): Don't check whether
9778 CONST_OK_FOR_J for now.
9779 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9780 instead of long for conversion.
9781 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
9782 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9783 before passing it to fprintf.
9784 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
9785 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9786 Call set_fpscr before reading/writing SR.
9787 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9788 Call set_fpscr.
9789 * config/sh/lib1funcs.asm: Add `.align 2' directives before
9790 SHmedia code.
9791 (FMOVD_WORKS): Define on SH5 with FPU.
9792 (set_fpscr): Define on SH5. Remove separate _fpscr_values
9793 setting.
9794 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9795 _fpscr_values.
9796 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
9797 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9798 address.
9799 (ia_main_table): Ditto.
9800 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
9801 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9802 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9803 the definitions from sh.h.
9804 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9805 TARGET_SH5.
9806 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9807 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9808 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9809 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
9810 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9811 Increment LABEL_NUSES.
9812
9813 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9814 TARGET_SH5.
9815 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9816 defined.
9817 * config/sh/elf.h (SIZE_TYPE): Likewise.
9818 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9819 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9820 shcompact_incoming_args): Load switch table addresses using
9821 datalabel.
9822 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9823 (NO_BUILTIN_SIZE_TYPE): Define.
9824 (SIZE_TYPE): Don't define.
9825 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9826 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
9827 definition of __SH5__=32 for -m5-compact-nofpu.
9828 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
9829 ADDR_DIFF_VEC.
9830 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
9831 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
9832 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
9833 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
9834 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
9835 (INSN_LENGTH_ALIGNMENT): Likewise.
9836 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9837 * config/sh/sh.md (call, call_value, sibcall): Simplify
9838 copying of non-branch-target register.
9839 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9840 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
9841 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
9842 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9843 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
9844 floating-point values as structs.
9845 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
9846 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
9847 general-purpose register.
9848 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
9849 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9850 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
9851 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
9852 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
9853 (ENCODE_SECTION_INFO): Enclose variables and constants in
9854 DATALABEL unspecs.
9855 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
9856 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
9857 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
9858 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
9859 only for LABEL_REFs. For SYMBOL_REFs, prepend
9860 SH_DATALABEL_ENCODING to the symbol name.
9861 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
9862 convert_mode().
9863 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9864 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
9865 UNSPEC_DATALABEL.
9866 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
9867 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
9868 (DATALABEL_REF_P): Don't require CONST.
9869 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
9870 REL label.
9871 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
9872 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
9873 right.
9874 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9875 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
9876 Use shallow_copy_rtx and PUT_MODE to change the mode of
9877 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
9878 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
9879 on SHmedia using GENERAL_REGs.
9880 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9881 bltu_media_i): Fix reversion of conditions.
9882 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9883 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
9884 * config/sh/sh.c (output_far_jump): Save r13 in macl.
9885 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
9886 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
9887 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
9888 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
9889 (GCC_nested_trampoline): Likewise.
9890 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
9891 * config/sh/sh.c (gen_datalabel_ref): Define.
9892 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
9893 (INITIALIZE_TRAMPOLINE): Likewise.
9894 (TRAMPOLINE_ADJUST_ADDRESS): Define.
9895 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
9896 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
9897 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
9898 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
9899 (ic_invalidate): Adjust for SH5.
9900 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
9901 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
9902 _nested_trampoline.
9903 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
9904 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
9905 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
9906 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9907 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
9908 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
9909 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9910 * config/sh/sh.c (target_reg_operand): Match only target-branch
9911 registers and pseudos that aren't virtual registers.
9912 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9913 Copy operands that don't match target_reg_operand to pseudos.
9914 (call_media, call_value_media, sibcall_media): Use
9915 target_reg_operand instead of target_operand.
9916 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
9917 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
9918 * config/sh/sh.c (target_reg_operand): Match hardware registers
9919 other than branch-target registers.
9920 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9921 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9922 (fpscr_values) [SH5 == 32]: Define.
9923 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9924 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9925 Handle function addresses coming in SUBREGs.
9926 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
9927 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9928 shcompact_return_trampoline): Use datalabel where appropriate.
9929 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
9930 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9931 general-purpose register to copy one branch-target register to
9932 another.
9933 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9934 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9935 SYMBOL_REFs with VOIDmode.
9936 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9937 bltu_media_i): New insns.
9938 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9939 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9940 (INIT_CUMULATIVE_ARGS): Likewise.
9941 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
9942 * machmode.def (V16SFmode): New mode.
9943 * c-common.c (type_for_mode): Support V2SF and V16SF.
9944 * tree.c (build_common_tree_nodes_2): Likewise.
9945 * tree.h (tree_index): Likewise.
9946 * calls.c (emit_call_1): Take args_so_far. Adjust all
9947 callers. Introduce CALL_POPS_ARGS.
9948 * tm.texi (CALL_POPS_ARGS): Document.
9949 * config/sh/crt1.asm: Implement in SHmedia mode.
9950 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9951 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9952 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9953 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9954 Implement divsi and udivsi in SHmedia mode. Introduce
9955 SHcompact trampolines.
9956 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9957 only in SHmedia64.
9958 (regno_reg_class): Rewrite.
9959 (fp_reg_names): Remove.
9960 (sh_register_names, sh_additional_register_names): New.
9961 (print_operand): Added `u'. Support SUBREGs in addresses.
9962 Add parentheses around shifted CONSTs.
9963 (output_file_start): Output .mode and .abi directives.
9964 (shiftcosts, addsubcosts, multcosts): Adjust.
9965 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
9966 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
9967 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
9968 bytes, not registers. Take into account the need for the
9969 SHcompact incoming args trampoline. Adjust all callers.
9970 (sh_expand_prologue): Take stack_regs into account. Call
9971 incoming args trampoline. Keep stack aligned as per SH5 ABI.
9972 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
9973 stack aligned as per SH5 ABI.
9974 (sh_builtin_saveregs): Support SH5 ABI.
9975 (sh_build_va_list, sh_va_start): Likewise.
9976 (initial_elimination_offset): Take alignment into account.
9977 Compute location of PR according to the SH5 stack frame.
9978 (arith_reg_operand): Reject branch-target registers.
9979 (shmedia_6bit_operand): New.
9980 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9981 (target_reg_operand): Match DImode only. Accept SUBREGs.
9982 (target_operand): New.
9983 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9984 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
9985 SIBCALL_REGS for SHmedia.
9986 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9987 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9988 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9989 (TARGET_SWITCHES): New SH5 flags.
9990 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
9991 VALID_REGISTER_P to disable unsupported registers.
9992 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9993 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9994 (FUNCTION_ARG_PADDING): Define.
9995 (FASTEST_ALIGNMENT): Adjust.
9996 (SH_REGISTER_NAMES_INITIALIZER): New.
9997 (sh_register_names): Declare.
9998 (DEBUG_REGISTER_NAMES): Define.
9999 (REGISTER_NAMES): Define based on sh_register_names.
10000 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10001 (sh_additional_register_names): Declare.
10002 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10003 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10004 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10005 (REGISTER_NATURAL_MODE): Define.
10006 (FIRST_PSEUDO_REGISTER): Adjust.
10007 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10008 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10009 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10010 (VECTOR_MODE_SUPPORTED_P): Define.
10011 (REG_CLASS_CONTENTS): Adjust.
10012 (SMALL_REGISTER_CLASSES): Adjust.
10013 (REG_ALLOC_ORDER): Adjust.
10014 (INDEX_REG_CLASS): Adjust.
10015 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10016 (CONST_OK_FOR_LETTER_P): Adjust.
10017 (PREFERRED_RELOAD_CLASS): Adjust.
10018 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10019 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10020 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10021 (FIRST_FP_PARM_REG): Adjust.
10022 (CALL_POPS_ARGS): Define.
10023 (FUNCTION_ARG_REGNO_P): Adjust.
10024 (struct sh_args): New fields.
10025 (GET_SH_ARG_CLASS): Adjust.
10026 (INIT_CUMULATIVE_ARGS): Adjust.
10027 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10028 (FUNCTION_ARG_ADVANCE): Adjust.
10029 (FUNCTION_ARG): Adjust.
10030 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10031 (FUNCTION_ARG_CALLEE_COPIES): Define.
10032 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10033 (STRICT_ARGUMENT_NAMING): Define.
10034 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10035 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10036 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10037 (SETUP_INCOMING_VARARGS): Adjust.
10038 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10039 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10040 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10041 (SUBREG_OK_FOR_INDEX_P): Adjust.
10042 (EXTRA_CONSTRAINT_S): Update.
10043 (EXTRA_CONSTRAINT_T): New.
10044 (EXTRA_CONSTRAINT): Adjust.
10045 (GO_IF_LEGITIMATE_INDEX): Adjust.
10046 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10047 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10048 (MOVE_MAX): Adjust.
10049 (MAX_MOVE_MAX): Define.
10050 (Pmode): Adjust.
10051 (CONST_COSTS): Adjust.
10052 (REGISTER_MOVE_COST): Adjust.
10053 (BRANCH_COST): Adjust.
10054 (TEXT_SECTION_ASM_OP): Adjust.
10055 (DBX_REGISTER_NUMBER): Adjust.
10056 (ASM_OUTPUT_DOUBLE_INT): New.
10057 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10058 (PREDICATE_CODES): Adjust.
10059 (PROMOTE_MODE): Adjust.
10060 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10061 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10062 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10063 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10064 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10065 (TR0_REG, TR1_REG, TR2_REG): New.
10066 (XD0_REG): Renumber.
10067 (UNSPEC_COMPACT_ARGS): New.
10068 (type): Added pt and ptabs.
10069 (length): Default to 4 on SHmedia. Default pt length to 12
10070 and 20 on SHmedia32 and SHmedia64, respectively.
10071 (pt): New function unit.
10072 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10073 Add whitespace between operands of SHmedia instructions.
10074 (movdicc): Fix.
10075 (adddi3_media, addsi3_media): Adjust constraints.
10076 (subsi3) [SHmedia]: Force operand 1 into a register.
10077 (udivsi3_i1_media, udivsi3_i4_media): New.
10078 (udivsi3): Support SHmedia.
10079 (divsi3_i1_media, divsi3_i4_media): New.
10080 (divsi3): Support SHmedia.
10081 (anddi3, iordi3, xordi3): Adjust constraints.
10082 (zero_extendhidi2, zero_extendqidi2): New.
10083 (extendsidi2, extendhidi2, extendqidi2): New.
10084 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10085 (pop_e, pop_fpul, pop_4): Likewise.
10086 (movsi_media): Support FP and BT registers.
10087 (movsi_media_nofpu): New. Adjust splits to DImode.
10088 (lduw, ldub): Renamed to zero_extend* above.
10089 (movqi_media): Fix typo.
10090 (movdi_media): Support FP and BT registers.
10091 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10092 (movdi_const_32bit): New.
10093 (shori_media): Require immediate operand. Use `u' for output.
10094 (movdf_media, movsf_media): Simplified.
10095 (movdf_media_nofpu, movsf_media_nofpu): New.
10096 (movdf, movsf): Adjust
10097 (movv2sf, movv2sf, movv16sf): New.
10098 (beq_media, beq_media_i): Adjust constraints. Don't use
10099 scratch BT register.
10100 (bne_media, bne_media_i): Likewise.
10101 (bgt_media, bgt_media_i): Likewise.
10102 (bge_media, bge_media_i): Likewise.
10103 (bgtu_media, bgtu_media_i): Likewise.
10104 (bgeu_media, bgeu_media_i): Likewise.
10105 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10106 bunordered): Emit jump insn. Force operands to registers when
10107 needed.
10108 (jump_media, jump): Simplify.
10109 (call_compact, call_compact_rettramp): New.
10110 (call_value_compact, call_value_compact_rettramp): New.
10111 (call_media, call_value_media): Simplify.
10112 (sibcall_compact, sibcall_media): New.
10113 (call, call_value): Adjust for SHmedia and SHcompact.
10114 (sibcall, sibcall_value, untyped_call): Likewise.
10115 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10116 (indirect_jump): Adjust for SHmedia.
10117 (casesi_jump_media): New.
10118 (nop): Re-enable for SHmedia.
10119 (call_site): Restrict to SH1.
10120 (casesi): Adjust for SHmedia.
10121 (casesi_shift_media, casesi_load_media): New.
10122 (return): Explicitly use PR register. Call return trampoline
10123 on SHcompact.
10124 (return_i): Explicitly use PR register.
10125 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10126 (return_media): Adjust.
10127 (shcompact_incoming_args): New.
10128 (epilogue): Adjust.
10129 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10130 (movstrsi): Disable on SH5.
10131 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10132 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10133 (subsf3, subsf3_media): Likewise.
10134 (mulsf3, mulsf3_media, mac_media): Likewise.
10135 (divsf3, divsf3_media): Likewise.
10136 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10137 (floatsisf2, fux_truncsfsi2): Likewise.
10138 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10139 constraints.
10140 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10141 (cmpunsf_media, cmpsf): Likewise.
10142 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10143 (abssf2, abssf2_media): Likewise.
10144 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10145 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10146 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10147 (floatsidf2, fix_truncdfsi2): Likewise.
10148 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10149 constraints.
10150 (cmpeqdf_media, cmpgtdf_media): Likewise.
10151 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10152 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10153 (absdf2, absdf2_media): Likewise.
10154 (extendsfdf2, extendsfdf2_media): Likewise.
10155 (truncsfdf2, truncsfdf2_media): Likewise.
10156 * config/sh/sh64.h: New file.
10157 * config/sh/t-sh64: New file.
10158 * config/sh/shmedia.h: New file.
10159 * config/sh/ushmedia.h: New file.
10160 * config/sh/sshmedia.h: New file.
10161 * configure.in: Added sh64-*-elf.
10162 * configure: Rebuilt.
10163 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10164 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10165 (reg_class_from_letter): Use `b' for TARGET_REGS.
10166 (print_operand): Support `%M', `%m', `AND' and
10167 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10168 (andcosts): Adjust for SHmedia.
10169 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10170 Likewise.
10171 (target_reg_operand): New function.
10172 * config/sh/sh-protos.h (target_reg_operand): Declare.
10173 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10174 FP registers on SH5.
10175 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10176 on SH4.
10177 (TARGET_REGISTER_P): New macro.
10178 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10179 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10180 (EXTRA_CONSTRAINT_S): New macro.
10181 (EXTRA_CONSTRAINT): Adjust.
10182 (FLOAT_TYPE_SIZE): Define to 32.
10183 (Pmode): DImode on SHmedia.
10184 (CONST_COSTS): Adjust for SHmedia literals.
10185 (PREDICATE_CODES): Added target_reg_operand.
10186 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10187 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10188 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10189 (cmpdi): Accept SHmedia.
10190 (movdicc_false, movdicc_true): New insns.
10191 (movdicc): New expand.
10192 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10193 no_new_pseudos.
10194 (addsi3_media): Match `S' constraint.
10195 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10196 (negdi2): Expand for SHmedia.
10197 (one_cmpldi2): New expand.
10198 (zero_extendsidi2): Change from expand to insn.
10199 (extendsidi2): Add constraints.
10200 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10201 LD/ST address. Fix SI immediate loading split.
10202 (movhi_media, movqi_media, lduw, ldub): New insns.
10203 (movhi, movqi): Accept SHmedia.
10204 (shori_media, movdi_media): Relax input constraints. Split
10205 symbolic constants.
10206 (movdf_media, movsf_media): New insn. New split to movdi.
10207 (movdf, movsf): Match on SHmedia.
10208 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10209 bgeu_media): New insns and splits. New insns with `_i' suffix.
10210 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10211 (bunordered): New expand.
10212 (jump_compact): Renamed from `jump'.
10213 (jump_media): New insn.
10214 (jump): New expand.
10215 (call_media, call_value_media): New insns.
10216 (call, call_value): Adjust.
10217 (indirect_jump_compact): Renamed from `indirect_jump'.
10218 (indirect_jump_media): New insn.
10219 (indirect_jump): New expand.
10220 (untyped_call, return): Accept SHmedia.
10221 (return_media): New insn.
10222 (prologue, epilogue, blockage): Accept SHmedia.
10223 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10224 (sunordered): New expand.
10225 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10226 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10227 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10228 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10229 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10230 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10231 abssf2_media): New insns.
10232 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10233 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10234 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10235 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10236 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10237 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10238 absdf2_media): New insns.
10239 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10240 (extendsfdf2_media, truncdfsf2_media): New insns.
10241 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10242 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10243 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10244 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10245 * config/sh/sh.md (adddi3): New expand.
10246 (adddi3_media, adddi3z_media): New insns.
10247 (adddi3_compact): Renamed from adddi3.
10248 (addsi3_media): Use add.l r63 to add constant zero.
10249 (subdi3): New expand.
10250 (subdi3_media): New insn.
10251 (subdi3_compact): Renamed from subdi3.
10252 (mulsidi3): New expand.
10253 (mulsidi3_media): New insn.
10254 (mulsidi3_compact): Renamed from mulsidi3.
10255 (umulsidi3): New expand.
10256 (umulsidi3_media): New insn.
10257 (umulsidi3_compact): Renamed from umulsidi3.
10258 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10259 (ashlsi3, ashrsi3, lshrsi3): Use them.
10260 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10261 (ashldi3, ashrdi3, lshrdi3): Use them.
10262 (zero_extendsidi2): New expand.
10263 (extendsidi2): New insn.
10264 (movsi_media): New insn. Split to movdi to load constants.
10265 (movsi): Enable for shmedia.
10266 (movdi_media): New insn. Use shori_media to load wide constants.
10267 (short_media): New insn.
10268 (movdi): Enable for shmedia.
10269 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10270 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10271 (SUBTARGET_CPP_SPEC): Added `!m5'.
10272 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10273 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10274 to all other SH variants.
10275 (TARGET_DEFAULT): Set to SH1_BIT.
10276 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10277 (BITS_PER_WORD): Raise to 64 on shmedia.
10278 (MAX_BITS_PER_WORD): Change to 64.
10279 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10280 (INT_TYPE_SIZE): Keep as 32.
10281 (UNITS_PER_WORD): Raise to 8 on shmedia.
10282 (MIN_UNITS_PER_WORD): Keep as 4.
10283 (POINTER_SIZE): Raise to 64 on shmedia.
10284 (CONST_OK_FOR_J): New macro.
10285 (CONST_OK_FOR_LETTER_P): Use it.
10286 (processor_type): Add PROCESSOR_SH5.
10287 * config/sh/sh.md: Conditionalize all expands, insns and
10288 splits to TARGET_SH1.
10289 (cpu): Added sh5.
10290 (addsi3_compact): Renamed from...
10291 (addsi3): Now an expand.
10292 (addsi3_media, subsi3_media): New insns.
10293 (subsi3): Don't negate constants with SHmedia.
10294
10295 * hooks.c: New file.
10296 * hooks.h: New file.
10297 * Makefile.in (HOOKS_H): New.
10298 (TARGET_DEF_H): Added $(HOOKS_H).
10299 (OBJS): Added hooks.o.
10300 (cfgcleanup.o, bb-reorder.o): Added target.h.
10301 (hooks.o): Added dependencies.
10302 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10303 (TARGET_INITIALIZER): this.
10304 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10305 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10306 * bb-reorder.c: Include target.h.
10307 (reorder_basic_blocks): Skip if cannot modify jumps.
10308 * cfgcleanup.c: Include target.h.
10309 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10310
10311 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10312
10313 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10314 Protect jump delay slot instructions with .set noreorder and
10315 .set nomacro.
10316
10317 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10318
10319 * config/mips/mips.md (casesi_internal_di): Calculate
10320 the index into the target offset table correctly.
10321
10322 2002-02-08 Richard Henderson <rth@redhat.com>
10323
10324 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10325 * final.c (output_addr_const): Accept and discard SUBREG.
10326 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10327 mark them unknown instead.
10328 (simplify_subtraction): Handle RTX_UNKNOWN.
10329 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10330
10331 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10332
10333 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10334
10335 2002-02-08 Richard Henderson <rth@redhat.com>
10336
10337 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10338
10339 2002-02-08 Andreas Jaeger <aj@suse.de>
10340
10341 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10342 * config/i386/t-linux64: New file.
10343
10344 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10345
10346 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10347 * c-parse.in (compstmt): Clear last_expr_type.
10348
10349 2002-02-07 Richard Henderson <rth@redhat.com>
10350
10351 * loop.c (strength_reduce): Sink final_value when not
10352 eliminating a biv.
10353
10354 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10355
10356 * config/sparc/freebsd.h: Fix mismatched spec {.
10357
10358 2002-02-07 Richard Henderson <rth@redhat.com>
10359
10360 * cfgrtl.c: Include recog.h and insn-config.h.
10361 (keep_with_call_p): Fix general_operand invocation.
10362 * Makefile.in (cfgrtl.o): Update dependencies.
10363
10364 2002-02-07 Kazu Hirata <kazu@hxi.com>
10365
10366 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10367 comment. Accept HImode only if TARGET_H8300.
10368
10369 2002-02-07 Eric Christopher <echristo@redhat.com>
10370
10371 * config/mips/crtn.asm: Cleanup #ifdefs.
10372
10373 2002-02-07 Eric Christopher <echristo@redhat.com>
10374
10375 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10376 register 7 as RA instead of $31.
10377 * config/mips/crtn.asm: Ditto.
10378 * config/mips/mips.c (mips_move_2words): Add case for
10379 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10380 (compute_frame_size): Fix typo.
10381 (save_restore_insns): Ditto. Make documentation about using
10382 register $7 as return register more precise.
10383 (mips_expand_epilogue): Fix comment. Add code to work around not
10384 being able to add to the stack pointer directly.
10385 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10386 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10387 epilogue.
10388
10389 2002-02-07 Tom Rix <trix@redhat.com>
10390
10391 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10392 immediates in ldu and stdu DS opcode field.
10393 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10394 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10395 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10396
10397 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10398
10399 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10400 offset for stack bias.
10401
10402 2002-02-07 H.J. Lu <hjl@gnu.org>
10403
10404 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10405
10406 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10407
10408 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10409
10410 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10411
10412 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10413 * i386.c (x86_order_regs_for_local_alloc): New global function.
10414 * i386.h (REG_ALLOC_ORDER): CLeanup.
10415 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10416
10417 2002-02-07 Richard Henderson <rth@redhat.com>
10418
10419 PR optimization/2463
10420 * alias.c (find_base_value): Recall base values for fixed hard regs.
10421 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10422
10423 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10424
10425 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10426 length.
10427
10428 2002-02-06 Richard Henderson <rth@redhat.com>
10429
10430 PR c/5609
10431 * stmt.c (resolve_operand_name_1): Take more care with mixed
10432 named and unnamed operands.
10433
10434 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10435 Jan Hubicka <jh@suse.cz>
10436
10437 * loop.c (remove_constant_addition): Avoid clobbering a shared
10438 CONST expression.
10439
10440 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10441
10442 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10443 * config/s390/t-linux64: New file.
10444 * config/s390/libgcc-glibc.ver: New file.
10445
10446 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10447
10448 * config/s390/linux64.h: Delete file.
10449 * config/s390/s390x.h: New file.
10450 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10451 as target header file.
10452 * config/s390/linux.h (TARGET_VERSION): Define depending on
10453 DEFAULT_TARGET_64BIT.
10454 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10455 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10456 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10457 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10458 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10459 (EXTRA_SPEC): New define.
10460 * config/s390/s390.h (TARGET_VERSION): Define depending on
10461 DEFAULT_TARGET_64BIT.
10462 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10463
10464 2002-02-06 Jason Merrill <jason@redhat.com>
10465
10466 * c-decl.c (finish_function): Warn about a non-void function with
10467 no return statement and no abnormal exit.
10468 (current_function_returns_abnormally): New variable.
10469 (start_function): Clear it.
10470 (struct c_language_function): Add returns_abnormally.
10471 (push_c_function_context): Save it.
10472 (pop_c_function_context): Restore it.
10473 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10474 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10475 an explicit return type.
10476 * c-tree.h: Declare current_function_returns_abnormally.
10477 (C_FUNCTION_IMPLICIT_INT): New macro.
10478 * c-typeck.c (build_function_call): Set it.
10479 (c_expand_return): Set current_function_returns_value even if the
10480 value is erroneous.
10481
10482 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10483
10484 PR c/5420:
10485 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10486 unsafe for reevaluation.
10487
10488 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10489
10490 PR c/5482:
10491 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10492 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10493
10494 2002-02-06 Richard Henderson <rth@redhat.com>
10495
10496 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10497 be a general_operand. Dest for function value must be a pseudo.
10498
10499 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10500
10501 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10502 as SYMBOL_REFs from the constant pool.
10503
10504 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10505
10506 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10507 passed by invisible reference.
10508
10509 2002-02-05 Richard Henderson <rth@redhat.com>
10510
10511 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10512
10513 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10514
10515 Implement using "base addresses" in insn operands as default.
10516 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10517 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10518 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10519 used to read the rtx value.
10520 (mmix_target_asm_function_epilogue): Fix spacing.
10521 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10522 (mmix_legitimate_address): Ditto.
10523 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10524 should be loaded with a GETA insn. Don't allocate needless extra
10525 char for nul termination and fix misleading comment.
10526 (mmix_print_operand_address): Handle constants if
10527 TARGET_BASE_ADDRESSES.
10528 (mmix_output_register_setting): Use base addressing if
10529 TARGET_BASE_ADDRESSES and the number of insns is 3.
10530 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10531 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10532 to use R as constraint, add LDA to match s.
10533 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10534 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10535 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10536 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10537 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10538 order with other fixed registers.
10539 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10540 other parameter/call-clobbered registers.
10541 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10542 -mbase-addresses, -mno-base-addresses.
10543 (MMIX Options): Ditto.
10544
10545 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10546
10547 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10548
10549 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10550
10551 * config/rs6000/altivec.h: Change elem to _S_elem.
10552
10553 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10554
10555 * config/netbsd.h (WCHAR_TYPE): Define.
10556 (WCHAR_TYPE_SIZE): Ditto.
10557 (WINT_TYPE): Ditto.
10558 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10559 (WCHAR_UNSIGNED): Ditto.
10560 (WCHAR_TYPE_SIZE): Ditto.
10561 (WINT_TYPE): Ditto.
10562 * config/arm/netbsd.h: Likewise.
10563 * config/i386/netbsd-elf.h: Likewise.
10564 * config/i386/netbsd.h: Likewise.
10565 * config/m68k/netbsd-elf.h: Likewise.
10566 * config/m68k/netbsd.h: Likewise.
10567 * config/ns32k/netbsd.h: Likewise.
10568 * config/sparc/netbsd.h: Likewise.
10569 * config/vax/netbsd.: Likewise.
10570
10571 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10572
10573 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10574 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
10575 (TARGET_INITIALIZER): this.
10576 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10577 (BITFIELD_NBYTES_LIMITED): Markup fix.
10578 * tree.h (default_ms_bitfield_layout_p): Declare.
10579 (record_layout_info): Added prev_field.
10580 * tree.c (default_ms_bitfield_layout_p): New fn.
10581 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10582 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10583 * stor-layout.c: Include target.h.
10584 (start_record_layout): Initialize prev_field.
10585 (place_field): Handle MS bit-field layout, and disregard
10586 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10587 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
10588 * Makefile.in (stor-layout.o): Adjust dependencies.
10589
10590 2002-02-05 Jason Merrill <jason@redhat.com>
10591
10592 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10593
10594 2002-02-05 Andreas Jaeger <aj@suse.de>
10595
10596 * crtstuff.c: Fix comments.
10597
10598 2002-02-05 Richard Henderson <rth@redhat.com>
10599
10600 PR fortran/3393
10601 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10602 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10603
10604 PR fortran/3392
10605 * config/mips/mips.c (function_arg): Handle TImode.
10606 (function_arg_advance): Likewise.
10607
10608 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10609
10610 * config/rs6000/altivec.h (vec_step_help): Rename to
10611 __vec_step_help.
10612
10613 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10614
10615 * config/rs6000/altivec.h: Fix typos.
10616
10617 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10618
10619 * config/arm/netbsd.h: Correct a comment.
10620
10621 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10622
10623 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10624 building void typed builtins.
10625
10626 * config/rs6000/altivec.h (vec_ld*): Fix typos.
10627 (vec_step): Implement for C++.
10628
10629 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10630
10631 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10632
10633 2002-02-04 Richard Henderson <rth@redhat.com>
10634
10635 * combine.c (nonzero_bits): Re-introduce special case for
10636 sp/fp/ap wrt REGNO_POINTER_ALIGN.
10637
10638 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10639
10640 * doc/extend.texi: Warn about unsupported usage of altivec
10641 builtins.
10642
10643 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10644 (altivec_predicate_*): New.
10645
10646 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10647 Add C++ version of vec_*() functions.
10648
10649 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10650 (bdesc_2arg): Remove altivec predicates.
10651 (altivec_expand_builtin): Handle predicates.
10652 (altivec_init_builtins): Handle predicates.
10653 (altivec_expand_predicate_builtin): New.
10654
10655 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10656
10657 * pa.c (DO_FRAME_NOTES): Move forward.
10658 (store_reg): Revise handling of frame notes.
10659 (load_reg): Likewise.
10660 (set_reg_plus_d): Likewise.
10661 (hppa_expand_prologue): Likewise.
10662 (hppa_expand_epilogue): Likewise.
10663
10664 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10665
10666 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10667
10668 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10669
10670 PR c/4475, c++/3780:
10671 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10672 * c-common.h (SWITCH_TYPE): Define.
10673 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10674 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10675 Rename spareness variable to sparseness.
10676 (expand_end_case_type): Renamed from expand_end_case, use orig_type
10677 if non-NULL instead of TREE_TYPE (orig_index).
10678 * tree.h (expand_end_case_type): Renamed from expand_end_case.
10679 (expand_end_case): Define using expand_end_case_type.
10680 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10681 to expand_end_case_type.
10682 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10683
10684 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10685
10686 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10687 (BIGGEST_ALIGNMENT): Change to 128.
10688
10689 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10690
10691 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10692
10693 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10694
10695 * pa.md (call_internal_reg_64bit): Remove unused variable.
10696
10697 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
10698
10699 * config/arm/arm.h (machine_function): Add uses_anonymous_args
10700 field.
10701 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10702 * config/arm/arm.c (current_function_anonymous_args): Delete,
10703 replace uses with cfun->machine->uses_anonymous_args.
10704 (arm_reorg): Do not reset uses_anonymous_args.
10705
10706 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10707 any geenral register.
10708
10709 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
10710
10711 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10712 the entry block.
10713
10714 2002-02-04 Richard Henderson <rth@redhat.com>
10715
10716 * combine.c (force_to_mode): Remove STACK_BIAS code.
10717 (nonzero_bits): Likewise. Replace sp/fp special case with
10718 REGNO_POINTER_ALIGN.
10719
10720 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10721 (HARD_FRAME_POINTER_REGNUM): New.
10722 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10723 (FIXED_REGS, CALL_USED_REGS): Update.
10724 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10725 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10726 (HARD_REGNO_NREGS): Update for SFP.
10727 (STACK_POINTER_OFFSET): Include bias here ...
10728 (FIRST_PARM_OFFSET): ... not here.
10729 (STACK_BIAS): Remove.
10730 (INIT_EXPANDERS): New.
10731 (STARTING_FRAME_OFFSET): Do not include bias.
10732 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10733 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10734 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10735 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10736 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10737 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10738 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10739 (MUST_SAVE_REGISTER): Likewise.
10740 (sparc_flat_function_prologue): Likewise.
10741 (sparc_flat_function_epilogue): Likewise.
10742 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10743 (sparc_init_modes): SFP is GENERAL_REGS.
10744 (sparc_builtin_saveregs): SFP does not have bias applied.
10745
10746 2002-02-04 Richard Henderson <rth@redhat.com>
10747
10748 * config/alpha/alpha.c (current_function_is_thunk): Don't check
10749 current_function_is_thunk.
10750 (alpha_sa_mask): Distinguish between current_function_is_thunk
10751 called from ASM_OUTPUT_MI_THUNK and not.
10752 (alpha_does_function_need_gp): Thunks always need gp.
10753 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10754 (alpha_output_mi_thunk_osf): New.
10755 * config/alpha/alpha-protos.h: Update.
10756 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10757
10758 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
10759
10760 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10761 function types, not when they're taken away.
10762
10763 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
10764
10765 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10766 CODE_LABEL and jump table when replacing a table jump with a
10767 simple jump.
10768
10769 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10770
10771 * config/s390/s390-protos.h (legitimize_la_operand,
10772 s390_secondary_input_reload_class, s390_plus_operand,
10773 s390_expand_plus_operand): Add prototypes.
10774
10775 config/s390/s390.c (s390_secondary_input_reload_class,
10776 s390_plus_operand, s390_expand_plus_operand): New functions.
10777
10778 (struct s390_address): New member 'pointer'.
10779 (s390_decompose_address): Compute it.
10780 (legitimate_la_operand_p): Use it.
10781 (legitimize_la_operand): New function.
10782 (movti, movdi, movdf splitters): Call it.
10783
10784 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10785 (PREDICATE_CODES): Add s390_plus_operand.
10786
10787 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10788 (la_ccclobber): Allow GENERAL_REGS as output operand.
10789
10790 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10791 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10792 (*la_64, *la_31, reload_indi, reload_insi): ... these.
10793
10794 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10795
10796 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10797 register names for regular asm () construct.
10798
10799 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10800
10801 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10802 registers.
10803
10804 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10805
10806 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10807 pat for recog.
10808
10809 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
10810
10811 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10812 constant pool to be identical by string address and index.
10813
10814 2002-02-04 Anthony Green <green@redhat.com>
10815
10816 * output.h (SECTION_OVERRIDE): Define.
10817 * varasm.c (named_section): Obey SECTION_OVERRIDE.
10818
10819 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10820
10821 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10822 by existing arm*-*-netbsd* (a.out) target.
10823 (ns32k-*-netbsdelf*): Likewise.
10824 (sparc-*-netbsdelf*): Likewise.
10825 (vax-*-netbsdelf*): Likewise.
10826
10827 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
10828
10829 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10830 headers and libobjc headers.
10831
10832 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
10833
10834 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10835 (_mingw.h): Remove duplicate include.
10836
10837 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * config.gcc: Set cpu_type to m68k for 68010, as well.
10840 (m68010-*-netbsdelf*): New...
10841 (m68k*-*-netbsdelf*): ...targets.
10842 * config/m68k/netbsd-elf.h: New file.
10843
10844 2002-02-02 Kazu Hirata <kazu@hxi.com>
10845
10846 * config/h8300/h8300.c (hand_list): Move inside function_arg.
10847
10848 2002-02-02 Kazu Hirata <kazu@hxi.com>
10849
10850 * config/h8300/h8300.c (h8_push_ops): Move inside
10851 h8300_init_once.
10852 (h8_pop_ops): Likewise.
10853 (h8_move_ops): Likewise.
10854
10855 2002-02-02 Kazu Hirata <kazu@hxi.com>
10856
10857 * config/h8300/h8300.c (os_task): Make it static.
10858 (monitor): Likewise.
10859 (pragma_saveall): Likewise.
10860
10861 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
10862
10863 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10864 constant is a valid sign-extension for Pmode.
10865
10866 2002-02-02 Kazu Hirata <kazu@hxi.com>
10867
10868 * config/h8300/h8300.c: Fix formatting.
10869
10870 2002-02-02 Kazu Hirata <kazu@hxi.com>
10871
10872 * config/h8300/h8300.md: Fix formatting.
10873
10874 2002-02-02 Kazu Hirata <kazu@hxi.com>
10875
10876 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10877 predicates of operands[1]. Split the patterns for each
10878 processor variant.
10879
10880 2002-02-02 Kazu Hirata <kazu@hxi.com>
10881
10882 * config/h8300/h8300.md (xor patterns): Tighten the predicates
10883 of operands[1] to register_operand.
10884
10885 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10886
10887 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
10888 * cpphash.c (_cpp_init_hashtable): Similarly.
10889 * cppinit.c (cpp_create_reader): Default the signed_char flag.
10890 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
10891 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
10892 (cpp_handle_option): Handle the new options.
10893 * cpplex.c (cpp_interpret_charconst): Use new flag.
10894 * cpplib.h (struct cpp_options): New member signed_char.
10895 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
10896 (cpp_options): Handle -fsigned-char and -funsigned-char.
10897 (static_specs): Remove signed_char_spec.
10898 (do_spec1): Don't handle %c.
10899 * system.h: Poison SIGNED_CHAR_SPEC.
10900 * tradcif.y (yylex): Use flag_signed_char.
10901 * tradcpp.h (flag_signed_char): New.
10902 * tradcpp.c (flag_signed_char): New.
10903 (main): Handle new command-line options.
10904 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
10905 config:
10906 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
10907 * avr/avr.h: Remove old comments.
10908 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
10909 (CC1_SPEC): Pass -fsigned-char if -mic*.
10910 (SIGNED_CHAR_SPEC): Remove.
10911 doc:
10912 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10913
10914 2002-02-01 Eric Christopher <echristo@redhat.com>
10915
10916 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
10917 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
10918 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
10919 (ASM_OUTPUT_REG_POP): Ditto.
10920
10921 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10922
10923 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10924 patch.
10925
10926 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10927
10928 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10929
10930 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10931
10932 PR c/5304:
10933 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10934 unconditionally.
10935
10936 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10937
10938 * cfganal.c: Include tm_p.h.
10939 (keep_with_call_p): Fix the test that determines if a register holds
10940 the return value of a call.
10941
10942 2002-02-01 DJ Delorie <dj@redhat.com>
10943
10944 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10945 we are given conflicting registers, switch to the other one we
10946 had allocated for us.
10947 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10948 as TImode so we know when the "other" register is available.
10949
10950 2002-02-01 David O'Brien <obrien@FreeBSD.org>
10951
10952 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10953 sparc/sparc_bi.h.
10954
10955 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10956
10957 * cfganal.c (keep_with_call_p): New function.
10958 (flow_call_edges_add): Prevent splitting a block between a call and
10959 a single-set instruction that should be kept in the same block.
10960
10961 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
10962
10963 * doc/install.texi (avr): Update outdated URL.
10964
10965 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
10966
10967 * config/stormy16/stormy16.md (pushqi): New.
10968 (popqi): New.
10969 (pushhi): New.
10970 (pophi): New.
10971 (movhi): Remove stack operands.
10972 (movqi): Likewise.
10973 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10974 nonimmediate_nonstack_operand.
10975 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10976 New.
10977 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10978 New.
10979
10980 2002-01-31 Jason Merrill <jason@redhat.com>
10981
10982 * Makefile.in (c-parse.c): Handle .output file.
10983 * objc/Make-lang.in (objc-parse.c): Likewise.
10984
10985 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
10986
10987 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10988 the -me[lb] option is given. Don't output the default flag
10989 twice.
10990
10991 2002-01-31 Zack Weinberg <zack@codesourcery.com>
10992
10993 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10994 the primary source file; this has not been done yet.
10995 * c-decl.c (c_expand_body): Reset input_filename from
10996 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10997
10998 2002-01-31 Kazu Hirata <kazu@hxi.com>
10999
11000 * rtlanal.c (subreg_regno_offset): Do not use
11001 SUBREG_REGNO_OFFSET.
11002 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11003 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11004
11005 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11006
11007 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
11008 version rather than GNATS version in --version output.
11009
11010 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
11011
11012 * ifcvt.c (noce_process_if_block): Make a copy of the destination
11013 when copying back from a temporary.
11014
11015 2002-01-30 Richard Henderson <rth@redhat.com>
11016
11017 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11018 and new_dest are the same.
11019
11020 2002-01-30 Richard Henderson <rth@redhat.com>
11021
11022 PR opt/5076
11023 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11024 * rtl.c (note_insn_name): Update.
11025 * emit-rtl.c (remove_unnecessary_notes): Kill it.
11026 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
11027 to perform loop rotation.
11028 (expand_exit_loop_top_cond): New.
11029 * tree.h (expand_exit_loop_top_cond): Declare it.
11030 * c-semantics.c (genrtl_while_stmt): Use it.
11031 (genrtl_for_stmt): Likewise.
11032
11033 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
11034
11035 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11036 arguments to 64-bit boundaries on 64-bit ABIs.
11037
11038 2002-01-30 Steve Ellcey <sje@cup.hp.com>
11039
11040 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11041
11042 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
11043
11044 * c-decl.c (grokdeclarator): Handle type being a typedef for an
11045 invalid type.
11046
11047 2002-01-30 David O'Brien <obrien@FreeBSD.org>
11048
11049 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11050 * config/sparc/sparc_bi.h: Remove file.
11051 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11052
11053 2002-01-30 Richard Henderson <rth@redhat.com>
11054
11055 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11056
11057 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11058
11059 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11060
11061 2002-01-30 Jason Merrill <jason@redhat.com>
11062
11063 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11064 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11065 (reg_save): Use DW_CFA_offset_extended_sf instead.
11066
11067 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11068
11069 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11070
11071 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11072 in cselib_lookup.
11073
11074 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11075
11076 * rs6000.md ("*call_value_local32"): Remove constraints.
11077 ("*call_value_local64"): Same.
11078 ("*call_value_indirect_nonlocal_aix32"): Same.
11079 ("*call_value_nonlocal_aix32"): Same.
11080 ("*call_value_indirect_nonlocal_aix64"): Same.
11081 ("*call_value_nonlocal_aix64"): Same.
11082 ("*call_value_nonlocal_sysv"): Same.
11083
11084 2002-01-29 Richard Henderson <rth@redhat.com>
11085
11086 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11087
11088 2002-01-29 Richard Henderson <rth@redhat.com>
11089
11090 * expr.c (force_operand): Ignore flag_pic for detecting pic
11091 address loads.
11092 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11093 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11094 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11095 instead of open-coded loop.
11096 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11097 be fixed when in use.
11098
11099 2002-01-29 Richard Henderson <rth@redhat.com>
11100
11101 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11102 * sched-rgn.c (propagate_deps): Update them.
11103 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11104 clobbers list when either gets too long.
11105
11106 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11107
11108 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11109 and INDEX_REGS the same as GENERAL_REGS.
11110 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11111
11112 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11113
11114 * tree.c (build_nonstandard_integer_type): Correct prototype.
11115
11116 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11117
11118 * config/s390/s390.md (movstrsico, movstrdix_64,
11119 movstrsix_31): Remove, replace by ...
11120 (movstrdi_short, movstrsi_short, movstrdi_long,
11121 movstrsi_long): ... these. New.
11122 (movstrdi, movstrsi): Adapt.
11123
11124 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11125 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11126 Remove unnecessary CC clobber.
11127 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11128 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11129
11130 (divmoddi4): Don't partially initialize TImode register.
11131
11132 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11133
11134 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11135
11136 2002-01-29 Richard Henderson <rth@redhat.com>
11137
11138 * flow.c (print_rtl_and_abort): Remove.
11139 (print_rtl_and_abort_fcn): Remove.
11140 (verify_local_live_at_start): Use dump_bb instead.
11141 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11142 (verify_wide_reg_1): Return 2 on mode test failure.
11143
11144 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11145
11146 PR c/3325, c/3326, c/2511, c/3347
11147 * c-decl.c (enum_decl_context): Remove BITFIELD.
11148 (grokdeclarator): Take bitfield width as an input.
11149 Ensure bitfields are given the correct type. Perform
11150 bitfield width validation with build_bitfield_integer_type
11151 rather than waiting for finish_struct.
11152 (grok_typename, grok_typename_in_parm_context, start_decl,
11153 push_parmdecl, grokfield, start_function): Update calls to
11154 grokdeclarator.
11155 (build_bitfield_integer_type): New function.
11156 (finish_struct): Move bitfield validation to grokdeclarator
11157 and build_bitfield_integer_type.
11158 * tree.c (build_nonstandard_integer_type): New function.
11159 * tree.h (build_nonstandard_integer_type): New prototype.
11160 objc:
11161 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11162
11163 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11164
11165 PR other/1502:
11166 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11167 don't ignore unrecognized -W* options.
11168 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11169 * cpplib.h (cpp_handle_option): Adjust prototype.
11170 * c-decl.c (c_decode_options): Pass 0 as last argument to
11171 cpp_handle_option.
11172
11173 PR c/2896:
11174 * gcc.c (cpp_unique_options): Split from cpp_options.
11175 (cpp_options): Source cpp_unique_options.
11176 (default_compilers): Use cpp_unique_options instead of cpp_options
11177 when used together with cc1_options.
11178 (static_specs): Add cpp_unique_options.
11179 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11180 when used together with cc1_options.
11181
11182 2002-01-29 Kazu Hirata <kazu@hxi.com>
11183
11184 * config/h8300/h8300-protos.h: Update the prototype of
11185 output_a_shift.
11186 * config/h8300/h8300.c (output_a_shift): Remove an unused
11187 argument 'insn'. Remove redundant code.
11188 * config/h8300/h8300.md: Adust to the new prototype of
11189 output_a_shift.
11190
11191 2002-01-29 Kazu Hirata <kazu@hxi.com>
11192
11193 * config/h8300/h8300-protos.h: Update the prototypes of
11194 emit_a_rotate and expand_a_rotate.
11195 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11196 first argument to 'enum rtx_code'.
11197 (expand_a_rotate): Likewise.
11198
11199 2002-01-28 Kazu Hirata <kazu@hxi.com>
11200
11201 * config/h8300/h8300-protos.h: Update the prototype of
11202 output_simode_bld.
11203 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11204 'log2'.
11205 * config/h8300/h8300.md: Adjust to the new prototype.
11206
11207 2002-01-28 Kazu Hirata <kazu@hxi.com>
11208
11209 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11210 redundant code.
11211
11212 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11213
11214 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11215 is a fixed register before returning pic_offset_table_rtx.
11216 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11217 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11218
11219 2002-01-28 Jason Merrill <jason@redhat.com>
11220
11221 * dwarf2.h: Sync with src version.
11222
11223 2002-01-28 Paul Koning <pkoning@equallogic.com>
11224
11225 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11226 BT_FN_VOID_PTR_VAR.
11227 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11228 * doc/extend.texi (__builtin_prefetch): Update documentation:
11229 first argument is now const void ptr.
11230
11231 2002-01-28 Kazu Hirata <kazu@hxi.com>
11232
11233 * config/h8300/h8300-protos.h: Remove an unused prototype.
11234
11235 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11236
11237 * toplev.c (lang_independent_init): Round up identifier size.
11238
11239 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11240
11241 * config.gcc: Revert previous change.
11242
11243 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11244
11245 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11246
11247 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11248
11249 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11250 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11251 other non-elf netbsd config frags.
11252 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11253 collect2 will does that.
11254 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11255 shared-lib frobbing will work.
11256
11257 2002-01-28 Kazu Hirata <kazu@hxi.com>
11258
11259 * config/h8300/h8300.h: Fix formatting.
11260 * config/h8300/h8300.md: Likewise.
11261
11262 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11263
11264 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11265 the old, removed AAA_standards fix.
11266 * fixinc/fixincl.x: Rebuilt.
11267
11268 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11269
11270 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11271 atexit call in crtbegin, hooked in after call to frame_dummy;
11272 register EH before registering __fini__start.
11273
11274 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11275
11276 * config/rs6000/altivec.h: Remove spurious semicolons.
11277
11278 2002-01-27 Kazu Hirata <kazu@hxi.com>
11279
11280 * config/h8300/h8300.md: Replace dead bit extraction patterns
11281 with ones that work.
11282
11283 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11284
11285 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11286 if not STRICT_ALIGNMENT.
11287 * rtl.h (MEM_ALIGN): Likewise.
11288
11289 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11290
11291 * doc/invoke.texi (-fdump-translation-unit): Revert this
11292 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11293
11294 2002-01-27 Kazu Hirata <kazu@hxi.com>
11295
11296 * config/h8300/h8300.md (define_constants): New.
11297 (anonymous patterns) Use defined constants appropriately.
11298
11299 2002-01-27 Kazu Hirata <kazu@hxi.com>
11300
11301 * config/h8300/h8300.c (function_arg): Remove redundant code.
11302
11303 2002-01-26 Richard Henderson <rth@redhat.com>
11304
11305 * sched-deps.c (reg_pending_uses_head): New.
11306 (reg_pending_barrier): Rename from reg_pending_sets_all.
11307 (find_insn_list): Don't mark inline.
11308 (find_insn_mem_list): Remove.
11309 (add_dependence_list, add_dependence_list_and_free): New.
11310 (flush_pending_lists): Replace only_write param with separate
11311 for_read and for_write parameters. Update all callers. Use
11312 add_dependence_list_and_free.
11313 (sched_analyze_1): Do not add reg dependencies here; just set
11314 the pending bits. Use add_dependence_list.
11315 (sched_analyze_2): Likewise.
11316 (sched_analyze_insn): Replace schedule_barrier_found with
11317 reg_pending_barrier. Add all dependencies for pending reg
11318 uses, sets, and clobbers.
11319 (sched_analyze): Don't add reg dependencies for calls, just
11320 set pending bits. Use regs_invalidated_by_call. Treat
11321 sched_before_next_call as a normal list, not a fake insn.
11322 (init_deps): No funny init for sched_before_next_call.
11323 (free_deps): Free pending mems lists. Don't zero reg_last.
11324 (init_deps_global): Init reg_pending_uses.
11325 (finish_deps_global): Free it.
11326 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11327 (find_insn_mem_list): Remove.
11328 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11329 (propagate_deps): Use them. Zero temp mem lists.
11330
11331 2002-01-26 Richard Henderson <rth@redhat.com>
11332
11333 * Makefile.in (CRTSTUFF_CFLAGS): New.
11334 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11335 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11336 crtstuff.c instead of alpha assembly version.
11337 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11338 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11339 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11340 (__do_global_dtors_aux): Mark used.
11341 (frame_dummy, __do_global_ctors_aux): Mark used.
11342 (fini_dummy, init_dummy): Remove.
11343
11344 * config/alpha/crtbegin.asm: Remove file.
11345 * config/alpha/crtend.asm: Remove file.
11346 * config/alpha/t-crtbe: Remove file.
11347 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11348 (LINK_EH_SPEC): New.
11349
11350 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11351 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11352 calling constructors.
11353 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11354
11355 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11356 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11357 CRT_END_INIT_DUMMY hack.
11358 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11359 FORCE_{INIT,FINI}_SECTION_ALIGN.
11360
11361 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11362 FORCE_{INIT,FINI}_SECTION_ALIGN.
11363
11364 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11365 invocation sequence.
11366 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11367
11368 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11369 (FORCE_CODE_SECTION_ALIGN): New.
11370
11371 2002-01-26 Richard Henderson <rth@redhat.com>
11372
11373 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11374
11375 2002-01-26 Richard Henderson <rth@redhat.com>
11376
11377 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11378 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11379
11380 2002-01-26 Kazu Hirata <kazu@hxi.com>
11381
11382 * config/h8300/h8300.md: Remove bit extraction patterns that
11383 cannot be triggered.
11384 Restrict each bit extraction pattern to a variant on which the
11385 pattern is tested.
11386
11387 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11388
11389 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11390
11391 2002-01-26 Kazu Hirata <kazu@hxi.com>
11392
11393 * config/h8300/h8300.md: Remove bit test patterns that cannot
11394 be triggered.
11395 Restrict each bit test pattern to a variant on which the
11396 pattern is tested.
11397
11398 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11399
11400 * builtins.c (expand_builtin_strncat): Remove redundant check for
11401 INTEGER_CST.
11402
11403 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11404
11405 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11406 default setting.
11407 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11408 existing setting.
11409
11410 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11411
11412 * dbxout.c (dbxout_init): Use assemble_name rather than just
11413 stripping off the first character.
11414 (dbxout_source_file): Likewise.
11415
11416 2002-01-25 DJ Delorie <dj@redhat.com>
11417
11418 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11419 using rtx_equal_p, not by comparing pointers.
11420
11421 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11422
11423 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11424 for PIC_OFFSET_TABLE_REGNUM.
11425 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11426
11427 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11428
11429 * config.gcc (x86_64-*-freebsd*): New target.
11430 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11431 value.
11432 (i[34567]86-*-freebsd*): Don't include svr4.h.
11433 * config/i386/freebsd64.h: New file.
11434
11435 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11436
11437 * config/alpha/x-vms (version): Make static.
11438
11439 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11440 in previous checkin.
11441
11442 * Makefile.in (install-headers-cp): New target.
11443 * config.gcc (alpha-dec-*vms*): Install headers with
11444 install-headers-cp
11445
11446 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11447
11448 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11449 avoid it's copies.
11450
11451 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11452
11453 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11454 of compare_tree_int.
11455 (expand_builtin_strncat): Likewise.
11456 * c-decl.c (finish_struct): Use tree_low_cst.
11457 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11458 * tree.c (compare_tree_int): Likewise.
11459
11460 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11461
11462 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11463 adjustments even if they are implemented by more than two insns.
11464
11465 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11466
11467 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11468 * df.h (struct ref): Kill B.
11469 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11470
11471 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11472 * flow.c (propagate_one_insn): Use it.
11473 (mark_used_regs): Handle NIL.
11474
11475 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11476
11477 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11478 to help folding.
11479
11480 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11481
11482 * rs6000.md (prefetch): Make address V4SI mode so that the address
11483 is restricted to legitimate form for instruction.
11484
11485 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11486
11487 * doc/install.texi (xtensa-*-elf): New target.
11488 (xtensa-*-linux*): New target.
11489 * doc/contrib.texi: Add myself.
11490
11491 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11492
11493 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11494 purpose register to hold an SImode (or smaller) value.
11495
11496 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11497
11498 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11499 registry only.
11500 * crtstuff.c: Likewise.
11501
11502 2002-01-25 Kazu Hirata <kazu@hxi.com>
11503
11504 * config/h8300/h8300.md (negation patterns): Tighten
11505 predicates to register_operand.
11506
11507 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11508
11509 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11510 mode, not Pmode.
11511
11512 * builtins.c (expand_builtin_prefetch): Same.
11513
11514 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11515
11516 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11517 modes.
11518
11519 2002-01-24 Kazu Hirata <kazu@hxi.com>
11520
11521 * config/h8300/h8300.c (print_operand): Remove support for
11522 operand character 'A'.
11523 * config/h8300/h8300.md (three anonymous patterns): Replace
11524 operand character 'A' with either 'T' or 'S'.
11525
11526 2002-01-24 Kazu Hirata <kazu@hxi.com>
11527
11528 * config/h8300/h8300.c (print_operand): Remove support for
11529 operand character 'U'.
11530
11531 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11532
11533 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11534
11535 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11536
11537 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11538 values to be assigned to the stack pointer.
11539
11540 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11541
11542 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11543 to const_double needs to be done right for big-endian systems.
11544
11545 2002-01-24 Jason Merrill <jason@redhat.com>
11546
11547 PR c++/2432
11548 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11549 to can_throw_internal.
11550
11551 2002-01-23 Richard Henderson <rth@redhat.com>
11552
11553 * fold-const.c (fold): Change UINT_MAX test to check vs precision
11554 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
11555
11556 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11557
11558 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11559 (symGOT2reg): Use them, then set as GOT value as unchanging.
11560 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
11561 as a temporary, if possible.
11562 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
11563 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11564
11565 2002-01-23 Kazu Hirata <kazu@hxi.com>
11566
11567 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11568 accept to accept 0x80 as operands[2].
11569
11570 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11571
11572 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11573
11574 2002-01-23 Richard Henderson <rth@redhat.com>
11575
11576 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11577
11578 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11579
11580 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11581 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11582 an attribute.
11583
11584 2002-01-23 Richard Henderson <rth@redhat.com>
11585
11586 * expr.c (move_by_pieces_1): Extend size before negation.
11587
11588 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11589 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11590 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11591 * config/m68k/t-m68kelf: Likewise.
11592
11593 2002-01-23 Bob Wilson <bob.wilson@acm.org>
11594
11595 * config/xtensa/elf.h: New file.
11596 * config/xtensa/lib1funcs.asm: New file.
11597 * config/xtensa/lib2funcs.S: New file.
11598 * config/xtensa/linux.h: New file.
11599 * config/xtensa/t-xtensa: New file.
11600 * config/xtensa/xtensa-config.h: New file.
11601 * config/xtensa/xtensa-protos.h: New file.
11602 * config/xtensa/xtensa.c: New file.
11603 * config/xtensa/xtensa.h: New file.
11604 * config/xtensa/xtensa.md: New file.
11605 * config.gcc (xtensa-*-elf*): New target.
11606 (xtensa-*-linux*): New target.
11607 * cse.c (canon_hash): Compare rtx pointers instead of register
11608 numbers. This is required for the Xtensa port.
11609 * integrate.c (copy_insn_list): Handle case where the static
11610 chain is in memory and the memory address has to be copied to
11611 a register.
11612 * doc/invoke.texi (Option Summary): Add Xtensa options.
11613 (Xtensa Options): New node.
11614 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11615
11616 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11617
11618 * diagnostic.c (internal_error): Do ICE suppression only
11619 when ENABLE_CHECKING is not defined.
11620
11621 * c-typeck.c (require_complete_type): Return error_mark_node
11622 if type is error_mark_node.
11623
11624 2002-01-23 Janis Johnson <janis187@us.ibm.com>
11625
11626 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11627 -Os and issue a warning.
11628
11629 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11630
11631 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11632 current (lack of) need for host configuration by hand.
11633
11634 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11635 references. Documentation of some target macros moved from
11636 hostconfig.texi to tm.texi.
11637
11638 2002-01-23 Will Cohen <wcohen@redhat.com>
11639
11640 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11641 defined.
11642
11643 2002-01-23 Kazu Hirata <kazu@hxi.com>
11644
11645 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11646 operand[3].
11647
11648 2002-01-23 Jason Merrill <jason@redhat.com>
11649
11650 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11651
11652 * function.c (assign_parms): Don't put args of inline functions
11653 into registers when not optimizing.
11654
11655 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
11656
11657 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11658 (prologue_use): New pattern.
11659 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11660 preference to gen_rtx_USE.
11661 (thumb_expand_prologue): Use gen_prologue_use in preference to
11662 gen_rtx_USE.
11663 (thumb_expand_epilogue): Use gen_prologue_use in preference to
11664 gen_rtx_USE.
11665
11666 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
11667
11668 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11669
11670 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
11671
11672 PR c/3504
11673 * doc/extend.texi: Correct documentation of __alignof__.
11674
11675 2002-01-22 Zack Weinberg <zack@codesourcery.com>
11676
11677 * params.h: Rename arguments of DEFPARAM so that it will be
11678 recognized as a translation keyword.
11679
11680 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11681
11682 * extend.texi: Document altivec functions.
11683 Fix N-bit adjectives in X86 builtin documentation.
11684
11685 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11686
11687 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11688 auto_inc_dec values.
11689
11690 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
11691
11692 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11693 after backslash.
11694 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11695
11696 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11697
11698 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11699
11700 2002-01-22 Richard Henderson <rth@redhat.com>
11701
11702 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11703 copy_insn not copy_rtx.
11704
11705 2002-01-23 Alan Modra <amodra@bigpond.net.au>
11706
11707 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11708 "nonzero" as that might add "1" bits. Ensure "constop" is
11709 properly sign extened.
11710 (force_to_mode): Tweak for sign extended constop.
11711
11712 2002-01-22 Richard Henderson <rth@redhat.com>
11713
11714 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11715 for_each_rtx instead of assuming we're already looking at the MEM.
11716 (split_small_symbolic_mem_operand): Likewise.
11717 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11718 * config/alpha/alpha.md (small symbolic memory splitters): Update.
11719
11720 2002-01-22 Richard Henderson <rth@redhat.com>
11721
11722 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11723 sequence number for the literal.
11724 (divmoddi_internal_er): Likewise.
11725
11726 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11727
11728 PR java/4972
11729 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11730 in LIBICONV variable.
11731 * configure: Regenerated.
11732
11733 2002-01-22 Krister Walfridsson <cato@df.lth.se>
11734
11735 * dependence.c (build_def_use): Remove array_idx.
11736
11737 * dwarfout.c (last_filename): Remove.
11738 (output_compile_unit_die): Remove last_filename.
11739
11740 2002-01-22 Roger Sayle <roger@eyesopen.com>
11741 Richard Henderson <rth@redhat.com>
11742
11743 PR opt/3640
11744 * fold-const.c (fold): Optimize unsigned comparisons against
11745 UINT_MAX (and similar unsigned constants).
11746
11747 2002-01-22 Janis Johnson <janis187@us.ibm.com>
11748
11749 * Makefile.in (loop.o): Depend on OPTABS_H.
11750 * loop.c (emit_prefetch_instructions): Check the prefetch operand
11751 against the predicate.
11752
11753 PR target/5379
11754 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11755 for the address operand.
11756
11757 2002-01-22 Richard Henderson <rth@redhat.com>
11758
11759 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11760
11761 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11762
11763 PR other/5450
11764 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11765 preprocessor flags.
11766
11767 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
11768
11769 * config.gcc (x86_64-*-netbsd*): New target.
11770 * config/i386/netbsd64.h: New file.
11771
11772 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11773
11774 * regrename.c (kill_value): Fix typo.
11775
11776 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11777
11778 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11779
11780 * config/rs6000/rs6000.h: Same.
11781
11782 * function.c (instantiate_virtual_regs): Remove
11783 STARTING_FRAME_PHASE.
11784 (assign_stack_local_1): Same.
11785 Calculate frame phase.
11786
11787 2002-01-22 Nick Clifton <nickc@redhat.com>
11788
11789 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11790 variable declaration to outer scope in order to simplify
11791 future extensions.
11792 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11793 arm_hard_regno_mode_ok.
11794 * config/arm/arm-protos.h: Add a prototype for
11795 arm_hard_regno_mode_ok.
11796 * config/arm/arm.c (soft_df_operand): Remove now redundant
11797 check for DImode values using IP_REGNUM.
11798 (nonimmediate_soft_df_operand): Remove now redundant check for
11799 DImode values using IP_REGNUM.
11800 (arm_hard_regno_mode_ok): New function. New check: make sure
11801 that DImode values are not stored in IP_REGNUM.
11802
11803 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11804 note with a USE.
11805 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11806
11807 2002-01-22 Jason Merrill <jason@redhat.com>
11808
11809 * c-semantics.c (genrtl_compound_stmt): Only check nesting
11810 consistency if this COMPOUND_STMT is scoped.
11811
11812 2002-01-22 Kazu Hirata <kazu@hxi.com>
11813
11814 * predict.c: Fix formatting.
11815 * print-tree.c: Likewise.
11816 * protoize.c: Likewise.
11817 * real.h: Likewise.
11818 * rtl.h: Likewise.
11819 * sbitmap.h: Likewise.
11820 * scan.c: Likewise.
11821 * sched-deps.c: Likewise.
11822 * sched-vis.c: Likewise.
11823 * sdbout.c: Likewise.
11824 * sibcall.c: Likewise.
11825 * ssa.c: Likewise.
11826 * ssa-ccp.c: Likewise.
11827 * ssa-dce.c: Likewise.
11828 * stmt.c: Likewise.
11829 * stor-layout.c: Likewise.
11830 * system.h: Likewise.
11831
11832 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11833
11834 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11835 if fits in bounds of base type.
11836
11837 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
11838 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
11839 (add_bound_info, default): If can't find a context, make a
11840 SAVE_EXPR.
11841 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11842
11843 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
11844
11845 * c-typeck.c (parser_build_binary_op): If result from
11846 build_binary_op is ERROR_MARK just return error_mark_node without
11847 further processing.
11848
11849 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
11850
11851 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
11852 Split a.out-specific bits into...
11853 * config/netbsd-aout.h: ...this.
11854 * config/netbsd-elf.h: New file.
11855 * config/alpha/netbsd-elf.h: Remove.
11856 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
11857 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
11858 (STARTFILE_SPEC): Remove redundant definition.
11859 (ENDFILE_SPEC): Likewise.
11860 (LINK_SPEC): Likewise.
11861 (CPP_SPEC): Likewise.
11862 (ASM_SPEC): Likewise.
11863 (LIB_SPEC): Likewise.
11864 (SWITCH_TAKES_ARG): Likewise.
11865 (TARGET_MEM_FUNCTIONS): Likewise.
11866 (CPP_PREDEFINES): Redefine.
11867 (ASM_FINAL_SPEC): Remove redefinition.
11868 (ASM_COMMENT_START): Redefine.
11869 (FUNCTION_PROFILER): Define.
11870 (TARGET_VERSION): Redefine.
11871 Comment and formatting cleanup.
11872 * config/i386/netbsd.h: Include <netbsd-aout.h>.
11873 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
11874 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
11875 big- or little-endian.
11876 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
11877 * config.gcc (*-*-netbsd*): Add definitions common to all
11878 NetBSD configs.
11879 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
11880 gnu_ld definitions. Add netbsd-elf.h to and remove
11881 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
11882 tmake_file, and don't lose previous tmake_file contents.
11883 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
11884 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
11885 gnu_ld definitions. Add netbsd-elf.h to tm_file.
11886 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
11887 (mipsel-*-netbsd*): Rename this to...
11888 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
11889 mips/little.h to tm_file for mips*el-*.
11890 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
11891 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
11892 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
11893
11894 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11895
11896 * pa-protos.h (reg_before_reload_operand): New function prototype.
11897 * pa.c (reg_before_reload_operand): New function implementation.
11898 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
11899 contraints to "*m".
11900
11901 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11902
11903 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11904
11905 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11906
11907 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
11908 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
11909 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
11910 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
11911 (ENDFILE_SPEC): Undefine.
11912 (STARTFILE_SPEC): Redefine for PA.
11913
11914 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11915
11916 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11917
11918 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
11919
11920 * config.gcc: Add entries to supported PowerPC --with-cpu
11921 types.
11922
11923 2002-01-21 Jakub Jelinek <jakub@redhat.com>
11924
11925 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11926 true for 64-bit mode only SSE registers in 32-bit mode.
11927
11928 2002-01-21 Kazu Hirata <kazu@hxi.com>
11929
11930 * unwind-dw2.c: Fix formatting.
11931 * unwind-dw2-fde.c: Likewise.
11932 * unwind-dw2-fde.h: Likewise.
11933 * unwind-pe.h: Likewise.
11934 * varasm.c: Likewise.
11935 * varray.h: Likewise.
11936
11937 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
11938
11939 Remove workaround for register stack overwrite bug in mmix.
11940 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11941 support for TARGET_REG_STACK_FILL_BUG.
11942 * config/mmix/mmix.h: Remove member has_call_without_parameters.
11943 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11944 Delete.
11945 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11946 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11947 -mno-reg-stack-fill-bug-workaround.
11948 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11949 machine member has_call_without_parameters.
11950 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11951 -mreg-stack-fill-bug-workaround and
11952 -mno-reg-stack-fill-bug-workaround.
11953 (MMIX Options): Ditto.
11954
11955 2002-01-21 Kazu Hirata <kazu@hxi.com>
11956
11957 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11958 as appropriate.
11959 Remove redundant code.
11960
11961 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
11962
11963 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11964 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11965 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11966 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11967 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11968 out target macro definitions and non-target-specific comments
11969 mostly taken from old versions of the manual.
11970
11971 2002-01-20 Kazu Hirata <kazu@hxi.com>
11972
11973 * config/h8300/h8300.h: Fix comment formatting.
11974 * config/ia64/aix.h: Likewise.
11975 * config/ia64/ia64-protos.h: Likewise.
11976 * config/ia64/ia64.c: Likewise.
11977 * config/ia64/ia64.h: Likewise.
11978 * config/ia64/ia64intrin.h: Likewise.
11979 * config/ia64/linux.h: Likewise.
11980 * config/ia64/unwind-aix.c: Likewise.
11981 * config/ia64/unwind-ia64.c: Likewise.
11982
11983 2002-01-20 Kazu Hirata <kazu@hxi.com>
11984
11985 * config/h8300/h8300.c: Revise comments about shift code.
11986
11987 2002-01-20 Kazu Hirata <kazu@hxi.com>
11988
11989 * config/h8300/h8300.c (function_arg): Update a comment.
11990
11991 2002-01-20 Kazu Hirata <kazu@hxi.com>
11992
11993 * config/h8300/h8300.md: Update the comments at the beginning
11994 of the file.
11995
11996 2002-01-20 Kazu Hirata <kazu@hxi.com>
11997
11998 * config/i370/i370.c: Fix comment formatting.
11999 * config/i370/i370.h: Likewise.
12000 * config/i370/i370.md: Likewise.
12001 * config/i370/linux.h: Likewise.
12002
12003 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12004
12005 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12006
12007 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12008 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12009 in incomplete case.
12010
12011 2002-01-20 Graham Stott <grahams@redhat.com>
12012
12013 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12014
12015 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
12016
12017 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12018
12019 2002-01-19 Tom Rix <trix@redhat.com>
12020
12021 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12022
12023 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
12024
12025 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12026
12027 * function.c (assign_stack_local_1): Adjust x_frame_offset with
12028 STARTING_FRAME_PHASE.
12029 (STARTING_FRAME_PHASE): New.
12030 (instantiate_virtual_regs): Check saneness of
12031 STARTING_FRAME_PHASE.
12032
12033 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12034
12035 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12036
12037 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12038
12039 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
12040
12041 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12042 be used for bootstrapping GCC 3.0.
12043
12044 2002-01-18 Kazu Hirata <kazu@hxi.com>
12045
12046 * config/h8300/h8300.md: Fix an insn length.
12047
12048 2002-01-18 Kazu Hirata <kazu@hxi.com>
12049
12050 * bitmap.h: Fix comment formatting.
12051 * combine.c: Likewise.
12052 * cppfiles.c: Likewise.
12053 * c-pragma.h: Likewise.
12054 * c-typeck.c: Likewise.
12055 * df.c: Likewise.
12056 * dwarf2out.c: Likewise.
12057 * function.c: Likewise.
12058 * gcc.c: Likewise.
12059 * genattrtab.c: Likewise.
12060 * gthr-win32.h: Likewise.
12061 * haifa-sched.c: Likewise.
12062 * predict.c: Likewise.
12063 * rtlanal.c: Likewise.
12064 * rtl.h: Likewise.
12065 * unwind-dw2-fde.h: Likewise.
12066 * unwind-pe.h: Likewise.
12067 * vmsdbgout.c: Likewise.
12068
12069 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12070
12071 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12072 if type_required and passed decl.
12073
12074 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12075
12076 * config.gcc (cpu_type): Include altivec.h in powerpc
12077 extra_headers.
12078 Same for darwin.
12079
12080 * config/rs6000/altivec.h: New.
12081
12082 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12083
12084 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12085 handling information.
12086 * doc/trouble.texi (Interoperation): Add libstdc++ information
12087 for AIX.
12088 (Misunderstandings): Add template instantiation and static template
12089 member information for AIX.
12090
12091 2002-01-17 Jason Merrill <jason@redhat.com>
12092
12093 * dbxout.c (dbxout_type): Support const and volatile.
12094
12095 * except.c (add_partial_entry): Remove backwards compatibility code.
12096 (end_protect_partials): Likewise.
12097
12098 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12099
12100 * config/ia64/ia64.md (prologue_use): New.
12101 * config/ia64/ia64.c (ia64_expand_prologue): Use
12102 gen_prologue_use instead of gen_rtx_USE.
12103 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12104 as CODE_FOR_pred_rel_mutex.
12105 (ia64_sched_reorder2): Likewise.
12106
12107 2002-01-16 Eric Christopher <echristo@redhat.com>
12108
12109 * config/mips/r3900.h: Reformat.
12110 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12111 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12112 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12113 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12114 * config/mips/t-elf: Remove mips3 multilib.
12115
12116 2002-01-16 H.J. Lu <hjl@gnu.org>
12117
12118 * config/mips/linux.h: Include "mips/abi64.h".
12119
12120 2002-01-16 H.J. Lu <hjl@gnu.org>
12121
12122 * config/mips/t-linux: New.
12123
12124 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12125
12126 * config/mips/linux.h: Don't include "gofast.h".
12127 (INIT_SUBTARGET_OPTABS): Removed.
12128
12129 2002-01-16 Kazu Hirata <kazu@hxi.com>
12130
12131 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12132 output_a_shift.
12133 * config/h8300/h8300.c: Likewise.
12134 * config/h8300/h8300.md: Likewise.
12135
12136 2002-01-16 Kazu Hirata <kazu@hxi.com>
12137
12138 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12139 spaces after an opcode name.
12140 (pushqi1_h8300hs): Likewise.
12141 (pushhi1_h8300hs): Likewise.
12142
12143 2002-01-16 Kazu Hirata <kazu@hxi.com>
12144
12145 * doc/extend.texi: Replace "option" with "attribute"
12146 appropriately.
12147
12148 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12149
12150 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12151 (and:DI () (const_int -8)).
12152 (split_small_symbolic_mem_operand): Split
12153 (mem (and:DI () (const_int -8)).
12154
12155 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12156
12157 PR target/5309:
12158 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12159 same way as TYPE_IMUL.
12160 (ultrasparc_sched_reorder): Likewise.
12161 * config/sparc/sparc.md (type): Add comment to update
12162 ultrasparc_sched_reorder when making changes.
12163
12164 2002-01-16 Kazu Hirata <kazu@hxi.com>
12165
12166 * doc/invoke.texi: Change the dump file name of block
12167 reordering pass from 28.bbro to 29.bbro.
12168 Mention -dk option.
12169
12170 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12171
12172 * i386.md (minsf splitter): Fix pasto.
12173
12174 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12175
12176 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12177 to frame pointer initialisation instruction.
12178 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12179 initialisation instruction.
12180 (soft_df_operand): Do not accept the IP register.
12181 (nonimmediate_soft_df_operand): Do not accept the IP register.
12182
12183 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12184
12185 PR target/5357:
12186 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12187 MASK_V8 being both set.
12188
12189 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12190
12191 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12192 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12193 config/s390/s390.md (call, call_value): Add GOT register to
12194 CALL_INSN_FUNCTION_USAGE where needed.
12195 (call_exp, call_value_exp): New.
12196
12197 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12198
12199 * config/arm/arm.c: General formatting tidy up.
12200
12201 2002-01-16 Graham Stott <grahams@redhat.com>
12202
12203 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12204 cast and when casting an integer literal to "rtx" pointer.
12205 (expand_call): Likewise.
12206 * flow.c (try_pre_increment): Likewise.
12207 (find_use_as_address): Likewise.
12208 * integrate.c (expand_iline_function): Likewise.
12209 * regmove.c (try_auto_increment): Likewise.
12210
12211 2002-01-16 Graham Stott <grahams@redhat.com>
12212
12213 * sched-rgn.c (passed): Use sbitmap_free.
12214 (header): Likewise.
12215 (inner): Likewise.
12216 (in_queue): Likewise.
12217 (in_stack): Likewise.
12218
12219 2002-01-15 Eric Christopher <echristo@redhat.com>
12220
12221 * flow.c (propagate_one_insn): Change to use fatal_insn.
12222
12223 2002-01-15 Kazu Hirata <kazu@hxi.com>
12224
12225 * expmed.c (extract_fixed_bit_field): Remove unused code.
12226 * system.h: Poison SLOW_ZERO_EXTEND.
12227 * doc/tm.texi: Remove.
12228 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12229 * config/arm/arm.h: Likewise.
12230 * config/avr/avr.h: Likewise.
12231 * config/clipper/clipper.h: Likewise.
12232 * config/convex/convex.h: Likewise.
12233 * config/d30v/d30v.h: Likewise.
12234 * config/dsp16xx/dsp16xx.h: Likewise.
12235 * config/elxsi/elxsi.h: Likewise.
12236 * config/fr30/fr30.h: Likewise.
12237 * config/h8300/h8300.h: Likewise.
12238 * config/i370/i370.h: Likewise.
12239 * config/i386/i386.h: Likewise.
12240 * config/m68k/m68k.h: Likewise.
12241 * config/mips/mips.h: Likewise.
12242 * config/ns32k/ns32k.h: Likewise.
12243 * config/pdp11/pdp11.h: Likewise.
12244 * config/pj/pj.h: Likewise.
12245 * config/s390/s390.h: Likewise.
12246 * config/sh/sh.h: Likewise.
12247 * config/stormy16/stormy16.h: Likewise.
12248 * config/v850/v850.h: Likewise.
12249 * config/vax/vax.h: Likewise.
12250 * config/we32k/we32k.h: Likewise.
12251
12252 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12253
12254 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12255 (altivec_lvsl): Change constraint to b.
12256 (altivec_lvsr): Same.
12257 (altivec_lvebx): Same.
12258 (altivec_lvehx): Same.
12259 (altivec_lvewx): Same.
12260 (altivec_lvxl): Same.
12261 (altivec_lvx): Same.
12262 (altivec_stvx): Add parallel.
12263 (altivec_stvxl): Same.
12264 (altivec_stvehx): Same.
12265 (altivec_stvebx): Same.
12266 (altivec_stvebx): Same.
12267
12268 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12269
12270 * config.gcc: Change altivec.h to altivec-defs.h.
12271
12272 * config/rs6000/altivec.h: Delete.
12273
12274 * config/rs6000/altivec-defs.h: Add.
12275
12276 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12277
12278 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12279 and UMOD modes.
12280
12281 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12282 less than or equal to eight bytes.
12283
12284 * vax.md (andsi3): Remove constraints and change SET destination
12285 operand type to nonimmediate_operand.
12286 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12287 when it is a CONST_INT.
12288
12289 2002-01-15 Jason Merrill <jason@redhat.com>
12290
12291 * c-common.def (FILE_STMT): New code.
12292 * c-common.c (statement_code_p): It's a statement.
12293 * c-common.h (stmt_tree_s): Add x_last_filename.
12294 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12295 (last_expr_filename): New macro.
12296 * c-semantics.c (begin_stmt_tree): Initialize it.
12297 (add_stmt): If the filename changed, also insert a
12298 FILE_STMT.
12299 (expand_stmt): Handle seeing one.
12300
12301 2002-01-15 Eric Christopher <echristo@redhat.com>
12302
12303 * flow.c (propagate_one_insn): Add error message and print out
12304 insn for debugging.
12305
12306 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12307
12308 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12309 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12310 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12311 TRAMPOLINE_ALIGNMENT.
12312 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12313 to be in bits.
12314 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12315 PCC_BITFIELD_TYPE_MATTERS.
12316 * config/interix.h (STDC_VALUE): Remove. Use
12317 STDC_0_IN_SYSTEM_HEADERS.
12318 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12319 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12320 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12321
12322 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12323
12324 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12325 not work on this platform currently.
12326
12327 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12328
12329 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12330 readonly_warning in _().
12331
12332 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12333
12334 * gcc.c (delete_if_ordinary): Backout previous change.
12335
12336 2002-01-15 Kazu Hirata <kazu@hxi.com>
12337
12338 * config/h8300/h8300.c (print_operand): Remove support for
12339 unused operand characters.
12340
12341 * read-rtl.c: Fix formatting.
12342 * real.c: Likewise.
12343 * recog.c: Likewise.
12344 * regclass.c: Likewise.
12345 * regmove.c: Likewise.
12346 * reg-stack.c: Likewise.
12347 * reload1.c: Likewise.
12348 * rtlanal.c: Likewise.
12349
12350 2002-01-15 Kazu Hirata <kazu@hxi.com>
12351
12352 * config/i386/i386.c: Fix formatting.
12353
12354 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12355
12356 * c-typeck.c (process_init_element): Don't save_expr
12357 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12358
12359 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12360
12361 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12362 emit optional traceback table if optimize_size or TARGET_ELF.
12363 * config/rs6000/rs6000.md (prefetch): New.
12364
12365 2002-01-15 Andreas Jaeger <aj@suse.de>
12366
12367 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12368
12369 2002-01-15 Kazu Hirata <kazu@hxi.com>
12370
12371 * mips-tfile.c: Fix formatting.
12372
12373 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12374
12375 * unroll.c (final_reg_note_copy): Fix previous commit.
12376
12377 2002-01-14 Kazu Hirata <kazu@hxi.com>
12378
12379 * config/h8300/h8300-protos.h: Remove the prototype for
12380 eq_operator.
12381 * config/h8300/h8300.c (eq_operator): Remove.
12382
12383 2002-01-14 Richard Henderson <rth@redhat.com>
12384
12385 * config/i386/i386.md (prefetch): Tidy.
12386 (prefetch_3dnow): Fix locality operand.
12387
12388 2002-01-14 Richard Henderson <rth@redhat.com>
12389
12390 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12391 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12392
12393 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12394
12395 * reload1.c (reload_combine): Pass reg_sum replacement through
12396 copy_rtx in loop performing multiple changes.
12397
12398 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12399
12400 * except.c (remove_unreachable_regions): New.
12401 (free_eh_status): Clear exception_handler_labels.
12402 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12403 (find_exception_handler_labels): Don't add the same label more than
12404 once.
12405 (remove_exception_handler_label): Don't die if
12406 find_exception_handler_labels hasn't been called for the current
12407 function yet.
12408
12409 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12410
12411 * toplev.c (rest_of_compilation): Rebuild jump labels after
12412 gcse.
12413
12414 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12415
12416 * doc/extend.texi: Move documentation of X86 built-in functions
12417 here.
12418 * doc/invoke.texi: From here.
12419 * doc/sourcebuild.texi: Document location of documentation for
12420 machine built-in functions.
12421
12422 2002-01-13 Christopher Faylor <cgf@redhat.com>
12423
12424 * cppfiles.c (TEST_THRESHOLD): New macro.
12425 (SHOULD_MMAP): Ditto.
12426 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12427 be used.
12428
12429 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12430
12431 * unroll.c (final_reg_note_copy): Properly handle
12432 REG_LABEL
12433 (unroll_loops): Fix LOOP_CONDITION heuristics.
12434
12435 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12436
12437 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12438 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12439
12440 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12441
12442 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12443 threaded loop.
12444
12445 2002-01-14 Tom Rix <trix@redhat.com>
12446
12447 * config/rs6000/rs6000.md: Fix typo with sradi.
12448
12449 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12450
12451 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12452 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12453 (clrstrdi, clrstrsi): Adapt callers.
12454
12455 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12456
12457 (movti splitter): Never use register 0 as base register.
12458
12459 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12460
12461 * combine.c (simplify_shift_const): Always generate new rtx
12462 for shift expression instead of reusing given expression.
12463
12464 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12465
12466 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12467 alpha_legitimize_address unless mode is Pmode.
12468
12469 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12470
12471 * doc/md.texi (Modifiers): Document the '*' constraint for the
12472 user.
12473
12474 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12475 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12476 for xstormy16 too.
12477
12478 2002-01-13 Richard Henderson <rth@redhat.com>
12479
12480 * reload.c (find_reloads): Use a hard reg destination as reload reg
12481 for an input reload of the source.
12482
12483 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12484
12485 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12486 more generic.
12487
12488 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12489
12490 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12491 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12492
12493 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12494
12495 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12496
12497 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12498
12499 2002-01-12 Tom Rix <trix@redhat.com>
12500
12501 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12502 TARGET_POWERPC64.
12503
12504 2002-01-12 Richard Henderson <rth@redhat.com>
12505
12506 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12507
12508 * doc/invoke.texi: Update Alpha options.
12509
12510 * doc/invoke.texi: Update i386 built-in function lists.
12511
12512 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12513
12514 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12515 referencing outside.
12516
12517 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12518
12519 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12520 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12521 offsets, and change line folding.
12522 * optabs.c (expand_binop): Remove warnings.
12523 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12524
12525 2002-01-12 Graham Stott <grahams@redhat.com>
12526
12527 * attribs.c (handle_deprecated_attribute): constify WHAT.
12528 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12529 dangling else warning and constify WHAT.
12530 * except.h (struct function, struct inline_remap): Move
12531 struct tag forward defs before all prototypes.
12532 (duplicate_eh_regions): Whitespace.
12533
12534 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12535
12536 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12537 MODE_BASE_REG_CLASS.
12538 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12539
12540 2002-01-12 Richard Henderson <rth@redhat.com>
12541
12542 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12543 (ix86_expand_vector_move): New.
12544 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12545 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12546 Remove old prefetch builtins. Special case the logicals removed above.
12547 (ix86_expand_builtin): Likewise.
12548 (safe_vector_operand): Use V4SFmode, not TImode.
12549 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12550 (ix86_expand_timode_binop_builtin): New.
12551 * config/i386/i386-protos.h: Update.
12552 * config/i386/i386.h (enum ix86_builtins): Update.
12553 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12554 Use ix86_expand_vector_move in vector move expanders.
12555 (movti_internal, movti_rex64): Add xorps alternative.
12556 (sse_clrv4sf): Rename and adjust from sse_clrti.
12557 (prefetch): Don't work so hard.
12558 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12559 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12560 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12561
12562 2002-01-11 Richard Henderson <rth@redhat.com>
12563
12564 * config/i386/mmintrin.h: New file.
12565 * config/i386/xmmintrin.h: New file.
12566 * config.gcc (i?86-*-*): Add extra_headers.
12567 * simplify-rtx.c (simplify_unary_operation): Handle saturating
12568 truncation codes.
12569 (simplify_binary_operation): Handle saturating arithmetic codes.
12570 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12571 not the lowpart subreg.
12572 (ix86_expand_builtin): Return a TImode dummy register instead of 0
12573 on error.
12574 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12575
12576 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12577
12578 * conflict.c (conflict_graph_compute): Free regsets when finished.
12579 * ssa.c (compute_coalesced_reg_partition): Likewise.
12580
12581 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12582
12583 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12584 every where we allocate a register.
12585
12586 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12587
12588 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12589 * lcm.c (compute_earliest, compute_farthest): Likewise.
12590
12591 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12592
12593 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12594
12595 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12596
12597 * doc/rtl.texi (Insns): Fix 2 typos.
12598
12599 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
12600
12601 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
12602 options. Use @table @gcctabopt for MMIX options. Add index
12603 entries for MMIX options. Start new paragraph with first
12604 heading of the machine-dependent options.
12605
12606 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
12607
12608 PR other/5299
12609 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12610 * combine.c (force_to_mode): Same.
12611 * reload1.c (clear_reload_reg_in_use): Same.
12612
12613 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12614
12615 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12616 and 'subtargets'.
12617
12618 2002-01-11 Andreas Jaeger <aj@suse.de>,
12619 Brad Lucier <lucier@math.purdue.edu>
12620
12621 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12622 mcpu.
12623
12624 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
12625
12626 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12627 Protect with IN_LIBGCC.
12628 (LINK_EH_SPEC): Add required trailing space.
12629
12630 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
12631
12632 * c-tree.h: Move function declarations so that they are listed
12633 under the filename which contains them.
12634 (check_identifier, finish_decl_top_level,
12635 lookup_name_current_level_global, shadow_record_fields): Remove.
12636
12637 2002-01-11 Andreas Jaeger <aj@suse.de>
12638
12639 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12640 march.
12641
12642 2002-01-10 Richard Henderson <rth@redhat.com>
12643
12644 * config/alpha/alpha.c (print_operand): Add 'J'.
12645 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12646 new operand with the sequence number for the lituse. When splitting
12647 the insns, use gen_movdi_er_high_g and generate a sequence number.
12648 (gen_movdi_er_high_g): Print the sequence number if non-zero.
12649
12650 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
12651
12652 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12653 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12654 stvxl.
12655 (altivec_expand_builtin): Same.
12656 (altivec_expand_stv_builtin): New.
12657
12658 * config/rs6000/rs6000.h (rs6000_builtins): Same.
12659
12660 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12661 ("altivec_lvehx"): New.
12662 ("altivec_lvewx"): New.
12663 ("altivec_lvxl"): New.
12664 ("altivec_lvx"): New.
12665 ("altivec_stvx"): New.
12666 ("altivec_stvebx"): New.
12667 ("altivec_stvehx"): New.
12668 ("altivec_stvewx"): New.
12669 ("altivec_stvxl"): New.
12670
12671 2002-01-10 Richard Henderson <rth@redhat.com>
12672
12673 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12674 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
12675 care not to delete instructions twice.
12676
12677 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12678
12679 * toplev.c: Don't declare environ (it's not used anywhere).
12680 * configure.in: Don't check for declaration of environ.
12681 * config/i386/xm-mingw32.h: Don't #define environ.
12682 * config.in, configure: Regenerate.
12683
12684 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12685
12686 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12687 * configure: Regenerate.
12688
12689 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12690 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12691 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12692 alpha/xm-vms.h.
12693 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12694 LIMITS_H_TEST here, not in m68k/x-next.
12695 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12696 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12697
12698 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12699 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12700 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
12701
12702 * config/i386/x-djgpp: Renamed i386/t-djgpp.
12703 * config/m88k/x-dolph: Renamed m88k/t-dolph.
12704 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12705 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
12706 replacement of quadlib.asm with quadlib.c.
12707
12708 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12709 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12710 config/rs6000/xm-beos.h: Delete file.
12711
12712 * config.gcc: Update to match above changes.
12713
12714 2002-01-10 Kazu Hirata <kazu@hxi.com>
12715
12716 * config/h8300/h8300.h: Fix comment typos.
12717 * config/h8300/h8300.md: Likewise.
12718 * config/h8300/lib1funcs.asm: Likewise.
12719
12720 2002-01-10 Dale Johannesen <dalej@apple.com>
12721
12722 PR optimization/5269
12723 * unroll.c (precondition_loop_p): Make *increment be the correct
12724 sign when n_iterations known, to avoid confusing caller.
12725
12726 2002-01-10 Kazu Hirata <kazu@hxi.com>
12727
12728 * doc/extend.texi (deprecated): Fix a typo.
12729
12730 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
12731
12732 * basic-block.h (update_br_prob_note): Declare.
12733 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12734 (try_forward_edges): Care negative frequencies and update note.
12735 (outgoing_edges_match): Tweek conditional merging heuristics.
12736 (try_crossjump_to_edge): use update_br_prob_note.
12737 * cfglayout.c (fixup_reorder_chain): Likewise.
12738 * cfrtl.c (update_br_prob_note): New.
12739 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12740
12741 * i386.c (ix86_decompose_address): Return -1 if address contains
12742 shift.
12743 (legitimate_address_p): Require ix86_decompose_address to return 1.
12744
12745 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12746 (cprop_insn): Likewise.
12747
12748 2002-01-10 Kazu Hirata <kazu@hxi.com>
12749
12750 * toplev.c: Fix formatting.
12751 * tree.c: Likewise.
12752 * tree-dump.c: Likewise.
12753 * unroll.c: Likewise.
12754 * unwind-dw2.c: Likewise.
12755 * unwind-dw2-fde.c: Likewise.
12756 * unwind-dw2-fde-glibc.c: Likewise.
12757 * unwind-sjlj.c: Likewise.
12758
12759 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12760
12761 * doc/invoke.texi: Document PDP-11 options.
12762
12763 2002-01-10 Kazu Hirata <kazu@hxi.com>
12764
12765 * config/h8300/h8300.h: Fix formatting.
12766
12767 2002-01-10 Ira Ruben <ira@apple.com>
12768
12769 Add __attribute__ ((deprecated)).
12770 * extend.texi: Document __attribute__ ((deprecated)).
12771 * invoke.texi: Document -Wno-deprecated-declarations.
12772 * testsuite/g++.dg/other/deprecated.C: New C++ test.
12773 * testsuite/gcc.dg/deprecated.c: New C test.
12774 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12775 (c_common_attribute_table): Add "deprecated" entry.
12776 (handle_deprecated_attribute): New function.
12777 * c-decl.c (deprecated_states): New enum.
12778 deprecated_state: State of "deprecated" handling.
12779 (start_decl): Set deprecated_state based on attributes.
12780 (grokdeclarator): Test for deprecated uses, propagate attribute.
12781 * c-typeck.c (build_component_ref): Test for deprecated fields.
12782 (build_external_ref): Test for deprecated primaries.
12783 * diagnostic.c (warn_deprecated_use) New function to issue
12784 warnings about __attribute__ ((depricated)) references.
12785 * flags.h (warn_deprecated_decl): Extern declared for
12786 -W[no-]deprecated-declarations option.
12787 * print-tree.c (print_node): Show deprecated flag status.
12788 * toplev.c (warn_deprecated_decl): Defined.
12789 (W_options): Added "deprecated-declaration".
12790 * toplev.h (warn_deprecated_use): Extern declared.
12791 * tree.h (struct tree_common): Define deprecated_flag.
12792 (TREE_DEPRECATED): New macro to access flag.
12793 * cp/call.c (build_call): Test for deprecated calls.
12794 * cp/class.c (add_implicitly_declared_members): Set global
12795 flag to tell grokdeclarator to not issue deprecated warnings.
12796 * cp/cp-tree.h: Add extern for adding_implicit_members.
12797 * cp/decl.c (deprecated_states): New enum.
12798 (start_decl): Set deprecated_state based on attributes.
12799 (grokdeclarator): Test for deprecated uses, propagate attribute.
12800 * cp/lex.c (do_identifier): Test for deprecated primaries.
12801 * cp/typeck.c (build_component_ref): Test for deprecated fields.
12802
12803 2002-01-10 Ira Ruben <ira@apple.com>
12804
12805 Fix to assign attributes to inline member functions.
12806 * cp/decl.c (start_method): Handle attrlist.
12807
12808 2002-01-10 Kazu Hirata <kazu@hxi.com>
12809
12810 * combine.c (expand_field_assignment): Use subreg_lsb().
12811
12812 2002-01-10 David Edelsohn <edelsohn@gnu.org>
12813
12814 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12815 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12816 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12817 Recurse for any operand of AND as long as constant is non-zero.
12818
12819 2002-01-10 Kazu Hirata <kazu@hxi.com>
12820
12821 * config/h8300/h8300.md: Remove constraints from expanders.
12822
12823 2002-01-10 Kazu Hirata <kazu@hxi.com>
12824
12825 * varasm.c: Fix formatting.
12826 * varray.c: Likewise.
12827 * vmsdbgout.c: Likewise.
12828 * xcoffout.c: Likewise.
12829
12830 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
12831
12832 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12833 update edge probabilities to match.
12834
12835 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12836
12837 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
12838 dependencies.
12839 * doc/languages.texi, doc/sourcebuild.texi: New files.
12840 * doc/configfiles.texi: Make a subsubsection. Update.
12841 * doc/configterms.texi: Add @node. Remove warning that this isn't
12842 instructions for building GCC.
12843 * doc/makefile.texi: Make a subsection.
12844 * doc/gccint.texi: Update.
12845
12846 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
12847
12848 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12849
12850 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
12851
12852 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12853
12854 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
12855
12856 * optabs.c (expand_fix): Look for wider integer modes first.
12857
12858 * i386.md (mov?f): Avoid the fake const double trick for medium
12859 memory model.
12860 (min?f*/max?f*): Prohibit memory operands for i387 variant.
12861 (fop_df_4): Disable for SSE compilation.
12862
12863 2002-01-10 Graham Stott <grahams@redhat.com>
12864
12865 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12866 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12867
12868 2002-01-10 Richard Henderson <rth@redhat.com>
12869
12870 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12871
12872 2002-01-10 Richard Henderson <rth@redhat.com>
12873
12874 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12875 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
12876
12877 2002-01-10 Kazu Hirata <kazu@hxi.com>
12878
12879 * combine.c (can_combine_p): Fix a comment typo.
12880
12881 2002-01-09 Zack Weinberg <zack@codesourcery.com>
12882
12883 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
12884 empty list correctly. Change loop index $t to $f for
12885 consistency with rest of Makefile.
12886
12887 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
12888
12889 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12890 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12891
12892 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
12893 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
12894 (altivec_init_builtins): Same.
12895 (altivec_expand_unop_builtin): Return NULL_RTX on error.
12896 (altivec_expand_binop_builtin): Same.
12897 (altivec_expand_ternop_builtin): Same.
12898 (bdesc_dst): New.
12899
12900 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
12901 ("altivec_vctuxs"): Fix typo.
12902 ("altivec_vnmsubfp"): Same.
12903 ("altivec_dssall"): New.
12904 ("altivec_mfvscr"): New.
12905 ("altivec_dss"): New.
12906 ("altivec_lvsl"): New.
12907 ("altivec_lvsr"): New.
12908 ("altivec_dstt"): New.
12909 ("altivec_dstst"): New.
12910 ("altivec_dststt"): New.
12911 ("altivec_dst"): New.
12912
12913 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12914 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12915
12916 2002-01-09 Richard Henderson <rth@redhat.com>
12917
12918 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12919
12920 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
12921
12922 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12923 function.
12924 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12925 prototype.
12926 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12927
12928 2002-01-09 Kazu Hirata <kazu@hxi.com>
12929
12930 * read-rtl.c: Fix formatting.
12931 * real.c: Likewise.
12932 * regclass.c: Likewise.
12933 * regrename.c: Likewise.
12934 * reg-stack.c: Likewise.
12935 * reload1.c: Likewise.
12936 * reload.c: Likewise.
12937 * rtl.c: Likewise.
12938
12939 2002-01-09 Kazu Hirata <kazu@hxi.com>
12940
12941 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12942 to extract items in the expr_list chain.
12943
12944 2002-01-09 Richard Henderson <rth@redhat.com>
12945
12946 * config/vax/vax.c (vax_rtx_cost): Never abort.
12947
12948 * config/vax/vax.h (REAL_ARITHMETIC): Define.
12949
12950 2002-01-09 Jan Hubicka <jh@suse.cz>
12951
12952 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12953
12954 2002-01-09 Richard Henderson <rth@redhat.com>
12955
12956 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12957 Unify code from various alternatives.
12958
12959 2002-01-09 Richard Henderson <rth@redhat.com>
12960
12961 * regrename.c (copy_value): Ignore the copy if the source register
12962 is present in the value chain with a narrower mode.
12963
12964 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12965
12966 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12967 for the c4x target. Also improve layout.
12968
12969 2002-01-09 Richard Henderson <rth@redhat.com>
12970
12971 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12972 * config/m32r/m32r.md (and ior xor splitters): Swap operands
12973 to match insn patterns.
12974
12975 2002-01-09 Richard Henderson <rth@redhat.com>
12976
12977 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12978 (copyprop_hardreg_forward_1): Likewise.
12979
12980 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12981
12982 * pa.md (decrement_and_branch_until_zero): Change predicate for
12983 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12984
12985 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12986
12987 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12988 gets undefined. For Darwin.
12989
12990 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12991
12992 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12993
12994 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12995
12996 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12997
12998 2002-01-08 Richard Henderson <rth@redhat.com>
12999
13000 * regrename.c (copy_value): Ignore overlapping copies.
13001
13002 2002-01-08 Richard Henderson <rth@redhat.com>
13003
13004 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13005 as needed to avoid shared structure.
13006
13007 2002-01-08 Kazu Hirata <kazu@hxi.com>
13008
13009 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13010 H8/300H and H8/S.
13011
13012 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13013
13014 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13015 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13016 documentation of obsolete macros.
13017 * system.h: Poison these macros.
13018 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13019 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13020 config/c4x/c4x.h, config/clipper/clipper.h,
13021 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13022 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13023 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13024 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13025 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13026 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13027 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13028 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13029 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13030 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13031 config/sparc/sparc.h, config/stormy16/stormy16.h,
13032 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13033 definitions and commented out definitions of obsolete macros.
13034 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13035 of MAX_INT_TYPE_SIZE.
13036
13037 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13038
13039 * config/s390/s390.c (s390_preferred_reload_class): Never
13040 return ADDR_REGS if it isn't a subset of the given class.
13041 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13042 FP_REGS, but all superclasses as well.
13043
13044 * config/s390/s390.c (s390_function_profiler): Fix thinko.
13045
13046 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13047 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13048 must not be a const_int.
13049
13050 2002-01-08 Richard Henderson <rth@redhat.com>
13051
13052 * Makefile.in (toplev.o): Depend on options.h.
13053 (gcc.o): Depend on specs.h.
13054
13055 2002-01-08 Jakub Jelinek <jakub@redhat.com>
13056
13057 * expr.c (store_expr): Convert VOIDmode constants back to target's
13058 mode.
13059
13060 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13061
13062 * doc/invoke.texi: Markup gcc as @command. Refer to
13063 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13064 of http://gcc.gnu.org/thanks.html.
13065
13066 2002-01-08 Dale Johannesen <dalej@apple.com>
13067
13068 * config/rs6000/rs6000.md: Add missing int register
13069 target case to movdf_low.
13070
13071 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13072
13073 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13074 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13075 (cppinit.o): Depend on except.h.
13076 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13077 s-specs): New rules.
13078
13079 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13080 Don't create specs.h/options.h/gencheck.h here. Remove
13081 unnecessary variable settings from last argument of AC_OUTPUT.
13082 * config.in, configure: Regenerate.
13083 * intl.c: Hardcode package name as "gcc".
13084
13085 * cppinit.c: Include except.h.
13086 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13087 appropriate.
13088 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13089 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13090 (!)USING_SJLJ_EXCEPTIONS.
13091 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13092
13093 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13094
13095 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13096 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13097 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13098 documentation of obsolete macros.
13099 * system.h: Poison these macros.
13100 * config/d30v/d30v.h, config/ns32k/encore.h,
13101 config/stormy16/stormy16.h: Remove definitions and commented out
13102 definitions of obsolete macros.
13103
13104 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13105
13106 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13107 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13108 warnings.
13109
13110 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13111
13112 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13113 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13114 to insn adjusting stack/frame pointer.
13115 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13116 accept operands that cause the insn to be non-splittable.
13117
13118 2002-01-08 Graham Stott <grahams@redhat.com>
13119
13120 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13121 (C_TYPE_FIELDS_VOLATILE): Likewise.
13122 (C_TYPE_BEING_DEFINED): Likewise.
13123 (C_IS_RESERVED_WORD): Likewise.
13124 (C_TYPE_VARIABLE_SIZE): Likewise.
13125 (C_DECL_VARIABLE_SIZE): Likewise.
13126 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13127 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13128 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13129 parenthesis.
13130 (C_DECL_ANTICIPATED): Likewise.
13131 (c_build_type_variant): Add parenthesis.
13132
13133 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13134
13135 * gcc.c (option_map): Remove --version.
13136 (process_command): Handle -fversion following the GNU Coding
13137 Standards. Partially addresses PR other/704.
13138
13139 2002-01-08 Graham Stott <grahams@redhat.com>
13140
13141 * combine.c (combine_instructions): Fix typo.
13142
13143 2002-01-08 Graham Stott <grahams@redhat.com>
13144
13145 * debug.h: Use "tree" and "rtx" throughout.
13146
13147 * debug.c: Likewise.
13148
13149 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13150
13151 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13152 constant pool, use the pool's version of the symbol instead.
13153
13154 2002-01-07 Richard Henderson <rth@redhat.com>
13155
13156 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13157 the original register was copied in a mode with a fewer number of
13158 hard registers than the desired mode.
13159 (copyprop_hardreg_forward_1): Likewise.
13160 (debug_value_data): Fix loop test.
13161 * toplev.c (parse_options_and_default_flags): Reenable
13162 -fcprop-registers at -O1.
13163
13164 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13165
13166 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13167 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13168
13169 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13170 predicates.
13171
13172 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13173
13174 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13175
13176 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13177 (pa_output_function_prologue): Output local label at the beginning of
13178 the prologue when profiling.
13179 (hppa_profile_hook): Use the local label rather than the function label.
13180 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13181
13182 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13183
13184 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13185 (altivec_expand_unop_builtin): Fix thinko.
13186 (altivec_expand_binop_builtin): Same.
13187 (altivec_expand_ternop_builtin): Same.
13188 (altivec_expand_builtin): Same.
13189
13190 2002-01-07 Richard Henderson <rth@redhat.com>
13191
13192 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13193
13194 2002-01-07 Jason Merrill <jason@redhat.com>
13195
13196 * unwind-dw2.c (execute_cfa_program): Use < again.
13197
13198 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13199
13200 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13201
13202 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13203
13204 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13205 Don't allow -1 - x -> ~x simplifications in the first pass.
13206
13207 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13208
13209 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13210 arguments.
13211 (altivec_expand_binop_builtin): Same.
13212 (altivec_expand_unop_builtin): Same.
13213 (print_operand): Fix typo.
13214 (bdesc_1arg): Add vupk* variants.
13215
13216 * rs6000.h (rs6000_builtins): Add vupk* enums.
13217
13218 * rs6000.md: Add altivec_vupk* variants.
13219
13220 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13221
13222 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13223 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13224 and last update dates.
13225
13226 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13227
13228 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13229
13230 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13231
13232 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13233 * config/avr/avr.h (CPP_SPEC): Likewise.
13234 (LINK_SPEC): Likewise.
13235 (CRT_BINUTILS_SPECS): Likewise.
13236 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13237 * doc/invoke.texi (AVR Options): Document them.
13238
13239 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13240
13241 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13242 LABEL_NUSES.
13243
13244 2002-01-07 Graham Stott <grahams@redhat.com>
13245
13246 * config/i386/i386.h: Update copyright date.
13247 (HALF_PIC_PTR): Add parenthesis.
13248 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13249 (CONSTANT_ALIGNMENT): Add parenthesis.
13250 (DATA_ALIGNMENT): Likewise.
13251 (LOCAL_ALIGNMENT): Likewise.
13252 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13253 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13254 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13255 (HARD_REGNO_NREGS): Add paranethesis.
13256 (VALID_SSE_REG_MODE): Whitespace.
13257 (VALID_MMX_REG_MODE): Whitespace.
13258 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13259 (ix86_hard_regno_mode_ok): Add parenthesis.
13260 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13261 (RETURN_IN_MEMORY): Whitespace.
13262 (N_REG_CLASSES): Add parenthesis.
13263 (INTEGER_CLASS_P): Add parenthesis and wrap.
13264 (FLOAT_CLASS_P): Likewise.
13265 (SSE_CLASS_P): Likewise.
13266 (MMX_CLASS_P): Likewise.
13267 (MAYBE_INTEGER_CLASS_P): Likewise.
13268 (MAYBE_FLOAT_CLASS_P): Likewise.
13269 (MAYBE_SSE_CLASS_P): Likewise.
13270 (MAYBE_MMX_CLASS_P): Likewise.
13271 (Q_CLASS_P): Likewise.
13272 (GENERAL_REGNO_P): Uppercase macro parameter.
13273 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13274 (FP_REGNO_P): Likewise.
13275 (ANY_FP_REGNO_P): Uppercase macro parameter.
13276 (SSE_REGNO_P): Likewise.
13277 (SSE_REGNO): Likewise.
13278 (SSE_REG_P): Likewise.
13279 (SSE_FLOAT_MODE_P): Likewise.
13280 (MMX_REGNO_P): Likewise.
13281 (MMX_REG_P):Likewise.
13282 (STACK_REG_P): Likewise.
13283 (NON_STACK_REG_P): Likewise.
13284 (STACK_TOP_P): Likewise.
13285 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13286 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13287 (SECONDARY_MEMORY_NEEDED): Likewise.
13288 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13289 (MD_ASM_CLOBBERS): Whitespace and wrap.
13290 (MUST_PASS_IN_STACK): Whitespace and wrap.
13291 (RETURN_POPS_ARGS): Add parenthesis.
13292 (INIT_CUMULATIVE_ARGS): Likewise.
13293 (FUNCTION_ARG): Likewise.
13294 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13295 (SETUP_INCOMING_VARARGS): Likewise.
13296 (BUILD_VA_LIST_TYPE): Add parenthesis.
13297 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13298 parenthsis.
13299 (EXPAND_BUILTIN_VA_ARG): Likewise.
13300 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13301 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13302 (INITIAL_ELIMINATION_OFFSET): Likewise.
13303 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13304 (REGNO_OK_FOR_BASE_P): Likewise.
13305 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13306 (REGNO_OK_FOR_DIREG_P): Likewise.
13307 (REG_OK_FOR_INDEX_P): Whitespace.
13308 (REG_OK_FOR_BASE_P): Whitespace.
13309 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13310 parenthesis.
13311 (FIND_BASE_TERM): Fix typo.
13312 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13313 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13314 (SYMBOLIC_CONST; Whitespace.
13315 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13316 (ENCODE_SECTION_INFO): Whitespace.
13317 (FINALIZE_PIC): Remove do { ... } while (0).
13318 (PROMOTE_MODE): Wrap in do { ... } while (0).
13319 (CONST_COSTS): Whitespace.
13320 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13321 (REGISTER_MOVE_COST): Add parenthesis.
13322 (MEMORY_MOVE_COST): Likewise.
13323 (EXTRA_CC_MODES): Whitespace.
13324 (SELECT_CC_MODE): Add parenthesis and whitespace.
13325 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13326 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13327 (ASM_OUTPUT_LABEL): Add paramethesis.
13328 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13329 (ASM_OUTPUT_REG_POP): Likewise.
13330 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13331 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13332
13333 * config/i386/i386.c: Update copyright.
13334 (CHECK_STACK_LIMIT): Add parenthesis.
13335 (AT_BP): Uppercase macro parameter.
13336 (x86_64_int_parameter_registers): Constify.
13337 (x86_64_int_return_registers): Likewise.
13338 (ix86_compare_op0): Use rtx.
13339 (construct_container): Constify INTREG parameter.
13340 (function_arg): Use rtx.
13341
13342 * diagnostic.h: Update copyright date.
13343 (output_buffer_state): Add parenthesis.
13344 (output_buffer_format_args): Likewise.
13345
13346 * combine.c (combine_instructions): Replace XEXP (links, 0)
13347 with link.
13348
13349 2002-01-06 H.J. Lu <hjl@gnu.org>
13350
13351 * cfgcleanup.c (thread_jump): Fix 2 typos.
13352
13353 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13354
13355 * config.gcc: Add support for --enable-altivec.
13356
13357 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13358
13359 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13360
13361 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13362
13363 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13364 __objc_class_name_*.
13365
13366 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13367
13368 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13369
13370 2002-01-06 Richard Henderson <rth@redhat.com>
13371
13372 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13373 nop them out. Increment label reference count for REG_LABEL.
13374 (fill_slots_from_thread): Frob label reference count around
13375 delete_related_insns.
13376
13377 2002-01-05 Richard Henderson <rth@redhat.com>
13378
13379 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13380 jump threading.
13381
13382 2002-01-05 Richard Henderson <rth@redhat.com>
13383
13384 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13385 * integrate.c (output_inline_function): Likewise.
13386 * toplev.c (rest_of_compilation): Do it here instead. Move call
13387 to remove_unnecessary_notes after emitting abstract instance.
13388 Force an emitted nested function to have its parent emited as well.
13389 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13390 for null.
13391 (rtl_for_decl_location): Do not look at reload data structures
13392 before reload has run.
13393
13394 2002-01-05 Kazu Hirata <kazu@hxi.com>
13395
13396 * cse.c: Fix formatting.
13397 * dwarf2asm.c: Likewise.
13398 * dwarf2out.c: Likewise.
13399 * explow.c: Likewise.
13400 * expmed.c: Likewise.
13401 * function.c: Likewise.
13402 * gcov.c: Likewise.
13403 * gencheck.c: Likewise.
13404 * genrecog.c: Likewise.
13405 * ggc-common.c: Likewise.
13406 * ggc-page.c: Likewise.
13407 * global.c: Likewise.
13408
13409 2002-01-05 Kazu Hirata <kazu@hxi.com>
13410
13411 * combine.c: Fix formatting.
13412
13413 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13414
13415 PR middle-end/1557
13416 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13417
13418 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13419
13420 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13421 as 1 for __powerpc64__ as well.
13422
13423 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13424
13425 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13426 return it.
13427
13428 2002-01-05 Daniel Berlin <dan@dberlin.org>
13429
13430 * lcm.c: Revert change, due to performance regression it causes on
13431 SPEC because it's slightly more conservative (sigh, I hate
13432 edge-based LCM).
13433
13434 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13435
13436 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13437
13438 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13439
13440 * doc/cppinternals.texi: Update.
13441
13442 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13443
13444 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13445 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13446 negatives.
13447 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13448 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13449 kludge for pre-october-14th mmix versions to handle new-found bug
13450 with PUSHJ/PUSHGO and the register stack.
13451 * config/mmix/mmix.h (struct machine_function): Rename member
13452 has_call_value_without_parameters to has_call_without_parameters.
13453 All referers changed.
13454 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13455 TARGET_MASK_BRANCH_PREDICT): New macros.
13456 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13457 -mno-reg-stack-fill-bug-workaround.
13458 * config/mmix/mmix.md ("call"): Set struct machine member
13459 has_call_without_parameters.
13460
13461 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13462
13463 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13464
13465 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13466
13467 * cfgcleanup.c: Include tm_p.h
13468 (mark_effect): Fix handling of hard register; fix handling of SET
13469
13470 2002-01-04 Kazu Hirata <kazu@hxi.com>
13471
13472 * config/h8300/h8300.md (anonymous patterns): Check that
13473 operands are registers before using REGNO on them.
13474
13475 2002-01-03 Roland McGrath <roland@frob.com>
13476
13477 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13478
13479 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13480
13481 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13482 * c-common.h (genrtl_expr_stmt_value): Likewise.
13483 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13484 (expand_expr_stmt_value): Add maybe_last argument.
13485 Don't warn about statement with no effect if it is the last statement
13486 in expression statement.
13487 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13488 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13489 expand_expr_stmt_value.
13490 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13491 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13492 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13493 as maybe_last to expand_expr_stmt_value.
13494
13495 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13496
13497 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13498 be passed in, do not build it.
13499 (c_begin_if_stmt): New function.
13500 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13501 * c-common.h (c_expand_start_cond): Update prototype.
13502 (c_begin_if_stmt): Prototype new function.
13503 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13504 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13505 c_begin_while_stmt and c_finish_while_stmt_cond.
13506
13507 2002-01-04 William Cohen <wcohen@redhat.com>
13508
13509 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13510 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13511 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13512 * config/pa/som.h (ASM_FILE_START): Likewise.
13513
13514 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13515
13516 * lcm.c: Include df.h.
13517 Add available_transfer_function prototype.
13518 (compute_available): Rework to use iterative dataflow framework.
13519 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13520 with bb_info in df.h
13521 (available_transfer_function): New function.
13522
13523 * Makefile.in (lcm.o): add df.h to dependencies.
13524
13525 2002-01-04 Richard Henderson <rth@redhat.com>
13526
13527 * config/alpha/alpha.c (some_operand): Accept HIGH.
13528 (input_operand): Likewise; accept simple references to globals.
13529 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13530 (alpha_const_double_ok_for_letter_p): Likewise.
13531 (alpha_extra_constraint): Likewise.
13532 (alpha_preferred_reload_class): Likewise. Do not force
13533 symbolic constants to memory.
13534 (alpha_legitimate_address_p): Accept simple references
13535 to small_symbolic_operand.
13536 (alpha_legitimize_address): New arg scratch. Be prepared to be
13537 called when no_new_pseudos. Emit simple symbolic references.
13538 Split integers into low, high, and rest.
13539 (alpha_expand_mov): Use alpha_legitimize_address.
13540 (some_small_symbolic_mem_operand): New.
13541 (split_small_symbolic_mem_operand): New.
13542 * config/alpha/alpha-protos.h: Update.
13543 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13544 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13545 (EXTRA_CONSTRAINT): Likewise.
13546 (PREFERRED_RELOAD_CLASS): Likewise.
13547 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13548 (PREDICATE_CODES): Update.
13549 * config/alpha/alpha.md: New post-reload splitters to convert
13550 simplfied symbolic operands to the form that references $29.
13551 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13552 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13553
13554 2002-01-03 Richard Henderson <rth@redhat.com>
13555
13556 * local-alloc.c (function_invariant_p): Update commentary.
13557
13558 2002-01-04 H.J. Lu <hjl@gnu.org>
13559
13560 * toplev.c (rest_of_compilation): Fix a typo when calling
13561 cleanup_cfg.
13562
13563 2002-01-03 Kazu Hirata <kazu@hxi.com>
13564
13565 * c-common.c: Fix formatting.
13566 * diagnostic.c: Likewise.
13567 * doloop.c: Likewise.
13568 * dwarf2out.c: Likewise.
13569
13570 2002-01-03 Kazu Hirata <kazu@hxi.com>
13571
13572 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13573 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13574
13575 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13576
13577 * cpperror.c: Update comments and copyright.
13578 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13579 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13580
13581 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13582
13583 * collect2.c (main): Use strcmp when testing for "-shared".
13584
13585 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13586
13587 * cppmacro.c: Don't include intl.h. Update comments.
13588 (new_number_token): Allocate enough buffer for 64-bit unsigned
13589 integers; update prototype.
13590 * cppmain.c: Update comments.
13591
13592 2002-01-03 William Cohen <wcohen@redhat.com>
13593
13594 * function.h (struct function): Add profile.
13595 (current_function_profile): New.
13596 doc/extend.texi: Update documentation.
13597 * final.c (final_start_function): Use current_function_profile
13598 instead of profile_flag.
13599 (profile_after_prologue): Likewise.
13600 * function.c (expand_function_start): Likewise.
13601 (expand_function_start): Likewise.
13602 * config/alpha/alpha.c (direct_call_operand):
13603 (alpha_does_function_need_gp): Likewise.
13604 (alpha_expand_prologue): Likewise.
13605 * config/arm/arm.c (arm_expand_prologue): Likewise.
13606 thumb_expand_prologue: Likewise.
13607 * config/d30v/d30v.c (d30v_stack_info): Likewise.
13608 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13609 (fr30_expand_prologue): Likewise.
13610 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13611 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13612 * config/i386/i386.h (FINALIZE_PIC): Likewise.
13613 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13614 * config/i960/i960.c (i960_output_function_prologue): Likewise.
13615 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13616 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13617 (m32r_expand_prologue): Likewise.
13618 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13619 (m88k_expand_prologue): Likewise.
13620 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13621 * config/mips/mips.c (compute_frame_size): Likewise.
13622 (mips_expand_prologue): Likewise.
13623 (mips_can_use_return_insn): Likewise.
13624 * config/pa/elf.h (ASM_FILE_START): Likewise.
13625 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13626 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13627 * config/pa/som.h (ASM_FILE_START): Likewise.
13628 * config/romp/romp.c (romp_using_r14): Likewise.
13629 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13630 (rs6000_stack_info): Likewise.
13631 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13632 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13633 * config/v850/v850.c (compute_register_save_size): Likewise.
13634
13635 2002-01-03 Jakub Jelinek <jakub@redhat.com>
13636
13637 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13638 gen_lowpart_common fails, use gen_lowpart_SUBREG.
13639
13640 2002-01-03 Turly O'Connor <turly@apple.com>
13641
13642 * darwin.c (machopic_output_possible_stub_label): Don't generate
13643 stub routines for pseudo-stubs which we've just defined.
13644
13645 2002-01-03 Kazu Hirata <kazu@hxi.com>
13646
13647 * builtins.c: Fix formatting.
13648 * c-typeck.c: Likewise.
13649 * combine.c: Likewise.
13650 * expr.c: Likewise.
13651 * loop.c: Likewise.
13652
13653 2002-01-03 Andreas Schwab <schwab@suse.de>
13654
13655 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13656 and return true if _cpp_push_next_buffer pushed a new include
13657 file.
13658 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13659 _cpp_pop_file_buffer did not push a new file.
13660 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13661
13662 2002-01-02 Eric Christopher <echristo@redhat.com>
13663
13664 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13665 FIND_REG_INC_NOTE call. Update copyright.
13666 * loop.c (canonicalize_condition): Ditto.
13667 * reorg.c (delete_scheduled_jump): Ditto.
13668
13669 2002-01-03 Kazu Hirata <kazu@hxi.com>
13670
13671 * gcse.c: Fix formatting.
13672
13673 2002-01-03 Graham Stott <grahams@redhat.com>
13674
13675 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13676 forward defs for struct tags rtx_def, union_tree, rtvec_def
13677 also output corresponding typedefs for rtx, tree, and rtvec.
13678
13679 * system.h: Move forward defs for struct tags rtx_def, union_tree,
13680 rtvec_def along with corresponding typedefs for rtx, tree, and
13681 rtvec to config.h, hconfig.h, tconfig.h.
13682
13683 2002-01-03 Graham Stott <grahams@redhat.com>
13684
13685 * tree.h: Update copyright date.
13686 (IS_EXPR_CODE_CLASS): Add parenthesis.
13687 (TREE_SET_CODE): Add whitespace.
13688 (TREE_CHECK): Add parenthesis.
13689 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13690 (CST_OR_CONSTRUCTOR_CHECK):
13691 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13692 (TREE_SYMBOL_REFERENCED): Whitespace.
13693 (INT_CST_LT): Likewise.
13694 (INT_CST_LT_UNSIGNED): Likewise.
13695 (tree_real_cst): Unwrap comment.
13696 (tree_string): Likewise.
13697 (tree_complex): Likewise.
13698 (IDENTIFIER_POINTER): correct cast.
13699 (SAVE_EXPR_CONTEXT): Whitespace.
13700 (EXPR_WFL_FILENAME_NODE): Likewise.
13701 (EXPR_WFL_FILENAME): Remove parenthesis.
13702 (DECL_ORIGIN): Add parenthesis.
13703 (DECL_FROM_INLINE): Use NULL_TREE.
13704 (build_int_2): Whitespace.
13705 (build_type_variant): Add parenthesis.
13706
13707 * gcc/jcf-parse.c: Update copyright date.
13708 (yyparse): Constify resource_filename.
13709
13710 2002-01-03 Graham Stott <grahams@redhat.com>
13711
13712 * rtl.h: Update copyright date.
13713 (RTL_CHECK1): Wrap long line.
13714 (RTL_CHECK2): Likewise.
13715 (RTL_CHECKC1): Wrap long line and whitespace.
13716 (RTL_CHECKC2): Likewise.
13717 (XWINT): Whitespace.
13718 (XINT): Likewise.
13719 (XSTR): Likewise.
13720 (XEXP): Likewise.
13721 (XVEC): Likewise.
13722 (XMODE): Likewise.
13723 (XBITMAP): Likewise.
13724 (XTREE): Likewise.
13725 (XBBDEF): Likewise.
13726 (XTMPL): Likewise.
13727 (X0WINT): Likewise.
13728 (X0INT):Likewise.
13729 (X0UINT): Likewise.
13730 (X0STR): Likewise.
13731 (X0EXP): Likewise.
13732 (X0VEC): Likewise.
13733 (X0MODE): Likewise.
13734 (X0BITMAP): Likewise.
13735 (X0TREE): Likewise.
13736 (X0BBDEF): Likewise.
13737 (X0ADVFLAGS): Likewise.
13738 (X0CSELIB): Likewise.
13739 (X0MEMATTR): Likewise.
13740 (XCWINT): Likewise.
13741 (XCINT): Likewise.
13742 (XCUINT): Likewise.
13743 (XCSTR): Likewise.
13744 (XCEXP): Likewise.
13745 (XCVEC): Likewise.
13746 (XCMODE): Likewise.
13747 (XCBITMAP): Likewise.
13748 (XCTREE): Likewise.
13749 (XCBBDEF): Likewise.
13750 (XCADVFLAGS): Likewise.
13751 (XCCSELIB): Likewise.
13752 (XC2EXP): Likewise.
13753 (INSN_UID): Likewise.
13754 (PREV_INSN): Likewise.
13755 (PATTERN): Likewise.
13756 (INSN_CODE): Likewise.
13757 (PUT_REG_NOTE_KIND): Likewise.
13758 (CODE_LABEL_NUMBER): Likewise.
13759 (NOTE_SOURCE_FILE): Likewise.
13760 (NOTE_BLOCK): Likewise.
13761 (NOTE_EH_HANDLER): Likewise.
13762 (NOTE_RANGE_INFO): Likewise.
13763 (NOTE_LIVE_INFO): Likewise.
13764 (NOTE_BASIC_BLOCK): Likewise.
13765 (NOTE_EXPECTED_VALUE): Likewise.
13766 (NOTE_LINE_NUMBER): Likewise.
13767 (LABEL_NAME): Likewise.
13768 (LABEL_NUSES): Likewise.
13769 (LABEL_ALTERNATE_NAME): Likewise.
13770 (ADDRESSOF_DECL): Likewise.
13771 (JUMP_LABEL): Likewise.
13772 (LABEL_NEXTREF): Likewise.
13773 (REGNO): Likewise.
13774 (ORIGINAL_REGNO: Likewise.
13775 (HARD_REGISTER_NUM_P): Add parenthesis.
13776 (SUBREG_REG): Whitespace.
13777 (SUBREG_BYTE): Likewise.
13778 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13779 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13780 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13781 (ASM_OPERANDS_INPUT_VEC): Likewise.
13782 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13783 (ASM_OPERANDS_INPUT): Likewise.
13784 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13785 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13786 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13787 (ASM_OPERANDS_INPUT_MODE): Likewise.
13788 (ASM_OPERANDS_SOURCE_FILE): Likewise.
13789 (ASM_OPERANDS_SOURCE_LINE): Likewise.
13790 (MEM_SET_IN_STRUCT_P): Minor reformat.
13791 (TRAP_CONDITION): Whitespace.
13792 (TRAP_CODE): Likewise.
13793 (COND_EXEC_TEST): Likewise.
13794 (COND_EXEC_CODE): Likewise.
13795 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13796 (PHI_NODE_P): Add parenthesis.
13797 (plus_constant): Whitespace and add parenthesis.
13798
13799 2002-01-03 Kazu Hirata <kazu@hxi.com>
13800
13801 * config/avr/avr.c: Fix comment typos.
13802 * config/c4x/c4x.md: Likewise.
13803 * config/dsp16xx/dsp16xx.h: Likewise.
13804 * config/dsp16xx/dsp16xx.md: Likewise.
13805 * config/i386/i386.md: Likewise.
13806 * config/ia64/ia64.c: Likewise.
13807 * config/m32r/m32r.h: Likewise.
13808 * config/m68hc11/m68hc11.md: Likewise.
13809 * config/mmix/mmix.c: Likewise.
13810 * config/mn10200/mn10200.c: Likewise.
13811 * config/romp/romp.c: Likewise.
13812 * config/sh/sh.c: Likewise.
13813 * config/stormy16/stormy16.c: Likewise.
13814 * config/stormy16/stormy16.h: Likewise.
13815 * config/stormy16/stormy16.md: Likewise.
13816
13817 2002-01-03 Graham Stott <grahams@redhat.com>
13818
13819 * loop.h: Update copyright date.
13820 (LOOP_MOVABLES): Fix typo.
13821 (LOOP_REGS): Likewise.
13822 (LOOP_IVS): Likewise.
13823
13824 2002-01-03 Graham Stott <grahams@redhat.com>
13825
13826 * cppinit.c: Update copyright date.
13827 Don't include output.h
13828 * Makefile.in: Update copyright date.
13829 Update dependency.
13830
13831 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
13832
13833 PR c/5226
13834 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13835 (-pthread) Add to RS/6000 options.
13836
13837 2002-01-02 Kazu Hirata <kazu@hxi.com>
13838
13839 * except.c: Fix comment typos.
13840 * loop.c: Likewise.
13841 * varasm.c: Likewise.
13842 * doc/tm.texi: Fix a typo.
13843
13844 2002-01-02 Jakub Jelinek <jakub@redhat.com>
13845
13846 * c-typeck.c (output_init_element): Allow initializing static storage
13847 duration objects with compound literals.
13848
13849 2002-01-02 Richard Henderson <rth@redhat.com>
13850
13851 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13852 after abusing it.
13853
13854 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13855
13856 * gcc.c (default_compilers): Const-ify.
13857 * mips-tdump.c (stab_names): Likewise.
13858 * mips-tfile.c (map_coff_types, map_coff_storage,
13859 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
13860 pseudo_ops_t, pseudo_ops): Likewise.
13861 * protoize.c (default_include): Likewise
13862
13863 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
13864 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
13865 Add array size in declaration.
13866 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
13867 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
13868 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
13869 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
13870 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
13871 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
13872 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
13873 emtens, make_nan): Const-ify.
13874 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
13875 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
13876
13877 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
13878
13879 * config.gcc (ia64-*-*): Set extra_headers.
13880 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
13881 * config/alpha/t-osf: Remove.
13882 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
13883
13884 2002-01-02 David Edelsohn <edelsohn@gnu.org>
13885
13886 * config/rs6000/t-aix43: Revert previous change.
13887
13888 2002-01-02 Jason Merrill <jason@redhat.com>
13889
13890 * c-decl.c (c_expand_body): Call outlining_inline_function when
13891 emitting an inline function out of line.
13892
13893 2002-01-02 Richard Henderson <rth@redhat.com>
13894
13895 * dwarf2out.c (limbo_die_node): Add created_for member.
13896 (new_die): New argument created_for. Update all callers.
13897 (mark_limbo_die_list): New.
13898 (dwarf2out_init): Register limbo_die_list as a root.
13899 (dwarf2out_finish): Force insert limbo dies into their function
13900 context.
13901
13902 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
13903
13904 PR c++/5089
13905 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13906
13907 2002-01-02 Kazu Hirata <kazu@hxi.com>
13908
13909 * config/h8300/fixunssfsi.c: Update copyright.
13910 Fix comment typos.
13911 Fix formatting.
13912 * config/h8300/h8300.c: Update copyright.
13913 Eliminate warnings.
13914
13915 2002-01-02 Kazu Hirata <kazu@hxi.com>
13916
13917 * config/romp/romp.c: Fix comment formatting.
13918 * config/romp/romp.h: Likewise.
13919 * config/romp/romp.md: Likewise.
13920 * config/s390/s390.c: Likewise.
13921 * config/stormy16/stormy16.c: Likewise.
13922 * config/stormy16/stormy16.h: Likewise.
13923
13924 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
13925
13926 * c-common.h (genrtl_expr_stmt_value): Declare.
13927 * c-semantics.c (genrtl_goto_stmt): Redirect to...
13928 (genrtl_goto_stmt_value): ... this new function. Pass new
13929 argument down to expand_expr_stmt_value, taking
13930 TREE_ADDRESSABLE into account.
13931 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13932 STMT_EXPR as addressable, i.e., one whose result we want.
13933 * expr.c (expand_expr): Don't save expression statement value
13934 of labeled_blocks or loop_exprs.
13935 * stmt.c (expand_expr_stmt): Redirect to...
13936 (expand_expr_stmt_value): ... this new function. Use new
13937 argument to tell whether to save expression value.
13938 (expand_end_stmt_expr): Reset last_expr_type and
13939 last_expr_value if we don't have either.
13940 * tree-inline.c (declare_return_variable): Mark its use
13941 statement as addressable.
13942 * tree.h: Document new use of TREE_ADDRESSABLE.
13943 (expand_expr_stmt_value): Declare.
13944
13945 2002-01-01 Tom Rix <trix@redhat.com>
13946
13947 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13948 rs6000_emit_allocate_stack.
13949
13950 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
13951
13952 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13953 ${srcdir}/ginclude/ to every entry in extra_headers.
13954 * configure: Regenerate.
13955 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13956 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13957 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13958 * ginclude/proto.h: Rename to config/convex/proto.h.
13959
13960 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13961
13962 * attribs.c (handle_vector_size_attribute): Use host_integerp
13963 and tree_int_cst; remove warnings.
13964 * caller-save.c (insert_restore): Add cast to get rid of warning.
13965 (insert_save): Likewise.
13966 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13967 * regmove.c (find_matches): Add temporary var to kill a warning.
13968
13969 2002-01-01 Douglas B Rupp <rupp@gnat.com>
13970
13971 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13972 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13973 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13974 (vms-dwarf2eh.o): Add Makefile rule.
13975 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13976 * config/alpha/vms-dwarf2eh.asm: New file.
13977
13978 * gcc.c (delete_if_ordinary): Delete all versions.
13979
13980 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13981
13982 * config/mmix/mmix.md: Update FIXME to not mention
13983 define_constants.
13984 (MMIX_rJ_REGNUM): New define_constants constant.
13985 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13986 "*movdicc_real"): Adjust contraints formatting.
13987 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13988 for branch prediction.
13989 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13990 output template.
13991 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13992 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13993 number. Delete related FIXMEs.
13994 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13995 from number to MMIX_rJ_REGNUM.
13996 (TARGET_MASK_BRANCH_PREDICT): New.
13997 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13998 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
13999 value. Add -mbranch-predict and -mno-branch-predict.
14000 (TARGET_VERSION): Drop date.
14001 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14002 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14003 for finding out global symbols.
14004 (mmix_asm_output_labelref): Revert condition for global symbol.
14005 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14006 (mmix_print_operand_punct_valid_p): A '+' is valid.
14007
14008 See ChangeLog.6 for earlier changes.
This page took 0.604908 seconds and 5 git commands to generate.