]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
sysv4.h (DO_SELECT_SECTION): Factored out of SELECT_SECTION.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-05-14 Andreas Schwab <schwab@suse.de>
2
3 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
4 SELECT_SECTION.
5 (UNIQUE_SECTION): Define to get small data correctly.
6
7 * varasm.c (resolve_unique_section): Add third parameter
8 flag_function_or_data_sections and use it instead of
9 flag_function_sections.
10 (assemble_start_function): Pass flag_function_sections.
11 (asm_emit_uninitialised): Pass flag_data_sections.
12 (assemble_variable): Likewise.
13
14 2002-05-14 Richard Henderson <rth@redhat.com>
15
16 * config/i386/i386.md: Use define_constants for unspec numbers.
17 * config/i386/i386.c: Likewise.
18
19 2002-05-13 Mark Mitchell <mark@codesourcery.com>
20
21 * fixinc/inclhack.def (winidss_valist): Limit applicability.
22 * fixinc/fixincl.x: Regenerated.
23 * fixinc/tests/base/math.h: Update.
24 * fixinc/tests/base/testing.h: Likewise.
25
26 2002-05-13 Zack Weinberg <zack@codesourcery.com>
27
28 * genattr.c (gen_attr): Don't emit a comma after the last
29 enumerator.
30
31 2002-05-13 Richard Henderson <rth@redhat.com>
32
33 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
34 by non-local gotos.
35 * recog.c (peephole2_optimize): Likewise.
36
37 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
38
39 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
40 input to O_BINARY.
41
42 2002-05-13 Jeffrey A Law (law@redhat.com)
43
44 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
45 Update prototype and callers.
46 (propagate_one_insn): Stack pointer adjustments kill MEMs on
47 the mem_set_list which reference the stack pointer, as do
48 calls to constant functions as they may clobber outgoing
49 argument space.
50
51 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
52
53 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
54 (ia32_multipass_dfa_lookahead): New function.
55
56 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
57
58 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
59 (translate_options): Remove 'V'.
60 (process_command): Similarly.
61 doc:
62 * invoke.texi: Remove documentation of 'V'.
63
64 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
65
66 * config/s390/linux.h: Revert 2002-04-22 changes.
67
68 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
69
70 * config/fr30/fr30.md: Only allow splits of immediate loads
71 if the destination is a register.
72
73 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
74
75 * Makefile.in (c-common.o, cppinit.o): Update.
76 * c-common.c: Include except.h.
77 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
78 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
79 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
80 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
81 CPP_PREDEFINES): Handle here.
82 config:
83 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
84 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
85 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
86 TARGET_OS_CPP_BUILTINS.
87 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
88 (CPP_SPEC, EXTRA_SPECS): Update.
89 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
90 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
91 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
92 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
93 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
94 doc:
95 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
96 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
97
98 2002-05-12 Zack Weinberg <zack@codesourcery.com>
99
100 * emit-rtl.c (global_rtl): Update comment.
101 (const_double_htab, const_double_htab_hash,
102 const_double_htab_hash, lookup_const_double): New.
103 (const_int_htab_hash, const_int_htab_eq): Remove const
104 qualifiers, which cause tons of warnings with RTL checking on.
105 (gen_rtx_CONST_DOUBLE): Deleted.
106 (const_double_from_real_value): New function - bears some
107 resemblance to the former immed_real_const_1.
108 (immed_double_const): Moved here from varasm.c and
109 simplified.
110 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
111 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
112 (gen_rtx): Use immed_double_const.
113 (init_emit_once): Initialize the const_double_htab. Use
114 REAL_VALUE_FROM_INT where possible. Can now use
115 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
116 * varasm.c (struct varasm_status): Remove x_const_double_chain.
117 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
118 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
119 (init_varasm_status, mark_varasm_status): Don't touch
120 x_const_double_chain.
121
122 * output.h: Delete prototype for clear_const_double_mem.
123 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
124 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
125 const_double_from_real_value, not immed_real_const_1, and use
126 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
127 CONST_DOUBLE_ATOF.
128 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
129 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
130 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
131 (gen_rtx_REG): Second arg is unsigned.
132
133 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
134 (excluded_rtx): New, return true for CONST_DOUBLE.
135 (genmacro): Write nothing for excluded codes.
136 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
137 * expr.c (expand_expr): Likewise.
138 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
139 CONST_DOUBLE_CHAIN.
140 * toplev.c (rest_of_compilation): Don't call
141 clear_const_double_mem.
142
143 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
144 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
145 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
146 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
147 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
148 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
149 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
150 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
151
152 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
153
154 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
155
156 2002-05-12 Tom Tromey <tromey@redhat.com>
157
158 * tree.h (copy_node): Don't mention TREE_PERMANENT.
159
160 2002-05-12 Zack Weinberg <zack@codesourcery.com>
161
162 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
163 (scan_comma_elt): New function. Accepts whitespace in comma lists.
164 * gensupport.h: Prototype new routines.
165 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
166 use of printf.
167 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
168 (next_comma_elt): Use scan_comma_elt.
169
170 * config/i386/i386.md: Use new attribute notation to break up
171 long lines in define_attr forms.
172
173 2002-05-12 Richard Henderson <rth@redhat.com>
174
175 * expr.c (compress_float_constant): New.
176 (emit_move_insn): Use it.
177 (float_extend_from_mem): New.
178 (init_expr_once): Initialize it.
179 * real.c (exact_real_truncate): New.
180
181 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
182 dropped into memory; penalize for size.
183 (RTX_COSTS): FLOAT_EXTEND is free.
184 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
185 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
186
187 2002-05-12 Richard Henderson <rth@redhat.com>
188
189 * profile.h (profile_info): Add missing extern to declaration.
190 * profile.c (profile_info): Define it.
191
192 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
193
194 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
195 used for DImode and TImode.
196
197 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
198
199 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
200 fake a newline.
201
202 2002-05-11 Zack Weinberg <zack@codesourcery.com>
203
204 * config/rs6000/rs6000.c (rs6000_default_long_calls,
205 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
206 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
207 (rs6000_override_options): Handle -m(no-)longcall.
208 (init_cumulative_args, output_mi_thunk): Check for both
209 longcall and shortcall attributes on the function.
210 (rs6000_attribute_table): Add "shortcall".
211 (rs6000_handle_longcall_attribute): Update comment.
212 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
213 altivec_expand_ternop_builtin): Add default clauses to switches
214 to silence warnings.
215
216 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
217 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
218 (TARGET_OPTIONS): Add longcall and no-longcall.
219
220 * config/rs6000/rs6000.md (call_nonlocal_sysv,
221 call_value_nonlocal_sysv): Split by alternatives. One pair
222 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
223 the call cookie. The other pair accepts only LR/CTR and has
224 no restriction.
225
226 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
227 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
228 tmake_file.
229 * config/rs6000/rs6000-c.c: New file.
230 * config/rs6000/t-rs6000-c-rule: New file.
231 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
232 Prototype rs6000_pragma_longcall.
233
234 * doc/extend.texi: Document shortcall attribute.
235 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
236
237 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
238
239 * reorg.c (dbr_schedule): Remove unnecessary test.
240
241 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
242
243 * i386.md (testsi to testqi spliters): New.
244
245 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
246
247 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
248
249 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
250
251 * basic-block.h: New flag EDGE_CAN_FALLTHRU
252 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
253 that can be made fallthru.
254
255 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
256
257 * cfglayout.c (cleanup_unconditional_jumps): New static function.
258 (cfg_layout_initialize): Use it.
259
260 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
261
262 * config/avr/avr.c (avr_mcu_types): Update supported devices.
263 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
264 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
265
266 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
267
268 * dbxout.c: Fix formatting.
269 * dependence.c: Likewise.
270 * df.c: Likewise.
271 * diagnostic.c: Likewise.
272 * doloop.c: Likewise.
273 * dominance.c: Likewise.
274 * doschk.c: Likewise.
275 * dwarf2asm.c: Likewise.
276 * dwarf2out.c: Likewise.
277 * dwarfout.c: Likewise.
278
279 2002-05-10 Richard Henderson <rth@redhat.com>
280
281 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
282 Convert integers constants as needed. Replace "nwords" field with
283 "sizeof_bb".
284 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
285 * function.h: Fix typo in comment.
286 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
287
288 2002-05-10 Roger Sayle <roger@eyesopen.com>
289
290 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
291 into the equivalent (signed char)c > 0.
292
293 2002-05-10 Janis Johnson <janis187@us.ibm.com>
294
295 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
296 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
297 (struct prefetch_info): Fix spelling of member bytes_accessed.
298 (emit_prefetch_instructions): Make dump messages more regular;
299 restructure code to add more dump messages; use new macros for
300 heuristics. (There are no code generation changes in any of this).
301
302 2002-05-10 David S. Miller <davem@redhat.com>
303
304 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
305 (struct rtx_def): Update unchanging flag comment.
306 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
307 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
308 to be handled to INSN too.
309 (dbr_schedule): Likewise.
310 * resource.c (next_insn_no_annul): Likewise.
311
312 * cse.c (rtx_cost): Remove multiplication by power of 2 special
313 casing.
314
315 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
316
317 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
318 . as N64/N32 libgcc_s.so subdirs.
319
320 2002-05-10 David S. Miller <davem@redhat.com>
321
322 * config/sparc/sparc.md: Use define_constants for unspec numbers.
323
324 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
325 more accurately.
326 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
327 comment.
328 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
329 * doc/rtl.texi: Document these macros more accurately.
330 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
331 JUMP_INSNs and CALL_INSNs.
332 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
333 or INSN_FROM_TARGET_P if the code is appropriate.
334
335 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
336
337 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
338 before using SYMBOL_REF_FLAG (addr).
339
340 * config/avr/avr-protos.h (avr_io_address_p): Declare.
341 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
342 Make non-static. Update all callers.
343 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
344 New insns to clear/set/test a single bit in I/O address space.
345
346 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
347
348 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
349
350 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
351
352 * Makefile.in: Update.
353 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
354 builtin_define_std): New.
355 (c_common_init): Register CPP builtins callback.
356 * c-common.h (flag_iso, flag_undef): New.
357 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
358 * c-lex.c: Don't include target.h.
359 (cb_register_builtins): Move to c-common.c.
360 (init_c_lex): Don't register hook here.
361 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
362 (cpp_define, cpp_assert): Remove.
363 * gcc.c (cc1_options): Pass -undef to front end.
364 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
365 (TARGET_INITIALIZER): Update.
366 * target.h (struct cpp_reader): Don't predeclare.
367 (struct gcc_target): Remove cpp builtin hook.
368 * tree.c (default_register_cpp_builtins): Remove.
369 doc:
370 * tm.texi: Update.
371
372 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
373
374 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
375
376 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
377
378 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
379 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
380
381 2002-05-09 Jakub Jelinek <jakub@redhat.com>
382
383 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
384 * config/sparc/libgcc-sparc-glibc.ver: New file.
385 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
386 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
387
388 2002-05-09 Jakub Jelinek <jakub@redhat.com>
389
390 PR target/6429
391 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
392 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
393 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
394 base multilibs.
395 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
396 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
397 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
398 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
399
400 2002-05-09 Richard Henderson <rth@redhat.com>
401
402 * config/ia64/ia64.md: Use define_constants for unspec numbers.
403 * config/ia64/ia64.c: Likewise.
404
405 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
406
407 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
408 (save_restore_insns): Likewise.
409 (mips_expand_prologue, mips_expand_epilogue): Update callers.
410 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
411
412 Thu May 9 11:50:09 2002 Jeffrey A Law (law@cygnus.com)
413
414 * athlon.md, k6.md, pentium.md, ppro.md): New files.
415 * i386.md: Move scheduling information into new files.
416
417 * i386.md (type attribute): Add "rotate" for rotate insns.
418 (rotate insns): Set type to "rotate".
419 (various attributes and function units): Treat rotate like shift.
420 (pent_pair attribute): Only rotates by one bit position are
421 pairable.
422 (sbb insns): Explicitly set pent_pair attribute on a couple
423 that were missing it.
424
425 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
426
427 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
428 make sure that buffer starts on odd word address.
429 (sh_va_arg): Skip odd fp registers when reading a double precision
430 value.
431
432 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
433
434 * tree.h (preserve_data, object_permanent_p, type_precision):
435 Remove.
436
437 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
438
439 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
440 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
441 doc:
442 * cpp.texi: Update for removal of obsolete features.
443
444 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
445 Jeffrey A Law (law@redhat.com)
446
447 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
448 the DFA interface for Pentium processors.
449 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
450 (attr_pent_pair, ix86_pent_find_pair): Remove.
451 (ix86_sched_reorder_pentium): Remove.
452 (ix86_sched_reorder): Remove reordering for Pentium.
453 * i386.md (Pentium scheduling): Rewrite using DFA description.
454
455 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
456
457 * cfganal.c (can_fallthru): Fix fast path.
458 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
459 with edges to the next block.
460
461 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
462 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
463
464 * final.c (end_final): Use C trees to output data structures for profiling.
465
466 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
467 (profile.o): New dependency profile.h
468 (final.o): New dependency profile.h
469 * profile.h: New file. New global structure profile_info.
470 * final.h (count_edges_instrumented_now): Declare.
471 (current_function_cfg_checksum): Declare.
472 (function_list): New structure.
473 (functions_head, functions_tail): New static variables.
474 (end_final): Emits more data, removed some -ax stuff.
475 (final): Stores function names and chcksums.
476 * gcov-io.h (__write_gcov_string): New function.
477 (__read_gcov_string): New function.
478 * gcov.c (read_profile): New function.
479 (create_program_flow_graph): Uses read_profile instead of reading
480 da_file.
481 (read_files): Removed da_file checking, it's done by read_profile now.
482 * libgcc2.c (bb_function_info): New structure.
483 (bb): New field in structure, removed some -ax stuff.
484 (__bb_exit_func): Changed structure of da_file.
485 * profile.c (count_edges_instrumented_now): New global variable.
486 (current_function_cfg_checksum): New global variable.
487 (max_counter_in_program): New global variable.
488 (get_exec_counts): New function.
489 (compute_checksum): New function.
490 (instrument_edges): Sets count_edges_instrumented_now.
491 (compute_branch_probabilities): Uses get_exec_counts instead of
492 reading da_file.
493 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
494 (init_branch_prob): Removed da_file checking, done in get_exec_counts
495 now.
496 (end_branch_prob): Removed da_file checking, done in get_exec_counts
497 now.
498 * gcov.texi: Updated information about gcov file format.
499
500 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
501
502 * sbitmap.c: Fix formatting.
503 * scan.c: Likewise.
504 * scan-decls.c: Likewise.
505 * sched-deps.c: Likewise.
506 * sched-ebb.c: Likewise.
507 * sched-rgn.c: Likewise.
508 * sched-vis.c: Likewise.
509 * sdbout.c: Likewise.
510 * sibcall.c: Likewise.
511 * simplify-rtx.c: Likewise.
512 * ssa.c: Likewise.
513 * ssa-ccp.c: Likewise.
514 * ssa-dce.c: Likewise.
515 * stmt.c: Likewise.
516 * stor-layout.c: Likewise.
517 * stringpool.c: Likewise.
518
519 2002-05-09 David S. Miller <davem@redhat.com>
520
521 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
522
523 2002-05-07 David S. Miller <davem@redhat.com>
524
525 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
526 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
527 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
528 library implementation clobbers the output before the inputs
529 are fully consumed, use stack temporary for the output.
530
531 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
532
533 * config/netbsd.h (CPP_SPEC): Remove.
534 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
535 * config/i386/netbsd.h (CPP_SPEC): Define.
536 * config/ns32k/netbsd.h (CPP_SPEC): Define.
537 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
538 * config/sparc/netbsd.h (CPP_SPEC): Define.
539 * config/vax/netbsd.h (CPP_SPEC): Define.
540
541 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
542
543 * read-rtl.c: Fix formatting.
544 * real.c: Likewise.
545 * recog.c: Likewise.
546 * regclass.c: Likewise.
547 * regmove.c: Likewise.
548 * reg-stack.c: Likewise.
549 * reload1.c: Likewise.
550 * reload.c: Likewise.
551 * resource.c: Likewise.
552 * rtlanal.c: Likewise.
553 * rtl.c: Likewise.
554 * rtl-error.c: Likewise.
555
556 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
557
558 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
559 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
560
561 2002-05-08 Bernd Schmidt <bernds@redhat.com>
562
563 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
564 use __SSE2__ macro instead.
565 * config/i386/xmmintrin.h: Likewise.
566
567 2002-05-08 Janis Johnson <janis187@us.ibm.com>
568
569 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
570 and use it in all invocations of these macros. Clean up comments.
571 * rtl.c (rtl_check_failed_flag): Add an argument for the name
572 of the flag access macro whose check failed.
573 * doc/rtl.texi (Flags): Document additional flag uses.
574
575 2002-05-08 Robert Spier <rspier@pobox.com>
576 Neil Booth <neil@daikokuya.demon.co.uk>
577
578 PR preprocessor/6521
579 * cppfiles.c (handle_missing_header): Don't do anything
580 different for <> includes.
581 doc:
582 * cppopts.texi: Update documentation for -MG.
583
584 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
585
586 * cpplex.c (cpp_interpret_charconst): Truncate as well as
587 sign-extend.
588 doc:
589 * cpp.texi: Clarify multichar charconst valuation.
590
591 2002-05-08 Mark Mitchell <mark@codesourcery.com>
592
593 * doc/invoke.texi: Document -mwindiss option.
594
595 2002-05-08 Jason Merrill <jason@redhat.com>
596
597 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
598
599 * dwarf2out.c (gen_type_die): Abort on broken recursion.
600
601 PR c++/6381
602 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
603 REAL_CST.
604
605 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
606
607 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
608 little-endian multilibs to override arm/thumb multilibs.
609 Do not build hardware floating point multilibs, nor apcs-26
610 multilibs for the Thumb.
611
612 2002-05-08 Mark Mitchell <mark@codesourcery.com>
613
614 PR c/6569.
615 * varasm.c (mark_weak): New function.
616 (merge_weak): Use it. Do not call declare_weak.
617 (declare_weak): Use merge_weak.
618
619 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
620
621 * cse.c (dead_libcall_p): Update counts.
622 (delete_trivially_dead_insns): Update call of dead_libcall_p.
623
624 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
625
626 * cfglayout.c (function_tail_eff_head): Rename to ...
627 (function_footer): ... this one.
628 (unlink_insn_chain): New functions.
629 (label_for_bb): Only call block_label and emit debug message.
630 (record_effective_endpoints): Actually unlink the headers and footers.
631 (fixup_reorder_cahin): Re-insert the unlinked sequences.
632 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
633 * cfglayout.h (struct reorder_block_def): New fields footer/header;
634 remove eff_head/eff_end.
635 * rtl.h (set_first_insn): Declare.
636 * emit-rtl.c (set_first_insn): New function.
637
638 * cfglayout.c (fixup_reorder_chain): Dump duplicated
639 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
640 cfg_layout_duplicate_bb): New global function.
641 (duplicate_insn_chain): New static function.
642 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
643 cfg_layout_duplicate_bb): Declare.
644 (struct reorder_block_def): Add "original" field.
645 * emit-rtl.c (emit_copy_of_insn_after): New function.
646 * rtl.h (emit_copy_of_insn_after): Declare.
647
648 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
649 (fixup_reorder_chain): properly handle edges to exit block.
650
651 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
652 Jan Hubicka <jh@suse.cz>
653
654 * basic-block.h (note_prediction_to_br_prob): declare.
655 * c-semantics.c: Inlucde predit.h
656 (expand_stmt): predict GOTO_STMT as not taken.
657 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
658 (cleanup_cfg): Do not free tail_recursion_list.
659 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
660 (flow_delete_block): Kill predictions past end of basic block.
661 * output.h (delete_unreachable_blocks): Declare.
662 * predict.c (predicted_by_p, process_note_predictions,
663 process_note_prediction, last_block_p): New function.
664 (estimate_probability): Bypass loop on PRED_CONTINUE;
665 do not handle noreturn heuristics; kill PRED_RETURN; add
666 PRED_EARLY_RETURN.
667 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
668 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
669 * predict.h (IS_TAKEN): New constant.
670 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
671 * rtl.c (NOTE_INSN_PREDICTION): New.
672 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
673 New macro.
674 (insn_note): add NOTE_INSN_PREDICTION.
675 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
676 CFG; free tail_recursion_label_list.
677 * stmt.c: Include predict.h;
678 (return_prediction): New.
679 (expand_value_return): Use it.
680 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
681
682 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
683
684 * config/mips/mips.md: Name the unspecs with define_constant.
685 (*HILO_delay): Rename to 'hilo_delay' (no star).
686 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
687 (reload_outdi, reload_outsi): Likewise.
688
689 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
690
691 * toplev.c: Fix formatting.
692
693 2002-05-07 Janis Johnson <janis187@us.ibm.com>
694
695 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
696 * configure.in (ac_rtlflag_checking): New.
697 * doc/install.texi (--enable-checking): Document RTL flag checking.
698
699 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
700
701 * c-common.c (c_common_init): Set options->unsigned_wchar.
702 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
703 group target dependencies.
704 (init_builtins, cpp_handle_option): Update.
705 * cpplex.c (cpp_interpret_charconst): Update.
706 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
707 signed_char to unsigned_char, group target dependencies.
708 * defaults.h (WCHAR_UNSIGNED): Remove.
709 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
710 config:
711 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
712 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
713 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
714 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
715 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
716 doc:
717 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
718
719 2002-05-07 Mark Mitchell <mark@codesourcery.com>
720
721 * fixinc/inclhack.def (windiss_math1): New fix.
722 (windiss_math2): Likewise.
723 (windiss_valist): Likewise.
724 * fixinc/fixincl.x: Regenerated.
725
726 2002-05-07 Andreas Jaeger <aj@suse.de>
727
728 * genautomata.c (output_internal_min_issue_delay_func): Add
729 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
730 (output_internal_trans_func): Likewise.
731
732 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
733
734 * pa.c (hppa_profile_hook): Use force_reg to get the address
735 of the profile hook into an appropriate pseudo register.
736
737 2002-05-07 Mark Mitchell <mark@codesourcery.com>
738
739 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
740 (LINK_START_SPEC): Handle it.
741 (LINK_OS_SPEC): Likewise.
742 (CPP_SPEC): Likewise.
743 (STARTFILE_SPEC): Likewise.
744 (LIB_SPEC): Likewise.
745 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
746 all platforms.
747 (CRTSAVRES_DEFAULT_SPEC): New macro.
748 (LIB_WINDISS_SPEC): New macro.
749 (CPP_OS_WINDISS_SPEC): Likewise.
750 (STARTFILE_WINDISS_SPEC): Likewise.
751 (ENDFILE_WINDISS_SPEC): Likewise.
752 (LINK_START_WINDISS_SPEC): Likewise.
753 (LINK_OS_WINDISS_SPEC): Likewise.
754 * config/rs6000/windiss.h: New file.
755
756 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
757
758 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
759
760 2002-05-06 David S. Miller <davem@redhat.com>
761
762 * config/sparc/sparc.md (shift insns): Do not mask off
763 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
764 take care of it.
765
766 2002-05-06 Richard Henderson <rth@redhat.com>
767
768 PR c++/6212
769 * expr.c (highest_pow2_factor_for_type): New.
770 (expand_assignment): Use it.
771
772 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
773
774 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
775 unspec_volatile.
776 ("altivec_mfvscr"): Same.
777
778 2002-05-06 Janis Johnson <janis187@us.ibm.com>
779
780 * rtl.h (struct rtx_def): Update comments.
781 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
782 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
783 RTL_FLAG_CHECK macros with list of expected RTL codes.
784 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
785 (rtl_check_failed_flag): New.
786 * reload1.c (reload): Use REG macro before changing rtx to MEM.
787 (reload_cse_noop_set_p): Check rtx code before using access macro.
788 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
789 before using access macro.
790
791 2002-05-06 Janis Johnson <janis187@us.ibm.com>
792
793 * doc/rtl.texi (Flags): Update to reflect current usage.
794
795 2002-05-06 Roger Sayle <roger@eyesopen.com>
796
797 PR opt/3995
798 * fold-const.c (sign_bit_p): New function.
799 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
800 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
801 Reapply fold when converting (A & C) == C into (A & C) != 0.
802 (fold_binary_op_with_conditional_arg): Fix typo in comment.
803
804 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
805
806 * c-common.c (warn_multichar): New.
807 (c_common_init): Set CPP's warn_multichar.
808 * c-common.h (warn_multichar): New.
809 * c-decl.c (warn_multichar): Remove.
810 * c-lex.c (lex_charconst): Update.
811 * c-tree.h (warn_multichar): Remove.
812 * cppexp.c (eval_token): Sign-extend charconst value.
813 * cppinit.c (cpp_create_reader): Set warn_multichar.
814 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
815 each character. Update prototype. Sign-extend the result.
816 * cpplib.h: Fix conditions.
817 (struct cpp_options): Add new warning flag.
818 (cpp_interpret_charconst): Update prototype.
819 doc:
820 * cpp.texi: Update documentation.
821
822 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
823
824 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
825 Fix typo in usage of allof instead of unit.
826
827 2002-05-06 Richard Henderson <rth@redhat.com>
828
829 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
830 and any jump or call for IN.
831
832 2002-05-06 Bernd Schmidt <bernds@redhat.com>
833
834 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
835 -msse2.
836 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
837
838 2002-05-06 Roger Sayle <roger@eyesopen.com>
839
840 * fold-const.c (lshift-double): Cast the high word to an unsigned
841 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
842 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
843 avoid compiler warning. (fold): Remove redundant code from
844 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
845
846 2002-05-06 Jeff Law <law@redhat.com>
847
848 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
849 * pa.c (pa_adjust_cost): Remove all true dependency cost
850 adjustments. Also remove support for non-DFA scheduling.
851 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
852 to adjust true dependency costs. Update various comments.
853 (7100lc, 7200, 7300 scheduling): Simplify by combining the
854 FP ALU & MPY units into a single unit.
855
856 2002-05-06 Catherine Moore <clm@redhat.com>
857
858 * config/v850/v850.c (compute_register_save_size): Make sure
859 to count all of the registers that will be saved.
860
861 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
862
863 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
864
865 2002-05-06 David S. Miller <davem@redhat.com>
866
867 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
868 allow result to overlap input operands in memory.
869
870 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
871
872 doc:
873 * cpp.texi: Update multichar charconst docs.
874
875 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
876
877 * cpplex.c (cpp_interpret_charconst): Sign-extend each
878 character. Don't ignore excess characters. Treat
879 multicharacter character constants as signed.
880 (cpp_parse_escape): Clarify diagnostic.
881
882 2002-05-05 Jakub Jelinek <jakub@redhat.com>
883
884 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
885 use add instead of shift.
886 (ashldi3_sp64): Likewise.
887 (ashlsi3_const1, ashldi3_const1): Remove.
888 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
889 * config/sparc/sparc.c (const1_operand): New.
890
891 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
892
893 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
894
895 2002-05-05 Jakub Jelinek <jakub@redhat.com>
896
897 PR target/6561
898 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
899
900 2002-05-05 Richard Henderson <rth@redhat.com>
901
902 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
903 memory latency adjustments.
904 (alpha_variable_issue): Remove.
905 (alpha_use_dfa_pipeline_interface): New.
906 (alpha_multipass_dfa_lookahead): New.
907 * config/alpha/alpha.md: Remove define_function_unit scheduling;
908 include new dfa scheduling.
909 (attr type): Add none.
910 (blockage): Use it.
911 * config/alpha/ev4.md: New.
912 * config/alpha/ev5.md: New.
913 * config/alpha/ev6.md: New.
914
915 2002-05-05 David S. Miller <davem@redhat.com>
916
917 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
918
919 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
920
921 * cse.c: Fix formatting.
922 * emit-rtl.c: Likewise.
923
924 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
925
926 * genautomata.c (initiate_states): Add additional guard to
927 initialize `units_array'.
928
929 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
930
931 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
932 process_unit_to_form_the_same_automaton_unit_lists,
933 form_the_same_automaton_unit_lists
934 check_unit_distributions_to_automata): New prototypes and
935 functions.
936 (check_automata): Rename it into `check_automata_insn_issues'.
937 (unit_decl): New fields `the_same_automaton_unit' and
938 `the_same_automaton_message_reported_p'.
939 (unit_decl_t): New typedef.
940 (the_same_automaton_lists): New gloval variable.
941 (unit_regexp, unit_set_el, units_array, units_cmp,
942 output_get_cpu_unit_code_func): Use the typedef.
943 (evaluate_max_reserv_cycles): Increment
944 `description->max_insn_reserv_cycles'.
945 (initiate_states): Don't increment `max_cycles_num'.
946 (transform_insn_regexps): Move code around transformation of
947 regexps from `generate'.
948 (generate): Remove call of `transform_insn_regexps'.
949 (expand_automata): Call `transform_insn_regexps' and
950 `check_unit_distributions_to_automata'. Check errors before
951 `generate'.
952
953 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
954 automaton `ultrasparc3_1'.
955
956 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
957
958 * c-common.c (c_common_init): Set up CPP arithmetic.
959 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
960 something reasonable for the host.
961 (sanity_checks): Add checks.
962 (cpp_read_main_file): Call sanity_checks() from here...
963 (cpp_post_options): ... not here.
964 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
965 * cpplib.h (struct cpp_options): New member int_precision.
966
967 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
968
969 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
970
971 2002-05-04 David S. Miller <davem@redhat.com>
972
973 * config/sparc/linux.h, config/sparc/linux64.h
974 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
975
976 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
977 more RTX codes.
978 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
979
980 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
981 of SETs.
982
983 2002-05-05 Tim Josling <tej@melbpc.org.au>
984
985 * treelang; New directory for new sample language treelang.
986
987 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
988
989 * Makefile.in (c-lex.o): Update.
990 * c-lex.c: Include target.h.
991 (cb_register_builtins): New.
992 (init_c_lex): Set builtins callback.
993 * c-lex.h (cpp_define, cpp_assert): New prototypes.
994 * cppinit.c (init_builtins): Use callback, including for
995 GXX_WEAK.
996 * cpplib.h (struct cpp_callbacks): New member.
997 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
998 (TARGET_INITIALIZER): Update.
999 * target.h (struct gcc_target): New hook.
1000 * tree.c (default_register_cpp_builtins): New.
1001 * tree.h (default_register_cpp_builtins): New.
1002 doc:
1003 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1004
1005 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1006
1007 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1008 (cpp_post_options): Move sanity checks to...
1009 (sanity_checks): New.
1010 * cpplex.c (maybe_read_ucs): Fix prototype.
1011 (parse_string, cpp_parse_escape): Cast for %c format specifier.
1012 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1013 if necessary.
1014
1015 2002-05-04 Bernd Schmidt <bernds@redhat.com>
1016
1017 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1018 builtins. Use V2DI patterns instead of TI for logical operations.
1019 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1020 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1021 (ix86_expand_builtins): Change the pattern used for movntdq.
1022 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1023 sse2_nandv2di3): New patterns.
1024 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1025 on operands.
1026 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1027 (cvtdq2pd): Correct mode on operand 1.
1028 (sse2_umulsidi3): Describe without unspec.
1029 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1030 machine modes.
1031 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1032 (ashlv2di3): Likewise, from sse2_ashlv2di3.
1033 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1034 ashlv4si3, ashlv2di3): Use SImode for shift count.
1035 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1036 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1037 New patterns.
1038 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1039 New typedefs.
1040 (__m128i, __m128d): New macros.
1041 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1042 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1043 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1044 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1045 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1046 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1047 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1048 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1049 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1050 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1051 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1052 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1053 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1054 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1055 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1056 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1057 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1058 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1059 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1060 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1061 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1062 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1063 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1064 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1065 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1066 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1067 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1068 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1069 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1070 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1071 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1072 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1073 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1074 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1075 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1076 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1077 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1078 functions.
1079 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1080 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1081
1082 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
1083
1084 * dwarf2out.c: Fix formatting.
1085 * varasm.c: Likewise.
1086
1087 2002-05-04 David Edelsohn <edelsohn@gnu.org>
1088
1089 PR c/6543
1090 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1091 clobber and use result as temporary value.
1092
1093 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1094
1095 * expr.c (force_operand): Use expand_simple_* to handle more
1096 cases.
1097
1098 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
1099
1100 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1101 and sign-extension.
1102 (lex_charconst): Update for change in prototype of
1103 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
1104 appropriately.
1105 * cpphash.h (BITS_PER_CPPCHAR_T): New.
1106 * cppinit.c (cpp_create_reader): Initialize them for no
1107 change in semantics.
1108 (cpp_post_options): Add sanity checks.
1109 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1110 and truncation issues. Calculate in type cppchar_t.
1111 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1112 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
1113 run-time dependent precision correctly. Return whether the
1114 result is signed or not.
1115 * cpplib.c (dequote_string): Use cppchar_t; update.
1116 * cpplib.h (cppchar_signed_t): New.
1117 struct cpp_options): New precision members.
1118 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1119 * cppexp.c (eval_token): Update.
1120
1121 2002-05-03 David S. Miller <davem@redhat.com>
1122
1123 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1124 * config/sparc/sparc.c (sparc_rtx_costs): New function
1125 implementing RTX_COSTS and CONST_COSTS.
1126 * config/sparc/sparc.h (CONST_COSTS): Delete.
1127 (RTX_COSTS_CASES): Define.
1128 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1129 the work.
1130
1131 * config/sparc/sparc.md (DFA schedulers): Split out...
1132 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1133 config/sparc/sparclet.md, config/sparc/supersparc.md,
1134 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1135
1136 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1137 checks on it, always defined for Sparc.
1138
1139 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1140 Tweak, and add more detailed comments.
1141
1142 2002-05-03 Zack Weinberg <zack@codesourcery.com>
1143
1144 * Re-apply patch accidentally reverted with
1145 DFA scheduler merge: remove all rules and variables to slurp
1146 source files out of libiberty and rebuild them with HOST_CC.
1147 ($(HOST_PREFIX_1)varray.o): New rule.
1148 (genattrtab rule): Word wrap.
1149
1150 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1151
1152 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1153 (CPP_SUBTARGET_SPEC): Define.
1154 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1155 cpp_subtarget specs.
1156 (CPP_SPEC): Redefine to include %(cpp_subtarget).
1157
1158 2002-05-03 David S. Miller <davem@redhat.com>
1159
1160 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1161 * target.h (struct gcc_target): Delete cycle_display member.
1162
1163 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1164 (rtx_needs_barrier): Delete reference to cycle_display unspec.
1165 (ia64_sched_reorder2): Mention need for cycle display handling
1166 once such notes exist.
1167
1168 2002-05-03 Richard Henderson <rth@redhat.com>
1169
1170 * real.c (etoasc): Strip most trailing zeros for clarity.
1171 * sched-vis.c: Include real.h.
1172 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1173 * Makefile.in (sched-vis.o): Add real.h.
1174
1175 2002-05-03 David S. Miller <davem@redhat.com>
1176
1177 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
1178 no longer needed.
1179
1180 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
1181
1182 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
1183 when we get an out of range literal.
1184 (altivec_expand_ternop_builtin): Same.
1185 (altivec_expand_unop_builtin): Same.
1186 (altivec_expand_builtin): Same, for dss.
1187 (altivec_expand_builtin): Use trees instead of rtl when
1188 determining literal argument validity.
1189
1190 2002-05-03 David S. Miller <davem@redhat.com>
1191
1192 Delete cycle display scheduling hook.
1193 * config/ia64/ia64.c (ia64_cycle_display,
1194 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
1195 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
1196 and use emit_insn_before instead of ia64_emit_insn_before.
1197 * config/ia64/ia64.md (unspec usage): Delete cycle display.
1198 (cycle_display): Delete insn pattern.
1199 * config/sparc/sparc.md (unspec usage): Delete cycle display.
1200 (cycle_display): Delete insn pattern.
1201 * config/sparc/sparc.c (sparc_cycle_display,
1202 TARGET_SCHED_CYCLE_DISPLAY): Delete.
1203 * doc/md.texi (cycle_display): Don't mention.
1204 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
1205
1206 2002-05-03 Richard Henderson <rth@redhat.com>
1207
1208 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
1209 * recog.h: Declare them.
1210
1211 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
1212 * config/sparc/sparc.md: Use store_data_bypass_p instead.
1213 * config/sparc/sparc-protos.h: Update.
1214
1215 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1216
1217 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1218 -D__arch64__. Add -D_LP64.
1219 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1220 from sparc.h.
1221 (CPP_ARCH64_SPEC): Likewise.
1222 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1223 (NO_BUILTIN_SIZE_TYPE): Undef.
1224
1225 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
1226
1227 * genautomata.c (min_issue_delay_pass_states): Change return type
1228 in the prototype.
1229 (min_issue_delay_pass_states): Change the algorithm.
1230 (min_issue_delay): Set up min_insn_issue_delay for the state.
1231 (output_min_issue_delay_table): Interchange the nested loops and
1232 and initiate min_insn_issue_delay for states.
1233
1234 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
1235
1236 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
1237 jump is simplejump.
1238
1239 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1240
1241 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
1242 sequence.
1243
1244 2002-05-03 Richard Henderson <rth@redhat.com>
1245
1246 PR opt/6534
1247 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1248 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1249 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1250 code before JUMP, not EARLIEST.
1251
1252 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
1253
1254 * c-format.c (check_format_info_main): Don't check for presence of
1255 parameter for * width until after operand number has been read,
1256 and only check for it if format parameters are available.
1257 Fixes PR c/6547.
1258
1259 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
1260
1261 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1262 (LINK_SPEC): Undef before defining.
1263
1264 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR preprocessor/6489
1267 * tradcpp.c (fixup_newlines): New.
1268 (main, finclude): Use it.
1269
1270 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
1271
1272 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
1273 * config/mips/mips.c (mips_unique_section): Strip encoding from
1274 decl name.
1275
1276 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1277
1278 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1279 mode.
1280
1281 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1282
1283 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1284 (Specific): Removed buildstats references.
1285 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1286 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1287 Accomodate Solaris versions beyond 8.
1288 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1289 (Specific, *-*-solaris2.8): Removed, obsolete.
1290
1291 2002-05-03 Jakub Jelinek <jakub@redhat.com>
1292
1293 PR target/6542
1294 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1295 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1296 fill leaf_reg_remap with identity.
1297 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1298
1299 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1300
1301 * config/h8300/crti.asm: Remove trailing spaces.
1302 * config/h8300/h8300.c: Likewise.
1303 * config/h8300/lib1funcs.asm: Likewise.
1304
1305 2002-05-02 Jason Merrill <jason@redhat.com>
1306
1307 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
1308 * c-decl.c (c_init_decl_processing): Use it.
1309 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
1310 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
1311 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
1312
1313 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1314
1315 * regrename.c: Fix formatting.
1316 * tree.c: Likewise.
1317
1318 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1319
1320 * i386.md (attribute memory): Handle compares properly.
1321
1322 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
1323
1324 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
1325 to none.
1326
1327 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
1328
1329 * function.c: Fix formatting.
1330
1331 2002-05-02 Jan Hubicka <jh@suse.cz>
1332
1333 * haifa-sched.c (schedule_insn): Print table of instructions and
1334 reservations.
1335 (sched_block): Do not print ready list at verbosity level 1.
1336 * sched-vis.c (print_insn): Make global.
1337 * sched-ebb.c (ebb_print_insn): Rename from...
1338 (print_insn): ... this one.
1339 * sched-int.h (print_insn): Declare
1340
1341 2002-05-02 Richard Henderson <rth@redhat.com>
1342
1343 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
1344 emitted by cycle_display.
1345
1346 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
1347
1348 * doc/install.texi (*-*-freebsd*): Update to latest status.
1349
1350 2002-05-02 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR target/6540
1353 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
1354 * config/float-sparc.h: Assume 128-bit long double if
1355 __LONG_DOUBLE_128__ is defined.
1356
1357 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
1358
1359 * genattrtab.c (write_function_unit_info): Add a dummy element
1360 when num_units == 0.
1361
1362 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1363
1364 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
1365 TYPE_MODE (double_type_node) instead of DFmode.
1366
1367 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
1368
1369 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
1370 jumps post reload.
1371 * toplev.c (rest_of_compilation): Revert Richard's patch.
1372
1373 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1374
1375 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
1376
1377 2002-05-02 Catherine Moore <clm@redhat.com>
1378
1379 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
1380
1381 2002-05-02 Kazu Hirata <kazu@hxi.com>
1382
1383 * combine.c: Fix comment typos.
1384 * expr.c: Likewise.
1385 * genautomata.c: Likewise.
1386 * stmt.c: Likewise.
1387 * tree.h: Likewise.
1388
1389 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
1390
1391 * doc/install.texi: State GNAT version requirements.
1392
1393 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
1394
1395 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
1396 of the frame pointer or arg pointer register which strict register
1397 checking is not enabled.
1398
1399 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
1400
1401 * gcc.dg/altivec-8.c: New.
1402
1403 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
1404 PRE_INC and PRE_DEC for altivec modes.
1405
1406 2002-05-01 Bruce Korb <bkorb@gnu.org>
1407
1408 * fixinc/check.tpl(set-writable): make sure the function exists first
1409 * fixinc/inclhack.def(alpha_assert): fix test_text
1410 * fixinc/tests/base/assert.h: add in missing result
1411
1412 2002-05-01 Jeff Law <law@redhat.com>
1413
1414 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
1415 'T' constraint.
1416
1417 2002-05-01 Joel Brobecker <brobecker@gnat.com>
1418
1419 * dbxout.c (dbxout_type): Emit size information for range types,
1420 as well, but only when using GDB extensions.
1421
1422 2002-05-01 Richard Henderson <rth@redhat.com>
1423
1424 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
1425 target-independent gnu binutils date test.
1426
1427 2002-05-01 Richard Henderson <rth@redhat.com>
1428
1429 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
1430 info before expunging the block.
1431
1432 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1433
1434 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
1435 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
1436 -M -or -MM is in effect.
1437
1438 2002-05-01 Zack Weinberg <zack@codesourcery.com>
1439
1440 * config.gcc: Correct test of --enable-obsolete. Obsolete all
1441 A29k configurations.
1442 * doc/install.texi: Update to match.
1443
1444 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1445
1446 PR bootstrap/6514
1447 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
1448 for duplicates. Always loop over whole list.
1449
1450 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1451
1452 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
1453
1454 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1455
1456 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
1457 support routines.
1458
1459 2002-05-01 Joel Sherrill <joel@OARcorp.com>
1460
1461 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
1462
1463 2002-05-01 David Edelsohn <edelsohn@gnu.org>
1464
1465 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
1466 (nabs_nopower): Same.
1467 (floatdisf2): New pattern.
1468 (absdi2): Convert to define_insn_and_split.
1469 (nabsdi2): Same.
1470 (trunctfsf2): Same.
1471 (floatditf2): Same.
1472 (floatsitf2): Same.
1473 (fix_trunctfdi2): Same.
1474 (fix_trunctfsi2): Same.
1475
1476 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
1477
1478 * doc/install.texi: Update Texinfo version requirement
1479 documentation.
1480
1481 2002-05-01 Jakub Jelinek <jakub@redhat.com>
1482
1483 PR target/6512, PR target/5628
1484 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
1485 when memory is not aligned.
1486 (movdf_insn_v9only_vis): Likewise.
1487 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
1488 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
1489 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
1490
1491 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
1492
1493 * gcc.dg/altivec-7.c: New.
1494
1495 * config/rs6000/altivec.h: Cleanup.
1496
1497 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
1498
1499 * doc/invoke.texi (Option Summary): Add -mvrsave=.
1500 (RS/6000 and PowerPC Options): Document -mvrsave=.
1501
1502 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
1503 (rs6000_altivec_vrsave_string): Same.
1504 (rs6000_override_options): Call rs6000_parse_vrsave_option.
1505 (rs6000_parse_vrsave_option): New.
1506 (rs6000_stack_info): Only generate vrsave instructions when
1507 TARGET_ALTIVEC_VRSAVE.
1508
1509 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
1510 (rs6000_altivec_vrsave_string): Define extern.
1511 (rs6000_altivec_vrsave): Same.
1512 (TARGET_ALTIVEC_VRSAVE): New.
1513
1514 2002-04-30 Richard Henderson <rth@redhat.com>
1515
1516 PR opt/6516
1517 * toplev.c (rest_of_compilation): Don't run cross-jump before
1518 bb-reorder.
1519
1520 2002-04-30 Tom Rix <trix@redhat.com>
1521
1522 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
1523 check which_alternative.
1524
1525 2002-04-30 Kazu Hirata <kazu@hxi.com>
1526
1527 * cpplex.c: Fix comment formatting.
1528 * function.c: Likewise.
1529 * integrate.c: Likewise.
1530 * regrename.c: Likewise.
1531 * sibcall.c: Likewise.
1532 * simplify-rtx.c: Likewise.
1533 * tree-inline.c: Likewise.
1534
1535 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1536
1537 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
1538 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
1539 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
1540 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
1541 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
1542 * pa/x-ada: New file. Define ADA_CFLAGS.
1543
1544 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
1545
1546 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
1547 from MMIX_LAST_REGISTER_FILE_REGNUM.
1548 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
1549 (struct machine_function): New member highest_saved_stack_register
1550 previously static variable in mmix.c.
1551 (MACHINE_DEPENDENT_REORG): Define.
1552 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
1553 (MMIX_OUTPUT_REGNO): New.
1554 (mmix_target_asm_function_prologue): Move calculation of last used
1555 saved-stack-register into...
1556 (mmix_machine_dependent_reorg): New function. Update to also handle
1557 !TARGET_ABI_GNU.
1558 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
1559 register names, simplify somewhat by new variable regno.
1560 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
1561 register.
1562 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
1563 emitting register names.
1564 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
1565 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
1566 Remove fixed FIXME.
1567 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
1568 Declare.
1569
1570 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
1571
1572 2002-04-30 Richard Henderson <rth@redhat.com>
1573
1574 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1575 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
1576 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
1577 emit_tfmode_cvt): New.
1578 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
1579 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
1580 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
1581 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
1582 * config/sparc/sparc-protos.h: Update.
1583
1584 2002-04-30 Janis Johnson <janis187@us.ibm.com>
1585
1586 * install.texi (Final install): Add to the list of info to include
1587 in a report of a successful bootstrap, and add link to 3.1 list.
1588
1589 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
1590
1591 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
1592 (mode): Add vector modes
1593 (i387): Kill attribute.
1594 (unit): New attribute.
1595 (length_immediate): Grok new types.
1596 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
1597 (modrm): Use "unit".
1598 (memory): Handle MMX/SSE properly.
1599 (scheduling descriptions): Kill uses of fop1.
1600 (sse, mmx, fp patterns): Set type and mode properly.
1601
1602 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
1603
1604 * pa.c (override_options): Default to PA8000 scheduling.
1605 * doc/invoke.texi (HP-PA options): Mention newly added 7300
1606 scheduling parameter.
1607
1608 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
1609 handling of double precision multiplies.
1610
1611 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
1612 fpdiv and fpsqrt instructions.
1613 (7200 & 7300 scheduling): Fix typo in handling of
1614 store-load and store-store penalties.
1615
1616 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1617
1618 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
1619 mips. Add two missing commas.
1620
1621 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
1622
1623 * doc/contrib.texi (Contributors): Update Paolo Carlini's
1624 and Benjamin Kosnik's entries.
1625
1626 2002-04-29 David S. Miller <davem@redhat.com>
1627
1628 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
1629 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
1630 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
1631 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1632
1633 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1634
1635 * combine.c (find_split_point): Use gen_int_mode.
1636
1637 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
1638
1639 Merging code from dfa-branch:
1640
1641 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
1642
1643 * genautomata.c (output_reserv_sets): Fix typo.
1644
1645 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
1646
1647 * genautomata.c (output_reserv_sets): Remove
1648 next_cycle_output_flag.
1649
1650 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
1651
1652 * sched-rgn.c (init_ready_list): Make the DFA code handle
1653 USE/CLOBBER insns in the same way as the traditional
1654 scheduler.
1655 (new_ready): Similarly..
1656
1657 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
1658
1659 * haifa-sched.c (schedule_block): Change the DFA state only after
1660 issuing insn.
1661
1662 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
1663
1664 * pa.c (hppa_use_dfa_pipeline_interface): New function.
1665 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1666 (override_options): Add PA7300 scheduling support.
1667 (pa_adjust_cost): Update various comments. Properly
1668 handle anti and output dependencies when using the
1669 DFA scheduler.
1670 (pa_issue_rate): Add PA7300 scheduling support.
1671 (pa_can_combine_p): Call extract_insn before calling
1672 constrain_operands (taken from mainline tree).
1673 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
1674 * pa.md (cpu attr): Add 7300. Rewrite pipeline
1675 descriptions using DFA descriptions. Add PA7300
1676 scheduling support.
1677
1678 2002-03-30 David S. Miller <davem@redhat.com>
1679
1680 Add UltraSPARC-III DFA scheduling support.
1681 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
1682 Update FP conditional move on register insn patterns to use it, as
1683 appropriate.
1684 (define_attr cpu): Add ultrasparc3.
1685 (define_attr us3load_type): New, update integer load patterns to
1686 set it, as appropriate.
1687 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
1688 (rest): Add UltraSPARC3 scheduling description.
1689 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
1690 (PROCESSOR_ULTRASPARC3): New.
1691 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
1692 ({ASM,CPP}_CPU_SPEC): Likewise.
1693 (REGISTER_MOVE_COST): Likewise.
1694 (RTX_COSTS): Likewise.
1695 * config/sparc/sparc.c (sparc_override_options,
1696 sparc_initialize_trampoline, sparc64_initialize_trampoline,
1697 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1698 sparc_issue_rate): Likewise.
1699 * config/sparc/sol2.h: Likewise.
1700 * config/sparc/sol2-sld-64.h: Likewise.
1701 * config/sparc/linux64.h: Likewise.
1702
1703 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
1704
1705 * doc/md.texi: Add comments about usage the latency time for the
1706 different dependencies and about case when two or more conditions
1707 in different define_insn_reservations returns TRUE for an insn.
1708
1709 * doc/md.texi: Add reference for automaton based pipeline
1710 description.
1711
1712 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
1713
1714 * doc/passes.texi: Add missed information about genattrtab.
1715
1716 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
1717
1718 * genautomata.c (output_automata_list_transition_code): Check
1719 automata_list on NULL.
1720
1721 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
1722
1723 * genautomata.c (output_insn_code_cases,
1724 output_automata_list_min_issue_delay_code,
1725 output_automata_list_transition_code,
1726 output_automata_list_state_alts_code): Comment the functions.
1727
1728 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
1729
1730 * genautomata.c (automata_list_el_t): New typedef.
1731 (get_free_automata_list_el,free_automata_list_el,
1732 free_automata_list, automata_list_hash, automata_list_eq_p,
1733 initiate_automata_lists, automata_list_start, automata_list_add,
1734 automata_list_finish, finish_automata_lists,
1735 output_insn_code_cases, output_automata_list_min_issue_delay_code,
1736 output_automata_list_transition_code,
1737 output_automata_list_state_alts_code, add_automaton_state,
1738 form_important_insn_automata_lists): New functions and prototypes.
1739 (insn_reserv_decl): Add members important_automata_list and
1740 processed_p.
1741 (ainsn): Add members important_p.
1742 (automata_list_el): New structure.
1743 (first_free_automata_list_el, current_automata_list,
1744 automata_list_table): New global variables.
1745 (create_ainsns): Initiate member important_p.
1746 (output_internal_min_issue_delay_func): Generate the switch and
1747 call output_insn_code_cases.
1748 (output_internal_trans_func, output_internal_state_alts_func):
1749 Ditto.
1750 (generate): Call initiate_automata_lists.
1751 (automaton_states): New global variable.
1752 (expand_automata): Call form_important_insn_automata_lists.
1753 (write_automata): Call finish_automata_lists.
1754
1755 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
1756
1757 * genautomata.c (add_excls, add_presence_absence): Check that
1758 cpu units in the sets belong the same automaton.
1759
1760 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
1761 about that cpu units in the sets belong the same automaton.
1762
1763 * doc/md.texi: Ditto.
1764
1765 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
1766 Nitin Gupta <niting@noida.hcltech.com>
1767
1768 * config/sh/sh.c (sh_use_dfa_interface): New function.
1769
1770 (sh_issue_rate): New Function.
1771 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
1772 TARGET_SCHED_ISSUE_RATE: define.
1773
1774 * config/sh/sh.md: Add DFA based pipeline description for SH4.
1775
1776 (define_attr insn_class): New attribute used for DFA
1777 scheduling.
1778 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
1779 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
1780 cmpeqdi_t): Likewise.
1781
1782 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
1783 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
1784 ex_group.
1785 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
1786
1787 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1788
1789 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
1790 break.
1791
1792 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1793
1794 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
1795 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
1796 necessary.
1797 (output_dfa_start_func): Initiate new variable insn_codes_length,
1798 (write_automata): Output definition of the new variable.
1799
1800 2001-10-02 David S. Miller <davem@redhat.com>
1801
1802 * haifa-sched.c (advance_one_cycle): New function.
1803 (schedule_block): Use it.
1804 (queue_to_ready): Use it, and also make sure to advance the DFA
1805 state on all stall cycles, not just those where insn_queue links
1806 are found.
1807
1808 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
1809
1810 * haifa-sched.c (max_issue): Remove last_p argument. Only return
1811 non-zero if the highest-priority instruction could be scheduled.
1812 (choose_ready): Remove last argument from max_issue call.
1813
1814 2001-09-28 David S. Miller <davem@redhat.com>
1815
1816 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
1817 ultrasparc and 3 for other multi-issue sparcs.
1818
1819 2001-09-27 David S. Miller <davem@redhat.com>
1820
1821 * config/sparc/sparc.md (cycle_display): New pattern.
1822 * config/sparc/sparc.c (sparc_cycle_display): New.
1823 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
1824
1825 2001-09-25 David S. Miller <davem@redhat.com>
1826
1827 Convert all of Sparc scheduling to DFA
1828 * config/sparc/sparc.md: Kill all define_function_unit
1829 directives and replace with DFA equivalent.
1830 * config/sparc/sparc.c (ultrasparc_adjust_cost,
1831 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
1832 ultra_fpmode_conflict_exists, ultra_find_type,
1833 ultra_build_types_avail, ultra_flush_pipeline,
1834 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
1835 ultrasparc_variable_issue, ultrasparc_sched_init,
1836 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
1837 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
1838 ultra_cur_hist, ultra_cycles_elapsed): Kill.
1839 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
1840 ultrasparc_store_bypass_p): New.
1841 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
1842 Declare.
1843
1844 2001-09-24 David S. Miller <davem@redhat.com>
1845
1846 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
1847 ready->vec[foo] not ready[foo].
1848
1849 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1850
1851 * doc/md.texi: Correct examples for define_insn_reservations
1852 `mult' and `div'.
1853
1854 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
1855
1856 * genautomata.c (create_automata): Print message about creation of
1857 each automaton.
1858 (generate): Remove printing meease about creation of
1859 automata.
1860
1861 2001-09-05 David S. Miller <davem@redhat.com>
1862
1863 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1864 * config/sparc/linux64.h: Likewise.
1865
1866 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
1867
1868 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1869 schedule_block, sched_init, sched_finish): Add missed calls of
1870 use_dfa_pipeline_interface.
1871
1872 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1873 Ditto.
1874
1875 * sched-vis.c (get_visual_tbl_length): Ditto.
1876
1877 2001-08-27 Richard Henderson <rth@redhat.com>
1878
1879 * genattr.c (main): Emit state_t even when not doing scheduling.
1880
1881 2001-08-27 Richard Henderson <rth@redhat.com>
1882
1883 * genautomata.c (expand_automata): Always create a description.
1884
1885 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
1886
1887 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1888 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1889 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1890 RTL constructions.
1891
1892 * genattr.c (main): New variable num_insn_reservations. Increase
1893 it if there is DEFINE_INSN_RESERVATION. Output automaton based
1894 pipeline hazard recognizer interface.
1895
1896 * genattrtab.h: New file.
1897
1898 * genattrtab.c: Include genattrtab.h.
1899 (attr_printf, check_attr_test, make_internal_attr,
1900 make_numeric_value): Move protypes into genattrtab.h. Define them
1901 as external.
1902 (num_dfa_decls): New global variable.
1903 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1904 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1905 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1906 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
1907
1908 * genautomata.c: New file.
1909
1910 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1911
1912 * sched-int.h: (curr_state): Add the external definition for
1913 automaton pipeline interface.
1914 (haifa_insn_data): Add comments for members blockage and units.
1915
1916 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1917 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1918 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1919 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1920 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1921 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1922 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1923 macros.
1924 (TARGET_SCHED): Use the new macros.
1925
1926 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1927 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1928 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1929 dfa_bubble): New members in gcc_target.sched.
1930
1931 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1932 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1933 (insn_queue): Redefine it as pointer to array.
1934 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1935 INSN_QUEUE_SIZE.
1936 (max_insn_queue_index_macro_value): New variable.
1937 (curr_state, dfa_state_size, ready_try): New varaibles for
1938 automaton interface.
1939 (ready_element, ready_remove, max_issue): New function prototypes
1940 for automaton interface.
1941 (choose_ready): New function prototype.
1942 (insn_unit, blockage_range): Add comments.
1943 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1944 FUNCTION_UNITS_SIZE == 0.
1945 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1946 actual_hazard, potential_hazard): Add comments.
1947 (insn_cost): Use cost -1 as undefined value. Remove
1948 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
1949 pipeline interface.
1950 (ready_element, ready_remove): New functions for automaton
1951 interface.
1952 (schedule_insn): Add new code for automaton pipeline interface.
1953 (queue_to_ready): Add new code for automaton pipeline interface.
1954 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1955 (debug_ready_list): Print newline when the queue is empty.
1956 (max_issue): New function for automaton pipeline interface.
1957 (choose_ready): New function.
1958 (schedule_block): Add new code for automaton pipeline interface.
1959 Print ready list before scheduling each insn.
1960 (sched_init): Add new code for automaton pipeline interface.
1961 Initiate insn cost by -1.
1962 (sched_finish): Free the current automaton state and finalize
1963 automaton pipeline interface.
1964
1965 * sched-rgn.c: Include target.h.
1966 (init_ready_list, new_ready, debug_dependencies): Add new code for
1967 automaton pipeline interface.
1968
1969 * sched-vis.c: Include target.h.
1970 (get_visual_tbl_length): Add code for automaton interface.
1971 (target_units, print_block_visualization): Add comments.
1972
1973 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1974 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1975 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1976 (getruntime.o, genautomata.o): New entries.
1977 (genattrtab.o): Add new dependency file genattrtab.h.
1978 (genattrtab): Add new dependencies. Link it with `libm.a'.
1979 (getruntime.o, hashtab.o): New entries for canadian cross.
1980
1981 * doc/md.texi: Description of automaton based model.
1982
1983 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1984 Add comments.
1985 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1986 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1987 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1988 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1989 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1990 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1991 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1992 hook descriptions.
1993 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1994 MAX_DFA_ISSUE_RATE): New macro descriptions.
1995
1996 * doc/contrib.texi: Add dfa based scheduler contribution.
1997
1998 * doc/gcc.texi: Add more information about genattrtab.
1999
2000 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001
2002 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2003 adjust_address_nv call.
2004
2005 2002-04-29 Janis Johnson <janis187@us.ibm.com>
2006
2007 * doc/install.texi (Testing): Provide additional information, and
2008 a stronger encouragement, for running the testsuites.
2009
2010 2002-04-29 DJ Delorie <dj@redhat.com>
2011
2012 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2013 given in upper case.
2014
2015 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2016
2017 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2018 Solaris 2 <widec.h> if missing.
2019 * fixinc/fixincl.x: Regenerate.
2020 * fixinc/tests/base/widec.h: New file.
2021
2022 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
2023
2024 * toplev.c (f_options): Add "profile" switch so that
2025 -fno-profile can be used to disable -p.
2026
2027 2002-04-29 Bernd Schmidt <bernds@redhat.com>
2028
2029 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2030 UV2DImode.
2031 * tree.c (build_common_tree_nodes_2): Likewise.
2032 * tree.h (enum tree_index): Likewise.
2033 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2034
2035 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2036 entries.
2037 (init_mmx_sse_builtins): Initialize SSE2 builtins.
2038 (ix86_expand_builtin): Add support for SSE2 builtins.
2039 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2040 (VALID_SSE_REG_MODE): Use it.
2041 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2042 (enum ix86_builtins): Add SSE2 builtins.
2043 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2044 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2045 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2046 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2047 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2048 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2049 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2050 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2051 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2052 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2053 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2054 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2055 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2056 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2057 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2058 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2059 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2060 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2061 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2062 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2063 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2064 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2065 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2066 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2067 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2068 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2069 lfence_insn): New patterns.
2070 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2071 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2072
2073 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
2074
2075 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2076
2077 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2078
2079 * doc/contrib.texi (Contributors): Add Paolo Carlini and
2080 Janis Johnson.
2081 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2082 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2083 and CPU instead of cpu.
2084
2085 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
2086
2087 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2088 variables.
2089 (lang_independent_options): Add -fif-conversion, -fif-conversion2
2090 (rest_of_compilation): Do if conversion only when asked for.
2091 (parse_options_and_default_flags): Set new variables to 1 for -O1
2092 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2093
2094 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
2095
2096 * i386.c (dbx64_register_map): Fix typo.
2097
2098 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
2099
2100 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2101 real_one_half, real_bb_freq_max): New static variables.
2102 (debug_profile_bbauxs): Kill.
2103 (process_note_predictions): Kill unused variable.
2104 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2105 volatile double.
2106 (propagate_freq): Use REAL_ARITHMETICS.
2107 (estimate_bb_frequencies): Likevise; init new static variables.
2108 * Makefile.in (predict.o): Add dependency on real.h
2109
2110 2002-04-28 David S. Miller <davem@redhat.com>
2111
2112 PR target/6500
2113 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2114 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
2115 several {reads,writes} instead.
2116 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2117 Define.
2118
2119 2002-04-27 David S. Miller <davem@redhat.com>
2120
2121 PR target/6494
2122 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2123 of the stack bias.
2124
2125 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2126 including signal.h and sys/ucontext.h, not needed.
2127
2128 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
2129
2130 * varasm.c (output_constant_def): Correct test for not calling
2131 ENCODE_SECTION_INFO for INTEGER_CST.
2132
2133 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
2134
2135 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2136 keep most cases as function eval_token.
2137 (eval_token): New function.
2138 (_cpp_parse_expr): Read token here for improved diagnostics.
2139 Don't use op_as_text. Detect bad ':' here.
2140 (reduce): Don't detect bad ':' here.
2141 (op_as_text): Remove.
2142 * cpphash.h (_cpp_test_assertion): Change prototype.
2143 * cpplib.c (_cpp_test_assertion): Change prototype.
2144
2145 2002-04-28 Richard Henderson <rth@redhat.com>
2146
2147 PR c/5154
2148 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2149 (ggc_mark_rtx_children): New.
2150
2151 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2152
2153 PR target/6496
2154 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2155 after call peepholes for UltraSPARC.
2156 (call + jump 64-bit peepholes): Remove.
2157
2158 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2159
2160 PR c/6497
2161 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2162 result as temporary value.
2163
2164 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2165
2166 PR c++/6396
2167 * toplev.c (rest_of_compilation): Only run regrename and copy
2168 propagation if optimizing.
2169
2170 2002-04-28 Jakub Jelinek <jakub@redhat.com>
2171
2172 PR optimization/6475
2173 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2174 register of REGNO_DECL (i).
2175 * Makefile.in (reload1.o): Add $(TREE_H).
2176
2177 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
2178
2179 * cppexp.c (lex): Update to use state.skip_eval.
2180 (struct op): Remove prio and flags members.
2181 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
2182 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
2183 (LEFT_ASSOC): New macro.
2184 (optab): New table of operator priorities and flags.
2185 (SHIFT): Update.
2186 (_cpp_parse_expr): Clean up logic. Return bool. Use a
2187 malloc-ed parser stack.
2188 (reduce): New; reduce the operator stack.
2189 (_cpp_expand_op_stack): Expand the operator stack as necessary.
2190 * cpphash.h (struct op): Predeclare.
2191 (struct cpp_reader): New members op_stack, op_limit.
2192 (struct lexer_state): New member skip_eval.
2193 (_cpp_parse_expr): Update.
2194 (_cpp_expand_op_stack): New.
2195 * cpplib.c (do_if): Update.
2196 * cppinit.c (cpp_create_reader): Create op stack.
2197 (cpp_destroy): And destroy it.
2198 * cpplib.h (CPP_LAST_CPP_OP): Correct.
2199 (TTYPE_TABLE): Correct.
2200
2201 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2202
2203 PR c/6343
2204 * c-decl.c (duplicate_decls): Call merge_weak.
2205 * c-pragma.c (apply_pragma_weak): Warn about misuse.
2206 * output.h (merge_weak): Prototype merge_weak.
2207 * varasm.c (merge_weak): New function.
2208 (declare_weak): Make sure we don't give an error on VAR_DECLs.
2209 Mark RTL with SYMBOL_REF_WEAK.
2210
2211 2002-04-27 Kurt Garloff <garloff@suse.de>
2212
2213 * tree-inline.c (inlinable_function_p): Improve heuristics
2214 by using a smoother function to cut down allowable inlinable size.
2215 * param.def: Add parameters max-inline-insns-single,
2216 max-inline-slope, min-inline-insns that determine the exact
2217 shape of the above function.
2218 * param.h: Likewise.
2219
2220 2002-04-26 Richard Henderson <rth@redhat.com>
2221
2222 * c-parse.in (malloced_yyss, malloced_yyvs): New.
2223 (yyoverflow): Re-add. Set them.
2224 (free_parser_stacks): New.
2225 * c-common.h: Declare it.
2226 * c-lex.c (c_common_parse_file): Call it.
2227
2228 2002-04-26 Richard Henderson <rth@redhat.com>
2229
2230 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
2231 for fallthru search.
2232
2233 2002-04-26 Eric Christopher <echristo@redhat.com>
2234
2235 PR optimization/3700
2236 * config/mips/mips.c (mips_issue_rate): Define. New function.
2237 (TARGET_SCHED_ISSUE_RATE): Use.
2238
2239 2002-04-25 David S. Miller <davem@redhat.com>
2240
2241 PR target/6422
2242 * reorg.c (optimize_skip): Do not allow exception causing
2243 instructions to be considered for delay slots.
2244 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2245 (relax_delay_slots): Do not try to consider exception causing
2246 instructions as redundant.
2247
2248 2002-04-26 Richard Henderson <rth@redhat.com>
2249
2250 PR c/5225
2251 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
2252
2253 2002-04-26 Mark Mitchell <mark@codesourcery.com>
2254
2255 PR bootstrap/6445
2256 * config/i386/i386.md (untyped_call): Return the value in a float
2257 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2258 TARGET_80387.
2259
2260 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
2261
2262 * tree.c (tree_int_cst_lt): Compare constants whose types differ
2263 in unsigned-ness correctly.
2264
2265 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2266
2267 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2268 portable runtime model.
2269
2270 2002-04-26 Richard Henderson <rth@redhat.com>
2271
2272 * c-parse.in (yyoverflow): Revert.
2273
2274 2002-04-26 David Edelsohn <edelsohn@gnu.org>
2275 Richard Henderson <rth@redhat.com>
2276
2277 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2278 result as temporary value.
2279
2280 2002-04-26 Richard Henderson <rth@redhat.com>
2281
2282 PR c/3581
2283 * c-common.c (fix_string_type): Split out of ...
2284 (combine_strings): ... here. Take a varray, not a tree list.
2285 (c_expand_builtin_printf): Use fix_string_type.
2286 * c-common.h: Update decls.
2287 * c-parse.in (string): Remove. Update all uses to use STRING
2288 instead, and not call combine_strings.
2289 (yylexstring): New.
2290 (_yylex): Use it.
2291 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
2292 (build_asm_stmt): Likewise.
2293 * objc/objc-act.c (my_build_string): Use fix_string_type.
2294 (build_objc_string_object): Build varray for combine_strings.
2295
2296 2002-04-26 Bo Thorsen <bo@suse.co.uk>
2297
2298 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2299 x86-64.
2300
2301 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
2302
2303 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
2304 (HAVE_NO_R_OPERAND): Remove.
2305 (HAVE_VALUE): Remove.
2306 (op_to_prio): Update.
2307 (UNARY): Don't alter flags.
2308 (_cpp_parse_expr): want_value used to indicate whether
2309 a number or unary operator is expected next. Distinguish
2310 unary and binary +/-.
2311 (op_as_text): Update for unary operators.
2312
2313 2002-04-25 Richard Henderson <rth@redhat.com>
2314
2315 PR c/2161
2316 * c-parse.in (yyoverflow): New.
2317
2318 2002-04-25 Richard Henderson <rth@redhat.com>
2319
2320 PR c/2098
2321 * c-common.c (shorten_compare): Simplfy conditions leading to
2322 the generation of a warning.
2323
2324 2002-04-25 Richard Henderson <rth@redhat.com>
2325
2326 PR c/2035
2327 * expmed.c (extract_bit_field): Fall through to generic code rather
2328 than aborting on subreg special case.
2329
2330 2002-04-25 David S. Miller <davem@redhat.com>
2331
2332 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2333 for DECL being NULL.
2334
2335 2002-04-25 Steve Christiansen <smc@us.ibm.com>
2336
2337 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
2338
2339 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
2340
2341 * c-decl.c (grokdeclarator): Remove outdated ??? note
2342 on invalid declaration of flexible array members.
2343
2344 2002-04-25 Richard Henderson <rth@redhat.com>
2345
2346 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2347
2348 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
2349
2350 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2351 needed by the compiler, even if they are used as global regs.
2352
2353 2002-04-25 Matt Hiller <hiller@redhat.com>
2354
2355 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
2356 functions.
2357 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
2358 of the corresponding functions.
2359 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
2360 New prototypes.
2361
2362 2002-04-25 Matt Hiller <hiller@redhat.com>
2363
2364 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
2365
2366 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
2367 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
2368 registers, adjust comment accordingly.
2369 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2370 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
2371 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
2372 for coprocessor registers.
2373 (ADDITIONAL_REGISTER_NAMES): Include
2374 ALL_COP_ADDITIONAL_REGISTER_NAMES.
2375
2376 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
2377 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
2378 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
2379 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
2380 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
2381
2382 (mips_char_to_class): Adjust comment to include coprocessor
2383 constraint letters.
2384
2385 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
2386 New functions.
2387 (mips_reg_names, mips_regno_to_class): Include coprocessor
2388 information.
2389 (mips_sw_reg_names): Ditto, make non-static.
2390 (mips_move_1word): Handle moves to and from coprocessor registers.
2391 (mips_move_2words): Handle moves to and from coprocessor
2392 registers.
2393 (mips_class_max_nregs, mips_register_move_cost): Handle
2394 coprocessor register classes.
2395 (override_options): Initialize mips_char_to_class and
2396 mips_hard_regno_mode_ok properly for coprocessor registers.
2397
2398 * config/mips/mips.md (movdi_internal, movdi_internal2,
2399 movsi_internal1, movsi_internal2): Add constraint-sets for
2400 coprocessor registers.
2401 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
2402 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
2403 isn't mips.
2404 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
2405 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
2406 isn't mips.
2407 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
2408 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
2409 isn't mips.
2410 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
2411 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
2412 isn't mips.
2413
2414 * doc/tm.texi: Document feature.
2415
2416 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2417
2418 * integrate.c (function_attribute_inlinable_p): Simplify.
2419 Check the table pointer is not NULL.
2420
2421 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
2422
2423 * doc/c-tree.texi: Fix typo in introduction.
2424
2425 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
2426
2427 * c-common.h (c_common_parse_file): Update.
2428 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2429 * c-lex.c (YYDEBUG): Get from c-lex.h.
2430 (c_common_parse_file): Update.
2431 * c-lex.h (YYDEBUG, yydebug): New.
2432 * c-parse.in (YYDEBUG): Get from c-lex.h.
2433 (c_set_yydebug): Remove.
2434 * c-tree.h (c_set_yydebug): Remove.
2435 * langhooks-def.h (lhd_do_nothing_i): New.
2436 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
2437 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
2438 * langhooks.c (lhd_do_nothing_i): New.
2439 (lhd_set_yydebug): Remove.
2440 * langhooks.h (struct lang_hooks): Update.
2441 * toplev.c (set_yydebug): New.
2442 (compile_file): Update call to parse_file hook.
2443 (decode_d_option): Update.
2444 objc:
2445 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
2446
2447 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
2448
2449 * loop.c (load_mems): Don't change the interface of called functions.
2450
2451 * calls.c (expand_call): Take current_function_pretend_args_size
2452 into account when setting argblock for sibcalls.
2453
2454 2002-04-24 Matt Hiller <hiller@redhat.com>
2455
2456 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
2457 * c-lex.c: Ditto.
2458
2459 * cpplex.c (skip_line_comment): Process comment one multibyte
2460 character at a time rather than one char at a time, if
2461 appropriate.
2462 (parse_string): Process string one multibyte character at a time
2463 rather than one char at a time, if appropriate.
2464 * c-lex.c (lex_string): Lex and copy multibyte strings
2465 appropriately.
2466 * cpplib.h (cppchar_t): Change to unsigned.
2467
2468 2002-04-24 Richard Henderson <rth@redhat.com>
2469
2470 PR c/3467
2471 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
2472 for c99.
2473
2474 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
2475
2476 * sh.c (sh_va_arg): If argument was passed by reference,
2477 dereference the pointer.
2478
2479 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2480
2481 * sh.md (divsi3_i4_media): Use match_operand for input values
2482 rather than hard registers.
2483 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2484 unnecessarily through hard registers. Keep copies of pseudo
2485 registers outside of the libcall sequence.
2486
2487 * sh.md (casesi_shift_media): Add modes.
2488
2489 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
2490 values in memory.
2491
2492 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
2493
2494 * attribs.c (c_common_attribute_table): Move table and handlers
2495 to c-common.c.
2496 (format_attribute_table, lang_attribute_table,
2497 lang_attribute_common): Remove.
2498 (init_attributes): Replace NULL pointers with pointers to the
2499 empty table.
2500 (handle_packed_attribute, handle_nocommon_attribute,
2501 handle_common_attribute, handle_noreturn_attribute,
2502 handle_noinline_attribute, handle_always_inline_attribute,
2503 handle_used_attribute, handle_unused_attribute,
2504 handle_const_attribute, handle_transparent_union_attribute,
2505 handle_constructor_attribute, handle_destructor_attribute,
2506 handle_mode_attribute, handle_section_attribute,
2507 handle_aligned_attribute, handle_weak_attribute,
2508 handle_alias_attribute, handle_visibility_attribute,
2509 handle_no_instrument_function_attribute, handle_malloc_attribute,
2510 handle_no_limit_stack_attribute, handle_pure_attribute,
2511 handle_deprecated_attribute, handle_vector_size_attribute,
2512 vector_size_helper): Move to c-common.c.
2513 * c-common.c (c_common_attribute_table,
2514 handle_packed_attribute, handle_nocommon_attribute,
2515 handle_common_attribute, handle_noreturn_attribute,
2516 handle_noinline_attribute, handle_always_inline_attribute,
2517 handle_used_attribute, handle_unused_attribute,
2518 handle_const_attribute, handle_transparent_union_attribute,
2519 handle_constructor_attribute, handle_destructor_attribute,
2520 handle_mode_attribute, handle_section_attribute,
2521 handle_aligned_attribute, handle_weak_attribute,
2522 handle_alias_attribute, handle_visibility_attribute,
2523 handle_no_instrument_function_attribute, handle_malloc_attribute,
2524 handle_no_limit_stack_attribute, handle_pure_attribute,
2525 handle_deprecated_attribute, handle_vector_size_attribute,
2526 vector_size_helper): Move from attribs.c.
2527 * c-common.h (c_common_attribute_table,
2528 c_common_format_attribute_table): New.
2529 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2530 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2531 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2532 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
2533 (LANG_HOOKS_INITIALIZER): Update.
2534 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
2535 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
2536 * target.h: Update comment.
2537 * tree.c (default_target_attribute_table): Remove.
2538 * tree.h (default_target_attribute_table, format_attribute_table,
2539 lang_attribute_table, lang_attribute_common): Remove.
2540 objc:
2541 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
2542 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
2543
2544 2002-04-24 Jason Merrill <jason@redhat.com>
2545
2546 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2547 * dwarf2out.c (dwarf_attr_name): Support it.
2548 (gen_array_type_die): Emit it.
2549 (lookup_type_die): No special handling for VECTOR_TYPE.
2550 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2551
2552 2002-04-24 Richard Henderson <rth@redhat.com>
2553
2554 * config/mips/mips.md (movdi_usd): Renumber.
2555
2556 2002-04-24 David S. Miller <davem@redhat.com>
2557
2558 PR target/6420
2559 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2560 32-bit Sparc and current_function_returns_struct is true.
2561
2562 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2563
2564 * loop.c (canonicalize_condition): Use gen_int_mode.
2565
2566 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
2567
2568 * config/rs6000/altivec.h: Cleanup file. Add non individual
2569 variants.
2570 (vec_vaddubm): New.
2571 (vec_vadduhm): New.
2572 (vec_vadduwm): New.
2573 (vec_vaddfp): New.
2574 (vec_vaddcuw): New.
2575 (vec_vaddubs): New.
2576 (vec_vaddsbs): New.
2577 (vec_vadduhs): New.
2578 (vec_vadduws): New.
2579 (vec_vaddsws): New.
2580 (vec_vand): New.
2581 (vec_vandc): New.
2582 (vec_vavgub): New.
2583 (vec_vavgsb): New.
2584 (vec_vavguh): New.
2585 (vec_vavgsh): New.
2586 (vec_vavguw): New.
2587 (vec_vavgsw): New.
2588 (vec_vrfip): New.
2589 (vec_vcmpbfp): New.
2590 (vec_vcmpequb): New.
2591 (vec_vcmpequh): New.
2592 (vec_vcmpequw): New.
2593 (vec_vcmpeqfp): New.
2594 (vec_vcmpgefp): New.
2595 (vec_vcmpgtub): New.
2596 (vec_vcmpgtsb): New.
2597 (vec_vcmpgtuh): New.
2598 (vec_vcmpgtsh): New.
2599 (vec_vcmpgtuw): New.
2600 (vec_vcmpgtsw): New.
2601 (vec_vcmpgtfp): New.
2602 (vec_vcmpgefp): New.
2603 (vec_vcfux): New.
2604 (vec_vcfsx): New.
2605 (vec_vctsxs): New.
2606 (vec_vctuxs): New.
2607 (vec_vexptefp): New.
2608 (vec_vrfim): New.
2609 (vec_lvx): New.
2610 (vec_lvebx): New.
2611 (vec_lvehx): New.
2612 (vec_lde): Add vector float variant.
2613 (vec_lvewx): New.
2614 (vec_lvxl): New.
2615 (vec_vlogefp): New.
2616 (vec_vmaddfp): New.
2617 (vec_vmhaddshs): New.
2618 (vec_vmaxub): New.
2619 (vec_vmaxsb): New.
2620 (vec_vmaxuh): New.
2621 (vec_vmaxsh): New.
2622 (vec_vmaxuw): New.
2623 (vec_vmaxsw): New.
2624 (vec_vmaxsw): New.
2625 (vec_vmaxfp): New.
2626 (vec_vmrghb): New.
2627 (vec_vmrghh): New.
2628 (vec_vmrghw): New.
2629 (vec_vmrglb): New.
2630 (vec_vmrglh): New.
2631 (vec_vmrglw): New.
2632 (vec_vminub): New.
2633 (vec_vminsb): New.
2634 (vec_vminuh): New.
2635 (vec_vminsh): New.
2636 (vec_vminuw): New.
2637 (vec_vminsw): New.
2638 (vec_vminfp): New.
2639 (vec_vmladduhm): New.
2640 (vec_vmhraddshs): New.
2641 (vec_msumubm): New.
2642 (vec_vmsummbm): New.
2643 (vec_vmsumuhm): New.
2644 (vec_vmsumshm): New.
2645 (vec_vmsumuhs): New.
2646 (vec_vmsumshs): New.
2647 (vec_vmuleub): New.
2648 (vec_vmulesb): New.
2649 (vec_vmuleuh): New.
2650 (vec_vmulesh): New.
2651 (vec_vmuloub): New.
2652 (vec_mulosb): New.
2653 (vec_vmulouh): New.
2654 (vec_vmulosh): New.
2655 (vec_vnmsubfp): New.
2656 (vec_vnor): New.
2657 (vec_vor): New.
2658 (vec_vpkuhum): New.
2659 (vec_vpkuwum): New.
2660 (vec_vpkpx): New.
2661 (vec_vpkuhus): New.
2662 (vec_vpkshss): New.
2663 (vec_vpkuwus): New.
2664 (vec_vpkswss): New.
2665 (vec_vpkshus): New.
2666 (vec_vpkswus): New.
2667 (vec_vperm): New.
2668 (vec_vrefp): New.
2669 (vec_vrlb): New.
2670 (vec_vrlh): New.
2671 (vec_vrlw): New.
2672 (vec_vrfin): New.
2673 (vec_vrsqrtefp): New.
2674 (vec_vsel): New.
2675 (vec_vslb): New.
2676 (vec_vslh): New.
2677 (vec_vslw): New.
2678 (vec_vsldoi): New.
2679 (vec_vsl): New.
2680 (vec_vslo): New.
2681 (vec_vspltb): New.
2682 (vec_vsplth): New.
2683 (vec_vspltw): New.
2684 (vec_vspltisb): New.
2685 (vec_vspltish): New.
2686 (vec_vspltisw): New.
2687 (vec_vsrb): New.
2688 (vec_vsrh): New.
2689 (vec_vsrw): New.
2690 (vec_vsrab): New.
2691 (vec_vsrah): New.
2692 (vec_vsraw): New.
2693 (vec_vsr): New.
2694 (vec_vsro): New.
2695 (vec_stvx): New.
2696 (vec_stvebx): New.
2697 (vec_stvehx): New.
2698 (vec_stvewx): New.
2699 (vec_stvxl): New.
2700 (vec_vsububm): New.
2701 (vec_vsubuhm): New.
2702 (vec_vsubuwm): New.
2703 (vec_vsubfp): New.
2704 (vec_vsubcuw): New.
2705 (vec_vsububs): New.
2706 (vec_vsubsbs): New.
2707 (vec_vsubuhs): New.
2708 (vec_vsubshs): New.
2709 (vec_vsubuws): New.
2710 (vec_vsubsws): New.
2711 (vec_vsum4ubs): New.
2712 (vec_vsum4sbs): New.
2713 (vec_vsum4shs): New.
2714 (vec_vsum2sws): New.
2715 (vec_vsumsws): New.
2716 (vec_vrfiz): New.
2717 (vec_vupkhsb): New.
2718 (vec_vupkhpx): New.
2719 (vec_vupkhsh): New.
2720 (vec_vupklsb): New.
2721 (vec_vupklpx): New.
2722 (vec_vupklsh): New.
2723 (vec_vxor): New.
2724
2725 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
2726
2727 PR c/5430
2728 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2729 added literals from substracted literals.
2730 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2731 (fold) [associate]: Preserve MINUS_EXPR if needed.
2732
2733 2002-04-23 Zack Weinberg <zack@codesourcery.com>
2734
2735 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2736 are obsoleted.
2737
2738 2002-04-23 Tom Tromey <tromey@redhat.com>
2739
2740 * gcc.c: Added --resource. For PR java/6314.
2741
2742 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2743
2744 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2745 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2746 these libraries.
2747
2748 2002-04-23 David O'Brien <obrien@FreeBSD.org>
2749
2750 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2751
2752 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
2753
2754 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
2755 workaround.
2756 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
2757 (ix86_expand_clrstr): Fix typo.
2758 * loop.c (gen_load_of_final_value): New.
2759 (loop_givs_rescan, strength_reduce, check_dbra_loop):
2760 Use it.
2761
2762 2002-04-23 Roger Sayle <roger@eyesopen.com>
2763
2764 * builtins.c (builtin_memset_gen_str): New function.
2765 (expand_builtin_memset): Optimize the case of constant length, but
2766 unknown value.
2767
2768 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
2769
2770 * config/rs6000/altivec.h (vec_step): Remove extraneous
2771 parentheses.
2772 (vec_ctu): Cast return.
2773
2774 2002-04-23 Alan Modra <amodra@bigpond.net.au>
2775
2776 PR target/6413
2777 * function.h: (struct function): Add profile_label_no field.
2778 (current_function_profile_label_no): Define.
2779 * function.c: (profile_label_no): New static var.
2780 (expand_function_start): Increment it, and copy to
2781 current_function_profile_label_no.
2782 * output.h (profile_label_no): Delete.
2783 * final.c (profile_label_no): Delete.
2784 (profile_function): Use current_function_profile_label_no.
2785 (final_end_function): Don't increment profile_label_no here.
2786 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2787 profile_label_no with current_function_profile_label_no.
2788 * config/pa/pa.c (current_function_number): Delete.
2789 (pa_output_function_prologue): Don't output profile label here.
2790 (hppa_profile_hook): Use label_no param rather than
2791 current_function_number.
2792 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2793 * config/pa/pa.h: .. here.
2794 (FUNCTION_PROFILER): Output profile label here.
2795
2796 2002-04-22 Eric Christopher <echristo@redhat.com>
2797
2798 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
2799 patch of 2002-04-09 due to binutils issues.
2800 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
2801
2802 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2803
2804 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2805 constraint to 'o' for m=r and r=m alternatives.
2806 ("*movv8hi_internal1"): Same.
2807 ("*movv16qi_internal1"): Same.
2808 ("*movv4sf_internal1"): Same.
2809
2810 2002-04-22 Janis Johnson <janis187@us.ibm.com>
2811
2812 * rtl.h (RTX_FLAG): New macro.
2813 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
2814 * final.c (alter_subreg): Use macro to access rtx flag.
2815 * integrate.c (copy_rtx_and_substitute): Use new access macro.
2816 * print-rtl.c (print_rtx): Use new access macro.
2817
2818 * cse.c (insert): Check rtx code before accessing flag.
2819
2820 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
2821 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
2822 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
2823 convert_const_symbol_ref, make_canonical, make_alternative_compare,
2824 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
2825 simplify_test_exp, optimize_attrs, simplify_by_exploding,
2826 find_and_mark_used_attributes, unmark_used_attributes,
2827 add_values_to_cover, simplify_with_current_value,
2828 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
2829 copy_rtx_unchanging, main): Use new access macros.
2830
2831 2002-04-22 Tom Rix <trix@redhat.com>
2832
2833 * expmed.c (init_expmed): Generate shifted constant once.
2834
2835 2002-04-22 Zack Weinberg <zack@codesourcery.com>
2836
2837 * c-lex.c (lex_charconst): Call convert to get constant in
2838 proper type; don't just smash the type field.
2839 Fixes PR c/6300.
2840
2841 * config.gcc: Add list of obsolete configurations. Disallow
2842 building these without --enable-obsolete.
2843 * doc/install.texi: Document --enable-obsolete and obsoletion
2844 policy. Mention obsoletion of individual targets in
2845 appropriate places.
2846
2847 2002-04-22 Richard Henderson <rth@redhat.com>
2848
2849 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2850
2851 2002-04-22 Mark Mitchell <mark@codesourcery.com>
2852
2853 PR f/6138.
2854 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2855 (walk_fixup_memory_subreg): Likewise.
2856 (fixup_var_refs_insn): Adjust accordingly.
2857 (fixup_var_refs_1): Likewise.
2858
2859 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
2860
2861 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2862 LIBPATH_ARCH64_SPEC): Define.
2863 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2864 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2865 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2866 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2867
2868 2002-04-22 Joel Sherrill <joel@OARcorp.com>
2869
2870 * gthr-rtems.h: Correct prototypes to remove warnings.
2871
2872 2002-04-22 Richard Henderson <rth@redhat.com>
2873
2874 PR c/6344
2875 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2876
2877 * gcse.c (free_insn_expr_list_list): New.
2878 (clear_modify_mem_tables): Use it. Fix bit set usage.
2879 (canon_list_insert): Use EXPR_LISTs for expressions.
2880 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2881
2882 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
2883
2884 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
2885 file change and include code to _cpp_pop_buffer.
2886 * cpphash.h (struct pending_option): Predeclare.
2887 (struct cpp_reader): New member next_include_file.
2888 (_cpp_pop_file_buffer): Update.
2889 (_cpp_push_next_buffer): Update, rename.
2890 * cppinit.c (cpp_destroy): Free include chain and pending here.
2891 (cpp_finish_options): Simplify.
2892 (_cpp_push_next_buffer): Rename and clean up.
2893 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2894 Clarify.
2895 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2896
2897 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
2898
2899 * config/rs6000/altivec.h (vec_xor): Add variant for both args
2900 being vector signed int.
2901 (vec_andc): Same.
2902 (vec_xor): Add variant for both args being vector signed char.
2903 Remove redundant variant.
2904 (vec_andc): Same.
2905
2906 2002-04-21 David S. Miller <davem@redhat.com>
2907
2908 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2909 compare mode in output RTL.
2910
2911 2002-04-22 David Edelsohn <edelsohn@gnu.org>
2912
2913 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2914 style and formatting of previous patch.
2915
2916 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2917
2918 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2919 flag_pic for ABI_AIX.
2920
2921 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2922
2923 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2924 * cppfiles.c (read_include_file): Similarly.
2925 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2926 uxstrdup ustrchr, ufputs): Similarly.
2927 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2928 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2929 cpp_ideq, parse_identifier, parse_number): Similarly.
2930 * cpplib.c (struct directive, dequote_string, D, run_directive,
2931 cpp_push_buffer): Similarly.
2932 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2933 _cpp_create_definition, check_trad_stringification,
2934 cpp_macro_definition): Similarly.
2935
2936 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2937
2938 * cppmacro.c (funlike_invocation_p): Don't step back
2939 over CPP_EOF.
2940
2941 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2942
2943 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2944 labelno.
2945
2946 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
2947
2948 * doc/invoke.texi: Remove Chill references.
2949 * doc/gcc.texi: Update last modified date.
2950
2951 2002-04-20 Kazu Hirata <kazu@hxi.com>
2952
2953 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2954 push and pop. Replace add.l with add.w.
2955
2956 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2957
2958 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2959 multiply instructions for H8/300H case.
2960
2961 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2962
2963 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2964 Bum three instructions from each routine.
2965
2966 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
2967
2968 * Makefile.in: Update.
2969 * decl.c (push_c_function_context, pop_c_function_context,
2970 mark_c_function_context): Rename for consistency.
2971 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2972 * c-tree.h (push_c_function_context, pop_c_function_context,
2973 mark_c_function_context): Rename for consistency.
2974 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2975 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2976 * function.c (init_lang_status, save_lang_status,
2977 restore_lang_status, mark_lang_status, free_lang_status):
2978 Move to langhooks.h.
2979 (push_function_context_to, pop_function_context_from,
2980 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2981 Update.
2982 * function.h (init_lang_status, save_lang_status,
2983 restore_lang_status, mark_lang_status, free_lang_status):
2984 Move to langhooks.h.
2985 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2986 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2987 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2988 LANG_HOOKS_FUNCTION_INITIALIZER): New.
2989 (LANG_HOOKS_INITIALIZER): Update.
2990 (lhd_do_nothing_f): New.
2991 * langhooks.h (struct lang_hooks_for_functions): New.
2992 (struct lang_hooks): New hooks.
2993 * langhooks.c (lhd_do_nothing_f): New.
2994 objc:
2995 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2996 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2997
2998 2002-04-19 David S. Miller <davem@redhat.com>
2999
3000 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3001 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3002
3003 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3004
3005 PR optimization/3756
3006 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3007 x = ((int) y < 0) ? cst1 : cst2.
3008
3009 2002-04-19 Jakub Jelinek <jakub@redhat.com>
3010
3011 PR c/6358
3012 * function.c: Reapply patch for c/6358.
3013 (expand_function_end): Copy decl_rtl's mode, not
3014 current_function_return_rtx mode.
3015
3016 2002-04-19 Joel Sherrill <joel@OARcorp.com>
3017
3018 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3019 targets.
3020
3021 2002-04-19 Tom Tromey <tromey@redhat.com>
3022
3023 * doc/install.texi (Specific): Update status of Solaris 2.8.
3024 For PR libgcj/6158.
3025
3026 2002-04-19 Andreas Schwab <schwab@suse.de>
3027
3028 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3029 (PUT_REAL): Restore old definition.
3030
3031 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3032 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3033
3034 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3035 binutils 2.11.2 and higher generate smaller binaries than Sun's
3036 native tools.
3037
3038 2002-04-19 Mark Mitchell <mark@codesourcery.com>
3039
3040 PR c++/6352
3041 * toplev.c (rest_of_compilation): Do not defer functions for which
3042 TREE_SYMBOL_REFERENCED has already been set.
3043
3044 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
3045
3046 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3047 alternative.
3048
3049 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
3050
3051 * builtins.c: Include langhooks.h.
3052 (lang_type_promotes_to): Remove.
3053 (expand_builtin_va_arg): Use new hook.
3054 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3055 (simple_type_promotes_to): Move to c-typeck.c.
3056 * c-common.h (simple_type_promotes_to): Remove.
3057 * c-decl.c (duplicate_decls, grokdeclarator): Update.
3058 * c-format.c: Include langhooks.h.
3059 (check_format_types): Update.
3060 * c-tree.h (c_type_promotes_to): New.
3061 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3062 (type_lists_compatible_p): Update.
3063 * langhooks-def.h (lhd_type_promotes_to): New.
3064 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3065 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3066 * langhooks.c (lhd_type_promotes_to): New.
3067 * langhooks.h (struct lang_hooks_for_types): New hook.
3068 * tree.h (lang_type_promotes_to): Remove.
3069 objc:
3070 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3071
3072 2002-04-18 Richard Henderson <rth@redhat.com>
3073
3074 * function.c: Revert patch for c/6358.
3075
3076 2002-04-18 Richard Henderson <rth@redhat.com>
3077
3078 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3079 blocks. Handle multiple references to the TRAP block. Handle
3080 non-adjacent THEN and OTHER blocks.
3081
3082 2002-04-18 Richard Henderson <rth@redhat.com>
3083
3084 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3085 crash with no type for by-mode libcalls.
3086
3087 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3088
3089 2002-04-18 Bob Wilson <bob.wilson@acm.org>
3090
3091 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3092 __xtensa_nonlocal_goto): Use a syscall instructions to flush
3093 the register windows.
3094
3095 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3096
3097 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3098 appropriate. Document need for extended precision even when
3099 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
3100 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
3101 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
3102 instead of relying on later syntax error when REAL_WIDTH > 5.
3103 * real.c: Define NE based only on whether or not we have a
3104 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3105 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
3106 define GET_REAL and PUT_REAL as simple memcpy operations; no
3107 need to byteswap or round.
3108 Use #error instead of #ifdef-ing out the entire file, for
3109 prompt error detection.
3110
3111 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3112
3113 2002-04-18 David S. Miller <davem@redhat.com>
3114
3115 * config/sparc/sparc.h (BRANCH_COST): Define.
3116
3117 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3118 does it.
3119
3120 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
3121
3122 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3123 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3124 propagate_block calls after relaxation loop using new variable
3125 stabilized_prop_flags.
3126
3127 2002-04-18 Richard Henderson <rth@redhat.com>
3128
3129 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3130 (ia64_va_arg): Expect variable sized types by reference.
3131 * config/ia64/ia64-protos.h: Update.
3132 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3133 ia64_function_arg_pass_by_reference.
3134
3135 2002-04-18 Richard Henderson <rth@redhat.com>
3136
3137 * ifcvt.c: Include except.h.
3138 (block_has_only_trap): Break out from find_cond_trap.
3139 (find_cond_trap): Use it. Always delete the trap block.
3140 (merge_if_block): Allow then block null. Be less simplistic about
3141 what insns can end a block.
3142 * Makefile.in (ifcvt.o): Depend on except.h.
3143
3144 * config/ia64/ia64.md (trap, conditional_trap): New.
3145
3146 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3147
3148 PR c/6358
3149 * function.c (assign_parms): Assign hard current_function_return_rtx
3150 register here...
3151 (expand_function_end): ...not here.
3152
3153 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3154
3155 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3156 * c-tree.h (c_incomplete_type_error): New.
3157 * c-typeck.c (require_complete_type, build_component_ref): Update.
3158 (incomplete_type_error): Rename.
3159 * langhooks-def.h (lhd_incomplete_type_error): New.
3160 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3161 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3162 * langhooks.c (lhd_incomplete_type_error): New.
3163 * langhooks.h (struct lang_hooks_for_types): New hook.
3164 * tree.c (size_in_bytes): Use new hook.
3165 * tree.h (incomplete_type_error): Remove.
3166 objc:
3167 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3168
3169 2002-04-18 Zack Weinberg <zack@codesourcery.com>
3170
3171 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3172 TARGET_FLOAT_FORMAT blocks.
3173
3174 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3175
3176 * doc/install.texi (Downloading the source): Do not mention Chill
3177 any longer, but mention Ada.
3178 (Configuration): Do not mention Chill any longer.
3179
3180 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
3181
3182 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
3183
3184 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
3185
3186 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
3187 in last patch.
3188
3189 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3190
3191 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
3192 instead of unsigned_type.
3193
3194 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3195
3196 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
3197 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
3198 later.
3199
3200 2002-04-18 Bernd Schmidt <bernds@redhat.com>
3201
3202 * attribs.c (vector_type_node_list): New static variable.
3203 (handle_vector_size_attribute): Use it to avoid generating a
3204 new type node each time we are called.
3205
3206 * combine.c (subst): Avoid trying to make a vector mode subreg of
3207 an integer constant.
3208 (gen_lowpart_for_combine): Likewise.
3209
3210 2002-04-18 Roger Sayle <roger@eyesopen.com>
3211 Jakub Jelinek <jakub@redhat.com>
3212
3213 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
3214 for integer constant c (if x has unsigned type or sign bit is not
3215 set in c). This folds the zero/sign extension into the bit-wise and
3216 operation.
3217
3218 2002-04-18 Jakub Jelinek <jakub@redhat.com>
3219
3220 PR middle-end/6205
3221 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
3222 otherwise xorps.
3223
3224 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
3225
3226 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
3227
3228 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
3229
3230 * gcc.c (read_specs): Detect and fail if an attempt is made to
3231 rename a spec string to an already existing string.
3232
3233 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3234
3235 * config/s390/s390.c (legitimize_pic_address): Do not generate
3236 illegal address constant without CONST.
3237
3238 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3239
3240 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
3241 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3242
3243 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3244
3245 PR optimization/6305
3246 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
3247 to make sure previous reloads are taken into account. Generate
3248 better code if one operand is an in-range immediate constant.
3249
3250 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
3251
3252 * doc/install.texi (Building): libgcj requires GNU make.
3253
3254 2002-04-17 Jakub Jelinek <jakub@redhat.com>
3255
3256 PR bootstrap/6315
3257 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
3258 even if hard quad and register is not floating.
3259 (movtf reg<-mem split): Disallow splitting if hard quad and
3260 register is floating.
3261 (movtf mem<-reg split): Likewise.
3262 * config/sparc/sparc.c (fp_register_operand): New predicate.
3263 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
3264
3265 2002-04-17 Zack Weinberg <zack@codesourcery.com>
3266
3267 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
3268 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
3269 (unprotoize.o): Ditto. Build from protoize.c. Define
3270 UNPROTOIZE on command line.
3271 * protoize.c: Include cppdefault.h. Delete include_defaults.
3272 (in_system_include_dir): Use cpp_include_defaults (defined in
3273 cppdefault.o).
3274 * unprotoize.c: Delete file.
3275
3276 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
3277
3278 * config/rs6000/altivec.h (vec_ld): Add array variants.
3279 (vec_lde): Same.
3280 (vec_ldl): Same.
3281
3282 2002-04-17 Alan Matsuoka <alanm@redhat.com>
3283 Aldy Hernandez <aldyh@redhat.com>
3284
3285 * config/rs6000/altivec.h: Define __ALTIVEC__.
3286 (bool): New.
3287 (__pixel): New.
3288 (pixel): New.
3289 (vec_cfux): New.
3290 (vec_vmaddfp): New.
3291 (vec_vsldoi): New.
3292 Add parentheses to all macro arguments.
3293
3294 2002-04-16 Richard Henderson <rth@redhat.com>
3295
3296 PR c++/6320
3297 * except.c (remove_eh_handler): Insert inner regions at beginning
3298 of sibling chain. Refactor expressions.
3299
3300 2002-04-16 Richard Henderson <rth@redhat.com>
3301
3302 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
3303 * config/sparc/sol2-gas-bi.h: New file.
3304 * config.gcc (sparc*-solaris): Add it as needed.
3305 * configure.in (AS_SPARC64_FLAG): Remove check.
3306 * config.in, configure: Regenerate.
3307
3308 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
3309
3310 2002-04-16 Richard Henderson <rth@redhat.com>
3311
3312 * config/mips/mips.c (override_options): Don't override N32 for
3313 a 64-bit ISA.
3314
3315 PR 6202
3316 * config/mips/mips.md (can_delay): Split out of existing define_delays.
3317 (HILO_delay): Set can_delay false.
3318
3319 2002-04-16 Dale Johannesen <dalej@apple.com>
3320
3321 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
3322 instruction addresses.
3323 (rs6000_output_function_epilogue): Likewise.
3324
3325 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
3326
3327 * c-parse.in (poplevel, compstmt_start,
3328 compstmt_primary_start): Add ending ';', in accordance
3329 with POSIX.
3330
3331 2002-04-16 Richard Henderson <rth@redhat.com>
3332
3333 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
3334 Adjust tm_file order to get TARGET_DEFAULT set properly.
3335 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
3336 * doc/install.texi (sparc-solaris): Update.
3337
3338 2002-04-16 Dale Johannesen <dalej@apple.com>
3339
3340 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
3341 comparison operands do not match each other or if modes of
3342 conditions do not match result.
3343
3344 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
3345
3346 PR target/6305
3347 * config/s390/s390.md (mulsidi3): Set both subregs of the
3348 multiword register.
3349
3350 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
3351
3352 * config/rs6000/altivec.h (vec_addc): Type check.
3353
3354 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3355
3356 PR middle-end/6279
3357 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
3358
3359 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
3360
3361 2002-04-15 Richard Henderson <rth@redhat.com>
3362
3363 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
3364 call_really_used_regs too.
3365
3366 2002-04-15 Richard Henderson <rth@redhat.com>
3367
3368 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
3369
3370 2002-04-15 David S. Miller <davem@redhat.com>
3371
3372 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
3373 as being CLOBBERed.
3374
3375 2002-04-16 Jakub Jelinek <jakub@redhat.com>
3376
3377 PR c/6290
3378 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
3379 CONST_VECTOR is { 0, ... 0 }.
3380
3381 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
3382
3383 * doc/install.texi (Installing GCC: Configuration): Clarify
3384 the only supported ways to configure gcc.
3385
3386 2002-04-15 Roland McGrath <roland@frob.com>
3387
3388 * config.gcc (alpha*-*-gnu*): New target configuration.
3389 * config/alpha/gnu.h: New file for it.
3390 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
3391
3392 2002-04-16 Mark Mitchell <mark@codesourcery.com>
3393
3394 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
3395 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
3396 * tree.h (expand_start_stmt_expr): Update prototype.
3397 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
3398 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
3399 on the STMT_EXPR created for the inline function.
3400
3401 2002-04-15 Richard Henderson <rth@redhat.com>
3402
3403 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
3404 config/i386/linux-aout.h, config/i386/linux-oldld.h,
3405 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
3406 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
3407 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
3408 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
3409 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
3410 Define __gnu_linux__, not gnu_linux.
3411 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
3412
3413 2002-04-15 Mark Mitchell <mark@codesourcery.com>
3414
3415 Remove Chill front end.
3416 * gcc.c (default_compilers): Remove Chill entries.
3417 * ch: Remove directory.
3418 * doc/frontends.texi: Remove information about Chill.
3419 * doc/sourcebuild.texi: Likewise.
3420 * doc/standards.texi: Likewise.
3421
3422 2002-04-15 Douglas B Rupp <rupp@gnat.com>
3423
3424 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
3425 (LONGLONG_STANDALONE): Define.
3426
3427 2002-04-15 David S. Miller <davem@redhat.com>
3428
3429 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
3430 Call emit_library_call with LCT_NORMAL.
3431 (sparc_initialize_trampoline): Use LCT_foo instead of
3432 magic constant in emit_library_call invocations.
3433 (sparc64_initialize_trampoline): Likewise.
3434 (sparc_profile_hook): Likewise.
3435 * config/sparc/sparc.md: Likewise.
3436
3437 * config/sparc/sparc.c (sparc_extra_constraint_check):
3438 Fix type of argument 'c'.
3439 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
3440 Likewise.
3441
3442 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3443
3444 * diagnostic.h (output_buffer_state): Redefine.
3445 (output_format_decoder): New macro.
3446 (output_prefixing_rule): Likewise.
3447 (output_line_cutoff): Likewise.
3448 (diagnostic_format_decoder): Adjust.
3449 (diagnostic_prefixing_rule): Likewise.
3450 (diagnostic_line_cutoff): Likewise.
3451 (diagnostic_state): Likewise.
3452 (diagnostic_kind_count): Likewise.
3453 (diagnostic_buffer): Now a macro.
3454
3455 * diagnostic.c (diagnostic_buffer): Remove definition.
3456 (output_is_line_wrapping): Adjust.
3457 (set_real_maximum_length): Likewise.
3458 (output_set_maximum_length): Likewise.
3459 (init_output_buffer): Likewise.
3460 (lhd_print_error_function): Likewise.
3461 (output_do_verbatim): Likewise.
3462
3463 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
3464
3465 * cpperror.c (print_location): Don't print include chain
3466 if line == 0.
3467 (cpp_begin_message): Update to use DL_ macros.
3468 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3469 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3470 cpp_notice, cpp_notice_from_errno): Remove.
3471 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3472 level.
3473 (cpp_errno): New.
3474 * cppexp.c (CPP_ICE): Remove.
3475 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
3476 lex, integer_overflow, _cpp_parse_expr): Update.
3477 * cppfiles.c (read_include_file, find_include_file,
3478 handle_missing_header, _cpp_read_file, remap_filename): Update.
3479 * cpphash.h (enum error_type): Remove.
3480 (_cpp_begin_message): Update.
3481 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
3482 cpp_handle_option, cpp_post_options): Update.
3483 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
3484 skip_whitespace, parse_identifier, parse_slow, parse_string,
3485 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
3486 cpp_interpret_charconst): Update.
3487 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
3488 lex_macro_node, do_undef, glue_header_name, parse_include,
3489 do_include_common, read_flag, do_line, do_linemarker, do_ident,
3490 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
3491 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
3492 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
3493 _cpp_pop_buffer, do_diagnostic): Update.
3494 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
3495 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
3496 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
3497 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3498 cpp_notice, cpp_notice_from_errno): Remove.
3499 (cpp_error, cpp_error_with_line): Update to take a diagnostic
3500 level.
3501 (cpp_errno): New.
3502 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
3503 collect_args, enter_macro_context, save_parameter, parse_params,
3504 _cpp_create_definition, check_trad_stringification,
3505 cpp_macro_definition): Update.
3506 * cppmain.c (cpp_preprocess_file): Update.
3507 * fix-header.c (read_scan_file): Update.
3508
3509 2002-04-14 Andreas Schwab <schwab@suse.de>
3510
3511 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
3512
3513 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3514
3515 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
3516
3517 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3518
3519 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
3520 not gnu_hurd.
3521
3522 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
3523
3524 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
3525
3526 2002-04-13 Joel Sherrill <joel@OARcorp.com>
3527
3528 * config/sparc/t-elf: Enable v8 multilibs. Impacts
3529 sparc-elf and sparc-rtems targets.
3530
3531 2002-04-13 Mark Mitchell <mark@codesourcery.com>
3532
3533 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
3534 defined, and __gnu_hurd__ wherever __GNU__ is defined.
3535 * arm/linux-elf.h: Likewise.
3536 * cris/aout.h: Likewise.
3537 * cris/linux.h: Likewise.
3538 * i370/linux.h: Likewise.
3539 * i386/gnu.h: Likewise.
3540 * i386/linux-aout.h: Likewise.
3541 * i386/linux-oldld.h: Likewise.
3542 * i386/linux.h: Likewise.
3543 * i386/linux64.h: Likewise.
3544 * ia64/linux.h: Likewise.
3545 * m68k/linux-aout.h: Likewise.
3546 * m68k/linux.h: Likewise.
3547 * mips/linux.h: Likewise.
3548 * pa/pa-linux.h: Likewise.
3549 * pj/linux.h: Likewise.
3550 * rs6000/sysv4.h: Likewise.
3551 * s390/linux.h: Likewise.
3552 * sh/linux.h: Likewise.
3553 * sparc/linux-aout.h: Likewise.
3554 * sparc/linux.h: Likewise.
3555 * sparc/linux64.h: Likewise.
3556 * xtensa/linux.h: Likewise.
3557
3558 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
3559
3560 * stmt.c (check_unique_operand_names): Expect operand names to
3561 be strings rather than identifiers. Use simple_cst_equal to
3562 compare them.
3563 (resolve_operand_name_1): Make same identifier to string change here.
3564 * c-parse.in (asm_operand): Convert a named operand into a string.
3565 * cp/parse.y (asm_operand): Likewise.
3566
3567 2002-04-13 Andreas Schwab <schwab@suse.de>
3568
3569 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3570
3571 2002-04-12 Mark Mitchell <mark@codesourcery.com>
3572
3573 Revert these changes:
3574
3575 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3576
3577 PR c++/5571
3578 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3579
3580 2002-04-12 Richard Henderson <rth@redhat.com>
3581
3582 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3583 (sparc*-*-solaris): Clean up header files.
3584 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3585 and plan on generating 64-bit code.
3586 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3587 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3588 * config/sparc/sol2-sld-64.h: Rename ...
3589 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
3590 for AS_SPARC64_FLAG not defined.
3591 * config/sparc/sol2-gld-bi.h: New.
3592 * config/sparc/sol2-sld.h: Remove.
3593 * config/sparc/sol26-sld.h: New.
3594 * config/sparc/sol2.h: Tidy comments.
3595 * doc/install.texi: Document sparc-solaris configury changes.
3596
3597 2002-04-12 Richard Henderson <rth@redhat.com>
3598
3599 * recog.c (offsettable_address_p): Match the logic in adjust_address.
3600
3601 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3602 in 64-bit mode only. Use only for 32-bit or MEDLOW.
3603
3604 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3605
3606 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3607
3608 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
3609
3610 * pa.c (pa_can_combine_p): Call extract_insn before calling
3611 constrain_operands.
3612
3613 2002-04-12 Douglas B Rupp <rupp@gnat.com>
3614
3615 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3616 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3617 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3618 (CPP_PREDEFINES): Handle __declspec.
3619 * config/i386/t-interix (USER_H): Remove.
3620
3621 2002-04-12 DJ Delorie <dj@redhat.com>
3622
3623 * integrate.c (compare_blocks): Make comparisons safe for when
3624 sizeof(int) < sizeof(char *).
3625 (find_block): Likewise.
3626
3627 2002-04-12 Jan Hubicka <jh@suse.cz>
3628 David Edelsohn <edelsohn@gnu.org>
3629
3630 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
3631 registers.
3632 (symbol_ref_operand): New.
3633 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
3634 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
3635
3636 2002-04-12 Andreas Schwab <schwab@suse.de>
3637
3638 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3639 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3640 overrides the definition in config/svr4.h.
3641
3642 2002-04-12 Eric Norum <eric.norum@usask.ca>
3643
3644 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3645 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3646 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3647 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3648 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3649 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3650 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3651 definitions to config/rtems.h and make the targets more similar.
3652
3653 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3654
3655 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3656 POINTERS_EXTEND_UNSIGNED.
3657 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3658 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3659
3660 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3661 not specified.
3662
3663 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
3664
3665 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
3666 depends on TARGET_SHMEDIA, not TARGET_SH5.
3667
3668 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
3669
3670 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3671 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3672
3673 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3674
3675 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
3676 no r0 clobber.
3677
3678 2002-04-12 Andreas Schwab <schwab@suse.de>
3679
3680 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3681
3682 2002-04-12 Richard Henderson <rth@redhat.com>
3683
3684 PR bootstrap/4191
3685 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3686
3687 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3688 modes spanning multiple hard regs.
3689
3690 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3691
3692 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3693
3694 * pa.c (pa_output_function_prologue): Don't accumulate the total
3695 number of code bytes when using TARGET_64BIT, or gas, SOM and not
3696 the portable runtime.
3697 (output_deferred_plabels): Handle 64bit plabels.
3698 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
3699 generating pic code using the GAS assembler for object formats that
3700 are not SOM (ie., ELF32 and ELF64).
3701 (output_millicode_call): Check attribute type if attribute length is 28.
3702 Likewise use $PIC_pcrel$0. Only call get_attr_length and
3703 dbr_sequence_length once.
3704 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
3705 dbr_sequence_length once.
3706 * pa.h (TARGET_SOM): Define if not defined.
3707 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
3708 with GAS and not SOM.
3709 (jump, call_internal_reg, call_value_internal_reg): Likewise.
3710 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
3711
3712 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3713
3714 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3715 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3716 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3717 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3718 elfos.h and dbxelf.h values are fine now.
3719 * config/i386/freebsd.h, config/alpha/freebsd.h
3720 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3721
3722 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3723
3724 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3725 or set Acpu or Amachine. Reformat.
3726 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3727 define.
3728 (LINK_SPEC): Do not need to undef.
3729 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3730 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3731 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3732 define.
3733 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3734 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3735 (LINK_SPEC): Do not need to undef.
3736 (DONT_USE_BUILTIN_SETJMP): Do not define.
3737 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3738 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
3739 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3740 Remove trailing spaces.
3741 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3742 __ELF__, or set Acpu or Amachine. Reformat.
3743 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3744 define.
3745
3746 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3747
3748 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3749 all other *-*-freebsd* targets.
3750
3751 2002-04-11 Richard Henderson <rth@redhat.com>
3752
3753 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
3754
3755 2002-04-11 David O'Brien <obrien@FreeBSD.org>
3756
3757 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
3758 Include {cpu}/{cpu}.h thru tm_file.
3759 (alpha*-*-linux*ecoff): Remove target.
3760 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
3761 (LINK_SPEC): Remove, is not OS independent.
3762 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
3763 (LINK_SPEC): Do not need to #undef any longer.
3764 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
3765 any longer.
3766 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
3767 __ELF__.
3768 (LINK_SPEC): Moved here from alpha/elf.h.
3769 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
3770 SUB_CPP_PREDEFINES.
3771 * config/alpha/linux-ecoff.h: Remove.
3772 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
3773 (CPP_SPEC): Define _POSIX_SOURCE as needed.
3774 (CPP_SUBTARGET_SPEC): Do not define.
3775 (LINK_SPEC): Do not need to #undef any longer.
3776 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
3777 * config/alpha/vms.h: Likewise.
3778
3779 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
3780
3781 * doc/extend.texi: Remove old claim that typedefs cannot have
3782 an alignment attribute.
3783
3784 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3785
3786 PR optimization/6177
3787 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3788 bitpos is 0 and bitsize CONCAT size.
3789
3790 2002-04-11 Jakub Jelinek <jakub@redhat.com>
3791
3792 PR c/6223
3793 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3794
3795 2002-04-10 David O'Brien <obrien@FreeBSD.org>
3796
3797 * config/alpha/freebsd.h: Minor reformatting.
3798 (CPP_SPEC): Define ELF and add cpp_subtarget.
3799 (ASM_SPEC): No longer needed.
3800
3801 2002-04-11 Richard Henderson <rth@redhat.com>
3802
3803 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3804 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
3805 (dimode mem/zero splitter): New.
3806
3807 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
3808
3809 * config/cris/cris.c (cris_override_options): Tweak error message
3810 for PIC not implemented.
3811
3812 * config/cris/cris.h: Tweak comments related to parameter-passing.
3813
3814 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3815
3816 2002-04-10 Richard Henderson <rth@redhat.com>
3817
3818 * except.c (add_ehl_entry): Allow duplicates after landing pad
3819 creation.
3820
3821 2002-04-10 David Edelsohn <edelsohn@gnu.org>
3822
3823 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3824
3825 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
3826
3827 * c-decl.c (c_init_decl_processing): Move generation of
3828 decls for g77_integer_type_node and friends from here ...
3829 * c-common.c (c_common_nodes_and_builtins): ... to here.
3830
3831 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
3832
3833 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3834 is only used as frame pointer when frame_pointer_needed is true.
3835
3836 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
3837
3838 PR target/817
3839 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3840 for the fact that the pool entry uses two words.
3841 (movdf_hard_insn): Similarly. Also, ADR instruction can span
3842 1k bytes.
3843 (movdf_soft_insn): Similarly.
3844 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3845 for the fact that the pool entry uses three words.
3846
3847 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
3848
3849 * config/mips/mips.c (mips_va_arg): When using the struct version
3850 of the EABI va_list, allow arguments in the register save area to
3851 take up less room than a stack argument.
3852
3853 2002-04-10 Richard Henderson <rth@redhat.com>
3854
3855 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3856 if EXPAND_INITIALIZER.
3857
3858 2002-04-09 Richard Henderson <rth@redhat.com>
3859
3860 * config/alpha/alpha.md (movdi_er_maybe_g): New.
3861 * config/alpha/alpha.c (alpha_expand_mov): Use it.
3862
3863 2002-04-10 Alan Modra <amodra@bigpond.net.au>
3864
3865 PR optimization/6233
3866 * rtlanal.c (pure_call_p): New function.
3867 * rtl.h (pure_call_p): Declare.
3868 * loop.c (prescan_loop): Use it to set has_nonconst_call.
3869 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3870
3871 2002-04-09 Eric Christopher <echristo@redhat.com>
3872
3873 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3874 information to .comm directive.
3875
3876 2002-04-09 Richard Henderson <rth@redhat.com>
3877
3878 PR c/5078
3879 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3880
3881 2002-04-09 Richard Henderson <rth@redhat.com>
3882
3883 * basic-block.h (flow_delete_block_noexpunge): Declare.
3884 (expunge_block_nocompact): Declare.
3885 * cfg.c (expunge_block_nocompact): Split out from ...
3886 (expunge_block): ... here.
3887 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3888 (flow_delete_block_noexpunge): Split out from ...
3889 (flow_delete_block): ... here.
3890 * cfgcleanup.c (delete_unreachable_blocks): Compact while
3891 removing dead blocks.
3892 * except.c (exception_handler_labels): Remove.
3893 (exception_handler_label_map): New.
3894 (struct eh_region): Add aka member.
3895 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3896 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3897 (for_each_eh_label, for_each_eh_label_1): New.
3898 (init_eh): Register exception_handler_label_map.
3899 (free_eh_status): Use free_region.
3900 (find_exception_handler_labels): Use the map, not the list.
3901 (remove_exception_handler_label): Likewise.
3902 (maybe_remove_eh_handler): Likewise.
3903 (remove_eh_handler): Use the region aka bitmap.
3904 * except.h (exception_handler_labels): Remove.
3905 (for_each_eh_label): Declare.
3906 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3907 * loop.c (invalidate_loops_containing_label): New.
3908 (find_and_verify_loops): Use it. Use for_each_eh_label.
3909 * sched-rgn.c (is_cfg_nonregular): Use
3910 current_function_has_exception_handlers.
3911
3912 2002-04-09 Richard Henderson <rth@redhat.com>
3913
3914 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3915 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3916 Do not return changed status.
3917 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3918 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3919 New functions that do return changed status.
3920 * sbitmap.h: Update decls.
3921 * gcse.c, lcm.c: Use _cg functions as needed.
3922
3923 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3924
3925 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3926 (sh64-*-elf*, sh-*-rtemself*): Likewise.
3927 * config/sh/embed_bb.c: New file.
3928 * config/sh/embed-elf.h: New file.
3929 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3930 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
3931 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3932 __PTRDIFF_TYPE__ .
3933 (SUBTARGET_CPP_PTR_SPEC): Don't define.
3934 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3935 Add subtarget_asm_endian_spec.
3936 (ASM_SPEC): Use subtarget_asm_endian_spec.
3937 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3938 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3939 (WCHAR_UNSIGNED): Define.
3940 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3941 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3942 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3943 Fix value.
3944 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3945 (sh_adjust_cost): Likewise.
3946 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3947 __PTRDIFF_TYPE__ .
3948 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3949 (WCHAR_TYPE_SIZE): Likewise.
3950 (ASM_SPEC): Use subtarget_asm_endian_spec.
3951 (SH_ELF_WCHAR_TYPE): #undef/ #define.
3952 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3953 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3954 (MAX_WCHAR_TYPE_SIZE): Don't #define .
3955 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3956 (USER_LABEL_PREFIX): Don't #undef /#define .
3957 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3958 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3959 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3960 (ASM_SPEC): Likewise.
3961 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3962 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3963 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3964 (LIB2FUNCS_EXTRA): Define.
3965 * t-sh64 (LIB2FUNCS_EXTRA): Define.
3966 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3967 (LIB1ASMFUNCS_CACHE): Define.
3968 (LIB2FUNCS_EXTRA): Redefine empty.
3969
3970 2002-04-08 Richard Henderson <rth@redhat.com>
3971
3972 * reorg.c (get_branch_condition): Use reversed_comparison_code.
3973
3974 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3975
3976 * config/m68hc11/larith.asm (__map_data_section): Fix condition
3977 and optimize for size.
3978 (__do_global_ctors): Fix pointer comparison.
3979 (__do_global_dtors): Likewise.
3980
3981 2002-04-09 David S. Miller <davem@redhat.com>
3982
3983 * config/sparc/sparc.c (sparc_extra_constraint_check): New
3984 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
3985 allow reloading pseudos.
3986 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3987 * config/sparc/sparc-protos.h: Declare it.
3988
3989 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3990 unsigned comparison warning.
3991 (output_restore_regs): Mark leaf_function as unused.
3992
3993 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3994
3995 * expr.c (is_aligning_offset): New function.
3996 (expand_expr, case COMPONENT_EXPR): Call it.
3997
3998 2002-04-08 David S. Miller <davem@redhat.com>
3999
4000 PR target/6082
4001 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4002
4003 Make init_priority work on Sparc when using GNU ld.
4004 * config/sparc/linux.h, config/sparc/linux64.h,
4005 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4006 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4007 * config/sparc/sol2-gld.h: New file to do the same.
4008 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4009 sparc/sol2-gld.h to tm_file.
4010
4011 PR optimization/4328
4012 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4013 * doc/md.texi: Document it.
4014 * config/sparc/sparc.md (movdi_insn_sp64_novis,
4015 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4016 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4017 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4018 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4019
4020 2002-04-08 Andreas Jaeger <aj@suse.de>
4021
4022 * stmt.c (expand_asm_operands): Revert last patch from Richard
4023 Henderson.
4024
4025 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4026
4027 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4028 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
4029
4030 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4031
4032 * doc/contrib.texi (Contributors): Add David O'Brien.
4033
4034 2002-04-08 Alan Modra <amodra@bigpond.net.au>
4035
4036 * configure.in (auto-build.h): Use target_alias and build_alias
4037 when running configure.
4038 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4039 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4040 * configure: Regenerate.
4041
4042 2002-04-07 David S. Miller <davem@redhat.com>
4043
4044 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4045
4046 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4047
4048 PR 5933
4049 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4050 generating 32-bit pic code.
4051
4052 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
4053
4054 * cppinit.c (cpp_create_reader): Initialize
4055 discard_comments_in_macro_exp.
4056 (COMMAND_LINE_OPTIONS): Add "-CC" option.
4057 (cpp_handle_option): Handle "-CC" option.
4058 * cpplex.c (save_comment): If saving a C++ comment in
4059 a directive, convert it to a C comment.
4060 (_cpp_lex_direct): Pass second comment start character to
4061 save_comment to indicate comment type.
4062 * cpplib.c (_cpp_handle_directive): If processing
4063 a "#define" directive and discard_comments_in_macro_exp
4064 is false, re-enable saving of comments.
4065 (lex_macro_node): If discard_comments_in_macro_exp is false,
4066 discard any comments before the macro identifier.
4067 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4068 member.
4069 * cppmacro.c (cpp_get_token): If expanding a macro while
4070 processing a directive, discard any comments we might encounter.
4071 (parse_params): If discard_comments_in_macro_exp is false,
4072 ignore comments in the macro parameter list.
4073 * gcc.c (cpp_unique_options): Add "-CC" option.
4074 (option_map): Map "--comments-in-macros" to "-CC".
4075 * doc/cppopts.texi: Document "-CC" option.
4076 * f/lang-specs.h: Add "-CC" option.
4077 * testsuite/gcc.dg/cpp/maccom1.c: New test.
4078 * testsuite/gcc.dg/cpp/maccom2.c: New test.
4079 * testsuite/gcc.dg/cpp/maccom3.c: New test.
4080 * testsuite/gcc.dg/cpp/maccom4.c: New test.
4081 * testsuite/gcc.dg/cpp/maccom5.c: New test.
4082 * testsuite/gcc.dg/cpp/maccom6.c: New test.
4083
4084 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4085
4086 PR middle-end/6180
4087 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4088
4089 2002-04-06 Mark Mitchell <mark@codesourcery.com>
4090
4091 PR c++/5571
4092 * stor-layout.c (layout_decl): Reset the RTL for the decl.
4093
4094 PR opt/5120
4095 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4096 RTX_UNCHANGING_P for the functions arguments when a tail call
4097 is made.
4098
4099 2002-04-06 Jason Merrill <jason@redhat.com>
4100
4101 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4102 (parse_options_and_default_flags): Set them appropriately.
4103 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4104
4105 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
4106
4107 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4108 here.
4109
4110 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4111 semicolon.
4112
4113 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4114 types come in by-reference. Fix typo in comment.
4115
4116 2002-04-05 David S. Miller <davem@redhat.com>
4117
4118 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4119 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4120 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4121 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4122
4123 2002-04-05 David S. Miller <davem@redhat.com>
4124
4125 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4126 are not going to emit return instructions, emit at least a nop
4127 for the sake of sane backtraces.
4128
4129 2002-04-05 Richard Henderson <rth@redhat.com>
4130
4131 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4132
4133 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
4134
4135 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4136
4137 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
4138
4139 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4140 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4141 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4142
4143 2002-04-05 Andreas Schwab <schwab@suse.de>
4144
4145 * c-convert.c: Include c-common.h.
4146 * Makefile.in (c-convert.o): Updated.
4147
4148 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4149
4150 * mklibgcc.in: Use separate libgcc.map for each multilib.
4151 * Makefile.in (distclean): Don't remove libgcc.map here.
4152
4153 2002-04-05 Jakub Jelinek <jakub@redhat.com>
4154
4155 * Makefile.in (s-mlib): Handle --disable-multilib by separate
4156 genmultilib invocation.
4157
4158 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
4159
4160 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4161 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
4162 to num_gprs for symmetry.
4163 * config/mips/mips.c: Adjust accordingly.
4164
4165 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
4166
4167 * c-common.c (truthvalue_conversion): Rename, update.
4168 * c-common.h (c_common_truthvalue_conversion): New.
4169 * c-convert.c (convert): Update.
4170 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4171 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4172 * c-typeck.c (build_binary_op, build_unary_op,
4173 build_conditional_expr): Update.
4174 * fold-const.c (constant_boolean_node, fold): Use langhook.
4175 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
4176 * langhooks.h (struct lang_hooks): New hook.
4177 * stmt.c (expand_decl_cleanup): Use langhook.
4178 * tree.h (truthvalue_conversion): Remove.
4179 objc:
4180 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4181
4182 2002-04-05 Alan Modra <amodra@bigpond.net.au>
4183
4184 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
4185 Add rules to make null object file.
4186
4187 2002-04-04 Jim Blandy <jimb@redhat.com>
4188
4189 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
4190 macro formal parameter names.
4191
4192 2002-04-04 David S. Miller <davem@redhat.com>
4193
4194 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
4195
4196 2002-04-04 Richard Henderson <rth@redhat.com>
4197
4198 PR middle-end/5099
4199 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
4200 Support copies into and out of memory. Don't accept allows_reg
4201 and allows_mem as gospel.
4202
4203 2002-04-04 Richard Henderson <rth@redhat.com>
4204
4205 PR opt/6165
4206 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
4207 (write_dependence_p): Likewise.
4208
4209 2002-04-04 Richard Henderson <rth@redhat.com>
4210
4211 * predict.c (estimate_bb_frequencies): Do frequency calculation
4212 with a volatile temporary.
4213
4214 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
4215
4216 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
4217
4218 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4219
4220 PR c++/6119
4221 * final.c (final_start_function): Don't bump profile_label_no here...
4222 (final_end_function): ...but here.
4223
4224 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4225
4226 * config/sparc/sparc.md (pic): New attribute.
4227 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
4228 into stack slots.
4229 (split after do_builtin_setjmp_setup): New.
4230
4231 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4232
4233 PR fortran/6106
4234 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
4235 change.
4236
4237 2002-04-04 Jakub Jelinek <jakub@redhat.com>
4238
4239 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
4240 UNITS_PER_WORD for zero sized aggregates.
4241
4242 2002-04-03 David S. Miller <davem@redhat.com>
4243
4244 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
4245 one-character spec for this, just use %(link_gcc_c_sequence).
4246
4247 2002-04-03 David S. Miller <davem@redhat.com>
4248
4249 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
4250 handling.
4251
4252 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
4253
4254 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
4255 (DWARF_FRAME_RETURN_COLUMN): Move.
4256 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4257 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
4258 * pa.c (except.h, predict.h): Include.
4259 (FRP): Delete.
4260 (store_reg_modify, set_reg_plus_d): Revise prototypes.
4261 (output_ascii): Add cast.
4262 (store_reg_modify): Revise to add frame notes.
4263 (set_reg_plus_d): Likewise.
4264 (compute_frame_size): Include space for eh data registers in frame if
4265 the current function calls eh_return.
4266 (hppa_expand_prologue): Ensure register %r2 is saved if the current
4267 function calls eh_return. Save eh data registers if the current
4268 function calls eh_return. Fix code to add frame notes. Emit
4269 blockage to prevent insns with frame notes being scheduled in the
4270 delay slot of calls.
4271 (hppa_expand_epilogue): Restore eh data registers and do final stack
4272 adjustment if the current function calls eh_return. Don't add frame
4273 notes.
4274 (output_call): Revise for change in length of call insn. Don't do
4275 return pointer adjustment for an unconditional jump in the delay slot
4276 of a call when using frame notes.
4277 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
4278 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
4279 (ARG_POINTER_CFA_OFFSET): Define.
4280 * pa.md (return_external_pic): New pattern.
4281 (prologue): Correct formatting. Use return_external_pic if current
4282 function calls eh_return.
4283 (call_internal_symref, call_value_internal_symref,
4284 sibcall_internal_symref, sibcall_value_internal_symref): Change default
4285 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
4286 respectively.
4287 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
4288
4289 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
4290 list of targets to check using "nop" insn.
4291 * configure: Rebuilt.
4292
4293 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4294
4295 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
4296
4297 2002-04-03 David S. Miller <davem@redhat.com>
4298
4299 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
4300 library sequence passed to the linker.
4301 (LINK_COMMAND_SPEC): Use it.
4302 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
4303 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
4304 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4305
4306 2002-04-03 Jason Merrill <jason@redhat.com>
4307
4308 * except.c (struct eh_status): Remove protect_list.
4309 (begin_protect_partials, end_protect_partials): Remove.
4310 (add_partial_entry): Remove.
4311 * except.h: Remove prototypes.
4312
4313 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
4314 expand_decl_cleanup_eh.
4315
4316 PR c++/5636
4317 * tree.h (CLEANUP_EH_ONLY): New macro.
4318 * stmt.c (expand_decl_cleanup_eh): New fn.
4319 (expand_cleanups): Check CLEANUP_EH_ONLY.
4320 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
4321 Use expand_decl_cleanup_eh.
4322 (expand_stmt): Adjust.
4323 * c-common.h: Adjust prototype.
4324
4325 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
4326
4327 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
4328 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
4329 (cris_target_asm_function_epilogue): Ditto.
4330 (cris_initial_frame_pointer_offset): Ditto.
4331 (cris_simple_epilogue): Ditto.
4332 (cris_expand_builtin_va_arg): Variable-size types come in
4333 by-reference.
4334
4335 2002-04-03 David S. Miller <davem@redhat.com>
4336
4337 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
4338 little-endian.
4339 (set_fast_math): Correct 'fsr' type.
4340
4341 2002-04-03 Richard Henderson <rth@redhat.com>
4342
4343 PR opt/3569
4344 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
4345 * toplev.c (check_global_declarations): Use it.
4346 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
4347 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4348 (LANG_HOOKS_DECLS): Add it.
4349 * langhooks.c (lhd_warn_unused_global_decl): New.
4350 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4351 * c-objc-common.c (c_warn_unused_global_decl): New.
4352 * c-tree.h (c_warn_unused_global_decl): Declare.
4353 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
4354
4355 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
4356
4357 * langhooks-def.h (lhd_set_decl_assembler_name,
4358 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
4359 (LANG_HOOKS_INITIALIZER): Update.
4360 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
4361 * langhooks.h (struct lang_hooks): New hook.
4362 * tree.c (set_decl_assembler_name): Move to langhooks.c.
4363 (lang_set_decl_assembler_name): Remove.
4364 (init_obstacks): Don't set hook.
4365 (decl_assembler_name): New function.
4366 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
4367 (decl_assembler_name): New.
4368 (lang_set_decl_assembler_name): Remove.
4369
4370 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4371
4372 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
4373 works properly with .hidden symbols.
4374 * configure: Rebuilt.
4375 * config.in: Rebuilt.
4376 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
4377 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
4378 properly with .hidden symbols.
4379
4380 2002-04-03 Jakub Jelinek <jakub@redhat.com>
4381
4382 PR middle-end/6102
4383 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
4384 USE argument.
4385
4386 2002-04-03 Richard Henderson <rth@redhat.com>
4387
4388 PR opt/4120
4389 * sched-rgn.c (sets_likely_spilled): New.
4390 (sets_likely_spilled_1): New.
4391 (add_branch_dependences): Use it.
4392
4393 2002-04-02 Richard Henderson <rth@redhat.com>
4394
4395 PR opt/4311
4396 * loop.h (LOOP_FIRST_PASS): New.
4397 * loop.c (strength_reduce): Mind it when deciding to unroll.
4398 * toplev.c (rest_of_compilation): Set it.
4399
4400 2002-04-02 David S. Miller <davem@redhat.com>
4401
4402 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
4403 mems_ok_for_ldd_peep when the order of the loads being examined
4404 is reversed.
4405 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
4406 existing comment to increase comprehension of this situation.
4407
4408 2002-04-02 Zack Weinberg <zack@codesourcery.com>
4409
4410 * config/sh/sh.md: Don't use union real_extract.
4411
4412 2002-04-02 Richard Henderson <rth@redhat.com>
4413
4414 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
4415
4416 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4417
4418 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
4419 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
4420 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
4421 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
4422 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
4423 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
4424 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
4425 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
4426 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
4427 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
4428 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
4429 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
4430 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
4431 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
4432 Include as many configury headers via tm_file as possible. This
4433 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
4434 * config/openbsd-oldgas.h: New file.
4435 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
4436 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
4437 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
4438 config/i386/i386-coff.h, config/i386/i386-interix.h,
4439 config/i386/iscdbx.h, config/i386/linux-aout.h,
4440 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
4441 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
4442 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
4443 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
4444 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
4445 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
4446 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
4447 config/i386/vxi386.h: Do not directly include configury headers.
4448 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
4449 Directly include configury headers that are no longer automatically
4450 included by the above headers.
4451 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
4452 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
4453 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
4454 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
4455 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
4456 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
4457 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
4458 (TARGET_VERSION): Define.
4459 * config/i386/beos-elf.h, config/i386/freebsd.h,
4460 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
4461 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
4462 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
4463 config/i386/sco5.h, config/i386/sysv4.h
4464 (TARGET_VERSION): Do not need to protect.
4465 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
4466 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
4467 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
4468 config/i386/i386-interix.h, config/i386/linux-aout.h,
4469 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
4470 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
4471 (YES_UNDERSCORES): Do not define - not needed.
4472 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
4473 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4474 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
4475 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
4476 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
4477 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
4478 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
4479 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
4480
4481 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
4482 Richard Henderson <rth@redhat.com>
4483
4484 PR c/5484
4485 * function.c (assign_temp): Accept either type or decl argument.
4486 Detect variables whose size is too large to fit into an integer.
4487 * stmt.c (expand_decl): Pass the decl, not the type.
4488
4489 2002-04-02 David O'Brien <obrien@FreeBSD.org>
4490
4491 * protoize.c: Match include directory usage with cppdefault.c.
4492
4493 2002-04-03 Jeffrey A Law (law@redhat.com)
4494 Hans-Peter Nilsson <hp@bitrange.com>
4495
4496 * combine.c (simplify_comparison): Avoid narrowing a comparison
4497 with a paradoxical subreg when doing so would drop signficant bits.
4498
4499 2002-04-02 Steve Ellcey <sje@cup.hp.com>
4500
4501 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
4502 if POINTERS_EXTEND_UNSIGNED is defined.
4503
4504 2002-04-02 Richard Henderson <rth@redhat.com>
4505
4506 PR opt/3967
4507 * local-alloc.c (contains_replace_regs): LO_SUM may contain
4508 replace regs.
4509
4510 2002-04-02 Richard Henderson <rth@redhat.com>
4511
4512 * doc/standards.texi: Document required freestanding libc entry points.
4513
4514 2002-04-02 Alan Modra <amodra@bigpond.net.au>
4515
4516 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
4517 associated splitter. Remove MQ constraint.
4518 (ctrdi_internal4): Correct CCmode clobber.
4519
4520 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4521
4522 * milli64.S ($$dyncall): New function.
4523 * t-linux (LIB1ASMFUNCS): Revise module list.
4524 (LIB1ASMSRC): Use pa/milli64.S.
4525
4526 2002-04-02 Richard Henderson <rth@redhat.com>
4527
4528 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
4529 rename solaris_sys_varargs_h.
4530
4531 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4532
4533 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
4534 the same mode as its component.
4535
4536 2002-04-02 Richard Henderson <rth@redhat.com>
4537
4538 PR opt/190
4539 * final.c (this_is_asm_operands): Export.
4540 * output.h (this_is_asm_operands): Declare.
4541 * config/i386/i386.c (print_operand): Error odd asm operands.
4542
4543 2002-04-02 Richard Henderson <rth@redhat.com>
4544
4545 PR opt/420
4546 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
4547
4548 2002-04-01 Richard Henderson <rth@redhat.com>
4549
4550 PR target/1538
4551 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
4552 * fixinc/fixincl.x: Rebuild.
4553
4554 2002-04-01 Richard Henderson <rth@redhat.com>
4555
4556 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
4557 (atomic_alloc, atomic_free): New.
4558 (SIZE, MASK_FOR, PTR_IN): New.
4559 (emergency_reg_state, emergency_reg_state_free): New.
4560 (emergency_labeled_state, emergency_labeled_state_free): New.
4561 (reg_state_alloced, labeled_state_alloced): New.
4562 (alloc_reg_state, free_reg_state): New.
4563 (alloc_label_state, free_label_state, free_label_states): New.
4564 (push, pop, dup_state_stack, free_state_stack): Use them.
4565 (desc_label_state): Likewise.
4566 (uw_frame_state_for): Free label states and state stack.
4567 (uw_update_reg_address): Eliminate warnings.
4568
4569 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
4570
4571 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
4572 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
4573
4574 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4575
4576 * c-decl.c (grokdeclarator): Update.
4577 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4578 * c-tree.h (c_mark_addressable): New.
4579 * c-typeck.c (default_function_array_conversion, build_unary_op,
4580 build_array_ref, convert_for_assignment): Update.
4581 (mark_addressable): Rename.
4582 * calls.c (try_to_integrate, expand_call): Use langhook.
4583 * expr.c (expand_expr): Use langhook.
4584 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
4585 * langhooks.h (struct lang_hooks): New hook.
4586 * stmt.c (expand_asm_operands): Use langhook.
4587 * tree.h (mark_addressable): Remove.
4588 objc:
4589 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
4590
4591 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4592
4593 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
4594 in previous change.
4595
4596 2002-04-01 Bob Wilson <bob.wilson@acm.org>
4597
4598 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
4599 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
4600
4601 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4602
4603 * c-common.c (unsigned_conversion_warning, convert_and_check,
4604 unsigned_type, signed_type, shorten_compare,
4605 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
4606 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
4607 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
4608 New.
4609 * c-decl.c (grokdeclarator): Update.
4610 * c-format.c (check_format_types): Update.
4611 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4612 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4613 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
4614 * convert.c (convert_to_integer): Use new hooks.
4615 * expmed.c (make_tree): Use new hooks.
4616 * expr.c (store_expr): Use new hooks.
4617 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
4618 all_ones_mask_p, unextend, fold): Use new hooks.
4619 * langhooks.h (struct lang_hooks_for_types): New hooks.
4620 * tree.h (signed_or_unsigned_type, signed_type,
4621 unsigned_type): Remove.
4622 objc:
4623 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
4624 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
4625
4626 2002-03-31 Richard Henderson <rth@redhat.com>
4627
4628 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
4629 (desc_frgr_mem): Fix reference to f16-f31.
4630
4631 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4632
4633 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4634 RTVEC_ELT): Const-ify.
4635 * varray.h (VARRAY_CHECK): Const-ify.
4636 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
4637 ggc_mark_rtvec, ggc_mark): Const-ify.
4638
4639 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
4640
4641 * diagnostic.c: Include langhooks-def.h.
4642 * Makefile.in (diagnostic.o): Update.
4643
4644 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4645
4646 * c-common.c (c_unsafe_for_reeval): Rename.
4647 * c-common.h (c_unsafe_for_reeval): Rename.
4648 * c-decl.c (finish_incomplete_decl): Rename.
4649 (c_init_decl_processing): Don't set langhook.
4650 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4651 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4652 * c-objc-common.c (c_objc_common_init): Don't set langhook.
4653 * c-tree.h (finish_incomplete_decl): Rename.
4654 * langhooks-def.h (lhd_unsafe_for_reeval): New.
4655 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
4656 (LANG_HOOKS_INITIALIZER): Update.
4657 * langhooks.c (lhd_unsafe_For_reeval): New.
4658 * langhooks.h (struct langhooks): New hooks.
4659 * toplev.c (incomplete_decl_finalize_hook): Remove.
4660 (wrapup_global_declarations): Update.
4661 * tree.c (lang_unsafe_for_reeval): Remove.
4662 (unsafe_for_reeval): Update.
4663 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
4664 Remove.
4665 objc:
4666 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
4667 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
4668
4669 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
4670
4671 * diagnostic.c (print_error_function): Remove.
4672 (default_print_error_function): Rename.
4673 (report_error_function): Update.
4674 * diagnostic.h (print_error_function): Remove.
4675 (default_print_error_function): Remove.
4676 * langhooks-def.h (struct diagnostic_context): Predeclare.
4677 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
4678 (LANG_HOOKS_INITIALIZER): Update.
4679 * langhooks.h (struct diagnostic context): Predeclare.
4680 (struct lang_hooks): New hook.
4681
4682 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4683
4684 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
4685 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
4686 !flag_pic.
4687 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
4688 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
4689 of PIC_OFFSET_TABLE_REGNUM thruout.
4690 * config/rs6000/rs6000.md: Likewise.
4691 * config/rs6000/darwin.h: Likewise.
4692
4693 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4694
4695 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
4696 unsigned HOST_WIDE_INT, not unsigned int.
4697
4698 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR middle-end/6096, middle-end/6098, middle-end/6099
4701 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
4702 CODE_LABELs.
4703 (fill_slots_from_thread): Likewise.
4704
4705 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4706
4707 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
4708 floating fields in float regs.
4709 (function_arg_record_value_2): Likewise.
4710
4711 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4712
4713 * config/mmix/mmix.md (define_constants): Remove misleading
4714 FIXME. Add MMIX_fp_rO_OFFSET.
4715 ("nonlocal_goto_receiver"): Don't have stack-frame address of
4716 saved rO as part of the pattern. Remove FIXME.
4717 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
4718 here, at output-time.
4719
4720 2002-03-31 Jakub Jelinek <jakub@redhat.com>
4721
4722 PR middle-end/6100
4723 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
4724 REG_BR_PRED.
4725 (output_v9branch): Likewise.
4726
4727 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4728
4729 * gcc.c: Revert previous patch for now.
4730 * config/i386/djgpp.h: Likewise.
4731
4732 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
4733
4734 * config/mmix/crti.asm (_init): Register _fini with atexit.
4735 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
4736
4737 2002-03-31 Richard Henderson <rth@redhat.com>
4738
4739 PR target/3997
4740 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
4741 (ASM_OUTPUT_DEF_FROM_DECLS): New.
4742
4743 2002-03-31 Richard Henderson <rth@redhat.com>
4744
4745 * libgcc2.c (__bb_exit_func): Make static.
4746
4747 * config/alpha/alpha.md (trap): New.
4748
4749 2002-03-31 Richard Henderson <rth@redhat.com>
4750
4751 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
4752 promoted argument types; build trap.
4753 (expand_builtin_trap): New.
4754 (expand_builtin): Use it.
4755 * stmt.c (expand_nl_goto_receivers): Likewise.
4756 * expr.h (expand_builtin_trap): Declare.
4757 * libfuncs.h (LTI_abort, abort_libfunc): New.
4758 * optabs.c (init_optabs): Init abort_libfunc.
4759
4760 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
4761
4762 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
4763 (LINK_COMMAND_SPEC): ... from here.
4764 (init_gcc_specs): Duplicate it here too, omitting
4765 shared_name in the second copy.
4766 (init_spec): Test for duplicate
4767 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
4768
4769 2002-03-30 David S. Miller <davem@redhat.com>
4770
4771 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4772 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
4773
4774 2002-03-30 Roger Sayle <roger@eyesopen.com>
4775 Richard Henderson <rth@redhat.com>
4776
4777 * regmove.c (combine_stack_adjustments_for_block): Avoid
4778 emitting a stack adjustment of zero bytes. Let delete_insn
4779 update bb->head.
4780
4781 2002-03-30 Richard Henderson <rth@redhat.com>
4782
4783 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
4784 (sparc_emitting_epilogue): New.
4785 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
4786 * config/sparc/sparc-protos.h: Update.
4787 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
4788 (TARGET_SWITCHES): Update.
4789 * config/sparc/sparc.md (return): Remove.
4790 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
4791 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
4792 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
4793 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4794 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
4795 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
4796 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
4797 Remove MASK_EPILOGUE.
4798 * doc/invoke.texi: Update.
4799
4800 2002-03-30 Daniel Berlin <dan@dberlin.org>
4801
4802 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
4803 CPP will start the file for us.
4804
4805 2002-03-30 Richard Henderson <rth@redhat.com>
4806
4807 PR target/5446
4808 * config/ia64/ia64.c (group_barrier_needed_p): Special case
4809 prologue_allocate_stack.
4810 (ia64_single_set): Use insn codes for recognition of special
4811 cases, not rtl matching.
4812 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
4813
4814 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
4815
4816 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
4817
4818 2002-03-30 Richard Henderson <rth@redhat.com>
4819
4820 PR target/6032
4821 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
4822 or -fomit-frame-pointer with profiling.
4823 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4824 (FUNCTION_PROFILER): Do nothing.
4825 (PROFILE_HOOK): New.
4826 * config/sparc/sparc.c (sparc_override_options): Don't check
4827 code models for profiling.
4828 (sparc_function_profiler): Remove.
4829 (sparc_profile_hook): New.
4830 * config/sparc/sparc-protos.h: Update.
4831
4832 2002-03-30 Jakub Jelinek <jakub@redhat.com>
4833
4834 PR optimization/6086
4835 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
4836 of SUBREG of volatile MEM or because the MEM was mode dependent,
4837 return CLOBBER instead of unmodified SUBREG.
4838
4839 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
4840
4841 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
4842 when not optimizing.
4843
4844 * toplev.c (rest_of_compilation): Cann mark_constant_function
4845 only when optimizing.
4846
4847 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
4848 are NULL.
4849
4850 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
4851 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
4852 (try_optimize_cfg): clear all AUX fields.
4853
4854 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
4855 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
4856 (ix86_address_cost): Be prepared for SUBREGed registers.
4857 (legitimate_address_p): Accept SUBREGed registers.
4858
4859 2002-03-29 Richard Henderson <rth@redhat.com>
4860
4861 PR target/5672
4862 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
4863
4864 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4865
4866 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4867 for aggregate and TFmode types.
4868
4869 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4870
4871 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4872
4873 2002-03-29 Richard Henderson <rth@redhat.com>
4874
4875 PR target/5886
4876 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4877 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4878
4879 2002-03-29 Richard Henderson <rth@redhat.com>
4880
4881 PR target/6041
4882 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4883 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4884 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4885 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4886 conditional.
4887 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4888
4889 2002-03-29 Dale Johannesen <dalej@apple.com>
4890
4891 * loop.c (combine_movables): Do allow combination of pseudos.
4892
4893 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
4894
4895 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4896 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4897 No functional change except ...
4898 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
4899 * doc/install.texi (*-*-freebsd*): Document port configuration.
4900
4901 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4902
4903 * Makefile.in (convert.o, calls.o, expmed.o): Update.
4904 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4905 Use new hooks.
4906 * builtin-types.def (BT_PTRMODE): Update.
4907 * c-common.c (type_for_size): Rename c_common_type_for_size.
4908 (type_for_mode): Similarly.
4909 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4910 Use new hook.
4911 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4912 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4913 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4914 Redefine.
4915 * c-typeck.c (common_type, comptypes, default_conversion):
4916 Use new hooks.
4917 * calls.c: Include langhooks.h.
4918 (emit_library_call_value_1): Use new hooks. Avoid redundant
4919 calls.
4920 * convert.c: Include langhooks.h
4921 (convert_to_pointer, convert_to_integer): Use new hooks.
4922 * except.c (init_eh): Similarly.
4923 * expmed.c: Include langhooks.h.
4924 (expand_mult_add): Use new hooks.
4925 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4926 try_casesi): Similarly.
4927 * fold-const.c (optimize_bit_field_compare, make_range,
4928 decode_field_reference, fold_truthop, fold): Similarly.
4929 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4930 put_var_into_stack): Similarly.
4931 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4932 LANG_HOOKS_TYPE_FOR_SIZE): New.
4933 (LANG_HOOKS_TYPES_INITIALIZER): Update.
4934 * langhooks.h (lang_hooks_for_types): New hooks.
4935 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4936 * tree.c (get_unwidened, get_narrower): Similarly.
4937 * tree.h (type_for_mode, type_for_size): Remove.
4938 * varasm.c (force_const_mem): Use new hooks.
4939 * utils2.c (nonbinary_modular_operation): Update.
4940 objc:
4941 * objc-act.c (handle_impent): Update.
4942 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4943 Redefine.
4944
4945 2002-03-29 Steve Ellcey <sje@cup.hp.com>
4946
4947 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4948 * config/ia64/ia64.c (basereg_operand): New.
4949 * config/ia64/ia64-protos.h (basereg_operand): Declare.
4950 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4951
4952 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4953
4954 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4955 unwind information when frame_pointer_needed.
4956 (mmix_assemble_integer): Tweak wording in comment.
4957
4958 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4959
4960 * Makefile.in (except.o): Update.
4961 * except.c: Include langhooks.h.
4962 (init_eh): Use langhook.
4963 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4964 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4965 (LANG_HOOKS_INITIALIZER): Update.
4966 * langhooks.h (lang_hooks_for_types): New.
4967 (struct lang_hooks): Add it.
4968 * tree.c (make_lang_type_fn, make_lang_type): Remove.
4969 * tree.h (make_lang_type_fn, make_lang_type): Remove.
4970 config:
4971 * alpha/alpha.c: Include langhooks.h.
4972 (alpha_build_va_list): Use langhook.
4973 * d30v/d30v.c: Include langhooks.h.
4974 (d30v_build_va_list): Use langhook.
4975 * i386/i386.c: Include langhooks.h.
4976 (ix86_build_va_list): Use langhook.
4977 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4978 * s390/s390.c: Include langhooks.h.
4979 (s390_build_va_list): Use langhook.
4980 * stormy16/stormy16.c: Include langhooks.h.
4981 (stormy16_build_va_list): Use langhook.
4982
4983 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4984
4985 PR c++/5964
4986 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4987 attributes.
4988 (length): Compute variable length for branches/calls/jumps here.
4989 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4990 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4991 define branch_type attribute.
4992 (divsi3_sp32): Maximum length is 6 not 7.
4993 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4994 call_address_untyped_struct_value_sp32,
4995 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4996 * config/sparc/sparc.c (empty_delay_slot): New function.
4997 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4998 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4999
5000 2002-03-29 Jakub Jelinek <jakub@redhat.com>
5001
5002 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5003 nonzero_bits if not needed.
5004 (nonzero_bits) [XOR]: Likewise.
5005 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5006 reg_last_set_mode and mode are both MODE_INT, but not equal.
5007 (record_value_for_reg): Compute reg_last_set_nonzero_bits
5008 in nonzero_bits_mode for MODE_INT modes.
5009
5010 2002-03-28 Richard Henderson <rth@redhat.com>
5011
5012 PR target/5715
5013 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5014 to GAS. Correct drift between alternatives.
5015
5016 2002-03-28 Richard Henderson <rth@redhat.com>
5017
5018 PR target/6087
5019 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5020
5021 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
5022
5023 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5024 emulation to the linker.
5025
5026 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
5027
5028 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5029 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5030
5031 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
5032
5033 * combine.c (simplify_and_const_int): Make sure to apply mask
5034 when force_to_mode returns a constant integer. PR3311.
5035
5036 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5037
5038 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5039
5040 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5041
5042 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5043 and Objective-C Dialect Options.
5044
5045 2002-03-28 Richard Henderson <rth@redhat.com>
5046
5047 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5048 comparison should be done vs !=0 not >0 return code. Tidy cases.
5049
5050 2002-03-28 Richard Henderson <rth@redhat.com>
5051
5052 * c-decl.c (finish_function): New arg can_defer_p. Pass it
5053 on to c_expand_body.
5054 * c-tree.h (finish_function): Update decl.
5055 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5056
5057 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
5058
5059 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5060
5061 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
5062
5063 * rtlanal.c: Include flags.h
5064 (may_trap_p): Do not mark FP operations if trapping
5065 if !flag_trapping_math
5066 * Makefile.in (rtlanal.o): Add dependency on flag.h
5067 * ifcvt.c (noce_operand_ok): Avoid the lameness.
5068
5069 2002-03-27 Zack Weinberg <zack@codesourcery.com>
5070
5071 * mips.md: Use dconst1, not 1.0, as first argument of
5072 REAL_VALUE_LDEXP. Don't use union real_extract.
5073
5074 2002-03-28 Alan Modra <amodra@bigpond.net.au>
5075
5076 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5077 rather than $target. Heed program_prefix and
5078 program_transform_name. Search for gas in cross-compiler case too.
5079 "test -x" rather than "test -f".
5080 (gcc_cv_ld): Likewise.
5081 (gcc_cv_nm): Heed program_prefix and program_transform_name.
5082 (gcc_cv_objdump): Likewise.
5083 * configure: Regenerate.
5084
5085 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5086
5087 * Makefile.in (attribs.o): Update.
5088 * attribs.c: Include langhooks.h.
5089 (decl_attributes): Use langhook.
5090 * c-decl.c (insert_default_attributes): Rename.
5091 * c-tree.h (c_insert_default_attributes): New.
5092 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5093 (LANG_HOOKS_INITIALIZER): Update.
5094 * langhooks.h (struct lang_hooks): New hook.
5095 * tree.h (insert_default_attributes): Remove.
5096 objc:
5097 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5098
5099 2002-03-27 Andreas Schwab <schwab@suse.de>
5100
5101 * config/i386/i386.c (classify_argument): Also check for
5102 QUAL_UNION_TYPE.
5103
5104 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5105
5106 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5107 any more.
5108
5109 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
5110
5111 * i960.md (ret): Set PC.
5112 (nonlocal_goto): Fix expander.
5113 * builtins.c (epxand_builin_longjmp): Check that we've emitted
5114 some jump or call.
5115
5116 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
5117
5118 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5119 of libcall regions.
5120
5121 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5122
5123 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5124 assigning to BLOCK_FOR_INSN directly.
5125
5126 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
5127
5128 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5129
5130 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5131
5132 * c-common.c (c_expand_expr): Fix prototype.
5133 * c-common.h (c_expand_expr): Always declare, update.
5134 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5135 * c-objc-common.c (c_objc_common_init): No global hook.
5136 * expr.c (expand_expr): Use langhook.
5137 * expr.h (enum expand_modifier): Conditionally declare.
5138 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5139 (LANG_HOOKS_INITIALIZER): Update.
5140 * langhooks.c (lhd_expand_expr): New.
5141 * langhooks.h (struct lang_hooks): New hook.
5142 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5143 (lang_independent_init): Don't default hook.
5144 objc:
5145 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5146
5147 2002-03-27 Richard Henderson <rth@redhat.com>
5148
5149 PR target/6054
5150 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5151 TARGET_CONST_GP. Simplify conditions.
5152
5153 2002-03-27 Richard Henderson <rth@redhat.com>
5154
5155 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5156 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5157 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5158
5159 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
5160
5161 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5162 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5163 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5164 Remove unnecessary masks.
5165 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5166 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5167 -mwindows, -mdll switches and their negations.
5168
5169 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
5170
5171 * gcc-common.c (lang_mark_false_label_stack): Remove.
5172 * ggc.h (lang_mark_false_label_stack): Similarly.
5173
5174 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
5175
5176 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
5177
5178 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
5179 or __rtems_ is defined.
5180
5181 2002-03-26 Richard Henderson <rth@redhat.com>
5182
5183 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
5184 if a non-trivial load was emitted.
5185 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
5186 in high+extra+low case.
5187
5188 2002-03-26 Richard Henderson <rth@redhat.com>
5189
5190 * config.gcc (sparc*-solaris): Use float_format=sparc.
5191
5192 2002-03-26 Richard Henderson <rth@redhat.com>
5193
5194 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5195 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
5196 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
5197 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
5198 (WINT_TYPE_SIZE): Fix at 32.
5199
5200 2002-03-26 Richard Henderson <rth@redhat.com>
5201
5202 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
5203 until after eh landing pad generation.
5204 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
5205 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
5206
5207 2002-03-26 Richard Henderson <rth@redhat.com>
5208
5209 * expr.h (ADD_PARM_SIZE): One more convert for INC.
5210
5211 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
5212
5213 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
5214 and warning switches.
5215 (cc1_options): Likewise.
5216
5217 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
5218
5219 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
5220 Restore more of the signal context. Set no_reg_stack_frame.
5221 * config/ia64/unwind-ia64.c (unw_state_record):
5222 Add no_reg_stack_frame, comments.
5223 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
5224 (uw_update_context): Adjust bsp when unwinding from leaf,
5225 but not signal frame.
5226
5227 2002-03-26 David Edelsohn <edelsohn@gnu.org>
5228
5229 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
5230
5231 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5232
5233 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
5234
5235 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5236
5237 PR target/5621
5238 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
5239 "Add a pool_range attribute", which was lost during the ARM/Thumb
5240 merge.
5241
5242 2002-03-26 Bob Wilson <bob.wilson@acm.org>
5243
5244 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
5245 a register into the MAC16 accumulator.
5246
5247 2002-03-26 Andrew Cagney <ac131313@redhat.com>
5248
5249 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
5250 (Warning Options): Document -Wswitch-enum.
5251 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
5252 -Wswitch.
5253 (warn_switch_enum): Define variables.
5254 * flags.h (warn_switch_enum): Declare variables.
5255 * stmt.c (expand_end_case_type): When warn_switch_enum /
5256 -Wswitch-enum, perform switch checks.
5257 Fix PR c/5044.
5258
5259 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
5260
5261 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
5262 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
5263 (reload_muladdsi_compare0_scratch): Delete.
5264
5265 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
5266
5267 * doc/install.texi (*-*-freebsd*): Update.
5268
5269 2002-03-26 Richard Henderson <rth@redhat.com>
5270
5271 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
5272 (SUB_PARM_SIZE): Cast DEC to ssizetype.
5273
5274 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
5275 types from the normal argument frame.
5276
5277 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
5278 variable sized objects by reference.
5279 (sparc_va_arg): Receive them by reference too.
5280
5281 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
5282
5283 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
5284 code to not restoring global registers.
5285
5286 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
5287
5288 * Makefile.in (ggc-common.o): Update.
5289 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
5290 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5291 * c-tree.h (c_mark_tree): New.
5292 * ggc-common.c: Include langhooks.h.
5293 (gcc_mark_trees): Use new langhook.
5294 * ggc-callbacks.c: Delete file.
5295 * ggc.h (lang_mark_tree): Remove.
5296 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
5297 (LANG_HOOKS_INITIALIZER): Update.
5298 * langhooks.h (struct lang_hooks): New hook.
5299 objc:
5300 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
5301
5302 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5303
5304 * doc/cpp.texi: Exclude entire Top node from printed manual.
5305 Move option index after directive index. Insert page breaks
5306 before GFDL and concept index. Index environment variables
5307 with command line options.
5308 * doc/cppenv.texi: Use @vtable for environment variable list.
5309 Add paragraph explaining semantics of empty elements in path
5310 variables. Exclude a cross-reference to Fishkill from the
5311 manpage. Remove an unnecessary cross-reference of the entry
5312 right above the referer. Don't use @anchor in text that goes
5313 into manpage.
5314 * doc/cppopts.texi: Cross-reference the environment variables
5315 section, not the specific environment variable, for consistency.
5316
5317 2002-03-25 Richard Henderson <rth@redhat.com>
5318
5319 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
5320 anywhere in the block. Don't refer to insns that have been
5321 removed from the chain. Iterate backward through the new insns.
5322 Don't refer to edges that have been removed.
5323
5324 2002-03-26 Alan Modra <amodra@bigpond.net.au>
5325
5326 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
5327 test for overflow of constant.
5328
5329 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
5330
5331 PR target/2623
5332 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
5333 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
5334 these patterns on arm_archv4.
5335
5336 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
5337
5338 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
5339 int".
5340
5341 2002-03-25 Zack Weinberg <zack@codesourcery.com>
5342
5343 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
5344 float_handled, float_handler, float_signal, set_float_handler,
5345 and do_float_handler. Set handler for SIGFPE to crash_signal.
5346 * toplev.h: Don't prototype do_float_handler.
5347
5348 * c-lex.c: Fold parse_float into lex_number. Make warning
5349 about portability of hex float constants more informative, and
5350 don't issue it on top of a syntax error.
5351 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
5352 their callers.
5353 * real.h: Define REAL_VALUE_ABS here...
5354 * simplify-rtx.c: ... not here. Fold check_fold_consts,
5355 simplify_unary_real, simplify_binary_real, and
5356 simplify_binary_is2orm1 into their callers.
5357 * tree.c: Fold build_real_from_int_cst_1 into caller.
5358
5359 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
5360
5361 * tsystem.h: Include float.h here...
5362 * libgcc2.c: ... not here.
5363
5364 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
5365
5366 Fixes for: PR bootstrap/3591, target/5676
5367 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
5368 defined. Do not disable exceptions or rtti.
5369 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
5370 mcore.h. Disable exceptions and rtti, since they are not
5371 supported by EPOC.
5372
5373 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
5374
5375 * c-decl.c (maybe_build_cleanup): Remove.
5376 * expr.c (expand_expr): Use langhook.
5377 * langhooks-def.h (lhd_return_null_tree,
5378 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
5379 (LANGHOOKS_INITIALIZER): Update.
5380 * langhooks.c (lhd_return_null_tree): New.
5381 * langhooks.h (struct lang_hooks): New hook.
5382 * tree-inline.c (initialize_inlined_parameters): Use langhook.
5383 * tree.h (maybe_build_cleanup): Remove.
5384
5385 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5386
5387 * regrename.c (build_def_use): Move recog_memoized
5388 before extract_insn.
5389
5390 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5391
5392 PR target/6043
5393 * expr.c (emit_group_store): Handle storing into CONCAT.
5394
5395 2002-03-25 Jakub Jelinek <jakub@redhat.com>
5396
5397 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
5398 corresponding MATCH_DUP.
5399
5400 2002-03-24 Richard Henderson <rth@redhat.com>
5401
5402 * unroll.c (unroll_loop): Zero label_map.
5403
5404 * gcse.c: Include except.h.
5405 * Makefile.in (gcse.o): Update.
5406
5407 2002-03-24 Richard Henderson <rth@redhat.com>
5408
5409 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
5410 Do resolve_unique_section before shared data clause.
5411
5412 2002-03-24 Richard Henderson <rth@redhat.com>
5413
5414 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
5415
5416 2002-03-24 Richard Henderson <rth@redhat.com>
5417
5418 * recog.c (peephole2_optimize): Split blocks when EH insns are
5419 generated in the middle of a block. Do global life update if
5420 zapped EH edges.
5421
5422 2002-03-24 Richard Henderson <rth@redhat.com>
5423
5424 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
5425
5426 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5427
5428 preprocessor/3951
5429 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
5430 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
5431 (init_dependency_output): Don't make no_output decision here.
5432
5433 2002-03-24 Andrew Cagney <ac131313@redhat.com>
5434
5435 * stmt.c (check_for_full_enumeration_handling): Remove tests of
5436 warn_switch. Update description.
5437 (expand_end_case_type): Call check_for_full_enumeration_handling
5438 when warn_switch.
5439
5440 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5441
5442 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
5443 (m68hc11_split_move): Call it to see if the source and destination
5444 operands use the same direction auto inc/dec mode, otherwise make the
5445 source an offsetable memory operand and generate an add.
5446
5447 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5448
5449 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
5450 register for operand 2.
5451 ("*subsi3_zero_extendqi"): Likewise.
5452 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
5453 bits so that it is compatible with a pop.
5454 ("*andhi3_gen"): Likewise.
5455 ("xorhi3"): Likewise.
5456
5457 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5458
5459 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
5460 -pedantic here...
5461 (cpp_post_options): ... not here.
5462
5463 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
5464 Aldy Hernandez <aldyh@redhat.com>
5465
5466 Removal of separate preprocessor cpp0.
5467
5468 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
5469 cpp0, install-common): Update.
5470 * c-common.c (flag_preprocess_only): New.
5471 (c_common_init): Preprocess for -E.
5472 * c-common.h (flag_preprocess_only): New.
5473 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
5474 * c-objc-common.c (c_init_decl_processing): Exit quickly
5475 for NULL return from c_common_init.
5476 * cpplib.h (cpp_preprocess_file): New.
5477 * cppmain.c (main, general_init, pfile, progname): Remove.
5478 (do_preprocessing): Rename cpp_preprocess_file, don't call
5479 cpp_finish. Don't close stdout here.
5480 (setup_callbacks): Update prototype.
5481 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
5482 Update.
5483 * tradcpp.c (main): Ignore -quiet.
5484 objc:
5485 * lang-specs.h (default_compilers): Preprocess with cc1obj.
5486
5487 2002-03-24 Richard Henderson <rth@redhat.com>
5488
5489 PR optimization/5742
5490 * machmode.def: Add inner mode field to complex modes.
5491 * config/mips/mips.c (mips_function_value): Always define. Add
5492 new argument to handle libcalls.
5493 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
5494 (FUNCTION_VALUE): Likewise.
5495 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
5496 * config/mips/mips-protos.h: Update.
5497
5498 2002-03-23 Richard Henderson <rth@redhat.com>
5499
5500 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
5501 * config/sparc/sparc-protos.h: Update.
5502 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
5503
5504 2002-03-23 Richard Henderson <rth@redhat.com>
5505
5506 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
5507 _start or _init begins the text segment.
5508
5509 2002-03-23 David Edelsohn <edelsohn@gnu.org>
5510
5511 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
5512 not HOST_WIDEST_INT.
5513 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
5514
5515 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
5516
5517 PR java/5489
5518 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
5519 operand argument to output_return_instruction.
5520 * arm.c (arm_print_operand, case 'd'): If the operand is
5521 const_true_rtx then just return.
5522 (arm_print_operand, case 'D'): If the operand is const_true_rtx
5523 then abort.
5524
5525 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5526
5527 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
5528 (Warning Options): Document -Wswitch-default.
5529 * toplev.c (W_options): Add -Wswitch-default. Update comment on
5530 -Wswitch.
5531 (warn_switch_default): Define variable.
5532 (warn_switch): Update comment.
5533 * flags.h (warn_switch_default): Declare variable.
5534 (warn_switch): Update comment.
5535 * stmt.c (expand_end_case): Check for and, when
5536 warn_switch_no_default, warn of a missing default case.
5537
5538 2002-03-23 Alan Modra <amodra@bigpond.net.au>
5539
5540 * real.h (N): Special case 128 bit doubles.
5541
5542 * combine.c (simplify_comparison): When widening modes, ignore
5543 sign extension on CONST_INTs.
5544
5545 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5546
5547 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
5548 passed to adjust_address. Fix comment formatting.
5549
5550
5551 2002-03-22 Zack Weinberg <zack@codesourcery.com>
5552
5553 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
5554 Always make REAL_VALUE_TYPE a struct containing an array of
5555 HOST_WIDE_INT, not a double. Tidy up the code deciding how
5556 big it is. Don't declare or use union real_extract.
5557
5558 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
5559 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
5560 (print_operand), config/arm/arm.c (output_move_double),
5561 config/arm/arm.md (consttable_4, consttable_8),
5562 config/romp/romp.c (output_fpops), config/s390/s390.h
5563 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
5564 (xtensa_output_literal): Don't use union real_extract.
5565
5566 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
5567 (sfmode_constant_to_ulong), config/ns32k/merlin.h
5568 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
5569 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
5570 (PRINT_OPERAND): Don't use local version of union
5571 real_extract.
5572
5573 * config/convex/convex.c (check_float_value), config/vax/vax.c
5574 (vax_float_literal), config/m88k/m88k.md (divdf3),
5575 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
5576 config/pdp11/pdp11.c (output_move_quad): Don't do host
5577 arithmetic on target floating point quantities.
5578
5579 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
5580 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
5581
5582 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
5583 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
5584
5585 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
5586 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
5587 INFINITY.
5588 * print-rtl.c (print_rtx): Disable code which needs
5589 floating-point emulator.
5590 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
5591 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
5592 depending on HOST_FLOAT_FORMAT to be defined properly.
5593
5594 * config/1750a/1750a.c (get_double, float_label): Delete.
5595 (print_operand): Delete huge commented-out chunk. Use
5596 REAL_VALUE_TO_DECIMAL.
5597 * config/1750a/1750a-protos.h: Delete prototypes of deleted
5598 functions.
5599 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
5600 IEEE_FLOAT_FORMAT.
5601 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
5602 Use REAL_VALUE_TO_DECIMAL as ELF version does.
5603 * config/m88k/m88k.c (real_power_of_2_operand,
5604 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
5605 real_extract out of the union; run the input through
5606 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
5607 from that into the union.
5608 * config/pdp11/pdp11.c (output_move_double): Rearrange
5609 parentheses to make automatic indenter happy.
5610
5611 * doc/tm.texi (Cross-compilation): Rename node to "Floating
5612 Point" and rewrite to describe current situation. Also adjust
5613 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
5614 match code.
5615 * doc/rtl.texi: Adjust cross reference.
5616
5617 2002-03-22 Bob Wilson <bob.wilson@acm.org>
5618
5619 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
5620 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
5621 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
5622 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
5623 prevent use of sp as a reload register.
5624 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
5625 non_acc_reg_operand.
5626 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
5627 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
5628 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5629 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
5630
5631 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5632
5633 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
5634 * cpplex.c (unterminated): Delete.
5635 (parse_string): No string literal may extend over multiple
5636 lines. Suppress the error when preprocessing assembly.
5637 * cppmain.c (scan_translation_unit): Strings are single-line.
5638
5639 * doc/cpp.texi: Update to match.
5640
5641 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5642
5643 PR optimization/5854
5644 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
5645 Shut up warnings.
5646 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
5647 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
5648 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
5649 const0 if scratch register was not allocated.
5650 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
5651 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
5652 with GEN_INT (...).
5653 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
5654 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
5655 with GEN_INT (...) everywhere. Remove constraints in define_split
5656 patterns.
5657 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
5658 require scratch register for setting 0 into regs/non-pushable memory.
5659
5660 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5661
5662 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
5663 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
5664
5665 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
5666
5667 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
5668 * cppinit.c (cpp_create_reader): On by default.
5669 (cpp_handle_option): Handle -W[no-]endif-labels.
5670 (cpp_post_options): Also enable if -pedantic.
5671 * cpplib.c (do_else): Use it.
5672 (do_endif): Likewise.
5673 * doc/cppopts.texi: Document new option.
5674 * doc/invoke.texi: Document new option.
5675
5676 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
5677
5678 * config/i386/i386.c, config/i386/i386.md: Change all occurences
5679 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
5680
5681 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
5682
5683 * flow.c (calculate_global_regs_live): Clear aux fields of
5684 ENTRY and EXIT.
5685
5686 2002-03-22 Jakub Jelinek <jakub@redhat.com>
5687
5688 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
5689 REG or MEM subregs, pass rtx * instead of rtx to it.
5690 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
5691 rtx * instead of rtx to alter_subreg.
5692 * config/m32r/m32r.c (gen_split_move_double): Likewise.
5693 * config/pj/pj.c (pj_output_rval): Likewise.
5694
5695 2002-03-22 Richard Henderson <rth@redhat.com>
5696
5697 PR target/3177
5698 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
5699 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
5700 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
5701 (ia64_expand_prologue): Look at int_regs, not words, for number
5702 of incomming int regs.
5703
5704 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
5705
5706 * expr.c (expand_expr): A RESULT_DECL is part of a call.
5707
5708 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
5709
5710 * toplev.c (flag_loop_optimize, flag_crossjumping):
5711 New static variables.
5712 (rest_of_compilation): Conditionalize crossjumping and
5713 loop optimizer.
5714 (parse_options_and_default_flags): Default loop_optimize and
5715 crossjumping.
5716 (lang_independent_options): Add -fcrossjumping and -floop-optimize
5717 * invoke.texi (crossjumping, loop-optimize): Document.
5718
5719 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5720
5721 * real.c (eiisneg): Move outside #ifdef NANS.
5722
5723 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
5724
5725 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
5726 frequencies match; avoid match on different loop depths.
5727 (try_crossjump_to_bb): Kill tests that no longer brings time
5728 savings.
5729 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
5730 updating code.
5731 (split_edge): Likewise.
5732
5733 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
5734 variable.
5735
5736 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
5737 * cfgrtl.c: Include insn-config.h
5738 (split_block) Dirtify block in presence of conditional execution
5739
5740 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5741
5742 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
5743 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
5744 (function_arg): Constify CUMULATIVE_ARGS.
5745 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
5746 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
5747 (UNITS_PER_DOUBLE): New macro.
5748 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
5749 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
5750 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
5751 fp_regs and stack_words.
5752 (EABI_FLOAT_VARARGS_P): New macro.
5753 * config/mips/mips.c (struct mips_arg_info): New.
5754 (mips_arg_info): New function.
5755 (function_arg_advance): Use it. Add adjustment instructions here
5756 rather than in function_arg.
5757 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
5758 for VOIDmode at the beginning of the function.
5759 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
5760 (function_arg_pass_by_reference): Likewise.
5761 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
5762 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
5763 (mips_va_start): Likewise. Use the new stack_words field of
5764 CUMULATIVE_ARGS to set up overflow area. Reformat.
5765 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
5766 doubles and other types, aligning the overflow pointer for non-doubles
5767 too. Remove some code duplication. Replace hard-coded constants.
5768
5769 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
5770
5771 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
5772 (CLASS_UNITS): Undefine.
5773 (CLASS_MAX_NREGS): Use FP_INC.
5774 * config/mips/mips.c (compute_frame_size): Likewise.
5775 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
5776
5777 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
5778
5779 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
5780 prototype, and handle lexing numbers and identifiers.
5781 (parse_identifier): Update to new form of parse_slow.
5782 (parse_number): Fast path only, use parse_slow otherwise.
5783 (_cpp_lex_direct): Update calls to parse_number.
5784
5785 2002-03-21 DJ Delorie <dj@redhat.com>
5786
5787 * bb-reorder.c (make_reorder_chain_1): Protect against
5788 when redundant edges are omitted.
5789 * predict.c (dump_prediction): Likewise.
5790
5791 2002-03-21 Richard Henderson <rth@redhat.com>
5792
5793 PR target/5996
5794 * fixinc/inclhack.def (solaris_stdio_tag): New.
5795 * fixinc/fixincl.x: Regenerate.
5796
5797 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5798
5799 PR c/5597
5800 * c-typeck.c (process_init_element): Flag non-static
5801 initialization of a flexible array member as illegal.
5802
5803 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5804
5805 * config/rs6000/t-linux64: New.
5806 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
5807 t-ppccomm. Use t-rs6000 and t-linux64.
5808 (powerpc64-*-gnu* <tmake_file>): Likewise.
5809 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
5810 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
5811 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
5812
5813 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
5814
5815 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
5816 flag_really_no_inline instead of optimize == 0.
5817
5818 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
5819
5820 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
5821
5822 * flags.h (flag_really_no_inline): New.
5823
5824 * c-common.c (c_common_post_options): Initialize
5825 flag_really_no_inline.
5826
5827 * toplev.c (flag_really_no_inline): New.
5828
5829 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5830
5831 * config/avr/avr.md (length): Fix length computation for
5832 conditional branches.
5833
5834 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
5835
5836 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
5837 sdbout.o, profile.o): Update.
5838 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
5839 langhook.
5840 * c-common.h (gettags): Move here from tree.h.
5841 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
5842 insert_block, getdecls, kept_level_p, global_bindings_p): New.
5843 * dbxout.c (dbxout_init): Use getdecls langhook.
5844 * expr.c (expand_expr): Use insert_block langhook.
5845 * fold-const.c: Include langhooks.h.
5846 (fold_range_test, fold_binary_op_with_conditional_arg,
5847 fold): Use global_bindings_p langhook.
5848 * integrate.c (expand_inline_function): Use insert_block langhook.
5849 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
5850 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
5851 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
5852 LANG_HOOKS_GETDECLS): New.
5853 (LANG_HOOKS_INITIALIZER): Update.
5854 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
5855 langhook.
5856 * langhooks.h (struct lang_hooks_for_decls): New.
5857 (struct lang_hooks): Update.
5858 * profile.c: Include langhooks.h.
5859 (output_func_start_profiler): Use new langhooks.
5860 * sdbout.c: Include langhooks.h.
5861 (sdbout_init, sdbout_finish): Use getdecls langhook.
5862 * stmt.c: Include langhooks.h.
5863 (expand_fixup, fixup_gotos): Use new langhooks.
5864 * stor-layout.c: Include langhooks.h.
5865 (variable_size): Use global_bindings_p langhook.
5866 * toplev.c (compile_file): Use getdecls langhook.
5867 * tree-inline.c (remap_block): Use insert_block langhook.
5868 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5869 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5870
5871 2002-03-21 Richard Henderson <rth@redhat.com>
5872
5873 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5874 constants in .data when -fpic.
5875
5876 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5877
5878 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5879 where appropriate.
5880
5881 2002-03-21 Tom Tromey <tromey@redhat.com>
5882
5883 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
5884
5885 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5886
5887 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5888
5889 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5890
5891 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
5892 Richard Henderson <rth@redhat.com>
5893
5894 PR c/5354
5895 * c-common.c (c_expand_expr): Preserve result of a statement
5896 expression if needed.
5897
5898 2002-03-21 Jakub Jelinek <jakub@redhat.com>
5899
5900 PR bootstrap/4195
5901 * genrecog.c (maybe_both_true_mode): Remove.
5902 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5903 * machmode.def (Pmode): Likewise.
5904
5905 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
5906
5907 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5908 (nonlocal_mentioned_p_1): New function.
5909 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5910 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5911 (mark_constant_function): Recognize pure functions.
5912 * rtl.h (global_reg_mentioned_p): New prototype.
5913 * rtlanal.c (global_reg_mentioned_p,
5914 global_reg_mentioned_p_1): New function.
5915
5916 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5917
5918 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5919 UNIX assert.h.
5920 * fixinc/fixincl.x: Regenerate.
5921
5922 2002-03-20 Jason Merrill <jason@redhat.com>
5923
5924 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5925
5926 2002-03-20 Michael Meissner <meissner@redhat.com>
5927
5928 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5929 -fstrict-aliasing.
5930
5931 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5932
5933 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5934 ".literal_position" directive before the constant pool.
5935
5936 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5937
5938 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5939 Add Craig Rodrigues.
5940 Add Brad Lucier to testers.
5941
5942 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5943
5944 PR target/4792
5945 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5946 to if_then_else.
5947 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5948 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5949 instead of insn_extract.
5950
5951 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5952
5953 PR bootstrap/4192
5954 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5955
5956 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5957 stmt if some case has been output.
5958
5959 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5960
5961 PR c/5972
5962 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5963 movsfcc_1, movdfcc_1): Add %O2.
5964 * config/i386/i386.c (print_operand): Handle %ON.
5965 Print . before float condition codes in Sun as cmov syntax.
5966 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5967 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5968 no longer true.
5969
5970 2002-03-20 Philip Blundell <pb@nexus.co.uk>
5971
5972 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5973 return instruction if PC was popped.
5974
5975 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5976
5977 * config/xtensa/xtensa.md: Remove unused type attributes.
5978 (adddi_carry, subddi_carry): Change type attribute to "multi".
5979
5980 2002-03-19 Dale Johannesen <dalej@apple.com>
5981
5982 PR optimization/5999, middle-end/5731
5983 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5984 multiplications by reciprocals.
5985
5986 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
5987
5988 * Makefile.in: Update.
5989 * c-common.c: Include langhooks.h.
5990 (inline_forbidden_p): Use new hook.
5991 * diagnostic.c: Include langhooks.h.
5992 (format_with_decl, announce_function,
5993 default_print_error_function): Use new hook.
5994 * dwarf2out.c (dwarf2_name): Use new hook.
5995 * function.c: Include langhooks.h.
5996 (init_function_start): Use new hook.
5997 * langhooks-def.h (lhd_decl_printable_name): New.
5998 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5999 (LANGHOOKS_INITIALIZER): Update.
6000 * langhooks.c (lhd_decl_printable_name): New.
6001 * langhooks.h (struct lang_hooks): New hook.
6002 * toplev.c (decl_name, decl_printable_name): Remove.
6003 (open_dump_file): Use new hook.
6004 (process_options): Remove old hook.
6005 * tree.h (decl_printable_name): Remove.
6006 objc:
6007 * objc-act.c (objc_init): Remove old hook.
6008 (objc_printable_name): Export.
6009 * objc-act.h (objc_printable_name): New.
6010 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6011
6012 2002-03-19 Jim Blandy <jimb@redhat.com>
6013
6014 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6015 the start_source_file debug hook, not the current line number.
6016
6017 2002-03-19 Richard Henderson <rth@redhat.com>
6018
6019 * flow.c (EH_USES): Provide default.
6020 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6021 * doc/tm.texi (EH_USES): New.
6022
6023 * config/ia64/ia64.c (ia64_eh_uses): New.
6024 * config/ia64/ia64-protos.h: Update.
6025 * config/ia64/ia64.h (EH_USES): New.
6026
6027 2002-03-19 Richard Henderson <rth@redhat.com>
6028
6029 * varasm.c (output_constant_def): Fix stupid typo.
6030
6031 2002-03-19 Richard Henderson <rth@redhat.com>
6032
6033 PR 5879
6034 * except.c (current_function_has_exception_handlers): New.
6035 * except.h: Declare it.
6036 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6037 Combine tests that disable all sibcalls for the function.
6038
6039 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
6040
6041 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6042 for INTEGER_CST.
6043
6044 2002-03-19 Richard Henderson <rth@redhat.com>
6045
6046 PR 5977, 5991
6047 * config/ia64/ia64.c: Revert 2002-03-01 patch.
6048 * config/ia64/ia64.h (INIT_EXPANDERS): New.
6049
6050 2002-03-19 Jim Blandy <jimb@redhat.com>
6051
6052 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6053 name, even if the replacement list contains no tokens, as required
6054 by Dwarf.
6055
6056 2002-03-19 Jason Merrill <jason@redhat.com>
6057
6058 * varasm.c (globalize_decl): Get the name from the RTL, not
6059 DECL_ASSEMBLER_NAME.
6060
6061 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6062
6063 2002-03-19 Bob Wilson <bob.wilson@acm.org>
6064
6065 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6066 subdi_carry): Define.
6067
6068 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6069
6070 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6071 about -fpic/-fPIC if extra_warnings set.
6072
6073 2002-03-19 David Edelsohn <edelsohn@gnu.org>
6074
6075 * expr.c (expand_expr): Sign-extend CONST_INT generated from
6076 TREE_STRING_POINTER.
6077 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6078
6079 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6080
6081 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6082 in favor of SP if FRAME_POINTER_REQUIRED is false.
6083
6084 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
6085
6086 * emit-rtl.c (gen_int_mode): New function.
6087 * rtl.h: Prototype for it.
6088 * combine.c (make_extraction, simplify_comparison), expmed.c
6089 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6090 (convert_modes, store_field), optabs.c (expand_fix),
6091 simplify-rtx.c (neg_const_int, simplify_unary_real),
6092
6093 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6094 Use it instead of GEN_INT (trunc_int_for_mode (...)).
6095
6096 2002-03-19 Jakub Jelinek <jakub@redhat.com>
6097
6098 PR c/5656
6099 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6100 convert_parm_for_inlining.
6101 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6102 Define.
6103 * langhooks-def.h: Likewise.
6104 * objc/objc-lang.c: Likewise.
6105 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6106 function.
6107 * tree-inline.c (initialize_inlined_parameters):
6108 Call convert_parm_for_inlining lang hook if needed.
6109 * c-typeck.c (c_convert_parm_for_inlining): New function.
6110 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6111
6112 2002-03-18 Mark Mitchell <mark@codesourcery.com>
6113
6114 * calls.c (precompute_arguments): Do not assume that temporaries
6115 can be destroyed after expanding the argument.
6116 (expand_call): Likewise.
6117
6118 2002-03-15 Eric Christopher <echristo@redhat.com>
6119
6120 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6121 Fix register preference on last change.
6122 * config/mips/mips.c (mips_return_in_memory): New function.
6123 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6124 * config/mips/mips-protos.h: Declare.
6125 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6126 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6127
6128 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6129
6130 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6131 a register too.
6132 (anddi3, iorsi3): Likewise.
6133
6134 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6135 use %gprel for symbols that are going to be placed in linkonce
6136 sections.
6137
6138 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6139 RETURN_ADDRESS_POINTER_REGNUM to $ra.
6140 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6141 not needed. Disregard leaf_function_p().
6142 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6143 mips16 frame pointer.
6144 * config/mips/mips.md (store ra): Only to small SP offsets.
6145 2001-08-22 Graham Stott <grahams@redhat.com>
6146 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6147 return a REG rtx for the return address register.
6148
6149 2002-03-18 Bob Wilson <bob.wilson@acm.org>
6150
6151 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6152 constant-pool addresses as "mode-dependent".
6153 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6154
6155 2002-03-18 Jakub Jelinek <jakub@redhat.com>
6156
6157 PR target/5740
6158 * expr.c (emit_group_load): Use extract_bit_field if
6159 needed for CONCAT arguments.
6160
6161 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
6162
6163 PR target/4863
6164 * arm.md (tablejump): Make this a define_expand. For PIC add the
6165 offset to the base of the table.
6166 (thumb_tablejump): Matcher for Thumb tablejump insn.
6167 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6168 as the difference of two labels.
6169 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6170 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6171 tables in the code.
6172 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6173 * arm.c (get_jump_table_size): If the table is not in the text
6174 section, return zero.
6175
6176 2002-03-18 Bernd Schmidt <bernds@redhat.com>
6177
6178 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
6179 of gen_rtx_SUBREG.
6180 (arm_reload_out_hi): Use gen_lowpart instead of
6181 gen_rtx_SUBREG to access QImode components.
6182 * config/arm/arm.md: Disable zero_extend split for QImode
6183 subregs in BIG_ENDIAN mode.
6184 (storehi_bigend): Match use of least significant byte.
6185 (storeinthi): Remove extraneous SUBREG.
6186 Add missing construction of operands[2].
6187 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
6188 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
6189 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
6190
6191 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
6192
6193 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
6194 any_operand.
6195
6196 2002-03-17 Richard Henderson <rth@redhat.com>
6197
6198 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
6199 explicitly.
6200
6201 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6202
6203 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
6204 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
6205
6206 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6207
6208 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
6209
6210 * predict.c (estimate_bb_frequencies): Delete unused variables.
6211
6212 2002-03-17 Richard Henderson <rth@redhat.com>
6213
6214 * config/ia64/ia64.c (ia64_attribute_table): Move before
6215 targetm definition. Make static.
6216
6217 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
6218
6219 * c-common.h (yyparse, c_common_parse_file): New.
6220 * c-lang.c: Include c-common.h.
6221 (LANG_HOOKS_PARSE_FILE): Redefine.
6222 * c-lex.c: Include c-common.h.
6223 (yyparse): Rename c_common_parse_file. Call yyparse.
6224 * c-parse.in (yyparse): Remove macro.
6225 * c-tree.h (yyparse_1): Remove.
6226 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
6227 (LANG_HOOKS_INITIALIZER): Update.
6228 * langhooks.h (struct lang_hoooks): New hook parse_file.
6229 * toplev.c (compile_file): Use parse_file hook.
6230 * tree.h (yyparse): Remove.
6231 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
6232
6233 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
6234
6235 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
6236 float_truncate, not fix.
6237 ("*truncdfsf2_real"): Ditto.
6238 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
6239
6240 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
6241
6242 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
6243
6244 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
6245 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
6246 where appropriate. Make the second reference to
6247 leaf_function_p a function call, as intended. Reindented.
6248
6249 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
6250 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
6251
6252 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
6253 add register to non-constant into sp.
6254
6255 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
6256 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
6257 (mips16_gp_pseudo_rtx): Lose.
6258 (INIT_EXPANDERS): Deleted.
6259 * config/mips/mips.c (mips_init_machine_status): New.
6260 (mips_free_machine_status): New.
6261 (mips_mark_machine_status): New.
6262 (override_options): Set them.
6263 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
6264 (struct machine_function): ... new. Replaced all references.
6265 (mips_add_gc_roots): Don't mark them.
6266 (embedded_pic_fnaddr_reg): New, extracted from...
6267 (embedded_pic_offset): ... here.
6268 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
6269 (movsi): Likewise.
6270
6271 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6272
6273 * cppinit.c: Revert -MD removal.
6274
6275 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6276
6277 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
6278 soft registers by default for 68HC12.
6279 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
6280 when compiling with -fomit-frame-pointer.
6281 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
6282 (expand_epilogue): Likewise.
6283 (m68hc11_gen_rotate): Use exg when rotating by 8.
6284
6285 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6286
6287 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
6288 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
6289 (splits): Remove unused add splits.
6290 ("*addhi3_68hc12"): Tune constraints.
6291 ("addhi_sp"): Try to use X instead of Y in all cases and if the
6292 constant fits in 8-bits and D is dead use abx/aby instructions.
6293 ("*addhi3"): Remove extern declaration of ix_reg.
6294 ("*subsi3"): Optimize and provide new split.
6295 ("subhi3"): Cleanup.
6296 ("*subhi3_sp"): Avoid saving X if we know it is dead.
6297 (arith splits): For 68hc12 save the address register on the stack
6298 and do the arithmetic operation with a pop.
6299
6300 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6301
6302 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
6303 allocating QImode in address registers.
6304 ("*movqi_m68hc11"): Likewise.
6305
6306 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
6307
6308 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
6309
6310 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
6311
6312 * cppinit.c (print_help): Display -MD and -MMD.
6313 Don't display usage string. Update assertion syntax and
6314 typo.
6315 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
6316 (cpp_handle_option): Update.
6317
6318 2002-03-15 Chris Demetriou <cgd@broadcom.com>
6319
6320 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
6321 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
6322 and define it so that regardless of target CPU size,
6323 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
6324 of "int" rather than "long."
6325
6326 2002-03-15 Richard Henderson <rth@redhat.com>
6327
6328 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
6329 size as a tree.
6330
6331 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6332
6333 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
6334 ("tstqi" split): Avoid using memory for tstqi on address register.
6335 (splits): Remove constraints.
6336 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
6337 ("cmpdf", "cmpsf"): Remove since not used.
6338 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
6339 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
6340
6341 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6342
6343 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
6344 ("neghi2"): Tighten constraints.
6345 ("one_cmplsi2"): Optimize and simplify split.
6346 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
6347
6348 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6349
6350 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
6351 and split of AND operation to clear the upper bits.
6352 ("*logicalsi3_zextqi"): Likewise.
6353 ("*logicallhi3_zexthi_ashift8"): Likewise.
6354 ("*logicalsi3_silshr16"): Likewise.
6355 ("logicalsi3_silshl16"): Likewise.
6356 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
6357
6358 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6359
6360 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
6361 (m68hc11_indirect_p): New function.
6362 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
6363 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
6364 TARGET_M6812.
6365 (asm_print_register): Likewise.
6366 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
6367 (m68hc11_indirect_p): Declare.
6368 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
6369 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
6370 (TARGET_SWITCHES): New option -mrelax.
6371 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
6372 destination.
6373 ("iorsi3", "xorsi3"): Likewise.
6374 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
6375 ("*andhi3_mem"): New to handle destination in memory with bclr
6376 and a scratch register.
6377 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
6378 ("*andhi3_const"): New when operand2 is constant.
6379 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
6380 ("*andhi3_gen"): Cleanup of the old "andhi3".
6381 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
6382 ("xorqi3"): Update constraints.
6383
6384 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6385
6386 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
6387 for reg_equiv_memory_loc when the operand is a register that does
6388 not get a hard register (stack location).
6389 (tst_operand): After reload, accept all memory operand.
6390 (symbolic_memory_operand): Fix detection of symbolic references.
6391 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
6392 accept symbols and any constant.
6393
6394 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6395
6396 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
6397 note on the insn that sets the soft frame register.
6398 (must_parenthesize): ix and iy are also reserved names.
6399 (print_operand_address): One more place where parenthesis are required
6400 to avoid confusion with register names.
6401 (m68hc11_gen_movhi): Allow push of stack pointer.
6402 (m68hc11_check_z_replacement): Fix handling of parallel with a
6403 clobber.
6404 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
6405 the replacement register is.
6406 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
6407 and D8_REGS classes.
6408 (MODES_TIEABLE_P): All modes are tieable except QImode.
6409
6410 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6411
6412 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
6413 (___subdi3): Likewise.
6414 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
6415 (__map_data_section): Optimize 68hc11 case.
6416
6417 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6418
6419 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
6420 than a shift to avoid adding a register with itself.
6421 (m68hc11_memory_move_cost): Take into account NO_REGS.
6422 (m68hc11_register_move_cost): Update and use memory move cost
6423 for soft registers.
6424 (m68hc11_address_cost): Make cost of valid offset not 0 so that
6425 it gives more opportunities to cse to optimize.
6426 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
6427 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
6428
6429 2002-03-15 Mark Mitchell <mark@codesourcery.com>
6430
6431 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
6432 * c-common.def (CLEANUP_STMT): New tree node.
6433 * c-common.h (CLEANUP_DECL): New macro.
6434 (CLEANUP_EXPR): Likewise.
6435 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
6436 * expr.c (expand_expr): Tidy.
6437 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
6438 * tree-inline.c (initialize_inlined_parameters): Clean up
6439 new local variables.
6440
6441 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6442
6443 PR bootstrap/4128
6444 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
6445 before movrXX only, use reg_overlap_mentioned_p.
6446 Only special case NE if just one insn can be generated.
6447
6448 2002-03-15 Jason Merrill <jason@redhat.com>
6449
6450 * varasm.c (assemble_variable): Call resolve_unique_section before
6451 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
6452 of error_mark_node.
6453
6454 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6455
6456 PR target/5170
6457 * arm.md (split pattern for thumb shiftable immediates): Add comment
6458 explaining non-obvious test.
6459
6460 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
6461
6462 PR target/5712
6463 * arm.md (movaddr, movaddr_insn): Delete.
6464
6465 2002-03-15 Jason Merrill <jason@redhat.com>
6466
6467 * toplev.c (wrapup_global_declarations): Clarify variable handling.
6468 -fkeep-static-consts doesn't apply to comdats.
6469
6470 2002-03-14 Richard Henderson <rth@redhat.com>
6471
6472 * c-decl.c: Include c-pragma.h.
6473 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
6474 (finish_function): Tidy.
6475 * c-pragma.c: Include c-common.h.
6476 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
6477 (handle_pragma_weak): Use them.
6478 (init_pragma): Register pending_weaks.
6479 * c-pragma.h (maybe_apply_pragma_weak): Declare.
6480 * print-tree.c (print_node): Print DECL_WEAK.
6481 * varasm.c (mark_weak_decls): Remove.
6482 (remove_from_pending_weak_list): Remove.
6483 (add_weak): Remove.
6484 (asm_emit_uninitialised): Call globalize_decl for weak commons.
6485 (weak_decls): Make a tree_list.
6486 (declare_weak): Cons weak_decls directly.
6487 (globalize_decl): Remove weak_decls elements directly.
6488 (weak_finish): Simplify weak_decls walk. Don't weaken unused
6489 symbols. Don't pretend to handle aliases.
6490 (init_varasm_once): Update weak_decls registry.
6491 * Makefile.in: Update dependencies.
6492
6493 2002-03-14 Richard Henderson <rth@redhat.com>
6494
6495 PR target/5312
6496 * config/ia64/ia64.c: Include tm_p.h last.
6497 (gen_nop_type): Remove duplicate definition.
6498 (cycle_end_fill_slots): Set sched_data for second L slot.
6499 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
6500 (nop_cycles_until): Fix typos.
6501
6502 2002-03-15 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR optimization/5891
6505 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
6506
6507 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
6508
6509 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
6510 descriptors correctly.
6511
6512 2002-03-14 Michael Meissner <meissner@redhat.com>
6513
6514 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
6515 100, allowing MAX_UNROLLED_INSNS to be overridden.
6516
6517 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
6518 --param.
6519
6520 * unroll.c (params.h): Include.
6521 (MAX_UNROLLED_INSNS): Delete, now in params.h.
6522
6523 * doc/invoke.texi (--param max-unroll-insns): Document.
6524
6525 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
6526
6527 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6528
6529 * arm.md: Fix warnings about constraints in peepholes and splits.
6530
6531 2002-03-14 Zack Weinberg <zack@codesourcery.com>
6532
6533 * cpphash.h (struct lexer_state): Remove line_extension member.
6534 * cpplib.c (dequote_string, do_linemarker): New functions.
6535 (linemarker_dir): New data object.
6536 (DIRECTIVE_TABLE): No longer need to interpret #line in
6537 preprocessed source. Delete obsolete comment about return
6538 values of handlers.
6539 (end_directive, directive_diagnostics, _cpp_handle_directive):
6540 Don't muck with line_extension.
6541 (directive_diagnostics): No need to issue warnings for
6542 linemarkers here.
6543 (_cpp_handle_directive): Issue warnings for linemarkers here,
6544 when appropriate. Dispatch linemarkers to do_linemarker, not
6545 do_line.
6546 (do_line): Code to handle linemarkers split out to do_linemarker.
6547 Convert escape sequences in filename argument, both places.
6548
6549 * cppmacro.c (quote_string): Rename cpp_quote_string and
6550 export. All callers changed.
6551 * cpplib.h (cpp_quote_string): Prototype.
6552 * cppmain.c (print_line): Call cpp_quote_string on to_file
6553 before printing it.
6554
6555 * doc/cpp.texi: Document that escapes are now interpreted in
6556 #line and in linemarkers, and that non-printing characters are
6557 converted to octal escapes when linemarkers are generated.
6558
6559 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
6560
6561 * emit-rtl.c (try_split): Use delete_insns.
6562 * recog.c (split_all_insns): Fix terminating condition.
6563
6564 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
6565 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6566
6567 PR target/5828
6568 * arm.c (arm_output_epilogue): Fix floating-point register save
6569 adjustment when using a frame pointer.
6570
6571 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
6572
6573 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
6574 * config/mips/mips.c (compute_frame_size): Retrofit them here.
6575 (save_restore_insns, mips_expand_epilogue): And here.
6576 (build_mips16_call_stub): And here.
6577 (mips_function_value): Use the new macros to decide whether a single
6578 or complex float can be returned in floating-point registers. Return
6579 a parallel rtx in the complex case.
6580
6581 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
6582
6583 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
6584 call after liveness analysis.
6585
6586 * recog.c (split_insn): Use delete_insn_and_edges.
6587
6588 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
6589 instructions to have branch prediction notes.
6590 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
6591
6592 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
6593
6594 * configure.in: Don't pass -Wno-long-long to a ADA compiler
6595 that doesn't support it.
6596 * configure: Regenerate.
6597
6598 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6599
6600 PR target/5626
6601 * config/sparc/sparc.md (normal_branch, inverted_branch,
6602 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
6603 inverted_fp_branch): Adjust calls to output_cbranch.
6604 Set length attribute.
6605 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
6606 output_v9branch. Set length attribute.
6607 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
6608 predicates.
6609 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
6610 (output_cbranch): Likewise. Handle far branches.
6611 (output_v9branch): Handle far branches.
6612 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
6613 Adjust prototypes.
6614 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
6615 noov_compare64_op predicates.
6616
6617 2002-03-13 Jason Merrill <jason@redhat.com>
6618
6619 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
6620 into the function and constify it.
6621 * gthr-dce.h, gthr-solaris.h: Likewise.
6622
6623 2002-03-13 David Edelsohn <edelsohn@gnu.org>
6624
6625 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
6626 * config/rs6000/rs6000.c (rs6000_va_arg): Use
6627 std_expand_builtin_va_arg if not ABI_V4.
6628
6629 2002-03-13 Jason Merrill <jason@redhat.com>
6630
6631 * varasm.c (globalize_decl): New fn.
6632 (assemble_start_function): Use it.
6633 (asm_emit_uninitialized): Use it.
6634 (assemble_alias): Use it.
6635 (assemble_variable): Use it.
6636
6637 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
6638
6639 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
6640 2002-03-12 internal visibility change.
6641 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
6642 visibility into SYMBOL_REF_FLAG.
6643
6644 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
6645
6646 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
6647 VOIDmode operand. Add compile-time optimization for constant results.
6648
6649 2002-03-12 Jason Merrill <jason@redhat.com>
6650
6651 * c-typeck.c (convert_for_assignment): Don't allow conversions
6652 between pointers and references. Only allow lvalues to convert to
6653 reference.
6654
6655 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
6656
6657 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
6658 before prologue, to avoid scheduling problems.
6659
6660 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6661
6662 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6663 (ELIMINABLE_REGS): Add sfp->sp.
6664 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
6665
6666 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR optimization/5892
6669 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
6670
6671 2002-03-13 Jakub Jelinek <jakub@redhat.com>
6672
6673 * loop.c (basic_induction_var): Don't call convert_modes if mode
6674 classes are different.
6675
6676 2002-03-12 Richard Henderson <rth@redhat.com>
6677
6678 PR optimization/5901
6679 * function.c (reposition_prologue_and_epilogue_notes): Position
6680 the markers after/before the last/first insn not deleted.
6681
6682 2002-03-12 Richard Henderson <rth@redhat.com>
6683
6684 PR optimization/5878
6685 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
6686 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
6687 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
6688
6689 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
6690 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
6691 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
6692
6693 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
6694 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
6695 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
6696 also. Don't set it if not flag_pic.
6697 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
6698 to be INVALID_REGNUM when not used.
6699
6700 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
6701
6702 * expmed.c (store_bit_field): Reset alias set for memory.
6703 (extract_bit_field): Same.
6704
6705 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6706
6707 * c-common.c (c_tree_code_type, c_tree_code_length,
6708 c_tree_code_name, add_c_tree_codes): Delete.
6709 * c-common.h (add_c_tree_codes): Delete.
6710 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
6711 Define.
6712 * c-objc-common.c (c_objc_common_init): Don't call
6713 add_c_tree_codes, instead set lang_unsafe_for_reeval.
6714 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
6715 objc_tree_code_name, add_objc_tree_codes): Delete.
6716 (objc_init): Don't call add_objc_tree_codes.
6717 * objc/objc-lang.c (tree_code_type, tree_code_length,
6718 tree_code_name): Define.
6719 * toplev.c (lang_independent_init): Don't set
6720 tree_code_length[IDENTIFIER_NODE].
6721 * tree.c (tree_code_type, tree_code_length, tree_code_name):
6722 Delete definitions, moved to language front-ends.
6723 * tree.def (IDENTIFIER_NODE): Hardwire the length.
6724 * tree.h (tree_code_type, tree_code_length, tree_code_name):
6725 Const-ify.
6726 (tree_code_length): Change type to unsigned char.
6727
6728 2002-03-12 Richard Henderson <rth@redhat.com>
6729
6730 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
6731 internal visibility change.
6732
6733 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6734
6735 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
6736 validize_mem() instead of change_address to avoid clobbering
6737 memory attributes.
6738
6739 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
6740
6741 * c-lex.h (position_after_whitespace): Remove.
6742
6743 2002-03-12 Jakub Jelinek <jakub@redhat.com>
6744
6745 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
6746 (lex_string): Use unsigned char pointers.
6747
6748 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6749
6750 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
6751 is not a valid memory_operand.
6752
6753 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6754
6755 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
6756 * config/xtensa/lib1funcs.asm: Fix copyright to include
6757 special case for libgcc files.
6758 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
6759 (__divsi3): Likewise.
6760 (__umodsi3): Likewise.
6761 (__modsi3): Likewise.
6762 * config/xtensa/lib2funcs.S: Fix copyright to include
6763 special case for libgcc files.
6764
6765 2002-03-12 Tom Rix <trix@redhat.com>
6766
6767 * collect2.c (resolve_lib_name): Move outside of
6768 OBJECT_FORMAT_COFF ifdef.
6769 (ignore_library): Same.
6770
6771 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6772
6773 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
6774
6775 2002-03-12 Bob Wilson <bob.wilson@acm.org>
6776
6777 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
6778 to function_section before writing out the constant pool.
6779
6780 2002-03-12 David Edelsohn <edelsohn@gnu.org>
6781
6782 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
6783 zero_constant.
6784 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
6785
6786 2002-03-12 Alan Modra <amodra@bigpond.net.au>
6787
6788 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
6789 (adddi3): Likewise.
6790 (movdf): Likewise.
6791 (movdi): Likewise.
6792 (cmpsi splitter): Likewise.
6793 (modsi3): Fail if <= 0.
6794 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
6795 redundant test when HOST_BITS_PER_WIDE_INT != 32.
6796 (reg_or_sub_cint64_operand): Likewise.
6797 (num_insns_constant_wide): Optimize sign extension.
6798 (rs6000_legitimize_address): Likewise.
6799
6800 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6801
6802 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6803 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
6804
6805 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
6806
6807 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
6808 address calculation.
6809
6810 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
6811
6812 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
6813 scratch register to DImode / TImode.
6814 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
6815 register used does not overlap the target.
6816
6817 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6818
6819 * Makefile.in (debug.o): Depend on debug.h.
6820 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
6821 * debug.c (do_nothing_debug_hooks): Likewise.
6822 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
6823 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
6824 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
6825 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6826 * dwarfout.c (dwarf_debug_hooks): Likewise.
6827 * integrate.c (output_inline_function): Likewise.
6828 * objc/objc-act.c (synth_module_prologue): Likewise.
6829 * sdbout.c (sdb_debug_hooks): Likewise.
6830 * toplev.c (debug_hooks): Likewise.
6831 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6832
6833 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6834
6835 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
6836 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
6837 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
6838 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
6839 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
6840 * defaults.h (POINTER_SIZE): Define.
6841 * doc/tm.texi (POINTER_SIZE): Document default.
6842
6843 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6844
6845 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
6846
6847 2002-03-11 Richard Henderson <rth@redhat.com>
6848
6849 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
6850 if rebuild_label_notes_after_reload.
6851
6852 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
6853
6854 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
6855 emit pic register load if "internal" visibility.
6856 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
6857 (cris_expand_builtin_va_arg): Do all computations on trees.
6858
6859 2002-03-11 Richard Henderson <rth@redhat.com>
6860
6861 * rtlanal.c: Include recog.h.
6862 (keep_with_call_p): Fix thinko.
6863 * Makefile.in (rtlanal.o): Update dependencies.
6864
6865 2002-03-11 Chris Meyer <cmeyer@gatan.com>
6866
6867 * genflags.c (gen_insn): Use IS_VSPACE.
6868 * genoutput.c (output_insn_data): Likewise.
6869 (process_template): Likewise.
6870
6871 2002-03-11 Richard Henderson <rth@redhat.com>
6872
6873 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6874
6875 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
6876
6877 * Makefile.in: Update.
6878 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6879 Update documentation.
6880 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6881 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6882
6883 2002-03-11 Zack Weinberg <zack@codesourcery.com>
6884
6885 * Makefile.in: Give texi2pod its input file as a command line
6886 argument, not on stdin.
6887
6888 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
6889 Daniel Berlin <dan@dberlin.org>
6890
6891 C++ alias analysis improvement.
6892 * alias.c (record_component_aliases): Record aliases for base
6893 classes too.
6894
6895 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
6896
6897 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6898
6899 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6900
6901 * toplev.c (vms_fopen): Remove, not needed.
6902
6903 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6904
6905 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6906
6907 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6908 for FP, already done later.
6909
6910 * toplev.c (debug_args): Add entry for VMS_DEBUG.
6911 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6912
6913 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
6914
6915 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6916 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6917 LARGEST_EXPONENT_IS_NORMAL for the given mode.
6918 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6919 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6920 (ediv, emul, eldexp, esqrt): Likewise.
6921 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6922 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6923 (saturate): New function.
6924 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6925 (make_nan): Use a saturation value instead of a NaN if
6926 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
6927 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6928 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
6929 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
6930 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6931 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6932 !ROUND_TOWARDS_ZERO.
6933 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6934 (ROUND_TOWARDS_ZERO): Document.
6935
6936 2002-03-11 Andreas Jaeger <aj@suse.de>
6937
6938 * cfg.c (dump_flow_info): Remove unused variable.
6939
6940 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6941
6942 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6943 computations on trees.
6944
6945 2002-03-10 Richard Henderson <rth@redhat.com>
6946
6947 PR 5693:
6948 * reload.c (copy_replacements_1): New.
6949 (copy_replacements): Use it to recurse through the rtx.
6950
6951 2002-03-10 Richard Henderson <rth@redhat.com>
6952
6953 * loop.c (strength_reduce): Compute number of iterations as
6954 unsigned HOST_WIDE_INT.
6955
6956 2002-03-10 Richard Henderson <rth@redhat.com>
6957
6958 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6959 to move away from the end of the block.
6960
6961 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6962
6963 PR preprocessor/5899
6964 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6965
6966 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6967
6968 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6969
6970 * attribs.c (decl_attributes): Fix signed/unsigned warning.
6971
6972 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
6973
6974 * config/mmix/mmix.c: Improve comments.
6975 (mmix_target_asm_function_prologue): Drop variable
6976 empty_stack_frame. Don't allocate unused slot above fp.
6977 (mmix_target_asm_function_epilogue): Mirror prologue changes.
6978 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6979 brace in first column.
6980 (enum reg_class): Ditto.
6981 (FIRST_PARM_OFFSET): Now 0.
6982 (USER_LABEL_PREFIX): Remove #if 0:d definition.
6983
6984 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6985
6986 * combine.c (make_extraction): Fix error in last change.
6987
6988 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6989
6990 * c4x.c (c4x_fp_reglist): Const-ify.
6991 * cris.c (cris_print_operand): Likewise.
6992 * i386.c (ix86_va_arg): Likewise.
6993 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6994 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6995 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6996 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6997 * mcore.h (regno_reg_class): Likewise.
6998 * mips.c (gen_int_relational): Likewise.
6999 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7000 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7001 * pdp11.c (move_costs): Likewise.
7002 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7003 * s390.c (s390_branch_condition_mnemonic, regclass_map):
7004 Likewise.
7005 * s390.h (regclass_map): Likewise.
7006 * sh.c (shift_amounts): Likewise.
7007 * sh.md (rotlsi3): Likewise.
7008
7009 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7010
7011 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7012 (ne0+5): Use new clobber to generate proper shift pattern.
7013 Patch by Michael Matz <matz@kde.org>.
7014
7015 2002-03-09 Andreas Schwab <schwab@suse.de>
7016
7017 * gcc.c (validate_all_switches): Also handle `%W{...}'.
7018
7019 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
7020
7021 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7022
7023 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7024
7025 PR middle-end/5877
7026 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7027 even for non-representable constants.
7028
7029 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7030
7031 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7032 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7033 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7034 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7035 (pop_function_context): Compute MAY_SHARE parameter for
7036 fixup_var_refs.
7037 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7038 (gen_mem_addressof): Call fixup_var_refs with new parm.
7039
7040 * combine.c (make_extraction): Don't make extension of CONST_INT.
7041
7042 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7043
7044 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7045 in o32 and o64 ABIs.
7046 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7047 but getting fixed-size structs passed in registers regardless of
7048 padding in o32 and o64 ABIs.
7049
7050 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7051 offset before loading address of argument passed by transparent
7052 reference.
7053
7054 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7055
7056 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7057
7058 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
7059
7060 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7061 marker such that registers after it are saved.
7062
7063 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7064
7065 * sparc.c (arith_4096_operand): Fix error in last change.
7066
7067 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7068
7069 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7070 defaults for MEABI.
7071
7072 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7073
7074 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7075 vectors.
7076
7077 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
7078
7079 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7080
7081 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
7082
7083 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7084 removed; fix return value.
7085 * combine.c (combine_instructions): Dirtify blocks where we failed to
7086 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7087 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7088
7089 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7090
7091 * gcse.c (insert_insn_end_bb): Fix typo in last change.
7092
7093 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
7094
7095 * recog.c (peephole2_optimize): Re-distribute EH edges.
7096
7097 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
7098
7099 * expr.c (expand_expr): Use unsave lang hook.
7100 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7101 (LANG_HOOKS_INITIALIZER): Update.
7102 * langhooks.h (struct lang_hooks): New hook unsave.
7103 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7104 (unsave_expr_1): Remove unused lang_unsave_expr_now.
7105 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
7106 (unsave_expr_now): Remove.
7107 * tree.h (unsave_expr_now, lang_unsave,
7108 lang_unsave_expr_now): Remove.
7109 (lhd_unsave): New.
7110
7111 2002-03-08 Andreas Jaeger <aj@suse.de>
7112
7113 * flow.c (propagate_block_delete_insn): Remove unused variable.
7114
7115 2002-03-08 Kazu Hirata <kazu@hxi.com>
7116
7117 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7118 insn length for memory load/store.
7119
7120 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
7121
7122 * doc/install.texi (--with-libiconv-prefix): Document.
7123
7124 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
7125
7126 * doc/sourcebuild.texi: Fix typo.
7127
7128 2002-03-08 Jakub Jelinek <jakub@redhat.com>
7129
7130 PR c/3711
7131 * builtins.c (std_expand_builtin_va_arg): Do all computations on
7132 trees.
7133
7134 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7135
7136 * rtl.c (copy_most_rtx): Move from here ...
7137 * emit-rtl.c (copy_most_rtx): ... to here.
7138
7139 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
7140
7141 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7142 SUBTARGET_CPP_SIZE_SPEC.
7143 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7144
7145 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7146
7147 2002-03-07 Matt Hiller <hiller@redhat.com>
7148
7149 * gensupport.c (first_dir_md_include): Renamed from include;
7150 change all references.
7151 (last_dir_md_include): Renamed from last_include; change all
7152 references.
7153 (init_md_reader): Unconditionally initialize base_dir whether or
7154 not filename is a relative path.
7155
7156 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
7157
7158 * config/fp-bit.c (_unord_f2): Compile it in even if
7159 US_SOFTWARE_GOFAST is enabled.
7160
7161 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7162 NULL_RTX. Set all HFmode operations as NULL_RTX.
7163 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7164 NULL_RTX, try reversing the comparison and the operands.
7165
7166 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7167
7168 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7169 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7170 and MATCH_OP_DUP.
7171
7172 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
7173
7174 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
7175
7176 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7177
7178 * basic-block.h (fixup_abnormal_edges): Declare.
7179 * reload1.c (fixup_abnormal_edges): New function.
7180 * reg-stack.c (convert_regs): Use it.
7181
7182 * gcse.c (insert_insn_end_bb): Handle trapping insns.
7183
7184 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
7185
7186 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
7187
7188 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
7189 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
7190 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
7191 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
7192 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
7193 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
7194 unless x and y could be infinite.
7195 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
7196 Check that the common type of both arguments is a real, even for
7197 targets without unordered comparisons. Allow an integer argument
7198 to be compared against a real.
7199 (expand_tree_builtin): Use expand_unordered_cmp.
7200 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
7201 * cse.c (fold_rtx): Likewise. Fix indentation.
7202 * fold-const.c (fold_real_zero_addition_p): New.
7203 (fold): Use it, and the new HONOR_... macros.
7204 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
7205 * jump.c (reversed_comparison_code_parts): After searching for
7206 the true comparison mode, use HONOR_NANS to decide whether it
7207 can be safely reversed.
7208 (reverse_condition_maybe_unordered): Remove IEEE check.
7209 * simplify-rtx.c (simplify_binary_operation): Use the new macros
7210 to decide which simplifications are valid. Allow the following
7211 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
7212 and (a - -b) to (a + b).
7213 (simplify_relational_operation): Use HONOR_NANS.
7214 * doc/tm.texi: Document the MODE_HAS_... macros.
7215
7216 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7217
7218 * combine.c (simplify_comparison): If simplifying a logical shift
7219 right and compare with constant, force the comparison to unsigned.
7220
7221 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
7222
7223 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
7224
7225 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7226 -mabi=no-altivec
7227 (alt_reg_names): Remove % for vrsave.
7228
7229 2002-03-06 Richard Henderson <rth@redhat.com>
7230
7231 PR optimization/5844
7232 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
7233 if used indicates we've already emitted one copy of an operand.
7234 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
7235 (gen_split): Supply a non-null used.
7236
7237 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
7238
7239 * reload1.c (reload): Unshare all rtl after reload is done.
7240
7241 * simplify-rtx.c (simplify_plus_minus): Do not abort,
7242 but simply fail if the expression is too complex to simplify.
7243 (simplify_gen_binary): Handle simplify_plus_minus failures.
7244
7245 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
7246
7247 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
7248 consistently call delete_trivially_dead_insns after CSE and GCSE;
7249 fix DFI_life dumping; do jump threading after liveness; do crossjumping
7250 after liveness2; update comment in last crossjumping.
7251 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
7252
7253 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
7254
7255 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
7256 after completing fast dead code elimination.
7257
7258 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
7259 COMPARE operator.
7260
7261 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
7262
7263 * version.c: Fix misplaced leading blanks on first line.
7264
7265 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
7266
7267 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
7268
7269 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
7270
7271 * cfgcleanup.c (mentions_nonequal_regs): New function.
7272 (thread_jump): Use it.
7273 * toplev.c (rest_of_compilation): Run jump threading after
7274 liveness.
7275
7276 2002-03-06 Jakub Jelinek <jakub@redhat.com>
7277
7278 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
7279 patch.
7280
7281 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
7282
7283 * predict.c (estimate_bb_frequencies): Do not reload the
7284 frequencies from notes.
7285
7286 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
7287
7288 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
7289 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
7290
7291 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
7292 delete_noop_moves): Return indeger.
7293 * flow.c (ndead): New variable.
7294 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
7295 BB argument; update callers.
7296 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
7297 (life_analysis): Do not call purge_all_dead_edges.
7298 (update_life_info): Return number of deleted insns; print statistics.
7299 (update_life_info_in_dirty_blocks): likewise.
7300 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
7301 return number of insns deleted.
7302
7303 * cse.c: Include timevar.h
7304 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
7305 iterate until stabilizes; print statistics; return number of killed
7306 insns.
7307 * Makefile.in: (cse.o): Add timevar.h dependency
7308 * rtl.h (delete_trivially_dead_insns): New.
7309 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
7310 * toplev.c (rest_of_compilation): Update callers.
7311
7312 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
7313 (try_optimize_cfg): Do not update liveness.
7314 (cleanup-cfg): Loop until try_optimize_cfg and dead code
7315 removal stabilizes; use delete_trivially_dead_insns.
7316
7317 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
7318
7319 2002-03-05 Zack Weinberg <zack@codesourcery.com>
7320
7321 * cppmain.c (setup_callbacks): Disable #pragma and #ident
7322 callbacks when processing assembly language.
7323
7324 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7325
7326 * pa.h (ASM_FILE_END): Define.
7327 * som.h (ASM_FILE_END): Delete.
7328
7329 * pa.c (function_arg): Don't pass floats in general registers in
7330 indirect calls if TARGET_ELF32.
7331
7332 2002-03-05 Richard Henderson <rth@redhat.com>
7333
7334 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
7335
7336 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
7337
7338 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
7339
7340 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7341
7342 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
7343 -r command line. Don't hide any symbols if not building
7344 shared libgcc.
7345
7346 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
7347
7348 * cfg.c (dump_flow_info): Warn about profile mismatches.
7349 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
7350 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
7351
7352 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7353
7354 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
7355 wide volatile memory by parts.
7356
7357 2002-03-05 Jakub Jelinek <jakub@redhat.com>
7358
7359 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
7360 is NULL.
7361
7362 2002-03-05 Richard Henderson <rth@redhat.com>
7363
7364 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
7365
7366 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7367
7368 * toplev.c (documented_lang_options): Document more
7369 language-specific options.
7370 * doc/invoke.texi (Warning Options): Correct documentation for
7371 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
7372 * c-decl.c (c_decode_option): Use a table to handle warning options.
7373
7374 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
7375
7376 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
7377 parameter to mmix_encode_section_info.
7378 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
7379 relocatably. Always produce ELF, not mmo if linking relocatably.
7380 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
7381 first is non-zero, don't add symbol prefix.
7382 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
7383 prototype accordingly.
7384
7385 2002-03-04 Krister Walfridsson <cato@df.lth.se>
7386
7387 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
7388
7389 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
7390
7391 * configure.in: Increase required makeinfo version to 4.1.
7392 * configure: Regenerate.
7393
7394 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
7395
7396 * .cvsignore: Remove *.info* and genrtl*; these files are generated
7397 elsewhere now.
7398
7399 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
7400
7401 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
7402 * doc/invoke.texi: Fix @math uses.
7403
7404 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
7405
7406 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
7407 removal
7408
7409 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
7410
7411 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
7412 (powerpc-*-eabisimaltivec*): Same.
7413
7414 * config/rs6000/t-ppcendian: New.
7415
7416 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7417
7418 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
7419 nonimmediate_src_operand and nonimmediate_lsrc_operand to
7420 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
7421
7422 2002-03-03 Richard Henderson <rth@redhat.com>
7423
7424 * toplev.c (rest_of_decl_compilation): Revert last two changes.
7425
7426 2002-03-03 Zack Weinberg <zack@codesourcery.com>
7427
7428 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
7429 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
7430 tree.c, config/m68k/m68k.c:
7431 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
7432 REAL_ARITHMETIC blocks unconditional. Delete some further
7433 #ifdef blocks predicated on REAL_ARITHMETIC.
7434 * flags.h, toplev.c: Delete remaining references to
7435 flag_pretend_float.
7436
7437 * doc/invoke.texi: Remove documentation of -fpretend-float.
7438 * doc/tm.texi: Describe the various REAL_* macros as provided by
7439 real.h, not by the target configuration files.
7440
7441 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
7442 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
7443 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
7444 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
7445 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
7446 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
7447 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
7448 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
7449 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7450 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
7451 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7452 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7453 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
7454 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
7455 config/xtensa/xtensa.h:
7456 Do not define, undefine, or mention in comments any of
7457 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
7458 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
7459 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
7460 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
7461 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
7462 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
7463 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
7464 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
7465 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
7466
7467 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7468
7469 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
7470 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
7471 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
7472 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
7473 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
7474 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
7475 Delete.
7476 * defaults.h (BITS_PER_WORD): Define.
7477 * doc/tm.texi (BITS_PER_WORD): Document default value.
7478
7479 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
7480 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
7481 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
7482
7483 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484
7485 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
7486 lieu of explicit sizeof/sizeof.
7487 * i386.c (override_options, ix86_init_mmx_sse_builtins,
7488 ix86_expand_builtin): Likewise.
7489 * mips.c (mips_add_gc_roots): Likewise.
7490 * mmix.c (mmix_output_condition): Likewise.
7491 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
7492 altivec_init_builtins): Likewise.
7493 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
7494 * cppexp.c (Nsuff, parse_number): Likewise.
7495 * cppinit.c (builtin_array_end): Likewise.
7496 * gcc.c (n_default_compilers, process_command): Likewise.
7497 * genpreds.c (output_predicate_decls): Likewise.
7498 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
7499 * lcm.c (N_ENTITIES): Likewise.
7500 * stor-layout.c (set_sizetype): Likewise.
7501
7502 2002-03-03 Richard Henderson <rth@redhat.com>
7503
7504 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
7505 for types or labels.
7506
7507 2002-03-03 Richard Henderson <rth@redhat.com>
7508
7509 * c-decl.c (start_decl): Initialized variables are not common.
7510
7511 2002-03-02 Per Bothner <per@bothner.com>
7512
7513 * gcc.c (option_map): Suport new --bootclasspath option.
7514 --CLASSPATH is now just an alias for --classpath.
7515
7516 2002-03-02 Richard Henderson <rth@redhat.com>
7517
7518 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
7519 load if "internal" visibility.
7520 * doc/extend.texi: Document visibility meanings.
7521
7522 2002-03-02 Richard Henderson <rth@redhat.com>
7523
7524 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
7525 to functions as well.
7526
7527 2002-03-02 Richard Henderson <rth@redhat.com>
7528
7529 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
7530 (handle_visibility_attribute): Don't call assemble_visibility.
7531 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
7532 without asmspec. Invoke assemble_alias when needed.
7533 * varasm.c (maybe_assemble_visibility): New.
7534 (assemble_start_function, assemble_variable, assemble_alias): Use it.
7535
7536 2002-03-02 Richard Henderson <rth@redhat.com>
7537
7538 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
7539 invoke ENCODE_SECTION_INFO with first call flag.
7540
7541 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7542 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7543 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
7544 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
7545 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
7546 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
7547 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
7548 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
7549 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
7550 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
7551 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
7552 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
7553 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
7554 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
7555 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7556 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
7557 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
7558 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7559 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
7560 config/sh/sh.h, config/sparc/sparc.h,
7561 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7562 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
7563 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
7564 FIRST argument. As needed, examine it and do nothing.
7565
7566 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
7567 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
7568 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
7569
7570 * config/arm/t-pe (pe.o): Add dependencies.
7571
7572 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7573
7574 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
7575 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
7576 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
7577 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
7578 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
7579 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
7580 * defaults.h (BITS_PER_UNIT): Define.
7581 * doc/tm.texi (BITS_PER_UNIT): Document default value.
7582
7583 2002-03-02 Kazu Hirata <kazu@hxi.com>
7584
7585 * config/h8300/h8300-protos.h: Add a prototype for
7586 compute_a_shift_length.
7587 * config/h8300/h8300.c (h8300_asm_insn_count): New.
7588 (compute_a_shift_length): Likewise.
7589 (h8300_adjust_insn_length): Do not adjust insn length of shift
7590 insns.
7591 * config/h8300/h8300.md (anonymous shift patterns): Use
7592 compute_a_shift_length.
7593
7594 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7595
7596 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
7597 trunc_int_for_mode.
7598
7599 * emit-rtl.c (offset_address): Call update_temp_slot_address.
7600
7601 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7602
7603 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
7604 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
7605 * flags.h (flag_zero_initialized_in_bss): Declare.
7606 * toplev.c (flag_zero_initialized_in_bss): New flag.
7607 (lang_independent_options): Add flag_zero_initialized_in_bss.
7608 * tree.c (initializer_zerop): New function.
7609 * tree.h (initializer_zerop): Declare.
7610 * varasm.c (assemble_variable): If we can emit bss, put zero
7611 initializers in the bss section.
7612
7613 2002-03-02 Alan Modra <amodra@bigpond.net.au>
7614
7615 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
7616 like more than one symbol per .weak directive.
7617
7618 2002-03-01 Richard Henderson <rth@redhat.com>
7619
7620 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
7621 adjust argument_pointer by pretend_args_size.
7622 (ia64_va_start): Adjust va_start address by -pretend_args_size.
7623
7624 2002-03-01 Kazu Hirata <kazu@hxi.com>
7625
7626 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
7627
7628 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
7629
7630 * toplev.c (rest_of_compilation): Delete dead jumptables before
7631 loop.
7632 * flow.c (delete_dead_jumptables): Make global.
7633 * rtl.h (delete_dead_jumptables): Declare.
7634
7635 2002-03-01 David Edelsohn <edelsohn@gnu.org>
7636
7637 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
7638 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
7639 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
7640
7641 2002-03-01 Kazu Hirata <kazu@hxi.com>
7642
7643 * config/h8300/h8300-protos.h: Fix formatting.
7644 * config/h8300/h8300.c: Likewise.
7645 * config/h8300/h8300.h: Likewise.
7646
7647 2002-03-01 Kazu Hirata <kazu@hxi.com>
7648
7649 * config/h8300/h8300.c (print_operand): Support 16-bit
7650 constant addresses.
7651 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
7652
7653 2002-02-28 Richard Henderson <rth@redhat.com>
7654
7655 * expmed.c (store_bit_field): Prevent generation of CONCATs;
7656 pun complex values as integers; use gen_lowpart instead of
7657 gen_rtx_SUBREG.
7658 (extract_bit_field): Likewise.
7659
7660 2002-03-01 Alan Modra <amodra@bigpond.net.au>
7661 David Edelsohn <edelsohn@gnu.org>
7662
7663 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
7664 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
7665 (SUPPORTS_WEAK): Likewise.
7666 * output.h (add_weak): Add tree param.
7667 * varasm.c (add_weak): Likewise. Save decl.
7668 (struct weak_syms): Add decl field.
7669 (mark_weak_decls): New function.
7670 (init_varasm_once): ggc_add_root mark_weak_decls.
7671 (assemble_start_function): Use ASM_WEAKEN_DECL.
7672 (assemble_variable): Likewise.
7673 (assemble_alias): Likewise.
7674 (declare_weak): Pass decl to add_weak.
7675 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
7676 (remove_from_pending_weak_list): Declare and define for
7677 ASM_WEAKEN_DECL.
7678 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
7679 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
7680 * defaults.h (SUPPORTS_WEAK): Likewise.
7681 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7682 .weak for code sym. Do emit .size for descriptor sym.
7683 (ASM_DECLARE_FUNCTION_SIZE): Define.
7684 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
7685 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
7686 .lglobl unless TARGET_XCOFF. Formatting fixes.
7687 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
7688 .weak for code sym.
7689 (HANDLE_PRAGMA_WEAK): Remove.
7690 (ASM_WEAKEN_LABEL): Remove.
7691 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
7692
7693 2002-03-01 Jason Merrill <jason@redhat.com>
7694
7695 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
7696 (TARGET_EXPR_CLEANUP): New macro.
7697
7698 2002-02-28 Steve Ellcey <sje@cup.hp.com>
7699
7700 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
7701 to take ptr_extend into account as third type of extension.
7702 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
7703 fields used by SUBREG_PROMOTED_UNSIGNED_P.
7704 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
7705 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
7706 * calls.c (precompute_arguments): Use new macro.
7707 (expand_call): Ditto.
7708 * combine.c (nonzero_bits): Ditto.
7709 (record_promoted_value): Ditto.
7710 * expr.c (store_expr): Ditto.
7711 (expand_expr): Ditto.
7712 * function.c (assign_parms): Ditto.
7713
7714 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
7715
7716 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
7717 override -shared and -shared-libgcc.
7718
7719 2002-02-28 David O'Brien <obrien@FreeBSD.org>
7720
7721 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
7722 of "ultrasparc".
7723 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
7724 to be broken.
7725
7726 2002-02-28 Richard Henderson <rth@redhat.com>
7727
7728 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
7729 4 cycle latency from MM producers.
7730 (ia64_internal_sched_reorder): Likewise with pipeline flush.
7731
7732 2002-02-28 Jakub Jelinek <jakub@redhat.com>
7733
7734 * mklibgcc.in: Don't use GNU make extension.
7735
7736 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7737
7738 * c-parse.in (STATIC): New terminal.
7739 (scspec): New non-terminal. Update productions accordingly.
7740 (program): Remove bogus ifc / end ifc.
7741 (array_declarator): Simplify production using STATIC.
7742
7743 2002-02-28 Jim Meyering <meyering@lucent.com>
7744
7745 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
7746 \a still means TARGET_BELL.
7747
7748 2002-02-28 Richard Henderson <rth@redhat.com>
7749
7750 * haifa-sched.c (sched_emit_insn): New.
7751 (schedule_block): Use last_scheduled_insn to track last insn.
7752 * sched-int.h (sched_emit_insn): Prototype.
7753 * config/ia64/ia64.c (last_issued): Remove.
7754 (ia64_variable_issue): Don't set it.
7755 (nop_cycles_until): Use sched_emit_insn.
7756
7757 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
7758
7759 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
7760 extended constants.
7761
7762 2002-02-28 Kazu Hirata <kazu@hxi.com>
7763
7764 * config/h8300/h8300.c: Fix formatting.
7765 * config/h8300/h8300.h: Likewise.
7766
7767 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
7768
7769 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
7770 which may overwrite the high byte of the frame pointer.
7771
7772 2002-02-28 Bo Thorsen <bo@suse.de>
7773
7774 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
7775 (STARTFILE_SPEC): Add 64 bit files.
7776 (ENDFILE_SPEC): Likewise.
7777
7778 2002-02-28 Jason Merrill <jason@redhat.com>
7779
7780 * c-decl.c (finish_function): Only warn about missing return
7781 statement with -Wreturn-type.
7782
7783 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
7784
7785 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
7786
7787 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
7788 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
7789
7790 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
7791
7792 * basic-block.h (BB_REACHABLE): Renumber.
7793 (BB_DIRTY, BB_NEW): New flags.
7794 (clear_bb_flags): Declare.
7795 (update_life_info_in_dirty_blocks): Declare.
7796 * cfg.c (clear_bb_flags): New function.
7797 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
7798 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
7799 reorder_insns, emit_insn_after): Mark block as dirty.
7800 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
7801 (update_life_info_in_dirty_blocks): New function.
7802 * recog.c (apply_change_group): Dirtify block.
7803
7804 * cse.c (cse_insn): Reorder emitting of jump insn to keep
7805 cfg consistent.
7806 * gcse.c (delete_null_pointer_checks): Likewise.
7807
7808 * toplev.c (dump_file_index): Move cse2 after bp,
7809 add DFI_null
7810 (dump_file_info): Similary.
7811 (rest_of_compilation): Avoid most of CFG rebuilds;
7812 do first if converision after null pointer checks, do cse2
7813 after branch prediction; avoid full liveness rebuild after
7814 initializing subregs.
7815 * invoke.texi (-d options): Document -du, renumber.
7816
7817 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
7818 (notice_new_block): Do not set BB_UPDATE_LIFE.
7819 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
7820 merge_blocks_move_successor_nojumps, merge_blocks,
7821 try_crossjump_to_edge): Likewise.
7822 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
7823 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
7824 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
7825 (merge_of_block): Do not use life_data_ok.
7826 (find_if_case_1): Do not use SET_UPDATE_LIFE.
7827 (if_convert): Use BB_DIRTY mechanizm to update life.
7828 * lcm.c (optimize_mode_switching): Update
7829 update_life_info_in_dirty_blocks
7830
7831 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
7832
7833 * Makefile.in (integrate.o): Update.
7834 * c-decl.c (copy_lang_decl): Rename.
7835 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7836 * integrate.c: Include langhooks.h.
7837 (copy_decl_for_inlining): Update to use langhook.
7838 * langhooks-def.h (lhd_do_nothing_t,
7839 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
7840 (LANG_HOOKS_INITIALIZER): Update.
7841 * langhooks.c (lhd_do_nothing_t): New.
7842 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
7843 * tree.h (copy_lang_decl): Remove.
7844 objc:
7845 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
7846
7847 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
7848
7849 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
7850 POST_DEC, and POST_MODIFY.
7851
7852 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7853
7854 * c-typeck.c (digest_init): Remove unused parameter; all
7855 callers changed.
7856
7857 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
7858
7859 * expmed.c (expand_shift): Correctly test for low part of a
7860 subreg.
7861
7862 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7863
7864 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7865 insn UIDs with insn addresses.
7866
7867 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7868
7869 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7870 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7871 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7872 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7873 gcc.c, toplev.c: Delete code implementing -traditional mode.
7874
7875 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7876 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7877 Document removal of -traditional mode for compilation, and
7878 remove documentation only relevant to that mode.
7879
7880 * config/nextstep.h, config/ptx4.h, config/svr4.h,
7881 config/convex/convex.h, config/d30v/d30v.h,
7882 config/i386/dgux.h, config/i386/osf1elf.h,
7883 config/i386/osfelf.h, config/i386/osfrose.h,
7884 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7885 config/m68k/hp310.h, config/m88k/dgux.h,
7886 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7887 config/m88k/m88k.h, config/m88k/openbsd.h,
7888 config/mips/abi64.h, config/mips/osfrose.h,
7889 config/mips/svr4-5.h, config/mips/svr4-t.h,
7890 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7891 config/stormy16/stormy16.h: Remove all references to
7892 -traditional from target specs. Delete all mention of the
7893 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
7894 delete a couple of commented-out definitions of
7895 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7896 to -traditional.
7897
7898 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7899 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7900
7901 2002-02-27 Zack Weinberg <zack@codesourcery.com>
7902
7903 * mklibgcc.in: Don't use \n in a line subject to
7904 interpretation by echo.
7905
7906 2002-02-27 Graham Stott <grahams@redhat.com>
7907
7908 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7909 Constify NAME.
7910
7911 * loop.c (prescan_loop): Handle PARALLEL.
7912
7913 * unroll.c (loop_iterations): Return 0 if the add_val for
7914 a BIV is REG.
7915
7916 * final.c (output_operand_lossage): Constify PFX_STR.
7917
7918 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7919
7920 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7921
7922 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7923 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7924
7925 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7926
7927 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7928
7929 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7930
7931 * cpplex.c (_cpp_lex_token): Handle directives in macro
7932 arguments.
7933 * cpplib.c (_cpp_handle_directive): Save and restore state
7934 if parsing macro args when entering a directive.
7935 * cppmacro.c (collect_args): No need to handle directives
7936 in macro arguments.
7937 (enter_macro_context, replace_args): Use the original macro
7938 definition in case it was redefined whilst collecting arguments.
7939 doc:
7940 * cpp.texi: Update.
7941
7942 2002-02-26 David Edelsohn <edelsohn@gnu.org>
7943
7944 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7945 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7946 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7947 method on AIX.
7948 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7949 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7950 (load_toc_v4_PIC_2): Same.
7951
7952 2002-02-26 Alan Modra <amodra@bigpond.net.au>
7953
7954 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7955
7956 2002-02-26 Richard Henderson <rth@redhat.com>
7957
7958 * config/alpha/alpha.md (ashldi_se): Re-enable.
7959
7960 2002-02-26 Richard Henderson <rth@redhat.com>
7961
7962 * config/alpha/alpha.c (alpha_encode_section_info): Examine
7963 MODULE_LOCAL_P; improve commentary.
7964
7965 2002-02-26 Zack Weinberg <zack@codesourcery.com>
7966
7967 * doc/cpp.texi: Clarify documentation of relationship between
7968 #line and #include.
7969
7970 2002-02-26 Kazu Hirata <kazu@hxi.com>
7971
7972 * config/h8300/h8300-protos.h: Update the prototype for
7973 compute_logical_op_length. Add the prototype for
7974 compute_logical_op_cc.
7975 * config/h8300/h8300.c (compute_logical_op_length): Figure out
7976 code from operands.
7977 (compute_logical_op_cc): New.
7978 * config/h8300/h8300.md: Combine all the logical op patterns
7979 in HImode and SImode. Use compute_logical_op_cc.
7980
7981 2002-02-26 Kelley Cook <kelleycook@comcast.net>
7982
7983 * config/i386/i386.c (print_operand): Don't append ATT-style
7984 length suffixs to x87 opcodes when in Intel mode.
7985
7986 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
7987
7988 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7989 (init_emit_once): Update calls.
7990 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7991 (init_syntax_once): Prototype.
7992
7993 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7994
7995 * pa-linux.h (LIB_SPEC): Update definition.
7996 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7997
7998 2002-02-26 Richard Henderson <rth@redhat.com>
7999
8000 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8001 if we emitted a stop bit.
8002
8003 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8004
8005 * configure.in (libgcc_visibility): Substitute.
8006 * configure: Rebuilt.
8007 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8008 defined symbols .hidden.
8009
8010 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8011
8012 * attribs.c (c_common_attribute_table): Add visibility.
8013 (handle_visibility_attribute): New function.
8014 * varasm.c (assemble_visibility): New function.
8015 * output.h (assemble_visibility): Add prototype.
8016 * tree.h (MODULE_LOCAL_P): Define.
8017 * crtstuff.c (__dso_handle): Use visibility attribute.
8018 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8019 for MODULE_LOCAL_P symbols too.
8020 * config/ia64/ia64.c (ia64_encode_section_info): Handle
8021 MODULE_LOCAL_P symbols the same way as local symbols.
8022 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8023 into .sdata/.sbss by the user.
8024 * doc/extend.texi (Function Attributes): Document visibility
8025 attribute.
8026
8027 2002-02-26 Jakub Jelinek <jakub@redhat.com>
8028
8029 PR debug/5770
8030 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8031 STRING_CST initializer spanning the whole variable without
8032 embedded zeros.
8033 If expand_expr returned MEM, don't use it.
8034
8035 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
8036
8037 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8038 generate a die for the lexical block.
8039
8040 2002-02-26 Kazu Hirata <kazu@hxi.com>
8041
8042 * config/h8300/h8300-protos.h: Add a prototype for
8043 compute_logical_op_length.
8044 * config/h8300/h8300.c (compute_logical_op_length): New.
8045 * config/h8300/h8300.md (anonymous logical patterns): Use
8046 compute_logical_op_length for length.
8047
8048 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8049
8050 * dwarf2out.c (modified_type_die): Do not call type_main_variant
8051 for vectors.
8052 (gen_type_die): Same.
8053
8054 * attribs.c (handle_vector_size_attribute): Set debug information.
8055
8056 2002-02-26 Daniel Egger <degger@fhm.edu>
8057
8058 * config/rs6000/rs6000.md: Swap define_insn attributes to
8059 fix incorrect generation of merge high instructions instead
8060 of merge low.
8061
8062 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8063
8064 * c-typeck.c (really_start_incremental_init): Use
8065 bitsize_zero_node for vectors.
8066
8067 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
8068
8069 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8070 ("*set_vrsave_internal"): Same.
8071
8072 2002-02-25 Richard Henderson <rth@redhat.com>
8073
8074 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8075 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
8076
8077 2002-02-25 Jakub Jelinek <jakub@redhat.com>
8078
8079 PR target/5755
8080 * config/i386/i386.c (ix86_return_pops_args): Only pop
8081 fake structure return argument if it was passed on the stack.
8082
8083 2002-02-25 Jason Merrill <jason@redhat.com>
8084
8085 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8086 RESULT_DECL.
8087
8088 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8089
8090 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8091 link with shared_name only.
8092 * doc/invoke.texi (Link Options): Document new behavior.
8093
8094 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8095
8096 * c-typeck.c (push_init_level): Handle vectors.
8097
8098 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
8099
8100 * config/sparc/sparc.c (const64_high_operand): Zero-extend
8101 operands of SPARC_SETHI_P.
8102 (input_operand): Likewise.
8103 (sparc_emit_set_const32): Likewise.
8104 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8105 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8106 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
8107 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8108 (movdi_insn_sp64_vis): Likewise.
8109 (movdi split, movdf split): Use SETHI32.
8110 * doc/md.texi: Document SPARC constraints L, M and N.
8111
8112 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
8113
8114 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8115 ("*set_vrsave_internal"): use mfspr for Darwin.
8116
8117 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8118 gen_get_vrsave_internal.
8119
8120 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8121
8122 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8123
8124 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
8125
8126 * cpplex.c (cpp_interpret_charconst): Get signedness or
8127 otherwise of wide character constants correct.
8128 * cppexp.c (lex): Get signedness of wide charconsts correct.
8129
8130 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8131
8132 * optabs.c (widen_operand): Only call convert_modes for
8133 promoted SUBREG if signedness matches.
8134 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8135
8136 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8137
8138 * cpplib.c (glue_header_name): Use local buffer to build up
8139 header name.
8140
8141 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8142
8143 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8144
8145 2002-02-23 Kazu Hirata <kazu@hxi.com>
8146
8147 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8148 H8/300[HS] separately.
8149 * config/h8300/h8300.md: Remove the early clobber constraint
8150 from bit field patterns.
8151
8152 2002-02-23 Kazu Hirata <kazu@hxi.com>
8153
8154 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8155 register_operand.
8156 (mulhisi3): Likewise.
8157 (umulqisi3): Likewise.
8158 (umulhisi3): Likewise.
8159
8160 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8161
8162 * cppinit.c (output_deps): Correct test for stdout output.
8163 (init_dependency_output): Cure warning.
8164
8165 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8166
8167 * expr.c (store_expr): When converting expression to promoted
8168 equivalent type, allow using SUBREG_REG of TARGET as the target
8169 of the expansion of EXP.
8170 * loop.c (basic_induction_var, case SUBREG): Always look inside.
8171 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8172 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8173 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8174 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
8175
8176 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
8177
8178 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
8179 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
8180 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
8181
8182 2002-02-23 Jakub Jelinek <jakub@redhat.com>
8183
8184 PR optimization/5747
8185 * loop.c (scan_loop): Update reg info if move_movables created new
8186 pseudos.
8187
8188 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8189
8190 * gcc.c (init_gcc_spec): Revert last change.
8191
8192 2002-02-23 David Edelsohn <edelsohn@gnu.org>
8193
8194 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
8195 gpc_reg_operand constraint.
8196
8197 2002-02-23 Alan Modra <amodra@bigpond.net.au>
8198
8199 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
8200 Simplify comparison of `low'.
8201 (add_operand): Fix formatting.
8202 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
8203 (mask_operand): Disallow mask to wrap in 64-bit mode.
8204 (rs6000_stack_info): Remove redundant test setting push_p.
8205 (output_toc): Fix formatting.
8206 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
8207 cc_reg_not_cr0_operand constraint.
8208 (booldi3, boolcdi3 splitters): Same.
8209
8210 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
8211
8212 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
8213
8214 2002-02-22 David Edelsohn <edelsohn@gnu.org>
8215
8216 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
8217 gcc invoked with -shared-libgcc.
8218
8219 2002-02-22 Jakub Jelinek <jakub@redhat.com>
8220
8221 PR c++/5748
8222 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
8223 decl if any of elements was TREE_USED.
8224
8225 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
8226
8227 * config/sparc/sol2.h: Don't include sys/mman.h.
8228 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
8229 (arith_4096_operand): Don't throw high bits away.
8230 (const64_operand): Take sign extension of CONST_INTs into account.
8231 (const64_high_operand, sparc_emit_set_const32): Likewise.
8232 (GEN_HIGHINT64): Likewise.
8233 (sparc_emit_set_const64_quick1): Likewise.
8234 (const64_is_2insns): Likewise.
8235 (print_operand): Use trunc_int_for_mode for sign extension.
8236 * config/sparc/sparc.h (SMALL_INT32): Likewise.
8237 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
8238 chars. Assume CONST_INT is already properly sign-extended.
8239 (movdi split): Sign-extend each SImode part.
8240 (andsi3 split): Don't mask high bits off, so that result
8241 remains properly sign-extend.
8242 (iorsi3 split): Likewise.
8243 (xorsi3 split): Likewise.
8244
8245 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
8246
8247 * fold-const.c (fold): Fix typo in comments.
8248
8249 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8250
8251 * Makefile.in (langhooks.o): Update dependencies.
8252
8253 2002-02-21 Diego Novillo <dnovillo@redhat.com>
8254
8255 * langhooks.c: Include flags.h.
8256
8257 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
8258
8259 * testsuite/gcc.dg/attr-alwaysinline.c: New.
8260
8261 * c-common.c (c_common_post_options): Set inline trees by
8262 default.
8263
8264 * doc/extend.texi (Function Attributes): Document always_inline
8265 attribute.
8266 Update documentation about inlining when not optimizing.
8267
8268 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
8269
8270 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
8271 unless DECL_ALWAYS_INLINE.
8272
8273 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
8274 unless DECL_ALWAYS_INLINE.
8275 (c_disregard_inline_limits): Disregard if always_inline set.
8276
8277 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
8278 Disregard if always_inline set.
8279 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
8280 unless DECL_ALWAYS_INLINE.
8281
8282 * attribs.c (handle_always_inline_attribute): New.
8283 (c_common_attribute_table): Add always_inline.
8284
8285 * config/rs6000/altivec.h: Add prototypes for builtins
8286 requiring the always_inline attribute.
8287
8288 2002-02-21 Eric Christopher <echristo@redhat.com>
8289
8290 * expmed.c (store_bit_field): Try to simplify the subreg
8291 before generating a new one when when the mode size of
8292 value is less than maxmode.
8293
8294 2002-02-21 Richard Henderson <rth@redhat.com>
8295
8296 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
8297 than gen_rtx_PLUS to form the sum.
8298 * explow.c (force_reg): Rearrange to not allocate new pseudo
8299 when force_operand returns a register.
8300 * expr.c (expand_assignment): Allow offset_rtx expansion to
8301 return a sum. Do not force addresses into registers.
8302 (expand_expr): Likewise.
8303 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
8304 to canonicalize arithmetic that didn't simpify.
8305 (simplify_plus_minus): New argument force; update
8306 all callers. Don't split CONST unless we can do something with it,
8307 and wouldn't lose the constness of the operands.
8308
8309 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
8310 that we generated earlier.
8311
8312 2002-02-21 Tom Tromey <tromey@redhat.com>
8313
8314 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8315 (output_line_info): Use constant `1', with a long explanatory
8316 comment.
8317 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
8318
8319 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
8320
8321 * jump.c (redirect_jump): If old label has no UID, don't try to
8322 delete it.
8323
8324 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
8325
8326 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
8327 If input is constant, do shifts at compile time.
8328
8329 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
8330
8331 * doc/extend.texi: Fix some more overfull hboxes.
8332
8333 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8334
8335 PR optimization/4994
8336 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
8337 register moves.
8338
8339 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8340
8341 PR c++/4574
8342 * expr.h (expand_and): Add mode argument.
8343 * expmed.c (expand_and): Add mode argument.
8344 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
8345 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
8346 * except.c (expand_builtin_extract_return_addr): Likewise.
8347 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8348 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8349 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
8350 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
8351 * config/c4x/c4x.md: Use GEN_INT (x) instead of
8352 gen_rtx (CONST_INT, VOIDmode, x).
8353
8354 2002-02-21 Jakub Jelinek <jakub@redhat.com>
8355
8356 PR c/4697:
8357 * stmt.c (warn_if_unused_value): Move side effects test once more.
8358
8359 2002-02-20 Torbjorn Granlund <tege@swox.com>
8360
8361 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
8362 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
8363
8364 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
8365
8366 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
8367 SUBREG or ZERO_EXTEND.
8368
8369 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
8370
8371 * sh.h (current_function_anonymous_args): Remove.
8372 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
8373 of current_function_varargs and current_function_stdarg is set.
8374 * sh.c (sh_expand_prologue): Check current_function_varargs /
8375 current_function_stdarg / TARGET_SH5 instead of
8376 current_function_anonymous_args.
8377
8378 * sh64.h (TARGET_VERSION): Define.
8379
8380 2002-02-20 David Edelsohn <edelsohn@gnu.org>
8381
8382 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
8383 VRSAVE_REGNO on TARGET_ALTIVEC.
8384
8385 2002-02-20 Alan Modra <amodra@bigpond.net.au>
8386
8387 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
8388 bits of SImode const_int.
8389 (includes_rshift_p): Likewise.
8390 (print_operand): Call mask_operand and mask64_operand with correct
8391 mode.
8392 (rs6000_output_function_epilogue): Pad traceback table to word.
8393 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
8394 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
8395 mask64_operand with correct mode.
8396 (FUNCTION_ARG_REGNO_P): Correct parentheses.
8397
8398 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8399
8400 PR debug/4461
8401 * varasm.c (get_pool_constant_mark): New.
8402 * rtl.h (get_pool_constant_mark): Add prototype.
8403 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
8404 be represented if it has not been output.
8405
8406 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8407
8408 * combine.c (do_SUBST): Sanity check substitutions of
8409 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
8410 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
8411 CONST_INT into its operand.
8412 (known_cond): Likewise, for ZERO_EXTEND.
8413 * simplify-rtx.c (simplify_unary_operation): Fix condition to
8414 allow for simplification of wide modes. Reject CONST_INTs in
8415 ZERO_EXTEND when their actual mode is not given.
8416
8417 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
8418
8419 * c-decl.c (pushdecl): If no global declaration is found for an
8420 extern declaration in block scope, try a limbo one.
8421
8422 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8423
8424 PR c++/4401
8425 * c-common.c (pointer_int_sum): Moved from...
8426 * c-typeck.c (pointer_int_sum): ...here.
8427 * c-common.h (pointer_int_sum): Add prototype.
8428
8429 2002-02-20 Jakub Jelinek <jakub@redhat.com>
8430
8431 PR c++/5713
8432 * c-decl.c (duplicate_decls): Return 0 if issued error about
8433 redeclaration.
8434
8435 2002-02-20 Roger Sayle <roger@eyesopen.com>
8436 Jakub Jelinek <jakub@redhat.com>
8437
8438 PR c/4389
8439 * tree.c (host_integerp): Ensure that the constant integer is
8440 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
8441 when pos is zero or non-zero respectively. Clarify comment.
8442 * c-format.c (check_format_info_recurse): Fix host_integerp
8443 usage; the pos argument should be zero when assigning to a
8444 signed HOST_WIDE_INT.
8445
8446 2002-02-20 Richard Henderson <rth@redhat.com>
8447
8448 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
8449 of the operand, rather than assuming TImode.
8450 (ix86_expand_binop_builtin): Cope with commutative patterns
8451 using nonimmediate_operand for both operands.
8452 (ix86_expand_timode_binop_builtin): Likewise.
8453 (ix86_expand_store_builtin): Validate operand 1.
8454 (ix86_expand_unop1_builtin): Likewise.
8455
8456 2002-02-20 Philip Blundell <philb@gnu.org>
8457
8458 PR 5705
8459 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
8460
8461 2002-02-20 Richard Henderson <rth@redhat.com>
8462
8463 PR c/5615
8464 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
8465
8466 2002-02-20 Tom Tromey <tromey@redhat.com>
8467
8468 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8469 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8470 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8471 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
8472 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
8473 unconditionally.
8474
8475 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
8476
8477 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
8478 for (const_int 0) in X not just INTVAL.
8479
8480 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
8481
8482 * doc/extend.texi: Avoid or reduce overfull hboxes.
8483
8484 2002-02-20 Diego Novillo <dnovillo@redhat.com>
8485
8486 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
8487 operations if the field does not start at a mode boundary.
8488
8489 2001-02-20 Joel Sherrill <joel@OARcorp.com>
8490
8491 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
8492 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
8493 Also done for -Acpu and -Amachine.
8494
8495 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
8496
8497 * cppinit.c (init_dependency_output): Take deps output file
8498 from -o if none given with -MF. Suppress normal output.
8499 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
8500 * doc/cpp.texi, doc/invoke.texi: Update.
8501
8502 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8503
8504 * toplev.c (output_quoted_string): Write unprintable
8505 characters with octal escapes.
8506
8507 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8508
8509 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
8510 really_call_used[VRSAVE_REGNO] if not Altivec.
8511
8512 2002-02-19 Alan Modra <amodra@bigpond.net.au>
8513
8514 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
8515 MODE_MASK.
8516 (constant_pool_expr_1): Fix formatting.
8517 (rs6000_legitimize_reload_address): Likewise.
8518
8519 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8520
8521 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
8522 now that we have one.
8523
8524 2002-02-19 Zack Weinberg <zack@codesourcery.com>
8525
8526 * tree.h (struct tree_common): Remove aux. Add unused_0 at
8527 end of first block of bitfields (which was only seven bits);
8528 rename dummy to unused_1; remove comment which is no longer true.
8529
8530 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8531
8532 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
8533
8534 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8535
8536 PR 5399
8537 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
8538 if generating PIC.
8539
8540 PR 5054
8541 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
8542 arm_is_longcall_p rather than inspecting call-type cookie
8543 directly.
8544 (call_value_insn) [TARGET_THUMB]: Likewise.
8545
8546 2002-02-19 Graham Stott <grahams@redhat.com>
8547
8548 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
8549
8550 2002-02-19 David Edelsohn <edelsohn@gnu.org>
8551
8552 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
8553 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
8554 (FP_SAVE_INLINE): Delete.
8555
8556 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
8557 * config/rs6000/eabi.asm: Remove ABI save restore routines.
8558 * config/rs6000/t-ppccomm: Build crtsavres.o.
8559 * config/rs6000/crtsavres.asm: New file.
8560
8561 2002-02-19 Philip Blundell <philb@gnu.org>
8562
8563 * config/arm/arm.c (use_return_insn): Don't reject interrupt
8564 functions.
8565 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
8566 (output_return_instruction): Allow interrupt functions to return with
8567 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
8568 (arm_expand_prologue): Subtract 4 before stacking LR in an
8569 interrupt function.
8570
8571 2002-02-19 Philip Blundell <pb@nexus.co.uk>
8572
8573 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
8574 decl, not just FUNCTION_DECL.
8575 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
8576 (arm_assemble_integer): Likewise.
8577 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
8578 marked local.
8579
8580 2002-02-19 matthew green <mrg@eterna.com.au>
8581
8582 * config.gcc (sparc-*-netbsdelf*): Enable target.
8583 (sparc64-*-netbsd*): New target.
8584 * config/sparc/netbsd-elf.h: New file.
8585 * config/sparc/t-netbsd64: New file.
8586
8587 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
8588
8589 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
8590
8591 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
8592
8593 * doc/invoke.texi: explicitly list the style guidelines that
8594 -Weffc++ checks for.
8595
8596 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
8597
8598 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
8599
8600 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
8601
8602 PR other/5718
8603 * gcc.c (cpp_unique_options): Treat -o as indicating object file
8604 only if not -E. If -E, pass -o through to the preprocessor.
8605
8606 2002-02-19 Kazu Hirata <kazu@hxi.com>
8607
8608 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
8609 register number with an appropriate macro.
8610
8611 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8612
8613 * doc/rtl.texi (Constants): Close @code tag.
8614
8615 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
8616
8617 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
8618 ("mmx_uavgv4hi3"): Same.
8619 ("pmulhrwv4hi3"): Same.
8620
8621 * tree-inline.c (walk_tree): Handle vectors.
8622
8623 * c-common.c (constant_expression_warning): Handle vectors.
8624 (overflow_warning): Same.
8625
8626 * sched-deps.c (sched_analyze_2): Handle vectors.
8627
8628 * rtlanal.c (rtx_unstable_p): Handle vectors.
8629 (rtx_varies_p): Same.
8630 (count_occurrences): Same.
8631 (regs_set_between_p): Same.
8632 (modified_between_p): Same.
8633 (modified_in_p): Same.
8634 (volatile_insn_p): Same.
8635 (volatile_refs_p): Same.
8636 (side_effects_p): Same.
8637 (may_trap_p): Same.
8638 (inequality_comparisons_p): Same.
8639 (replace_regs): Same.
8640 (computed_jump_p_1): Same.
8641
8642 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
8643 argument.
8644 (inner_mode_array): New.
8645 (copy_rtx): Handle vectors.
8646 (copy_most_rtx): Same.
8647 (rtx_equal_p): Same.
8648 (get_mode_alignment): Adjust for vectors.
8649
8650 * resource.c (mark_referenced_resources): Handle vectors.
8651 (mark_set_resources): Same.
8652
8653 * reload1.c (eliminate_regs): Handle vectors.
8654 (elimination_effects): Same.
8655 (scan_paradoxical_subregs): Same.
8656
8657 * reload.c (subst_reg_equivs): Handle vectors.
8658
8659 * regrename.c (scan_rtx): Handle vectors.
8660
8661 * regclass.c (reg_scan_mark_refs): Handle vectors.
8662
8663 * recog.c (find_single_use_1): Handle vectors.
8664
8665 * local-alloc.c (equiv_init_varies_p): Handle vectors.
8666 (contains_replace_regs): Same.
8667 (memref_referenced_p): Same.
8668
8669 * integrate.c (copy_rtx_and_substitute): Handle vectors.
8670 (subst_constants): Same.
8671
8672 * genattrtab.c (attr_copy_rtx): Handle vectors.
8673 (encode_units_mask): Same.
8674 (clear_struct_flag): Same.
8675 (count_sub_rtxs): Same.
8676
8677 * gcse.c (want_to_gcse_p): Handle vectors.
8678 (oprs_unchanged_p): Same.
8679 (hash_expr_1): Same.
8680 (oprs_not_set_p): Same.
8681 (expr_killed_p): Same.
8682 (compute_transp): Same.
8683 (store_ops_ok): Same.
8684
8685 * function.c (purge_addressof_1): Do not allow paradoxical subregs
8686 of vectors.
8687 (fixup_var_refs_1): Same.
8688 (instantiate_virtual_regs_1): Same.
8689
8690 * fold-const.c (operand_equal_p): Handle vectors.
8691 (fold): Same.
8692 (rtl_expr_nonnegative_p): Same.
8693
8694 * flow.c (mark_used_regs): Handle vectors.
8695
8696 * df.c (df_uses_record): Handle vectors.
8697
8698 * cselib.c (cselib_subst_to_values): Handle vectors.
8699 (cselib_mem_conflict_p): Same.
8700 (hash_rtx): Same.
8701
8702 * cse.c (canon_reg): Handle vectors.
8703 (fold_rt): Same.
8704 (cse_process_notes): Same.
8705 (count_reg_usage): Same.
8706 (canon_hash): Same.
8707
8708 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
8709
8710 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
8711
8712 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
8713 (gen_rtx): Handle CONST_VECTOR.
8714 (gen_const_vector_0): New.
8715 (copy_rtx_if_shared): CONST_VECTORs can be shared.
8716 (reset_used_flags): Same.
8717 (copy_insn_1): Same.
8718 (initializer_constant_valid_p): Handle VECTOR_CST.
8719
8720 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
8721
8722 * doc/rtl.texi (Constants): Document const_vector.
8723 (CONST0_RTX): Update for vectors.
8724 (RTL sharing): Same.
8725
8726 * print-tree.c (print_node): Add case for VECTOR_CST.
8727
8728 * tree.h (TREE_VECTOR_CST_ELTS): New.
8729 (struct tree_vector): New.
8730 (union tree_node): Add vector node.
8731 (build_vector): Add prototype.
8732
8733 * tree.def (VECTOR_CST): New.
8734
8735 * tree.c (build_vector): New.
8736
8737 * expmed.c (make_tree): Handle CONST_VECTOR.
8738
8739 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
8740 (CONST_VECTOR_ELT): New.
8741 (CONST_VECTOR_NUNITS): New.
8742
8743 * machmode.h (GET_MODE_INNER): New.
8744 (DEF_MACHMODE): Accept 8th arg.
8745
8746 * machmode.def: Add 8th argument for vector inner mode.
8747 Add inner vector modes for vectors.
8748
8749 * rtl.def (VEC_CONST): Remove.
8750 (CONST_VECTOR): New.
8751
8752 * expr.c (clear_storage): Allow vectors.
8753 (is_zeros_p): Handle VECTOR_CST.
8754
8755 * varasm.c (output_constant_pool): Handle vectors.
8756 (rtx_const): Add veclo and vechi fields.
8757 (kind): Add RTX_VECTOR.
8758 (decode_rtx_const): Add case for vector.
8759
8760 * config/rs6000/rs6000-protos.h: Add zero_constant.
8761
8762 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
8763 constants. Force easy vector constants into memory.
8764 (easy_vector_constant): New.
8765 (emit_easy_vector_constant): New.
8766 (rs6000_legitimize_reload_address): Do not generate bad reloads on
8767 darwin.
8768
8769 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
8770 instruction does.
8771 ("altivec_lvxl"): Same.
8772 (altivec_lvebx): Same.
8773 (altivec_lvehx): Same.
8774 (altivec_lvewx): Same.
8775 ("*movv4si_const0"): New.
8776 ("*movv4sf_const0"): New.
8777 ("*movv8hi_const0"): New.
8778 ("*movv16qi_const0"): New.
8779
8780 2002-02-18 Kazu Hirata <kazu@hxi.com>
8781
8782 * config/h8300/h8300.c (notice_update_cc): Use
8783 cc_status.value2.
8784
8785 2002-02-18 Kazu Hirata <kazu@hxi.com>
8786
8787 * config/h8300/h8300.md (divmod patterns): Change the
8788 constraints for operands[1] to register_operand.
8789
8790 2002-02-18 Kazu Hirata <kazu@hxi.com>
8791
8792 * config/h8300/h8300-protos.h: Remove the prototype for
8793 p_operand.
8794 * config/h8300/h8300.c (p_operand): Remove.
8795 * config/h8300/h8300.md: Replace p_operand with
8796 const_int_operand.
8797
8798 2002-02-18 Philip Blundell <pb@nexus.co.uk>
8799
8800 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
8801 comment.
8802 (output_return_instruction): Allow use of LDR to unstack
8803 return addresss even for interrupt handlers or when
8804 interworking. If compiling for ARMv5, use interworking-safe
8805 return instructions by default. Remove duplicated code and
8806 lengthy "strcat" sequences.
8807
8808 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8809
8810 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
8811 (LINK_EH_SPEC): Define.
8812 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
8813
8814 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
8815
8816 * config/s390/s390.c (s390_emit_prologue): Do not set the
8817 frame_related flag for call-clobbered registers.
8818
8819 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
8820
8821 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
8822 (construct_container): Fix handling of SSE operands.
8823 (ix86_expand_builtin): Fix handling of 64bit pointers.
8824 (mmx_maskmovq_rex): New pattern.
8825
8826 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
8827
8828 * regrename.c (kill_set_value): Handle subregs properly.
8829
8830 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
8831
8832 * objc/objc-act.c (handle_impent): Remove leading '*'
8833 from objc_class_name.
8834
8835 2002-02-17 Richard Henderson <rth@redhat.com>
8836
8837 * config/alpha/alpha.c (some_small_symbolic_operand,
8838 some_small_symbolic_operand_1, split_small_symbolic_operand,
8839 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
8840 Handle small SYMBOL_REFs anywhere, not just inside memories.
8841 * config/alpha/alpha-protos.h: Update.
8842 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8843 * config/alpha/alpha.md (small symbolic operand splitter): Update.
8844
8845 2002-02-17 Roland McGrath <roland@frob.com>
8846
8847 * config.gcc (powerpc-*-gnu-gnualtivec*,
8848 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
8849 * config/rs6000/gnu.h: New file.
8850 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
8851 Grok "gnu" in rs6000_abi_name.
8852 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
8853 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
8854 Grok -mcall-gnu analogous to -mcall-linux et al.
8855 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8856 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
8857 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
8858
8859 2002-02-17 Jakub Jelinek <jakub@redhat.com>
8860
8861 PR c/3444:
8862 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
8863 shortening.
8864
8865 2002-02-17 Philipp Thomas <pthomas@suse.de>
8866
8867 * config/cris/cris.h: Undefine STARTFILE_SPEC and
8868 ENDFILE_SPEC before (re)defining them.
8869
8870 2002-02-17 Kazu Hirata <kazu@hxi.com>
8871
8872 * config/h8300/h8300.c: Fix formatting.
8873 * config/h8300/h8300.h: Likewise.
8874
8875 2002-02-17 Philipp Thomas <pthomas@suse.de>
8876
8877 * doc/tm.texi: Explain why empty strings should not be
8878 marked for translation.
8879
8880 2002-02-17 Philipp Thomas <pthomas@suse.de>
8881
8882 * final.c (output_operand_lossage): Changed to accept
8883 printf style arguments. Change calls where necessary.
8884 * output.h (output_operand_lossage): Change declaration
8885 accordingly. Update copyright.
8886 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8887 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8888 Update copyright date where necessary.
8889
8890 * config/i386/i386.c (print_operand): Likewise. Remove use of
8891 sprintf.
8892
8893 * config/cris/cris.c (cris_operand_lossage): Likewise.
8894 Rename parameter so that exgettext recognizes it as
8895 translatable message.
8896 (LOSE_AND_RETURN): Rename parameter to msgid.
8897
8898 2002-02-17 Kazu Hirata <kazu@hxi.com>
8899
8900 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8901 hard coded register number with an appropriate macro.
8902 (HARD_REGNO_MODE_OK): Likewise.
8903 (ARG_POINTER_REGNUM): Likewise.
8904 (STATIC_CHAIN_REGNUM): Likewise.
8905 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8906 * config/h8300/h8300.md (define_constants): Define more
8907 register numbers.
8908
8909 2002-02-17 Philipp Thomas <pthomas@suse.de>
8910
8911 * config/i386/i386.h: Don't mark empty strings for translation.
8912
8913 2002-02-16 H.J. Lu <hjl@gnu.org>
8914
8915 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8916
8917 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8918
8919 * cppinit.c (merge_include_chains): Check for brack being
8920 NULL before attempting to merge it with qtail.
8921
8922 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8923
8924 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8925 DBX_DEBUG.
8926
8927 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8928
8929 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8930
8931 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8932
8933 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8934 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8935 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8936
8937 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8938
8939 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8940 now only if !TARGET_FIX.
8941 (*movsi_nt_vms_fix): New pattern.
8942
8943 2002-02-16 Douglas B Rupp <rupp@gnat.com>
8944
8945 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8946 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8947 (alpha_sa_mask, alpha_sa_size): Reflect above change.
8948 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8949 (alpha_start_function, alpha_expand_epilogue): Likewise.
8950 (unicosmk_gen_dsib): Likewise.
8951
8952 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8953
8954 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8955
8956 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
8957
8958 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8959 check_and_change_labels, s390_final_chunkify): Delete.
8960 (s390_split_branches, s390_chunkify_pool): New functions.
8961 (s390_function_prologue): Call them.
8962
8963 * config/s390/s390.h (S390_REL_MAX): Delete.
8964 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8965
8966 * config/s390/s390.md (cjump, icjump, jump): Fix length
8967 attribute calculation.
8968
8969
8970 2002-02-15 David Edelsohn <edelsohn@gnu.org>
8971
8972 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8973 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8974
8975 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8976
8977 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8978 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8979 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8980
8981 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8982
8983 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8984
8985 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8986
8987 * reload.c (find_dummy_reload): Check that an output register
8988 is valid for its mode.
8989
8990 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
8991
8992 * combine.c (known_cond): After replacing the REG of a SUBREG, try
8993 to simplify it.
8994
8995 * function.c (assign_parms): Demote promoted argument passed by
8996 transparent reference.
8997
8998 2001-02-14 Joel Sherrill <joel@OARcorp.com>
8999
9000 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9001 -Acpu() and -Amachine() to eliminate warnings.
9002
9003 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
9004
9005 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9006
9007 2002-02-14 Kazu Hirata <kazu@hxi.com>
9008
9009 * config/h8300/h8300-protos.h: Update the prototype for
9010 const_costs.
9011 * config/h8300/h8300.c (const_costs): Treat SET as a little
9012 more expensive operation.
9013 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9014 reference to const_costs.
9015
9016 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
9017
9018 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9019
9020 2002-02-14 Jakub Jelinek <jakub@redhat.com>
9021
9022 PR c/5503:
9023 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9024 use arguments from newtype.
9025
9026 2002-02-13 Eric Christopher <echristo@redhat.com>
9027
9028 * config/mips/mips.c (override_options): Add check for march/mipsX
9029 on the same command line. Fix error message in cpu processing.
9030 Remove architecture and ISA checks.
9031
9032 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9033
9034 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9035
9036 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9037
9038 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
9039
9040 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9041 alternatives.
9042 ("*movv8hi_internal1"): Same.
9043 ("*movv16qi_internal1"): Same.
9044 ("*movv4sf_internal1"): Same.
9045
9046 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9047 not push_reload for altivec modes.
9048
9049 2002-02-13 Joel Sherrill <joel@OARcorp.com>
9050
9051 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9052 all RTEMS targets including removal of #includes from config/*/rtems*.h
9053 file and adding them to tm_file setting. Added xm_defines=POSIX to
9054 many targets.
9055 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9056 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9057 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9058 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9059 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9060 config/m68k/rtemself.h: Ditto.
9061 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9062 config/mips/rtems64.h: Ditto.
9063 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9064 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9065 Ditto.
9066 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9067 config/sparc/rtemself.h: Ditto.
9068 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9069 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9070 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9071 more like arm-elf.
9072 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9073 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9074 target made more similar to i386-elf.
9075 * config/i386/t-rtems-i386: Added soft float support and multilibs.
9076 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9077 be similar to config/m68k/t-m68kelf.
9078 * gthr-rtems.h: Encapsulate with extern "C" for C++.
9079
9080 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
9081
9082 * regmove.c (kill_value): Handle subregs.
9083
9084 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
9085
9086 * i386.md (mul patterns): Allow memory operand to be first;
9087 add expanders where needed; fix constraints.
9088 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9089 Allow memory operand to be the first.
9090
9091 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9092 operands.
9093
9094 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9095
9096 PR c/5681:
9097 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9098 GET_MODE (x).
9099
9100 2002-02-13 Jakub Jelinek <jakub@redhat.com>
9101
9102 PR optimization/5547:
9103 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9104 all valid IA-32 address modes involving non-scaled %ebx and
9105 GOT/GOTOFF as displacement.
9106
9107 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
9108
9109 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9110 after emitting ltorg insns.
9111
9112 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9113 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9114 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9115 *abssf2): Fix "op_type" attribute.
9116
9117 2002-02-13 Douglas B Rupp <rupp@gnat.com>
9118
9119 * mkconfig.sh: Avoid using a subshell redirect.
9120 ($output.T): Change to $(output)T.
9121 (ENABLE_NLS): Remove unneeded undef.
9122
9123 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9124 * config/alpha/x-vms (libsubdir): Define.
9125
9126 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9127 register frame procedures. Optimize retrieving context.
9128
9129 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9130 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9131 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9132
9133 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9134
9135 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9136 Make same change as for find_base_value.
9137
9138 2002-02-13 Kazu Hirata <kazu@hxi.com>
9139
9140 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9141 of QImode and SImode.
9142
9143 2002-02-13 Kazu Hirata <kazu@hxi.com>
9144
9145 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9146 length computation of movsi.
9147 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9148
9149 2002-02-13 Kazu Hirata <kazu@hxi.com>
9150
9151 * config/h8300/h8300.md (subqi3): Tighten the predicate for
9152 operands[2] to register_operand.
9153
9154 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
9155
9156 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9157
9158 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
9159
9160 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9161 for altivec_lvx* and altivec_stvx*.
9162 ("*movv4si_internal"): Add constraint for loading from GPRs.
9163 ("*movv8hi_internal1"): Same.
9164 ("*movv16qi_internal1"): Same.
9165 ("*movv4sf_internal1"): Same.
9166
9167 * config/rs6000/rs6000.c (altivec_register_operand): New.
9168
9169 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9170 altivec_register_operand.
9171
9172 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
9173
9174 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
9175 handle SYMBOL_REF.
9176
9177 2002-02-13 Stan Shebs <shebs@apple.com>
9178
9179 * c-typeck.c (digest_init): Handle vectors.
9180 (really_start_incremental_init): Same.
9181 (pop_init_level): Same.
9182 (process_init_element): Same.
9183
9184 * varasm.c (output_constant): Same.
9185
9186 * expr.c (clear_storage): Same.
9187 (store_constructor): Same.
9188
9189 2002-02-12 Eric Christopher <echristo@redhat.com>
9190
9191 * explow.c (hard_function_value): Add comment explaining
9192 signed/unsigned comparison.
9193
9194 2002-02-12 Jakub Jelinek <jakub@redhat.com>
9195
9196 * jump.c (never_reached_warning): Add finish argument.
9197 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
9198 real insn after end.
9199 * rtl.h (never_reached_warning): Adjust prototype.
9200 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
9201 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
9202 never_reached_warning.
9203
9204 2002-02-12 Graham Stott <grahams@redhat.com>
9205
9206 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
9207
9208 2002-02-12 Kazu Hirata <kazu@hxi.com>
9209
9210 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
9211 logical shifts on H8/300.
9212 (shift_alg_si): Improve several shifts on H8/300.
9213 (get_shift_alg): Likewise.
9214
9215 2002-02-12 Graham Stott <grahams@redhat.com>
9216
9217 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
9218
9219 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9220
9221 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
9222 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
9223
9224 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
9225
9226 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
9227 non-CONST_INT through default_assemble_integer.
9228 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
9229 <case 8>: Abort for CONST_DOUBLE.
9230
9231 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9232
9233 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
9234 is specified.
9235 * config/pa/pa-linux.h (LIB_SPEC): Delete.
9236 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
9237
9238 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
9239
9240 * config/stormy16/stormy16.md (zero_extendqihi2): New.
9241
9242 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
9243
9244 * regrename.c (regrename_optimize): Don't accept a
9245 part-clobbered register if the replaced register is not part
9246 clobbered.
9247
9248 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
9249 take padding into account when computing the argument value.
9250
9251 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
9252
9253 * combine.c (try_combine): Apply substitutions in
9254 CALL_INSN_FUNCTION_USAGE too.
9255
9256 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
9257
9258 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
9259 __builtin_altivec_abs*.
9260 (bdesc_abs): New.
9261
9262 * config/rs6000/rs6000.h (rs6000_builtins): Add
9263 ALTIVEC_BUILTIN_ABS*.
9264
9265 * config/rs6000/altivec.h: Use const char for builtins expecting
9266 literals.
9267 (vec_abs): New versions for C and C++.
9268 (vec_abss): Same.
9269
9270 2002-02-10 Kazu Hirata <kazu@hxi.com>
9271
9272 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
9273 using Pmode.
9274
9275 2002-02-10 Kazu Hirata <kazu@hxi.com>
9276
9277 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
9278 constant definition from h8300.md.
9279 (FRAME_POINTER_REGNUM): Likewise.
9280 * config/h8300/h8300.md (define_constants): Add FP_REG.
9281
9282 2002-02-10 Kazu Hirata <kazu@hxi.com>
9283
9284 * config/h8300/h8300.c (print_operand): Remove redundant code.
9285
9286 2002-02-10 Kazu Hirata <kazu@hxi.com>
9287
9288 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
9289 * config/h8300/h8300.c (byte_reg): Make it static.
9290
9291 2002-02-10 Richard Henderson <rth@redhat.com>
9292
9293 PR c/5623
9294 * c-typeck.c (incomplete_type_error): Handle flexible array members.
9295
9296 2002-02-10 Richard Henderson <rth@redhat.com>
9297
9298 PR c++/5624
9299 * tree.c (append_random_chars): Don't abort if main_input_filename
9300 does not exist.
9301
9302 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
9303
9304 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
9305
9306 2002-02-10 Kazu Hirata <kazu@hxi.com>
9307
9308 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
9309 (pushhi1): Likewise.
9310
9311 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
9312
9313 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
9314 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
9315
9316 2002-02-09 David O'Brien <obrien@FreeBSD.org>
9317
9318 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
9319 remove MASK_VIS.
9320 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
9321
9322 2002-02-09 Kazu Hirata <kazu@hxi.com>
9323
9324 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
9325 a half of an SImode register on H8/300.
9326
9327 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
9328
9329 * i386.md (movdi_2): Add missing '!'.
9330
9331 2002-02-09 Kazu Hirata <kazu@hxi.com>
9332
9333 * config/h8300/h8300.h: Fix formatting. Remove commented-out
9334 definitions.
9335
9336 2002-02-09 Kazu Hirata <kazu@hxi.com>
9337
9338 * config/h8300/h8300.md (length): Correct the distance valid
9339 for the short branch.
9340
9341 2002-02-09 Kazu Hirata <kazu@hxi.com>
9342
9343 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
9344
9345 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9346
9347 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
9348 registers in SImode.
9349 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
9350 part-clobbered.
9351
9352 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
9353 patch.
9354
9355 Contribute sh64-elf.
9356 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
9357 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
9358 (sh_cannot_modify_jumps_p): New function.
9359 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9360 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
9361 (sh_ms_bitfield_layout_p): New function.
9362 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
9363 Zack Weinberg <zack@codesourcery.com>
9364 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
9365 expand_simple_binop instead of expand_binop.
9366 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
9367 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
9368 use of .quad and .uaquad.
9369 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
9370 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
9371 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9372 * config/sh/sh.md (movdi_const, movdi_const_32bit,
9373 movdi_const_16bit): Make sure all CONSTs have modes.
9374 (sym2PIC): Ditto, but by adjusting all callers.
9375 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
9376 if the prologue calls the SHmedia argument decoder or register
9377 saver.
9378 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9379 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
9380 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
9381 (sh_expand_epilogue): Don't emit USE of return target register.
9382 (prepare_move_operands): Legitimize DImode PIC addresses.
9383 (sh_media_register_for_return): Skip tr0, used to initialize the
9384 PIC register.
9385 (sh_expand_prologue): Remove explicit USE of return register.
9386 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
9387 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
9388 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
9389 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
9390 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
9391 EXTRA_CONSTRAINT_T.
9392 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
9393 (MOVI_SHORI_BASE_OPERAND_P): New.
9394 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
9395 (EXTRA_CONSTRAINT_T): Define in terms of them.
9396 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
9397 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
9398 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
9399 alternatives supporting TARGET_REGS.
9400 (UNSPEC_GOTPLT): New constant.
9401 (movdi split): Move incrementing of LABEL_NUSES...
9402 (movdi_const, movdi_const_32bit): Here. Use
9403 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
9404 (movdi_const_16bit): New.
9405 (call, call_value) [flag_pic]: Use GOTPLT.
9406 (call_pop, call_value_pop): New expands.
9407 (call_pop_compact, call_pop_rettramp): New insns.
9408 (call_value_pop_compact, call_value_pop_rettramp): New insns.
9409 (sibcall) [flag_pic]: Use GOT.
9410 (builtint_setjmp_receiver): Remove bogus, unused expand.
9411 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
9412 (*pt, *ptb, ptrel): New insns.
9413 (sym2GOT): Handle DImode GOT.
9414 (sym2GOTPLT, symGOTPLT2reg): New expands.
9415 (sym2PIC): New expand.
9416 (shcompact_return_tramp): Use GOTPLT to return trampoline.
9417 (shcompact_return_tramp_i): Use return register explicitly.
9418 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
9419 disable flag_reorder_blocks.
9420 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9421 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
9422 clobbers, for clarity.
9423 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
9424 restoring of r0 in macl as MAYBE_DEAD.
9425 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
9426 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
9427 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
9428 alter_subreg all over.
9429 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
9430 reload, instead of emitting instructions that would require
9431 reloading.
9432 (casesi_load_media): Add missing modes.
9433 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
9434 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
9435 as used if the argument decoder is called.
9436 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9437 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
9438 Pmode, then extend it to DImode if necessary.
9439 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9440 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
9441 constants in FPU-enabled SHmedia, let them be loaded from memory.
9442 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
9443 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
9444 Adjust whitespace in assembly output templates.
9445 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
9446 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
9447 mode of if_then_else.
9448 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
9449 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
9450 sh.h.
9451 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
9452 Joern Rennecke <amylaar@redhat.com>
9453 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
9454 (SUBTARGET_CPP_PTR_SPEC): New.
9455 (SUBTARGET_CPP_SPEC): Remove.
9456 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9457 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9458 Fix typo in previous checkin.
9459 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
9460 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
9461 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
9462 Alexandre Oliva <aoliva@redhat.com>
9463 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
9464 what single FP register can hold for SHmedia target.
9465 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
9466 Alexandre Oliva <aoliva@redhat.com>
9467 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
9468 Do not split into SUBREG.
9469 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
9470 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
9471 and added new functions as specified in SH5 ABI r9.
9472 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
9473 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
9474 8-byte boundary.
9475 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
9476 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
9477 gen_consttable_4 and gen_consttable_8. Emit multiple labels
9478 and consttable_window_ends.
9479 2001-06-03 Graham Stott <grahams@redhat,com>
9480 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
9481 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
9482 * config/sh/sh.c (print_operand): Handle floating-point pair,
9483 vector and matrix registers.
9484 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
9485 vector modes into account.
9486 * config/sh/sh.md (movv2sf): Split move between registers into
9487 movdf.
9488 (movv4sf, movv16sf): Introduce insns that get split only after
9489 reload.
9490 * config/sh/shmedia.h: Fix Copyright dates.
9491 * config/sh/ushmedia.h: Likewise. Move loop counter
9492 declarations into conditionals that uses them.
9493 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
9494 loop boundary.
9495 * config/sh/sshmedia.h: Fix Copyright dates.
9496 (sh_media_PUTCFG): Fix constraints.
9497 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
9498 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
9499 ptrmemfunc_vbit_in_delta for SH5.
9500 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
9501 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
9502 * invoke.texi: Likewise.
9503 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9504 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
9505 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
9506 GCC_pop_shmedia_regs_nofpu): New global symbols.
9507 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
9508 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
9509 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
9510 compact function with nonlocal labels.
9511 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
9512 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
9513 (initial_elimination_offset): Account for their stack space.
9514 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
9515 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
9516 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
9517 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
9518 least one of the operands to be a register.
9519 (movv2sf): Likewise. Renamed to movv2sf_i.
9520 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
9521 prepare_move_operands() before emitting SHmedia insns.
9522 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
9523 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
9524 Don't save nor initialize r12. Don't mis-align the stack.
9525 Pad the code with a nop.
9526 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
9527 stack.
9528 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
9529 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
9530 [__SHMEDIA__]: Implement.
9531 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
9532 * config/sh/sh.md: Set latency of `pt' closer to reality.
9533 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
9534 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
9535 Set move, load and store type attributes.
9536 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
9537 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
9538 profiling.
9539 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
9540 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
9541 * config/sh/sh.c (sh_media_register_for_return): New function.
9542 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
9543 branch-target register.
9544 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
9545 * config/sh/sh.md (return_media_i): Use any call-clobbered
9546 branch-target register.
9547 (return_media): If r18 wasn't copied in the prologue, copy it
9548 here.
9549 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
9550 Clear class FP0_REGS.
9551 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
9552 from elf.h.
9553 2001-03-08 DJ Delorie <dj@redhat.com>
9554 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
9555 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
9556 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
9557 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
9558 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
9559 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
9560 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
9561 return value correctly for call_cookie.
9562 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
9563 * config/sh/crt1.asm (start): Modified so as to call
9564 ___setup_argv_and_call_main.
9565 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
9566 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
9567 SHmedia mode.
9568 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
9569 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
9570 (STRIP_NAME_ENCODING): Use it.
9571 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
9572 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
9573 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
9574 prepare_scc_operands().
9575 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
9576 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
9577 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
9578 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
9579 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
9580 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
9581 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
9582 used in shcompact_incoming_args.
9583 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
9584 change.
9585 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
9586 mode.
9587 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
9588 Adjust accordingly.
9589 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
9590 Simplify. Adjust. Add sanity check.
9591 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
9592 FPU_SINGLE_BIT.
9593 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
9594 TARGET_SHCOMPACT.
9595 (udivsi3, divsi3): Use them.
9596 (force_mode_for_call): New insn.
9597 (call, call_value, sibcall_value): Emit it before SHcompact
9598 calls.
9599 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
9600 * config/sh/sh.md (call, call_value, sibcall): Make sure the
9601 call cookie is non-NULL before taking its value.
9602 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
9603 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
9604 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
9605 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
9606 block.
9607 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
9608 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
9609 temporary for stack adjusts. Use MACL and MACH to pass
9610 arguments to shcompact_incoming_args.
9611 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
9612 clobber r1.
9613 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
9614 (nested_trampoline): Load static chain address into r1.
9615 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
9616 2001-01-07 Alexandre Oliva <aoliva@redhat.com
9617 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
9618 fp_arith_reg_operand().
9619 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
9620 * config/sh/sh.md (casesi): Sign-extend the first two operands,
9621 and use signed compares for them.
9622 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
9623 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
9624 ones properly aligned.
9625 (find_barrier): Account for extra alignment needed for 8-byte wide
9626 constants.
9627 (machine_dependent_reorg): Require a label for the second 4-byte
9628 constant after an 8-byte one.
9629 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
9630 change.
9631 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9632 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
9633 last_float when switching float modes.
9634 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
9635 auto-increment for general-purpose registers.
9636 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
9637 result.
9638 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
9639 for stack adjust.
9640 * config/sh/sh.c (sh_builtin_saveregs): Support using all
9641 registers for varargs.
9642 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
9643 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
9644 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
9645 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
9646 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
9647 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
9648 call_cookie accordingly.
9649 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
9650 (SHCOMPACT_BYREF): Likewise.
9651 (SHCOMPACT_FORCE_ON_STACK): New macro.
9652 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
9653 (sh_builtin_saveregs): Likewise.
9654 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9655 shcompact_incoming_args): Use new shift values. Support
9656 sequences of consecutive and non-consecutive pushes/pops.
9657 * config/sh/sh.md (return): Don't explicitly use PR_REG.
9658 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
9659 * config/sh/sh.h (TEXT_SECTION): Define.
9660 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
9661 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
9662 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
9663 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
9664 return values on FPU-enabled SHmedia.
9665 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
9666 FPU-enabled SHmedia.
9667 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
9668 value is returned in a non-FP reg and is not returned by
9669 reference.
9670 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
9671 jump_ind.
9672 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
9673 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
9674 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
9675 quad-aligned to be passed by callee-copy reference.
9676 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
9677 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
9678 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
9679 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
9680 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
9681 copying low-numbered FP regs to r7 and r8.
9682 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
9683 FP regs to general-purpose regs only if the copy was passed on the
9684 stack.
9685 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
9686 copying FP reg to r9.
9687 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
9688 copy FP regs to general-purpose regs only in outgoing calls.
9689 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
9690 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
9691 HOST_WIDE_INT.
9692 * config/sh/sh.h (struct sh_args): Document all fields.
9693 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
9694 passed partially on the stack should not consider making
9695 sibcalls.
9696 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
9697 stack_regs only for incoming calls. When passing FP args,
9698 make sure there are FP regs available before modifying
9699 call_cookie.
9700 (SHCOMPACT_BYREF): Pass double args in general-purpose
9701 registers by reference.
9702 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
9703 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
9704 attempt to generate sibcalls if the caller got any arguments
9705 by reference.
9706 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
9707 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
9708 to 8-byte boundaries.
9709 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
9710 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
9711 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
9712 stored in the stack.
9713 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
9714 for the offsets to have the ISA bit set.
9715 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
9716 invocation. Use beq instead of bgt to mark end of sequence of
9717 loads.
9718 (shcompact_incoming_args): Fix store of r2. Use beq instead of
9719 bgt to mark end of sequence of stores.
9720 * config/sh/sh.c (arith_operand): Don't check whether
9721 CONST_OK_FOR_J for now.
9722 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
9723 instead of long for conversion.
9724 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
9725 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
9726 before passing it to fprintf.
9727 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
9728 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
9729 Call set_fpscr before reading/writing SR.
9730 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
9731 Call set_fpscr.
9732 * config/sh/lib1funcs.asm: Add `.align 2' directives before
9733 SHmedia code.
9734 (FMOVD_WORKS): Define on SH5 with FPU.
9735 (set_fpscr): Define on SH5. Remove separate _fpscr_values
9736 setting.
9737 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
9738 _fpscr_values.
9739 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
9740 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
9741 address.
9742 (ia_main_table): Ditto.
9743 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
9744 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
9745 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
9746 the definitions from sh.h.
9747 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
9748 TARGET_SH5.
9749 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
9750 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
9751 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9752 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
9753 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
9754 Increment LABEL_NUSES.
9755
9756 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
9757 TARGET_SH5.
9758 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
9759 defined.
9760 * config/sh/elf.h (SIZE_TYPE): Likewise.
9761 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
9762 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9763 shcompact_incoming_args): Load switch table addresses using
9764 datalabel.
9765 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9766 (NO_BUILTIN_SIZE_TYPE): Define.
9767 (SIZE_TYPE): Don't define.
9768 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
9769 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
9770 definition of __SH5__=32 for -m5-compact-nofpu.
9771 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
9772 ADDR_DIFF_VEC.
9773 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
9774 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
9775 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
9776 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
9777 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
9778 (INSN_LENGTH_ALIGNMENT): Likewise.
9779 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9780 * config/sh/sh.md (call, call_value, sibcall): Simplify
9781 copying of non-branch-target register.
9782 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9783 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
9784 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
9785 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
9786 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
9787 floating-point values as structs.
9788 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
9789 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
9790 general-purpose register.
9791 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
9792 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9793 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
9794 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
9795 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
9796 (ENCODE_SECTION_INFO): Enclose variables and constants in
9797 DATALABEL unspecs.
9798 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
9799 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
9800 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
9801 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
9802 only for LABEL_REFs. For SYMBOL_REFs, prepend
9803 SH_DATALABEL_ENCODING to the symbol name.
9804 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
9805 convert_mode().
9806 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
9807 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
9808 UNSPEC_DATALABEL.
9809 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
9810 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
9811 (DATALABEL_REF_P): Don't require CONST.
9812 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
9813 REL label.
9814 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
9815 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
9816 right.
9817 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9818 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
9819 Use shallow_copy_rtx and PUT_MODE to change the mode of
9820 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
9821 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
9822 on SHmedia using GENERAL_REGs.
9823 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9824 bltu_media_i): Fix reversion of conditions.
9825 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
9826 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
9827 * config/sh/sh.c (output_far_jump): Save r13 in macl.
9828 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
9829 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
9830 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
9831 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
9832 (GCC_nested_trampoline): Likewise.
9833 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
9834 * config/sh/sh.c (gen_datalabel_ref): Define.
9835 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
9836 (INITIALIZE_TRAMPOLINE): Likewise.
9837 (TRAMPOLINE_ADJUST_ADDRESS): Define.
9838 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
9839 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
9840 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
9841 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
9842 (ic_invalidate): Adjust for SH5.
9843 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
9844 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
9845 _nested_trampoline.
9846 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
9847 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
9848 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
9849 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9850 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
9851 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
9852 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
9853 * config/sh/sh.c (target_reg_operand): Match only target-branch
9854 registers and pseudos that aren't virtual registers.
9855 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9856 Copy operands that don't match target_reg_operand to pseudos.
9857 (call_media, call_value_media, sibcall_media): Use
9858 target_reg_operand instead of target_operand.
9859 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
9860 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
9861 * config/sh/sh.c (target_reg_operand): Match hardware registers
9862 other than branch-target registers.
9863 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9864 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9865 (fpscr_values) [SH5 == 32]: Define.
9866 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9867 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9868 Handle function addresses coming in SUBREGs.
9869 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
9870 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9871 shcompact_return_trampoline): Use datalabel where appropriate.
9872 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
9873 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9874 general-purpose register to copy one branch-target register to
9875 another.
9876 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9877 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9878 SYMBOL_REFs with VOIDmode.
9879 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9880 bltu_media_i): New insns.
9881 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
9882 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9883 (INIT_CUMULATIVE_ARGS): Likewise.
9884 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
9885 * machmode.def (V16SFmode): New mode.
9886 * c-common.c (type_for_mode): Support V2SF and V16SF.
9887 * tree.c (build_common_tree_nodes_2): Likewise.
9888 * tree.h (tree_index): Likewise.
9889 * calls.c (emit_call_1): Take args_so_far. Adjust all
9890 callers. Introduce CALL_POPS_ARGS.
9891 * tm.texi (CALL_POPS_ARGS): Document.
9892 * config/sh/crt1.asm: Implement in SHmedia mode.
9893 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9894 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9895 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9896 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9897 Implement divsi and udivsi in SHmedia mode. Introduce
9898 SHcompact trampolines.
9899 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9900 only in SHmedia64.
9901 (regno_reg_class): Rewrite.
9902 (fp_reg_names): Remove.
9903 (sh_register_names, sh_additional_register_names): New.
9904 (print_operand): Added `u'. Support SUBREGs in addresses.
9905 Add parentheses around shifted CONSTs.
9906 (output_file_start): Output .mode and .abi directives.
9907 (shiftcosts, addsubcosts, multcosts): Adjust.
9908 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
9909 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
9910 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
9911 bytes, not registers. Take into account the need for the
9912 SHcompact incoming args trampoline. Adjust all callers.
9913 (sh_expand_prologue): Take stack_regs into account. Call
9914 incoming args trampoline. Keep stack aligned as per SH5 ABI.
9915 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
9916 stack aligned as per SH5 ABI.
9917 (sh_builtin_saveregs): Support SH5 ABI.
9918 (sh_build_va_list, sh_va_start): Likewise.
9919 (initial_elimination_offset): Take alignment into account.
9920 Compute location of PR according to the SH5 stack frame.
9921 (arith_reg_operand): Reject branch-target registers.
9922 (shmedia_6bit_operand): New.
9923 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9924 (target_reg_operand): Match DImode only. Accept SUBREGs.
9925 (target_operand): New.
9926 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9927 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
9928 SIBCALL_REGS for SHmedia.
9929 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9930 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9931 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9932 (TARGET_SWITCHES): New SH5 flags.
9933 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
9934 VALID_REGISTER_P to disable unsupported registers.
9935 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9936 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9937 (FUNCTION_ARG_PADDING): Define.
9938 (FASTEST_ALIGNMENT): Adjust.
9939 (SH_REGISTER_NAMES_INITIALIZER): New.
9940 (sh_register_names): Declare.
9941 (DEBUG_REGISTER_NAMES): Define.
9942 (REGISTER_NAMES): Define based on sh_register_names.
9943 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9944 (sh_additional_register_names): Declare.
9945 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9946 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9947 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9948 (REGISTER_NATURAL_MODE): Define.
9949 (FIRST_PSEUDO_REGISTER): Adjust.
9950 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9951 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9952 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9953 (VECTOR_MODE_SUPPORTED_P): Define.
9954 (REG_CLASS_CONTENTS): Adjust.
9955 (SMALL_REGISTER_CLASSES): Adjust.
9956 (REG_ALLOC_ORDER): Adjust.
9957 (INDEX_REG_CLASS): Adjust.
9958 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9959 (CONST_OK_FOR_LETTER_P): Adjust.
9960 (PREFERRED_RELOAD_CLASS): Adjust.
9961 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9962 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9963 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9964 (FIRST_FP_PARM_REG): Adjust.
9965 (CALL_POPS_ARGS): Define.
9966 (FUNCTION_ARG_REGNO_P): Adjust.
9967 (struct sh_args): New fields.
9968 (GET_SH_ARG_CLASS): Adjust.
9969 (INIT_CUMULATIVE_ARGS): Adjust.
9970 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9971 (FUNCTION_ARG_ADVANCE): Adjust.
9972 (FUNCTION_ARG): Adjust.
9973 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9974 (FUNCTION_ARG_CALLEE_COPIES): Define.
9975 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9976 (STRICT_ARGUMENT_NAMING): Define.
9977 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9978 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9979 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9980 (SETUP_INCOMING_VARARGS): Adjust.
9981 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9982 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9983 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9984 (SUBREG_OK_FOR_INDEX_P): Adjust.
9985 (EXTRA_CONSTRAINT_S): Update.
9986 (EXTRA_CONSTRAINT_T): New.
9987 (EXTRA_CONSTRAINT): Adjust.
9988 (GO_IF_LEGITIMATE_INDEX): Adjust.
9989 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9990 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9991 (MOVE_MAX): Adjust.
9992 (MAX_MOVE_MAX): Define.
9993 (Pmode): Adjust.
9994 (CONST_COSTS): Adjust.
9995 (REGISTER_MOVE_COST): Adjust.
9996 (BRANCH_COST): Adjust.
9997 (TEXT_SECTION_ASM_OP): Adjust.
9998 (DBX_REGISTER_NUMBER): Adjust.
9999 (ASM_OUTPUT_DOUBLE_INT): New.
10000 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10001 (PREDICATE_CODES): Adjust.
10002 (PROMOTE_MODE): Adjust.
10003 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10004 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10005 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10006 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10007 (DR0_REG, DR2_REG, DR4_REG): Renumber.
10008 (TR0_REG, TR1_REG, TR2_REG): New.
10009 (XD0_REG): Renumber.
10010 (UNSPEC_COMPACT_ARGS): New.
10011 (type): Added pt and ptabs.
10012 (length): Default to 4 on SHmedia. Default pt length to 12
10013 and 20 on SHmedia32 and SHmedia64, respectively.
10014 (pt): New function unit.
10015 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
10016 Add whitespace between operands of SHmedia instructions.
10017 (movdicc): Fix.
10018 (adddi3_media, addsi3_media): Adjust constraints.
10019 (subsi3) [SHmedia]: Force operand 1 into a register.
10020 (udivsi3_i1_media, udivsi3_i4_media): New.
10021 (udivsi3): Support SHmedia.
10022 (divsi3_i1_media, divsi3_i4_media): New.
10023 (divsi3): Support SHmedia.
10024 (anddi3, iordi3, xordi3): Adjust constraints.
10025 (zero_extendhidi2, zero_extendqidi2): New.
10026 (extendsidi2, extendhidi2, extendqidi2): New.
10027 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10028 (pop_e, pop_fpul, pop_4): Likewise.
10029 (movsi_media): Support FP and BT registers.
10030 (movsi_media_nofpu): New. Adjust splits to DImode.
10031 (lduw, ldub): Renamed to zero_extend* above.
10032 (movqi_media): Fix typo.
10033 (movdi_media): Support FP and BT registers.
10034 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
10035 (movdi_const_32bit): New.
10036 (shori_media): Require immediate operand. Use `u' for output.
10037 (movdf_media, movsf_media): Simplified.
10038 (movdf_media_nofpu, movsf_media_nofpu): New.
10039 (movdf, movsf): Adjust
10040 (movv2sf, movv2sf, movv16sf): New.
10041 (beq_media, beq_media_i): Adjust constraints. Don't use
10042 scratch BT register.
10043 (bne_media, bne_media_i): Likewise.
10044 (bgt_media, bgt_media_i): Likewise.
10045 (bge_media, bge_media_i): Likewise.
10046 (bgtu_media, bgtu_media_i): Likewise.
10047 (bgeu_media, bgeu_media_i): Likewise.
10048 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10049 bunordered): Emit jump insn. Force operands to registers when
10050 needed.
10051 (jump_media, jump): Simplify.
10052 (call_compact, call_compact_rettramp): New.
10053 (call_value_compact, call_value_compact_rettramp): New.
10054 (call_media, call_value_media): Simplify.
10055 (sibcall_compact, sibcall_media): New.
10056 (call, call_value): Adjust for SHmedia and SHcompact.
10057 (sibcall, sibcall_value, untyped_call): Likewise.
10058 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10059 (indirect_jump): Adjust for SHmedia.
10060 (casesi_jump_media): New.
10061 (nop): Re-enable for SHmedia.
10062 (call_site): Restrict to SH1.
10063 (casesi): Adjust for SHmedia.
10064 (casesi_shift_media, casesi_load_media): New.
10065 (return): Explicitly use PR register. Call return trampoline
10066 on SHcompact.
10067 (return_i): Explicitly use PR register.
10068 (shcompact_return_tramp, shcompact_return_tramp_i): New.
10069 (return_media): Adjust.
10070 (shcompact_incoming_args): New.
10071 (epilogue): Adjust.
10072 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10073 (movstrsi): Disable on SH5.
10074 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10075 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10076 (subsf3, subsf3_media): Likewise.
10077 (mulsf3, mulsf3_media, mac_media): Likewise.
10078 (divsf3, divsf3_media): Likewise.
10079 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
10080 (floatsisf2, fux_truncsfsi2): Likewise.
10081 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
10082 constraints.
10083 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10084 (cmpunsf_media, cmpsf): Likewise.
10085 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10086 (abssf2, abssf2_media): Likewise.
10087 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10088 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10089 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
10090 (floatsidf2, fix_truncdfsi2): Likewise.
10091 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
10092 constraints.
10093 (cmpeqdf_media, cmpgtdf_media): Likewise.
10094 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10095 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10096 (absdf2, absdf2_media): Likewise.
10097 (extendsfdf2, extendsfdf2_media): Likewise.
10098 (truncsfdf2, truncsfdf2_media): Likewise.
10099 * config/sh/sh64.h: New file.
10100 * config/sh/t-sh64: New file.
10101 * config/sh/shmedia.h: New file.
10102 * config/sh/ushmedia.h: New file.
10103 * config/sh/sshmedia.h: New file.
10104 * configure.in: Added sh64-*-elf.
10105 * configure: Rebuilt.
10106 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
10107 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10108 (reg_class_from_letter): Use `b' for TARGET_REGS.
10109 (print_operand): Support `%M', `%m', `AND' and
10110 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
10111 (andcosts): Adjust for SHmedia.
10112 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10113 Likewise.
10114 (target_reg_operand): New function.
10115 * config/sh/sh-protos.h (target_reg_operand): Declare.
10116 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10117 FP registers on SH5.
10118 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10119 on SH4.
10120 (TARGET_REGISTER_P): New macro.
10121 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10122 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10123 (EXTRA_CONSTRAINT_S): New macro.
10124 (EXTRA_CONSTRAINT): Adjust.
10125 (FLOAT_TYPE_SIZE): Define to 32.
10126 (Pmode): DImode on SHmedia.
10127 (CONST_COSTS): Adjust for SHmedia literals.
10128 (PREDICATE_CODES): Added target_reg_operand.
10129 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10130 * config/sh/sh.md: Remove all attrs from SHmedia insns.
10131 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10132 (cmpdi): Accept SHmedia.
10133 (movdicc_false, movdicc_true): New insns.
10134 (movdicc): New expand.
10135 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10136 no_new_pseudos.
10137 (addsi3_media): Match `S' constraint.
10138 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10139 (negdi2): Expand for SHmedia.
10140 (one_cmpldi2): New expand.
10141 (zero_extendsidi2): Change from expand to insn.
10142 (extendsidi2): Add constraints.
10143 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
10144 LD/ST address. Fix SI immediate loading split.
10145 (movhi_media, movqi_media, lduw, ldub): New insns.
10146 (movhi, movqi): Accept SHmedia.
10147 (shori_media, movdi_media): Relax input constraints. Split
10148 symbolic constants.
10149 (movdf_media, movsf_media): New insn. New split to movdi.
10150 (movdf, movsf): Match on SHmedia.
10151 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10152 bgeu_media): New insns and splits. New insns with `_i' suffix.
10153 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10154 (bunordered): New expand.
10155 (jump_compact): Renamed from `jump'.
10156 (jump_media): New insn.
10157 (jump): New expand.
10158 (call_media, call_value_media): New insns.
10159 (call, call_value): Adjust.
10160 (indirect_jump_compact): Renamed from `indirect_jump'.
10161 (indirect_jump_media): New insn.
10162 (indirect_jump): New expand.
10163 (untyped_call, return): Accept SHmedia.
10164 (return_media): New insn.
10165 (prologue, epilogue, blockage): Accept SHmedia.
10166 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10167 (sunordered): New expand.
10168 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10169 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10170 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10171 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10172 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10173 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10174 abssf2_media): New insns.
10175 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
10176 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
10177 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
10178 floatdidf2, floatsidf2_media, fix_truncdfdi2,
10179 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
10180 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
10181 absdf2_media): New insns.
10182 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
10183 (extendsfdf2_media, truncdfsf2_media): New insns.
10184 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
10185 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
10186 * config/sh/sh.h (CONST_OK_FOR_J): Document.
10187 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
10188 * config/sh/sh.md (adddi3): New expand.
10189 (adddi3_media, adddi3z_media): New insns.
10190 (adddi3_compact): Renamed from adddi3.
10191 (addsi3_media): Use add.l r63 to add constant zero.
10192 (subdi3): New expand.
10193 (subdi3_media): New insn.
10194 (subdi3_compact): Renamed from subdi3.
10195 (mulsidi3): New expand.
10196 (mulsidi3_media): New insn.
10197 (mulsidi3_compact): Renamed from mulsidi3.
10198 (umulsidi3): New expand.
10199 (umulsidi3_media): New insn.
10200 (umulsidi3_compact): Renamed from umulsidi3.
10201 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
10202 (ashlsi3, ashrsi3, lshrsi3): Use them.
10203 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
10204 (ashldi3, ashrdi3, lshrdi3): Use them.
10205 (zero_extendsidi2): New expand.
10206 (extendsidi2): New insn.
10207 (movsi_media): New insn. Split to movdi to load constants.
10208 (movsi): Enable for shmedia.
10209 (movdi_media): New insn. Use shori_media to load wide constants.
10210 (short_media): New insn.
10211 (movdi): Enable for shmedia.
10212 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
10213 * config/sh/sh.h (CPP_SPEC): Added `m5'.
10214 (SUBTARGET_CPP_SPEC): Added `!m5'.
10215 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
10216 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
10217 to all other SH variants.
10218 (TARGET_DEFAULT): Set to SH1_BIT.
10219 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
10220 (BITS_PER_WORD): Raise to 64 on shmedia.
10221 (MAX_BITS_PER_WORD): Change to 64.
10222 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
10223 (INT_TYPE_SIZE): Keep as 32.
10224 (UNITS_PER_WORD): Raise to 8 on shmedia.
10225 (MIN_UNITS_PER_WORD): Keep as 4.
10226 (POINTER_SIZE): Raise to 64 on shmedia.
10227 (CONST_OK_FOR_J): New macro.
10228 (CONST_OK_FOR_LETTER_P): Use it.
10229 (processor_type): Add PROCESSOR_SH5.
10230 * config/sh/sh.md: Conditionalize all expands, insns and
10231 splits to TARGET_SH1.
10232 (cpu): Added sh5.
10233 (addsi3_compact): Renamed from...
10234 (addsi3): Now an expand.
10235 (addsi3_media, subsi3_media): New insns.
10236 (subsi3): Don't negate constants with SHmedia.
10237
10238 * hooks.c: New file.
10239 * hooks.h: New file.
10240 * Makefile.in (HOOKS_H): New.
10241 (TARGET_DEF_H): Added $(HOOKS_H).
10242 (OBJS): Added hooks.o.
10243 (cfgcleanup.o, bb-reorder.o): Added target.h.
10244 (hooks.o): Added dependencies.
10245 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
10246 (TARGET_INITIALIZER): this.
10247 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
10248 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
10249 * bb-reorder.c: Include target.h.
10250 (reorder_basic_blocks): Skip if cannot modify jumps.
10251 * cfgcleanup.c: Include target.h.
10252 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
10253
10254 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10255
10256 * config/mips/mips.md (casesi_internal, casesi_internal_di):
10257 Protect jump delay slot instructions with .set noreorder and
10258 .set nomacro.
10259
10260 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10261
10262 * config/mips/mips.md (casesi_internal_di): Calculate
10263 the index into the target offset table correctly.
10264
10265 2002-02-08 Richard Henderson <rth@redhat.com>
10266
10267 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
10268 * final.c (output_addr_const): Accept and discard SUBREG.
10269 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
10270 mark them unknown instead.
10271 (simplify_subtraction): Handle RTX_UNKNOWN.
10272 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
10273
10274 2002-02-08 David Edelsohn <edelsohn@gnu.org>
10275
10276 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
10277
10278 2002-02-08 Richard Henderson <rth@redhat.com>
10279
10280 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
10281
10282 2002-02-08 Andreas Jaeger <aj@suse.de>
10283
10284 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
10285 * config/i386/t-linux64: New file.
10286
10287 2002-02-08 Jakub Jelinek <jakub@redhat.com>
10288
10289 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
10290 * c-parse.in (compstmt): Clear last_expr_type.
10291
10292 2002-02-07 Richard Henderson <rth@redhat.com>
10293
10294 * loop.c (strength_reduce): Sink final_value when not
10295 eliminating a biv.
10296
10297 2002-02-07 David O'Brien <obrien@FreeBSD.org>
10298
10299 * config/sparc/freebsd.h: Fix mismatched spec {.
10300
10301 2002-02-07 Richard Henderson <rth@redhat.com>
10302
10303 * cfgrtl.c: Include recog.h and insn-config.h.
10304 (keep_with_call_p): Fix general_operand invocation.
10305 * Makefile.in (cfgrtl.o): Update dependencies.
10306
10307 2002-02-07 Kazu Hirata <kazu@hxi.com>
10308
10309 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
10310 comment. Accept HImode only if TARGET_H8300.
10311
10312 2002-02-07 Eric Christopher <echristo@redhat.com>
10313
10314 * config/mips/crtn.asm: Cleanup #ifdefs.
10315
10316 2002-02-07 Eric Christopher <echristo@redhat.com>
10317
10318 * config/mips/crti.asm: Add changes for mips16. mips16 uses
10319 register 7 as RA instead of $31.
10320 * config/mips/crtn.asm: Ditto.
10321 * config/mips/mips.c (mips_move_2words): Add case for
10322 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
10323 (compute_frame_size): Fix typo.
10324 (save_restore_insns): Ditto. Make documentation about using
10325 register $7 as return register more precise.
10326 (mips_expand_epilogue): Fix comment. Add code to work around not
10327 being able to add to the stack pointer directly.
10328 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
10329 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
10330 epilogue.
10331
10332 2002-02-07 Tom Rix <trix@redhat.com>
10333
10334 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
10335 immediates in ldu and stdu DS opcode field.
10336 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
10337 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
10338 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
10339
10340 2002-02-07 Jeff Sturm <jsturm@one-point.com>
10341
10342 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
10343 offset for stack bias.
10344
10345 2002-02-07 H.J. Lu <hjl@gnu.org>
10346
10347 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
10348
10349 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
10350
10351 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
10352
10353 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
10354
10355 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
10356 * i386.c (x86_order_regs_for_local_alloc): New global function.
10357 * i386.h (REG_ALLOC_ORDER): CLeanup.
10358 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
10359
10360 2002-02-07 Richard Henderson <rth@redhat.com>
10361
10362 PR optimization/2463
10363 * alias.c (find_base_value): Recall base values for fixed hard regs.
10364 * loop.c (loop_regs_update): Don't use single_set on non-insns.
10365
10366 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
10367
10368 * config/mips/mips.md (define_delay) [mips16]: Adjust required
10369 length.
10370
10371 2002-02-06 Richard Henderson <rth@redhat.com>
10372
10373 PR c/5609
10374 * stmt.c (resolve_operand_name_1): Take more care with mixed
10375 named and unnamed operands.
10376
10377 2002-02-06 Janis Johnson <janis187@us.ibm.com>
10378 Jan Hubicka <jh@suse.cz>
10379
10380 * loop.c (remove_constant_addition): Avoid clobbering a shared
10381 CONST expression.
10382
10383 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10384
10385 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
10386 * config/s390/t-linux64: New file.
10387 * config/s390/libgcc-glibc.ver: New file.
10388
10389 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
10390
10391 * config/s390/linux64.h: Delete file.
10392 * config/s390/s390x.h: New file.
10393 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
10394 as target header file.
10395 * config/s390/linux.h (TARGET_VERSION): Define depending on
10396 DEFAULT_TARGET_64BIT.
10397 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
10398 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
10399 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
10400 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
10401 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
10402 (EXTRA_SPEC): New define.
10403 * config/s390/s390.h (TARGET_VERSION): Define depending on
10404 DEFAULT_TARGET_64BIT.
10405 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
10406
10407 2002-02-06 Jason Merrill <jason@redhat.com>
10408
10409 * c-decl.c (finish_function): Warn about a non-void function with
10410 no return statement and no abnormal exit.
10411 (current_function_returns_abnormally): New variable.
10412 (start_function): Clear it.
10413 (struct c_language_function): Add returns_abnormally.
10414 (push_c_function_context): Save it.
10415 (pop_c_function_context): Restore it.
10416 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
10417 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
10418 an explicit return type.
10419 * c-tree.h: Declare current_function_returns_abnormally.
10420 (C_FUNCTION_IMPLICIT_INT): New macro.
10421 * c-typeck.c (build_function_call): Set it.
10422 (c_expand_return): Set current_function_returns_value even if the
10423 value is erroneous.
10424
10425 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10426
10427 PR c/5420:
10428 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
10429 unsafe for reevaluation.
10430
10431 2002-02-06 Jakub Jelinek <jakub@redhat.com>
10432
10433 PR c/5482:
10434 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
10435 EXPR_STMT, but COMPOUND_STMT, recurse into it.
10436
10437 2002-02-06 Richard Henderson <rth@redhat.com>
10438
10439 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
10440 be a general_operand. Dest for function value must be a pseudo.
10441
10442 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10443
10444 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
10445 as SYMBOL_REFs from the constant pool.
10446
10447 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
10448
10449 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
10450 passed by invisible reference.
10451
10452 2002-02-05 Richard Henderson <rth@redhat.com>
10453
10454 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
10455
10456 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
10457
10458 Implement using "base addresses" in insn operands as default.
10459 * config/mmix/mmix.c (mmix_conditional_register_usage): if
10460 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
10461 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
10462 used to read the rtx value.
10463 (mmix_target_asm_function_epilogue): Fix spacing.
10464 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
10465 (mmix_legitimate_address): Ditto.
10466 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
10467 should be loaded with a GETA insn. Don't allocate needless extra
10468 char for nul termination and fix misleading comment.
10469 (mmix_print_operand_address): Handle constants if
10470 TARGET_BASE_ADDRESSES.
10471 (mmix_output_register_setting): Use base addressing if
10472 TARGET_BASE_ADDRESSES and the number of insns is 3.
10473 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
10474 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
10475 to use R as constraint, add LDA to match s.
10476 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
10477 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
10478 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
10479 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
10480 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
10481 order with other fixed registers.
10482 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
10483 other parameter/call-clobbered registers.
10484 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
10485 -mbase-addresses, -mno-base-addresses.
10486 (MMIX Options): Ditto.
10487
10488 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10489
10490 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
10491
10492 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
10493
10494 * config/rs6000/altivec.h: Change elem to _S_elem.
10495
10496 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10497
10498 * config/netbsd.h (WCHAR_TYPE): Define.
10499 (WCHAR_TYPE_SIZE): Ditto.
10500 (WINT_TYPE): Ditto.
10501 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
10502 (WCHAR_UNSIGNED): Ditto.
10503 (WCHAR_TYPE_SIZE): Ditto.
10504 (WINT_TYPE): Ditto.
10505 * config/arm/netbsd.h: Likewise.
10506 * config/i386/netbsd-elf.h: Likewise.
10507 * config/i386/netbsd.h: Likewise.
10508 * config/m68k/netbsd-elf.h: Likewise.
10509 * config/m68k/netbsd.h: Likewise.
10510 * config/ns32k/netbsd.h: Likewise.
10511 * config/sparc/netbsd.h: Likewise.
10512 * config/vax/netbsd.: Likewise.
10513
10514 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
10515
10516 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
10517 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
10518 (TARGET_INITIALIZER): this.
10519 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
10520 (BITFIELD_NBYTES_LIMITED): Markup fix.
10521 * tree.h (default_ms_bitfield_layout_p): Declare.
10522 (record_layout_info): Added prev_field.
10523 * tree.c (default_ms_bitfield_layout_p): New fn.
10524 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
10525 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
10526 * stor-layout.c: Include target.h.
10527 (start_record_layout): Initialize prev_field.
10528 (place_field): Handle MS bit-field layout, and disregard
10529 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
10530 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
10531 * Makefile.in (stor-layout.o): Adjust dependencies.
10532
10533 2002-02-05 Jason Merrill <jason@redhat.com>
10534
10535 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
10536
10537 2002-02-05 Andreas Jaeger <aj@suse.de>
10538
10539 * crtstuff.c: Fix comments.
10540
10541 2002-02-05 Richard Henderson <rth@redhat.com>
10542
10543 PR fortran/3393
10544 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
10545 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
10546
10547 PR fortran/3392
10548 * config/mips/mips.c (function_arg): Handle TImode.
10549 (function_arg_advance): Likewise.
10550
10551 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10552
10553 * config/rs6000/altivec.h (vec_step_help): Rename to
10554 __vec_step_help.
10555
10556 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10557
10558 * config/rs6000/altivec.h: Fix typos.
10559
10560 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
10561
10562 * config/arm/netbsd.h: Correct a comment.
10563
10564 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10565
10566 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
10567 building void typed builtins.
10568
10569 * config/rs6000/altivec.h (vec_ld*): Fix typos.
10570 (vec_step): Implement for C++.
10571
10572 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10573
10574 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
10575
10576 2002-02-04 Richard Henderson <rth@redhat.com>
10577
10578 * combine.c (nonzero_bits): Re-introduce special case for
10579 sp/fp/ap wrt REGNO_POINTER_ALIGN.
10580
10581 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
10582
10583 * doc/extend.texi: Warn about unsupported usage of altivec
10584 builtins.
10585
10586 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
10587 (altivec_predicate_*): New.
10588
10589 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
10590 Add C++ version of vec_*() functions.
10591
10592 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
10593 (bdesc_2arg): Remove altivec predicates.
10594 (altivec_expand_builtin): Handle predicates.
10595 (altivec_init_builtins): Handle predicates.
10596 (altivec_expand_predicate_builtin): New.
10597
10598 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10599
10600 * pa.c (DO_FRAME_NOTES): Move forward.
10601 (store_reg): Revise handling of frame notes.
10602 (load_reg): Likewise.
10603 (set_reg_plus_d): Likewise.
10604 (hppa_expand_prologue): Likewise.
10605 (hppa_expand_epilogue): Likewise.
10606
10607 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10608
10609 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
10610
10611 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10612
10613 PR c/4475, c++/3780:
10614 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
10615 * c-common.h (SWITCH_TYPE): Define.
10616 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
10617 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
10618 Rename spareness variable to sparseness.
10619 (expand_end_case_type): Renamed from expand_end_case, use orig_type
10620 if non-NULL instead of TREE_TYPE (orig_index).
10621 * tree.h (expand_end_case_type): Renamed from expand_end_case.
10622 (expand_end_case): Define using expand_end_case_type.
10623 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
10624 to expand_end_case_type.
10625 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
10626
10627 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10628
10629 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
10630 (BIGGEST_ALIGNMENT): Change to 128.
10631
10632 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10633
10634 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
10635
10636 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
10637
10638 * pa.md (call_internal_reg_64bit): Remove unused variable.
10639
10640 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
10641
10642 * config/arm/arm.h (machine_function): Add uses_anonymous_args
10643 field.
10644 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
10645 * config/arm/arm.c (current_function_anonymous_args): Delete,
10646 replace uses with cfun->machine->uses_anonymous_args.
10647 (arm_reorg): Do not reset uses_anonymous_args.
10648
10649 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
10650 any geenral register.
10651
10652 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
10653
10654 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
10655 the entry block.
10656
10657 2002-02-04 Richard Henderson <rth@redhat.com>
10658
10659 * combine.c (force_to_mode): Remove STACK_BIAS code.
10660 (nonzero_bits): Likewise. Replace sp/fp special case with
10661 REGNO_POINTER_ALIGN.
10662
10663 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
10664 (HARD_FRAME_POINTER_REGNUM): New.
10665 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
10666 (FIXED_REGS, CALL_USED_REGS): Update.
10667 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
10668 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
10669 (HARD_REGNO_NREGS): Update for SFP.
10670 (STACK_POINTER_OFFSET): Include bias here ...
10671 (FIRST_PARM_OFFSET): ... not here.
10672 (STACK_BIAS): Remove.
10673 (INIT_EXPANDERS): New.
10674 (STARTING_FRAME_OFFSET): Do not include bias.
10675 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
10676 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
10677 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
10678 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
10679 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
10680 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
10681 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
10682 (MUST_SAVE_REGISTER): Likewise.
10683 (sparc_flat_function_prologue): Likewise.
10684 (sparc_flat_function_epilogue): Likewise.
10685 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
10686 (sparc_init_modes): SFP is GENERAL_REGS.
10687 (sparc_builtin_saveregs): SFP does not have bias applied.
10688
10689 2002-02-04 Richard Henderson <rth@redhat.com>
10690
10691 * config/alpha/alpha.c (current_function_is_thunk): Don't check
10692 current_function_is_thunk.
10693 (alpha_sa_mask): Distinguish between current_function_is_thunk
10694 called from ASM_OUTPUT_MI_THUNK and not.
10695 (alpha_does_function_need_gp): Thunks always need gp.
10696 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10697 (alpha_output_mi_thunk_osf): New.
10698 * config/alpha/alpha-protos.h: Update.
10699 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
10700
10701 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
10702
10703 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
10704 function types, not when they're taken away.
10705
10706 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
10707
10708 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
10709 CODE_LABEL and jump table when replacing a table jump with a
10710 simple jump.
10711
10712 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10713
10714 * config/s390/s390-protos.h (legitimize_la_operand,
10715 s390_secondary_input_reload_class, s390_plus_operand,
10716 s390_expand_plus_operand): Add prototypes.
10717
10718 config/s390/s390.c (s390_secondary_input_reload_class,
10719 s390_plus_operand, s390_expand_plus_operand): New functions.
10720
10721 (struct s390_address): New member 'pointer'.
10722 (s390_decompose_address): Compute it.
10723 (legitimate_la_operand_p): Use it.
10724 (legitimize_la_operand): New function.
10725 (movti, movdi, movdf splitters): Call it.
10726
10727 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
10728 (PREDICATE_CODES): Add s390_plus_operand.
10729
10730 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
10731 (la_ccclobber): Allow GENERAL_REGS as output operand.
10732
10733 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
10734 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
10735 (*la_64, *la_31, reload_indi, reload_insi): ... these.
10736
10737 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10738
10739 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
10740 register names for regular asm () construct.
10741
10742 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10743
10744 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
10745 registers.
10746
10747 2002-02-04 Jakub Jelinek <jakub@redhat.com>
10748
10749 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
10750 pat for recog.
10751
10752 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
10753
10754 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
10755 constant pool to be identical by string address and index.
10756
10757 2002-02-04 Anthony Green <green@redhat.com>
10758
10759 * output.h (SECTION_OVERRIDE): Define.
10760 * varasm.c (named_section): Obey SECTION_OVERRIDE.
10761
10762 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10763
10764 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
10765 by existing arm*-*-netbsd* (a.out) target.
10766 (ns32k-*-netbsdelf*): Likewise.
10767 (sparc-*-netbsdelf*): Likewise.
10768 (vax-*-netbsdelf*): Likewise.
10769
10770 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
10771
10772 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
10773 headers and libobjc headers.
10774
10775 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
10776
10777 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
10778 (_mingw.h): Remove duplicate include.
10779
10780 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
10781
10782 * config.gcc: Set cpu_type to m68k for 68010, as well.
10783 (m68010-*-netbsdelf*): New...
10784 (m68k*-*-netbsdelf*): ...targets.
10785 * config/m68k/netbsd-elf.h: New file.
10786
10787 2002-02-02 Kazu Hirata <kazu@hxi.com>
10788
10789 * config/h8300/h8300.c (hand_list): Move inside function_arg.
10790
10791 2002-02-02 Kazu Hirata <kazu@hxi.com>
10792
10793 * config/h8300/h8300.c (h8_push_ops): Move inside
10794 h8300_init_once.
10795 (h8_pop_ops): Likewise.
10796 (h8_move_ops): Likewise.
10797
10798 2002-02-02 Kazu Hirata <kazu@hxi.com>
10799
10800 * config/h8300/h8300.c (os_task): Make it static.
10801 (monitor): Likewise.
10802 (pragma_saveall): Likewise.
10803
10804 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
10805
10806 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
10807 constant is a valid sign-extension for Pmode.
10808
10809 2002-02-02 Kazu Hirata <kazu@hxi.com>
10810
10811 * config/h8300/h8300.c: Fix formatting.
10812
10813 2002-02-02 Kazu Hirata <kazu@hxi.com>
10814
10815 * config/h8300/h8300.md: Fix formatting.
10816
10817 2002-02-02 Kazu Hirata <kazu@hxi.com>
10818
10819 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
10820 predicates of operands[1]. Split the patterns for each
10821 processor variant.
10822
10823 2002-02-02 Kazu Hirata <kazu@hxi.com>
10824
10825 * config/h8300/h8300.md (xor patterns): Tighten the predicates
10826 of operands[1] to register_operand.
10827
10828 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10829
10830 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
10831 * cpphash.c (_cpp_init_hashtable): Similarly.
10832 * cppinit.c (cpp_create_reader): Default the signed_char flag.
10833 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
10834 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
10835 (cpp_handle_option): Handle the new options.
10836 * cpplex.c (cpp_interpret_charconst): Use new flag.
10837 * cpplib.h (struct cpp_options): New member signed_char.
10838 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
10839 (cpp_options): Handle -fsigned-char and -funsigned-char.
10840 (static_specs): Remove signed_char_spec.
10841 (do_spec1): Don't handle %c.
10842 * system.h: Poison SIGNED_CHAR_SPEC.
10843 * tradcif.y (yylex): Use flag_signed_char.
10844 * tradcpp.h (flag_signed_char): New.
10845 * tradcpp.c (flag_signed_char): New.
10846 (main): Handle new command-line options.
10847 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
10848 config:
10849 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
10850 * avr/avr.h: Remove old comments.
10851 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
10852 (CC1_SPEC): Pass -fsigned-char if -mic*.
10853 (SIGNED_CHAR_SPEC): Remove.
10854 doc:
10855 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
10856
10857 2002-02-01 Eric Christopher <echristo@redhat.com>
10858
10859 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
10860 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
10861 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
10862 (ASM_OUTPUT_REG_POP): Ditto.
10863
10864 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
10865
10866 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10867 patch.
10868
10869 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10870
10871 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10872
10873 2002-02-02 Jakub Jelinek <jakub@redhat.com>
10874
10875 PR c/5304:
10876 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10877 unconditionally.
10878
10879 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10880
10881 * cfganal.c: Include tm_p.h.
10882 (keep_with_call_p): Fix the test that determines if a register holds
10883 the return value of a call.
10884
10885 2002-02-01 DJ Delorie <dj@redhat.com>
10886
10887 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10888 we are given conflicting registers, switch to the other one we
10889 had allocated for us.
10890 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10891 as TImode so we know when the "other" register is available.
10892
10893 2002-02-01 David O'Brien <obrien@FreeBSD.org>
10894
10895 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10896 sparc/sparc_bi.h.
10897
10898 2002-02-01 Janis Johnson <janis187@us.ibm.com>
10899
10900 * cfganal.c (keep_with_call_p): New function.
10901 (flow_call_edges_add): Prevent splitting a block between a call and
10902 a single-set instruction that should be kept in the same block.
10903
10904 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
10905
10906 * doc/install.texi (avr): Update outdated URL.
10907
10908 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
10909
10910 * config/stormy16/stormy16.md (pushqi): New.
10911 (popqi): New.
10912 (pushhi): New.
10913 (pophi): New.
10914 (movhi): Remove stack operands.
10915 (movqi): Likewise.
10916 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10917 nonimmediate_nonstack_operand.
10918 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10919 New.
10920 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10921 New.
10922
10923 2002-01-31 Jason Merrill <jason@redhat.com>
10924
10925 * Makefile.in (c-parse.c): Handle .output file.
10926 * objc/Make-lang.in (objc-parse.c): Likewise.
10927
10928 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
10929
10930 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10931 the -me[lb] option is given. Don't output the default flag
10932 twice.
10933
10934 2002-01-31 Zack Weinberg <zack@codesourcery.com>
10935
10936 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10937 the primary source file; this has not been done yet.
10938 * c-decl.c (c_expand_body): Reset input_filename from
10939 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10940
10941 2002-01-31 Kazu Hirata <kazu@hxi.com>
10942
10943 * rtlanal.c (subreg_regno_offset): Do not use
10944 SUBREG_REGNO_OFFSET.
10945 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10946 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10947
10948 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10949
10950 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
10951 version rather than GNATS version in --version output.
10952
10953 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
10954
10955 * ifcvt.c (noce_process_if_block): Make a copy of the destination
10956 when copying back from a temporary.
10957
10958 2002-01-30 Richard Henderson <rth@redhat.com>
10959
10960 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10961 and new_dest are the same.
10962
10963 2002-01-30 Richard Henderson <rth@redhat.com>
10964
10965 PR opt/5076
10966 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10967 * rtl.c (note_insn_name): Update.
10968 * emit-rtl.c (remove_unnecessary_notes): Kill it.
10969 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
10970 to perform loop rotation.
10971 (expand_exit_loop_top_cond): New.
10972 * tree.h (expand_exit_loop_top_cond): Declare it.
10973 * c-semantics.c (genrtl_while_stmt): Use it.
10974 (genrtl_for_stmt): Likewise.
10975
10976 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
10977
10978 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10979 arguments to 64-bit boundaries on 64-bit ABIs.
10980
10981 2002-01-30 Steve Ellcey <sje@cup.hp.com>
10982
10983 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10984
10985 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10986
10987 * c-decl.c (grokdeclarator): Handle type being a typedef for an
10988 invalid type.
10989
10990 2002-01-30 David O'Brien <obrien@FreeBSD.org>
10991
10992 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10993 * config/sparc/sparc_bi.h: Remove file.
10994 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10995
10996 2002-01-30 Richard Henderson <rth@redhat.com>
10997
10998 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10999
11000 2002-01-30 Zack Weinberg <zack@codesourcery.com>
11001
11002 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11003
11004 2002-01-30 Jason Merrill <jason@redhat.com>
11005
11006 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11007 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11008 (reg_save): Use DW_CFA_offset_extended_sf instead.
11009
11010 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11011
11012 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11013
11014 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11015 in cselib_lookup.
11016
11017 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
11018
11019 * rs6000.md ("*call_value_local32"): Remove constraints.
11020 ("*call_value_local64"): Same.
11021 ("*call_value_indirect_nonlocal_aix32"): Same.
11022 ("*call_value_nonlocal_aix32"): Same.
11023 ("*call_value_indirect_nonlocal_aix64"): Same.
11024 ("*call_value_nonlocal_aix64"): Same.
11025 ("*call_value_nonlocal_sysv"): Same.
11026
11027 2002-01-29 Richard Henderson <rth@redhat.com>
11028
11029 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11030
11031 2002-01-29 Richard Henderson <rth@redhat.com>
11032
11033 * expr.c (force_operand): Ignore flag_pic for detecting pic
11034 address loads.
11035 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11036 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11037 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11038 instead of open-coded loop.
11039 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11040 be fixed when in use.
11041
11042 2002-01-29 Richard Henderson <rth@redhat.com>
11043
11044 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11045 * sched-rgn.c (propagate_deps): Update them.
11046 * sched-deps.c (sched_analyze_insn): Update them. Flush the
11047 clobbers list when either gets too long.
11048
11049 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11050
11051 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11052 and INDEX_REGS the same as GENERAL_REGS.
11053 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11054
11055 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11056
11057 * tree.c (build_nonstandard_integer_type): Correct prototype.
11058
11059 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
11060
11061 * config/s390/s390.md (movstrsico, movstrdix_64,
11062 movstrsix_31): Remove, replace by ...
11063 (movstrdi_short, movstrsi_short, movstrdi_long,
11064 movstrsi_long): ... these. New.
11065 (movstrdi, movstrsi): Adapt.
11066
11067 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11068 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11069 Remove unnecessary CC clobber.
11070 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11071 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11072
11073 (divmoddi4): Don't partially initialize TImode register.
11074
11075 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
11076
11077 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11078
11079 2002-01-29 Richard Henderson <rth@redhat.com>
11080
11081 * flow.c (print_rtl_and_abort): Remove.
11082 (print_rtl_and_abort_fcn): Remove.
11083 (verify_local_live_at_start): Use dump_bb instead.
11084 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11085 (verify_wide_reg_1): Return 2 on mode test failure.
11086
11087 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
11088
11089 PR c/3325, c/3326, c/2511, c/3347
11090 * c-decl.c (enum_decl_context): Remove BITFIELD.
11091 (grokdeclarator): Take bitfield width as an input.
11092 Ensure bitfields are given the correct type. Perform
11093 bitfield width validation with build_bitfield_integer_type
11094 rather than waiting for finish_struct.
11095 (grok_typename, grok_typename_in_parm_context, start_decl,
11096 push_parmdecl, grokfield, start_function): Update calls to
11097 grokdeclarator.
11098 (build_bitfield_integer_type): New function.
11099 (finish_struct): Move bitfield validation to grokdeclarator
11100 and build_bitfield_integer_type.
11101 * tree.c (build_nonstandard_integer_type): New function.
11102 * tree.h (build_nonstandard_integer_type): New prototype.
11103 objc:
11104 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11105
11106 2002-01-29 Jakub Jelinek <jakub@redhat.com>
11107
11108 PR other/1502:
11109 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11110 don't ignore unrecognized -W* options.
11111 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11112 * cpplib.h (cpp_handle_option): Adjust prototype.
11113 * c-decl.c (c_decode_options): Pass 0 as last argument to
11114 cpp_handle_option.
11115
11116 PR c/2896:
11117 * gcc.c (cpp_unique_options): Split from cpp_options.
11118 (cpp_options): Source cpp_unique_options.
11119 (default_compilers): Use cpp_unique_options instead of cpp_options
11120 when used together with cc1_options.
11121 (static_specs): Add cpp_unique_options.
11122 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11123 when used together with cc1_options.
11124
11125 2002-01-29 Kazu Hirata <kazu@hxi.com>
11126
11127 * config/h8300/h8300-protos.h: Update the prototype of
11128 output_a_shift.
11129 * config/h8300/h8300.c (output_a_shift): Remove an unused
11130 argument 'insn'. Remove redundant code.
11131 * config/h8300/h8300.md: Adust to the new prototype of
11132 output_a_shift.
11133
11134 2002-01-29 Kazu Hirata <kazu@hxi.com>
11135
11136 * config/h8300/h8300-protos.h: Update the prototypes of
11137 emit_a_rotate and expand_a_rotate.
11138 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11139 first argument to 'enum rtx_code'.
11140 (expand_a_rotate): Likewise.
11141
11142 2002-01-28 Kazu Hirata <kazu@hxi.com>
11143
11144 * config/h8300/h8300-protos.h: Update the prototype of
11145 output_simode_bld.
11146 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11147 'log2'.
11148 * config/h8300/h8300.md: Adjust to the new prototype.
11149
11150 2002-01-28 Kazu Hirata <kazu@hxi.com>
11151
11152 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11153 redundant code.
11154
11155 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11156
11157 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11158 is a fixed register before returning pic_offset_table_rtx.
11159 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11160 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11161
11162 2002-01-28 Jason Merrill <jason@redhat.com>
11163
11164 * dwarf2.h: Sync with src version.
11165
11166 2002-01-28 Paul Koning <pkoning@equallogic.com>
11167
11168 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11169 BT_FN_VOID_PTR_VAR.
11170 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11171 * doc/extend.texi (__builtin_prefetch): Update documentation:
11172 first argument is now const void ptr.
11173
11174 2002-01-28 Kazu Hirata <kazu@hxi.com>
11175
11176 * config/h8300/h8300-protos.h: Remove an unused prototype.
11177
11178 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
11179
11180 * toplev.c (lang_independent_init): Round up identifier size.
11181
11182 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11183
11184 * config.gcc: Revert previous change.
11185
11186 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
11187
11188 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
11189
11190 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
11191
11192 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
11193 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
11194 other non-elf netbsd config frags.
11195 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
11196 collect2 will does that.
11197 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
11198 shared-lib frobbing will work.
11199
11200 2002-01-28 Kazu Hirata <kazu@hxi.com>
11201
11202 * config/h8300/h8300.h: Fix formatting.
11203 * config/h8300/h8300.md: Likewise.
11204
11205 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
11206
11207 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
11208 the old, removed AAA_standards fix.
11209 * fixinc/fixincl.x: Rebuilt.
11210
11211 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
11212
11213 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
11214 atexit call in crtbegin, hooked in after call to frame_dummy;
11215 register EH before registering __fini__start.
11216
11217 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
11218
11219 * config/rs6000/altivec.h: Remove spurious semicolons.
11220
11221 2002-01-27 Kazu Hirata <kazu@hxi.com>
11222
11223 * config/h8300/h8300.md: Replace dead bit extraction patterns
11224 with ones that work.
11225
11226 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11227
11228 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
11229 if not STRICT_ALIGNMENT.
11230 * rtl.h (MEM_ALIGN): Likewise.
11231
11232 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
11233
11234 * doc/invoke.texi (-fdump-translation-unit): Revert this
11235 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
11236
11237 2002-01-27 Kazu Hirata <kazu@hxi.com>
11238
11239 * config/h8300/h8300.md (define_constants): New.
11240 (anonymous patterns) Use defined constants appropriately.
11241
11242 2002-01-27 Kazu Hirata <kazu@hxi.com>
11243
11244 * config/h8300/h8300.c (function_arg): Remove redundant code.
11245
11246 2002-01-26 Richard Henderson <rth@redhat.com>
11247
11248 * sched-deps.c (reg_pending_uses_head): New.
11249 (reg_pending_barrier): Rename from reg_pending_sets_all.
11250 (find_insn_list): Don't mark inline.
11251 (find_insn_mem_list): Remove.
11252 (add_dependence_list, add_dependence_list_and_free): New.
11253 (flush_pending_lists): Replace only_write param with separate
11254 for_read and for_write parameters. Update all callers. Use
11255 add_dependence_list_and_free.
11256 (sched_analyze_1): Do not add reg dependencies here; just set
11257 the pending bits. Use add_dependence_list.
11258 (sched_analyze_2): Likewise.
11259 (sched_analyze_insn): Replace schedule_barrier_found with
11260 reg_pending_barrier. Add all dependencies for pending reg
11261 uses, sets, and clobbers.
11262 (sched_analyze): Don't add reg dependencies for calls, just
11263 set pending bits. Use regs_invalidated_by_call. Treat
11264 sched_before_next_call as a normal list, not a fake insn.
11265 (init_deps): No funny init for sched_before_next_call.
11266 (free_deps): Free pending mems lists. Don't zero reg_last.
11267 (init_deps_global): Init reg_pending_uses.
11268 (finish_deps_global): Free it.
11269 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
11270 (find_insn_mem_list): Remove.
11271 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
11272 (propagate_deps): Use them. Zero temp mem lists.
11273
11274 2002-01-26 Richard Henderson <rth@redhat.com>
11275
11276 * Makefile.in (CRTSTUFF_CFLAGS): New.
11277 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
11278 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
11279 crtstuff.c instead of alpha assembly version.
11280 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
11281 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
11282 not FORCE_{INIT,FINI}_SECTION_ALIGN.
11283 (__do_global_dtors_aux): Mark used.
11284 (frame_dummy, __do_global_ctors_aux): Mark used.
11285 (fini_dummy, init_dummy): Remove.
11286
11287 * config/alpha/crtbegin.asm: Remove file.
11288 * config/alpha/crtend.asm: Remove file.
11289 * config/alpha/t-crtbe: Remove file.
11290 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
11291 (LINK_EH_SPEC): New.
11292
11293 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
11294 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
11295 calling constructors.
11296 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
11297
11298 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
11299 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
11300 CRT_END_INIT_DUMMY hack.
11301 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
11302 FORCE_{INIT,FINI}_SECTION_ALIGN.
11303
11304 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
11305 FORCE_{INIT,FINI}_SECTION_ALIGN.
11306
11307 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
11308 invocation sequence.
11309 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
11310
11311 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
11312 (FORCE_CODE_SECTION_ALIGN): New.
11313
11314 2002-01-26 Richard Henderson <rth@redhat.com>
11315
11316 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
11317
11318 2002-01-26 Richard Henderson <rth@redhat.com>
11319
11320 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
11321 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
11322
11323 2002-01-26 Kazu Hirata <kazu@hxi.com>
11324
11325 * config/h8300/h8300.md: Remove bit extraction patterns that
11326 cannot be triggered.
11327 Restrict each bit extraction pattern to a variant on which the
11328 pattern is tested.
11329
11330 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
11331
11332 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
11333
11334 2002-01-26 Kazu Hirata <kazu@hxi.com>
11335
11336 * config/h8300/h8300.md: Remove bit test patterns that cannot
11337 be triggered.
11338 Restrict each bit test pattern to a variant on which the
11339 pattern is tested.
11340
11341 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11342
11343 * builtins.c (expand_builtin_strncat): Remove redundant check for
11344 INTEGER_CST.
11345
11346 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11347
11348 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
11349 default setting.
11350 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
11351 existing setting.
11352
11353 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11354
11355 * dbxout.c (dbxout_init): Use assemble_name rather than just
11356 stripping off the first character.
11357 (dbxout_source_file): Likewise.
11358
11359 2002-01-25 DJ Delorie <dj@redhat.com>
11360
11361 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
11362 using rtx_equal_p, not by comparing pointers.
11363
11364 2002-01-25 Steve Ellcey <sje@cup.hp.com>
11365
11366 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
11367 for PIC_OFFSET_TABLE_REGNUM.
11368 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
11369
11370 2002-01-25 David O'Brien <obrien@FreeBSD.org>
11371
11372 * config.gcc (x86_64-*-freebsd*): New target.
11373 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
11374 value.
11375 (i[34567]86-*-freebsd*): Don't include svr4.h.
11376 * config/i386/freebsd64.h: New file.
11377
11378 2002-01-25 Douglas B Rupp <rupp@gnat.com>
11379
11380 * config/alpha/x-vms (version): Make static.
11381
11382 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
11383 in previous checkin.
11384
11385 * Makefile.in (install-headers-cp): New target.
11386 * config.gcc (alpha-dec-*vms*): Install headers with
11387 install-headers-cp
11388
11389 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
11390
11391 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
11392 avoid it's copies.
11393
11394 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11395
11396 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
11397 of compare_tree_int.
11398 (expand_builtin_strncat): Likewise.
11399 * c-decl.c (finish_struct): Use tree_low_cst.
11400 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
11401 * tree.c (compare_tree_int): Likewise.
11402
11403 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
11404
11405 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
11406 adjustments even if they are implemented by more than two insns.
11407
11408 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
11409
11410 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
11411 * df.h (struct ref): Kill B.
11412 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
11413
11414 * basic-block.h (PROP_EQUAL_NOTES): New flag.
11415 * flow.c (propagate_one_insn): Use it.
11416 (mark_used_regs): Handle NIL.
11417
11418 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
11419
11420 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
11421 to help folding.
11422
11423 2002-01-25 David Edelsohn <edelsohn@gnu.org>
11424
11425 * rs6000.md (prefetch): Make address V4SI mode so that the address
11426 is restricted to legitimate form for instruction.
11427
11428 2002-01-25 Bob Wilson <bob.wilson@acm.org>
11429
11430 * doc/install.texi (xtensa-*-elf): New target.
11431 (xtensa-*-linux*): New target.
11432 * doc/contrib.texi: Add myself.
11433
11434 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
11435
11436 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
11437 purpose register to hold an SImode (or smaller) value.
11438
11439 2002-01-25 Jakub Jelinek <jakub@redhat.com>
11440
11441 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
11442 registry only.
11443 * crtstuff.c: Likewise.
11444
11445 2002-01-25 Kazu Hirata <kazu@hxi.com>
11446
11447 * config/h8300/h8300.md (negation patterns): Tighten
11448 predicates to register_operand.
11449
11450 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
11451
11452 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
11453 mode, not Pmode.
11454
11455 * builtins.c (expand_builtin_prefetch): Same.
11456
11457 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11458
11459 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
11460 modes.
11461
11462 2002-01-24 Kazu Hirata <kazu@hxi.com>
11463
11464 * config/h8300/h8300.c (print_operand): Remove support for
11465 operand character 'A'.
11466 * config/h8300/h8300.md (three anonymous patterns): Replace
11467 operand character 'A' with either 'T' or 'S'.
11468
11469 2002-01-24 Kazu Hirata <kazu@hxi.com>
11470
11471 * config/h8300/h8300.c (print_operand): Remove support for
11472 operand character 'U'.
11473
11474 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
11475
11476 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
11477
11478 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
11479
11480 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
11481 values to be assigned to the stack pointer.
11482
11483 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11484
11485 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
11486 to const_double needs to be done right for big-endian systems.
11487
11488 2002-01-24 Jason Merrill <jason@redhat.com>
11489
11490 PR c++/2432
11491 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
11492 to can_throw_internal.
11493
11494 2002-01-23 Richard Henderson <rth@redhat.com>
11495
11496 * fold-const.c (fold): Change UINT_MAX test to check vs precision
11497 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
11498
11499 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11500
11501 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
11502 (symGOT2reg): Use them, then set as GOT value as unchanging.
11503 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
11504 as a temporary, if possible.
11505 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
11506 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
11507
11508 2002-01-23 Kazu Hirata <kazu@hxi.com>
11509
11510 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
11511 accept to accept 0x80 as operands[2].
11512
11513 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11514
11515 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
11516
11517 2002-01-23 Richard Henderson <rth@redhat.com>
11518
11519 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
11520
11521 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
11522
11523 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
11524 (parmlist_or_identifiers_1): Verify that only a parmlist follows
11525 an attribute.
11526
11527 2002-01-23 Richard Henderson <rth@redhat.com>
11528
11529 * expr.c (move_by_pieces_1): Extend size before negation.
11530
11531 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
11532 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
11533 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
11534 * config/m68k/t-m68kelf: Likewise.
11535
11536 2002-01-23 Bob Wilson <bob.wilson@acm.org>
11537
11538 * config/xtensa/elf.h: New file.
11539 * config/xtensa/lib1funcs.asm: New file.
11540 * config/xtensa/lib2funcs.S: New file.
11541 * config/xtensa/linux.h: New file.
11542 * config/xtensa/t-xtensa: New file.
11543 * config/xtensa/xtensa-config.h: New file.
11544 * config/xtensa/xtensa-protos.h: New file.
11545 * config/xtensa/xtensa.c: New file.
11546 * config/xtensa/xtensa.h: New file.
11547 * config/xtensa/xtensa.md: New file.
11548 * config.gcc (xtensa-*-elf*): New target.
11549 (xtensa-*-linux*): New target.
11550 * cse.c (canon_hash): Compare rtx pointers instead of register
11551 numbers. This is required for the Xtensa port.
11552 * integrate.c (copy_insn_list): Handle case where the static
11553 chain is in memory and the memory address has to be copied to
11554 a register.
11555 * doc/invoke.texi (Option Summary): Add Xtensa options.
11556 (Xtensa Options): New node.
11557 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
11558
11559 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11560
11561 * diagnostic.c (internal_error): Do ICE suppression only
11562 when ENABLE_CHECKING is not defined.
11563
11564 * c-typeck.c (require_complete_type): Return error_mark_node
11565 if type is error_mark_node.
11566
11567 2002-01-23 Janis Johnson <janis187@us.ibm.com>
11568
11569 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
11570 -Os and issue a warning.
11571
11572 2002-01-23 Zack Weinberg <zack@codesourcery.com>
11573
11574 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
11575 current (lack of) need for host configuration by hand.
11576
11577 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
11578 references. Documentation of some target macros moved from
11579 hostconfig.texi to tm.texi.
11580
11581 2002-01-23 Will Cohen <wcohen@redhat.com>
11582
11583 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
11584 defined.
11585
11586 2002-01-23 Kazu Hirata <kazu@hxi.com>
11587
11588 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
11589 operand[3].
11590
11591 2002-01-23 Jason Merrill <jason@redhat.com>
11592
11593 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
11594
11595 * function.c (assign_parms): Don't put args of inline functions
11596 into registers when not optimizing.
11597
11598 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
11599
11600 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
11601 (prologue_use): New pattern.
11602 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
11603 preference to gen_rtx_USE.
11604 (thumb_expand_prologue): Use gen_prologue_use in preference to
11605 gen_rtx_USE.
11606 (thumb_expand_epilogue): Use gen_prologue_use in preference to
11607 gen_rtx_USE.
11608
11609 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
11610
11611 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
11612
11613 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
11614
11615 PR c/3504
11616 * doc/extend.texi: Correct documentation of __alignof__.
11617
11618 2002-01-22 Zack Weinberg <zack@codesourcery.com>
11619
11620 * params.h: Rename arguments of DEFPARAM so that it will be
11621 recognized as a translation keyword.
11622
11623 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11624
11625 * extend.texi: Document altivec functions.
11626 Fix N-bit adjectives in X86 builtin documentation.
11627
11628 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11629
11630 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
11631 auto_inc_dec values.
11632
11633 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
11634
11635 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
11636 after backslash.
11637 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
11638
11639 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
11640
11641 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
11642
11643 2002-01-22 Richard Henderson <rth@redhat.com>
11644
11645 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
11646 copy_insn not copy_rtx.
11647
11648 2002-01-23 Alan Modra <amodra@bigpond.net.au>
11649
11650 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
11651 "nonzero" as that might add "1" bits. Ensure "constop" is
11652 properly sign extened.
11653 (force_to_mode): Tweak for sign extended constop.
11654
11655 2002-01-22 Richard Henderson <rth@redhat.com>
11656
11657 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
11658 for_each_rtx instead of assuming we're already looking at the MEM.
11659 (split_small_symbolic_mem_operand): Likewise.
11660 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11661 * config/alpha/alpha.md (small symbolic memory splitters): Update.
11662
11663 2002-01-22 Richard Henderson <rth@redhat.com>
11664
11665 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
11666 sequence number for the literal.
11667 (divmoddi_internal_er): Likewise.
11668
11669 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11670
11671 PR java/4972
11672 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
11673 in LIBICONV variable.
11674 * configure: Regenerated.
11675
11676 2002-01-22 Krister Walfridsson <cato@df.lth.se>
11677
11678 * dependence.c (build_def_use): Remove array_idx.
11679
11680 * dwarfout.c (last_filename): Remove.
11681 (output_compile_unit_die): Remove last_filename.
11682
11683 2002-01-22 Roger Sayle <roger@eyesopen.com>
11684 Richard Henderson <rth@redhat.com>
11685
11686 PR opt/3640
11687 * fold-const.c (fold): Optimize unsigned comparisons against
11688 UINT_MAX (and similar unsigned constants).
11689
11690 2002-01-22 Janis Johnson <janis187@us.ibm.com>
11691
11692 * Makefile.in (loop.o): Depend on OPTABS_H.
11693 * loop.c (emit_prefetch_instructions): Check the prefetch operand
11694 against the predicate.
11695
11696 PR target/5379
11697 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
11698 for the address operand.
11699
11700 2002-01-22 Richard Henderson <rth@redhat.com>
11701
11702 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
11703
11704 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
11705
11706 PR other/5450
11707 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
11708 preprocessor flags.
11709
11710 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
11711
11712 * config.gcc (x86_64-*-netbsd*): New target.
11713 * config/i386/netbsd64.h: New file.
11714
11715 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11716
11717 * regrename.c (kill_value): Fix typo.
11718
11719 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
11720
11721 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
11722
11723 * config/rs6000/rs6000.h: Same.
11724
11725 * function.c (instantiate_virtual_regs): Remove
11726 STARTING_FRAME_PHASE.
11727 (assign_stack_local_1): Same.
11728 Calculate frame phase.
11729
11730 2002-01-22 Nick Clifton <nickc@redhat.com>
11731
11732 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
11733 variable declaration to outer scope in order to simplify
11734 future extensions.
11735 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
11736 arm_hard_regno_mode_ok.
11737 * config/arm/arm-protos.h: Add a prototype for
11738 arm_hard_regno_mode_ok.
11739 * config/arm/arm.c (soft_df_operand): Remove now redundant
11740 check for DImode values using IP_REGNUM.
11741 (nonimmediate_soft_df_operand): Remove now redundant check for
11742 DImode values using IP_REGNUM.
11743 (arm_hard_regno_mode_ok): New function. New check: make sure
11744 that DImode values are not stored in IP_REGNUM.
11745
11746 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
11747 note with a USE.
11748 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
11749
11750 2002-01-22 Jason Merrill <jason@redhat.com>
11751
11752 * c-semantics.c (genrtl_compound_stmt): Only check nesting
11753 consistency if this COMPOUND_STMT is scoped.
11754
11755 2002-01-22 Kazu Hirata <kazu@hxi.com>
11756
11757 * predict.c: Fix formatting.
11758 * print-tree.c: Likewise.
11759 * protoize.c: Likewise.
11760 * real.h: Likewise.
11761 * rtl.h: Likewise.
11762 * sbitmap.h: Likewise.
11763 * scan.c: Likewise.
11764 * sched-deps.c: Likewise.
11765 * sched-vis.c: Likewise.
11766 * sdbout.c: Likewise.
11767 * sibcall.c: Likewise.
11768 * ssa.c: Likewise.
11769 * ssa-ccp.c: Likewise.
11770 * ssa-dce.c: Likewise.
11771 * stmt.c: Likewise.
11772 * stor-layout.c: Likewise.
11773 * system.h: Likewise.
11774
11775 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11776
11777 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
11778 if fits in bounds of base type.
11779
11780 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
11781 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
11782 (add_bound_info, default): If can't find a context, make a
11783 SAVE_EXPR.
11784 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
11785
11786 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
11787
11788 * c-typeck.c (parser_build_binary_op): If result from
11789 build_binary_op is ERROR_MARK just return error_mark_node without
11790 further processing.
11791
11792 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
11793
11794 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
11795 Split a.out-specific bits into...
11796 * config/netbsd-aout.h: ...this.
11797 * config/netbsd-elf.h: New file.
11798 * config/alpha/netbsd-elf.h: Remove.
11799 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
11800 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
11801 (STARTFILE_SPEC): Remove redundant definition.
11802 (ENDFILE_SPEC): Likewise.
11803 (LINK_SPEC): Likewise.
11804 (CPP_SPEC): Likewise.
11805 (ASM_SPEC): Likewise.
11806 (LIB_SPEC): Likewise.
11807 (SWITCH_TAKES_ARG): Likewise.
11808 (TARGET_MEM_FUNCTIONS): Likewise.
11809 (CPP_PREDEFINES): Redefine.
11810 (ASM_FINAL_SPEC): Remove redefinition.
11811 (ASM_COMMENT_START): Redefine.
11812 (FUNCTION_PROFILER): Define.
11813 (TARGET_VERSION): Redefine.
11814 Comment and formatting cleanup.
11815 * config/i386/netbsd.h: Include <netbsd-aout.h>.
11816 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
11817 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
11818 big- or little-endian.
11819 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
11820 * config.gcc (*-*-netbsd*): Add definitions common to all
11821 NetBSD configs.
11822 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
11823 gnu_ld definitions. Add netbsd-elf.h to and remove
11824 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
11825 tmake_file, and don't lose previous tmake_file contents.
11826 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
11827 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
11828 gnu_ld definitions. Add netbsd-elf.h to tm_file.
11829 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
11830 (mipsel-*-netbsd*): Rename this to...
11831 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
11832 mips/little.h to tm_file for mips*el-*.
11833 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
11834 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
11835 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
11836
11837 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11838
11839 * pa-protos.h (reg_before_reload_operand): New function prototype.
11840 * pa.c (reg_before_reload_operand): New function implementation.
11841 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
11842 contraints to "*m".
11843
11844 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11845
11846 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
11847
11848 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
11849
11850 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
11851 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
11852 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
11853 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
11854 (ENDFILE_SPEC): Undefine.
11855 (STARTFILE_SPEC): Redefine for PA.
11856
11857 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11858
11859 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
11860
11861 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
11862
11863 * config.gcc: Add entries to supported PowerPC --with-cpu
11864 types.
11865
11866 2002-01-21 Jakub Jelinek <jakub@redhat.com>
11867
11868 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11869 true for 64-bit mode only SSE registers in 32-bit mode.
11870
11871 2002-01-21 Kazu Hirata <kazu@hxi.com>
11872
11873 * unwind-dw2.c: Fix formatting.
11874 * unwind-dw2-fde.c: Likewise.
11875 * unwind-dw2-fde.h: Likewise.
11876 * unwind-pe.h: Likewise.
11877 * varasm.c: Likewise.
11878 * varray.h: Likewise.
11879
11880 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
11881
11882 Remove workaround for register stack overwrite bug in mmix.
11883 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11884 support for TARGET_REG_STACK_FILL_BUG.
11885 * config/mmix/mmix.h: Remove member has_call_without_parameters.
11886 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11887 Delete.
11888 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11889 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11890 -mno-reg-stack-fill-bug-workaround.
11891 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11892 machine member has_call_without_parameters.
11893 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11894 -mreg-stack-fill-bug-workaround and
11895 -mno-reg-stack-fill-bug-workaround.
11896 (MMIX Options): Ditto.
11897
11898 2002-01-21 Kazu Hirata <kazu@hxi.com>
11899
11900 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11901 as appropriate.
11902 Remove redundant code.
11903
11904 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
11905
11906 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11907 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11908 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11909 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11910 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11911 out target macro definitions and non-target-specific comments
11912 mostly taken from old versions of the manual.
11913
11914 2002-01-20 Kazu Hirata <kazu@hxi.com>
11915
11916 * config/h8300/h8300.h: Fix comment formatting.
11917 * config/ia64/aix.h: Likewise.
11918 * config/ia64/ia64-protos.h: Likewise.
11919 * config/ia64/ia64.c: Likewise.
11920 * config/ia64/ia64.h: Likewise.
11921 * config/ia64/ia64intrin.h: Likewise.
11922 * config/ia64/linux.h: Likewise.
11923 * config/ia64/unwind-aix.c: Likewise.
11924 * config/ia64/unwind-ia64.c: Likewise.
11925
11926 2002-01-20 Kazu Hirata <kazu@hxi.com>
11927
11928 * config/h8300/h8300.c: Revise comments about shift code.
11929
11930 2002-01-20 Kazu Hirata <kazu@hxi.com>
11931
11932 * config/h8300/h8300.c (function_arg): Update a comment.
11933
11934 2002-01-20 Kazu Hirata <kazu@hxi.com>
11935
11936 * config/h8300/h8300.md: Update the comments at the beginning
11937 of the file.
11938
11939 2002-01-20 Kazu Hirata <kazu@hxi.com>
11940
11941 * config/i370/i370.c: Fix comment formatting.
11942 * config/i370/i370.h: Likewise.
11943 * config/i370/i370.md: Likewise.
11944 * config/i370/linux.h: Likewise.
11945
11946 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11947
11948 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11949
11950 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11951 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11952 in incomplete case.
11953
11954 2002-01-20 Graham Stott <grahams@redhat.com>
11955
11956 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11957
11958 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
11959
11960 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11961
11962 2002-01-19 Tom Rix <trix@redhat.com>
11963
11964 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11965
11966 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
11967
11968 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11969
11970 * function.c (assign_stack_local_1): Adjust x_frame_offset with
11971 STARTING_FRAME_PHASE.
11972 (STARTING_FRAME_PHASE): New.
11973 (instantiate_virtual_regs): Check saneness of
11974 STARTING_FRAME_PHASE.
11975
11976 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11977
11978 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11979
11980 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11981
11982 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
11983
11984 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11985 be used for bootstrapping GCC 3.0.
11986
11987 2002-01-18 Kazu Hirata <kazu@hxi.com>
11988
11989 * config/h8300/h8300.md: Fix an insn length.
11990
11991 2002-01-18 Kazu Hirata <kazu@hxi.com>
11992
11993 * bitmap.h: Fix comment formatting.
11994 * combine.c: Likewise.
11995 * cppfiles.c: Likewise.
11996 * c-pragma.h: Likewise.
11997 * c-typeck.c: Likewise.
11998 * df.c: Likewise.
11999 * dwarf2out.c: Likewise.
12000 * function.c: Likewise.
12001 * gcc.c: Likewise.
12002 * genattrtab.c: Likewise.
12003 * gthr-win32.h: Likewise.
12004 * haifa-sched.c: Likewise.
12005 * predict.c: Likewise.
12006 * rtlanal.c: Likewise.
12007 * rtl.h: Likewise.
12008 * unwind-dw2-fde.h: Likewise.
12009 * unwind-pe.h: Likewise.
12010 * vmsdbgout.c: Likewise.
12011
12012 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12013
12014 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12015 if type_required and passed decl.
12016
12017 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
12018
12019 * config.gcc (cpu_type): Include altivec.h in powerpc
12020 extra_headers.
12021 Same for darwin.
12022
12023 * config/rs6000/altivec.h: New.
12024
12025 2002-01-17 David Edelsohn <edelsohn@gnu.org>
12026
12027 * doc/install.texi (*-ibm-aix*): Update assembler and exception
12028 handling information.
12029 * doc/trouble.texi (Interoperation): Add libstdc++ information
12030 for AIX.
12031 (Misunderstandings): Add template instantiation and static template
12032 member information for AIX.
12033
12034 2002-01-17 Jason Merrill <jason@redhat.com>
12035
12036 * dbxout.c (dbxout_type): Support const and volatile.
12037
12038 * except.c (add_partial_entry): Remove backwards compatibility code.
12039 (end_protect_partials): Likewise.
12040
12041 2002-01-17 Jakub Jelinek <jakub@redhat.com>
12042
12043 * config/ia64/ia64.md (prologue_use): New.
12044 * config/ia64/ia64.c (ia64_expand_prologue): Use
12045 gen_prologue_use instead of gen_rtx_USE.
12046 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12047 as CODE_FOR_pred_rel_mutex.
12048 (ia64_sched_reorder2): Likewise.
12049
12050 2002-01-16 Eric Christopher <echristo@redhat.com>
12051
12052 * config/mips/r3900.h: Reformat.
12053 (SUBTARGET_CPP_SIZE_SPEC): Remove.
12054 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12055 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12056 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12057 * config/mips/t-elf: Remove mips3 multilib.
12058
12059 2002-01-16 H.J. Lu <hjl@gnu.org>
12060
12061 * config/mips/linux.h: Include "mips/abi64.h".
12062
12063 2002-01-16 H.J. Lu <hjl@gnu.org>
12064
12065 * config/mips/t-linux: New.
12066
12067 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12068
12069 * config/mips/linux.h: Don't include "gofast.h".
12070 (INIT_SUBTARGET_OPTABS): Removed.
12071
12072 2002-01-16 Kazu Hirata <kazu@hxi.com>
12073
12074 * config/h8300/h8300-protos.h: Replace emit_a_shift with
12075 output_a_shift.
12076 * config/h8300/h8300.c: Likewise.
12077 * config/h8300/h8300.md: Likewise.
12078
12079 2002-01-16 Kazu Hirata <kazu@hxi.com>
12080
12081 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12082 spaces after an opcode name.
12083 (pushqi1_h8300hs): Likewise.
12084 (pushhi1_h8300hs): Likewise.
12085
12086 2002-01-16 Kazu Hirata <kazu@hxi.com>
12087
12088 * doc/extend.texi: Replace "option" with "attribute"
12089 appropriately.
12090
12091 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12092
12093 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12094 (and:DI () (const_int -8)).
12095 (split_small_symbolic_mem_operand): Split
12096 (mem (and:DI () (const_int -8)).
12097
12098 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12099
12100 PR target/5309:
12101 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12102 same way as TYPE_IMUL.
12103 (ultrasparc_sched_reorder): Likewise.
12104 * config/sparc/sparc.md (type): Add comment to update
12105 ultrasparc_sched_reorder when making changes.
12106
12107 2002-01-16 Kazu Hirata <kazu@hxi.com>
12108
12109 * doc/invoke.texi: Change the dump file name of block
12110 reordering pass from 28.bbro to 29.bbro.
12111 Mention -dk option.
12112
12113 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
12114
12115 * i386.md (minsf splitter): Fix pasto.
12116
12117 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12118
12119 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12120 to frame pointer initialisation instruction.
12121 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12122 initialisation instruction.
12123 (soft_df_operand): Do not accept the IP register.
12124 (nonimmediate_soft_df_operand): Do not accept the IP register.
12125
12126 2002-01-16 Jakub Jelinek <jakub@redhat.com>
12127
12128 PR target/5357:
12129 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12130 MASK_V8 being both set.
12131
12132 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
12133
12134 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12135 insn for GOT register; add REG_MAYBE_DEAD notes instead.
12136 config/s390/s390.md (call, call_value): Add GOT register to
12137 CALL_INSN_FUNCTION_USAGE where needed.
12138 (call_exp, call_value_exp): New.
12139
12140 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
12141
12142 * config/arm/arm.c: General formatting tidy up.
12143
12144 2002-01-16 Graham Stott <grahams@redhat.com>
12145
12146 * calls.c (try_to_integrate): Use "(size_t)" intermediate
12147 cast and when casting an integer literal to "rtx" pointer.
12148 (expand_call): Likewise.
12149 * flow.c (try_pre_increment): Likewise.
12150 (find_use_as_address): Likewise.
12151 * integrate.c (expand_iline_function): Likewise.
12152 * regmove.c (try_auto_increment): Likewise.
12153
12154 2002-01-16 Graham Stott <grahams@redhat.com>
12155
12156 * sched-rgn.c (passed): Use sbitmap_free.
12157 (header): Likewise.
12158 (inner): Likewise.
12159 (in_queue): Likewise.
12160 (in_stack): Likewise.
12161
12162 2002-01-15 Eric Christopher <echristo@redhat.com>
12163
12164 * flow.c (propagate_one_insn): Change to use fatal_insn.
12165
12166 2002-01-15 Kazu Hirata <kazu@hxi.com>
12167
12168 * expmed.c (extract_fixed_bit_field): Remove unused code.
12169 * system.h: Poison SLOW_ZERO_EXTEND.
12170 * doc/tm.texi: Remove.
12171 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12172 * config/arm/arm.h: Likewise.
12173 * config/avr/avr.h: Likewise.
12174 * config/clipper/clipper.h: Likewise.
12175 * config/convex/convex.h: Likewise.
12176 * config/d30v/d30v.h: Likewise.
12177 * config/dsp16xx/dsp16xx.h: Likewise.
12178 * config/elxsi/elxsi.h: Likewise.
12179 * config/fr30/fr30.h: Likewise.
12180 * config/h8300/h8300.h: Likewise.
12181 * config/i370/i370.h: Likewise.
12182 * config/i386/i386.h: Likewise.
12183 * config/m68k/m68k.h: Likewise.
12184 * config/mips/mips.h: Likewise.
12185 * config/ns32k/ns32k.h: Likewise.
12186 * config/pdp11/pdp11.h: Likewise.
12187 * config/pj/pj.h: Likewise.
12188 * config/s390/s390.h: Likewise.
12189 * config/sh/sh.h: Likewise.
12190 * config/stormy16/stormy16.h: Likewise.
12191 * config/v850/v850.h: Likewise.
12192 * config/vax/vax.h: Likewise.
12193 * config/we32k/we32k.h: Likewise.
12194
12195 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12196
12197 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
12198 (altivec_lvsl): Change constraint to b.
12199 (altivec_lvsr): Same.
12200 (altivec_lvebx): Same.
12201 (altivec_lvehx): Same.
12202 (altivec_lvewx): Same.
12203 (altivec_lvxl): Same.
12204 (altivec_lvx): Same.
12205 (altivec_stvx): Add parallel.
12206 (altivec_stvxl): Same.
12207 (altivec_stvehx): Same.
12208 (altivec_stvebx): Same.
12209 (altivec_stvebx): Same.
12210
12211 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
12212
12213 * config.gcc: Change altivec.h to altivec-defs.h.
12214
12215 * config/rs6000/altivec.h: Delete.
12216
12217 * config/rs6000/altivec-defs.h: Add.
12218
12219 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12220
12221 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
12222 and UMOD modes.
12223
12224 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
12225 less than or equal to eight bytes.
12226
12227 * vax.md (andsi3): Remove constraints and change SET destination
12228 operand type to nonimmediate_operand.
12229 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
12230 when it is a CONST_INT.
12231
12232 2002-01-15 Jason Merrill <jason@redhat.com>
12233
12234 * c-common.def (FILE_STMT): New code.
12235 * c-common.c (statement_code_p): It's a statement.
12236 * c-common.h (stmt_tree_s): Add x_last_filename.
12237 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
12238 (last_expr_filename): New macro.
12239 * c-semantics.c (begin_stmt_tree): Initialize it.
12240 (add_stmt): If the filename changed, also insert a
12241 FILE_STMT.
12242 (expand_stmt): Handle seeing one.
12243
12244 2002-01-15 Eric Christopher <echristo@redhat.com>
12245
12246 * flow.c (propagate_one_insn): Add error message and print out
12247 insn for debugging.
12248
12249 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12250
12251 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
12252 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
12253 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
12254 TRAMPOLINE_ALIGNMENT.
12255 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
12256 to be in bits.
12257 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
12258 PCC_BITFIELD_TYPE_MATTERS.
12259 * config/interix.h (STDC_VALUE): Remove. Use
12260 STDC_0_IN_SYSTEM_HEADERS.
12261 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
12262 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
12263 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
12264
12265 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
12266
12267 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
12268 not work on this platform currently.
12269
12270 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
12271
12272 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
12273 readonly_warning in _().
12274
12275 2002-01-15 Douglas B Rupp <rupp@gnat.com>
12276
12277 * gcc.c (delete_if_ordinary): Backout previous change.
12278
12279 2002-01-15 Kazu Hirata <kazu@hxi.com>
12280
12281 * config/h8300/h8300.c (print_operand): Remove support for
12282 unused operand characters.
12283
12284 * read-rtl.c: Fix formatting.
12285 * real.c: Likewise.
12286 * recog.c: Likewise.
12287 * regclass.c: Likewise.
12288 * regmove.c: Likewise.
12289 * reg-stack.c: Likewise.
12290 * reload1.c: Likewise.
12291 * rtlanal.c: Likewise.
12292
12293 2002-01-15 Kazu Hirata <kazu@hxi.com>
12294
12295 * config/i386/i386.c: Fix formatting.
12296
12297 2002-01-15 Jakub Jelinek <jakub@redhat.com>
12298
12299 * c-typeck.c (process_init_element): Don't save_expr
12300 COMPOUND_LITERAL_EXPR if just its initializer will be used.
12301
12302 2002-01-15 David Edelsohn <edelsohn@gnu.org>
12303
12304 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
12305 emit optional traceback table if optimize_size or TARGET_ELF.
12306 * config/rs6000/rs6000.md (prefetch): New.
12307
12308 2002-01-15 Andreas Jaeger <aj@suse.de>
12309
12310 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
12311
12312 2002-01-15 Kazu Hirata <kazu@hxi.com>
12313
12314 * mips-tfile.c: Fix formatting.
12315
12316 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
12317
12318 * unroll.c (final_reg_note_copy): Fix previous commit.
12319
12320 2002-01-14 Kazu Hirata <kazu@hxi.com>
12321
12322 * config/h8300/h8300-protos.h: Remove the prototype for
12323 eq_operator.
12324 * config/h8300/h8300.c (eq_operator): Remove.
12325
12326 2002-01-14 Richard Henderson <rth@redhat.com>
12327
12328 * config/i386/i386.md (prefetch): Tidy.
12329 (prefetch_3dnow): Fix locality operand.
12330
12331 2002-01-14 Richard Henderson <rth@redhat.com>
12332
12333 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
12334 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
12335
12336 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
12337
12338 * reload1.c (reload_combine): Pass reg_sum replacement through
12339 copy_rtx in loop performing multiple changes.
12340
12341 2002-01-14 Jakub Jelinek <jakub@redhat.com>
12342
12343 * except.c (remove_unreachable_regions): New.
12344 (free_eh_status): Clear exception_handler_labels.
12345 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
12346 (find_exception_handler_labels): Don't add the same label more than
12347 once.
12348 (remove_exception_handler_label): Don't die if
12349 find_exception_handler_labels hasn't been called for the current
12350 function yet.
12351
12352 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
12353
12354 * toplev.c (rest_of_compilation): Rebuild jump labels after
12355 gcse.
12356
12357 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
12358
12359 * doc/extend.texi: Move documentation of X86 built-in functions
12360 here.
12361 * doc/invoke.texi: From here.
12362 * doc/sourcebuild.texi: Document location of documentation for
12363 machine built-in functions.
12364
12365 2002-01-13 Christopher Faylor <cgf@redhat.com>
12366
12367 * cppfiles.c (TEST_THRESHOLD): New macro.
12368 (SHOULD_MMAP): Ditto.
12369 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
12370 be used.
12371
12372 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
12373
12374 * unroll.c (final_reg_note_copy): Properly handle
12375 REG_LABEL
12376 (unroll_loops): Fix LOOP_CONDITION heuristics.
12377
12378 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
12379
12380 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
12381 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
12382
12383 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
12384
12385 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
12386 threaded loop.
12387
12388 2002-01-14 Tom Rix <trix@redhat.com>
12389
12390 * config/rs6000/rs6000.md: Fix typo with sradi.
12391
12392 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
12393
12394 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
12395 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
12396 (clrstrdi, clrstrsi): Adapt callers.
12397
12398 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
12399
12400 (movti splitter): Never use register 0 as base register.
12401
12402 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
12403
12404 * combine.c (simplify_shift_const): Always generate new rtx
12405 for shift expression instead of reusing given expression.
12406
12407 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12408
12409 * config/alpha/alpha.c (alpha_expand_mov): Don't call
12410 alpha_legitimize_address unless mode is Pmode.
12411
12412 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
12413
12414 * doc/md.texi (Modifiers): Document the '*' constraint for the
12415 user.
12416
12417 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
12418 * doc/extend.texi (Function Attributes): 'interrupt' is valid
12419 for xstormy16 too.
12420
12421 2002-01-13 Richard Henderson <rth@redhat.com>
12422
12423 * reload.c (find_reloads): Use a hard reg destination as reload reg
12424 for an input reload of the source.
12425
12426 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12427
12428 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
12429 more generic.
12430
12431 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
12432
12433 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12434 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
12435
12436 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
12437
12438 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12439
12440 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
12441
12442 2002-01-12 Tom Rix <trix@redhat.com>
12443
12444 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
12445 TARGET_POWERPC64.
12446
12447 2002-01-12 Richard Henderson <rth@redhat.com>
12448
12449 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
12450
12451 * doc/invoke.texi: Update Alpha options.
12452
12453 * doc/invoke.texi: Update i386 built-in function lists.
12454
12455 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
12456
12457 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
12458 referencing outside.
12459
12460 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12461
12462 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
12463 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
12464 offsets, and change line folding.
12465 * optabs.c (expand_binop): Remove warnings.
12466 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
12467
12468 2002-01-12 Graham Stott <grahams@redhat.com>
12469
12470 * attribs.c (handle_deprecated_attribute): constify WHAT.
12471 * diagnostic.c (warn_deprecated_use): Add braces, fixes
12472 dangling else warning and constify WHAT.
12473 * except.h (struct function, struct inline_remap): Move
12474 struct tag forward defs before all prototypes.
12475 (duplicate_eh_regions): Whitespace.
12476
12477 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
12478
12479 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12480 MODE_BASE_REG_CLASS.
12481 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
12482
12483 2002-01-12 Richard Henderson <rth@redhat.com>
12484
12485 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
12486 (ix86_expand_vector_move): New.
12487 (bdesc_2arg): Remove andps, andnps, orps, xorps.
12488 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
12489 Remove old prefetch builtins. Special case the logicals removed above.
12490 (ix86_expand_builtin): Likewise.
12491 (safe_vector_operand): Use V4SFmode, not TImode.
12492 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
12493 (ix86_expand_timode_binop_builtin): New.
12494 * config/i386/i386-protos.h: Update.
12495 * config/i386/i386.h (enum ix86_builtins): Update.
12496 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
12497 Use ix86_expand_vector_move in vector move expanders.
12498 (movti_internal, movti_rex64): Add xorps alternative.
12499 (sse_clrv4sf): Rename and adjust from sse_clrti.
12500 (prefetch): Don't work so hard.
12501 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
12502 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
12503 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
12504
12505 2002-01-11 Richard Henderson <rth@redhat.com>
12506
12507 * config/i386/mmintrin.h: New file.
12508 * config/i386/xmmintrin.h: New file.
12509 * config.gcc (i?86-*-*): Add extra_headers.
12510 * simplify-rtx.c (simplify_unary_operation): Handle saturating
12511 truncation codes.
12512 (simplify_binary_operation): Handle saturating arithmetic codes.
12513 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
12514 not the lowpart subreg.
12515 (ix86_expand_builtin): Return a TImode dummy register instead of 0
12516 on error.
12517 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
12518
12519 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12520
12521 * conflict.c (conflict_graph_compute): Free regsets when finished.
12522 * ssa.c (compute_coalesced_reg_partition): Likewise.
12523
12524 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12525
12526 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
12527 every where we allocate a register.
12528
12529 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12530
12531 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
12532 * lcm.c (compute_earliest, compute_farthest): Likewise.
12533
12534 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12535
12536 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
12537
12538 2002-01-11 Janis Johnson <janis187@us.ibm.com>
12539
12540 * doc/rtl.texi (Insns): Fix 2 typos.
12541
12542 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
12543
12544 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
12545 options. Use @table @gcctabopt for MMIX options. Add index
12546 entries for MMIX options. Start new paragraph with first
12547 heading of the machine-dependent options.
12548
12549 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
12550
12551 PR other/5299
12552 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
12553 * combine.c (force_to_mode): Same.
12554 * reload1.c (clear_reload_reg_in_use): Same.
12555
12556 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
12557
12558 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
12559 and 'subtargets'.
12560
12561 2002-01-11 Andreas Jaeger <aj@suse.de>,
12562 Brad Lucier <lucier@math.purdue.edu>
12563
12564 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
12565 mcpu.
12566
12567 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
12568
12569 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
12570 Protect with IN_LIBGCC.
12571 (LINK_EH_SPEC): Add required trailing space.
12572
12573 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
12574
12575 * c-tree.h: Move function declarations so that they are listed
12576 under the filename which contains them.
12577 (check_identifier, finish_decl_top_level,
12578 lookup_name_current_level_global, shadow_record_fields): Remove.
12579
12580 2002-01-11 Andreas Jaeger <aj@suse.de>
12581
12582 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
12583 march.
12584
12585 2002-01-10 Richard Henderson <rth@redhat.com>
12586
12587 * config/alpha/alpha.c (print_operand): Add 'J'.
12588 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
12589 new operand with the sequence number for the lituse. When splitting
12590 the insns, use gen_movdi_er_high_g and generate a sequence number.
12591 (gen_movdi_er_high_g): Print the sequence number if non-zero.
12592
12593 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
12594
12595 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
12596 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
12597 stvxl.
12598 (altivec_expand_builtin): Same.
12599 (altivec_expand_stv_builtin): New.
12600
12601 * config/rs6000/rs6000.h (rs6000_builtins): Same.
12602
12603 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
12604 ("altivec_lvehx"): New.
12605 ("altivec_lvewx"): New.
12606 ("altivec_lvxl"): New.
12607 ("altivec_lvx"): New.
12608 ("altivec_stvx"): New.
12609 ("altivec_stvebx"): New.
12610 ("altivec_stvehx"): New.
12611 ("altivec_stvewx"): New.
12612 ("altivec_stvxl"): New.
12613
12614 2002-01-10 Richard Henderson <rth@redhat.com>
12615
12616 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
12617 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
12618 care not to delete instructions twice.
12619
12620 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12621
12622 * toplev.c: Don't declare environ (it's not used anywhere).
12623 * configure.in: Don't check for declaration of environ.
12624 * config/i386/xm-mingw32.h: Don't #define environ.
12625 * config.in, configure: Regenerate.
12626
12627 2002-01-10 Zack Weinberg <zack@codesourcery.com>
12628
12629 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
12630 * configure: Regenerate.
12631
12632 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
12633 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
12634 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
12635 alpha/xm-vms.h.
12636 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
12637 LIMITS_H_TEST here, not in m68k/x-next.
12638 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
12639 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
12640
12641 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
12642 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
12643 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
12644
12645 * config/i386/x-djgpp: Renamed i386/t-djgpp.
12646 * config/m88k/x-dolph: Renamed m88k/t-dolph.
12647 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
12648 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
12649 replacement of quadlib.asm with quadlib.c.
12650
12651 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
12652 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
12653 config/rs6000/xm-beos.h: Delete file.
12654
12655 * config.gcc: Update to match above changes.
12656
12657 2002-01-10 Kazu Hirata <kazu@hxi.com>
12658
12659 * config/h8300/h8300.h: Fix comment typos.
12660 * config/h8300/h8300.md: Likewise.
12661 * config/h8300/lib1funcs.asm: Likewise.
12662
12663 2002-01-10 Dale Johannesen <dalej@apple.com>
12664
12665 PR optimization/5269
12666 * unroll.c (precondition_loop_p): Make *increment be the correct
12667 sign when n_iterations known, to avoid confusing caller.
12668
12669 2002-01-10 Kazu Hirata <kazu@hxi.com>
12670
12671 * doc/extend.texi (deprecated): Fix a typo.
12672
12673 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
12674
12675 * basic-block.h (update_br_prob_note): Declare.
12676 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
12677 (try_forward_edges): Care negative frequencies and update note.
12678 (outgoing_edges_match): Tweek conditional merging heuristics.
12679 (try_crossjump_to_edge): use update_br_prob_note.
12680 * cfglayout.c (fixup_reorder_chain): Likewise.
12681 * cfrtl.c (update_br_prob_note): New.
12682 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
12683
12684 * i386.c (ix86_decompose_address): Return -1 if address contains
12685 shift.
12686 (legitimate_address_p): Require ix86_decompose_address to return 1.
12687
12688 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
12689 (cprop_insn): Likewise.
12690
12691 2002-01-10 Kazu Hirata <kazu@hxi.com>
12692
12693 * toplev.c: Fix formatting.
12694 * tree.c: Likewise.
12695 * tree-dump.c: Likewise.
12696 * unroll.c: Likewise.
12697 * unwind-dw2.c: Likewise.
12698 * unwind-dw2-fde.c: Likewise.
12699 * unwind-dw2-fde-glibc.c: Likewise.
12700 * unwind-sjlj.c: Likewise.
12701
12702 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12703
12704 * doc/invoke.texi: Document PDP-11 options.
12705
12706 2002-01-10 Kazu Hirata <kazu@hxi.com>
12707
12708 * config/h8300/h8300.h: Fix formatting.
12709
12710 2002-01-10 Ira Ruben <ira@apple.com>
12711
12712 Add __attribute__ ((deprecated)).
12713 * extend.texi: Document __attribute__ ((deprecated)).
12714 * invoke.texi: Document -Wno-deprecated-declarations.
12715 * testsuite/g++.dg/other/deprecated.C: New C++ test.
12716 * testsuite/gcc.dg/deprecated.c: New C test.
12717 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
12718 (c_common_attribute_table): Add "deprecated" entry.
12719 (handle_deprecated_attribute): New function.
12720 * c-decl.c (deprecated_states): New enum.
12721 deprecated_state: State of "deprecated" handling.
12722 (start_decl): Set deprecated_state based on attributes.
12723 (grokdeclarator): Test for deprecated uses, propagate attribute.
12724 * c-typeck.c (build_component_ref): Test for deprecated fields.
12725 (build_external_ref): Test for deprecated primaries.
12726 * diagnostic.c (warn_deprecated_use) New function to issue
12727 warnings about __attribute__ ((depricated)) references.
12728 * flags.h (warn_deprecated_decl): Extern declared for
12729 -W[no-]deprecated-declarations option.
12730 * print-tree.c (print_node): Show deprecated flag status.
12731 * toplev.c (warn_deprecated_decl): Defined.
12732 (W_options): Added "deprecated-declaration".
12733 * toplev.h (warn_deprecated_use): Extern declared.
12734 * tree.h (struct tree_common): Define deprecated_flag.
12735 (TREE_DEPRECATED): New macro to access flag.
12736 * cp/call.c (build_call): Test for deprecated calls.
12737 * cp/class.c (add_implicitly_declared_members): Set global
12738 flag to tell grokdeclarator to not issue deprecated warnings.
12739 * cp/cp-tree.h: Add extern for adding_implicit_members.
12740 * cp/decl.c (deprecated_states): New enum.
12741 (start_decl): Set deprecated_state based on attributes.
12742 (grokdeclarator): Test for deprecated uses, propagate attribute.
12743 * cp/lex.c (do_identifier): Test for deprecated primaries.
12744 * cp/typeck.c (build_component_ref): Test for deprecated fields.
12745
12746 2002-01-10 Ira Ruben <ira@apple.com>
12747
12748 Fix to assign attributes to inline member functions.
12749 * cp/decl.c (start_method): Handle attrlist.
12750
12751 2002-01-10 Kazu Hirata <kazu@hxi.com>
12752
12753 * combine.c (expand_field_assignment): Use subreg_lsb().
12754
12755 2002-01-10 David Edelsohn <edelsohn@gnu.org>
12756
12757 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
12758 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
12759 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
12760 Recurse for any operand of AND as long as constant is non-zero.
12761
12762 2002-01-10 Kazu Hirata <kazu@hxi.com>
12763
12764 * config/h8300/h8300.md: Remove constraints from expanders.
12765
12766 2002-01-10 Kazu Hirata <kazu@hxi.com>
12767
12768 * varasm.c: Fix formatting.
12769 * varray.c: Likewise.
12770 * vmsdbgout.c: Likewise.
12771 * xcoffout.c: Likewise.
12772
12773 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
12774
12775 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
12776 update edge probabilities to match.
12777
12778 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
12779
12780 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
12781 dependencies.
12782 * doc/languages.texi, doc/sourcebuild.texi: New files.
12783 * doc/configfiles.texi: Make a subsubsection. Update.
12784 * doc/configterms.texi: Add @node. Remove warning that this isn't
12785 instructions for building GCC.
12786 * doc/makefile.texi: Make a subsection.
12787 * doc/gccint.texi: Update.
12788
12789 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
12790
12791 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
12792
12793 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
12794
12795 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
12796
12797 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
12798
12799 * optabs.c (expand_fix): Look for wider integer modes first.
12800
12801 * i386.md (mov?f): Avoid the fake const double trick for medium
12802 memory model.
12803 (min?f*/max?f*): Prohibit memory operands for i387 variant.
12804 (fop_df_4): Disable for SSE compilation.
12805
12806 2002-01-10 Graham Stott <grahams@redhat.com>
12807
12808 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
12809 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
12810
12811 2002-01-10 Richard Henderson <rth@redhat.com>
12812
12813 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
12814
12815 2002-01-10 Richard Henderson <rth@redhat.com>
12816
12817 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
12818 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
12819
12820 2002-01-10 Kazu Hirata <kazu@hxi.com>
12821
12822 * combine.c (can_combine_p): Fix a comment typo.
12823
12824 2002-01-09 Zack Weinberg <zack@codesourcery.com>
12825
12826 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
12827 empty list correctly. Change loop index $t to $f for
12828 consistency with rest of Makefile.
12829
12830 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
12831
12832 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
12833 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12834
12835 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
12836 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
12837 (altivec_init_builtins): Same.
12838 (altivec_expand_unop_builtin): Return NULL_RTX on error.
12839 (altivec_expand_binop_builtin): Same.
12840 (altivec_expand_ternop_builtin): Same.
12841 (bdesc_dst): New.
12842
12843 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
12844 ("altivec_vctuxs"): Fix typo.
12845 ("altivec_vnmsubfp"): Same.
12846 ("altivec_dssall"): New.
12847 ("altivec_mfvscr"): New.
12848 ("altivec_dss"): New.
12849 ("altivec_lvsl"): New.
12850 ("altivec_lvsr"): New.
12851 ("altivec_dstt"): New.
12852 ("altivec_dstst"): New.
12853 ("altivec_dststt"): New.
12854 ("altivec_dst"): New.
12855
12856 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
12857 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
12858
12859 2002-01-09 Richard Henderson <rth@redhat.com>
12860
12861 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
12862
12863 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
12864
12865 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12866 function.
12867 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12868 prototype.
12869 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12870
12871 2002-01-09 Kazu Hirata <kazu@hxi.com>
12872
12873 * read-rtl.c: Fix formatting.
12874 * real.c: Likewise.
12875 * regclass.c: Likewise.
12876 * regrename.c: Likewise.
12877 * reg-stack.c: Likewise.
12878 * reload1.c: Likewise.
12879 * reload.c: Likewise.
12880 * rtl.c: Likewise.
12881
12882 2002-01-09 Kazu Hirata <kazu@hxi.com>
12883
12884 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12885 to extract items in the expr_list chain.
12886
12887 2002-01-09 Richard Henderson <rth@redhat.com>
12888
12889 * config/vax/vax.c (vax_rtx_cost): Never abort.
12890
12891 * config/vax/vax.h (REAL_ARITHMETIC): Define.
12892
12893 2002-01-09 Jan Hubicka <jh@suse.cz>
12894
12895 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12896
12897 2002-01-09 Richard Henderson <rth@redhat.com>
12898
12899 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12900 Unify code from various alternatives.
12901
12902 2002-01-09 Richard Henderson <rth@redhat.com>
12903
12904 * regrename.c (copy_value): Ignore the copy if the source register
12905 is present in the value chain with a narrower mode.
12906
12907 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12908
12909 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12910 for the c4x target. Also improve layout.
12911
12912 2002-01-09 Richard Henderson <rth@redhat.com>
12913
12914 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12915 * config/m32r/m32r.md (and ior xor splitters): Swap operands
12916 to match insn patterns.
12917
12918 2002-01-09 Richard Henderson <rth@redhat.com>
12919
12920 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12921 (copyprop_hardreg_forward_1): Likewise.
12922
12923 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12924
12925 * pa.md (decrement_and_branch_until_zero): Change predicate for
12926 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12927
12928 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12929
12930 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12931 gets undefined. For Darwin.
12932
12933 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12934
12935 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12936
12937 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12938
12939 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12940
12941 2002-01-08 Richard Henderson <rth@redhat.com>
12942
12943 * regrename.c (copy_value): Ignore overlapping copies.
12944
12945 2002-01-08 Richard Henderson <rth@redhat.com>
12946
12947 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12948 as needed to avoid shared structure.
12949
12950 2002-01-08 Kazu Hirata <kazu@hxi.com>
12951
12952 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12953 H8/300H and H8/S.
12954
12955 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12956
12957 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12958 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12959 documentation of obsolete macros.
12960 * system.h: Poison these macros.
12961 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12962 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12963 config/c4x/c4x.h, config/clipper/clipper.h,
12964 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12965 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12966 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12967 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12968 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12969 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12970 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12971 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12972 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12973 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12974 config/sparc/sparc.h, config/stormy16/stormy16.h,
12975 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12976 definitions and commented out definitions of obsolete macros.
12977 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12978 of MAX_INT_TYPE_SIZE.
12979
12980 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12981
12982 * config/s390/s390.c (s390_preferred_reload_class): Never
12983 return ADDR_REGS if it isn't a subset of the given class.
12984 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12985 FP_REGS, but all superclasses as well.
12986
12987 * config/s390/s390.c (s390_function_profiler): Fix thinko.
12988
12989 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12990 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12991 must not be a const_int.
12992
12993 2002-01-08 Richard Henderson <rth@redhat.com>
12994
12995 * Makefile.in (toplev.o): Depend on options.h.
12996 (gcc.o): Depend on specs.h.
12997
12998 2002-01-08 Jakub Jelinek <jakub@redhat.com>
12999
13000 * expr.c (store_expr): Convert VOIDmode constants back to target's
13001 mode.
13002
13003 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13004
13005 * doc/invoke.texi: Markup gcc as @command. Refer to
13006 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13007 of http://gcc.gnu.org/thanks.html.
13008
13009 2002-01-08 Dale Johannesen <dalej@apple.com>
13010
13011 * config/rs6000/rs6000.md: Add missing int register
13012 target case to movdf_low.
13013
13014 2002-01-08 Zack Weinberg <zack@codesourcery.com>
13015
13016 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13017 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
13018 (cppinit.o): Depend on except.h.
13019 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13020 s-specs): New rules.
13021
13022 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13023 Don't create specs.h/options.h/gencheck.h here. Remove
13024 unnecessary variable settings from last argument of AC_OUTPUT.
13025 * config.in, configure: Regenerate.
13026 * intl.c: Hardcode package name as "gcc".
13027
13028 * cppinit.c: Include except.h.
13029 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13030 appropriate.
13031 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13032 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13033 (!)USING_SJLJ_EXCEPTIONS.
13034 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13035
13036 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13037
13038 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13039 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13040 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13041 documentation of obsolete macros.
13042 * system.h: Poison these macros.
13043 * config/d30v/d30v.h, config/ns32k/encore.h,
13044 config/stormy16/stormy16.h: Remove definitions and commented out
13045 definitions of obsolete macros.
13046
13047 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
13048
13049 * objc/objc-act.c (handle_class_ref): Mark the declaration of
13050 %sobjc_class_ref_%s as used - to prevent unwanted compiler
13051 warnings.
13052
13053 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
13054
13055 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13056 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13057 to insn adjusting stack/frame pointer.
13058 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13059 accept operands that cause the insn to be non-splittable.
13060
13061 2002-01-08 Graham Stott <grahams@redhat.com>
13062
13063 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13064 (C_TYPE_FIELDS_VOLATILE): Likewise.
13065 (C_TYPE_BEING_DEFINED): Likewise.
13066 (C_IS_RESERVED_WORD): Likewise.
13067 (C_TYPE_VARIABLE_SIZE): Likewise.
13068 (C_DECL_VARIABLE_SIZE): Likewise.
13069 (C_MISSING_PROTOTYPE_WARNED): Likewise.
13070 (C_SET_EXP_ORIGINAL_CODE): Likewise.
13071 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13072 parenthesis.
13073 (C_DECL_ANTICIPATED): Likewise.
13074 (c_build_type_variant): Add parenthesis.
13075
13076 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
13077
13078 * gcc.c (option_map): Remove --version.
13079 (process_command): Handle -fversion following the GNU Coding
13080 Standards. Partially addresses PR other/704.
13081
13082 2002-01-08 Graham Stott <grahams@redhat.com>
13083
13084 * combine.c (combine_instructions): Fix typo.
13085
13086 2002-01-08 Graham Stott <grahams@redhat.com>
13087
13088 * debug.h: Use "tree" and "rtx" throughout.
13089
13090 * debug.c: Likewise.
13091
13092 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
13093
13094 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13095 constant pool, use the pool's version of the symbol instead.
13096
13097 2002-01-07 Richard Henderson <rth@redhat.com>
13098
13099 * regrename.c (find_oldest_value_reg): Ignore the value chain if
13100 the original register was copied in a mode with a fewer number of
13101 hard registers than the desired mode.
13102 (copyprop_hardreg_forward_1): Likewise.
13103 (debug_value_data): Fix loop test.
13104 * toplev.c (parse_options_and_default_flags): Reenable
13105 -fcprop-registers at -O1.
13106
13107 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13108
13109 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13110 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13111
13112 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13113 predicates.
13114
13115 * config/rs6000/rs6000.md: Add altivec predicate patterns.
13116
13117 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
13118
13119 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13120 (pa_output_function_prologue): Output local label at the beginning of
13121 the prologue when profiling.
13122 (hppa_profile_hook): Use the local label rather than the function label.
13123 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13124
13125 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13126
13127 * config/rs6000/rs6000.c (print_operand): Remove extra space.
13128 (altivec_expand_unop_builtin): Fix thinko.
13129 (altivec_expand_binop_builtin): Same.
13130 (altivec_expand_ternop_builtin): Same.
13131 (altivec_expand_builtin): Same.
13132
13133 2002-01-07 Richard Henderson <rth@redhat.com>
13134
13135 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13136
13137 2002-01-07 Jason Merrill <jason@redhat.com>
13138
13139 * unwind-dw2.c (execute_cfa_program): Use < again.
13140
13141 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13142
13143 * predict.c (combine_predictions_for_insn): Avoid division by zero.
13144
13145 2002-01-07 Jakub Jelinek <jakub@redhat.com>
13146
13147 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13148 Don't allow -1 - x -> ~x simplifications in the first pass.
13149
13150 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
13151
13152 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13153 arguments.
13154 (altivec_expand_binop_builtin): Same.
13155 (altivec_expand_unop_builtin): Same.
13156 (print_operand): Fix typo.
13157 (bdesc_1arg): Add vupk* variants.
13158
13159 * rs6000.h (rs6000_builtins): Add vupk* enums.
13160
13161 * rs6000.md: Add altivec_vupk* variants.
13162
13163 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
13164
13165 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13166 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13167 and last update dates.
13168
13169 2002-01-07 Janis Johnson <janis187@us.ibm.com>
13170
13171 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13172
13173 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
13174
13175 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
13176 * config/avr/avr.h (CPP_SPEC): Likewise.
13177 (LINK_SPEC): Likewise.
13178 (CRT_BINUTILS_SPECS): Likewise.
13179 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
13180 * doc/invoke.texi (AVR Options): Document them.
13181
13182 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
13183
13184 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
13185 LABEL_NUSES.
13186
13187 2002-01-07 Graham Stott <grahams@redhat.com>
13188
13189 * config/i386/i386.h: Update copyright date.
13190 (HALF_PIC_PTR): Add parenthesis.
13191 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
13192 (CONSTANT_ALIGNMENT): Add parenthesis.
13193 (DATA_ALIGNMENT): Likewise.
13194 (LOCAL_ALIGNMENT): Likewise.
13195 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
13196 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
13197 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
13198 (HARD_REGNO_NREGS): Add paranethesis.
13199 (VALID_SSE_REG_MODE): Whitespace.
13200 (VALID_MMX_REG_MODE): Whitespace.
13201 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
13202 (ix86_hard_regno_mode_ok): Add parenthesis.
13203 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
13204 (RETURN_IN_MEMORY): Whitespace.
13205 (N_REG_CLASSES): Add parenthesis.
13206 (INTEGER_CLASS_P): Add parenthesis and wrap.
13207 (FLOAT_CLASS_P): Likewise.
13208 (SSE_CLASS_P): Likewise.
13209 (MMX_CLASS_P): Likewise.
13210 (MAYBE_INTEGER_CLASS_P): Likewise.
13211 (MAYBE_FLOAT_CLASS_P): Likewise.
13212 (MAYBE_SSE_CLASS_P): Likewise.
13213 (MAYBE_MMX_CLASS_P): Likewise.
13214 (Q_CLASS_P): Likewise.
13215 (GENERAL_REGNO_P): Uppercase macro parameter.
13216 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
13217 (FP_REGNO_P): Likewise.
13218 (ANY_FP_REGNO_P): Uppercase macro parameter.
13219 (SSE_REGNO_P): Likewise.
13220 (SSE_REGNO): Likewise.
13221 (SSE_REG_P): Likewise.
13222 (SSE_FLOAT_MODE_P): Likewise.
13223 (MMX_REGNO_P): Likewise.
13224 (MMX_REG_P):Likewise.
13225 (STACK_REG_P): Likewise.
13226 (NON_STACK_REG_P): Likewise.
13227 (STACK_TOP_P): Likewise.
13228 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
13229 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
13230 (SECONDARY_MEMORY_NEEDED): Likewise.
13231 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
13232 (MD_ASM_CLOBBERS): Whitespace and wrap.
13233 (MUST_PASS_IN_STACK): Whitespace and wrap.
13234 (RETURN_POPS_ARGS): Add parenthesis.
13235 (INIT_CUMULATIVE_ARGS): Likewise.
13236 (FUNCTION_ARG): Likewise.
13237 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
13238 (SETUP_INCOMING_VARARGS): Likewise.
13239 (BUILD_VA_LIST_TYPE): Add parenthesis.
13240 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
13241 parenthsis.
13242 (EXPAND_BUILTIN_VA_ARG): Likewise.
13243 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
13244 (INITIALIZE_TRAMPOLINE): Add parenthesis.
13245 (INITIAL_ELIMINATION_OFFSET): Likewise.
13246 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
13247 (REGNO_OK_FOR_BASE_P): Likewise.
13248 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
13249 (REGNO_OK_FOR_DIREG_P): Likewise.
13250 (REG_OK_FOR_INDEX_P): Whitespace.
13251 (REG_OK_FOR_BASE_P): Whitespace.
13252 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
13253 parenthesis.
13254 (FIND_BASE_TERM): Fix typo.
13255 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
13256 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
13257 (SYMBOLIC_CONST; Whitespace.
13258 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
13259 (ENCODE_SECTION_INFO): Whitespace.
13260 (FINALIZE_PIC): Remove do { ... } while (0).
13261 (PROMOTE_MODE): Wrap in do { ... } while (0).
13262 (CONST_COSTS): Whitespace.
13263 (RTX_COSTS): Add paramethesis, whitespace and wrap.
13264 (REGISTER_MOVE_COST): Add parenthesis.
13265 (MEMORY_MOVE_COST): Likewise.
13266 (EXTRA_CC_MODES): Whitespace.
13267 (SELECT_CC_MODE): Add parenthesis and whitespace.
13268 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
13269 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
13270 (ASM_OUTPUT_LABEL): Add paramethesis.
13271 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
13272 (ASM_OUTPUT_REG_POP): Likewise.
13273 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
13274 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13275
13276 * config/i386/i386.c: Update copyright.
13277 (CHECK_STACK_LIMIT): Add parenthesis.
13278 (AT_BP): Uppercase macro parameter.
13279 (x86_64_int_parameter_registers): Constify.
13280 (x86_64_int_return_registers): Likewise.
13281 (ix86_compare_op0): Use rtx.
13282 (construct_container): Constify INTREG parameter.
13283 (function_arg): Use rtx.
13284
13285 * diagnostic.h: Update copyright date.
13286 (output_buffer_state): Add parenthesis.
13287 (output_buffer_format_args): Likewise.
13288
13289 * combine.c (combine_instructions): Replace XEXP (links, 0)
13290 with link.
13291
13292 2002-01-06 H.J. Lu <hjl@gnu.org>
13293
13294 * cfgcleanup.c (thread_jump): Fix 2 typos.
13295
13296 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
13297
13298 * config.gcc: Add support for --enable-altivec.
13299
13300 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13301
13302 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
13303
13304 2002-01-06 Jakub Jelinek <jakub@redhat.com>
13305
13306 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
13307 __objc_class_name_*.
13308
13309 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
13310
13311 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
13312
13313 2002-01-06 Richard Henderson <rth@redhat.com>
13314
13315 * reorg.c (emit_delay_sequence): Remove death notes, not merely
13316 nop them out. Increment label reference count for REG_LABEL.
13317 (fill_slots_from_thread): Frob label reference count around
13318 delete_related_insns.
13319
13320 2002-01-05 Richard Henderson <rth@redhat.com>
13321
13322 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
13323 jump threading.
13324
13325 2002-01-05 Richard Henderson <rth@redhat.com>
13326
13327 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
13328 * integrate.c (output_inline_function): Likewise.
13329 * toplev.c (rest_of_compilation): Do it here instead. Move call
13330 to remove_unnecessary_notes after emitting abstract instance.
13331 Force an emitted nested function to have its parent emited as well.
13332 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
13333 for null.
13334 (rtl_for_decl_location): Do not look at reload data structures
13335 before reload has run.
13336
13337 2002-01-05 Kazu Hirata <kazu@hxi.com>
13338
13339 * cse.c: Fix formatting.
13340 * dwarf2asm.c: Likewise.
13341 * dwarf2out.c: Likewise.
13342 * explow.c: Likewise.
13343 * expmed.c: Likewise.
13344 * function.c: Likewise.
13345 * gcov.c: Likewise.
13346 * gencheck.c: Likewise.
13347 * genrecog.c: Likewise.
13348 * ggc-common.c: Likewise.
13349 * ggc-page.c: Likewise.
13350 * global.c: Likewise.
13351
13352 2002-01-05 Kazu Hirata <kazu@hxi.com>
13353
13354 * combine.c: Fix formatting.
13355
13356 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
13357
13358 PR middle-end/1557
13359 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
13360
13361 2002-01-05 David Edelsohn <edelsohn@gnu.org>
13362
13363 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
13364 as 1 for __powerpc64__ as well.
13365
13366 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
13367
13368 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
13369 return it.
13370
13371 2002-01-05 Daniel Berlin <dan@dberlin.org>
13372
13373 * lcm.c: Revert change, due to performance regression it causes on
13374 SPEC because it's slightly more conservative (sigh, I hate
13375 edge-based LCM).
13376
13377 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
13378
13379 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
13380
13381 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
13382
13383 * doc/cppinternals.texi: Update.
13384
13385 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
13386
13387 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
13388 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
13389 negatives.
13390 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
13391 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
13392 kludge for pre-october-14th mmix versions to handle new-found bug
13393 with PUSHJ/PUSHGO and the register stack.
13394 * config/mmix/mmix.h (struct machine_function): Rename member
13395 has_call_value_without_parameters to has_call_without_parameters.
13396 All referers changed.
13397 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
13398 TARGET_MASK_BRANCH_PREDICT): New macros.
13399 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
13400 -mno-reg-stack-fill-bug-workaround.
13401 * config/mmix/mmix.md ("call"): Set struct machine member
13402 has_call_without_parameters.
13403
13404 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
13405
13406 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
13407
13408 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
13409
13410 * cfgcleanup.c: Include tm_p.h
13411 (mark_effect): Fix handling of hard register; fix handling of SET
13412
13413 2002-01-04 Kazu Hirata <kazu@hxi.com>
13414
13415 * config/h8300/h8300.md (anonymous patterns): Check that
13416 operands are registers before using REGNO on them.
13417
13418 2002-01-03 Roland McGrath <roland@frob.com>
13419
13420 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
13421
13422 2002-01-04 Jakub Jelinek <jakub@redhat.com>
13423
13424 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
13425 * c-common.h (genrtl_expr_stmt_value): Likewise.
13426 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
13427 (expand_expr_stmt_value): Add maybe_last argument.
13428 Don't warn about statement with no effect if it is the last statement
13429 in expression statement.
13430 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
13431 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
13432 expand_expr_stmt_value.
13433 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
13434 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
13435 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
13436 as maybe_last to expand_expr_stmt_value.
13437
13438 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
13439
13440 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
13441 be passed in, do not build it.
13442 (c_begin_if_stmt): New function.
13443 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13444 * c-common.h (c_expand_start_cond): Update prototype.
13445 (c_begin_if_stmt): Prototype new function.
13446 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
13447 * c-parse.in (if_prefix): Use c_begin_if_stmt,
13448 c_begin_while_stmt and c_finish_while_stmt_cond.
13449
13450 2002-01-04 William Cohen <wcohen@redhat.com>
13451
13452 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
13453 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13454 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13455 * config/pa/som.h (ASM_FILE_START): Likewise.
13456
13457 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
13458
13459 * lcm.c: Include df.h.
13460 Add available_transfer_function prototype.
13461 (compute_available): Rework to use iterative dataflow framework.
13462 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
13463 with bb_info in df.h
13464 (available_transfer_function): New function.
13465
13466 * Makefile.in (lcm.o): add df.h to dependencies.
13467
13468 2002-01-04 Richard Henderson <rth@redhat.com>
13469
13470 * config/alpha/alpha.c (some_operand): Accept HIGH.
13471 (input_operand): Likewise; accept simple references to globals.
13472 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
13473 (alpha_const_double_ok_for_letter_p): Likewise.
13474 (alpha_extra_constraint): Likewise.
13475 (alpha_preferred_reload_class): Likewise. Do not force
13476 symbolic constants to memory.
13477 (alpha_legitimate_address_p): Accept simple references
13478 to small_symbolic_operand.
13479 (alpha_legitimize_address): New arg scratch. Be prepared to be
13480 called when no_new_pseudos. Emit simple symbolic references.
13481 Split integers into low, high, and rest.
13482 (alpha_expand_mov): Use alpha_legitimize_address.
13483 (some_small_symbolic_mem_operand): New.
13484 (split_small_symbolic_mem_operand): New.
13485 * config/alpha/alpha-protos.h: Update.
13486 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
13487 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
13488 (EXTRA_CONSTRAINT): Likewise.
13489 (PREFERRED_RELOAD_CLASS): Likewise.
13490 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
13491 (PREDICATE_CODES): Update.
13492 * config/alpha/alpha.md: New post-reload splitters to convert
13493 simplfied symbolic operands to the form that references $29.
13494 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
13495 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
13496
13497 2002-01-03 Richard Henderson <rth@redhat.com>
13498
13499 * local-alloc.c (function_invariant_p): Update commentary.
13500
13501 2002-01-04 H.J. Lu <hjl@gnu.org>
13502
13503 * toplev.c (rest_of_compilation): Fix a typo when calling
13504 cleanup_cfg.
13505
13506 2002-01-03 Kazu Hirata <kazu@hxi.com>
13507
13508 * c-common.c: Fix formatting.
13509 * diagnostic.c: Likewise.
13510 * doloop.c: Likewise.
13511 * dwarf2out.c: Likewise.
13512
13513 2002-01-03 Kazu Hirata <kazu@hxi.com>
13514
13515 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
13516 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
13517
13518 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13519
13520 * cpperror.c: Update comments and copyright.
13521 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
13522 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
13523
13524 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13525
13526 * collect2.c (main): Use strcmp when testing for "-shared".
13527
13528 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
13529
13530 * cppmacro.c: Don't include intl.h. Update comments.
13531 (new_number_token): Allocate enough buffer for 64-bit unsigned
13532 integers; update prototype.
13533 * cppmain.c: Update comments.
13534
13535 2002-01-03 William Cohen <wcohen@redhat.com>
13536
13537 * function.h (struct function): Add profile.
13538 (current_function_profile): New.
13539 doc/extend.texi: Update documentation.
13540 * final.c (final_start_function): Use current_function_profile
13541 instead of profile_flag.
13542 (profile_after_prologue): Likewise.
13543 * function.c (expand_function_start): Likewise.
13544 (expand_function_start): Likewise.
13545 * config/alpha/alpha.c (direct_call_operand):
13546 (alpha_does_function_need_gp): Likewise.
13547 (alpha_expand_prologue): Likewise.
13548 * config/arm/arm.c (arm_expand_prologue): Likewise.
13549 thumb_expand_prologue: Likewise.
13550 * config/d30v/d30v.c (d30v_stack_info): Likewise.
13551 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
13552 (fr30_expand_prologue): Likewise.
13553 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
13554 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
13555 * config/i386/i386.h (FINALIZE_PIC): Likewise.
13556 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
13557 * config/i960/i960.c (i960_output_function_prologue): Likewise.
13558 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13559 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
13560 (m32r_expand_prologue): Likewise.
13561 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
13562 (m88k_expand_prologue): Likewise.
13563 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
13564 * config/mips/mips.c (compute_frame_size): Likewise.
13565 (mips_expand_prologue): Likewise.
13566 (mips_can_use_return_insn): Likewise.
13567 * config/pa/elf.h (ASM_FILE_START): Likewise.
13568 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
13569 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
13570 * config/pa/som.h (ASM_FILE_START): Likewise.
13571 * config/romp/romp.c (romp_using_r14): Likewise.
13572 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
13573 (rs6000_stack_info): Likewise.
13574 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13575 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
13576 * config/v850/v850.c (compute_register_save_size): Likewise.
13577
13578 2002-01-03 Jakub Jelinek <jakub@redhat.com>
13579
13580 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
13581 gen_lowpart_common fails, use gen_lowpart_SUBREG.
13582
13583 2002-01-03 Turly O'Connor <turly@apple.com>
13584
13585 * darwin.c (machopic_output_possible_stub_label): Don't generate
13586 stub routines for pseudo-stubs which we've just defined.
13587
13588 2002-01-03 Kazu Hirata <kazu@hxi.com>
13589
13590 * builtins.c: Fix formatting.
13591 * c-typeck.c: Likewise.
13592 * combine.c: Likewise.
13593 * expr.c: Likewise.
13594 * loop.c: Likewise.
13595
13596 2002-01-03 Andreas Schwab <schwab@suse.de>
13597
13598 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
13599 and return true if _cpp_push_next_buffer pushed a new include
13600 file.
13601 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
13602 _cpp_pop_file_buffer did not push a new file.
13603 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
13604
13605 2002-01-02 Eric Christopher <echristo@redhat.com>
13606
13607 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
13608 FIND_REG_INC_NOTE call. Update copyright.
13609 * loop.c (canonicalize_condition): Ditto.
13610 * reorg.c (delete_scheduled_jump): Ditto.
13611
13612 2002-01-03 Kazu Hirata <kazu@hxi.com>
13613
13614 * gcse.c: Fix formatting.
13615
13616 2002-01-03 Graham Stott <grahams@redhat.com>
13617
13618 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
13619 forward defs for struct tags rtx_def, union_tree, rtvec_def
13620 also output corresponding typedefs for rtx, tree, and rtvec.
13621
13622 * system.h: Move forward defs for struct tags rtx_def, union_tree,
13623 rtvec_def along with corresponding typedefs for rtx, tree, and
13624 rtvec to config.h, hconfig.h, tconfig.h.
13625
13626 2002-01-03 Graham Stott <grahams@redhat.com>
13627
13628 * tree.h: Update copyright date.
13629 (IS_EXPR_CODE_CLASS): Add parenthesis.
13630 (TREE_SET_CODE): Add whitespace.
13631 (TREE_CHECK): Add parenthesis.
13632 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
13633 (CST_OR_CONSTRUCTOR_CHECK):
13634 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
13635 (TREE_SYMBOL_REFERENCED): Whitespace.
13636 (INT_CST_LT): Likewise.
13637 (INT_CST_LT_UNSIGNED): Likewise.
13638 (tree_real_cst): Unwrap comment.
13639 (tree_string): Likewise.
13640 (tree_complex): Likewise.
13641 (IDENTIFIER_POINTER): correct cast.
13642 (SAVE_EXPR_CONTEXT): Whitespace.
13643 (EXPR_WFL_FILENAME_NODE): Likewise.
13644 (EXPR_WFL_FILENAME): Remove parenthesis.
13645 (DECL_ORIGIN): Add parenthesis.
13646 (DECL_FROM_INLINE): Use NULL_TREE.
13647 (build_int_2): Whitespace.
13648 (build_type_variant): Add parenthesis.
13649
13650 * gcc/jcf-parse.c: Update copyright date.
13651 (yyparse): Constify resource_filename.
13652
13653 2002-01-03 Graham Stott <grahams@redhat.com>
13654
13655 * rtl.h: Update copyright date.
13656 (RTL_CHECK1): Wrap long line.
13657 (RTL_CHECK2): Likewise.
13658 (RTL_CHECKC1): Wrap long line and whitespace.
13659 (RTL_CHECKC2): Likewise.
13660 (XWINT): Whitespace.
13661 (XINT): Likewise.
13662 (XSTR): Likewise.
13663 (XEXP): Likewise.
13664 (XVEC): Likewise.
13665 (XMODE): Likewise.
13666 (XBITMAP): Likewise.
13667 (XTREE): Likewise.
13668 (XBBDEF): Likewise.
13669 (XTMPL): Likewise.
13670 (X0WINT): Likewise.
13671 (X0INT):Likewise.
13672 (X0UINT): Likewise.
13673 (X0STR): Likewise.
13674 (X0EXP): Likewise.
13675 (X0VEC): Likewise.
13676 (X0MODE): Likewise.
13677 (X0BITMAP): Likewise.
13678 (X0TREE): Likewise.
13679 (X0BBDEF): Likewise.
13680 (X0ADVFLAGS): Likewise.
13681 (X0CSELIB): Likewise.
13682 (X0MEMATTR): Likewise.
13683 (XCWINT): Likewise.
13684 (XCINT): Likewise.
13685 (XCUINT): Likewise.
13686 (XCSTR): Likewise.
13687 (XCEXP): Likewise.
13688 (XCVEC): Likewise.
13689 (XCMODE): Likewise.
13690 (XCBITMAP): Likewise.
13691 (XCTREE): Likewise.
13692 (XCBBDEF): Likewise.
13693 (XCADVFLAGS): Likewise.
13694 (XCCSELIB): Likewise.
13695 (XC2EXP): Likewise.
13696 (INSN_UID): Likewise.
13697 (PREV_INSN): Likewise.
13698 (PATTERN): Likewise.
13699 (INSN_CODE): Likewise.
13700 (PUT_REG_NOTE_KIND): Likewise.
13701 (CODE_LABEL_NUMBER): Likewise.
13702 (NOTE_SOURCE_FILE): Likewise.
13703 (NOTE_BLOCK): Likewise.
13704 (NOTE_EH_HANDLER): Likewise.
13705 (NOTE_RANGE_INFO): Likewise.
13706 (NOTE_LIVE_INFO): Likewise.
13707 (NOTE_BASIC_BLOCK): Likewise.
13708 (NOTE_EXPECTED_VALUE): Likewise.
13709 (NOTE_LINE_NUMBER): Likewise.
13710 (LABEL_NAME): Likewise.
13711 (LABEL_NUSES): Likewise.
13712 (LABEL_ALTERNATE_NAME): Likewise.
13713 (ADDRESSOF_DECL): Likewise.
13714 (JUMP_LABEL): Likewise.
13715 (LABEL_NEXTREF): Likewise.
13716 (REGNO): Likewise.
13717 (ORIGINAL_REGNO: Likewise.
13718 (HARD_REGISTER_NUM_P): Add parenthesis.
13719 (SUBREG_REG): Whitespace.
13720 (SUBREG_BYTE): Likewise.
13721 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
13722 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
13723 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
13724 (ASM_OPERANDS_INPUT_VEC): Likewise.
13725 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
13726 (ASM_OPERANDS_INPUT): Likewise.
13727 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
13728 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
13729 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
13730 (ASM_OPERANDS_INPUT_MODE): Likewise.
13731 (ASM_OPERANDS_SOURCE_FILE): Likewise.
13732 (ASM_OPERANDS_SOURCE_LINE): Likewise.
13733 (MEM_SET_IN_STRUCT_P): Minor reformat.
13734 (TRAP_CONDITION): Whitespace.
13735 (TRAP_CODE): Likewise.
13736 (COND_EXEC_TEST): Likewise.
13737 (COND_EXEC_CODE): Likewise.
13738 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
13739 (PHI_NODE_P): Add parenthesis.
13740 (plus_constant): Whitespace and add parenthesis.
13741
13742 2002-01-03 Kazu Hirata <kazu@hxi.com>
13743
13744 * config/avr/avr.c: Fix comment typos.
13745 * config/c4x/c4x.md: Likewise.
13746 * config/dsp16xx/dsp16xx.h: Likewise.
13747 * config/dsp16xx/dsp16xx.md: Likewise.
13748 * config/i386/i386.md: Likewise.
13749 * config/ia64/ia64.c: Likewise.
13750 * config/m32r/m32r.h: Likewise.
13751 * config/m68hc11/m68hc11.md: Likewise.
13752 * config/mmix/mmix.c: Likewise.
13753 * config/mn10200/mn10200.c: Likewise.
13754 * config/romp/romp.c: Likewise.
13755 * config/sh/sh.c: Likewise.
13756 * config/stormy16/stormy16.c: Likewise.
13757 * config/stormy16/stormy16.h: Likewise.
13758 * config/stormy16/stormy16.md: Likewise.
13759
13760 2002-01-03 Graham Stott <grahams@redhat.com>
13761
13762 * loop.h: Update copyright date.
13763 (LOOP_MOVABLES): Fix typo.
13764 (LOOP_REGS): Likewise.
13765 (LOOP_IVS): Likewise.
13766
13767 2002-01-03 Graham Stott <grahams@redhat.com>
13768
13769 * cppinit.c: Update copyright date.
13770 Don't include output.h
13771 * Makefile.in: Update copyright date.
13772 Update dependency.
13773
13774 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
13775
13776 PR c/5226
13777 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
13778 (-pthread) Add to RS/6000 options.
13779
13780 2002-01-02 Kazu Hirata <kazu@hxi.com>
13781
13782 * except.c: Fix comment typos.
13783 * loop.c: Likewise.
13784 * varasm.c: Likewise.
13785 * doc/tm.texi: Fix a typo.
13786
13787 2002-01-02 Jakub Jelinek <jakub@redhat.com>
13788
13789 * c-typeck.c (output_init_element): Allow initializing static storage
13790 duration objects with compound literals.
13791
13792 2002-01-02 Richard Henderson <rth@redhat.com>
13793
13794 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
13795 after abusing it.
13796
13797 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13798
13799 * gcc.c (default_compilers): Const-ify.
13800 * mips-tdump.c (stab_names): Likewise.
13801 * mips-tfile.c (map_coff_types, map_coff_storage,
13802 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
13803 pseudo_ops_t, pseudo_ops): Likewise.
13804 * protoize.c (default_include): Likewise
13805
13806 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
13807 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
13808 Add array size in declaration.
13809 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
13810 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
13811 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
13812 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
13813 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
13814 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
13815 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
13816 emtens, make_nan): Const-ify.
13817 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
13818 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
13819
13820 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
13821
13822 * config.gcc (ia64-*-*): Set extra_headers.
13823 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
13824 * config/alpha/t-osf: Remove.
13825 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
13826
13827 2002-01-02 David Edelsohn <edelsohn@gnu.org>
13828
13829 * config/rs6000/t-aix43: Revert previous change.
13830
13831 2002-01-02 Jason Merrill <jason@redhat.com>
13832
13833 * c-decl.c (c_expand_body): Call outlining_inline_function when
13834 emitting an inline function out of line.
13835
13836 2002-01-02 Richard Henderson <rth@redhat.com>
13837
13838 * dwarf2out.c (limbo_die_node): Add created_for member.
13839 (new_die): New argument created_for. Update all callers.
13840 (mark_limbo_die_list): New.
13841 (dwarf2out_init): Register limbo_die_list as a root.
13842 (dwarf2out_finish): Force insert limbo dies into their function
13843 context.
13844
13845 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
13846
13847 PR c++/5089
13848 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
13849
13850 2002-01-02 Kazu Hirata <kazu@hxi.com>
13851
13852 * config/h8300/fixunssfsi.c: Update copyright.
13853 Fix comment typos.
13854 Fix formatting.
13855 * config/h8300/h8300.c: Update copyright.
13856 Eliminate warnings.
13857
13858 2002-01-02 Kazu Hirata <kazu@hxi.com>
13859
13860 * config/romp/romp.c: Fix comment formatting.
13861 * config/romp/romp.h: Likewise.
13862 * config/romp/romp.md: Likewise.
13863 * config/s390/s390.c: Likewise.
13864 * config/stormy16/stormy16.c: Likewise.
13865 * config/stormy16/stormy16.h: Likewise.
13866
13867 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
13868
13869 * c-common.h (genrtl_expr_stmt_value): Declare.
13870 * c-semantics.c (genrtl_goto_stmt): Redirect to...
13871 (genrtl_goto_stmt_value): ... this new function. Pass new
13872 argument down to expand_expr_stmt_value, taking
13873 TREE_ADDRESSABLE into account.
13874 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13875 STMT_EXPR as addressable, i.e., one whose result we want.
13876 * expr.c (expand_expr): Don't save expression statement value
13877 of labeled_blocks or loop_exprs.
13878 * stmt.c (expand_expr_stmt): Redirect to...
13879 (expand_expr_stmt_value): ... this new function. Use new
13880 argument to tell whether to save expression value.
13881 (expand_end_stmt_expr): Reset last_expr_type and
13882 last_expr_value if we don't have either.
13883 * tree-inline.c (declare_return_variable): Mark its use
13884 statement as addressable.
13885 * tree.h: Document new use of TREE_ADDRESSABLE.
13886 (expand_expr_stmt_value): Declare.
13887
13888 2002-01-01 Tom Rix <trix@redhat.com>
13889
13890 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13891 rs6000_emit_allocate_stack.
13892
13893 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
13894
13895 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13896 ${srcdir}/ginclude/ to every entry in extra_headers.
13897 * configure: Regenerate.
13898 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13899 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13900 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13901 * ginclude/proto.h: Rename to config/convex/proto.h.
13902
13903 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13904
13905 * attribs.c (handle_vector_size_attribute): Use host_integerp
13906 and tree_int_cst; remove warnings.
13907 * caller-save.c (insert_restore): Add cast to get rid of warning.
13908 (insert_save): Likewise.
13909 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13910 * regmove.c (find_matches): Add temporary var to kill a warning.
13911
13912 2002-01-01 Douglas B Rupp <rupp@gnat.com>
13913
13914 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13915 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13916 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13917 (vms-dwarf2eh.o): Add Makefile rule.
13918 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13919 * config/alpha/vms-dwarf2eh.asm: New file.
13920
13921 * gcc.c (delete_if_ordinary): Delete all versions.
13922
13923 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13924
13925 * config/mmix/mmix.md: Update FIXME to not mention
13926 define_constants.
13927 (MMIX_rJ_REGNUM): New define_constants constant.
13928 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13929 "*movdicc_real"): Adjust contraints formatting.
13930 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13931 for branch prediction.
13932 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13933 output template.
13934 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13935 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13936 number. Delete related FIXMEs.
13937 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13938 from number to MMIX_rJ_REGNUM.
13939 (TARGET_MASK_BRANCH_PREDICT): New.
13940 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13941 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
13942 value. Add -mbranch-predict and -mno-branch-predict.
13943 (TARGET_VERSION): Drop date.
13944 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13945 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13946 for finding out global symbols.
13947 (mmix_asm_output_labelref): Revert condition for global symbol.
13948 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13949 (mmix_print_operand_punct_valid_p): A '+' is valid.
13950
13951 See ChangeLog.6 for earlier changes.