1 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
3 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
7 (alt_reg_names): Remove % for vrsave.
9 2002-03-06 Richard Henderson <rth@redhat.com>
11 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12 if used indicates we've already emitted one copy of an operand.
13 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14 (gen_split): Supply a non-null used.
16 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
18 * reload1.c (reload): Unshare all rtl after reload is done.
20 * simplify-rtx.c (simplify_plus_minus): Do not abort,
21 but simply fail if the expression is too complex to simplify.
22 (simplify_gen_binary): Handle simplify_plus_minus failures.
24 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
26 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
27 consistently call delete_trivially_dead_insns after CSE and GCSE;
28 fix DFI_life dumping; do jump threading after liveness; do crossjumping
29 after liveness2; update comment in last crossjumping.
30 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
32 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
34 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
35 after completing fast dead code elimination.
37 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
40 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
42 * version.c: Fix misplaced leading blanks on first line.
44 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
46 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
48 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
50 * cfgcleanup.c (mentions_nonequal_regs): New function.
51 (thread_jump): Use it.
52 * toplev.c (rest_of_compilation): Run jump threading after
55 2002-03-06 Jakub Jelinek <jakub@redhat.com>
57 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
60 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
62 * predict.c (estimate_bb_frequencies): Do not reload the
63 frequencies from notes.
65 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
67 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
68 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
70 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
71 delete_noop_moves): Return indeger.
72 * flow.c (ndead): New variable.
73 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
74 BB argument; update callers.
75 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
76 (life_analysis): Do not call purge_all_dead_edges.
77 (update_life_info): Return number of deleted insns; print statistics.
78 (update_life_info_in_dirty_blocks): likewise.
79 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
80 return number of insns deleted.
82 * cse.c: Include timevar.h
83 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
84 iterate until stabilizes; print statistics; return number of killed
86 * Makefile.in: (cse.o): Add timevar.h dependency
87 * rtl.h (delete_trivially_dead_insns): New.
88 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
89 * toplev.c (rest_of_compilation): Update callers.
91 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
92 (try_optimize_cfg): Do not update liveness.
93 (cleanup-cfg): Loop until try_optimize_cfg and dead code
94 removal stabilizes; use delete_trivially_dead_insns.
96 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
98 2002-03-05 Zack Weinberg <zack@codesourcery.com>
100 * cppmain.c (setup_callbacks): Disable #pragma and #ident
101 callbacks when processing assembly language.
103 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
105 * pa.h (ASM_FILE_END): Define.
106 * som.h (ASM_FILE_END): Delete.
108 * pa.c (function_arg): Don't pass floats in general registers in
109 indirect calls if TARGET_ELF32.
111 2002-03-05 Richard Henderson <rth@redhat.com>
113 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
115 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
117 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
119 2002-03-05 Jakub Jelinek <jakub@redhat.com>
121 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
122 -r command line. Don't hide any symbols if not building
125 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
127 * cfg.c (dump_flow_info): Warn about profile mismatches.
128 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
129 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
131 2002-03-05 Jakub Jelinek <jakub@redhat.com>
133 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
134 wide volatile memory by parts.
136 2002-03-05 Jakub Jelinek <jakub@redhat.com>
138 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
141 2002-03-05 Richard Henderson <rth@redhat.com>
143 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
145 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
147 * toplev.c (documented_lang_options): Document more
148 language-specific options.
149 * doc/invoke.texi (Warning Options): Correct documentation for
150 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
151 * c-decl.c (c_decode_option): Use a table to handle warning options.
153 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
155 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
156 parameter to mmix_encode_section_info.
157 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
158 relocatably. Always produce ELF, not mmo if linking relocatably.
159 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
160 first is non-zero, don't add symbol prefix.
161 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
162 prototype accordingly.
164 2002-03-04 Krister Walfridsson <cato@df.lth.se>
166 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
168 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
170 * configure.in: Increase required makeinfo version to 4.1.
171 * configure: Regenerate.
173 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
175 * .cvsignore: Remove *.info* and genrtl*; these files are generated
178 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
180 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
181 * doc/invoke.texi: Fix @math uses.
183 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
185 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
188 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
190 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
191 (powerpc-*-eabisimaltivec*): Same.
193 * config/rs6000/t-ppcendian: New.
195 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
197 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
198 nonimmediate_src_operand and nonimmediate_lsrc_operand to
199 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
201 2002-03-03 Richard Henderson <rth@redhat.com>
203 * toplev.c (rest_of_decl_compilation): Revert last two changes.
205 2002-03-03 Zack Weinberg <zack@codesourcery.com>
207 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
208 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
209 tree.c, config/m68k/m68k.c:
210 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
211 REAL_ARITHMETIC blocks unconditional. Delete some further
212 #ifdef blocks predicated on REAL_ARITHMETIC.
213 * flags.h, toplev.c: Delete remaining references to
216 * doc/invoke.texi: Remove documentation of -fpretend-float.
217 * doc/tm.texi: Describe the various REAL_* macros as provided by
218 real.h, not by the target configuration files.
220 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
221 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
222 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
223 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
224 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
225 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
226 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
227 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
228 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
229 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
230 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
231 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
232 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
233 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
234 config/xtensa/xtensa.h:
235 Do not define, undefine, or mention in comments any of
236 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
237 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
238 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
239 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
240 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
241 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
242 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
243 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
244 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
246 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
248 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
249 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
250 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
251 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
252 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
253 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
255 * defaults.h (BITS_PER_WORD): Define.
256 * doc/tm.texi (BITS_PER_WORD): Document default value.
258 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
259 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
260 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
262 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
264 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
265 lieu of explicit sizeof/sizeof.
266 * i386.c (override_options, ix86_init_mmx_sse_builtins,
267 ix86_expand_builtin): Likewise.
268 * mips.c (mips_add_gc_roots): Likewise.
269 * mmix.c (mmix_output_condition): Likewise.
270 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
271 altivec_init_builtins): Likewise.
272 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
273 * cppexp.c (Nsuff, parse_number): Likewise.
274 * cppinit.c (builtin_array_end): Likewise.
275 * gcc.c (n_default_compilers, process_command): Likewise.
276 * genpreds.c (output_predicate_decls): Likewise.
277 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
278 * lcm.c (N_ENTITIES): Likewise.
279 * stor-layout.c (set_sizetype): Likewise.
281 2002-03-03 Richard Henderson <rth@redhat.com>
283 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
286 2002-03-03 Richard Henderson <rth@redhat.com>
288 * c-decl.c (start_decl): Initialized variables are not common.
290 2002-03-02 Per Bothner <per@bothner.com>
292 * gcc.c (option_map): Suport new --bootclasspath option.
293 --CLASSPATH is now just an alias for --classpath.
295 2002-03-02 Richard Henderson <rth@redhat.com>
297 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
298 load if "internal" visibility.
299 * doc/extend.texi: Document visibility meanings.
301 2002-03-02 Richard Henderson <rth@redhat.com>
303 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
304 to functions as well.
306 2002-03-02 Richard Henderson <rth@redhat.com>
308 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
309 (handle_visibility_attribute): Don't call assemble_visibility.
310 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
311 without asmspec. Invoke assemble_alias when needed.
312 * varasm.c (maybe_assemble_visibility): New.
313 (assemble_start_function, assemble_variable, assemble_alias): Use it.
315 2002-03-02 Richard Henderson <rth@redhat.com>
317 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
318 invoke ENCODE_SECTION_INFO with first call flag.
320 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
321 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
322 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
323 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
324 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
325 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
326 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
327 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
328 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
329 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
330 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
331 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
332 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
333 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
334 config/mcore/mcore-protos.h, config/mcore/mcore.c,
335 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
336 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
337 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
338 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
339 config/sh/sh.h, config/sparc/sparc.h,
340 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
341 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
342 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
343 FIRST argument. As needed, examine it and do nothing.
345 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
346 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
347 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
349 * config/arm/t-pe (pe.o): Add dependencies.
351 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
353 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
354 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
355 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
356 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
357 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
358 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
359 * defaults.h (BITS_PER_UNIT): Define.
360 * doc/tm.texi (BITS_PER_UNIT): Document default value.
362 2002-03-02 Kazu Hirata <kazu@hxi.com>
364 * config/h8300/h8300-protos.h: Add a prototype for
365 compute_a_shift_length.
366 * config/h8300/h8300.c (h8300_asm_insn_count): New.
367 (compute_a_shift_length): Likewise.
368 (h8300_adjust_insn_length): Do not adjust insn length of shift
370 * config/h8300/h8300.md (anonymous shift patterns): Use
371 compute_a_shift_length.
373 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
375 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
378 * emit-rtl.c (offset_address): Call update_temp_slot_address.
380 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
382 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
383 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
384 * flags.h (flag_zero_initialized_in_bss): Declare.
385 * toplev.c (flag_zero_initialized_in_bss): New flag.
386 (lang_independent_options): Add flag_zero_initialized_in_bss.
387 * tree.c (initializer_zerop): New function.
388 * tree.h (initializer_zerop): Declare.
389 * varasm.c (assemble_variable): If we can emit bss, put zero
390 initializers in the bss section.
392 2002-03-02 Alan Modra <amodra@bigpond.net.au>
394 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
395 like more than one symbol per .weak directive.
397 2002-03-01 Richard Henderson <rth@redhat.com>
399 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
400 adjust argument_pointer by pretend_args_size.
401 (ia64_va_start): Adjust va_start address by -pretend_args_size.
403 2002-03-01 Kazu Hirata <kazu@hxi.com>
405 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
407 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
409 * toplev.c (rest_of_compilation): Delete dead jumptables before
411 * flow.c (delete_dead_jumptables): Make global.
412 * rtl.h (delete_dead_jumptables): Declare.
414 2002-03-01 David Edelsohn <edelsohn@gnu.org>
416 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
417 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
418 * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
420 2002-03-01 Kazu Hirata <kazu@hxi.com>
422 * config/h8300/h8300-protos.h: Fix formatting.
423 * config/h8300/h8300.c: Likewise.
424 * config/h8300/h8300.h: Likewise.
426 2002-03-01 Kazu Hirata <kazu@hxi.com>
428 * config/h8300/h8300.c (print_operand): Support 16-bit
430 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
432 2002-02-28 Richard Henderson <rth@redhat.com>
434 * expmed.c (store_bit_field): Prevent generation of CONCATs;
435 pun complex values as integers; use gen_lowpart instead of
437 (extract_bit_field): Likewise.
439 2002-03-01 Alan Modra <amodra@bigpond.net.au>
440 David Edelsohn <edelsohn@gnu.org>
442 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
443 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
444 (SUPPORTS_WEAK): Likewise.
445 * output.h (add_weak): Add tree param.
446 * varasm.c (add_weak): Likewise. Save decl.
447 (struct weak_syms): Add decl field.
448 (mark_weak_decls): New function.
449 (init_varasm_once): ggc_add_root mark_weak_decls.
450 (assemble_start_function): Use ASM_WEAKEN_DECL.
451 (assemble_variable): Likewise.
452 (assemble_alias): Likewise.
453 (declare_weak): Pass decl to add_weak.
454 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
455 (remove_from_pending_weak_list): Declare and define for
457 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
458 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
459 * defaults.h (SUPPORTS_WEAK): Likewise.
460 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
461 .weak for code sym. Do emit .size for descriptor sym.
462 (ASM_DECLARE_FUNCTION_SIZE): Define.
463 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
464 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
465 .lglobl unless TARGET_XCOFF. Formatting fixes.
466 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
468 (HANDLE_PRAGMA_WEAK): Remove.
469 (ASM_WEAKEN_LABEL): Remove.
470 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
472 2002-03-01 Jason Merrill <jason@redhat.com>
474 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
475 (TARGET_EXPR_CLEANUP): New macro.
477 2002-02-28 Steve Ellcey <sje@cup.hp.com>
479 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
480 to take ptr_extend into account as third type of extension.
481 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
482 fields used by SUBREG_PROMOTED_UNSIGNED_P.
483 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
484 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
485 * calls.c (precompute_arguments): Use new macro.
486 (expand_call): Ditto.
487 * combine.c (nonzero_bits): Ditto.
488 (record_promoted_value): Ditto.
489 * expr.c (store_expr): Ditto.
490 (expand_expr): Ditto.
491 * function.c (assign_parms): Ditto.
493 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
495 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
496 override -shared and -shared-libgcc.
498 2002-02-28 David O'Brien <obrien@FreeBSD.org>
500 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
502 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
505 2002-02-28 Richard Henderson <rth@redhat.com>
507 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
508 4 cycle latency from MM producers.
509 (ia64_internal_sched_reorder): Likewise with pipeline flush.
511 2002-02-28 Jakub Jelinek <jakub@redhat.com>
513 * mklibgcc.in: Don't use GNU make extension.
515 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
517 * c-parse.in (STATIC): New terminal.
518 (scspec): New non-terminal. Update productions accordingly.
519 (program): Remove bogus ifc / end ifc.
520 (array_declarator): Simplify production using STATIC.
522 2002-02-28 Jim Meyering <meyering@lucent.com>
524 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
525 \a still means TARGET_BELL.
527 2002-02-28 Richard Henderson <rth@redhat.com>
529 * haifa-sched.c (sched_emit_insn): New.
530 (schedule_block): Use last_scheduled_insn to track last insn.
531 * sched-int.h (sched_emit_insn): Prototype.
532 * config/ia64/ia64.c (last_issued): Remove.
533 (ia64_variable_issue): Don't set it.
534 (nop_cycles_until): Use sched_emit_insn.
536 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
538 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
541 2002-02-28 Kazu Hirata <kazu@hxi.com>
543 * config/h8300/h8300.c: Fix formatting.
544 * config/h8300/h8300.h: Likewise.
546 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
548 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
549 which may overwrite the high byte of the frame pointer.
551 2002-02-28 Bo Thorsen <bo@suse.de>
553 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
554 (STARTFILE_SPEC): Add 64 bit files.
555 (ENDFILE_SPEC): Likewise.
557 2002-02-28 Jason Merrill <jason@redhat.com>
559 * c-decl.c (finish_function): Only warn about missing return
560 statement with -Wreturn-type.
562 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
564 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
566 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
567 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
569 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
571 * basic-block.h (BB_REACHABLE): Renumber.
572 (BB_DIRTY, BB_NEW): New flags.
573 (clear_bb_flags): Declare.
574 (update_life_info_in_dirty_blocks): Declare.
575 * cfg.c (clear_bb_flags): New function.
576 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
577 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
578 reorder_insns, emit_insn_after): Mark block as dirty.
579 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
580 (update_life_info_in_dirty_blocks): New function.
581 * recog.c (apply_change_group): Dirtify block.
583 * cse.c (cse_insn): Reorder emitting of jump insn to keep
585 * gcse.c (delete_null_pointer_checks): Likewise.
587 * toplev.c (dump_file_index): Move cse2 after bp,
589 (dump_file_info): Similary.
590 (rest_of_compilation): Avoid most of CFG rebuilds;
591 do first if converision after null pointer checks, do cse2
592 after branch prediction; avoid full liveness rebuild after
593 initializing subregs.
594 * invoke.texi (-d options): Document -du, renumber.
596 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
597 (notice_new_block): Do not set BB_UPDATE_LIFE.
598 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
599 merge_blocks_move_successor_nojumps, merge_blocks,
600 try_crossjump_to_edge): Likewise.
601 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
602 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
603 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
604 (merge_of_block): Do not use life_data_ok.
605 (find_if_case_1): Do not use SET_UPDATE_LIFE.
606 (if_convert): Use BB_DIRTY mechanizm to update life.
607 * lcm.c (optimize_mode_switching): Update
608 update_life_info_in_dirty_blocks
610 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
612 * Makefile.in (integrate.o): Update.
613 * c-decl.c (copy_lang_decl): Rename.
614 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
615 * integrate.c: Include langhooks.h.
616 (copy_decl_for_inlining): Update to use langhook.
617 * langhooks-def.h (lhd_do_nothing_t,
618 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
619 (LANG_HOOKS_INITIALIZER): Update.
620 * langhooks.c (lhd_do_nothing_t): New.
621 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
622 * tree.h (copy_lang_decl): Remove.
624 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
626 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
628 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
629 POST_DEC, and POST_MODIFY.
631 2002-02-27 Zack Weinberg <zack@codesourcery.com>
633 * c-typeck.c (digest_init): Remove unused parameter; all
636 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
638 * expmed.c (expand_shift): Correctly test for low part of a
641 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
643 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
644 insn UIDs with insn addresses.
646 2002-02-27 Zack Weinberg <zack@codesourcery.com>
648 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
649 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
650 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
651 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
652 gcc.c, toplev.c: Delete code implementing -traditional mode.
654 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
655 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
656 Document removal of -traditional mode for compilation, and
657 remove documentation only relevant to that mode.
659 * config/nextstep.h, config/ptx4.h, config/svr4.h,
660 config/convex/convex.h, config/d30v/d30v.h,
661 config/i386/dgux.h, config/i386/osf1elf.h,
662 config/i386/osfelf.h, config/i386/osfrose.h,
663 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
664 config/m68k/hp310.h, config/m88k/dgux.h,
665 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
666 config/m88k/m88k.h, config/m88k/openbsd.h,
667 config/mips/abi64.h, config/mips/osfrose.h,
668 config/mips/svr4-5.h, config/mips/svr4-t.h,
669 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
670 config/stormy16/stormy16.h: Remove all references to
671 -traditional from target specs. Delete all mention of the
672 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
673 delete a couple of commented-out definitions of
674 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
677 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
678 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
680 2002-02-27 Zack Weinberg <zack@codesourcery.com>
682 * mklibgcc.in: Don't use \n in a line subject to
683 interpretation by echo.
685 2002-02-27 Graham Stott <grahams@redhat.com>
687 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
690 * loop.c (prescan_loop): Handle PARALLEL.
692 * unroll.c (loop_iterations): Return 0 if the add_val for
695 * final.c (output_operand_lossage): Constify PFX_STR.
697 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
699 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
701 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
702 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
704 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
706 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
708 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
710 * cpplex.c (_cpp_lex_token): Handle directives in macro
712 * cpplib.c (_cpp_handle_directive): Save and restore state
713 if parsing macro args when entering a directive.
714 * cppmacro.c (collect_args): No need to handle directives
716 (enter_macro_context, replace_args): Use the original macro
717 definition in case it was redefined whilst collecting arguments.
721 2002-02-26 David Edelsohn <edelsohn@gnu.org>
723 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
724 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
725 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
727 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
728 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
729 (load_toc_v4_PIC_2): Same.
731 2002-02-26 Alan Modra <amodra@bigpond.net.au>
733 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
735 2002-02-26 Richard Henderson <rth@redhat.com>
737 * config/alpha/alpha.md (ashldi_se): Re-enable.
739 2002-02-26 Richard Henderson <rth@redhat.com>
741 * config/alpha/alpha.c (alpha_encode_section_info): Examine
742 MODULE_LOCAL_P; improve commentary.
744 2002-02-26 Zack Weinberg <zack@codesourcery.com>
746 * doc/cpp.texi: Clarify documentation of relationship between
749 2002-02-26 Kazu Hirata <kazu@hxi.com>
751 * config/h8300/h8300-protos.h: Update the prototype for
752 compute_logical_op_length. Add the prototype for
753 compute_logical_op_cc.
754 * config/h8300/h8300.c (compute_logical_op_length): Figure out
756 (compute_logical_op_cc): New.
757 * config/h8300/h8300.md: Combine all the logical op patterns
758 in HImode and SImode. Use compute_logical_op_cc.
760 2002-02-26 Kelley Cook <kelleycook@comcast.net>
762 * config/i386/i386.c (print_operand): Don't append ATT-style
763 length suffixs to x87 opcodes when in Intel mode.
765 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
767 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
768 (init_emit_once): Update calls.
769 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
770 (init_syntax_once): Prototype.
772 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
774 * pa-linux.h (LIB_SPEC): Update definition.
775 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
777 2002-02-26 Richard Henderson <rth@redhat.com>
779 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
780 if we emitted a stop bit.
782 2002-02-26 Jakub Jelinek <jakub@redhat.com>
784 * configure.in (libgcc_visibility): Substitute.
785 * configure: Rebuilt.
786 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
787 defined symbols .hidden.
789 2002-02-26 Jakub Jelinek <jakub@redhat.com>
791 * attribs.c (c_common_attribute_table): Add visibility.
792 (handle_visibility_attribute): New function.
793 * varasm.c (assemble_visibility): New function.
794 * output.h (assemble_visibility): Add prototype.
795 * tree.h (MODULE_LOCAL_P): Define.
796 * crtstuff.c (__dso_handle): Use visibility attribute.
797 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
798 for MODULE_LOCAL_P symbols too.
799 * config/ia64/ia64.c (ia64_encode_section_info): Handle
800 MODULE_LOCAL_P symbols the same way as local symbols.
801 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
802 into .sdata/.sbss by the user.
803 * doc/extend.texi (Function Attributes): Document visibility
806 2002-02-26 Jakub Jelinek <jakub@redhat.com>
809 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
810 STRING_CST initializer spanning the whole variable without
812 If expand_expr returned MEM, don't use it.
814 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
816 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
817 generate a die for the lexical block.
819 2002-02-26 Kazu Hirata <kazu@hxi.com>
821 * config/h8300/h8300-protos.h: Add a prototype for
822 compute_logical_op_length.
823 * config/h8300/h8300.c (compute_logical_op_length): New.
824 * config/h8300/h8300.md (anonymous logical patterns): Use
825 compute_logical_op_length for length.
827 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
829 * dwarf2out.c (modified_type_die): Do not call type_main_variant
831 (gen_type_die): Same.
833 * attribs.c (handle_vector_size_attribute): Set debug information.
835 2002-02-26 Daniel Egger <degger@fhm.edu>
837 * config/rs6000/rs6000.md: Swap define_insn attributes to
838 fix incorrect generation of merge high instructions instead
841 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
843 * c-typeck.c (really_start_incremental_init): Use
844 bitsize_zero_node for vectors.
846 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
848 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
849 ("*set_vrsave_internal"): Same.
851 2002-02-25 Richard Henderson <rth@redhat.com>
853 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
854 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
856 2002-02-25 Jakub Jelinek <jakub@redhat.com>
859 * config/i386/i386.c (ix86_return_pops_args): Only pop
860 fake structure return argument if it was passed on the stack.
862 2002-02-25 Jason Merrill <jason@redhat.com>
864 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
867 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
869 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
870 link with shared_name only.
871 * doc/invoke.texi (Link Options): Document new behavior.
873 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
875 * c-typeck.c (push_init_level): Handle vectors.
877 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
879 * config/sparc/sparc.c (const64_high_operand): Zero-extend
880 operands of SPARC_SETHI_P.
881 (input_operand): Likewise.
882 (sparc_emit_set_const32): Likewise.
883 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
884 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
885 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
886 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
887 (movdi_insn_sp64_vis): Likewise.
888 (movdi split, movdf split): Use SETHI32.
889 * doc/md.texi: Document SPARC constraints L, M and N.
891 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
893 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
894 ("*set_vrsave_internal"): use mfspr for Darwin.
896 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
897 gen_get_vrsave_internal.
899 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
901 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
903 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
905 * cpplex.c (cpp_interpret_charconst): Get signedness or
906 otherwise of wide character constants correct.
907 * cppexp.c (lex): Get signedness of wide charconsts correct.
909 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
911 * optabs.c (widen_operand): Only call convert_modes for
912 promoted SUBREG if signedness matches.
913 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
915 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
917 * cpplib.c (glue_header_name): Use local buffer to build up
920 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
922 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
924 2002-02-23 Kazu Hirata <kazu@hxi.com>
926 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
927 H8/300[HS] separately.
928 * config/h8300/h8300.md: Remove the early clobber constraint
929 from bit field patterns.
931 2002-02-23 Kazu Hirata <kazu@hxi.com>
933 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
935 (mulhisi3): Likewise.
936 (umulqisi3): Likewise.
937 (umulhisi3): Likewise.
939 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
941 * cppinit.c (output_deps): Correct test for stdout output.
942 (init_dependency_output): Cure warning.
944 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
946 * expr.c (store_expr): When converting expression to promoted
947 equivalent type, allow using SUBREG_REG of TARGET as the target
948 of the expansion of EXP.
949 * loop.c (basic_induction_var, case SUBREG): Always look inside.
950 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
951 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
952 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
953 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
955 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
957 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
958 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
959 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
961 2002-02-23 Jakub Jelinek <jakub@redhat.com>
964 * loop.c (scan_loop): Update reg info if move_movables created new
967 2002-02-23 David Edelsohn <edelsohn@gnu.org>
969 * gcc.c (init_gcc_spec): Revert last change.
971 2002-02-23 David Edelsohn <edelsohn@gnu.org>
973 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
974 gpc_reg_operand constraint.
976 2002-02-23 Alan Modra <amodra@bigpond.net.au>
978 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
979 Simplify comparison of `low'.
980 (add_operand): Fix formatting.
981 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
982 (mask_operand): Disallow mask to wrap in 64-bit mode.
983 (rs6000_stack_info): Remove redundant test setting push_p.
984 (output_toc): Fix formatting.
985 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
986 cc_reg_not_cr0_operand constraint.
987 (booldi3, boolcdi3 splitters): Same.
989 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
991 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
993 2002-02-22 David Edelsohn <edelsohn@gnu.org>
995 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
996 gcc invoked with -shared-libgcc.
998 2002-02-22 Jakub Jelinek <jakub@redhat.com>
1001 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
1002 decl if any of elements was TREE_USED.
1004 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
1006 * config/sparc/sol2.h: Don't include sys/mman.h.
1007 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
1008 (arith_4096_operand): Don't throw high bits away.
1009 (const64_operand): Take sign extension of CONST_INTs into account.
1010 (const64_high_operand, sparc_emit_set_const32): Likewise.
1011 (GEN_HIGHINT64): Likewise.
1012 (sparc_emit_set_const64_quick1): Likewise.
1013 (const64_is_2insns): Likewise.
1014 (print_operand): Use trunc_int_for_mode for sign extension.
1015 * config/sparc/sparc.h (SMALL_INT32): Likewise.
1016 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
1017 chars. Assume CONST_INT is already properly sign-extended.
1018 (movdi split): Sign-extend each SImode part.
1019 (andsi3 split): Don't mask high bits off, so that result
1020 remains properly sign-extend.
1021 (iorsi3 split): Likewise.
1022 (xorsi3 split): Likewise.
1024 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
1026 * fold-const.c (fold): Fix typo in comments.
1028 2002-02-21 Diego Novillo <dnovillo@redhat.com>
1030 * Makefile.in (langhooks.o): Update dependencies.
1032 2002-02-21 Diego Novillo <dnovillo@redhat.com>
1034 * langhooks.c: Include flags.h.
1036 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
1038 * testsuite/gcc.dg/attr-alwaysinline.c: New.
1040 * c-common.c (c_common_post_options): Set inline trees by
1043 * doc/extend.texi (Function Attributes): Document always_inline
1045 Update documentation about inlining when not optimizing.
1047 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
1049 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
1050 unless DECL_ALWAYS_INLINE.
1052 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
1053 unless DECL_ALWAYS_INLINE.
1054 (c_disregard_inline_limits): Disregard if always_inline set.
1056 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
1057 Disregard if always_inline set.
1058 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
1059 unless DECL_ALWAYS_INLINE.
1061 * attribs.c (handle_always_inline_attribute): New.
1062 (c_common_attribute_table): Add always_inline.
1064 * config/rs6000/altivec.h: Add prototypes for builtins
1065 requiring the always_inline attribute.
1067 2002-02-21 Eric Christopher <echristo@redhat.com>
1069 * expmed.c (store_bit_field): Try to simplify the subreg
1070 before generating a new one when when the mode size of
1071 value is less than maxmode.
1073 2002-02-21 Richard Henderson <rth@redhat.com>
1075 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
1076 than gen_rtx_PLUS to form the sum.
1077 * explow.c (force_reg): Rearrange to not allocate new pseudo
1078 when force_operand returns a register.
1079 * expr.c (expand_assignment): Allow offset_rtx expansion to
1080 return a sum. Do not force addresses into registers.
1081 (expand_expr): Likewise.
1082 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
1083 to canonicalize arithmetic that didn't simpify.
1084 (simplify_plus_minus): New argument force; update
1085 all callers. Don't split CONST unless we can do something with it,
1086 and wouldn't lose the constness of the operands.
1088 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
1089 that we generated earlier.
1091 2002-02-21 Tom Tromey <tromey@redhat.com>
1093 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1094 (output_line_info): Use constant `1', with a long explanatory
1096 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
1098 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
1100 * jump.c (redirect_jump): If old label has no UID, don't try to
1103 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
1105 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
1106 If input is constant, do shifts at compile time.
1108 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
1110 * doc/extend.texi: Fix some more overfull hboxes.
1112 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1114 PR optimization/4994
1115 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
1118 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1121 * expr.h (expand_and): Add mode argument.
1122 * expmed.c (expand_and): Add mode argument.
1123 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
1124 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
1125 * except.c (expand_builtin_extract_return_addr): Likewise.
1126 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
1127 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
1128 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
1129 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
1130 * config/c4x/c4x.md: Use GEN_INT (x) instead of
1131 gen_rtx (CONST_INT, VOIDmode, x).
1133 2002-02-21 Jakub Jelinek <jakub@redhat.com>
1136 * stmt.c (warn_if_unused_value): Move side effects test once more.
1138 2002-02-20 Torbjorn Granlund <tege@swox.com>
1140 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
1141 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
1143 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
1145 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
1146 SUBREG or ZERO_EXTEND.
1148 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
1150 * sh.h (current_function_anonymous_args): Remove.
1151 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
1152 of current_function_varargs and current_function_stdarg is set.
1153 * sh.c (sh_expand_prologue): Check current_function_varargs /
1154 current_function_stdarg / TARGET_SH5 instead of
1155 current_function_anonymous_args.
1157 * sh64.h (TARGET_VERSION): Define.
1159 2002-02-20 David Edelsohn <edelsohn@gnu.org>
1161 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
1162 VRSAVE_REGNO on TARGET_ALTIVEC.
1164 2002-02-20 Alan Modra <amodra@bigpond.net.au>
1166 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
1167 bits of SImode const_int.
1168 (includes_rshift_p): Likewise.
1169 (print_operand): Call mask_operand and mask64_operand with correct
1171 (rs6000_output_function_epilogue): Pad traceback table to word.
1172 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
1173 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
1174 mask64_operand with correct mode.
1175 (FUNCTION_ARG_REGNO_P): Correct parentheses.
1177 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1180 * varasm.c (get_pool_constant_mark): New.
1181 * rtl.h (get_pool_constant_mark): Add prototype.
1182 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
1183 be represented if it has not been output.
1185 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
1187 * combine.c (do_SUBST): Sanity check substitutions of
1188 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
1189 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
1190 CONST_INT into its operand.
1191 (known_cond): Likewise, for ZERO_EXTEND.
1192 * simplify-rtx.c (simplify_unary_operation): Fix condition to
1193 allow for simplification of wide modes. Reject CONST_INTs in
1194 ZERO_EXTEND when their actual mode is not given.
1196 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
1198 * c-decl.c (pushdecl): If no global declaration is found for an
1199 extern declaration in block scope, try a limbo one.
1201 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1204 * c-common.c (pointer_int_sum): Moved from...
1205 * c-typeck.c (pointer_int_sum): ...here.
1206 * c-common.h (pointer_int_sum): Add prototype.
1208 2002-02-20 Jakub Jelinek <jakub@redhat.com>
1211 * c-decl.c (duplicate_decls): Return 0 if issued error about
1214 2002-02-20 Roger Sayle <roger@eyesopen.com>
1215 Jakub Jelinek <jakub@redhat.com>
1218 * tree.c (host_integerp): Ensure that the constant integer is
1219 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
1220 when pos is zero or non-zero respectively. Clarify comment.
1221 * c-format.c (check_format_info_recurse): Fix host_integerp
1222 usage; the pos argument should be zero when assigning to a
1223 signed HOST_WIDE_INT.
1225 2002-02-20 Richard Henderson <rth@redhat.com>
1227 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
1228 of the operand, rather than assuming TImode.
1229 (ix86_expand_binop_builtin): Cope with commutative patterns
1230 using nonimmediate_operand for both operands.
1231 (ix86_expand_timode_binop_builtin): Likewise.
1232 (ix86_expand_store_builtin): Validate operand 1.
1233 (ix86_expand_unop1_builtin): Likewise.
1235 2002-02-20 Philip Blundell <philb@gnu.org>
1238 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
1240 2002-02-20 Richard Henderson <rth@redhat.com>
1243 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
1245 2002-02-20 Tom Tromey <tromey@redhat.com>
1247 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1248 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1249 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1250 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
1251 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
1254 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
1256 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
1257 for (const_int 0) in X not just INTVAL.
1259 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
1261 * doc/extend.texi: Avoid or reduce overfull hboxes.
1263 2002-02-20 Diego Novillo <dnovillo@redhat.com>
1265 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
1266 operations if the field does not start at a mode boundary.
1268 2001-02-20 Joel Sherrill <joel@OARcorp.com>
1270 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
1271 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
1272 Also done for -Acpu and -Amachine.
1274 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
1276 * cppinit.c (init_dependency_output): Take deps output file
1277 from -o if none given with -MF. Suppress normal output.
1278 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
1279 * doc/cpp.texi, doc/invoke.texi: Update.
1281 2002-02-19 Zack Weinberg <zack@codesourcery.com>
1283 * toplev.c (output_quoted_string): Write unprintable
1284 characters with octal escapes.
1286 2002-02-19 David Edelsohn <edelsohn@gnu.org>
1288 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
1289 really_call_used[VRSAVE_REGNO] if not Altivec.
1291 2002-02-19 Alan Modra <amodra@bigpond.net.au>
1293 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
1295 (constant_pool_expr_1): Fix formatting.
1296 (rs6000_legitimize_reload_address): Likewise.
1298 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1300 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
1301 now that we have one.
1303 2002-02-19 Zack Weinberg <zack@codesourcery.com>
1305 * tree.h (struct tree_common): Remove aux. Add unused_0 at
1306 end of first block of bitfields (which was only seven bits);
1307 rename dummy to unused_1; remove comment which is no longer true.
1309 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
1311 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
1313 2002-02-19 Philip Blundell <pb@nexus.co.uk>
1316 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
1320 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
1321 arm_is_longcall_p rather than inspecting call-type cookie
1323 (call_value_insn) [TARGET_THUMB]: Likewise.
1325 2002-02-19 Graham Stott <grahams@redhat.com>
1327 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
1329 2002-02-19 David Edelsohn <edelsohn@gnu.org>
1331 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
1332 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
1333 (FP_SAVE_INLINE): Delete.
1335 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
1336 * config/rs6000/eabi.asm: Remove ABI save restore routines.
1337 * config/rs6000/t-ppccomm: Build crtsavres.o.
1338 * config/rs6000/crtsavres.asm: New file.
1340 2002-02-19 Philip Blundell <philb@gnu.org>
1342 * config/arm/arm.c (use_return_insn): Don't reject interrupt
1344 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
1345 (output_return_instruction): Allow interrupt functions to return with
1346 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
1347 (arm_expand_prologue): Subtract 4 before stacking LR in an
1350 2002-02-19 Philip Blundell <pb@nexus.co.uk>
1352 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
1353 decl, not just FUNCTION_DECL.
1354 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
1355 (arm_assemble_integer): Likewise.
1356 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
1359 2002-02-19 matthew green <mrg@eterna.com.au>
1361 * config.gcc (sparc-*-netbsdelf*): Enable target.
1362 (sparc64-*-netbsd*): New target.
1363 * config/sparc/netbsd-elf.h: New file.
1364 * config/sparc/t-netbsd64: New file.
1366 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
1368 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
1370 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
1372 * doc/invoke.texi: explicitly list the style guidelines that
1373 -Weffc++ checks for.
1375 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
1377 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
1379 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
1382 * gcc.c (cpp_unique_options): Treat -o as indicating object file
1383 only if not -E. If -E, pass -o through to the preprocessor.
1385 2002-02-19 Kazu Hirata <kazu@hxi.com>
1387 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
1388 register number with an appropriate macro.
1390 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1392 * doc/rtl.texi (Constants): Close @code tag.
1394 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
1396 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
1397 ("mmx_uavgv4hi3"): Same.
1398 ("pmulhrwv4hi3"): Same.
1400 * tree-inline.c (walk_tree): Handle vectors.
1402 * c-common.c (constant_expression_warning): Handle vectors.
1403 (overflow_warning): Same.
1405 * sched-deps.c (sched_analyze_2): Handle vectors.
1407 * rtlanal.c (rtx_unstable_p): Handle vectors.
1408 (rtx_varies_p): Same.
1409 (count_occurrences): Same.
1410 (regs_set_between_p): Same.
1411 (modified_between_p): Same.
1412 (modified_in_p): Same.
1413 (volatile_insn_p): Same.
1414 (volatile_refs_p): Same.
1415 (side_effects_p): Same.
1417 (inequality_comparisons_p): Same.
1418 (replace_regs): Same.
1419 (computed_jump_p_1): Same.
1421 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
1423 (inner_mode_array): New.
1424 (copy_rtx): Handle vectors.
1425 (copy_most_rtx): Same.
1426 (rtx_equal_p): Same.
1427 (get_mode_alignment): Adjust for vectors.
1429 * resource.c (mark_referenced_resources): Handle vectors.
1430 (mark_set_resources): Same.
1432 * reload1.c (eliminate_regs): Handle vectors.
1433 (elimination_effects): Same.
1434 (scan_paradoxical_subregs): Same.
1436 * reload.c (subst_reg_equivs): Handle vectors.
1438 * regrename.c (scan_rtx): Handle vectors.
1440 * regclass.c (reg_scan_mark_refs): Handle vectors.
1442 * recog.c (find_single_use_1): Handle vectors.
1444 * local-alloc.c (equiv_init_varies_p): Handle vectors.
1445 (contains_replace_regs): Same.
1446 (memref_referenced_p): Same.
1448 * integrate.c (copy_rtx_and_substitute): Handle vectors.
1449 (subst_constants): Same.
1451 * genattrtab.c (attr_copy_rtx): Handle vectors.
1452 (encode_units_mask): Same.
1453 (clear_struct_flag): Same.
1454 (count_sub_rtxs): Same.
1456 * gcse.c (want_to_gcse_p): Handle vectors.
1457 (oprs_unchanged_p): Same.
1458 (hash_expr_1): Same.
1459 (oprs_not_set_p): Same.
1460 (expr_killed_p): Same.
1461 (compute_transp): Same.
1462 (store_ops_ok): Same.
1464 * function.c (purge_addressof_1): Do not allow paradoxical subregs
1466 (fixup_var_refs_1): Same.
1467 (instantiate_virtual_regs_1): Same.
1469 * fold-const.c (operand_equal_p): Handle vectors.
1471 (rtl_expr_nonnegative_p): Same.
1473 * flow.c (mark_used_regs): Handle vectors.
1475 * df.c (df_uses_record): Handle vectors.
1477 * cselib.c (cselib_subst_to_values): Handle vectors.
1478 (cselib_mem_conflict_p): Same.
1481 * cse.c (canon_reg): Handle vectors.
1483 (cse_process_notes): Same.
1484 (count_reg_usage): Same.
1487 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
1489 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
1491 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
1492 (gen_rtx): Handle CONST_VECTOR.
1493 (gen_const_vector_0): New.
1494 (copy_rtx_if_shared): CONST_VECTORs can be shared.
1495 (reset_used_flags): Same.
1496 (copy_insn_1): Same.
1497 (initializer_constant_valid_p): Handle VECTOR_CST.
1499 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
1501 * doc/rtl.texi (Constants): Document const_vector.
1502 (CONST0_RTX): Update for vectors.
1503 (RTL sharing): Same.
1505 * print-tree.c (print_node): Add case for VECTOR_CST.
1507 * tree.h (TREE_VECTOR_CST_ELTS): New.
1508 (struct tree_vector): New.
1509 (union tree_node): Add vector node.
1510 (build_vector): Add prototype.
1512 * tree.def (VECTOR_CST): New.
1514 * tree.c (build_vector): New.
1516 * expmed.c (make_tree): Handle CONST_VECTOR.
1518 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
1519 (CONST_VECTOR_ELT): New.
1520 (CONST_VECTOR_NUNITS): New.
1522 * machmode.h (GET_MODE_INNER): New.
1523 (DEF_MACHMODE): Accept 8th arg.
1525 * machmode.def: Add 8th argument for vector inner mode.
1526 Add inner vector modes for vectors.
1528 * rtl.def (VEC_CONST): Remove.
1529 (CONST_VECTOR): New.
1531 * expr.c (clear_storage): Allow vectors.
1532 (is_zeros_p): Handle VECTOR_CST.
1534 * varasm.c (output_constant_pool): Handle vectors.
1535 (rtx_const): Add veclo and vechi fields.
1536 (kind): Add RTX_VECTOR.
1537 (decode_rtx_const): Add case for vector.
1539 * config/rs6000/rs6000-protos.h: Add zero_constant.
1541 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
1542 constants. Force easy vector constants into memory.
1543 (easy_vector_constant): New.
1544 (emit_easy_vector_constant): New.
1545 (rs6000_legitimize_reload_address): Do not generate bad reloads on
1548 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
1550 ("altivec_lvxl"): Same.
1551 (altivec_lvebx): Same.
1552 (altivec_lvehx): Same.
1553 (altivec_lvewx): Same.
1554 ("*movv4si_const0"): New.
1555 ("*movv4sf_const0"): New.
1556 ("*movv8hi_const0"): New.
1557 ("*movv16qi_const0"): New.
1559 2002-02-18 Kazu Hirata <kazu@hxi.com>
1561 * config/h8300/h8300.c (notice_update_cc): Use
1564 2002-02-18 Kazu Hirata <kazu@hxi.com>
1566 * config/h8300/h8300.md (divmod patterns): Change the
1567 constraints for operands[1] to register_operand.
1569 2002-02-18 Kazu Hirata <kazu@hxi.com>
1571 * config/h8300/h8300-protos.h: Remove the prototype for
1573 * config/h8300/h8300.c (p_operand): Remove.
1574 * config/h8300/h8300.md: Replace p_operand with
1577 2002-02-18 Philip Blundell <pb@nexus.co.uk>
1579 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
1581 (output_return_instruction): Allow use of LDR to unstack
1582 return addresss even for interrupt handlers or when
1583 interworking. If compiling for ARMv5, use interworking-safe
1584 return instructions by default. Remove duplicated code and
1585 lengthy "strcat" sequences.
1587 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1589 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1590 (LINK_EH_SPEC): Define.
1591 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1593 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1595 * config/s390/s390.c (s390_emit_prologue): Do not set the
1596 frame_related flag for call-clobbered registers.
1598 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
1600 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
1601 (construct_container): Fix handling of SSE operands.
1602 (ix86_expand_builtin): Fix handling of 64bit pointers.
1603 (mmx_maskmovq_rex): New pattern.
1605 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
1607 * regrename.c (kill_set_value): Handle subregs properly.
1609 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
1611 * objc/objc-act.c (handle_impent): Remove leading '*'
1612 from objc_class_name.
1614 2002-02-17 Richard Henderson <rth@redhat.com>
1616 * config/alpha/alpha.c (some_small_symbolic_operand,
1617 some_small_symbolic_operand_1, split_small_symbolic_operand,
1618 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
1619 Handle small SYMBOL_REFs anywhere, not just inside memories.
1620 * config/alpha/alpha-protos.h: Update.
1621 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1622 * config/alpha/alpha.md (small symbolic operand splitter): Update.
1624 2002-02-17 Roland McGrath <roland@frob.com>
1626 * config.gcc (powerpc-*-gnu-gnualtivec*,
1627 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
1628 * config/rs6000/gnu.h: New file.
1629 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
1630 Grok "gnu" in rs6000_abi_name.
1631 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
1632 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
1633 Grok -mcall-gnu analogous to -mcall-linux et al.
1634 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1635 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
1636 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
1638 2002-02-17 Jakub Jelinek <jakub@redhat.com>
1641 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1644 2002-02-17 Philipp Thomas <pthomas@suse.de>
1646 * config/cris/cris.h: Undefine STARTFILE_SPEC and
1647 ENDFILE_SPEC before (re)defining them.
1649 2002-02-17 Kazu Hirata <kazu@hxi.com>
1651 * config/h8300/h8300.c: Fix formatting.
1652 * config/h8300/h8300.h: Likewise.
1654 2002-02-17 Philipp Thomas <pthomas@suse.de>
1656 * doc/tm.texi: Explain why empty strings should not be
1657 marked for translation.
1659 2002-02-17 Philipp Thomas <pthomas@suse.de>
1661 * final.c (output_operand_lossage): Changed to accept
1662 printf style arguments. Change calls where necessary.
1663 * output.h (output_operand_lossage): Change declaration
1664 accordingly. Update copyright.
1665 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
1666 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
1667 Update copyright date where necessary.
1669 * config/i386/i386.c (print_operand): Likewise. Remove use of
1672 * config/cris/cris.c (cris_operand_lossage): Likewise.
1673 Rename parameter so that exgettext recognizes it as
1674 translatable message.
1675 (LOSE_AND_RETURN): Rename parameter to msgid.
1677 2002-02-17 Kazu Hirata <kazu@hxi.com>
1679 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
1680 hard coded register number with an appropriate macro.
1681 (HARD_REGNO_MODE_OK): Likewise.
1682 (ARG_POINTER_REGNUM): Likewise.
1683 (STATIC_CHAIN_REGNUM): Likewise.
1684 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
1685 * config/h8300/h8300.md (define_constants): Define more
1688 2002-02-17 Philipp Thomas <pthomas@suse.de>
1690 * config/i386/i386.h: Don't mark empty strings for translation.
1692 2002-02-16 H.J. Lu <hjl@gnu.org>
1694 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
1696 2002-02-16 Zack Weinberg <zack@codesourcery.com>
1698 * cppinit.c (merge_include_chains): Check for brack being
1699 NULL before attempting to merge it with qtail.
1701 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1703 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
1706 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1708 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
1710 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1712 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
1713 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
1714 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
1716 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1718 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1719 now only if !TARGET_FIX.
1720 (*movsi_nt_vms_fix): New pattern.
1722 2002-02-16 Douglas B Rupp <rupp@gnat.com>
1724 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
1725 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
1726 (alpha_sa_mask, alpha_sa_size): Reflect above change.
1727 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
1728 (alpha_start_function, alpha_expand_epilogue): Likewise.
1729 (unicosmk_gen_dsib): Likewise.
1731 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1733 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
1735 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
1737 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
1738 check_and_change_labels, s390_final_chunkify): Delete.
1739 (s390_split_branches, s390_chunkify_pool): New functions.
1740 (s390_function_prologue): Call them.
1742 * config/s390/s390.h (S390_REL_MAX): Delete.
1743 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
1745 * config/s390/s390.md (cjump, icjump, jump): Fix length
1746 attribute calculation.
1749 2002-02-15 David Edelsohn <edelsohn@gnu.org>
1751 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
1752 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
1754 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1756 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
1757 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
1758 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
1760 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1762 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
1764 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1766 * reload.c (find_dummy_reload): Check that an output register
1767 is valid for its mode.
1769 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
1771 * combine.c (known_cond): After replacing the REG of a SUBREG, try
1774 * function.c (assign_parms): Demote promoted argument passed by
1775 transparent reference.
1777 2001-02-14 Joel Sherrill <joel@OARcorp.com>
1779 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1780 -Acpu() and -Amachine() to eliminate warnings.
1782 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
1784 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1786 2002-02-14 Kazu Hirata <kazu@hxi.com>
1788 * config/h8300/h8300-protos.h: Update the prototype for
1790 * config/h8300/h8300.c (const_costs): Treat SET as a little
1791 more expensive operation.
1792 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1793 reference to const_costs.
1795 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
1797 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1799 2002-02-14 Jakub Jelinek <jakub@redhat.com>
1802 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1803 use arguments from newtype.
1805 2002-02-13 Eric Christopher <echristo@redhat.com>
1807 * config/mips/mips.c (override_options): Add check for march/mipsX
1808 on the same command line. Fix error message in cpu processing.
1809 Remove architecture and ISA checks.
1811 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1813 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1815 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1817 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1819 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1821 ("*movv8hi_internal1"): Same.
1822 ("*movv16qi_internal1"): Same.
1823 ("*movv4sf_internal1"): Same.
1825 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1826 not push_reload for altivec modes.
1828 2002-02-13 Joel Sherrill <joel@OARcorp.com>
1830 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1831 all RTEMS targets including removal of #includes from config/*/rtems*.h
1832 file and adding them to tm_file setting. Added xm_defines=POSIX to
1834 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1835 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1836 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1837 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1838 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1839 config/m68k/rtemself.h: Ditto.
1840 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1841 config/mips/rtems64.h: Ditto.
1842 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1843 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1845 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1846 config/sparc/rtemself.h: Ditto.
1847 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1848 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1849 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1851 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1852 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1853 target made more similar to i386-elf.
1854 * config/i386/t-rtems-i386: Added soft float support and multilibs.
1855 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1856 be similar to config/m68k/t-m68kelf.
1857 * gthr-rtems.h: Encapsulate with extern "C" for C++.
1859 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
1861 * regmove.c (kill_value): Handle subregs.
1863 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
1865 * i386.md (mul patterns): Allow memory operand to be first;
1866 add expanders where needed; fix constraints.
1867 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1868 Allow memory operand to be the first.
1870 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1873 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1876 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1879 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1881 PR optimization/5547:
1882 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1883 all valid IA-32 address modes involving non-scaled %ebx and
1884 GOT/GOTOFF as displacement.
1886 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1888 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1889 after emitting ltorg insns.
1891 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1892 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1893 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1894 *abssf2): Fix "op_type" attribute.
1896 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1898 * mkconfig.sh: Avoid using a subshell redirect.
1899 ($output.T): Change to $(output)T.
1900 (ENABLE_NLS): Remove unneeded undef.
1902 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1903 * config/alpha/x-vms (libsubdir): Define.
1905 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1906 register frame procedures. Optimize retrieving context.
1908 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1909 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1910 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1912 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1914 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1915 Make same change as for find_base_value.
1917 2002-02-13 Kazu Hirata <kazu@hxi.com>
1919 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1920 of QImode and SImode.
1922 2002-02-13 Kazu Hirata <kazu@hxi.com>
1924 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1925 length computation of movsi.
1926 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1928 2002-02-13 Kazu Hirata <kazu@hxi.com>
1930 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1931 operands[2] to register_operand.
1933 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1935 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1937 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1939 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1940 for altivec_lvx* and altivec_stvx*.
1941 ("*movv4si_internal"): Add constraint for loading from GPRs.
1942 ("*movv8hi_internal1"): Same.
1943 ("*movv16qi_internal1"): Same.
1944 ("*movv4sf_internal1"): Same.
1946 * config/rs6000/rs6000.c (altivec_register_operand): New.
1948 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1949 altivec_register_operand.
1951 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1953 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1956 2002-02-13 Stan Shebs <shebs@apple.com>
1958 * c-typeck.c (digest_init): Handle vectors.
1959 (really_start_incremental_init): Same.
1960 (pop_init_level): Same.
1961 (process_init_element): Same.
1963 * varasm.c (output_constant): Same.
1965 * expr.c (clear_storage): Same.
1966 (store_constructor): Same.
1968 2002-02-12 Eric Christopher <echristo@redhat.com>
1970 * explow.c (hard_function_value): Add comment explaining
1971 signed/unsigned comparison.
1973 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1975 * jump.c (never_reached_warning): Add finish argument.
1976 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1977 real insn after end.
1978 * rtl.h (never_reached_warning): Adjust prototype.
1979 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1980 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1981 never_reached_warning.
1983 2002-02-12 Graham Stott <grahams@redhat.com>
1985 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1987 2002-02-12 Kazu Hirata <kazu@hxi.com>
1989 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1990 logical shifts on H8/300.
1991 (shift_alg_si): Improve several shifts on H8/300.
1992 (get_shift_alg): Likewise.
1994 2002-02-12 Graham Stott <grahams@redhat.com>
1996 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1998 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2000 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
2001 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
2003 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
2005 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
2006 non-CONST_INT through default_assemble_integer.
2007 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
2008 <case 8>: Abort for CONST_DOUBLE.
2010 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2012 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
2014 * config/pa/pa-linux.h (LIB_SPEC): Delete.
2015 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
2017 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
2019 * config/stormy16/stormy16.md (zero_extendqihi2): New.
2021 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2023 * regrename.c (regrename_optimize): Don't accept a
2024 part-clobbered register if the replaced register is not part
2027 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
2028 take padding into account when computing the argument value.
2030 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
2032 * combine.c (try_combine): Apply substitutions in
2033 CALL_INSN_FUNCTION_USAGE too.
2035 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
2037 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
2038 __builtin_altivec_abs*.
2041 * config/rs6000/rs6000.h (rs6000_builtins): Add
2042 ALTIVEC_BUILTIN_ABS*.
2044 * config/rs6000/altivec.h: Use const char for builtins expecting
2046 (vec_abs): New versions for C and C++.
2049 2002-02-10 Kazu Hirata <kazu@hxi.com>
2051 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
2054 2002-02-10 Kazu Hirata <kazu@hxi.com>
2056 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
2057 constant definition from h8300.md.
2058 (FRAME_POINTER_REGNUM): Likewise.
2059 * config/h8300/h8300.md (define_constants): Add FP_REG.
2061 2002-02-10 Kazu Hirata <kazu@hxi.com>
2063 * config/h8300/h8300.c (print_operand): Remove redundant code.
2065 2002-02-10 Kazu Hirata <kazu@hxi.com>
2067 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
2068 * config/h8300/h8300.c (byte_reg): Make it static.
2070 2002-02-10 Richard Henderson <rth@redhat.com>
2073 * c-typeck.c (incomplete_type_error): Handle flexible array members.
2075 2002-02-10 Richard Henderson <rth@redhat.com>
2078 * tree.c (append_random_chars): Don't abort if main_input_filename
2081 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2083 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
2085 2002-02-10 Kazu Hirata <kazu@hxi.com>
2087 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
2088 (pushhi1): Likewise.
2090 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
2092 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
2093 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
2095 2002-02-09 David O'Brien <obrien@FreeBSD.org>
2097 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
2099 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
2101 2002-02-09 Kazu Hirata <kazu@hxi.com>
2103 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
2104 a half of an SImode register on H8/300.
2106 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
2108 * i386.md (movdi_2): Add missing '!'.
2110 2002-02-09 Kazu Hirata <kazu@hxi.com>
2112 * config/h8300/h8300.h: Fix formatting. Remove commented-out
2115 2002-02-09 Kazu Hirata <kazu@hxi.com>
2117 * config/h8300/h8300.md (length): Correct the distance valid
2118 for the short branch.
2120 2002-02-09 Kazu Hirata <kazu@hxi.com>
2122 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
2124 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
2126 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
2127 registers in SImode.
2128 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
2131 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
2134 Contribute sh64-elf.
2135 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
2136 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
2137 (sh_cannot_modify_jumps_p): New function.
2138 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2139 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
2140 (sh_ms_bitfield_layout_p): New function.
2141 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
2142 Zack Weinberg <zack@codesourcery.com>
2143 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
2144 expand_simple_binop instead of expand_binop.
2145 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
2146 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
2147 use of .quad and .uaquad.
2148 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
2149 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
2150 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2151 * config/sh/sh.md (movdi_const, movdi_const_32bit,
2152 movdi_const_16bit): Make sure all CONSTs have modes.
2153 (sym2PIC): Ditto, but by adjusting all callers.
2154 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
2155 if the prologue calls the SHmedia argument decoder or register
2157 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2158 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
2159 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
2160 (sh_expand_epilogue): Don't emit USE of return target register.
2161 (prepare_move_operands): Legitimize DImode PIC addresses.
2162 (sh_media_register_for_return): Skip tr0, used to initialize the
2164 (sh_expand_prologue): Remove explicit USE of return register.
2165 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
2166 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
2167 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
2168 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
2169 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
2171 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
2172 (MOVI_SHORI_BASE_OPERAND_P): New.
2173 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
2174 (EXTRA_CONSTRAINT_T): Define in terms of them.
2175 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
2176 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
2177 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
2178 alternatives supporting TARGET_REGS.
2179 (UNSPEC_GOTPLT): New constant.
2180 (movdi split): Move incrementing of LABEL_NUSES...
2181 (movdi_const, movdi_const_32bit): Here. Use
2182 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
2183 (movdi_const_16bit): New.
2184 (call, call_value) [flag_pic]: Use GOTPLT.
2185 (call_pop, call_value_pop): New expands.
2186 (call_pop_compact, call_pop_rettramp): New insns.
2187 (call_value_pop_compact, call_value_pop_rettramp): New insns.
2188 (sibcall) [flag_pic]: Use GOT.
2189 (builtint_setjmp_receiver): Remove bogus, unused expand.
2190 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
2191 (*pt, *ptb, ptrel): New insns.
2192 (sym2GOT): Handle DImode GOT.
2193 (sym2GOTPLT, symGOTPLT2reg): New expands.
2194 (sym2PIC): New expand.
2195 (shcompact_return_tramp): Use GOTPLT to return trampoline.
2196 (shcompact_return_tramp_i): Use return register explicitly.
2197 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
2198 disable flag_reorder_blocks.
2199 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
2200 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
2201 clobbers, for clarity.
2202 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
2203 restoring of r0 in macl as MAYBE_DEAD.
2204 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
2205 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
2206 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
2207 alter_subreg all over.
2208 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
2209 reload, instead of emitting instructions that would require
2211 (casesi_load_media): Add missing modes.
2212 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
2213 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
2214 as used if the argument decoder is called.
2215 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
2216 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
2217 Pmode, then extend it to DImode if necessary.
2218 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
2219 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
2220 constants in FPU-enabled SHmedia, let them be loaded from memory.
2221 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
2222 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
2223 Adjust whitespace in assembly output templates.
2224 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
2225 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
2226 mode of if_then_else.
2227 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
2228 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
2230 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
2231 Joern Rennecke <amylaar@redhat.com>
2232 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
2233 (SUBTARGET_CPP_PTR_SPEC): New.
2234 (SUBTARGET_CPP_SPEC): Remove.
2235 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
2236 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2237 Fix typo in previous checkin.
2238 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
2239 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
2240 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
2241 Alexandre Oliva <aoliva@redhat.com>
2242 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
2243 what single FP register can hold for SHmedia target.
2244 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
2245 Alexandre Oliva <aoliva@redhat.com>
2246 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
2247 Do not split into SUBREG.
2248 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
2249 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
2250 and added new functions as specified in SH5 ABI r9.
2251 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
2252 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
2254 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
2255 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
2256 gen_consttable_4 and gen_consttable_8. Emit multiple labels
2257 and consttable_window_ends.
2258 2001-06-03 Graham Stott <grahams@redhat,com>
2259 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
2260 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2261 * config/sh/sh.c (print_operand): Handle floating-point pair,
2262 vector and matrix registers.
2263 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
2264 vector modes into account.
2265 * config/sh/sh.md (movv2sf): Split move between registers into
2267 (movv4sf, movv16sf): Introduce insns that get split only after
2269 * config/sh/shmedia.h: Fix Copyright dates.
2270 * config/sh/ushmedia.h: Likewise. Move loop counter
2271 declarations into conditionals that uses them.
2272 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
2274 * config/sh/sshmedia.h: Fix Copyright dates.
2275 (sh_media_PUTCFG): Fix constraints.
2276 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
2277 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
2278 ptrmemfunc_vbit_in_delta for SH5.
2279 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
2280 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
2281 * invoke.texi: Likewise.
2282 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2283 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
2284 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
2285 GCC_pop_shmedia_regs_nofpu): New global symbols.
2286 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
2287 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
2288 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
2289 compact function with nonlocal labels.
2290 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
2291 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
2292 (initial_elimination_offset): Account for their stack space.
2293 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
2294 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
2295 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
2296 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
2297 least one of the operands to be a register.
2298 (movv2sf): Likewise. Renamed to movv2sf_i.
2299 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
2300 prepare_move_operands() before emitting SHmedia insns.
2301 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
2302 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
2303 Don't save nor initialize r12. Don't mis-align the stack.
2304 Pad the code with a nop.
2305 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
2307 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
2308 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
2309 [__SHMEDIA__]: Implement.
2310 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
2311 * config/sh/sh.md: Set latency of `pt' closer to reality.
2312 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
2313 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
2314 Set move, load and store type attributes.
2315 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
2316 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
2318 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
2319 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
2320 * config/sh/sh.c (sh_media_register_for_return): New function.
2321 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
2322 branch-target register.
2323 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
2324 * config/sh/sh.md (return_media_i): Use any call-clobbered
2325 branch-target register.
2326 (return_media): If r18 wasn't copied in the prologue, copy it
2328 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
2329 Clear class FP0_REGS.
2330 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
2332 2001-03-08 DJ Delorie <dj@redhat.com>
2333 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
2334 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
2335 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
2336 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
2337 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
2338 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
2339 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
2340 return value correctly for call_cookie.
2341 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
2342 * config/sh/crt1.asm (start): Modified so as to call
2343 ___setup_argv_and_call_main.
2344 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
2345 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
2347 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
2348 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
2349 (STRIP_NAME_ENCODING): Use it.
2350 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
2351 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
2352 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
2353 prepare_scc_operands().
2354 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
2355 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
2356 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
2357 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
2358 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
2359 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
2360 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
2361 used in shcompact_incoming_args.
2362 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
2364 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
2366 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
2368 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2369 Simplify. Adjust. Add sanity check.
2370 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
2372 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
2374 (udivsi3, divsi3): Use them.
2375 (force_mode_for_call): New insn.
2376 (call, call_value, sibcall_value): Emit it before SHcompact
2378 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
2379 * config/sh/sh.md (call, call_value, sibcall): Make sure the
2380 call cookie is non-NULL before taking its value.
2381 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
2382 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
2383 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
2384 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
2386 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
2387 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
2388 temporary for stack adjusts. Use MACL and MACH to pass
2389 arguments to shcompact_incoming_args.
2390 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
2392 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
2393 (nested_trampoline): Load static chain address into r1.
2394 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
2395 2001-01-07 Alexandre Oliva <aoliva@redhat.com
2396 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
2397 fp_arith_reg_operand().
2398 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
2399 * config/sh/sh.md (casesi): Sign-extend the first two operands,
2400 and use signed compares for them.
2401 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
2402 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
2403 ones properly aligned.
2404 (find_barrier): Account for extra alignment needed for 8-byte wide
2406 (machine_dependent_reorg): Require a label for the second 4-byte
2407 constant after an 8-byte one.
2408 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
2410 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
2411 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
2412 last_float when switching float modes.
2413 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
2414 auto-increment for general-purpose registers.
2415 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
2417 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
2419 * config/sh/sh.c (sh_builtin_saveregs): Support using all
2420 registers for varargs.
2421 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
2422 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
2423 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
2424 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
2425 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
2426 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
2427 call_cookie accordingly.
2428 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
2429 (SHCOMPACT_BYREF): Likewise.
2430 (SHCOMPACT_FORCE_ON_STACK): New macro.
2431 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
2432 (sh_builtin_saveregs): Likewise.
2433 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2434 shcompact_incoming_args): Use new shift values. Support
2435 sequences of consecutive and non-consecutive pushes/pops.
2436 * config/sh/sh.md (return): Don't explicitly use PR_REG.
2437 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2438 * config/sh/sh.h (TEXT_SECTION): Define.
2439 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
2440 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
2441 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2442 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
2443 return values on FPU-enabled SHmedia.
2444 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
2445 FPU-enabled SHmedia.
2446 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
2447 value is returned in a non-FP reg and is not returned by
2449 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
2451 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
2452 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
2453 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
2454 quad-aligned to be passed by callee-copy reference.
2455 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
2456 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
2457 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
2458 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
2459 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
2460 copying low-numbered FP regs to r7 and r8.
2461 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
2462 FP regs to general-purpose regs only if the copy was passed on the
2464 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
2465 copying FP reg to r9.
2466 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
2467 copy FP regs to general-purpose regs only in outgoing calls.
2468 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
2469 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
2471 * config/sh/sh.h (struct sh_args): Document all fields.
2472 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
2473 passed partially on the stack should not consider making
2475 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
2476 stack_regs only for incoming calls. When passing FP args,
2477 make sure there are FP regs available before modifying
2479 (SHCOMPACT_BYREF): Pass double args in general-purpose
2480 registers by reference.
2481 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
2482 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
2483 attempt to generate sibcalls if the caller got any arguments
2485 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
2486 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
2487 to 8-byte boundaries.
2488 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
2489 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
2490 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
2491 stored in the stack.
2492 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
2493 for the offsets to have the ISA bit set.
2494 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
2495 invocation. Use beq instead of bgt to mark end of sequence of
2497 (shcompact_incoming_args): Fix store of r2. Use beq instead of
2498 bgt to mark end of sequence of stores.
2499 * config/sh/sh.c (arith_operand): Don't check whether
2500 CONST_OK_FOR_J for now.
2501 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
2502 instead of long for conversion.
2503 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
2504 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
2505 before passing it to fprintf.
2506 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
2507 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
2508 Call set_fpscr before reading/writing SR.
2509 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
2511 * config/sh/lib1funcs.asm: Add `.align 2' directives before
2513 (FMOVD_WORKS): Define on SH5 with FPU.
2514 (set_fpscr): Define on SH5. Remove separate _fpscr_values
2516 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
2518 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
2519 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
2521 (ia_main_table): Ditto.
2522 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2523 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2524 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
2525 the definitions from sh.h.
2526 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
2528 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
2529 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
2530 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2531 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
2532 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
2533 Increment LABEL_NUSES.
2535 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
2537 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
2539 * config/sh/elf.h (SIZE_TYPE): Likewise.
2540 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2541 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2542 shcompact_incoming_args): Load switch table addresses using
2544 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2545 (NO_BUILTIN_SIZE_TYPE): Define.
2546 (SIZE_TYPE): Don't define.
2547 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2548 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
2549 definition of __SH5__=32 for -m5-compact-nofpu.
2550 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
2552 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
2553 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
2554 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
2555 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
2556 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
2557 (INSN_LENGTH_ALIGNMENT): Likewise.
2558 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2559 * config/sh/sh.md (call, call_value, sibcall): Simplify
2560 copying of non-branch-target register.
2561 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2562 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
2563 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
2564 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2565 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
2566 floating-point values as structs.
2567 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
2568 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
2569 general-purpose register.
2570 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
2571 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2572 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
2573 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
2574 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
2575 (ENCODE_SECTION_INFO): Enclose variables and constants in
2577 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
2578 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
2579 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
2580 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
2581 only for LABEL_REFs. For SYMBOL_REFs, prepend
2582 SH_DATALABEL_ENCODING to the symbol name.
2583 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
2585 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2586 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
2588 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
2589 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
2590 (DATALABEL_REF_P): Don't require CONST.
2591 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
2593 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
2594 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
2596 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2597 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
2598 Use shallow_copy_rtx and PUT_MODE to change the mode of
2599 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
2600 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
2601 on SHmedia using GENERAL_REGs.
2602 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2603 bltu_media_i): Fix reversion of conditions.
2604 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2605 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
2606 * config/sh/sh.c (output_far_jump): Save r13 in macl.
2607 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
2608 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
2609 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
2610 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
2611 (GCC_nested_trampoline): Likewise.
2612 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
2613 * config/sh/sh.c (gen_datalabel_ref): Define.
2614 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
2615 (INITIALIZE_TRAMPOLINE): Likewise.
2616 (TRAMPOLINE_ADJUST_ADDRESS): Define.
2617 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
2618 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
2619 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
2620 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
2621 (ic_invalidate): Adjust for SH5.
2622 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
2623 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
2625 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
2626 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
2627 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
2628 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2629 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
2630 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
2631 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2632 * config/sh/sh.c (target_reg_operand): Match only target-branch
2633 registers and pseudos that aren't virtual registers.
2634 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2635 Copy operands that don't match target_reg_operand to pseudos.
2636 (call_media, call_value_media, sibcall_media): Use
2637 target_reg_operand instead of target_operand.
2638 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
2639 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
2640 * config/sh/sh.c (target_reg_operand): Match hardware registers
2641 other than branch-target registers.
2642 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
2643 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
2644 (fpscr_values) [SH5 == 32]: Define.
2645 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
2646 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2647 Handle function addresses coming in SUBREGs.
2648 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
2649 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2650 shcompact_return_trampoline): Use datalabel where appropriate.
2651 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
2652 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
2653 general-purpose register to copy one branch-target register to
2655 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2656 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
2657 SYMBOL_REFs with VOIDmode.
2658 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2659 bltu_media_i): New insns.
2660 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2661 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
2662 (INIT_CUMULATIVE_ARGS): Likewise.
2663 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2664 * machmode.def (V16SFmode): New mode.
2665 * c-common.c (type_for_mode): Support V2SF and V16SF.
2666 * tree.c (build_common_tree_nodes_2): Likewise.
2667 * tree.h (tree_index): Likewise.
2668 * calls.c (emit_call_1): Take args_so_far. Adjust all
2669 callers. Introduce CALL_POPS_ARGS.
2670 * tm.texi (CALL_POPS_ARGS): Document.
2671 * config/sh/crt1.asm: Implement in SHmedia mode.
2672 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
2673 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
2674 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
2675 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
2676 Implement divsi and udivsi in SHmedia mode. Introduce
2677 SHcompact trampolines.
2678 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
2680 (regno_reg_class): Rewrite.
2681 (fp_reg_names): Remove.
2682 (sh_register_names, sh_additional_register_names): New.
2683 (print_operand): Added `u'. Support SUBREGs in addresses.
2684 Add parentheses around shifted CONSTs.
2685 (output_file_start): Output .mode and .abi directives.
2686 (shiftcosts, addsubcosts, multcosts): Adjust.
2687 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
2688 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
2689 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
2690 bytes, not registers. Take into account the need for the
2691 SHcompact incoming args trampoline. Adjust all callers.
2692 (sh_expand_prologue): Take stack_regs into account. Call
2693 incoming args trampoline. Keep stack aligned as per SH5 ABI.
2694 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
2695 stack aligned as per SH5 ABI.
2696 (sh_builtin_saveregs): Support SH5 ABI.
2697 (sh_build_va_list, sh_va_start): Likewise.
2698 (initial_elimination_offset): Take alignment into account.
2699 Compute location of PR according to the SH5 stack frame.
2700 (arith_reg_operand): Reject branch-target registers.
2701 (shmedia_6bit_operand): New.
2702 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
2703 (target_reg_operand): Match DImode only. Accept SUBREGs.
2704 (target_operand): New.
2705 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
2706 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
2707 SIBCALL_REGS for SHmedia.
2708 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
2709 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
2710 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
2711 (TARGET_SWITCHES): New SH5 flags.
2712 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
2713 VALID_REGISTER_P to disable unsupported registers.
2714 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
2715 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
2716 (FUNCTION_ARG_PADDING): Define.
2717 (FASTEST_ALIGNMENT): Adjust.
2718 (SH_REGISTER_NAMES_INITIALIZER): New.
2719 (sh_register_names): Declare.
2720 (DEBUG_REGISTER_NAMES): Define.
2721 (REGISTER_NAMES): Define based on sh_register_names.
2722 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
2723 (sh_additional_register_names): Declare.
2724 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
2725 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
2726 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
2727 (REGISTER_NATURAL_MODE): Define.
2728 (FIRST_PSEUDO_REGISTER): Adjust.
2729 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
2730 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2731 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
2732 (VECTOR_MODE_SUPPORTED_P): Define.
2733 (REG_CLASS_CONTENTS): Adjust.
2734 (SMALL_REGISTER_CLASSES): Adjust.
2735 (REG_ALLOC_ORDER): Adjust.
2736 (INDEX_REG_CLASS): Adjust.
2737 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
2738 (CONST_OK_FOR_LETTER_P): Adjust.
2739 (PREFERRED_RELOAD_CLASS): Adjust.
2740 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
2741 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
2742 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
2743 (FIRST_FP_PARM_REG): Adjust.
2744 (CALL_POPS_ARGS): Define.
2745 (FUNCTION_ARG_REGNO_P): Adjust.
2746 (struct sh_args): New fields.
2747 (GET_SH_ARG_CLASS): Adjust.
2748 (INIT_CUMULATIVE_ARGS): Adjust.
2749 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
2750 (FUNCTION_ARG_ADVANCE): Adjust.
2751 (FUNCTION_ARG): Adjust.
2752 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
2753 (FUNCTION_ARG_CALLEE_COPIES): Define.
2754 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
2755 (STRICT_ARGUMENT_NAMING): Define.
2756 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
2757 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
2758 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
2759 (SETUP_INCOMING_VARARGS): Adjust.
2760 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
2761 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
2762 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
2763 (SUBREG_OK_FOR_INDEX_P): Adjust.
2764 (EXTRA_CONSTRAINT_S): Update.
2765 (EXTRA_CONSTRAINT_T): New.
2766 (EXTRA_CONSTRAINT): Adjust.
2767 (GO_IF_LEGITIMATE_INDEX): Adjust.
2768 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
2769 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2771 (MAX_MOVE_MAX): Define.
2773 (CONST_COSTS): Adjust.
2774 (REGISTER_MOVE_COST): Adjust.
2775 (BRANCH_COST): Adjust.
2776 (TEXT_SECTION_ASM_OP): Adjust.
2777 (DBX_REGISTER_NUMBER): Adjust.
2778 (ASM_OUTPUT_DOUBLE_INT): New.
2779 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2780 (PREDICATE_CODES): Adjust.
2781 (PROMOTE_MODE): Adjust.
2782 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2783 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2784 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2785 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2786 (DR0_REG, DR2_REG, DR4_REG): Renumber.
2787 (TR0_REG, TR1_REG, TR2_REG): New.
2788 (XD0_REG): Renumber.
2789 (UNSPEC_COMPACT_ARGS): New.
2790 (type): Added pt and ptabs.
2791 (length): Default to 4 on SHmedia. Default pt length to 12
2792 and 20 on SHmedia32 and SHmedia64, respectively.
2793 (pt): New function unit.
2794 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
2795 Add whitespace between operands of SHmedia instructions.
2797 (adddi3_media, addsi3_media): Adjust constraints.
2798 (subsi3) [SHmedia]: Force operand 1 into a register.
2799 (udivsi3_i1_media, udivsi3_i4_media): New.
2800 (udivsi3): Support SHmedia.
2801 (divsi3_i1_media, divsi3_i4_media): New.
2802 (divsi3): Support SHmedia.
2803 (anddi3, iordi3, xordi3): Adjust constraints.
2804 (zero_extendhidi2, zero_extendqidi2): New.
2805 (extendsidi2, extendhidi2, extendqidi2): New.
2806 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2807 (pop_e, pop_fpul, pop_4): Likewise.
2808 (movsi_media): Support FP and BT registers.
2809 (movsi_media_nofpu): New. Adjust splits to DImode.
2810 (lduw, ldub): Renamed to zero_extend* above.
2811 (movqi_media): Fix typo.
2812 (movdi_media): Support FP and BT registers.
2813 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
2814 (movdi_const_32bit): New.
2815 (shori_media): Require immediate operand. Use `u' for output.
2816 (movdf_media, movsf_media): Simplified.
2817 (movdf_media_nofpu, movsf_media_nofpu): New.
2818 (movdf, movsf): Adjust
2819 (movv2sf, movv2sf, movv16sf): New.
2820 (beq_media, beq_media_i): Adjust constraints. Don't use
2821 scratch BT register.
2822 (bne_media, bne_media_i): Likewise.
2823 (bgt_media, bgt_media_i): Likewise.
2824 (bge_media, bge_media_i): Likewise.
2825 (bgtu_media, bgtu_media_i): Likewise.
2826 (bgeu_media, bgeu_media_i): Likewise.
2827 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2828 bunordered): Emit jump insn. Force operands to registers when
2830 (jump_media, jump): Simplify.
2831 (call_compact, call_compact_rettramp): New.
2832 (call_value_compact, call_value_compact_rettramp): New.
2833 (call_media, call_value_media): Simplify.
2834 (sibcall_compact, sibcall_media): New.
2835 (call, call_value): Adjust for SHmedia and SHcompact.
2836 (sibcall, sibcall_value, untyped_call): Likewise.
2837 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2838 (indirect_jump): Adjust for SHmedia.
2839 (casesi_jump_media): New.
2840 (nop): Re-enable for SHmedia.
2841 (call_site): Restrict to SH1.
2842 (casesi): Adjust for SHmedia.
2843 (casesi_shift_media, casesi_load_media): New.
2844 (return): Explicitly use PR register. Call return trampoline
2846 (return_i): Explicitly use PR register.
2847 (shcompact_return_tramp, shcompact_return_tramp_i): New.
2848 (return_media): Adjust.
2849 (shcompact_incoming_args): New.
2851 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2852 (movstrsi): Disable on SH5.
2853 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2854 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2855 (subsf3, subsf3_media): Likewise.
2856 (mulsf3, mulsf3_media, mac_media): Likewise.
2857 (divsf3, divsf3_media): Likewise.
2858 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
2859 (floatsisf2, fux_truncsfsi2): Likewise.
2860 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
2862 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2863 (cmpunsf_media, cmpsf): Likewise.
2864 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2865 (abssf2, abssf2_media): Likewise.
2866 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2867 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2868 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
2869 (floatsidf2, fix_truncdfsi2): Likewise.
2870 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
2872 (cmpeqdf_media, cmpgtdf_media): Likewise.
2873 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2874 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2875 (absdf2, absdf2_media): Likewise.
2876 (extendsfdf2, extendsfdf2_media): Likewise.
2877 (truncsfdf2, truncsfdf2_media): Likewise.
2878 * config/sh/sh64.h: New file.
2879 * config/sh/t-sh64: New file.
2880 * config/sh/shmedia.h: New file.
2881 * config/sh/ushmedia.h: New file.
2882 * config/sh/sshmedia.h: New file.
2883 * configure.in: Added sh64-*-elf.
2884 * configure: Rebuilt.
2885 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2886 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2887 (reg_class_from_letter): Use `b' for TARGET_REGS.
2888 (print_operand): Support `%M', `%m', `AND' and
2889 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2890 (andcosts): Adjust for SHmedia.
2891 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2893 (target_reg_operand): New function.
2894 * config/sh/sh-protos.h (target_reg_operand): Declare.
2895 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2896 FP registers on SH5.
2897 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2899 (TARGET_REGISTER_P): New macro.
2900 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2901 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2902 (EXTRA_CONSTRAINT_S): New macro.
2903 (EXTRA_CONSTRAINT): Adjust.
2904 (FLOAT_TYPE_SIZE): Define to 32.
2905 (Pmode): DImode on SHmedia.
2906 (CONST_COSTS): Adjust for SHmedia literals.
2907 (PREDICATE_CODES): Added target_reg_operand.
2908 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2909 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2910 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2911 (cmpdi): Accept SHmedia.
2912 (movdicc_false, movdicc_true): New insns.
2913 (movdicc): New expand.
2914 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2916 (addsi3_media): Match `S' constraint.
2917 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2918 (negdi2): Expand for SHmedia.
2919 (one_cmpldi2): New expand.
2920 (zero_extendsidi2): Change from expand to insn.
2921 (extendsidi2): Add constraints.
2922 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2923 LD/ST address. Fix SI immediate loading split.
2924 (movhi_media, movqi_media, lduw, ldub): New insns.
2925 (movhi, movqi): Accept SHmedia.
2926 (shori_media, movdi_media): Relax input constraints. Split
2928 (movdf_media, movsf_media): New insn. New split to movdi.
2929 (movdf, movsf): Match on SHmedia.
2930 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2931 bgeu_media): New insns and splits. New insns with `_i' suffix.
2932 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2933 (bunordered): New expand.
2934 (jump_compact): Renamed from `jump'.
2935 (jump_media): New insn.
2937 (call_media, call_value_media): New insns.
2938 (call, call_value): Adjust.
2939 (indirect_jump_compact): Renamed from `indirect_jump'.
2940 (indirect_jump_media): New insn.
2941 (indirect_jump): New expand.
2942 (untyped_call, return): Accept SHmedia.
2943 (return_media): New insn.
2944 (prologue, epilogue, blockage): Accept SHmedia.
2945 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2946 (sunordered): New expand.
2947 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2948 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2949 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2950 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2951 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2952 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2953 abssf2_media): New insns.
2954 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2955 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2956 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2957 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2958 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2959 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2960 absdf2_media): New insns.
2961 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2962 (extendsfdf2_media, truncdfsf2_media): New insns.
2963 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2964 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2965 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2966 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2967 * config/sh/sh.md (adddi3): New expand.
2968 (adddi3_media, adddi3z_media): New insns.
2969 (adddi3_compact): Renamed from adddi3.
2970 (addsi3_media): Use add.l r63 to add constant zero.
2971 (subdi3): New expand.
2972 (subdi3_media): New insn.
2973 (subdi3_compact): Renamed from subdi3.
2974 (mulsidi3): New expand.
2975 (mulsidi3_media): New insn.
2976 (mulsidi3_compact): Renamed from mulsidi3.
2977 (umulsidi3): New expand.
2978 (umulsidi3_media): New insn.
2979 (umulsidi3_compact): Renamed from umulsidi3.
2980 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2981 (ashlsi3, ashrsi3, lshrsi3): Use them.
2982 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2983 (ashldi3, ashrdi3, lshrdi3): Use them.
2984 (zero_extendsidi2): New expand.
2985 (extendsidi2): New insn.
2986 (movsi_media): New insn. Split to movdi to load constants.
2987 (movsi): Enable for shmedia.
2988 (movdi_media): New insn. Use shori_media to load wide constants.
2989 (short_media): New insn.
2990 (movdi): Enable for shmedia.
2991 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2992 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2993 (SUBTARGET_CPP_SPEC): Added `!m5'.
2994 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2995 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2996 to all other SH variants.
2997 (TARGET_DEFAULT): Set to SH1_BIT.
2998 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2999 (BITS_PER_WORD): Raise to 64 on shmedia.
3000 (MAX_BITS_PER_WORD): Change to 64.
3001 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
3002 (INT_TYPE_SIZE): Keep as 32.
3003 (UNITS_PER_WORD): Raise to 8 on shmedia.
3004 (MIN_UNITS_PER_WORD): Keep as 4.
3005 (POINTER_SIZE): Raise to 64 on shmedia.
3006 (CONST_OK_FOR_J): New macro.
3007 (CONST_OK_FOR_LETTER_P): Use it.
3008 (processor_type): Add PROCESSOR_SH5.
3009 * config/sh/sh.md: Conditionalize all expands, insns and
3010 splits to TARGET_SH1.
3012 (addsi3_compact): Renamed from...
3013 (addsi3): Now an expand.
3014 (addsi3_media, subsi3_media): New insns.
3015 (subsi3): Don't negate constants with SHmedia.
3017 * hooks.c: New file.
3018 * hooks.h: New file.
3019 * Makefile.in (HOOKS_H): New.
3020 (TARGET_DEF_H): Added $(HOOKS_H).
3021 (OBJS): Added hooks.o.
3022 (cfgcleanup.o, bb-reorder.o): Added target.h.
3023 (hooks.o): Added dependencies.
3024 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
3025 (TARGET_INITIALIZER): this.
3026 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
3027 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
3028 * bb-reorder.c: Include target.h.
3029 (reorder_basic_blocks): Skip if cannot modify jumps.
3030 * cfgcleanup.c: Include target.h.
3031 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
3033 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3035 * config/mips/mips.md (casesi_internal, casesi_internal_di):
3036 Protect jump delay slot instructions with .set noreorder and
3039 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3041 * config/mips/mips.md (casesi_internal_di): Calculate
3042 the index into the target offset table correctly.
3044 2002-02-08 Richard Henderson <rth@redhat.com>
3046 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
3047 * final.c (output_addr_const): Accept and discard SUBREG.
3048 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
3049 mark them unknown instead.
3050 (simplify_subtraction): Handle RTX_UNKNOWN.
3051 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
3053 2002-02-08 David Edelsohn <edelsohn@gnu.org>
3055 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
3057 2002-02-08 Richard Henderson <rth@redhat.com>
3059 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
3061 2002-02-08 Andreas Jaeger <aj@suse.de>
3063 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
3064 * config/i386/t-linux64: New file.
3066 2002-02-08 Jakub Jelinek <jakub@redhat.com>
3068 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
3069 * c-parse.in (compstmt): Clear last_expr_type.
3071 2002-02-07 Richard Henderson <rth@redhat.com>
3073 * loop.c (strength_reduce): Sink final_value when not
3076 2002-02-07 David O'Brien <obrien@FreeBSD.org>
3078 * config/sparc/freebsd.h: Fix mismatched spec {.
3080 2002-02-07 Richard Henderson <rth@redhat.com>
3082 * cfgrtl.c: Include recog.h and insn-config.h.
3083 (keep_with_call_p): Fix general_operand invocation.
3084 * Makefile.in (cfgrtl.o): Update dependencies.
3086 2002-02-07 Kazu Hirata <kazu@hxi.com>
3088 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
3089 comment. Accept HImode only if TARGET_H8300.
3091 2002-02-07 Eric Christopher <echristo@redhat.com>
3093 * config/mips/crtn.asm: Cleanup #ifdefs.
3095 2002-02-07 Eric Christopher <echristo@redhat.com>
3097 * config/mips/crti.asm: Add changes for mips16. mips16 uses
3098 register 7 as RA instead of $31.
3099 * config/mips/crtn.asm: Ditto.
3100 * config/mips/mips.c (mips_move_2words): Add case for
3101 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
3102 (compute_frame_size): Fix typo.
3103 (save_restore_insns): Ditto. Make documentation about using
3104 register $7 as return register more precise.
3105 (mips_expand_epilogue): Fix comment. Add code to work around not
3106 being able to add to the stack pointer directly.
3107 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
3108 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
3111 2002-02-07 Tom Rix <trix@redhat.com>
3113 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
3114 immediates in ldu and stdu DS opcode field.
3115 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
3116 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
3117 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
3119 2002-02-07 Jeff Sturm <jsturm@one-point.com>
3121 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
3122 offset for stack bias.
3124 2002-02-07 H.J. Lu <hjl@gnu.org>
3126 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
3128 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
3130 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
3132 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
3134 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
3135 * i386.c (x86_order_regs_for_local_alloc): New global function.
3136 * i386.h (REG_ALLOC_ORDER): CLeanup.
3137 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
3139 2002-02-07 Richard Henderson <rth@redhat.com>
3141 PR optimization/2463
3142 * alias.c (find_base_value): Recall base values for fixed hard regs.
3143 * loop.c (loop_regs_update): Don't use single_set on non-insns.
3145 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
3147 * config/mips/mips.md (define_delay) [mips16]: Adjust required
3150 2002-02-06 Richard Henderson <rth@redhat.com>
3153 * stmt.c (resolve_operand_name_1): Take more care with mixed
3154 named and unnamed operands.
3156 2002-02-06 Janis Johnson <janis187@us.ibm.com>
3157 Jan Hubicka <jh@suse.cz>
3159 * loop.c (remove_constant_addition): Avoid clobbering a shared
3162 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3164 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
3165 * config/s390/t-linux64: New file.
3166 * config/s390/libgcc-glibc.ver: New file.
3168 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
3170 * config/s390/linux64.h: Delete file.
3171 * config/s390/s390x.h: New file.
3172 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
3173 as target header file.
3174 * config/s390/linux.h (TARGET_VERSION): Define depending on
3175 DEFAULT_TARGET_64BIT.
3176 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
3177 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
3178 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
3179 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
3180 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
3181 (EXTRA_SPEC): New define.
3182 * config/s390/s390.h (TARGET_VERSION): Define depending on
3183 DEFAULT_TARGET_64BIT.
3184 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
3186 2002-02-06 Jason Merrill <jason@redhat.com>
3188 * c-decl.c (finish_function): Warn about a non-void function with
3189 no return statement and no abnormal exit.
3190 (current_function_returns_abnormally): New variable.
3191 (start_function): Clear it.
3192 (struct c_language_function): Add returns_abnormally.
3193 (push_c_function_context): Save it.
3194 (pop_c_function_context): Restore it.
3195 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
3196 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
3197 an explicit return type.
3198 * c-tree.h: Declare current_function_returns_abnormally.
3199 (C_FUNCTION_IMPLICIT_INT): New macro.
3200 * c-typeck.c (build_function_call): Set it.
3201 (c_expand_return): Set current_function_returns_value even if the
3204 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3207 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
3208 unsafe for reevaluation.
3210 2002-02-06 Jakub Jelinek <jakub@redhat.com>
3213 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
3214 EXPR_STMT, but COMPOUND_STMT, recurse into it.
3216 2002-02-06 Richard Henderson <rth@redhat.com>
3218 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
3219 be a general_operand. Dest for function value must be a pseudo.
3221 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3223 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
3224 as SYMBOL_REFs from the constant pool.
3226 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
3228 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
3229 passed by invisible reference.
3231 2002-02-05 Richard Henderson <rth@redhat.com>
3233 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
3235 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
3237 Implement using "base addresses" in insn operands as default.
3238 * config/mmix/mmix.c (mmix_conditional_register_usage): if
3239 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
3240 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
3241 used to read the rtx value.
3242 (mmix_target_asm_function_epilogue): Fix spacing.
3243 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
3244 (mmix_legitimate_address): Ditto.
3245 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
3246 should be loaded with a GETA insn. Don't allocate needless extra
3247 char for nul termination and fix misleading comment.
3248 (mmix_print_operand_address): Handle constants if
3249 TARGET_BASE_ADDRESSES.
3250 (mmix_output_register_setting): Use base addressing if
3251 TARGET_BASE_ADDRESSES and the number of insns is 3.
3252 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
3253 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
3254 to use R as constraint, add LDA to match s.
3255 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
3256 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
3257 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
3258 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
3259 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
3260 order with other fixed registers.
3261 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
3262 other parameter/call-clobbered registers.
3263 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
3264 -mbase-addresses, -mno-base-addresses.
3265 (MMIX Options): Ditto.
3267 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3269 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
3271 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
3273 * config/rs6000/altivec.h: Change elem to _S_elem.
3275 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
3277 * config/netbsd.h (WCHAR_TYPE): Define.
3278 (WCHAR_TYPE_SIZE): Ditto.
3280 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
3281 (WCHAR_UNSIGNED): Ditto.
3282 (WCHAR_TYPE_SIZE): Ditto.
3284 * config/arm/netbsd.h: Likewise.
3285 * config/i386/netbsd-elf.h: Likewise.
3286 * config/i386/netbsd.h: Likewise.
3287 * config/m68k/netbsd-elf.h: Likewise.
3288 * config/m68k/netbsd.h: Likewise.
3289 * config/ns32k/netbsd.h: Likewise.
3290 * config/sparc/netbsd.h: Likewise.
3291 * config/vax/netbsd.: Likewise.
3293 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
3295 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
3296 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
3297 (TARGET_INITIALIZER): this.
3298 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
3299 (BITFIELD_NBYTES_LIMITED): Markup fix.
3300 * tree.h (default_ms_bitfield_layout_p): Declare.
3301 (record_layout_info): Added prev_field.
3302 * tree.c (default_ms_bitfield_layout_p): New fn.
3303 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
3304 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
3305 * stor-layout.c: Include target.h.
3306 (start_record_layout): Initialize prev_field.
3307 (place_field): Handle MS bit-field layout, and disregard
3308 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
3309 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
3310 * Makefile.in (stor-layout.o): Adjust dependencies.
3312 2002-02-05 Jason Merrill <jason@redhat.com>
3314 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
3316 2002-02-05 Andreas Jaeger <aj@suse.de>
3318 * crtstuff.c: Fix comments.
3320 2002-02-05 Richard Henderson <rth@redhat.com>
3323 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
3324 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3327 * config/mips/mips.c (function_arg): Handle TImode.
3328 (function_arg_advance): Likewise.
3330 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3332 * config/rs6000/altivec.h (vec_step_help): Rename to
3335 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3337 * config/rs6000/altivec.h: Fix typos.
3339 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
3341 * config/arm/netbsd.h: Correct a comment.
3343 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3345 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
3346 building void typed builtins.
3348 * config/rs6000/altivec.h (vec_ld*): Fix typos.
3349 (vec_step): Implement for C++.
3351 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3353 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
3355 2002-02-04 Richard Henderson <rth@redhat.com>
3357 * combine.c (nonzero_bits): Re-introduce special case for
3358 sp/fp/ap wrt REGNO_POINTER_ALIGN.
3360 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
3362 * doc/extend.texi: Warn about unsupported usage of altivec
3365 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
3366 (altivec_predicate_*): New.
3368 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
3369 Add C++ version of vec_*() functions.
3371 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
3372 (bdesc_2arg): Remove altivec predicates.
3373 (altivec_expand_builtin): Handle predicates.
3374 (altivec_init_builtins): Handle predicates.
3375 (altivec_expand_predicate_builtin): New.
3377 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3379 * pa.c (DO_FRAME_NOTES): Move forward.
3380 (store_reg): Revise handling of frame notes.
3381 (load_reg): Likewise.
3382 (set_reg_plus_d): Likewise.
3383 (hppa_expand_prologue): Likewise.
3384 (hppa_expand_epilogue): Likewise.
3386 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3388 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
3390 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3392 PR c/4475, c++/3780:
3393 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
3394 * c-common.h (SWITCH_TYPE): Define.
3395 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
3396 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
3397 Rename spareness variable to sparseness.
3398 (expand_end_case_type): Renamed from expand_end_case, use orig_type
3399 if non-NULL instead of TREE_TYPE (orig_index).
3400 * tree.h (expand_end_case_type): Renamed from expand_end_case.
3401 (expand_end_case): Define using expand_end_case_type.
3402 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
3403 to expand_end_case_type.
3404 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
3406 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3408 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
3409 (BIGGEST_ALIGNMENT): Change to 128.
3411 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3413 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
3415 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3417 * pa.md (call_internal_reg_64bit): Remove unused variable.
3419 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
3421 * config/arm/arm.h (machine_function): Add uses_anonymous_args
3423 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3424 * config/arm/arm.c (current_function_anonymous_args): Delete,
3425 replace uses with cfun->machine->uses_anonymous_args.
3426 (arm_reorg): Do not reset uses_anonymous_args.
3428 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
3429 any geenral register.
3431 2001-02-04 Bernd Schmidt <bernds@redhat.com>
3433 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
3436 2002-02-04 Richard Henderson <rth@redhat.com>
3438 * combine.c (force_to_mode): Remove STACK_BIAS code.
3439 (nonzero_bits): Likewise. Replace sp/fp special case with
3440 REGNO_POINTER_ALIGN.
3442 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
3443 (HARD_FRAME_POINTER_REGNUM): New.
3444 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
3445 (FIXED_REGS, CALL_USED_REGS): Update.
3446 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
3447 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
3448 (HARD_REGNO_NREGS): Update for SFP.
3449 (STACK_POINTER_OFFSET): Include bias here ...
3450 (FIRST_PARM_OFFSET): ... not here.
3451 (STACK_BIAS): Remove.
3452 (INIT_EXPANDERS): New.
3453 (STARTING_FRAME_OFFSET): Do not include bias.
3454 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
3455 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
3456 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
3457 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
3458 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
3459 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
3460 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
3461 (MUST_SAVE_REGISTER): Likewise.
3462 (sparc_flat_function_prologue): Likewise.
3463 (sparc_flat_function_epilogue): Likewise.
3464 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
3465 (sparc_init_modes): SFP is GENERAL_REGS.
3466 (sparc_builtin_saveregs): SFP does not have bias applied.
3468 2002-02-04 Richard Henderson <rth@redhat.com>
3470 * config/alpha/alpha.c (current_function_is_thunk): Don't check
3471 current_function_is_thunk.
3472 (alpha_sa_mask): Distinguish between current_function_is_thunk
3473 called from ASM_OUTPUT_MI_THUNK and not.
3474 (alpha_does_function_need_gp): Thunks always need gp.
3475 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
3476 (alpha_output_mi_thunk_osf): New.
3477 * config/alpha/alpha-protos.h: Update.
3478 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
3480 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
3482 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
3483 function types, not when they're taken away.
3485 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
3487 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
3488 CODE_LABEL and jump table when replacing a table jump with a
3491 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3493 * config/s390/s390-protos.h (legitimize_la_operand,
3494 s390_secondary_input_reload_class, s390_plus_operand,
3495 s390_expand_plus_operand): Add prototypes.
3497 config/s390/s390.c (s390_secondary_input_reload_class,
3498 s390_plus_operand, s390_expand_plus_operand): New functions.
3500 (struct s390_address): New member 'pointer'.
3501 (s390_decompose_address): Compute it.
3502 (legitimate_la_operand_p): Use it.
3503 (legitimize_la_operand): New function.
3504 (movti, movdi, movdf splitters): Call it.
3506 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
3507 (PREDICATE_CODES): Add s390_plus_operand.
3509 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
3510 (la_ccclobber): Allow GENERAL_REGS as output operand.
3512 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
3513 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
3514 (*la_64, *la_31, reload_indi, reload_insi): ... these.
3516 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3518 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
3519 register names for regular asm () construct.
3521 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3523 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
3526 2002-02-04 Jakub Jelinek <jakub@redhat.com>
3528 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
3531 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
3533 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
3534 constant pool to be identical by string address and index.
3536 2002-02-04 Anthony Green <green@redhat.com>
3538 * output.h (SECTION_OVERRIDE): Define.
3539 * varasm.c (named_section): Obey SECTION_OVERRIDE.
3541 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3543 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
3544 by existing arm*-*-netbsd* (a.out) target.
3545 (ns32k-*-netbsdelf*): Likewise.
3546 (sparc-*-netbsdelf*): Likewise.
3547 (vax-*-netbsdelf*): Likewise.
3549 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3551 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
3552 headers and libobjc headers.
3554 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
3556 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
3557 (_mingw.h): Remove duplicate include.
3559 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3561 * config.gcc: Set cpu_type to m68k for 68010, as well.
3562 (m68010-*-netbsdelf*): New...
3563 (m68k*-*-netbsdelf*): ...targets.
3564 * config/m68k/netbsd-elf.h: New file.
3566 2002-02-02 Kazu Hirata <kazu@hxi.com>
3568 * config/h8300/h8300.c (hand_list): Move inside function_arg.
3570 2002-02-02 Kazu Hirata <kazu@hxi.com>
3572 * config/h8300/h8300.c (h8_push_ops): Move inside
3574 (h8_pop_ops): Likewise.
3575 (h8_move_ops): Likewise.
3577 2002-02-02 Kazu Hirata <kazu@hxi.com>
3579 * config/h8300/h8300.c (os_task): Make it static.
3580 (monitor): Likewise.
3581 (pragma_saveall): Likewise.
3583 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
3585 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
3586 constant is a valid sign-extension for Pmode.
3588 2002-02-02 Kazu Hirata <kazu@hxi.com>
3590 * config/h8300/h8300.c: Fix formatting.
3592 2002-02-02 Kazu Hirata <kazu@hxi.com>
3594 * config/h8300/h8300.md: Fix formatting.
3596 2002-02-02 Kazu Hirata <kazu@hxi.com>
3598 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
3599 predicates of operands[1]. Split the patterns for each
3602 2002-02-02 Kazu Hirata <kazu@hxi.com>
3604 * config/h8300/h8300.md (xor patterns): Tighten the predicates
3605 of operands[1] to register_operand.
3607 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3609 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
3610 * cpphash.c (_cpp_init_hashtable): Similarly.
3611 * cppinit.c (cpp_create_reader): Default the signed_char flag.
3612 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
3613 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
3614 (cpp_handle_option): Handle the new options.
3615 * cpplex.c (cpp_interpret_charconst): Use new flag.
3616 * cpplib.h (struct cpp_options): New member signed_char.
3617 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
3618 (cpp_options): Handle -fsigned-char and -funsigned-char.
3619 (static_specs): Remove signed_char_spec.
3620 (do_spec1): Don't handle %c.
3621 * system.h: Poison SIGNED_CHAR_SPEC.
3622 * tradcif.y (yylex): Use flag_signed_char.
3623 * tradcpp.h (flag_signed_char): New.
3624 * tradcpp.c (flag_signed_char): New.
3625 (main): Handle new command-line options.
3626 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
3628 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
3629 * avr/avr.h: Remove old comments.
3630 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
3631 (CC1_SPEC): Pass -fsigned-char if -mic*.
3632 (SIGNED_CHAR_SPEC): Remove.
3634 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
3636 2002-02-01 Eric Christopher <echristo@redhat.com>
3638 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
3639 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
3640 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
3641 (ASM_OUTPUT_REG_POP): Ditto.
3643 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3645 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
3648 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3650 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
3652 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3655 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
3658 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3660 * cfganal.c: Include tm_p.h.
3661 (keep_with_call_p): Fix the test that determines if a register holds
3662 the return value of a call.
3664 2002-02-01 DJ Delorie <dj@redhat.com>
3666 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
3667 we are given conflicting registers, switch to the other one we
3668 had allocated for us.
3669 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
3670 as TImode so we know when the "other" register is available.
3672 2002-02-01 David O'Brien <obrien@FreeBSD.org>
3674 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
3677 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3679 * cfganal.c (keep_with_call_p): New function.
3680 (flow_call_edges_add): Prevent splitting a block between a call and
3681 a single-set instruction that should be kept in the same block.
3683 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
3685 * doc/install.texi (avr): Update outdated URL.
3687 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
3689 * config/stormy16/stormy16.md (pushqi): New.
3693 (movhi): Remove stack operands.
3695 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
3696 nonimmediate_nonstack_operand.
3697 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
3699 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
3702 2002-01-31 Jason Merrill <jason@redhat.com>
3704 * Makefile.in (c-parse.c): Handle .output file.
3705 * objc/Make-lang.in (objc-parse.c): Likewise.
3707 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
3709 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
3710 the -me[lb] option is given. Don't output the default flag
3713 2002-01-31 Zack Weinberg <zack@codesourcery.com>
3715 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
3716 the primary source file; this has not been done yet.
3717 * c-decl.c (c_expand_body): Reset input_filename from
3718 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
3720 2002-01-31 Kazu Hirata <kazu@hxi.com>
3722 * rtlanal.c (subreg_regno_offset): Do not use
3723 SUBREG_REGNO_OFFSET.
3724 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
3725 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
3727 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3729 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
3730 version rather than GNATS version in --version output.
3732 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
3734 * ifcvt.c (noce_process_if_block): Make a copy of the destination
3735 when copying back from a temporary.
3737 2002-01-30 Richard Henderson <rth@redhat.com>
3739 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
3740 and new_dest are the same.
3742 2002-01-30 Richard Henderson <rth@redhat.com>
3745 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
3746 * rtl.c (note_insn_name): Update.
3747 * emit-rtl.c (remove_unnecessary_notes): Kill it.
3748 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
3749 to perform loop rotation.
3750 (expand_exit_loop_top_cond): New.
3751 * tree.h (expand_exit_loop_top_cond): Declare it.
3752 * c-semantics.c (genrtl_while_stmt): Use it.
3753 (genrtl_for_stmt): Likewise.
3755 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
3757 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
3758 arguments to 64-bit boundaries on 64-bit ABIs.
3760 2002-01-30 Steve Ellcey <sje@cup.hp.com>
3762 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
3764 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3766 * c-decl.c (grokdeclarator): Handle type being a typedef for an
3769 2002-01-30 David O'Brien <obrien@FreeBSD.org>
3771 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3772 * config/sparc/sparc_bi.h: Remove file.
3773 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3775 2002-01-30 Richard Henderson <rth@redhat.com>
3777 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3779 2002-01-30 Zack Weinberg <zack@codesourcery.com>
3781 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3783 2002-01-30 Jason Merrill <jason@redhat.com>
3785 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3786 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3787 (reg_save): Use DW_CFA_offset_extended_sf instead.
3789 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3791 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3793 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3796 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
3798 * rs6000.md ("*call_value_local32"): Remove constraints.
3799 ("*call_value_local64"): Same.
3800 ("*call_value_indirect_nonlocal_aix32"): Same.
3801 ("*call_value_nonlocal_aix32"): Same.
3802 ("*call_value_indirect_nonlocal_aix64"): Same.
3803 ("*call_value_nonlocal_aix64"): Same.
3804 ("*call_value_nonlocal_sysv"): Same.
3806 2002-01-29 Richard Henderson <rth@redhat.com>
3808 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3810 2002-01-29 Richard Henderson <rth@redhat.com>
3812 * expr.c (force_operand): Ignore flag_pic for detecting pic
3814 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3815 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3816 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3817 instead of open-coded loop.
3818 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3819 be fixed when in use.
3821 2002-01-29 Richard Henderson <rth@redhat.com>
3823 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3824 * sched-rgn.c (propagate_deps): Update them.
3825 * sched-deps.c (sched_analyze_insn): Update them. Flush the
3826 clobbers list when either gets too long.
3828 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3830 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3831 and INDEX_REGS the same as GENERAL_REGS.
3832 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3834 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3836 * tree.c (build_nonstandard_integer_type): Correct prototype.
3838 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
3840 * config/s390/s390.md (movstrsico, movstrdix_64,
3841 movstrsix_31): Remove, replace by ...
3842 (movstrdi_short, movstrsi_short, movstrdi_long,
3843 movstrsi_long): ... these. New.
3844 (movstrdi, movstrsi): Adapt.
3846 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3847 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3848 Remove unnecessary CC clobber.
3849 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3850 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3852 (divmoddi4): Don't partially initialize TImode register.
3854 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
3856 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3858 2002-01-29 Richard Henderson <rth@redhat.com>
3860 * flow.c (print_rtl_and_abort): Remove.
3861 (print_rtl_and_abort_fcn): Remove.
3862 (verify_local_live_at_start): Use dump_bb instead.
3863 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3864 (verify_wide_reg_1): Return 2 on mode test failure.
3866 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3868 PR c/3325, c/3326, c/2511, c/3347
3869 * c-decl.c (enum_decl_context): Remove BITFIELD.
3870 (grokdeclarator): Take bitfield width as an input.
3871 Ensure bitfields are given the correct type. Perform
3872 bitfield width validation with build_bitfield_integer_type
3873 rather than waiting for finish_struct.
3874 (grok_typename, grok_typename_in_parm_context, start_decl,
3875 push_parmdecl, grokfield, start_function): Update calls to
3877 (build_bitfield_integer_type): New function.
3878 (finish_struct): Move bitfield validation to grokdeclarator
3879 and build_bitfield_integer_type.
3880 * tree.c (build_nonstandard_integer_type): New function.
3881 * tree.h (build_nonstandard_integer_type): New prototype.
3883 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3885 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3888 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3889 don't ignore unrecognized -W* options.
3890 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3891 * cpplib.h (cpp_handle_option): Adjust prototype.
3892 * c-decl.c (c_decode_options): Pass 0 as last argument to
3896 * gcc.c (cpp_unique_options): Split from cpp_options.
3897 (cpp_options): Source cpp_unique_options.
3898 (default_compilers): Use cpp_unique_options instead of cpp_options
3899 when used together with cc1_options.
3900 (static_specs): Add cpp_unique_options.
3901 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3902 when used together with cc1_options.
3904 2002-01-29 Kazu Hirata <kazu@hxi.com>
3906 * config/h8300/h8300-protos.h: Update the prototype of
3908 * config/h8300/h8300.c (output_a_shift): Remove an unused
3909 argument 'insn'. Remove redundant code.
3910 * config/h8300/h8300.md: Adust to the new prototype of
3913 2002-01-29 Kazu Hirata <kazu@hxi.com>
3915 * config/h8300/h8300-protos.h: Update the prototypes of
3916 emit_a_rotate and expand_a_rotate.
3917 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3918 first argument to 'enum rtx_code'.
3919 (expand_a_rotate): Likewise.
3921 2002-01-28 Kazu Hirata <kazu@hxi.com>
3923 * config/h8300/h8300-protos.h: Update the prototype of
3925 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3927 * config/h8300/h8300.md: Adjust to the new prototype.
3929 2002-01-28 Kazu Hirata <kazu@hxi.com>
3931 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3934 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3936 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3937 is a fixed register before returning pic_offset_table_rtx.
3938 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3939 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3941 2002-01-28 Jason Merrill <jason@redhat.com>
3943 * dwarf2.h: Sync with src version.
3945 2002-01-28 Paul Koning <pkoning@equallogic.com>
3947 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3949 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3950 * doc/extend.texi (__builtin_prefetch): Update documentation:
3951 first argument is now const void ptr.
3953 2002-01-28 Kazu Hirata <kazu@hxi.com>
3955 * config/h8300/h8300-protos.h: Remove an unused prototype.
3957 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3959 * toplev.c (lang_independent_init): Round up identifier size.
3961 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3963 * config.gcc: Revert previous change.
3965 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3967 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3969 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3971 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3972 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3973 other non-elf netbsd config frags.
3974 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3975 collect2 will does that.
3976 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3977 shared-lib frobbing will work.
3979 2002-01-28 Kazu Hirata <kazu@hxi.com>
3981 * config/h8300/h8300.h: Fix formatting.
3982 * config/h8300/h8300.md: Likewise.
3984 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3986 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3987 the old, removed AAA_standards fix.
3988 * fixinc/fixincl.x: Rebuilt.
3990 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3992 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3993 atexit call in crtbegin, hooked in after call to frame_dummy;
3994 register EH before registering __fini__start.
3996 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3998 * config/rs6000/altivec.h: Remove spurious semicolons.
4000 2002-01-27 Kazu Hirata <kazu@hxi.com>
4002 * config/h8300/h8300.md: Replace dead bit extraction patterns
4003 with ones that work.
4005 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4007 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
4008 if not STRICT_ALIGNMENT.
4009 * rtl.h (MEM_ALIGN): Likewise.
4011 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
4013 * doc/invoke.texi (-fdump-translation-unit): Revert this
4014 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
4016 2002-01-27 Kazu Hirata <kazu@hxi.com>
4018 * config/h8300/h8300.md (define_constants): New.
4019 (anonymous patterns) Use defined constants appropriately.
4021 2002-01-27 Kazu Hirata <kazu@hxi.com>
4023 * config/h8300/h8300.c (function_arg): Remove redundant code.
4025 2002-01-26 Richard Henderson <rth@redhat.com>
4027 * sched-deps.c (reg_pending_uses_head): New.
4028 (reg_pending_barrier): Rename from reg_pending_sets_all.
4029 (find_insn_list): Don't mark inline.
4030 (find_insn_mem_list): Remove.
4031 (add_dependence_list, add_dependence_list_and_free): New.
4032 (flush_pending_lists): Replace only_write param with separate
4033 for_read and for_write parameters. Update all callers. Use
4034 add_dependence_list_and_free.
4035 (sched_analyze_1): Do not add reg dependencies here; just set
4036 the pending bits. Use add_dependence_list.
4037 (sched_analyze_2): Likewise.
4038 (sched_analyze_insn): Replace schedule_barrier_found with
4039 reg_pending_barrier. Add all dependencies for pending reg
4040 uses, sets, and clobbers.
4041 (sched_analyze): Don't add reg dependencies for calls, just
4042 set pending bits. Use regs_invalidated_by_call. Treat
4043 sched_before_next_call as a normal list, not a fake insn.
4044 (init_deps): No funny init for sched_before_next_call.
4045 (free_deps): Free pending mems lists. Don't zero reg_last.
4046 (init_deps_global): Init reg_pending_uses.
4047 (finish_deps_global): Free it.
4048 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
4049 (find_insn_mem_list): Remove.
4050 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
4051 (propagate_deps): Use them. Zero temp mem lists.
4053 2002-01-26 Richard Henderson <rth@redhat.com>
4055 * Makefile.in (CRTSTUFF_CFLAGS): New.
4056 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
4057 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
4058 crtstuff.c instead of alpha assembly version.
4059 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
4060 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
4061 not FORCE_{INIT,FINI}_SECTION_ALIGN.
4062 (__do_global_dtors_aux): Mark used.
4063 (frame_dummy, __do_global_ctors_aux): Mark used.
4064 (fini_dummy, init_dummy): Remove.
4066 * config/alpha/crtbegin.asm: Remove file.
4067 * config/alpha/crtend.asm: Remove file.
4068 * config/alpha/t-crtbe: Remove file.
4069 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
4070 (LINK_EH_SPEC): New.
4072 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
4073 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
4074 calling constructors.
4075 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
4077 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
4078 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
4079 CRT_END_INIT_DUMMY hack.
4080 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
4081 FORCE_{INIT,FINI}_SECTION_ALIGN.
4083 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
4084 FORCE_{INIT,FINI}_SECTION_ALIGN.
4086 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
4087 invocation sequence.
4088 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
4090 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
4091 (FORCE_CODE_SECTION_ALIGN): New.
4093 2002-01-26 Richard Henderson <rth@redhat.com>
4095 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
4097 2002-01-26 Richard Henderson <rth@redhat.com>
4099 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
4100 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
4102 2002-01-26 Kazu Hirata <kazu@hxi.com>
4104 * config/h8300/h8300.md: Remove bit extraction patterns that
4105 cannot be triggered.
4106 Restrict each bit extraction pattern to a variant on which the
4109 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
4111 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
4113 2002-01-26 Kazu Hirata <kazu@hxi.com>
4115 * config/h8300/h8300.md: Remove bit test patterns that cannot
4117 Restrict each bit test pattern to a variant on which the
4120 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4122 * builtins.c (expand_builtin_strncat): Remove redundant check for
4125 2002-01-25 David O'Brien <obrien@FreeBSD.org>
4127 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
4129 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
4132 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
4134 * dbxout.c (dbxout_init): Use assemble_name rather than just
4135 stripping off the first character.
4136 (dbxout_source_file): Likewise.
4138 2002-01-25 DJ Delorie <dj@redhat.com>
4140 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
4141 using rtx_equal_p, not by comparing pointers.
4143 2002-01-25 Steve Ellcey <sje@cup.hp.com>
4145 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
4146 for PIC_OFFSET_TABLE_REGNUM.
4147 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
4149 2002-01-25 David O'Brien <obrien@FreeBSD.org>
4151 * config.gcc (x86_64-*-freebsd*): New target.
4152 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
4154 (i[34567]86-*-freebsd*): Don't include svr4.h.
4155 * config/i386/freebsd64.h: New file.
4157 2002-01-25 Douglas B Rupp <rupp@gnat.com>
4159 * config/alpha/x-vms (version): Make static.
4161 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
4162 in previous checkin.
4164 * Makefile.in (install-headers-cp): New target.
4165 * config.gcc (alpha-dec-*vms*): Install headers with
4168 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
4170 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
4173 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4175 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
4176 of compare_tree_int.
4177 (expand_builtin_strncat): Likewise.
4178 * c-decl.c (finish_struct): Use tree_low_cst.
4179 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
4180 * tree.c (compare_tree_int): Likewise.
4182 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
4184 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
4185 adjustments even if they are implemented by more than two insns.
4187 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
4189 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
4190 * df.h (struct ref): Kill B.
4191 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
4193 * basic-block.h (PROP_EQUAL_NOTES): New flag.
4194 * flow.c (propagate_one_insn): Use it.
4195 (mark_used_regs): Handle NIL.
4197 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
4199 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
4202 2002-01-25 David Edelsohn <edelsohn@gnu.org>
4204 * rs6000.md (prefetch): Make address V4SI mode so that the address
4205 is restricted to legitimate form for instruction.
4207 2002-01-25 Bob Wilson <bob.wilson@acm.org>
4209 * doc/install.texi (xtensa-*-elf): New target.
4210 (xtensa-*-linux*): New target.
4211 * doc/contrib.texi: Add myself.
4213 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
4215 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
4216 purpose register to hold an SImode (or smaller) value.
4218 2002-01-25 Jakub Jelinek <jakub@redhat.com>
4220 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
4222 * crtstuff.c: Likewise.
4224 2002-01-25 Kazu Hirata <kazu@hxi.com>
4226 * config/h8300/h8300.md (negation patterns): Tighten
4227 predicates to register_operand.
4229 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
4231 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
4234 * builtins.c (expand_builtin_prefetch): Same.
4236 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4238 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
4241 2002-01-24 Kazu Hirata <kazu@hxi.com>
4243 * config/h8300/h8300.c (print_operand): Remove support for
4244 operand character 'A'.
4245 * config/h8300/h8300.md (three anonymous patterns): Replace
4246 operand character 'A' with either 'T' or 'S'.
4248 2002-01-24 Kazu Hirata <kazu@hxi.com>
4250 * config/h8300/h8300.c (print_operand): Remove support for
4251 operand character 'U'.
4253 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
4255 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
4257 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
4259 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
4260 values to be assigned to the stack pointer.
4262 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4264 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
4265 to const_double needs to be done right for big-endian systems.
4267 2002-01-24 Jason Merrill <jason@redhat.com>
4270 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
4271 to can_throw_internal.
4273 2002-01-23 Richard Henderson <rth@redhat.com>
4275 * fold-const.c (fold): Change UINT_MAX test to check vs precision
4276 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
4278 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4280 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
4281 (symGOT2reg): Use them, then set as GOT value as unchanging.
4282 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
4283 as a temporary, if possible.
4284 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
4285 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
4287 2002-01-23 Kazu Hirata <kazu@hxi.com>
4289 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
4290 accept to accept 0x80 as operands[2].
4292 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4294 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
4296 2002-01-23 Richard Henderson <rth@redhat.com>
4298 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
4300 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
4302 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
4303 (parmlist_or_identifiers_1): Verify that only a parmlist follows
4306 2002-01-23 Richard Henderson <rth@redhat.com>
4308 * expr.c (move_by_pieces_1): Extend size before negation.
4310 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
4311 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
4312 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
4313 * config/m68k/t-m68kelf: Likewise.
4315 2002-01-23 Bob Wilson <bob.wilson@acm.org>
4317 * config/xtensa/elf.h: New file.
4318 * config/xtensa/lib1funcs.asm: New file.
4319 * config/xtensa/lib2funcs.S: New file.
4320 * config/xtensa/linux.h: New file.
4321 * config/xtensa/t-xtensa: New file.
4322 * config/xtensa/xtensa-config.h: New file.
4323 * config/xtensa/xtensa-protos.h: New file.
4324 * config/xtensa/xtensa.c: New file.
4325 * config/xtensa/xtensa.h: New file.
4326 * config/xtensa/xtensa.md: New file.
4327 * config.gcc (xtensa-*-elf*): New target.
4328 (xtensa-*-linux*): New target.
4329 * cse.c (canon_hash): Compare rtx pointers instead of register
4330 numbers. This is required for the Xtensa port.
4331 * integrate.c (copy_insn_list): Handle case where the static
4332 chain is in memory and the memory address has to be copied to
4334 * doc/invoke.texi (Option Summary): Add Xtensa options.
4335 (Xtensa Options): New node.
4336 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
4338 2002-01-23 Zack Weinberg <zack@codesourcery.com>
4340 * diagnostic.c (internal_error): Do ICE suppression only
4341 when ENABLE_CHECKING is not defined.
4343 * c-typeck.c (require_complete_type): Return error_mark_node
4344 if type is error_mark_node.
4346 2002-01-23 Janis Johnson <janis187@us.ibm.com>
4348 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
4349 -Os and issue a warning.
4351 2002-01-23 Zack Weinberg <zack@codesourcery.com>
4353 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
4354 current (lack of) need for host configuration by hand.
4356 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
4357 references. Documentation of some target macros moved from
4358 hostconfig.texi to tm.texi.
4360 2002-01-23 Will Cohen <wcohen@redhat.com>
4362 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
4365 2002-01-23 Kazu Hirata <kazu@hxi.com>
4367 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
4370 2002-01-23 Jason Merrill <jason@redhat.com>
4372 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
4374 * function.c (assign_parms): Don't put args of inline functions
4375 into registers when not optimizing.
4377 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
4379 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
4380 (prologue_use): New pattern.
4381 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
4382 preference to gen_rtx_USE.
4383 (thumb_expand_prologue): Use gen_prologue_use in preference to
4385 (thumb_expand_epilogue): Use gen_prologue_use in preference to
4388 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
4390 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
4392 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
4395 * doc/extend.texi: Correct documentation of __alignof__.
4397 2002-01-22 Zack Weinberg <zack@codesourcery.com>
4399 * params.h: Rename arguments of DEFPARAM so that it will be
4400 recognized as a translation keyword.
4402 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4404 * extend.texi: Document altivec functions.
4405 Fix N-bit adjectives in X86 builtin documentation.
4407 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4409 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
4410 auto_inc_dec values.
4412 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
4414 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
4416 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
4418 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
4420 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
4422 2002-01-22 Richard Henderson <rth@redhat.com>
4424 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
4425 copy_insn not copy_rtx.
4427 2002-01-23 Alan Modra <amodra@bigpond.net.au>
4429 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
4430 "nonzero" as that might add "1" bits. Ensure "constop" is
4431 properly sign extened.
4432 (force_to_mode): Tweak for sign extended constop.
4434 2002-01-22 Richard Henderson <rth@redhat.com>
4436 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
4437 for_each_rtx instead of assuming we're already looking at the MEM.
4438 (split_small_symbolic_mem_operand): Likewise.
4439 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4440 * config/alpha/alpha.md (small symbolic memory splitters): Update.
4442 2002-01-22 Richard Henderson <rth@redhat.com>
4444 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
4445 sequence number for the literal.
4446 (divmoddi_internal_er): Likewise.
4448 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
4451 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
4452 in LIBICONV variable.
4453 * configure: Regenerated.
4455 2002-01-22 Krister Walfridsson <cato@df.lth.se>
4457 * dependence.c (build_def_use): Remove array_idx.
4459 * dwarfout.c (last_filename): Remove.
4460 (output_compile_unit_die): Remove last_filename.
4462 2002-01-22 Roger Sayle <roger@eyesopen.com>
4463 Richard Henderson <rth@redhat.com>
4466 * fold-const.c (fold): Optimize unsigned comparisons against
4467 UINT_MAX (and similar unsigned constants).
4469 2002-01-22 Janis Johnson <janis187@us.ibm.com>
4471 * Makefile.in (loop.o): Depend on OPTABS_H.
4472 * loop.c (emit_prefetch_instructions): Check the prefetch operand
4473 against the predicate.
4476 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
4477 for the address operand.
4479 2002-01-22 Richard Henderson <rth@redhat.com>
4481 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
4483 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
4486 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
4489 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
4491 * config.gcc (x86_64-*-netbsd*): New target.
4492 * config/i386/netbsd64.h: New file.
4494 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4496 * regrename.c (kill_value): Fix typo.
4498 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
4500 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
4502 * config/rs6000/rs6000.h: Same.
4504 * function.c (instantiate_virtual_regs): Remove
4505 STARTING_FRAME_PHASE.
4506 (assign_stack_local_1): Same.
4507 Calculate frame phase.
4509 2002-01-22 Nick Clifton <nickc@redhat.com>
4511 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
4512 variable declaration to outer scope in order to simplify
4514 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
4515 arm_hard_regno_mode_ok.
4516 * config/arm/arm-protos.h: Add a prototype for
4517 arm_hard_regno_mode_ok.
4518 * config/arm/arm.c (soft_df_operand): Remove now redundant
4519 check for DImode values using IP_REGNUM.
4520 (nonimmediate_soft_df_operand): Remove now redundant check for
4521 DImode values using IP_REGNUM.
4522 (arm_hard_regno_mode_ok): New function. New check: make sure
4523 that DImode values are not stored in IP_REGNUM.
4525 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
4527 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
4529 2002-01-22 Jason Merrill <jason@redhat.com>
4531 * c-semantics.c (genrtl_compound_stmt): Only check nesting
4532 consistency if this COMPOUND_STMT is scoped.
4534 2002-01-22 Kazu Hirata <kazu@hxi.com>
4536 * predict.c: Fix formatting.
4537 * print-tree.c: Likewise.
4538 * protoize.c: Likewise.
4541 * sbitmap.h: Likewise.
4543 * sched-deps.c: Likewise.
4544 * sched-vis.c: Likewise.
4545 * sdbout.c: Likewise.
4546 * sibcall.c: Likewise.
4548 * ssa-ccp.c: Likewise.
4549 * ssa-dce.c: Likewise.
4551 * stor-layout.c: Likewise.
4552 * system.h: Likewise.
4554 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4556 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
4557 if fits in bounds of base type.
4559 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
4560 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
4561 (add_bound_info, default): If can't find a context, make a
4563 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
4565 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
4567 * c-typeck.c (parser_build_binary_op): If result from
4568 build_binary_op is ERROR_MARK just return error_mark_node without
4571 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4573 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
4574 Split a.out-specific bits into...
4575 * config/netbsd-aout.h: ...this.
4576 * config/netbsd-elf.h: New file.
4577 * config/alpha/netbsd-elf.h: Remove.
4578 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
4579 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
4580 (STARTFILE_SPEC): Remove redundant definition.
4581 (ENDFILE_SPEC): Likewise.
4582 (LINK_SPEC): Likewise.
4583 (CPP_SPEC): Likewise.
4584 (ASM_SPEC): Likewise.
4585 (LIB_SPEC): Likewise.
4586 (SWITCH_TAKES_ARG): Likewise.
4587 (TARGET_MEM_FUNCTIONS): Likewise.
4588 (CPP_PREDEFINES): Redefine.
4589 (ASM_FINAL_SPEC): Remove redefinition.
4590 (ASM_COMMENT_START): Redefine.
4591 (FUNCTION_PROFILER): Define.
4592 (TARGET_VERSION): Redefine.
4593 Comment and formatting cleanup.
4594 * config/i386/netbsd.h: Include <netbsd-aout.h>.
4595 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
4596 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
4597 big- or little-endian.
4598 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
4599 * config.gcc (*-*-netbsd*): Add definitions common to all
4601 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
4602 gnu_ld definitions. Add netbsd-elf.h to and remove
4603 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
4604 tmake_file, and don't lose previous tmake_file contents.
4605 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
4606 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
4607 gnu_ld definitions. Add netbsd-elf.h to tm_file.
4608 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
4609 (mipsel-*-netbsd*): Rename this to...
4610 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
4611 mips/little.h to tm_file for mips*el-*.
4612 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
4613 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
4614 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
4616 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4618 * pa-protos.h (reg_before_reload_operand): New function prototype.
4619 * pa.c (reg_before_reload_operand): New function implementation.
4620 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
4623 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4625 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
4627 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4629 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
4630 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
4631 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
4632 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
4633 (ENDFILE_SPEC): Undefine.
4634 (STARTFILE_SPEC): Redefine for PA.
4636 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4638 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
4640 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
4642 * config.gcc: Add entries to supported PowerPC --with-cpu
4645 2002-01-21 Jakub Jelinek <jakub@redhat.com>
4647 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
4648 true for 64-bit mode only SSE registers in 32-bit mode.
4650 2002-01-21 Kazu Hirata <kazu@hxi.com>
4652 * unwind-dw2.c: Fix formatting.
4653 * unwind-dw2-fde.c: Likewise.
4654 * unwind-dw2-fde.h: Likewise.
4655 * unwind-pe.h: Likewise.
4656 * varasm.c: Likewise.
4657 * varray.h: Likewise.
4659 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4661 Remove workaround for register stack overwrite bug in mmix.
4662 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
4663 support for TARGET_REG_STACK_FILL_BUG.
4664 * config/mmix/mmix.h: Remove member has_call_without_parameters.
4665 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
4667 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
4668 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
4669 -mno-reg-stack-fill-bug-workaround.
4670 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
4671 machine member has_call_without_parameters.
4672 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
4673 -mreg-stack-fill-bug-workaround and
4674 -mno-reg-stack-fill-bug-workaround.
4675 (MMIX Options): Ditto.
4677 2002-01-21 Kazu Hirata <kazu@hxi.com>
4679 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
4681 Remove redundant code.
4683 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
4685 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4686 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4687 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4688 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
4689 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
4690 out target macro definitions and non-target-specific comments
4691 mostly taken from old versions of the manual.
4693 2002-01-20 Kazu Hirata <kazu@hxi.com>
4695 * config/h8300/h8300.h: Fix comment formatting.
4696 * config/ia64/aix.h: Likewise.
4697 * config/ia64/ia64-protos.h: Likewise.
4698 * config/ia64/ia64.c: Likewise.
4699 * config/ia64/ia64.h: Likewise.
4700 * config/ia64/ia64intrin.h: Likewise.
4701 * config/ia64/linux.h: Likewise.
4702 * config/ia64/unwind-aix.c: Likewise.
4703 * config/ia64/unwind-ia64.c: Likewise.
4705 2002-01-20 Kazu Hirata <kazu@hxi.com>
4707 * config/h8300/h8300.c: Revise comments about shift code.
4709 2002-01-20 Kazu Hirata <kazu@hxi.com>
4711 * config/h8300/h8300.c (function_arg): Update a comment.
4713 2002-01-20 Kazu Hirata <kazu@hxi.com>
4715 * config/h8300/h8300.md: Update the comments at the beginning
4718 2002-01-20 Kazu Hirata <kazu@hxi.com>
4720 * config/i370/i370.c: Fix comment formatting.
4721 * config/i370/i370.h: Likewise.
4722 * config/i370/i370.md: Likewise.
4723 * config/i370/linux.h: Likewise.
4725 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4727 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
4729 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
4730 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
4733 2002-01-20 Graham Stott <grahams@redhat.com>
4735 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
4737 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
4739 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
4741 2002-01-19 Tom Rix <trix@redhat.com>
4743 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
4745 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
4747 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
4749 * function.c (assign_stack_local_1): Adjust x_frame_offset with
4750 STARTING_FRAME_PHASE.
4751 (STARTING_FRAME_PHASE): New.
4752 (instantiate_virtual_regs): Check saneness of
4753 STARTING_FRAME_PHASE.
4755 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
4757 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
4759 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4761 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
4763 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
4764 be used for bootstrapping GCC 3.0.
4766 2002-01-18 Kazu Hirata <kazu@hxi.com>
4768 * config/h8300/h8300.md: Fix an insn length.
4770 2002-01-18 Kazu Hirata <kazu@hxi.com>
4772 * bitmap.h: Fix comment formatting.
4773 * combine.c: Likewise.
4774 * cppfiles.c: Likewise.
4775 * c-pragma.h: Likewise.
4776 * c-typeck.c: Likewise.
4778 * dwarf2out.c: Likewise.
4779 * function.c: Likewise.
4781 * genattrtab.c: Likewise.
4782 * gthr-win32.h: Likewise.
4783 * haifa-sched.c: Likewise.
4784 * predict.c: Likewise.
4785 * rtlanal.c: Likewise.
4787 * unwind-dw2-fde.h: Likewise.
4788 * unwind-pe.h: Likewise.
4789 * vmsdbgout.c: Likewise.
4791 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4793 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4794 if type_required and passed decl.
4796 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
4798 * config.gcc (cpu_type): Include altivec.h in powerpc
4802 * config/rs6000/altivec.h: New.
4804 2002-01-17 David Edelsohn <edelsohn@gnu.org>
4806 * doc/install.texi (*-ibm-aix*): Update assembler and exception
4807 handling information.
4808 * doc/trouble.texi (Interoperation): Add libstdc++ information
4810 (Misunderstandings): Add template instantiation and static template
4811 member information for AIX.
4813 2002-01-17 Jason Merrill <jason@redhat.com>
4815 * dbxout.c (dbxout_type): Support const and volatile.
4817 * except.c (add_partial_entry): Remove backwards compatibility code.
4818 (end_protect_partials): Likewise.
4820 2002-01-17 Jakub Jelinek <jakub@redhat.com>
4822 * config/ia64/ia64.md (prologue_use): New.
4823 * config/ia64/ia64.c (ia64_expand_prologue): Use
4824 gen_prologue_use instead of gen_rtx_USE.
4825 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4826 as CODE_FOR_pred_rel_mutex.
4827 (ia64_sched_reorder2): Likewise.
4829 2002-01-16 Eric Christopher <echristo@redhat.com>
4831 * config/mips/r3900.h: Reformat.
4832 (SUBTARGET_CPP_SIZE_SPEC): Remove.
4833 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4834 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4835 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4836 * config/mips/t-elf: Remove mips3 multilib.
4838 2002-01-16 H.J. Lu <hjl@gnu.org>
4840 * config/mips/linux.h: Include "mips/abi64.h".
4842 2002-01-16 H.J. Lu <hjl@gnu.org>
4844 * config/mips/t-linux: New.
4846 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4848 * config/mips/linux.h: Don't include "gofast.h".
4849 (INIT_SUBTARGET_OPTABS): Removed.
4851 2002-01-16 Kazu Hirata <kazu@hxi.com>
4853 * config/h8300/h8300-protos.h: Replace emit_a_shift with
4855 * config/h8300/h8300.c: Likewise.
4856 * config/h8300/h8300.md: Likewise.
4858 2002-01-16 Kazu Hirata <kazu@hxi.com>
4860 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4861 spaces after an opcode name.
4862 (pushqi1_h8300hs): Likewise.
4863 (pushhi1_h8300hs): Likewise.
4865 2002-01-16 Kazu Hirata <kazu@hxi.com>
4867 * doc/extend.texi: Replace "option" with "attribute"
4870 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4872 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4873 (and:DI () (const_int -8)).
4874 (split_small_symbolic_mem_operand): Split
4875 (mem (and:DI () (const_int -8)).
4877 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4880 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4881 same way as TYPE_IMUL.
4882 (ultrasparc_sched_reorder): Likewise.
4883 * config/sparc/sparc.md (type): Add comment to update
4884 ultrasparc_sched_reorder when making changes.
4886 2002-01-16 Kazu Hirata <kazu@hxi.com>
4888 * doc/invoke.texi: Change the dump file name of block
4889 reordering pass from 28.bbro to 29.bbro.
4892 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4894 * i386.md (minsf splitter): Fix pasto.
4896 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4898 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4899 to frame pointer initialisation instruction.
4900 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4901 initialisation instruction.
4902 (soft_df_operand): Do not accept the IP register.
4903 (nonimmediate_soft_df_operand): Do not accept the IP register.
4905 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4908 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4909 MASK_V8 being both set.
4911 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4913 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4914 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4915 config/s390/s390.md (call, call_value): Add GOT register to
4916 CALL_INSN_FUNCTION_USAGE where needed.
4917 (call_exp, call_value_exp): New.
4919 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4921 * config/arm/arm.c: General formatting tidy up.
4923 2002-01-16 Graham Stott <grahams@redhat.com>
4925 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4926 cast and when casting an integer literal to "rtx" pointer.
4927 (expand_call): Likewise.
4928 * flow.c (try_pre_increment): Likewise.
4929 (find_use_as_address): Likewise.
4930 * integrate.c (expand_iline_function): Likewise.
4931 * regmove.c (try_auto_increment): Likewise.
4933 2002-01-16 Graham Stott <grahams@redhat.com>
4935 * sched-rgn.c (passed): Use sbitmap_free.
4938 (in_queue): Likewise.
4939 (in_stack): Likewise.
4941 2002-01-15 Eric Christopher <echristo@redhat.com>
4943 * flow.c (propagate_one_insn): Change to use fatal_insn.
4945 2002-01-15 Kazu Hirata <kazu@hxi.com>
4947 * expmed.c (extract_fixed_bit_field): Remove unused code.
4948 * system.h: Poison SLOW_ZERO_EXTEND.
4949 * doc/tm.texi: Remove.
4950 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4951 * config/arm/arm.h: Likewise.
4952 * config/avr/avr.h: Likewise.
4953 * config/clipper/clipper.h: Likewise.
4954 * config/convex/convex.h: Likewise.
4955 * config/d30v/d30v.h: Likewise.
4956 * config/dsp16xx/dsp16xx.h: Likewise.
4957 * config/elxsi/elxsi.h: Likewise.
4958 * config/fr30/fr30.h: Likewise.
4959 * config/h8300/h8300.h: Likewise.
4960 * config/i370/i370.h: Likewise.
4961 * config/i386/i386.h: Likewise.
4962 * config/m68k/m68k.h: Likewise.
4963 * config/mips/mips.h: Likewise.
4964 * config/ns32k/ns32k.h: Likewise.
4965 * config/pdp11/pdp11.h: Likewise.
4966 * config/pj/pj.h: Likewise.
4967 * config/s390/s390.h: Likewise.
4968 * config/sh/sh.h: Likewise.
4969 * config/stormy16/stormy16.h: Likewise.
4970 * config/v850/v850.h: Likewise.
4971 * config/vax/vax.h: Likewise.
4972 * config/we32k/we32k.h: Likewise.
4974 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4976 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4977 (altivec_lvsl): Change constraint to b.
4978 (altivec_lvsr): Same.
4979 (altivec_lvebx): Same.
4980 (altivec_lvehx): Same.
4981 (altivec_lvewx): Same.
4982 (altivec_lvxl): Same.
4983 (altivec_lvx): Same.
4984 (altivec_stvx): Add parallel.
4985 (altivec_stvxl): Same.
4986 (altivec_stvehx): Same.
4987 (altivec_stvebx): Same.
4988 (altivec_stvebx): Same.
4990 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4992 * config.gcc: Change altivec.h to altivec-defs.h.
4994 * config/rs6000/altivec.h: Delete.
4996 * config/rs6000/altivec-defs.h: Add.
4998 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5000 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
5003 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
5004 less than or equal to eight bytes.
5006 * vax.md (andsi3): Remove constraints and change SET destination
5007 operand type to nonimmediate_operand.
5008 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
5009 when it is a CONST_INT.
5011 2002-01-15 Jason Merrill <jason@redhat.com>
5013 * c-common.def (FILE_STMT): New code.
5014 * c-common.c (statement_code_p): It's a statement.
5015 * c-common.h (stmt_tree_s): Add x_last_filename.
5016 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
5017 (last_expr_filename): New macro.
5018 * c-semantics.c (begin_stmt_tree): Initialize it.
5019 (add_stmt): If the filename changed, also insert a
5021 (expand_stmt): Handle seeing one.
5023 2002-01-15 Eric Christopher <echristo@redhat.com>
5025 * flow.c (propagate_one_insn): Add error message and print out
5028 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
5030 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
5031 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
5032 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
5033 TRAMPOLINE_ALIGNMENT.
5034 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
5036 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
5037 PCC_BITFIELD_TYPE_MATTERS.
5038 * config/interix.h (STDC_VALUE): Remove. Use
5039 STDC_0_IN_SYSTEM_HEADERS.
5040 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
5041 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
5042 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
5044 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
5046 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
5047 not work on this platform currently.
5049 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
5051 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
5052 readonly_warning in _().
5054 2002-01-15 Douglas B Rupp <rupp@gnat.com>
5056 * gcc.c (delete_if_ordinary): Backout previous change.
5058 2002-01-15 Kazu Hirata <kazu@hxi.com>
5060 * config/h8300/h8300.c (print_operand): Remove support for
5061 unused operand characters.
5063 * read-rtl.c: Fix formatting.
5065 * recog.c: Likewise.
5066 * regclass.c: Likewise.
5067 * regmove.c: Likewise.
5068 * reg-stack.c: Likewise.
5069 * reload1.c: Likewise.
5070 * rtlanal.c: Likewise.
5072 2002-01-15 Kazu Hirata <kazu@hxi.com>
5074 * config/i386/i386.c: Fix formatting.
5076 2002-01-15 Jakub Jelinek <jakub@redhat.com>
5078 * c-typeck.c (process_init_element): Don't save_expr
5079 COMPOUND_LITERAL_EXPR if just its initializer will be used.
5081 2002-01-15 David Edelsohn <edelsohn@gnu.org>
5083 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
5084 emit optional traceback table if optimize_size or TARGET_ELF.
5085 * config/rs6000/rs6000.md (prefetch): New.
5087 2002-01-15 Andreas Jaeger <aj@suse.de>
5089 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
5091 2002-01-15 Kazu Hirata <kazu@hxi.com>
5093 * mips-tfile.c: Fix formatting.
5095 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
5097 * unroll.c (final_reg_note_copy): Fix previous commit.
5099 2002-01-14 Kazu Hirata <kazu@hxi.com>
5101 * config/h8300/h8300-protos.h: Remove the prototype for
5103 * config/h8300/h8300.c (eq_operator): Remove.
5105 2002-01-14 Richard Henderson <rth@redhat.com>
5107 * config/i386/i386.md (prefetch): Tidy.
5108 (prefetch_3dnow): Fix locality operand.
5110 2002-01-14 Richard Henderson <rth@redhat.com>
5112 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
5113 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
5115 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
5117 * reload1.c (reload_combine): Pass reg_sum replacement through
5118 copy_rtx in loop performing multiple changes.
5120 2002-01-14 Jakub Jelinek <jakub@redhat.com>
5122 * except.c (remove_unreachable_regions): New.
5123 (free_eh_status): Clear exception_handler_labels.
5124 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
5125 (find_exception_handler_labels): Don't add the same label more than
5127 (remove_exception_handler_label): Don't die if
5128 find_exception_handler_labels hasn't been called for the current
5131 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
5133 * toplev.c (rest_of_compilation): Rebuild jump labels after
5136 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
5138 * doc/extend.texi: Move documentation of X86 built-in functions
5140 * doc/invoke.texi: From here.
5141 * doc/sourcebuild.texi: Document location of documentation for
5142 machine built-in functions.
5144 2002-01-13 Christopher Faylor <cgf@redhat.com>
5146 * cppfiles.c (TEST_THRESHOLD): New macro.
5147 (SHOULD_MMAP): Ditto.
5148 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
5151 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
5153 * unroll.c (final_reg_note_copy): Properly handle
5155 (unroll_loops): Fix LOOP_CONDITION heuristics.
5157 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
5159 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
5160 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
5162 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
5164 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
5167 2002-01-14 Tom Rix <trix@redhat.com>
5169 * config/rs6000/rs6000.md: Fix typo with sradi.
5171 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
5173 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
5174 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
5175 (clrstrdi, clrstrsi): Adapt callers.
5177 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
5179 (movti splitter): Never use register 0 as base register.
5181 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
5183 * combine.c (simplify_shift_const): Always generate new rtx
5184 for shift expression instead of reusing given expression.
5186 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5188 * config/alpha/alpha.c (alpha_expand_mov): Don't call
5189 alpha_legitimize_address unless mode is Pmode.
5191 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
5193 * doc/md.texi (Modifiers): Document the '*' constraint for the
5196 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
5197 * doc/extend.texi (Function Attributes): 'interrupt' is valid
5200 2002-01-13 Richard Henderson <rth@redhat.com>
5202 * reload.c (find_reloads): Use a hard reg destination as reload reg
5203 for an input reload of the source.
5205 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5207 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
5210 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
5212 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5213 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
5215 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
5217 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5219 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
5221 2002-01-12 Tom Rix <trix@redhat.com>
5223 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
5226 2002-01-12 Richard Henderson <rth@redhat.com>
5228 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
5230 * doc/invoke.texi: Update Alpha options.
5232 * doc/invoke.texi: Update i386 built-in function lists.
5234 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
5236 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
5237 referencing outside.
5239 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5241 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
5242 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
5243 offsets, and change line folding.
5244 * optabs.c (expand_binop): Remove warnings.
5245 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
5247 2002-01-12 Graham Stott <grahams@redhat.com>
5249 * attribs.c (handle_deprecated_attribute): constify WHAT.
5250 * diagnostic.c (warn_deprecated_use): Add braces, fixes
5251 dangling else warning and constify WHAT.
5252 * except.h (struct function, struct inline_remap): Move
5253 struct tag forward defs before all prototypes.
5254 (duplicate_eh_regions): Whitespace.
5256 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
5258 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5259 MODE_BASE_REG_CLASS.
5260 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
5262 2002-01-12 Richard Henderson <rth@redhat.com>
5264 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
5265 (ix86_expand_vector_move): New.
5266 (bdesc_2arg): Remove andps, andnps, orps, xorps.
5267 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
5268 Remove old prefetch builtins. Special case the logicals removed above.
5269 (ix86_expand_builtin): Likewise.
5270 (safe_vector_operand): Use V4SFmode, not TImode.
5271 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
5272 (ix86_expand_timode_binop_builtin): New.
5273 * config/i386/i386-protos.h: Update.
5274 * config/i386/i386.h (enum ix86_builtins): Update.
5275 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
5276 Use ix86_expand_vector_move in vector move expanders.
5277 (movti_internal, movti_rex64): Add xorps alternative.
5278 (sse_clrv4sf): Rename and adjust from sse_clrti.
5279 (prefetch): Don't work so hard.
5280 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
5281 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
5282 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
5284 2002-01-11 Richard Henderson <rth@redhat.com>
5286 * config/i386/mmintrin.h: New file.
5287 * config/i386/xmmintrin.h: New file.
5288 * config.gcc (i?86-*-*): Add extra_headers.
5289 * simplify-rtx.c (simplify_unary_operation): Handle saturating
5291 (simplify_binary_operation): Handle saturating arithmetic codes.
5292 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
5293 not the lowpart subreg.
5294 (ix86_expand_builtin): Return a TImode dummy register instead of 0
5296 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
5298 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5300 * conflict.c (conflict_graph_compute): Free regsets when finished.
5301 * ssa.c (compute_coalesced_reg_partition): Likewise.
5303 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5305 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
5306 every where we allocate a register.
5308 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5310 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
5311 * lcm.c (compute_earliest, compute_farthest): Likewise.
5313 2002-01-11 Janis Johnson <janis187@us.ibm.com>
5315 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
5317 2002-01-11 Janis Johnson <janis187@us.ibm.com>
5319 * doc/rtl.texi (Insns): Fix 2 typos.
5321 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
5323 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
5324 options. Use @table @gcctabopt for MMIX options. Add index
5325 entries for MMIX options. Start new paragraph with first
5326 heading of the machine-dependent options.
5328 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
5331 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
5332 * combine.c (force_to_mode): Same.
5333 * reload1.c (clear_reload_reg_in_use): Same.
5335 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
5337 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
5340 2002-01-11 Andreas Jaeger <aj@suse.de>,
5341 Brad Lucier <lucier@math.purdue.edu>
5343 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
5346 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
5348 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
5349 Protect with IN_LIBGCC.
5350 (LINK_EH_SPEC): Add required trailing space.
5352 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
5354 * c-tree.h: Move function declarations so that they are listed
5355 under the filename which contains them.
5356 (check_identifier, finish_decl_top_level,
5357 lookup_name_current_level_global, shadow_record_fields): Remove.
5359 2002-01-11 Andreas Jaeger <aj@suse.de>
5361 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
5364 2002-01-10 Richard Henderson <rth@redhat.com>
5366 * config/alpha/alpha.c (print_operand): Add 'J'.
5367 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
5368 new operand with the sequence number for the lituse. When splitting
5369 the insns, use gen_movdi_er_high_g and generate a sequence number.
5370 (gen_movdi_er_high_g): Print the sequence number if non-zero.
5372 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
5374 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
5375 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
5377 (altivec_expand_builtin): Same.
5378 (altivec_expand_stv_builtin): New.
5380 * config/rs6000/rs6000.h (rs6000_builtins): Same.
5382 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
5383 ("altivec_lvehx"): New.
5384 ("altivec_lvewx"): New.
5385 ("altivec_lvxl"): New.
5386 ("altivec_lvx"): New.
5387 ("altivec_stvx"): New.
5388 ("altivec_stvebx"): New.
5389 ("altivec_stvehx"): New.
5390 ("altivec_stvewx"): New.
5391 ("altivec_stvxl"): New.
5393 2002-01-10 Richard Henderson <rth@redhat.com>
5395 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
5396 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
5397 care not to delete instructions twice.
5399 2002-01-10 Zack Weinberg <zack@codesourcery.com>
5401 * toplev.c: Don't declare environ (it's not used anywhere).
5402 * configure.in: Don't check for declaration of environ.
5403 * config/i386/xm-mingw32.h: Don't #define environ.
5404 * config.in, configure: Regenerate.
5406 2002-01-10 Zack Weinberg <zack@codesourcery.com>
5408 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
5409 * configure: Regenerate.
5411 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
5412 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
5413 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
5415 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
5416 LIMITS_H_TEST here, not in m68k/x-next.
5417 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
5418 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
5420 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
5421 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
5422 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
5424 * config/i386/x-djgpp: Renamed i386/t-djgpp.
5425 * config/m88k/x-dolph: Renamed m88k/t-dolph.
5426 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
5427 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
5428 replacement of quadlib.asm with quadlib.c.
5430 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
5431 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
5432 config/rs6000/xm-beos.h: Delete file.
5434 * config.gcc: Update to match above changes.
5436 2002-01-10 Kazu Hirata <kazu@hxi.com>
5438 * config/h8300/h8300.h: Fix comment typos.
5439 * config/h8300/h8300.md: Likewise.
5440 * config/h8300/lib1funcs.asm: Likewise.
5442 2002-01-10 Dale Johannesen <dalej@apple.com>
5444 PR optimization/5269
5445 * unroll.c (precondition_loop_p): Make *increment be the correct
5446 sign when n_iterations known, to avoid confusing caller.
5448 2002-01-10 Kazu Hirata <kazu@hxi.com>
5450 * doc/extend.texi (deprecated): Fix a typo.
5452 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
5454 * basic-block.h (update_br_prob_note): Declare.
5455 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
5456 (try_forward_edges): Care negative frequencies and update note.
5457 (outgoing_edges_match): Tweek conditional merging heuristics.
5458 (try_crossjump_to_edge): use update_br_prob_note.
5459 * cfglayout.c (fixup_reorder_chain): Likewise.
5460 * cfrtl.c (update_br_prob_note): New.
5461 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
5463 * i386.c (ix86_decompose_address): Return -1 if address contains
5465 (legitimate_address_p): Require ix86_decompose_address to return 1.
5467 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
5468 (cprop_insn): Likewise.
5470 2002-01-10 Kazu Hirata <kazu@hxi.com>
5472 * toplev.c: Fix formatting.
5474 * tree-dump.c: Likewise.
5475 * unroll.c: Likewise.
5476 * unwind-dw2.c: Likewise.
5477 * unwind-dw2-fde.c: Likewise.
5478 * unwind-dw2-fde-glibc.c: Likewise.
5479 * unwind-sjlj.c: Likewise.
5481 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5483 * doc/invoke.texi: Document PDP-11 options.
5485 2002-01-10 Kazu Hirata <kazu@hxi.com>
5487 * config/h8300/h8300.h: Fix formatting.
5489 2002-01-10 Ira Ruben <ira@apple.com>
5491 Add __attribute__ ((deprecated)).
5492 * extend.texi: Document __attribute__ ((deprecated)).
5493 * invoke.texi: Document -Wno-deprecated-declarations.
5494 * testsuite/g++.dg/other/deprecated.C: New C++ test.
5495 * testsuite/gcc.dg/deprecated.c: New C test.
5496 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
5497 (c_common_attribute_table): Add "deprecated" entry.
5498 (handle_deprecated_attribute): New function.
5499 * c-decl.c (deprecated_states): New enum.
5500 deprecated_state: State of "deprecated" handling.
5501 (start_decl): Set deprecated_state based on attributes.
5502 (grokdeclarator): Test for deprecated uses, propagate attribute.
5503 * c-typeck.c (build_component_ref): Test for deprecated fields.
5504 (build_external_ref): Test for deprecated primaries.
5505 * diagnostic.c (warn_deprecated_use) New function to issue
5506 warnings about __attribute__ ((depricated)) references.
5507 * flags.h (warn_deprecated_decl): Extern declared for
5508 -W[no-]deprecated-declarations option.
5509 * print-tree.c (print_node): Show deprecated flag status.
5510 * toplev.c (warn_deprecated_decl): Defined.
5511 (W_options): Added "deprecated-declaration".
5512 * toplev.h (warn_deprecated_use): Extern declared.
5513 * tree.h (struct tree_common): Define deprecated_flag.
5514 (TREE_DEPRECATED): New macro to access flag.
5515 * cp/call.c (build_call): Test for deprecated calls.
5516 * cp/class.c (add_implicitly_declared_members): Set global
5517 flag to tell grokdeclarator to not issue deprecated warnings.
5518 * cp/cp-tree.h: Add extern for adding_implicit_members.
5519 * cp/decl.c (deprecated_states): New enum.
5520 (start_decl): Set deprecated_state based on attributes.
5521 (grokdeclarator): Test for deprecated uses, propagate attribute.
5522 * cp/lex.c (do_identifier): Test for deprecated primaries.
5523 * cp/typeck.c (build_component_ref): Test for deprecated fields.
5525 2002-01-10 Ira Ruben <ira@apple.com>
5527 Fix to assign attributes to inline member functions.
5528 * cp/decl.c (start_method): Handle attrlist.
5530 2002-01-10 Kazu Hirata <kazu@hxi.com>
5532 * combine.c (expand_field_assignment): Use subreg_lsb().
5534 2002-01-10 David Edelsohn <edelsohn@gnu.org>
5536 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
5537 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
5538 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
5539 Recurse for any operand of AND as long as constant is non-zero.
5541 2002-01-10 Kazu Hirata <kazu@hxi.com>
5543 * config/h8300/h8300.md: Remove constraints from expanders.
5545 2002-01-10 Kazu Hirata <kazu@hxi.com>
5547 * varasm.c: Fix formatting.
5548 * varray.c: Likewise.
5549 * vmsdbgout.c: Likewise.
5550 * xcoffout.c: Likewise.
5552 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
5554 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
5555 update edge probabilities to match.
5557 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5559 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
5561 * doc/languages.texi, doc/sourcebuild.texi: New files.
5562 * doc/configfiles.texi: Make a subsubsection. Update.
5563 * doc/configterms.texi: Add @node. Remove warning that this isn't
5564 instructions for building GCC.
5565 * doc/makefile.texi: Make a subsection.
5566 * doc/gccint.texi: Update.
5568 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
5570 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
5572 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
5574 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
5576 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
5578 * optabs.c (expand_fix): Look for wider integer modes first.
5580 * i386.md (mov?f): Avoid the fake const double trick for medium
5582 (min?f*/max?f*): Prohibit memory operands for i387 variant.
5583 (fop_df_4): Disable for SSE compilation.
5585 2002-01-10 Graham Stott <grahams@redhat.com>
5587 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
5588 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
5590 2002-01-10 Richard Henderson <rth@redhat.com>
5592 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
5594 2002-01-10 Richard Henderson <rth@redhat.com>
5596 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
5597 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
5599 2002-01-10 Kazu Hirata <kazu@hxi.com>
5601 * combine.c (can_combine_p): Fix a comment typo.
5603 2002-01-09 Zack Weinberg <zack@codesourcery.com>
5605 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
5606 empty list correctly. Change loop index $t to $f for
5607 consistency with rest of Makefile.
5609 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
5611 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
5612 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5614 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
5615 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
5616 (altivec_init_builtins): Same.
5617 (altivec_expand_unop_builtin): Return NULL_RTX on error.
5618 (altivec_expand_binop_builtin): Same.
5619 (altivec_expand_ternop_builtin): Same.
5622 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
5623 ("altivec_vctuxs"): Fix typo.
5624 ("altivec_vnmsubfp"): Same.
5625 ("altivec_dssall"): New.
5626 ("altivec_mfvscr"): New.
5627 ("altivec_dss"): New.
5628 ("altivec_lvsl"): New.
5629 ("altivec_lvsr"): New.
5630 ("altivec_dstt"): New.
5631 ("altivec_dstst"): New.
5632 ("altivec_dststt"): New.
5633 ("altivec_dst"): New.
5635 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
5636 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5638 2002-01-09 Richard Henderson <rth@redhat.com>
5640 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
5642 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
5644 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
5646 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
5648 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
5650 2002-01-09 Kazu Hirata <kazu@hxi.com>
5652 * read-rtl.c: Fix formatting.
5654 * regclass.c: Likewise.
5655 * regrename.c: Likewise.
5656 * reg-stack.c: Likewise.
5657 * reload1.c: Likewise.
5658 * reload.c: Likewise.
5661 2002-01-09 Kazu Hirata <kazu@hxi.com>
5663 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
5664 to extract items in the expr_list chain.
5666 2002-01-09 Richard Henderson <rth@redhat.com>
5668 * config/vax/vax.c (vax_rtx_cost): Never abort.
5670 * config/vax/vax.h (REAL_ARITHMETIC): Define.
5672 2002-01-09 Jan Hubicka <jh@suse.cz>
5674 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
5676 2002-01-09 Richard Henderson <rth@redhat.com>
5678 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
5679 Unify code from various alternatives.
5681 2002-01-09 Richard Henderson <rth@redhat.com>
5683 * regrename.c (copy_value): Ignore the copy if the source register
5684 is present in the value chain with a narrower mode.
5686 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5688 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
5689 for the c4x target. Also improve layout.
5691 2002-01-09 Richard Henderson <rth@redhat.com>
5693 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
5694 * config/m32r/m32r.md (and ior xor splitters): Swap operands
5695 to match insn patterns.
5697 2002-01-09 Richard Henderson <rth@redhat.com>
5699 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
5700 (copyprop_hardreg_forward_1): Likewise.
5702 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
5704 * pa.md (decrement_and_branch_until_zero): Change predicate for
5705 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
5707 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5709 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
5710 gets undefined. For Darwin.
5712 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5714 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
5716 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5718 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
5720 2002-01-08 Richard Henderson <rth@redhat.com>
5722 * regrename.c (copy_value): Ignore overlapping copies.
5724 2002-01-08 Richard Henderson <rth@redhat.com>
5726 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
5727 as needed to avoid shared structure.
5729 2002-01-08 Kazu Hirata <kazu@hxi.com>
5731 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
5734 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5736 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
5737 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
5738 documentation of obsolete macros.
5739 * system.h: Poison these macros.
5740 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
5741 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
5742 config/c4x/c4x.h, config/clipper/clipper.h,
5743 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
5744 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
5745 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
5746 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
5747 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5748 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
5749 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5750 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
5751 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
5752 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5753 config/sparc/sparc.h, config/stormy16/stormy16.h,
5754 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
5755 definitions and commented out definitions of obsolete macros.
5756 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
5757 of MAX_INT_TYPE_SIZE.
5759 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5761 * config/s390/s390.c (s390_preferred_reload_class): Never
5762 return ADDR_REGS if it isn't a subset of the given class.
5763 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
5764 FP_REGS, but all superclasses as well.
5766 * config/s390/s390.c (s390_function_profiler): Fix thinko.
5768 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
5769 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
5770 must not be a const_int.
5772 2002-01-08 Richard Henderson <rth@redhat.com>
5774 * Makefile.in (toplev.o): Depend on options.h.
5775 (gcc.o): Depend on specs.h.
5777 2002-01-08 Jakub Jelinek <jakub@redhat.com>
5779 * expr.c (store_expr): Convert VOIDmode constants back to target's
5782 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5784 * doc/invoke.texi: Markup gcc as @command. Refer to
5785 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5786 of http://gcc.gnu.org/thanks.html.
5788 2002-01-08 Dale Johannesen <dalej@apple.com>
5790 * config/rs6000/rs6000.md: Add missing int register
5791 target case to movdf_low.
5793 2002-01-08 Zack Weinberg <zack@codesourcery.com>
5795 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5796 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
5797 (cppinit.o): Depend on except.h.
5798 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5799 s-specs): New rules.
5801 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5802 Don't create specs.h/options.h/gencheck.h here. Remove
5803 unnecessary variable settings from last argument of AC_OUTPUT.
5804 * config.in, configure: Regenerate.
5805 * intl.c: Hardcode package name as "gcc".
5807 * cppinit.c: Include except.h.
5808 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5810 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5811 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5812 (!)USING_SJLJ_EXCEPTIONS.
5813 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5815 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5817 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5818 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5819 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5820 documentation of obsolete macros.
5821 * system.h: Poison these macros.
5822 * config/d30v/d30v.h, config/ns32k/encore.h,
5823 config/stormy16/stormy16.h: Remove definitions and commented out
5824 definitions of obsolete macros.
5826 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
5828 * objc/objc-act.c (handle_class_ref): Mark the declaration of
5829 %sobjc_class_ref_%s as used - to prevent unwanted compiler
5832 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5834 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5835 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5836 to insn adjusting stack/frame pointer.
5837 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5838 accept operands that cause the insn to be non-splittable.
5840 2002-01-08 Graham Stott <grahams@redhat.com>
5842 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5843 (C_TYPE_FIELDS_VOLATILE): Likewise.
5844 (C_TYPE_BEING_DEFINED): Likewise.
5845 (C_IS_RESERVED_WORD): Likewise.
5846 (C_TYPE_VARIABLE_SIZE): Likewise.
5847 (C_DECL_VARIABLE_SIZE): Likewise.
5848 (C_MISSING_PROTOTYPE_WARNED): Likewise.
5849 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5850 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5852 (C_DECL_ANTICIPATED): Likewise.
5853 (c_build_type_variant): Add parenthesis.
5855 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5857 * gcc.c (option_map): Remove --version.
5858 (process_command): Handle -fversion following the GNU Coding
5859 Standards. Partially addresses PR other/704.
5861 2002-01-08 Graham Stott <grahams@redhat.com>
5863 * combine.c (combine_instructions): Fix typo.
5865 2002-01-08 Graham Stott <grahams@redhat.com>
5867 * debug.h: Use "tree" and "rtx" throughout.
5869 * debug.c: Likewise.
5871 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
5873 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5874 constant pool, use the pool's version of the symbol instead.
5876 2002-01-07 Richard Henderson <rth@redhat.com>
5878 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5879 the original register was copied in a mode with a fewer number of
5880 hard registers than the desired mode.
5881 (copyprop_hardreg_forward_1): Likewise.
5882 (debug_value_data): Fix loop test.
5883 * toplev.c (parse_options_and_default_flags): Reenable
5884 -fcprop-registers at -O1.
5886 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5888 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5889 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5891 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5894 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5896 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5898 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5899 (pa_output_function_prologue): Output local label at the beginning of
5900 the prologue when profiling.
5901 (hppa_profile_hook): Use the local label rather than the function label.
5902 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5904 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5906 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5907 (altivec_expand_unop_builtin): Fix thinko.
5908 (altivec_expand_binop_builtin): Same.
5909 (altivec_expand_ternop_builtin): Same.
5910 (altivec_expand_builtin): Same.
5912 2002-01-07 Richard Henderson <rth@redhat.com>
5914 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5916 2002-01-07 Jason Merrill <jason@redhat.com>
5918 * unwind-dw2.c (execute_cfa_program): Use < again.
5920 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5922 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5924 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5926 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5927 Don't allow -1 - x -> ~x simplifications in the first pass.
5929 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5931 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5933 (altivec_expand_binop_builtin): Same.
5934 (altivec_expand_unop_builtin): Same.
5935 (print_operand): Fix typo.
5936 (bdesc_1arg): Add vupk* variants.
5938 * rs6000.h (rs6000_builtins): Add vupk* enums.
5940 * rs6000.md: Add altivec_vupk* variants.
5942 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5944 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5945 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5946 and last update dates.
5948 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5950 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5952 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5954 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5955 * config/avr/avr.h (CPP_SPEC): Likewise.
5956 (LINK_SPEC): Likewise.
5957 (CRT_BINUTILS_SPECS): Likewise.
5958 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5959 * doc/invoke.texi (AVR Options): Document them.
5961 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5963 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5966 2002-01-07 Graham Stott <grahams@redhat.com>
5968 * config/i386/i386.h: Update copyright date.
5969 (HALF_PIC_PTR): Add parenthesis.
5970 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5971 (CONSTANT_ALIGNMENT): Add parenthesis.
5972 (DATA_ALIGNMENT): Likewise.
5973 (LOCAL_ALIGNMENT): Likewise.
5974 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5975 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5976 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5977 (HARD_REGNO_NREGS): Add paranethesis.
5978 (VALID_SSE_REG_MODE): Whitespace.
5979 (VALID_MMX_REG_MODE): Whitespace.
5980 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5981 (ix86_hard_regno_mode_ok): Add parenthesis.
5982 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5983 (RETURN_IN_MEMORY): Whitespace.
5984 (N_REG_CLASSES): Add parenthesis.
5985 (INTEGER_CLASS_P): Add parenthesis and wrap.
5986 (FLOAT_CLASS_P): Likewise.
5987 (SSE_CLASS_P): Likewise.
5988 (MMX_CLASS_P): Likewise.
5989 (MAYBE_INTEGER_CLASS_P): Likewise.
5990 (MAYBE_FLOAT_CLASS_P): Likewise.
5991 (MAYBE_SSE_CLASS_P): Likewise.
5992 (MAYBE_MMX_CLASS_P): Likewise.
5993 (Q_CLASS_P): Likewise.
5994 (GENERAL_REGNO_P): Uppercase macro parameter.
5995 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5996 (FP_REGNO_P): Likewise.
5997 (ANY_FP_REGNO_P): Uppercase macro parameter.
5998 (SSE_REGNO_P): Likewise.
5999 (SSE_REGNO): Likewise.
6000 (SSE_REG_P): Likewise.
6001 (SSE_FLOAT_MODE_P): Likewise.
6002 (MMX_REGNO_P): Likewise.
6003 (MMX_REG_P):Likewise.
6004 (STACK_REG_P): Likewise.
6005 (NON_STACK_REG_P): Likewise.
6006 (STACK_TOP_P): Likewise.
6007 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
6008 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
6009 (SECONDARY_MEMORY_NEEDED): Likewise.
6010 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
6011 (MD_ASM_CLOBBERS): Whitespace and wrap.
6012 (MUST_PASS_IN_STACK): Whitespace and wrap.
6013 (RETURN_POPS_ARGS): Add parenthesis.
6014 (INIT_CUMULATIVE_ARGS): Likewise.
6015 (FUNCTION_ARG): Likewise.
6016 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
6017 (SETUP_INCOMING_VARARGS): Likewise.
6018 (BUILD_VA_LIST_TYPE): Add parenthesis.
6019 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
6021 (EXPAND_BUILTIN_VA_ARG): Likewise.
6022 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
6023 (INITIALIZE_TRAMPOLINE): Add parenthesis.
6024 (INITIAL_ELIMINATION_OFFSET): Likewise.
6025 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
6026 (REGNO_OK_FOR_BASE_P): Likewise.
6027 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
6028 (REGNO_OK_FOR_DIREG_P): Likewise.
6029 (REG_OK_FOR_INDEX_P): Whitespace.
6030 (REG_OK_FOR_BASE_P): Whitespace.
6031 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
6033 (FIND_BASE_TERM): Fix typo.
6034 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
6035 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
6036 (SYMBOLIC_CONST; Whitespace.
6037 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
6038 (ENCODE_SECTION_INFO): Whitespace.
6039 (FINALIZE_PIC): Remove do { ... } while (0).
6040 (PROMOTE_MODE): Wrap in do { ... } while (0).
6041 (CONST_COSTS): Whitespace.
6042 (RTX_COSTS): Add paramethesis, whitespace and wrap.
6043 (REGISTER_MOVE_COST): Add parenthesis.
6044 (MEMORY_MOVE_COST): Likewise.
6045 (EXTRA_CC_MODES): Whitespace.
6046 (SELECT_CC_MODE): Add parenthesis and whitespace.
6047 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
6048 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
6049 (ASM_OUTPUT_LABEL): Add paramethesis.
6050 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
6051 (ASM_OUTPUT_REG_POP): Likewise.
6052 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
6053 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6055 * config/i386/i386.c: Update copyright.
6056 (CHECK_STACK_LIMIT): Add parenthesis.
6057 (AT_BP): Uppercase macro parameter.
6058 (x86_64_int_parameter_registers): Constify.
6059 (x86_64_int_return_registers): Likewise.
6060 (ix86_compare_op0): Use rtx.
6061 (construct_container): Constify INTREG parameter.
6062 (function_arg): Use rtx.
6064 * diagnostic.h: Update copyright date.
6065 (output_buffer_state): Add parenthesis.
6066 (output_buffer_format_args): Likewise.
6068 * combine.c (combine_instructions): Replace XEXP (links, 0)
6071 2002-01-06 H.J. Lu <hjl@gnu.org>
6073 * cfgcleanup.c (thread_jump): Fix 2 typos.
6075 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
6077 * config.gcc: Add support for --enable-altivec.
6079 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
6081 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
6083 2002-01-06 Jakub Jelinek <jakub@redhat.com>
6085 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
6086 __objc_class_name_*.
6088 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
6090 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
6092 2002-01-06 Richard Henderson <rth@redhat.com>
6094 * reorg.c (emit_delay_sequence): Remove death notes, not merely
6095 nop them out. Increment label reference count for REG_LABEL.
6096 (fill_slots_from_thread): Frob label reference count around
6097 delete_related_insns.
6099 2002-01-05 Richard Henderson <rth@redhat.com>
6101 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
6104 2002-01-05 Richard Henderson <rth@redhat.com>
6106 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
6107 * integrate.c (output_inline_function): Likewise.
6108 * toplev.c (rest_of_compilation): Do it here instead. Move call
6109 to remove_unnecessary_notes after emitting abstract instance.
6110 Force an emitted nested function to have its parent emited as well.
6111 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
6113 (rtl_for_decl_location): Do not look at reload data structures
6114 before reload has run.
6116 2002-01-05 Kazu Hirata <kazu@hxi.com>
6118 * cse.c: Fix formatting.
6119 * dwarf2asm.c: Likewise.
6120 * dwarf2out.c: Likewise.
6121 * explow.c: Likewise.
6122 * expmed.c: Likewise.
6123 * function.c: Likewise.
6125 * gencheck.c: Likewise.
6126 * genrecog.c: Likewise.
6127 * ggc-common.c: Likewise.
6128 * ggc-page.c: Likewise.
6129 * global.c: Likewise.
6131 2002-01-05 Kazu Hirata <kazu@hxi.com>
6133 * combine.c: Fix formatting.
6135 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
6138 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
6140 2002-01-05 David Edelsohn <edelsohn@gnu.org>
6142 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
6143 as 1 for __powerpc64__ as well.
6145 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
6147 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
6150 2002-01-05 Daniel Berlin <dan@dberlin.org>
6152 * lcm.c: Revert change, due to performance regression it causes on
6153 SPEC because it's slightly more conservative (sigh, I hate
6156 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
6158 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
6160 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
6162 * doc/cppinternals.texi: Update.
6164 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
6166 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
6167 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
6169 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
6170 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
6171 kludge for pre-october-14th mmix versions to handle new-found bug
6172 with PUSHJ/PUSHGO and the register stack.
6173 * config/mmix/mmix.h (struct machine_function): Rename member
6174 has_call_value_without_parameters to has_call_without_parameters.
6175 All referers changed.
6176 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
6177 TARGET_MASK_BRANCH_PREDICT): New macros.
6178 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
6179 -mno-reg-stack-fill-bug-workaround.
6180 * config/mmix/mmix.md ("call"): Set struct machine member
6181 has_call_without_parameters.
6183 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
6185 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
6187 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
6189 * cfgcleanup.c: Include tm_p.h
6190 (mark_effect): Fix handling of hard register; fix handling of SET
6192 2002-01-04 Kazu Hirata <kazu@hxi.com>
6194 * config/h8300/h8300.md (anonymous patterns): Check that
6195 operands are registers before using REGNO on them.
6197 2002-01-03 Roland McGrath <roland@frob.com>
6199 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
6201 2002-01-04 Jakub Jelinek <jakub@redhat.com>
6203 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
6204 * c-common.h (genrtl_expr_stmt_value): Likewise.
6205 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
6206 (expand_expr_stmt_value): Add maybe_last argument.
6207 Don't warn about statement with no effect if it is the last statement
6208 in expression statement.
6209 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
6210 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
6211 expand_expr_stmt_value.
6212 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
6213 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
6214 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
6215 as maybe_last to expand_expr_stmt_value.
6217 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
6219 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
6220 be passed in, do not build it.
6221 (c_begin_if_stmt): New function.
6222 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6223 * c-common.h (c_expand_start_cond): Update prototype.
6224 (c_begin_if_stmt): Prototype new function.
6225 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
6226 * c-parse.in (if_prefix): Use c_begin_if_stmt,
6227 c_begin_while_stmt and c_finish_while_stmt_cond.
6229 2002-01-04 William Cohen <wcohen@redhat.com>
6231 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
6232 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6233 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6234 * config/pa/som.h (ASM_FILE_START): Likewise.
6236 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
6238 * lcm.c: Include df.h.
6239 Add available_transfer_function prototype.
6240 (compute_available): Rework to use iterative dataflow framework.
6241 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
6242 with bb_info in df.h
6243 (available_transfer_function): New function.
6245 * Makefile.in (lcm.o): add df.h to dependencies.
6247 2002-01-04 Richard Henderson <rth@redhat.com>
6249 * config/alpha/alpha.c (some_operand): Accept HIGH.
6250 (input_operand): Likewise; accept simple references to globals.
6251 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
6252 (alpha_const_double_ok_for_letter_p): Likewise.
6253 (alpha_extra_constraint): Likewise.
6254 (alpha_preferred_reload_class): Likewise. Do not force
6255 symbolic constants to memory.
6256 (alpha_legitimate_address_p): Accept simple references
6257 to small_symbolic_operand.
6258 (alpha_legitimize_address): New arg scratch. Be prepared to be
6259 called when no_new_pseudos. Emit simple symbolic references.
6260 Split integers into low, high, and rest.
6261 (alpha_expand_mov): Use alpha_legitimize_address.
6262 (some_small_symbolic_mem_operand): New.
6263 (split_small_symbolic_mem_operand): New.
6264 * config/alpha/alpha-protos.h: Update.
6265 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
6266 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6267 (EXTRA_CONSTRAINT): Likewise.
6268 (PREFERRED_RELOAD_CLASS): Likewise.
6269 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
6270 (PREDICATE_CODES): Update.
6271 * config/alpha/alpha.md: New post-reload splitters to convert
6272 simplfied symbolic operands to the form that references $29.
6273 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
6274 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
6276 2002-01-03 Richard Henderson <rth@redhat.com>
6278 * local-alloc.c (function_invariant_p): Update commentary.
6280 2002-01-04 H.J. Lu <hjl@gnu.org>
6282 * toplev.c (rest_of_compilation): Fix a typo when calling
6285 2002-01-03 Kazu Hirata <kazu@hxi.com>
6287 * c-common.c: Fix formatting.
6288 * diagnostic.c: Likewise.
6289 * doloop.c: Likewise.
6290 * dwarf2out.c: Likewise.
6292 2002-01-03 Kazu Hirata <kazu@hxi.com>
6294 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
6295 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
6297 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
6299 * cpperror.c: Update comments and copyright.
6300 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
6301 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
6303 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
6305 * collect2.c (main): Use strcmp when testing for "-shared".
6307 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
6309 * cppmacro.c: Don't include intl.h. Update comments.
6310 (new_number_token): Allocate enough buffer for 64-bit unsigned
6311 integers; update prototype.
6312 * cppmain.c: Update comments.
6314 2002-01-03 William Cohen <wcohen@redhat.com>
6316 * function.h (struct function): Add profile.
6317 (current_function_profile): New.
6318 doc/extend.texi: Update documentation.
6319 * final.c (final_start_function): Use current_function_profile
6320 instead of profile_flag.
6321 (profile_after_prologue): Likewise.
6322 * function.c (expand_function_start): Likewise.
6323 (expand_function_start): Likewise.
6324 * config/alpha/alpha.c (direct_call_operand):
6325 (alpha_does_function_need_gp): Likewise.
6326 (alpha_expand_prologue): Likewise.
6327 * config/arm/arm.c (arm_expand_prologue): Likewise.
6328 thumb_expand_prologue: Likewise.
6329 * config/d30v/d30v.c (d30v_stack_info): Likewise.
6330 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
6331 (fr30_expand_prologue): Likewise.
6332 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
6333 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
6334 * config/i386/i386.h (FINALIZE_PIC): Likewise.
6335 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
6336 * config/i960/i960.c (i960_output_function_prologue): Likewise.
6337 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
6338 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
6339 (m32r_expand_prologue): Likewise.
6340 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
6341 (m88k_expand_prologue): Likewise.
6342 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
6343 * config/mips/mips.c (compute_frame_size): Likewise.
6344 (mips_expand_prologue): Likewise.
6345 (mips_can_use_return_insn): Likewise.
6346 * config/pa/elf.h (ASM_FILE_START): Likewise.
6347 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
6348 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
6349 * config/pa/som.h (ASM_FILE_START): Likewise.
6350 * config/romp/romp.c (romp_using_r14): Likewise.
6351 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
6352 (rs6000_stack_info): Likewise.
6353 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6354 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6355 * config/v850/v850.c (compute_register_save_size): Likewise.
6357 2002-01-03 Jakub Jelinek <jakub@redhat.com>
6359 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
6360 gen_lowpart_common fails, use gen_lowpart_SUBREG.
6362 2002-01-03 Turly O'Connor <turly@apple.com>
6364 * darwin.c (machopic_output_possible_stub_label): Don't generate
6365 stub routines for pseudo-stubs which we've just defined.
6367 2002-01-03 Kazu Hirata <kazu@hxi.com>
6369 * builtins.c: Fix formatting.
6370 * c-typeck.c: Likewise.
6371 * combine.c: Likewise.
6375 2002-01-03 Andreas Schwab <schwab@suse.de>
6377 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
6378 and return true if _cpp_push_next_buffer pushed a new include
6380 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
6381 _cpp_pop_file_buffer did not push a new file.
6382 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
6384 2002-01-02 Eric Christopher <echristo@redhat.com>
6386 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
6387 FIND_REG_INC_NOTE call. Update copyright.
6388 * loop.c (canonicalize_condition): Ditto.
6389 * reorg.c (delete_scheduled_jump): Ditto.
6391 2002-01-03 Kazu Hirata <kazu@hxi.com>
6393 * gcse.c: Fix formatting.
6395 2002-01-03 Graham Stott <grahams@redhat.com>
6397 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
6398 forward defs for struct tags rtx_def, union_tree, rtvec_def
6399 also output corresponding typedefs for rtx, tree, and rtvec.
6401 * system.h: Move forward defs for struct tags rtx_def, union_tree,
6402 rtvec_def along with corresponding typedefs for rtx, tree, and
6403 rtvec to config.h, hconfig.h, tconfig.h.
6405 2002-01-03 Graham Stott <grahams@redhat.com>
6407 * tree.h: Update copyright date.
6408 (IS_EXPR_CODE_CLASS): Add parenthesis.
6409 (TREE_SET_CODE): Add whitespace.
6410 (TREE_CHECK): Add parenthesis.
6411 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
6412 (CST_OR_CONSTRUCTOR_CHECK):
6413 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
6414 (TREE_SYMBOL_REFERENCED): Whitespace.
6415 (INT_CST_LT): Likewise.
6416 (INT_CST_LT_UNSIGNED): Likewise.
6417 (tree_real_cst): Unwrap comment.
6418 (tree_string): Likewise.
6419 (tree_complex): Likewise.
6420 (IDENTIFIER_POINTER): correct cast.
6421 (SAVE_EXPR_CONTEXT): Whitespace.
6422 (EXPR_WFL_FILENAME_NODE): Likewise.
6423 (EXPR_WFL_FILENAME): Remove parenthesis.
6424 (DECL_ORIGIN): Add parenthesis.
6425 (DECL_FROM_INLINE): Use NULL_TREE.
6426 (build_int_2): Whitespace.
6427 (build_type_variant): Add parenthesis.
6429 * gcc/jcf-parse.c: Update copyright date.
6430 (yyparse): Constify resource_filename.
6432 2002-01-03 Graham Stott <grahams@redhat.com>
6434 * rtl.h: Update copyright date.
6435 (RTL_CHECK1): Wrap long line.
6436 (RTL_CHECK2): Likewise.
6437 (RTL_CHECKC1): Wrap long line and whitespace.
6438 (RTL_CHECKC2): Likewise.
6439 (XWINT): Whitespace.
6445 (XBITMAP): Likewise.
6456 (X0BITMAP): Likewise.
6458 (X0BBDEF): Likewise.
6459 (X0ADVFLAGS): Likewise.
6460 (X0CSELIB): Likewise.
6461 (X0MEMATTR): Likewise.
6469 (XCBITMAP): Likewise.
6471 (XCBBDEF): Likewise.
6472 (XCADVFLAGS): Likewise.
6473 (XCCSELIB): Likewise.
6475 (INSN_UID): Likewise.
6476 (PREV_INSN): Likewise.
6477 (PATTERN): Likewise.
6478 (INSN_CODE): Likewise.
6479 (PUT_REG_NOTE_KIND): Likewise.
6480 (CODE_LABEL_NUMBER): Likewise.
6481 (NOTE_SOURCE_FILE): Likewise.
6482 (NOTE_BLOCK): Likewise.
6483 (NOTE_EH_HANDLER): Likewise.
6484 (NOTE_RANGE_INFO): Likewise.
6485 (NOTE_LIVE_INFO): Likewise.
6486 (NOTE_BASIC_BLOCK): Likewise.
6487 (NOTE_EXPECTED_VALUE): Likewise.
6488 (NOTE_LINE_NUMBER): Likewise.
6489 (LABEL_NAME): Likewise.
6490 (LABEL_NUSES): Likewise.
6491 (LABEL_ALTERNATE_NAME): Likewise.
6492 (ADDRESSOF_DECL): Likewise.
6493 (JUMP_LABEL): Likewise.
6494 (LABEL_NEXTREF): Likewise.
6496 (ORIGINAL_REGNO: Likewise.
6497 (HARD_REGISTER_NUM_P): Add parenthesis.
6498 (SUBREG_REG): Whitespace.
6499 (SUBREG_BYTE): Likewise.
6500 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
6501 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
6502 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
6503 (ASM_OPERANDS_INPUT_VEC): Likewise.
6504 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
6505 (ASM_OPERANDS_INPUT): Likewise.
6506 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
6507 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
6508 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
6509 (ASM_OPERANDS_INPUT_MODE): Likewise.
6510 (ASM_OPERANDS_SOURCE_FILE): Likewise.
6511 (ASM_OPERANDS_SOURCE_LINE): Likewise.
6512 (MEM_SET_IN_STRUCT_P): Minor reformat.
6513 (TRAP_CONDITION): Whitespace.
6514 (TRAP_CODE): Likewise.
6515 (COND_EXEC_TEST): Likewise.
6516 (COND_EXEC_CODE): Likewise.
6517 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
6518 (PHI_NODE_P): Add parenthesis.
6519 (plus_constant): Whitespace and add parenthesis.
6521 2002-01-03 Kazu Hirata <kazu@hxi.com>
6523 * config/avr/avr.c: Fix comment typos.
6524 * config/c4x/c4x.md: Likewise.
6525 * config/dsp16xx/dsp16xx.h: Likewise.
6526 * config/dsp16xx/dsp16xx.md: Likewise.
6527 * config/i386/i386.md: Likewise.
6528 * config/ia64/ia64.c: Likewise.
6529 * config/m32r/m32r.h: Likewise.
6530 * config/m68hc11/m68hc11.md: Likewise.
6531 * config/mmix/mmix.c: Likewise.
6532 * config/mn10200/mn10200.c: Likewise.
6533 * config/romp/romp.c: Likewise.
6534 * config/sh/sh.c: Likewise.
6535 * config/stormy16/stormy16.c: Likewise.
6536 * config/stormy16/stormy16.h: Likewise.
6537 * config/stormy16/stormy16.md: Likewise.
6539 2002-01-03 Graham Stott <grahams@redhat.com>
6541 * loop.h: Update copyright date.
6542 (LOOP_MOVABLES): Fix typo.
6543 (LOOP_REGS): Likewise.
6544 (LOOP_IVS): Likewise.
6546 2002-01-03 Graham Stott <grahams@redhat.com>
6548 * cppinit.c: Update copyright date.
6549 Don't include output.h
6550 * Makefile.in: Update copyright date.
6553 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
6556 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
6557 (-pthread) Add to RS/6000 options.
6559 2002-01-02 Kazu Hirata <kazu@hxi.com>
6561 * except.c: Fix comment typos.
6563 * varasm.c: Likewise.
6564 * doc/tm.texi: Fix a typo.
6566 2002-01-02 Jakub Jelinek <jakub@redhat.com>
6568 * c-typeck.c (output_init_element): Allow initializing static storage
6569 duration objects with compound literals.
6571 2002-01-02 Richard Henderson <rth@redhat.com>
6573 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
6576 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6578 * gcc.c (default_compilers): Const-ify.
6579 * mips-tdump.c (stab_names): Likewise.
6580 * mips-tfile.c (map_coff_types, map_coff_storage,
6581 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
6582 pseudo_ops_t, pseudo_ops): Likewise.
6583 * protoize.c (default_include): Likewise
6585 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
6586 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
6587 Add array size in declaration.
6588 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
6589 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
6590 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
6591 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
6592 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
6593 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
6594 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
6595 emtens, make_nan): Const-ify.
6596 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
6597 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
6599 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
6601 * config.gcc (ia64-*-*): Set extra_headers.
6602 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
6603 * config/alpha/t-osf: Remove.
6604 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
6606 2002-01-02 David Edelsohn <edelsohn@gnu.org>
6608 * config/rs6000/t-aix43: Revert previous change.
6610 2002-01-02 Jason Merrill <jason@redhat.com>
6612 * c-decl.c (c_expand_body): Call outlining_inline_function when
6613 emitting an inline function out of line.
6615 2002-01-02 Richard Henderson <rth@redhat.com>
6617 * dwarf2out.c (limbo_die_node): Add created_for member.
6618 (new_die): New argument created_for. Update all callers.
6619 (mark_limbo_die_list): New.
6620 (dwarf2out_init): Register limbo_die_list as a root.
6621 (dwarf2out_finish): Force insert limbo dies into their function
6624 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
6627 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
6629 2002-01-02 Kazu Hirata <kazu@hxi.com>
6631 * config/h8300/fixunssfsi.c: Update copyright.
6634 * config/h8300/h8300.c: Update copyright.
6637 2002-01-02 Kazu Hirata <kazu@hxi.com>
6639 * config/romp/romp.c: Fix comment formatting.
6640 * config/romp/romp.h: Likewise.
6641 * config/romp/romp.md: Likewise.
6642 * config/s390/s390.c: Likewise.
6643 * config/stormy16/stormy16.c: Likewise.
6644 * config/stormy16/stormy16.h: Likewise.
6646 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
6648 * c-common.h (genrtl_expr_stmt_value): Declare.
6649 * c-semantics.c (genrtl_goto_stmt): Redirect to...
6650 (genrtl_goto_stmt_value): ... this new function. Pass new
6651 argument down to expand_expr_stmt_value, taking
6652 TREE_ADDRESSABLE into account.
6653 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
6654 STMT_EXPR as addressable, i.e., one whose result we want.
6655 * expr.c (expand_expr): Don't save expression statement value
6656 of labeled_blocks or loop_exprs.
6657 * stmt.c (expand_expr_stmt): Redirect to...
6658 (expand_expr_stmt_value): ... this new function. Use new
6659 argument to tell whether to save expression value.
6660 (expand_end_stmt_expr): Reset last_expr_type and
6661 last_expr_value if we don't have either.
6662 * tree-inline.c (declare_return_variable): Mark its use
6663 statement as addressable.
6664 * tree.h: Document new use of TREE_ADDRESSABLE.
6665 (expand_expr_stmt_value): Declare.
6667 2002-01-01 Tom Rix <trix@redhat.com>
6669 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
6670 rs6000_emit_allocate_stack.
6672 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
6674 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
6675 ${srcdir}/ginclude/ to every entry in extra_headers.
6676 * configure: Regenerate.
6677 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
6678 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
6679 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
6680 * ginclude/proto.h: Rename to config/convex/proto.h.
6682 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6684 * attribs.c (handle_vector_size_attribute): Use host_integerp
6685 and tree_int_cst; remove warnings.
6686 * caller-save.c (insert_restore): Add cast to get rid of warning.
6687 (insert_save): Likewise.
6688 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6689 * regmove.c (find_matches): Add temporary var to kill a warning.
6691 2002-01-01 Douglas B Rupp <rupp@gnat.com>
6693 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
6694 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
6695 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
6696 (vms-dwarf2eh.o): Add Makefile rule.
6697 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
6698 * config/alpha/vms-dwarf2eh.asm: New file.
6700 * gcc.c (delete_if_ordinary): Delete all versions.
6702 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
6704 * config/mmix/mmix.md: Update FIXME to not mention
6706 (MMIX_rJ_REGNUM): New define_constants constant.
6707 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
6708 "*movdicc_real"): Adjust contraints formatting.
6709 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
6710 for branch prediction.
6711 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
6713 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
6714 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
6715 number. Delete related FIXMEs.
6716 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
6717 from number to MMIX_rJ_REGNUM.
6718 (TARGET_MASK_BRANCH_PREDICT): New.
6719 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
6720 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
6721 value. Add -mbranch-predict and -mno-branch-predict.
6722 (TARGET_VERSION): Drop date.
6723 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
6724 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
6725 for finding out global symbols.
6726 (mmix_asm_output_labelref): Revert condition for global symbol.
6727 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
6728 (mmix_print_operand_punct_valid_p): A '+' is valid.
6730 See ChangeLog.6 for earlier changes.