1 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
4 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
7 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
9 * config/mips/mips-protos.h (mips_sign_extend): Declare.
10 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
11 (TARGET_SWITCHES): Remove debugh.
12 (ISA_HAS_TRUNC_W): New macro.
13 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
14 (PREDICATE_CODES): Remove se_nonimmediate_operand.
15 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
16 any SImode move_operand.
17 (se_nonimmediate_operand): Remove.
18 (mips_sign_extend): New.
19 (mips_move_2words): Use it for sign-extended source operands.
20 (override_options): Allow integers to be put into single FPRs.
21 (mips_secondary_reload_class): Handle integers in float registers.
22 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
23 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
24 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
25 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
26 (fix_truncdfdi2): Provide only a single alternative, in which the
27 integer is in a float register. Depend on TARGET_FLOAT64 rather
29 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
30 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
31 (movdi_internal2): Don't allow the source operand to be sign-extended.
32 Add alternatives for float registers.
33 (*movdi_internal2_extend): New. Version of movdi_internal2 that
34 allows sign-extension.
35 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
36 (movsi_internal2): Rename to movsi_internal. Add alternatives for
37 float registers. Remove TARGET_DEBUG_H_MODE test.
38 (movhi_internal1): Rename to movhi_internal. Don't check
39 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
40 (movqi_internal1): Rename to movqi_internal and remove
41 TARGET_DEBUG_H_MODE dependency.
42 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
44 2002-07-16 Jim Wilson <wilson@redhat.com>
46 * toplev.c (lang_dependent_init): Create function context for
49 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
51 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
53 * config/cris/cris.h: Ditto.
55 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
57 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
58 the comparison directly gives a mask suppress addition when cf is
59 zero by complementing the mask.
61 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
63 * Makefile.in: Delete references to enquire.
64 * enquire.c: Move to contrib.
66 2002-07-16 Stan Shebs <shebs@apple.com>
68 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
69 config/rs6000/darwin.h.
70 (ASM_OUTPUT_SKIP): Ditto.
71 (TEXT_SECTION_ASM_OP): Ditto.
72 (DATA_SECTION_ASM_OP): Ditto.
74 (ASM_APP_OFF): Define.
75 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
76 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
78 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
79 (machopic_function_base_name): Declare result to be const.
80 (machopic_non_lazy_ptr_name): Ditto.
81 (machopic_stub_name): Ditto.
82 * config/darwin-protos.h: Ditto for the prototypes.
84 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
86 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
88 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
90 * i386.md (prefetch): Fix for 64bit mode.
91 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
93 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
95 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
96 * i386.c (x86_machine_dependent_reorg): New function.
97 * i386-protos.h (x86_machine_dependent_reorg): Declare.
99 2002-07-16 Zack Weinberg <zack@codesourcery.com>
101 * builtins.c (std_expand_builtin_va_start): Remove unused
103 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
104 std_expand_builtin_va_start with just two arguments.
105 * expr.h: Update prototypes.
107 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
108 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
109 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
110 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
111 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
112 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
113 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
114 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
115 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
116 argument from all implementations of EXPAND_BUILTIN_VA_START
117 and all uses of std_expand_builtin_va_start.
119 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
121 * regrename.c (copy_value): Don't record high part copies.
123 2002-07-16 Steve Ellcey <sje@cup.hp.com>
125 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
126 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
127 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
129 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
131 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
133 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
134 into addsi3 using register class "x" and "y".
136 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
137 "earlyclobber" constraint modifier for some alternative.
139 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
140 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
142 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
144 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
145 (TARGET_SWITCHES): Add -mieee-compare option.
146 (OVERRIDE_OPTIONS): 32332 is a subset of
147 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
148 (TARGET_SWITCHES): Fix description of bitfield option.
149 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
150 -mieee-compare option. Remove 32332 flag.
152 2002-07-16 Steve Ellcey <sje@cup.hp.com>
154 * explow.c (convert_memory_address): Remove special handling
155 when POINTERS_EXTEND_UNSIGNED < 0.
156 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
157 (movedi_symbolic): Fix typo.
158 (load_fptr): Remove mode restriction so it works for SI and DI.
159 (load_fptr_internal1): Ditto.
161 (load_symptr_internal1): Ditto.
163 * config/ia64.c (call_operand): Modify mode check.
164 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
165 (ia64_expand_move): Ditto.
166 (ia64_assemble_integer): Handle SImode function pointers.
167 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
168 (ia64_expand_op_and_fetch): Ditto.
169 (ia64_expand_compare_and_swap): Ditto.
170 (ia64_expand_lock_test_and_set): Ditto.
171 (ia64_expand_lock_release): Ditto.
173 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
175 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
177 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
178 Richard Earnshaw <rearnsha@arm.com>
180 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
181 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
183 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
185 * arm.md (stack_tie): New insn. Use an idiom that the alias code
186 understands to be a memory clobber.
187 * arm.c (arm_expand_prologue): Use it.
189 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
191 * ra-rewrite.c: #include reload.h, insn-config.h
192 * ra-build.c: #include reload.h
193 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
194 depend on reload.h, insn-config.h.
196 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
198 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
199 the same size as a word.
201 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
202 BYTES_BIG_ENDIAN into account.
204 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
206 * i386.md (prefetch): Fix for 64bit mode.
207 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
209 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
211 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
213 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
215 2002-07-15 Zack Weinberg <zack@codesourcery.com>
217 * ginclude/varargs.h: Replace with stub which issues #error.
218 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
221 * builtins.def (BUILT_IN_VARARGS_START): Delete.
222 (BUILT_IN_VA_START): New.
223 * builtins.c (expand_builtin_va_start): Eliminate first
224 argument and code to implement pre-ISO varargs.
225 (std_expand_builtin_va_start): Ignore first argument; it is
227 (expand_builtin): Handle BUILT_IN_VA_START and
228 BUILT_IN_STDARG_START identically. Delete
229 BUILT_IN_VARARGS_START case.
231 * function.c (assign_parms): Delete hide_last_arg and all
233 (mark_varargs): Delete function.
234 * function.h (struct function): Delete 'varargs' bit.
235 (current_function_varargs): Delete macro.
236 * tree.h: Don't declare mark_varargs.
238 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
239 (c_expand_body): Don't call mark_varargs.
240 * c-objc-common.c: Handle BUILT_IN_VA_START and
241 BUILT_IN_STDARG_START identically. Delete
242 BUILT_IN_VARARGS_START case.
243 * c-tree.h: Don't declare c_mark_varargs.
244 * c-parse.in: Remove grammar rules for '&...' (which has been
245 commented out since before 2.7.2) and for '...' in K+R
246 argument declarations.
248 * builtins.c, function.c, integrate.c, sibcall.c,
249 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
250 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
251 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
252 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
253 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
254 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
255 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
256 config/stormy16/stormy16.c: Delete all references to
257 current_function_varargs, and code predicated on that flag.
259 * config/alpha/alpha.c (alpha_va_start),
260 config/arc/arc.c (arc_va_start),
261 config/i386/i386.c (ix86_va_start),
262 config/mips/mips.c (mips_va_start),
263 config/mn10300/mn10300.c (mn10300_va_start),
264 config/rs6000/rs6000.c (rs6000_va_start),
265 config/s390/s390.c (s390_va_start),
266 config/sh/sh.c (sh_va_start),
267 Ignore first argument; it is always 1.
269 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
270 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
271 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
272 Delete m68hc11_va_start.
273 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
274 No need to define EXPAND_BUILTIN_VA_START.
276 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
277 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
279 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
282 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
283 dies in more than one insn.
285 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
287 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
289 2002-07-15 Michael Matz <matz@suse.de>,
290 Daniel Berlin <dberlin@dberlin.org>,
291 Denis Chertykov <denisc@overta.ru>
293 Add a new register allocator.
297 * ra-build.c: New file.
298 * ra-colorize.c: New file.
299 * ra-debug.c: New file.
300 * ra-rewrite.c: New file.
302 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
303 (ra-rewrite.o): New .o files for libbackend.a.
304 (GTFILES): Add basic-block.h.
306 * toplev.c (flag_new_regalloc): New.
307 (f_options): New option "new-ra".
308 (rest_of_compilation): Call initialize_uninitialized_subregs()
309 only for the old allocator. If flag_new_regalloc is set, call
310 new allocator, instead of local_alloc(), global_alloc() and
313 * doc/invoke.texi: Document -fnew-ra.
314 * basic-block.h (FOR_ALL_BB): New.
315 * config/rs6000/rs6000.c (print_operand): Write small constants
318 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
319 (df_reg_table_realloc): Make size at least as large as max_reg_num().
320 (df_insn_table_realloc): Size argument now is absolute, not relative.
323 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
324 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
326 2002-06-20 Michael Matz <matz@suse.de>
328 * df.h (struct ref.id): Make unsigned.
329 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
331 2002-06-13 Michael Matz <matz@suse.de>
333 * df.h (DF_REF_MODE_CHANGE): New flag.
334 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
335 involving subregs with invalid mode changes, when
336 CLASS_CANNOT_CHANGE_MODE is defined.
338 2002-05-07 Michael Matz <matz@suse.de>
340 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
342 2002-05-03 Michael Matz <matz@suse.de>
344 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
346 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
348 * regclass.c (regclass): Work with all regs which have sets or
350 (reg_scan_mark_refs): Count regs inside (clobber ...).
352 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
354 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
355 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
357 (df_bb_refs_update): Don't clear insns_modified here, ...
358 (df_analyse): ... but here.
360 * sbitmap.c (dump_sbitmap_file): New.
361 (debug_sbitmap): Use it.
363 * sbitmap.h (dump_sbitmap_file): Add prototype.
365 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
367 * df.c (df_insn_modify): Grow the UID table if necessary, rather
368 than assume all emits go through df_insns_modify.
370 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
372 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
373 increase REG_N_REFS (like flow does), so that regclass doesn't
374 think a reg is useless, and thus, not calculate a class, when it
377 2001-01-28 Daniel Berlin <dberlin@redhat.com>
379 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
382 2002-07-15 Jakub Jelinek <jakub@redhat.com>
385 * config/i386/i386.c (const_int_1_31_operand): New.
386 * config/i386/i386.h (PREDICATE_CODES): Add it.
387 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
388 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
389 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
391 2002-07-14 Alan Modra <amodra@bigpond.net.au>
394 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
395 (floatunssidf2): Likewise.
396 (floatsidf_ppc64): New insn_and_split.
397 (floatunssidf_ppc64): Likewise.
399 2002-07-14 Andreas Jaeger <aj@suse.de>
401 * config.gcc (sh64): Remove unused
402 target_requires_64bit_host_wide_int.
404 2002-07-12 Roger Sayle <roger@eyesopen.com>
406 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
407 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
408 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
409 whether clear_by_pieces should be used to clear storage.
410 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
412 * doc/tm.texi: Document these two new target macros.
414 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
416 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
417 the scratch register.
418 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
419 of it, forbid reload to use it.
421 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
423 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
424 usage on 64-bit hosts, return value was truncated to 32 bits.
426 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
428 * simplify-rtx.c (simplify_subreg): Handle floating point
429 CONST_DOUBLEs. When an integer subreg of a smaller mode than
430 the element mode is requested, compute a subreg with an
431 integer mode of the same size as the element mode first.
433 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
435 * combine.c (try_combine): When converting a paradoxical subreg
436 to an extension, take LOAD_EXTEND_OP into account.
438 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
440 * config.gcc (mips-sgi-irix6*o32): New configuration.
442 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
444 * configure: Regenerate.
446 * config/mips/iris6-o32-as.h: New file.
447 * config/mips/iris6-o32.h: New file.
449 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
451 (HAVE_AS_SHF_MERGE): Undefine.
453 * config/mips/t-iris5-as: New file.
454 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
456 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
457 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
458 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
459 dp-bit.c, fp-bit.c): Move ...
460 * config/mips/t-iris5-6: ... here.
461 New file, shared by IRIX 5 and IRIX 6.
462 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
463 mips-sgi-irix5*): Use it.
465 * config/mips/iris6.h: Remove duplicate comment.
467 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
468 !TARGET_IRIX6]: Define.
469 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
471 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
473 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
475 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
476 and delete code to force constant to register.
477 * pa-protos.h (adddi3_operand): Add prototype.
478 * pa.c (adddi3_operand): New function.
480 2002-07-11 Roger Sayle <roger@eyesopen.com>
482 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
483 non-ANSI builtin functions.
485 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
487 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
488 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
489 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
490 (gen_const_vector_0): Use it.
492 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
494 * pa.md (adddi3): For 32-bit targets, force constants to a register
495 if they don't fit in an 11-bit immediate. Change insn predicate to
496 arith11_operand. Remove comment.
497 * pa.c (cint_ok_for_move): Fix comment.
498 (emit_move_sequence): Don't directly split DImode constants on 32-bit
501 2002-07-11 Tim Josling <tej@melbpc.org.au>
503 Remove front end hard coding from gengtype.c.
506 (STAGESTUFF): add gtyp-gen.h
507 (GTFILES): Remove front end specific files.
508 (GTFILES_FILES_LANGS): New, from configure..
509 (GTFILES_FILES_FILES): Likewise.
510 (GTFILES_LANG_DIR_NAMES): Likewise.
511 (GTFILES_SRCDIR): Likewise.
512 (gtyp-gen.h): Build from configure information.
513 (s-gtype): Remove command line parameters from gengtype.
514 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
515 (mostlyclean): Delete files generated by and for gengtype.
517 * c-config-lang.in: New file.
519 * configure.in (all_gtfiles_files_langs): New. Accumulate files
521 (all_gtfiles_files_files): New. Accumulate language for each file
523 (gtfiles): Pick up value for C.
524 (srcdir): AC-SUBST this variable.
525 (all_gtfiles_files_langs): AC-SUBST this variable.
526 (all_gtfiles_files_files): AC-SUBST this variable.
528 * configure: Regenerate.
530 * gengtype-lex.l (parse_file): Make parameter const.
532 * gengtype.c (toplevel): include gtyp-gen.h.
533 (BASE_FILE_<language> unnamed enum): Delete.
534 (lang_names): Delete (replaced by gtyp-gen.h)
535 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
538 (NUM_LANG_FILES): New.
540 (NUM_BASE_FILES): Change calculation.
541 (open_base_files): Change prototype to avoid warning.
542 (startswith): Delete.
543 (get_file_basename): Iterate through generated language list not
545 (get_base_file_bitmap): Use generated list of files and languages.
546 (close_output_files): Add prototype to rmove warning.
547 (main): Iterate through list of generated files from gtyp-gen.h
548 rather than command line paramaters. Ignore duplicated file
551 * gengtype.h (parse_file): Amend prototype for const parameter.
553 * doc/sourcebuild.texi: Document gtfiles variable.
555 * doc/gty.texi: Document changes to gtfiles variable for front
558 * objc/config-lang.in (gtfiles): Add files needed for objc front
561 2002-07-10 Roger Sayle <roger@eyesopen.com>
564 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
565 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
567 2002-07-10 Roger Sayle <roger@eyesopen.com>
568 Zack Weinberg <zack@codesourcery.com>
570 * builtins.def: Make the argument types of abort and exit
571 independent of the front-end.
573 2002-07-11 Alan Modra <amodra@bigpond.net.au>
575 * config/rs6000/linux64.h (ASM_SPEC): Define.
577 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
579 * config/rs6000/rs6000.c (emit_frame_save): New.
580 (rs6000_frame_related): Replace reg2 before reg.
581 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
582 and eh_return registers.
584 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
586 Revert all patches for optimization of Complex .op. Real.
587 * complex_part_zero_p: Remove
588 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
590 * expand_cmplxdiv_wide: Ditto.
591 * expand_binop: Ditto.
593 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
595 * config/avr/avr.md: Fix two 0x80000000 constants to make them
596 negative also on 64-bit hosts.
598 Default to -fno-reorder-blocks when optimizing for size.
599 * config/avr/avr-protos.h (avr_optimization_options): Declare.
600 * config/avr/avr.c (avr_optimization_options): New function.
601 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
603 Optimize returning from simple functions.
604 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
605 * config/avr/avr.c (avr_simple_epilogue): New function.
606 * config/avr/avr.md (return): New insn.
608 2002-07-10 Douglas B Rupp <rupp@gnat.com>
610 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
611 HAS_INIT_SECTION to protection.
613 2002-07-10 Mark Mitchell <mark@codesourcery.com>
615 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
618 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
620 * combine.c (gen_lowpart_for_combine): Handle vector modes.
621 Supply non-VOID mode to simplify_gen_subreg.
623 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
625 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
627 2002-07-10 Jeffrey A Law <law@redhat.com>
629 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
632 * mn10200.c (expand_epilogue): Fix test to determine which scratch
635 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
637 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
639 If simplify_gen_subreg fails, try next equivalent.
641 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
643 * diagnostic.h: #include location.h
644 (location_t): Move definition to..
645 * location.h: ... here. New file.
646 * tree.h: #include location.h
647 (DECL_SOURCE_LOCATION): New macro.
648 (DECL_SOURCE_FILE): Use.
649 (DECL_SOURCE_LINE): Likewise.
650 (struct tree_decl): REplace filename and linenum with locus.
651 * Makefile.in (TREE_H): add location.h
652 (diagnostic.o): Depends on gt-location.h
653 (gt-location.h): Depends on s-gtype
655 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
657 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
658 TARGET_OS_CPP_BUILTINS.
659 * config/rs6000/aix31.h: Likewise.
660 * config/rs6000/aix41.h: Likewise.
661 * config/rs6000/aix43.h: Likewise.
662 * config/rs6000/aix51.h: Likewise.
663 * config/rs6000/beos.h: Likewise.
664 * config/rs6000/darwin.h: Likewise.
665 * config/rs6000/eabi.h: Likewise.
666 * config/rs6000/eabisim.h: Likewise.
667 * config/rs6000/linux.h: Likewise.
668 * config/rs6000/linux64.h: Likewise.
669 * config/rs6000/lynx.h: Likewise.
670 * config/rs6000/mach.h: Likewise.
671 * config/rs6000/rtems.h: Likewise.
672 * config/rs6000/sysv4.h: Likewise.
673 * config/rs6000/vxppc.h: Likewise.
675 2002-07-09 Devang Patel <dpatel@apple.com>
676 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
677 Do not allow ObjC objects as a parameter type for Objective-C methods.
678 My previous patch restricted 'struct' also.
680 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
682 * cpperror.c (cpp_error): Default to directive_line within
684 * cppexp.c (cpp_interpret_integer): Only use traditional
685 number semantics in directives.
686 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
687 (do_include_common): Similarly.
688 * cpptrad.c (scan_out_logical_line): Implement accurate
689 quoting of <> in #include.
690 * doc/cpp.texi: Update.
692 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
693 J"orn Rennecke <joern.rennecke@superh.com>
695 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
696 * sh.md (attribute issues): Replace with:
697 (attribute pipe_model). All users changed.
698 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
700 (function units sh5issue, sh5fds): New.
701 (attribute is_mac_media): New.
702 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
703 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
704 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
705 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
706 (call_media, call_value_media, sibcall_media): Likewise.
707 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
708 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
709 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
710 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
711 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
712 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
713 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
714 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
715 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
716 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
717 (truncdfsf2_media): Likewise.
718 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
719 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
721 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
723 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
724 * sh.c (general_extend_operand, inqhi_operand): New functions.
725 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
726 alternatives using 'N' modifier. Add type.
727 (adddi3z_media): Likewise. Enable generator function generation.
728 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
729 exact predicates / constraints. Add type.
730 (subsi3): Allow 0 for SHMEDIA.
731 (udivsi3_i4_media): Use match_operand for input values
732 rather than hard registers.
733 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
734 unnecessarily through hard registers. Keep copies of pseudo
735 registers outside of the libcall sequence.
736 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
737 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
738 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
739 (extendhidi2, extendqidi2): Likewise.
740 (andsi3_compact): Name.
741 (andcdi3): Enable generator function generation.
742 (zero_extendhisi2, zero_extendqisi2): Rename to
743 (zero_extendhisi2_compact, zero_extendqisi2_compact).
744 (extendhisi2, extendqisi2): Rename to
745 (extendhisi2_compact, extendqisi2_compact).
746 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
747 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
748 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
749 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
750 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
751 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
752 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
753 (shmedia32_initialize_trampoline_big): Likewise.
754 (shmedia32_initialize_trampoline_little): Likewise.
755 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
756 (negdi2): Remove spurious T clobber.
757 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
758 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
759 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
760 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
761 (ic_invalidate_line_media): Write back data cache before invalidating
762 instruction cache. Add type.
763 (movsf_media): Sign-extend when the destination is a general
764 purpose register. Add type.
765 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
766 (casesi_worker_0+1): Only increment ref count for proper label.
767 (casesi_worker_0+2): Likewise.
769 2002-07-09 Mark Mitchell <mark@codesourcery.com>
771 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
773 2002-07-09 Steve Ellcey <sje@cup.hp.com>
775 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
776 from Pmode to ptr_mode.
777 (get_exception_pointer): Ditto.
778 (connect_post_landing_pads): Ditto.
779 (dw2_build_landing_pads): Ditto.
781 2002-07-08 Steve Ellcey <sje@cup.hp.com>
782 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
783 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
784 (handle_pragma_redefine_extname): Change to use new function.
786 2002-07-08 Roger Sayle <roger@eyesopen.com>
788 * combine.c (combine_simplify_rtx): Add an explicit cast
789 to avoid signed/unsigned comparison warning.
790 (simplify_if_then_else): Likewise.
791 (extended_count): Likewise.
792 (simplify_shift_const): Likewise.
793 (simplify_comparison): Likewise.
795 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
797 * config/mips/mips.md: Add imadd type. Update scheduler description
798 to use imadd as well as imul.
799 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
800 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
801 (*mul_sub_si): Likewise for first alternative. Change second
802 alternative from imul to multi.
804 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
806 * c-common.c (c_common_post_options): Update prototype;
807 don't init backends if preprocessing only.
808 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
809 * langhooks.h (struct lang_hooks): Update post_options to
811 * toplev.c (parse_options_and_default_flags, do_compile,
812 lang_independent_init): Update prototypes. Allow the
813 front end to specify that there is no need to initialize
815 (general_init): Move call to hex_init here...
816 (toplev_main): ...from here. Pass flag for back end init
819 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
821 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
822 (PREDICATE_CODES): Add entries for equality_comparison_operator,
823 greater_comparison_operator and less_comparison_operator.
824 * sh.c (print_operand): Add '\'' code. Make 'o' handle
826 (equality_comparison_operator): New function.
827 (greater_comparison_operator, less_comparison_operator): Likewise.
828 * sh.md (beq_media_i): Disable generator function generation.
829 Use match_operator to handle a whole class of comparisons. Add
830 modifier in output template to provide branch prediction. Add type.
831 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
832 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
833 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
834 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
836 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
838 Emit MMIX function prologue and epilogue as rtl.
839 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
840 not unprototyped get_hard_reg_initial_val.
841 ("call_value", "nonlocal_goto_receiver"): Ditto.
842 ("return"): Make define_expand. Move real insn to...
843 ("*expanded_return"): New pattern.
844 ("prologue", "epilogue"): New define_expands.
845 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
846 (struct machine_function): New member in_prologue.
847 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
848 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
849 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
850 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
851 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
852 (LOCAL_REGNO): Define. Adjust comment.
853 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
854 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
856 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
858 (mmix_target_asm_function_prologue): Make static. Just mark that
859 the prologue is being emitted. Move guts to...
860 (mmix_expand_prologue): New function. Adjust for emitting
861 prologue as rtl. For sizes, use HOST_WIDE_INT only.
862 (mmix_target_asm_function_epilogue): Make static. Simply emit a
864 (mmix_expand_epilogue): New function. Adjust for emitting
865 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
866 (mmix_target_asm_function_end_prologue): Mark that the prologue
868 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
869 (mmix_conditional_register_usage): Improve comments.
870 (mmix_local_regno): New function.
871 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
872 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
873 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
874 (mmix_get_hard_reg_initial_val): Ditto.
876 2002-07-06 Andreas Jaeger <aj@suse.de>
878 * toplev.c (set_fast_math_flags): Don't use ISO C style function
880 * gengtype.c (open_base_files): Likewise.
881 (close_output_files): Likewise.
882 * tracer.c (find_best_predecessor): Likewise.
883 (find_best_successor): Likewise.
884 (ignore_bb_p): Likewise.
886 2002-07-05 Roger Sayle <roger@eyesopen.com>
889 * builtin-attrs.def: Define new attribute lists for use in
891 * builtins.def [DEF_BUILTIN]: Modify to take an additional
892 ATTRS argument, an enumerated value defined in builtin-attrs.def
893 that represents the attribute list for the builtins. Modify
894 all builtin functions to pass an appropriate attribute list.
895 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
896 their required noreturn attributes.
897 * tree.h (enum_builtin_function): Ignore the additional parameter
899 * builtins.c (built_in_names): Likewise.
900 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
901 argument with a tree representing the functions attribute list.
902 Pass this "attrs" argument to builtin_function. No longer handle
903 the noreturn_p processing manually.
904 (built_in_attributes): Move the definitions from builtin-attrs.def
905 before c_common_nodes_and_builtins.
906 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
907 DEF_BUILTIN, passing it to both builtin_function and the changed
910 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
911 __builtin__exit and __builtin__Exit.
913 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
915 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
916 QI mode registers in soft registers.
917 ("zero_extendqihi2"): Do not take into account soft registers
918 for register allocation (use '*' constraint).
920 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
922 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
924 ("*ashrsi3"): Likewise.
925 ("*lshrsi3"): Likewise.
927 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
929 * genautomata.c (output_max_insn_queue_index_def): Take latencies
932 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
934 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
935 address computation and memory moves.
937 2002-07-03 Mark Mitchell <mark@codesourcery.com>
940 * dwarfout.c (output_reg_number): Fix warning message.
941 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
944 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
946 * gcc/gcc.c (asm_debug): Move initialization ...
947 (init_spec): ... here.
949 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
951 * c-parse.in (extdef): Append ';'.
952 (old_style_parm_decls): Append ';'.
954 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
956 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
957 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
958 to gcc_cv_as_gstabs_flag.
959 * configure: Rebuilt.
961 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
963 * ggc.h (ggc_add_root): Document as obsolete.
965 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
967 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
968 (mshflo_w): Likewise.
970 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
972 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
973 vector mode subregs of constants to finding integer mode
974 subregs of constants.
975 * cse.c (cse_insn): Use simplify_gen_subreg.
976 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
977 From a vector mode expression of different size than the
980 2002-07-03 Eric Christopher <echristo@redhat.com>
982 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
983 * config/mips/mips.h: Remove deprecated -m<processor> options
984 and cc1_cpu_spec associated.
985 (CONSTANT_ADDRESS_P): Fix last patch.
986 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
987 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
990 2002-07-03 Stan Shebs <shebs@apple.com>
992 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
993 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
994 (CPP_SPEC): Remove insertion of APPLE_CC definition.
996 2002-07-03 Roger Sayle <roger@eyesopen.com>
998 * combine.c (struct_undo): Change types of recorded substitutions
999 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
1000 (do_SUBST_INT): Change types of the substitution from unsigned int
1001 to int, to avoid compilation warning from SUBST_INT's only caller.
1003 (make_extraction): Add cast to avoid compilation warning.
1004 (force_to_mode): Remove cast to avoid compilation warning.
1006 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
1007 Jeff Law <law@redhat.com>
1009 * i386.md (length_immediate attribute): Fix typo.
1010 (length_address attribute): Likewise.
1011 (modrm attribute): Set it to 0 for immediate call instructions.
1012 (jcc_1 pattern): Set modrm attribute to 0.
1013 (jcc_2 pattern ): Likewise.
1014 (jump pattern): Likewise.
1015 (doloop_end_internal pattern): Explicitly set length.
1016 (leave pattern): Fix typo.
1017 (leave_rex64 pattern): Likewise.
1019 2002-07-03 David Edelsohn <edelsohn@gnu.org>
1021 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1022 in FPR as preference.
1024 (floatdidf2, fix_truncdfdi2): Same.
1025 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1027 (floatsitf2, fix_trunctfsi2): SImode in GPR.
1028 (ctrdi): Remove FPR alternative and splitter.
1030 2002-07-03 Will Cohen <wcohen@redhat.com>
1032 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
1034 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
1036 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
1037 than UNITS_PER_WORD, unless this is little endian and the first unit
1038 in this word. Let extract_bit_field decide how to load an element.
1039 Force arguments to matching mode.
1040 (expand_vector_unop): Likewise.
1042 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
1043 consist of word_mode elements.
1044 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
1045 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
1046 (build_unary_op): Allow vector types for BIT_NOT_EPR.
1047 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
1049 * optabs.c (expand_vector_binop): Try to perform operation in
1050 smaller vector modes with same inner size. Add handling of AND, IOR
1051 and XOR. Reject expansion to inner-mode sized scalars when using
1052 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
1053 (expand_vector_unop): Try to perform operation in smaller vector
1054 modes with same inner size. Add handling of one's complement.
1055 When there is no vector negate operation, try a vector subtract
1056 operation. Use simplify_gen_subreg on constants.
1057 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
1058 constants into smaller vectors with same inner mode, and to
1059 integer CONST_DOUBLEs.
1061 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1063 * c-parse.in (parsing_iso_function_signature): New variable.
1064 (extdef_1): New, copied from...
1065 (extdef): ... here. Reset parsing_iso_function_signature.
1066 (old_style_parm_decls): Reset parsing_iso_function_signature.
1067 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
1068 Warn about ISO C style function definitions.
1069 (nested_function, notype_nested_function): Reset
1070 parsing_iso_function_signature.
1071 (parmlist_2): Set parsing_iso_function_signature.
1073 * doc/invoke.texi (-Wtraditional): Document new behavior.
1075 2002-07-02 Chris Demetriou <cgd@broadcom.com>
1077 * config.gcc (mips*el-*-*): Use tm_defines to set
1078 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
1079 * config/mips/little.h: Remove.
1081 2002-07-02 Devang Patel <dpatel@apple.com>
1083 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
1084 object as parameter. Prevent something like 'NSObject' to be
1085 used as the type for a method argument.
1087 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
1089 * cpptrad.c: Update comment.
1091 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1093 * doc/cpp.texi: Update for traditional preprocessing changes.
1094 * goc/cppopts.texi: Similarly.
1096 2002-07-02 Ziemowit Laski <zlaski@apple.com>
1098 * c-parse.in (designator): Enable designated initializers if ObjC.
1099 (objcmessageexpr): Remove references to objc_receiver_context.
1100 * objc/objc-act.h (objc_receiver_context): Remove decl.
1101 * objc/objc-act.c (objc_receiver_context): Remove.
1102 (lookup_objc_ivar): Test objc_method_context instead of
1103 objc_receiver_context.
1105 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1107 * sh.c (print_operand, case 'N'): Allow zero vector.
1108 (arith_reg_or_0_operand): Likewise.
1109 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
1110 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
1111 IOR, XOR, PLUS and SET and take their respective constant
1112 ranges into account.
1113 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
1114 * sh.md (subdi3, subdi3_media): Allow zero operand.
1115 (movv8qi_i+3): Only vector that is not split is the zero vector.
1116 Fix operand 3 to simplify_subreg.
1117 (movv2si_i): Split alternative 1.
1118 (mshfhi_l_di_rev+1): New splitter.
1120 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
1122 PR preprocessor/7029
1123 * cppinit.c (cpp_handle_option): Suppress warnings with an
1124 implicit "-w" for "-M" and "-MM".
1125 * doc/cppopts.texi: Update.
1127 2002-07-01 Roger Sayle <roger@eyesopen.com>
1129 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
1130 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
1133 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1135 * README.Portability: Fix typos.
1137 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
1140 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1141 of indirections for register inside sign-extended mem part.
1143 2002-07-01 Roger Sayle <roger@eyesopen.com>
1145 * tree.h: Modify builtin_function interface to take an extra
1146 argument ATTRS, which is a tree representing an attribute list.
1148 * c-decl.c (builtin_function): Accept additional parameter.
1149 * objc/objc-act.c (builtin_function): Likewise.
1150 * f/com.c (builtin_function): Likewise.
1151 * java/decl.c (builtin_function): Likewise.
1152 * ada/utils.c (builtin_function): Likewise.
1153 * cp/decl.c (builtin_function): Likewise.
1154 (builtin_function_1): Likewise.
1156 * c-common.c (c_common_nodes_and_builtins): Pass an additional
1157 NULL_TREE argument to builtin_function. (builtin_function_2):
1159 * cp/call.c (build_java_interface_fn_ref): Likewise.
1160 * objc/objc-act.c (synth_module_prologue): Likewise.
1161 * java/decl.c (java_init_decl_processing): Likewise.
1162 * f/com.c (ffe_com_init_0): Likewise.
1164 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
1165 NULL_TREE argument to builtin_function.
1166 * config/arm/arm.c (def_builtin): Likewise.
1167 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
1168 * config/i386/i386.c (def_builtin): Likewise.
1169 * config/ia64/ia64.c (def_builtin): Likewise.
1170 * config/rs6000/rs6000.c (def_builtin): Likewise.
1172 2002-07-01 Zack Weinberg <zack@codesourcery.com>
1174 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
1175 * config/mips/t-isa3264: Likewise.
1176 * config/mmix/t-mmix: Likewise.
1178 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1180 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1182 2002-07-01 Roger Sayle <roger@eyesopen.com>
1185 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
1186 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
1189 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
1191 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
1193 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
1195 * README.Portability (Function prototypes): Give an example of
1196 declaring and defining a function with no arguments.
1198 * README.Portability (Function prototypes): Document new
1199 variable-argument function macros.
1201 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1203 * sh.c (langhooks.h): Include.
1204 (sh_init_builtins, sh_media_init_builtins): New functions.
1205 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
1206 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
1207 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
1208 (builtin_description): New struct tag.
1209 (signature_args, bdesc): New arrays.
1210 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
1211 (print_operand): Add 'N' modifier.
1212 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
1213 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
1214 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
1215 (CONST_COSTS): Add special case for SHmedia AND.
1216 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
1217 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
1218 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
1219 target_operand can also be const or unspec.
1220 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
1221 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
1222 (attribute type): Add new types.
1223 (anddi3): Add splitter.
1224 (movdi_const_16bit+1): Add code to handle vector constants and
1225 bitmasks efficiently.
1226 (shori_media): Have generator function made.
1227 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
1228 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
1229 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
1230 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
1231 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
1232 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
1233 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
1234 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
1235 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
1236 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
1237 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
1238 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
1239 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
1240 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
1241 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
1242 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
1243 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
1244 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
1245 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
1248 (fpu_switch+1, fpu_switch+2): Remove constraint.
1250 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
1252 * tree.c (build_function_type_list): Update function comment.
1253 Rename first argument to return_type.
1255 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1257 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
1258 tradcif.y and related files.
1260 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
1262 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
1264 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1266 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
1268 2002-06-30 Devang Patel <dpatel@apple.com>
1270 * objc/objc-act.c (finish_file): Avoid finish_objc() if
1273 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
1274 Frank Ch. Eigler <fche@redhat.com>
1275 Matthew Green <mrg@redhat.com>
1276 Richard Henderson <rtl@redhat.com>
1277 Dave Hudson <dave.hudson@ubicom.com>
1278 Jeff Johnston <jjohnstn@redhat.com>
1279 Alan Lehotsky <apl@alum.mit.edu>
1280 Bernd Schmidt <bernds@redhat.com>
1281 Graham Stott <grahams@redhat.com>
1283 * doc/extend.texi: Add ip2k port to description of attribute
1285 * doc/install.texi (Specific): Add ip2k description.
1286 * doc/install-old.texi (Configurations): Add ip2k to possible
1288 * doc/md.texi: Document ip2k constraints.
1289 * config/ip2k/crt0.S: New file.
1290 * config/ip2k/ip2k-protos.h: New file.
1291 * config/ip2k/ip2k.c: New file.
1292 * config/ip2k/ip2k.h: New file.
1293 * config/ip2k/ip2k.md: New file.
1294 * config/ip2k/libgcc.S: New file.
1295 * config/ip2k/t-ip2k: New file.
1297 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
1299 * config/mmix/mmix.md ("return"): New pattern.
1300 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
1301 (TARGET_USE_RETURN_INSN): New macros.
1302 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
1303 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
1304 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
1305 (MMIX_POP_ARGUMENT): New macro.
1306 (mmix_target_asm_function_prologue): When no epilogue is executed,
1307 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
1308 (mmix_print_operand) <case '.'>: New case.
1309 (mmix_print_operand_punct_valid_p): Match '.'.
1310 (mmix_use_simple_return): New function.
1311 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
1312 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
1313 -msingle-exit, -mno-single-exit.
1314 (MMIX Options): Ditto.
1316 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
1318 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
1320 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1322 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
1324 2002-06-30 Alan Modra <amodra@bigpond.net.au>
1326 * unroll.c (loop_iterations): Handle EQ loops.
1328 2002-06-29 David Edelsohn <edelsohn@gnu.org>
1330 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1331 constraint in define_expand, not splitter.
1334 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
1336 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
1337 build_function_type_list instead of build_function_type.
1339 * config/ia64/ia64.c (ia64_init_builtins): Same.
1341 * config/alpha/alpha.c (alpha_init_builtins): Same.
1343 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
1345 * config/arm/arm.c (arm_init_builtins): Same.
1347 * tree.h: Add build_function_type_list prototype.
1349 * tree.c (build_function_type_list): New.
1351 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1353 * collect2.c (scan_prog_file): Fix typo in message.
1355 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
1357 * fold-cont.c: Remove unused CHARMASK.
1359 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
1361 PR preprocessor/7150
1362 * cppmain.c (scan_translation_unit_trad): Simplify.
1363 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
1365 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
1367 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
1368 Don't use CPP_PREDEFINES.
1369 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
1370 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
1371 * config/i386/djgpp.h, config/i386/i386-coff.h,
1372 config/i386/i386-interix.h, config/i386/i386-interix3.h,
1373 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
1374 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
1375 config/i386/uwin.h: Similarly.
1377 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1379 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
1380 flag_inline_trees to enable inlining.
1382 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
1384 * configure.in (gcc_gxx_include_dir): Change to match versioned
1385 C++ headers if --enable-version-specific-runtime-libs is used.
1386 * configure: Regenerate.
1388 2002-06-28 Jan Hubicka <jh@suse.cz>
1390 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
1392 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
1394 * combine.c (combine_simplify_rtx): Pass the mode of the
1395 shift count, not the shift operation when trying to simplify
1396 a shift on a SHIFT_COUNT_TRUNCATED target.
1398 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1400 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1401 avoid the auto increment addressing modes.
1402 ("*subsi3"): Likewise.
1403 (split for add/sub on address): For 68HC12 push the value on
1404 the stack and do the operation with a pop.
1406 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1408 * cpplib.c (_cpp_handle_directive): Move #define-specific
1409 code to the #define handler...
1410 (do_define): ...here.
1411 (lex_macro_node): No longer a need to check for comments here.
1413 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1415 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1416 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1418 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1419 do not reorder basic blocks at the end when optimizing for size.
1421 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
1423 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1424 (m68hc11_make_autoinc_notes): New function.
1425 (m68hc11_split_move): Be very cautious when spliting a move with
1426 auto increment/decrement modes because this may result in incompatible
1427 directions; add REG_INC notes to the resulting insn for CSE reg.
1429 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
1431 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1432 can be a valid address.
1434 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
1436 * config/rs6000/rs6000.c: Remove unusued variables from last
1439 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1442 * config/rs6000/rs6000.c (rs6000_override_options): Move
1443 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1445 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1447 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
1448 lvx/stv/dst builtins...
1449 (altivec_expand_ld_builtin): ...to here.
1450 (altivec_expand_st_builtin): ...here.
1451 (altivec_expand_dst_builtin): ...and here (respectively).
1453 2002-06-28 Bob Wilson <bob.wilson@acm.org>
1455 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
1457 2001-06-08 Bernd Schmidt <bernds@redhat.com>
1459 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1461 * recog.c (general_operand, register_operand): Disallow them.
1463 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
1465 PR preprocessor/7138
1466 * cpplib.c (_cpp_handle_directive): Do traditional
1467 preparation after setting state.angled_headers.
1468 * cpptrad.c (scan_out_logical_line): Fix potential
1471 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
1473 * config/rs6000/rs6000.c (rs6000_override_options): Move
1474 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
1476 2002-06-27 Bob Wilson <bob.wilson@acm.org>
1478 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
1479 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
1480 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
1482 2002-06-27 Roger Sayle <roger@eyesopen.com>
1484 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
1485 * config/stormy16/stormy16.h: Likewise.
1487 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
1490 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1492 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
1493 Hitachi entry. Make punctuation more consistent.
1495 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
1497 * doc/install.texi: Change ` bit' to `-bit'.
1498 * doc/md.texi: Change `-bits' to `-bit'.
1499 * doc/tm.texi: Change `-bits' to ` bits'.
1501 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
1503 * gcse.c (hoist_code): Rewrite to only get list of dominated
1504 blocks once per BB. Also fix reversed test (by removing need for
1507 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1509 * cpphash.h (_cpp_set_trad_context): Remove.
1510 * cpplib.c (prepare_directive_trad): Do nothing for #define.
1511 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
1512 * cpptrad.c: Update comments.
1513 (_cpp_read_logical_line_trad): Let scan_logical_line handle
1514 updating the current context.
1515 (scan_logical_line): Update the current context.
1516 (_cpp_create_trad_definition): Similarly.
1517 (_cpp_set_trad_context): Remove.
1519 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
1521 PR preprocessor/7070
1522 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1524 2002-06-26 Bob Wilson <bob.wilson@acm.org>
1526 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1527 config/xtensa/xtensa.c (xtensa_return_addr): New function.
1528 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1529 config/xtensa/xtensa.md (fix_return_addr): New pattern.
1531 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1533 * mips.c (coprocessor_operand, coprocessor2_operand,
1534 symbolic_operand): Move prototypes from here...
1535 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
1536 symbolic_operand): ...to here.
1538 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1540 * config/sh/crt1.asm: remove _stack label definition
1543 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1545 * varasm.c: Include real.h before output.h.
1547 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
1549 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
1550 check for TARGET_ALTIVEC.
1552 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1554 * config.gcc (vax-*-vms*): Make obselete.
1556 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558 * gcc.c (warn_std): Delete.
1560 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
1562 * doc/extend.texi: Fix formatting of last checkin.
1564 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1566 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
1567 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
1569 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
1571 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1572 discrepancies from motorola's documentation.
1574 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
1576 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
1577 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
1579 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
1580 produce a 32 bit result before normalization, then normalize with a
1581 left shift. Compute approximative error of 2nd reciprocal
1582 approximation in 2's complement. Fix mask generation from upper
1583 longword of second divide stage result.
1584 For large divisor, fix shift count used to truncate first stage
1585 divide result; make decision if to adjust upwards based on comparison
1586 of higher parts of normalized values.
1587 (udivdi): Likewise. Undo normalization of result for large divisor
1590 2002-06-25 David S. Miller <davem@redhat.com>
1592 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
1594 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
1596 * cpplib.c (do_include_common): Revert to correct line number
1598 * cpptrad.c (scan_out_logical_line): Treat null directive as
1599 white space. Invlidate MI optimization for non-whitespace
1600 text outside a directive.
1602 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1604 * Makefile.in (SHELL): Set to @SHELL@.
1605 * fixinc/Makefile.in (SHELL): Likewise.
1607 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
1608 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
1611 2002-06-24 Jeff Law <law@redhat.com>
1613 * flow.c (propagate_one_insn): When removing an insn
1614 with a REG_LIBCALL note but not the entire libcall sequence,
1615 delete the associated REG_RETVAL note.
1617 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
1619 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1620 (udivsi3): Likewise. Rewrite SH1 implementation.
1621 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1622 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1623 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1624 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1625 (_moddi3): Likewise.
1627 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
1629 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1630 arguments into account for stack_regs.
1632 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
1634 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
1637 2002-06-24 Art Haas <ahaas@neosoft.com>
1639 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
1640 * doc/tm.texi (Frame Layout): Likewise.
1642 2002-06-20 Steve Ellcey <sje@cup.hp.com>
1644 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
1645 Set float_format to i128.
1647 2002-06-24 David S. Miller <davem@redhat.com>
1649 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
1650 32-bit ABI libfuncs to NULL.
1652 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
1653 strings instead of quoted strings for code blocks.
1655 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1656 optabs if op1 is const0_rtx.
1658 * Makefile.in (GTFILES): Add basic-block.h
1659 * basic-block.h (label_value_list, tail_recursion_label_list):
1662 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
1664 * cpptrad.c (scan_out_logical_line): Check recursing only when
1665 we know we have a macro invocation in the function-like case.
1666 Only call _cpp_handle_directive if we know we have a good
1667 directive, or we want to reject a bad directive.
1669 2002-06-24 Alan Modra <amodra@bigpond.net.au>
1671 * doloop.c (doloop_valid_p): Correct comment.
1672 (doloop_modify_runtime <abs_inc != 1>): Simplify.
1673 (doloop_modify_runtime <do-while>): Don't emit code when NE.
1675 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
1677 * config.gcc: Add support for ip2k.
1679 2002-06-23 Jan Hubicka <jh@suse.cz>
1680 Jeff Law <law@redhat.com>
1682 * function.h (struct emit_status): Clarify potential contents
1683 of regno_reg_rtx array.
1684 * integrate.c (copy_rtx_and_substitute): Update comments. Make
1685 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
1687 * reg-stack.c (convert_regs_exit): Push the registers to stack in
1690 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1693 * function.c (assign_stack_temp_for_type): Do not return
1694 the same MEM rtx for multiple uses of a stack slot.
1696 2002-06-22 David S. Miller <davem@redhat.com>
1698 PR target/6841 target/6770 target/6719
1699 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1700 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1701 GENERAL_OR_EXTRA_FP_REGS.
1703 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
1705 * cpptrad.c (struct fun_macro): Add line number.
1706 (scan_out_logical_line): Set it, and use it to report unterminated
1709 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1711 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
1712 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
1713 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
1714 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
1715 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
1716 REGEXP_ONEOF, check_name): Const-ify.
1718 2002-06-21 Matt Thomas <matt@3am-software.com>
1720 * config/vax/vax.c (vax_output_function_prologue): Use
1721 REGISTER_PREFIX. Fix some indentation.
1722 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
1723 (VAX_ISTREAM_SYNC): Define.
1724 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
1725 i-stream sync to the end.
1726 (REGISTER_PREFIX): Define as "".
1727 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
1729 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
1731 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
1734 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1736 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
1737 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
1739 2002-06-21 Matt Thomas <matt@3am-software.com>
1741 * config/vax/netbsd.h: Adjust a comment.
1742 (TARGET_DEFAULT): Redefine as 0.
1744 2002-06-21 Richard Henderson <rth@redhat.com>
1746 * bb-reorder.c (make_reorder_chain_1): Search harder for the
1747 vax casesi fallthru edge.
1748 * cfglayout.c (cleanup_unconditional_jumps): Use
1749 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
1750 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
1751 block after ADDR_VEC.
1753 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1755 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1757 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
1759 * cpperror.c (cpp_error): For traditional CPP, default to
1760 diagnostics on pfile->line.
1761 * cpplib.c (prepare_directive_trad): Set line number for
1762 diagnostics for #define too.
1763 * cpptrad.c (skip_whitespace): Skip comments properly.
1764 (_cpp_expansions_different_trad): Initialize quote2.
1766 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
1768 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
1769 * config/mmix/mmix.h: Ditto.
1770 * config/mmix/mmix-protos.h: Ditto.
1771 * config/mmix/mmix.c: Ditto. Fix typo in comment.
1772 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
1773 comment. Comment extra CC modes.
1775 2002-06-20 Jan Hubicka <jh@suse.cz>
1777 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
1778 (scope_to_insns_finalize): Do not call set_block_levels; handle
1780 (choose_inner_scope): New.
1781 * rtl.h (choose_inner_scope): Declare.
1783 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1785 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
1787 * pa.c (pa_asm_output_mi_thunk): Likewise.
1788 (n_deferred_plabels): Change type to size_t.
1789 (output_deferred_plabels, output_call): Use size_t instead of int.
1791 2002-06-20 Richard Henderson <rth@redhat.com>
1794 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
1795 pattern and adjust constraints for coldfire.
1797 2002-06-20 Richard Henderson <rth@redhat.com>
1799 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
1801 2002-06-20 Chris Demetriou <cgd@broadcom.com>
1803 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
1805 2002-06-20 Chris Demetriou <cgd@broadcom.com>
1807 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
1809 2002-06-20 Stan Shebs <shebs@apple.com>
1811 * dominance.c: Include errors.h instead of error.h.
1813 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
1815 * cppexp.c (cpp_interpret_integer): Don't force traditional
1816 numbers to be unsigned.
1817 * cpplib.c (prepare_directive_trad): Set line number for
1819 * cpptrad.c (scan_out_logical_line): Continue scanning out
1821 * gcc.c (trad_capable_cpp): Use cc1 always.
1823 2002-06-20 Jeffrey Law <law@redhat.com>
1825 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
1826 elimination in leaf functions by default yet.
1828 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
1830 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
1832 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1834 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
1836 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1837 Fixes PR other/6836.
1839 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
1840 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1842 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
1844 * basic-block.h: Do not include et-forest.h
1845 (dominance_info): Declare as struct dominance-info.
1846 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
1848 * dominance.c (struct dominance_info): Define.
1849 (BB_NODE, SET_BB_NODE): New macros.
1850 (bb_hash_func, bb_eq_func): Kill.
1851 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
1852 nearest_common_dominator, dominated_by_p, recount_dominator,
1853 add_to_dominance_info, delete_from_dominance_info): update for new
1855 (get_dominated_by, redirect_immediate_dominators): Rewrite using
1857 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
1858 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
1861 * et-forest.h: Update copyright; revamp all function to operate on
1863 (et_forest_value): Kill.
1864 (et_forest_enumerate_sons, et_forest_node_value): New.
1865 * et-forest.c: Update copyright.
1866 * et-forest.h: Update copyright; revamp all function to operate on
1868 (et_forest_value): Kill.
1869 (et_forest_enumerate_sons, et_forest_node_value): New.
1871 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1873 * basic-block.h: Inlude et-forest.h
1874 (basic_block_def): Kill dominator.
1875 (dominance_info): New type.
1876 (loops): Use dominace_info.
1877 (dominace handling functions): Take dominace_info as argument
1879 (create_preheader): Likewise.
1880 * cfg.c (entry_exit_blocks): Kill dominator.
1881 (dump_flow_info): Do not dump dominators.
1882 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
1884 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
1885 (flow_loops_pre_header_scan, make_forwarder_block,
1886 canonicale_loop_headers, flow_loops_find): Likewise.
1887 * dominance.c: Include error.h
1888 (idoms_to_doms): Kill.
1889 (bb_hash_func, bb_eq_func): New static functions.
1890 (debug_dominace_info): New global function.
1891 (calculate_dominance_info): Use new et forest structure.
1892 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
1893 get_dominated_by, redirect_immediate_dominators,
1894 nearest_common_dominator, dominated_by_p, verify_dominators,
1895 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
1896 delete_from_dominance_info): New global functions.
1897 * gcse.c (domnators): CHange to dominance_info.
1898 (alloc_hoist_mem): Do not alloc dominators
1899 (free_code_hoist_mem): Use free_dominance_info.
1900 (compute_code_hoist_data): Use dominance_info.
1901 (hoist_code): Likewise.
1902 * ifcvt.c (post_dominators): Likewise.
1903 (find_if_case_2, if_convert): Likewise.
1904 * predict.c (process_note_predictions, process_note_prediction,
1905 estimate-probability): Likewise.
1906 * sched-rgn.c (find_rgns, init_regions): Likewise.
1907 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
1908 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
1909 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
1910 find_evaluations, convert_to_ssa): Likewise.
1911 * ssa.h (compute_dominance_frontiers): Likewise.
1913 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1915 * Makefile.in (et-forest.c): Add.
1916 * et-forest.c: New file.
1917 * at-forest.h: New file.
1919 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1921 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
1922 array size calculation.
1923 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
1926 * diagnostic.c (diagnostic_kind_text): Const-ify.
1927 * gengtype.c (lang_names): Likewise.
1929 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
1931 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
1933 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1935 * config/sol2.h: New file.
1936 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
1937 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
1938 (sparc-*-chorusos*): Likewise.
1939 (sparc-*-elf*): Likewise.
1940 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
1941 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
1942 (sparc-hal-solaris2*): Likewise.
1943 (sparc-*-solaris2*): Likewise.
1944 (sparclite-*-elf*): Likewise.
1945 (sparc86x-*-elf*): Likewise.
1946 (sparc64-*-elf*): Likewise.
1948 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
1950 (ASM_SPEC): Override config/sol2.h version for now.
1951 Removed obsolete GAS_REJECTS_MINUS_S variant.
1952 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
1953 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1954 (TARGET_OS_CPP_BUILTINS): Likewise.
1956 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
1957 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
1959 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1960 (ASM_CPU_SPEC): Define.
1961 (SUBTARGET_EXTRA_SPECS): Define.
1963 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
1964 in config/sparc/sol2.h.
1965 (ASM_SPEC): Moved to config/sol2.h.
1966 (CPP_CPU_SPEC): Simplified.
1967 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
1969 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
1970 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
1971 STARTFILE_ARCH64_SPEC.
1972 (STARTFILE_SPEC): Moved to config/sol2.h
1973 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
1974 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
1975 (LINK_ARCH64_SPEC): Simplified.
1976 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
1977 (LINK_SPEC): Moved to config/sol2.h
1979 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
1981 Use BITS_PER_WORD for size.
1982 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
1983 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1984 (CPP_PREDEFINES): Removed OS-specific part handled by
1985 TARGET_OS_CPP_BUILTINS.
1986 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
1987 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
1988 (ASM_SPEC): Moved to config/sol2.h.
1989 (PREFERRED_DEBUGGING_TYPE): Likewise.
1990 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
1991 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1992 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
1993 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
1995 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
1996 * config/i386/sol2gas.h: Removed.
1998 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2000 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
2002 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
2004 * gcc.c-torture/execute/simd-1.c: New.
2006 * gcc.dg/simd-1.c: New.
2008 * doc/extend.texi (Vector Extensions): Document that we can
2009 specify simd types not specifically supported by the hardware.
2010 Document that simd types can be used as function arguments.
2011 Document that signness does make a difference in SIMD types.
2012 Misc cleanups and revisions to the vector extensions section.
2014 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
2017 * expr.c (vector_mode_valid_p): New.
2019 * expr.h: Add vector_mode_valid_p.
2021 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
2023 * c-common.c (type_for_mode): Always build vector nodes regardless
2024 of VECTOR_MODE_SUPPORTED_P.
2025 (handle_mode_attribute): Error if we can't emulate a nonexisting
2027 (handle_vector_size_attribute): Same.
2029 * optabs.c (expand_binop): Open-code vector operations.
2030 (expand_unop): Open-code vector unops.
2031 (expand_vector_binop): New.
2032 (expand_vector_unop): New.
2034 * c-typeck.c (build_binary_op): Allow vectors in binops.
2035 Allow vectors in conditional operatiors.
2036 (build_unary_op): Allow vectors in unary minus.
2038 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
2041 2002-05-20 Richard Henderson <rth@redhat.com>
2043 * c-common.c (c_common_get_alias_set): Correctly handle characters.
2044 Rearrange order of expressions; don't handle vectors here.
2045 * alias.c (get_alias_set): Let vectors match their components.
2047 2002-06-19 Chris Demetriou <cgd@broadcom.com>
2049 * config/mips/mips.c (mips_emit_prefetch): Use hints which
2050 match desired locality.
2052 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2054 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
2055 (h8300_insert_attributes): New.
2057 2002-06-19 Akim Demaille <akim@epita.fr>
2059 * c-parse.in (initelt: identifier ':' initval): Add an empty
2060 action to fix a type clash.
2061 (aliasdecl, classdef): Add the missing closing `;'.
2063 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
2064 $$ = $1 type clashes.
2066 2002-06-19 Eric Christopher <echristo@redhat.com>
2068 * config/mips/mips.c (symbol_operand): New function.
2069 (mips_emit_prefetch): Ditto.
2070 * config/mips/mips-protos.h: Define.
2071 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
2072 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
2073 (LEGITIMIZE_ADDRESS): Ditto.
2074 * config/mips/mips.md (prefetch, prefetch_si_address,
2075 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
2077 2002-06-19 Eric Christopher <echristo@redhat.com>
2079 * config/fp-bit.h: Add unordered defines for gofast.
2081 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
2083 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
2084 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
2085 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
2086 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
2087 checking and without it.
2088 (decl_name, decl_mode_check_failed, regexp_name,
2089 regexp_mode_check_failed): New functions.
2090 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2091 gen_presence_set, gen_absence_set, gen_automaton,
2092 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
2093 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
2094 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
2095 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
2096 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
2097 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
2098 (decl_hash, decl_eq_p): Use the macros.
2099 (find_decl): Ditto. Set up mode of work_decl.
2100 (process_excls, process_presence_absence, process_decls,
2101 check_automaton_usage, process_regexp, process_regexp_decls,
2102 check_usage, loop_in_regexp, check_loops_in_regexps,
2103 process_regexp_cycles, add_advance_cycle_insn_decl,
2104 initiate_states, initiate_excl_sets,
2105 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
2106 transform_2): Use the macros.
2107 (transform_3): Ditto. Check mode before making transformations of
2109 (regexp_transform_func, transform_insn_regexps,
2110 process_unit_to_form_the_same_automaton_unit_lists,
2111 form_the_same_automaton_unit_lists_from_regexp,
2112 form_the_same_automaton_unit_lists,
2113 process_seq_for_forming_states, process_alts_for_forming_states,
2114 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
2115 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
2116 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
2117 units_to_automata_heuristic_distr, create_ainsns,
2118 units_to_automata_distr, create_automata): Use the macros.
2119 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
2120 (longest_path_length, min_issue_delay_pass_states,
2121 output_dead_lock_vect, output_tables, output_insn_code_cases,
2122 output_internal_insn_latency_func, output_print_reservation_func,
2123 output_description, output_automaton_units, generate): Use the
2125 (make_insn_alts_attr): Ditto. Check case when there are not
2126 alternatives in the reservation.
2127 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
2128 make_bypass_attr, form_important_insn_automata_lists,
2129 expand_automata): Use the macros.
2131 2002-06-20 Tim Josling <tej@melbpc.org.au>
2133 * Makefile.in: Clean up code to check for misspecified languages
2134 in enable-languages.
2136 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
2138 * cpptrad.c (_cpp_replacement_text_len): initialize len.
2140 2002-06-19 Jason Merrill <jason@redhat.com>
2142 * Makefile.in (unstrap, restrap): New targets.
2143 (bootstrap): Mention restrap.
2145 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
2147 * except.c (ehl_free): Remove.
2149 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
2150 builtin_define and builtin_define_std.
2152 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2154 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
2155 (sCOND): Restrict operand class so that gcc knows how to reload them.
2156 (bitfield_set): Merge two unnamed insn's using alternatives.
2157 (call_value): Remove constraint on unused uperand.
2158 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
2159 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
2161 * longlong.h (count_trailing_zeros): Escape newline and beautify.
2163 2002-06-19 Mark Mitchell <mark@codesourcery.com>
2165 * Makefile.in (QMTEST_DIR): Simplify definition.
2167 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2169 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
2172 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
2174 * cpphash.h (struct cpp_reader): Make date and time strings.
2175 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
2176 _cpp_replacement_text_len): New.
2177 * cppinit.c (cpp_create_reader): Update.
2178 (init_builtins): Register appropriate builtins for -traditional-cpp.
2179 * cppmacro.c (new_number_token): Remove.
2180 (_cpp_builtin_macro_text): New.
2181 (builtin_macro): Use it.
2182 (cpp_macro_definition): Update to handle traditional macros.
2183 * cppmain.c (cb_line_change): Don't do column positioning for
2185 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
2187 (skip_whitespace): Fix.
2188 (maybe_start_funlike): Don't set state.parsing_args.
2189 (scan_out_logical_line): Remove duplicate error. Use lex_state
2190 rather than state.parsing_args.
2191 (push_replacement_text): Handle builtins.
2192 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
2194 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2195 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2197 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
2198 attribute __always_inline__.
2200 2002-06-18 Bob Wilson <bob.wilson@acm.org>
2202 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
2203 when generating the call to _mcount.
2204 (NO_PROFILE_COUNTERS): Define.
2206 2002-06-18 Richard Henderson <rth@redhat.com>
2208 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
2211 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
2213 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
2214 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
2215 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
2216 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
2218 * sh-protos.h (sh_pr_interrupt): Declare.
2219 * sh.c (sh_pr_interrupt): New function.
2220 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
2221 (sh_hard_regno_rename_ok): Likewise.
2222 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
2224 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
2226 * rtl.def (DEFINE_AUTOMATON): Add description of new options
2227 `time' and `v'. Fix incorrect description of option `w'.
2229 * doc/md.texi: Ditto.
2231 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
2232 (gen_automata_option): Process the new options.
2233 (transform_2, transform_3): Initialize some variables.
2234 (initiate_automaton_gen): Use the new macros.
2236 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
2238 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
2239 (mips_set_return_address, mips_restore_gp): Declare.
2240 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
2241 (current_frame_info): Remove.
2242 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
2243 * config/mips/mips.c: Remove uses of current_frame_info.
2244 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
2245 (struct machine_function): Add 'frame' and 'insns_len'.
2246 (current_frame_info, zero_frame_info): Remove.
2247 (mips_restore_gp, mips_set_return_address): New.
2248 (mips_initial_elimination_offset): New.
2249 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
2250 (eh_return define_split): Use mips_set_return_address.
2252 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
2254 * cpplib.c (dtable): Update.
2255 (end_directive): Decrement expansion prevention count.
2256 Clear state.in_expression.
2257 (prepare_directive_trad): Set state.in_expression.
2258 Increment expansion prevention count.
2259 * cpptrad.c (enum ls): New.
2260 (_cpp_overlay_buffer): Set overlaid_buffer.
2261 (_cpp_remove_overlay): Use overlaid_buffer.
2262 (_cpp_read_logcial_line_trad): Update buffer when it might
2264 (scan_out_logical_line): Handle state transitions for assertions
2265 and defined() in #if, and for funlike invocations including the
2266 directive case. Handle '<' and '>' as a quote mechanism in
2267 #include. Warn about unterminated macro invocations.
2268 * cpphash.h (struct lexer_state): New member in_expression.
2269 (struct cpp_reader): New member overlaid buffer.
2271 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
2273 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
2276 2002-06-18 Alan Modra <amodra@bigpond.net.au>
2278 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
2280 * doloop.c (doloop_optimize): Extract pattern from insn.
2282 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
2284 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
2286 2002-06-17 Jeff Law <law@redhat.com>
2288 * libgcc2.c: Do not include symcat.h or machmode.h.
2290 2002-06-17 Richard Henderson <rth@redhat.com>
2293 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
2295 2002-06-17 Tom Tromey <tromey@redhat.com>
2297 * dwarfout.c: Include function.h.
2299 2002-06-17 Andreas Schwab <schwab@suse.de>
2301 * print-rtl.c (print_rtx): Print space before vector, not after.
2302 (debug_rtx): Clear sawclose before printing.
2303 (debug_rtx_list): Print newline after each list element.
2304 (debug_rtx_range): Likewise.
2306 2002-06-17 Richard Henderson <rth@redhat.com>
2308 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
2309 (current_function_funcdef_no): Similarly.
2310 * function.c (funcdef_no): Similarly.
2311 (prepare_function_start): Set current_function_funcdef_no.
2312 (expand_function_start): Don't set current_function_profile_label_no.
2313 * dwarf2out.h (current_funcdef_number): Remove.
2314 * dwarf2out.c (current_funcdef_number): Remove. Replace with
2315 current_function_funcdef_no throughout.
2316 * dwarfout.c, vmsdbgout.c: Similarly.
2317 * except.c (sjlj_funcdef_number): Remove.
2318 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
2319 (output_function_exception_table): Likewise.
2320 * final.c (profile_function): Use current_function_funcdef_no
2321 instead of current_function_profile_label_no.
2323 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
2325 * sched-ebb.c (init_ready_list): Check INSN_P first.
2327 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
2329 * sh.md (divsi3): Update way how to find insns in a sequence.
2331 * reload1.c (merge_assigned_reloads): Don't change reloads
2332 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
2333 to RELOAD_OTHER when there are conflicting input reloads.
2335 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
2337 * function.c (epilogue_done): Correctly build a sequence of insns for
2340 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
2342 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
2345 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
2347 2002-06-16 Richard Henderson <rth@redhat.com>
2349 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
2350 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
2352 2002-06-16 Richard Henderson <rth@redhat.com>
2355 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
2357 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
2359 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
2360 * config/i386/i386-aout.h, config/i386/i386elf.h,
2361 config/i386/sysv4.h: Remove CPP_PREDEFINES.
2362 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
2363 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
2364 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
2365 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
2366 CPP_PREDEFINES and part of CPP_SPEC.
2367 * config/i386/sysv4-cpp.h: New.
2369 2002-06-16 Richard Henderson <rth@redhat.com>
2372 * dwarf2out.c (modified_type_die): Don't assign the qualified die
2373 to the unqualified type.
2375 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
2377 * i386-protos.h (x86_field_alignment): Declare.
2378 * i386.c (x86_field_alignment): Define.
2379 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
2380 (BIGGEST_FIELD_ALIGNMENT): Kill.
2382 2002-06-16 Richard Henderson <rth@redhat.com>
2384 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
2386 2002-06-16 Richard Henderson <rth@redhat.com>
2388 * c-common.c (flag_ms_extensions): Move from c++ front end.
2389 * c-common.h (flag_ms_extensions): Declare.
2390 * c-decl.c (c_decode_option): Add -fms-extensions.
2391 (grokfield): Don't accept anonymous structures in ISO C mode;
2392 accept only unnamed anonymous structures in GNU C mode; accept
2393 Plan 9 extensions in MS mode.
2394 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
2395 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
2396 (extension): Clear flag_iso.
2397 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
2399 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
2402 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
2403 early if current_function_epilogue_delay_list is non-empty.
2404 * config/cris/cris.md ("return"): Add sanity check asserting that
2405 current_function_epilogue_delay_list is empty.
2407 2002-06-16 Jeff Law <law@redhat.com>
2409 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
2410 sharing of hard registers.
2412 * toplev.c (rest_of_compilation): Remove redundant conditional.
2414 * toplev.c (rest_of_compilation): Perform a simpler, less costly
2415 cleanup of the CFG when not optimizing.
2417 2002-06-16 Alan Modra <amodra@bigpond.net.au>
2419 * gcc.c (main): Correct startfile_prefix_spec check.
2421 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
2423 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
2424 include both darwin.o and rs6000-c.o.
2426 2002-06-15 Roger Sayle <roger@eyesopen.com>
2428 * expr.c (compare_from_rtx): Call simplify_relational_operation
2429 on all comparisons, not just those between integer constants,
2430 with the correct (possibly unsigned) comparison code.
2431 (do_compare_rtx_and_jump): Likewise.
2433 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2435 * Makefile.in (tm_defines): New configuration variable.
2436 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
2437 Pass tm_defines in TM_DEFINES.
2438 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
2439 * config.gcc (tm_defines): New configuration variable.
2440 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
2441 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
2442 * configure.in: Substitute tm_defines.
2443 * configure: Rebuilt.
2444 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
2445 * doc/install.texi: Update.
2446 * pa/pa-700.h: Delete file.
2447 * pa/pa-7100.h: Delete file.
2449 2002-06-15 Roger Sayle <roger@eyesopen.com>
2451 * fold-const.c (comparison_to_compcode): New function to convert
2452 an comparison TREE CODE into a bit-based representation.
2453 (compcode_to_comparison): New function to convert from this bit
2454 based representation back to a comparison TREE CODE.
2455 (fold_truthop): Simplify (x<y) && (x==y) and related composite
2458 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
2460 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
2462 * stor-layout.c (compute_record_mode): Remove check for
2463 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
2464 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
2465 MEMBER_TYPE_FORCES_BLK.
2467 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
2469 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
2471 2002-06-14 Jeff Sturm <jsturm@one-point.com>
2473 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
2475 2002-06-14 Steve Ellcey <sje@cup.hp.com>
2477 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
2478 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
2479 * configure, config.in: Regenerate.
2481 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2483 * loop.c (check_final_value): Use v->always_executed
2484 instead of v->always_computable.
2485 * unroll.c (final_giv_value): Don't calculate the final
2486 value as a function of the biv if the giv is not computed
2487 for every loop iteration.
2489 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2491 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
2493 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2496 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
2497 the truncation down when the target type is signed.
2498 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
2499 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
2500 the conversion if the target type is a smaller type.
2502 2002-06-14 Richard Henderson <rth@redhat.com>
2504 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
2505 earlier. Re-factor comparisons vs extrema.
2507 2002-06-14 Richard Henderson <rth@redhat.com>
2509 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
2511 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2513 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2514 * sched-deps.c (add_dependence): Likewise.
2515 (group_leader): Likewise.
2516 * sched-rgn.c (init_ready_list): Likewise.
2517 * doc/rtl.texi: Adjust accordingly.
2519 2002-06-13 Jeffrey Law <law@redhat.com>
2521 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
2522 null pointer checks were eliminated. Update prototype.
2523 (delete_null_pointer_checks): Similarly.
2524 * rtl.h (delete_null_pointer_checks): Update prototype.
2525 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
2526 delete_null_pointer_checks deletes one or more null
2527 pointer checks. Do not run cleanup_cfg before gcse, the
2528 CFG is accurate and optimized at that point..
2530 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
2533 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2535 * Makefile.in (libgcc.mk): Depend on specs.
2537 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
2539 * sh.md (mulsi3): Update way how to find insns in a sequence.
2541 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
2543 * sh.h: Define HARD_REGNO_RENAME_OK
2544 * sh.c: sh_hard_regno_rename_ok: New. If current function has
2545 interrupt_handler attribute, only registers saved on stack are OK.
2546 * sh-protos.h: Declare sh_hard_regno_rename_ok.
2548 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
2550 * config/sh/sh.md (jump): Emit jump insn.
2551 (call_pcrel): Get pattern of the result of gen_call_site.
2552 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
2554 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
2556 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
2557 * cpptrad.c: Update comments.
2558 (skip_whitespace, copy_comment): Take a new parameter.
2559 (skip_escaped_newlines): Don't duplicate escaped newline test.
2560 (copy_comment): Different location for CUR, decide here how
2561 to copy / replace the comment.
2562 (skip_whitespace): Copy whitespace.
2563 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
2564 (scan_out_logical_line): Let copy comment handle keeping or
2566 (scan_parameters, _cpp_create_trad_definition): Update.
2568 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
2570 * reload.c (get_secondary_mem,find_reloads_address,
2571 find_reloads_address_1): Pass reference to MEM to find_reloads_address
2572 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
2574 2002-06-13 Jessica Han <jessica@cup.hp.com>
2576 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2577 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2578 * doc/tm.texi: Document them.
2579 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
2580 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
2581 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
2582 (ASM_OUTPUT_FDESC): Likewise.
2584 2002-06-13 Eric Christopher <echristo@redhat.com>
2586 * diagnostic.c (output_format): Fix thinko.
2588 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
2590 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
2591 (DWARF2_UNWIND_INFO): Define to 0.
2593 * config/sh/sh.c (calc_live_regs): Don't use initial_value
2594 optimization for PR_MEDIA_REG.
2596 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2598 * cpphash.h (_cpp_lex_identifier_trad): Remove.
2599 * cpplib.c (end_directive): Don't skip, always remove overlay
2601 (prepare_directive_trad): Handle NULL pfile->directive.
2602 (_cpp_handle_directive): Always call prepare_directive_trad
2604 * cppmain.c (check_multiline_token): Rename account_for_newlines,
2606 (scan_translation_unit_trad): Use it.
2607 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
2608 output, get escaped newline in comment close correct.
2609 (check_output_buffer, skip_whitespace): Update.
2610 (_cpp_lex_identifier_trad): Remove.
2611 (scan_out_logical_line): Handle -C and comments in directives
2614 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2616 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2617 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2618 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2619 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2620 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2621 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2622 (SELECT_SH5_COMPACT_NOFPU): Likewise.
2623 (TARGET_SWITCHES): Use them.
2624 (TARGET_CPU_DEFAULT): Define if not already defined.
2625 (TARGET_DEFAULT): Use it.
2626 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2627 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2628 * config/sh/t-monolib: New file.
2630 2002-06-13 Roger Sayle <roger@eyesopen.com>
2632 * toplev.c (rest_of_compilation): Simplify (and correct) the
2633 logic of the first delete-null-pointer-checks pass.
2635 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2637 * i386.c (ix86_expand_movstr): Fix pasto.
2639 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2641 * reload.c (find_valid_class): Fix thinko in my previous patch.
2643 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2645 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
2646 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
2647 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
2648 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
2650 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2652 * tree-inline.c (expand_call_inline): Don' mess with _DECL
2655 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2657 * diagnostic.c (output_format): Recognize "%H" as a format
2658 specifier for a location_t.
2659 (text_specifies_location): New function.
2660 (diagnostic_set_info): Use it.
2662 2002-06-13 Jeffrey Law <law@redhat.com>
2664 * emit-rtl.c (static_regno_reg_rtx): Define.
2665 (init_emit_once): Initialize static_regno_reg_rtx.
2666 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
2667 of building new hard reg objects once per function.
2668 (gen_rtx_REG): Try to share hard regs.
2669 * regclass.c (init_fake_stack_mems): New function broken out from
2671 * rtl.h (init_fake_stack_mems): Declare.
2672 * toplev.c (lang_independent_init): Call init_regs before
2673 init_emit_once. Call init_fake_stack_mems after init_emit_once.
2675 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
2677 * alias.c (argument_registers): Remove.
2678 (init_alias_once): Initialize static_reg_base_value here. Remove
2679 initialization of argument_registers.
2680 (init_alias_once_per_function): Remove.
2681 (init_alias_analysis): Copy all the entries from static_reg_base_value
2682 into new_reg_base_value all at once.
2683 * rtl.h (init_alias_once_per_function): Remove declaration.
2684 * function.c (prepare_function_start): Do not call
2685 init_alias_once_per_function.
2687 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
2688 starting a sequence and emitting an INSN.
2690 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
2692 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
2694 2002-06-13 David S. Miller <davem@redhat.com>
2696 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
2698 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2700 * cpplib.c (end_directive): Handle line skipping. Only remove
2701 the rest of the line if the directive was valid.
2702 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
2703 expanding a traditional macro.
2704 * cpptrad.c (recursive_macro): New.
2705 (read_logical_line_trad): Handle skipping.
2706 (scan_out_logical_line): Continue after a successful directive.
2707 Don't expand macros whilst skipping, or if recursing.
2708 (_cpp_create_trad_definition): scan_out_logical_line now sets
2709 the output current position.
2711 2002-06-12 Eric Christopher <echristo@redhat.com>
2713 From Chris Demetriou <cgd@broadcom.com>
2714 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
2716 (ISA_HAS_MADD_MSUB): Ditto.
2717 (ISA_HAS_NMADD_NMSUB): Ditto.
2719 2002-06-12 Eric Christopher <echristo@redhat.com>
2721 * config.gcc: Consolidate little endian handling and
2722 little/big endian targets.
2723 * config/mips/elfl.h: Remove file.
2724 * config/mips/elfl64.h: Ditto.
2725 * config/mips/ecoffl.h: Ditto.
2726 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
2728 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
2730 * gengtype.h (xvasprintf): New prototype.
2731 (xasprintf): New prototype.
2733 (get_output_file): Return an outf_p.
2734 (header_file): Is now an outf_p.
2735 (base_files): Now are outf_p.
2737 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
2738 rather than stdio operations. Use xasprintf in a few places,
2742 (struct filemap): Delete.
2744 (output_files): New.
2746 (create_file): Create an outf_p. Add parameter to indicate output
2747 file name, change all callers.
2748 (open_base_files): Create gtype-desc.c here.
2749 (get_output_file_with_visibility): Rewrite.
2750 (get_output_file_name): Just look at 'name' field in struct outf.
2751 (close_output_files): Rewrite.
2753 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
2755 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
2756 (MASK_G_FLOAT): Define.
2757 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
2758 (TARGET_SWITCHES): Likewise.
2759 (TARGET_DEFAULT): Likewise.
2761 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
2763 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
2764 * config/mips/mips.c (mips_output_filename): Don't print a
2765 ".file" directive if we are using DWARF-2.
2766 (mips_output_function_prologue): Do not emit source file
2767 name for TARGET_GAS.
2769 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
2771 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
2772 decide whether emit the short opcode.
2773 * i386.h (x86_shift1): Declare.
2774 (TARGET_SHIFT1): New macro.
2775 * i386.c (x86_shift1): New global variable.
2777 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
2778 unconditionally; make loop to rebuild CFG; kill unnecesary
2779 find_basic_block calls; kill compute_bb_for_insn call.
2780 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
2781 * haifa-sched.c (sched_init): Likewise.
2782 * ssa-ccp.c (ssa_const_prop): Likewise.
2783 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2785 2002-06-11 David S. Miller <davem@redhat.com>
2787 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
2790 2002-06-11 Richard Henderson <rth@redhat.com>
2792 * c-common.c (builtin_define_type_max): New.
2793 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
2794 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
2796 From Joseph S. Myers:
2797 * glimits.h: Rewrite to expect the double underscore definitions
2800 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
2801 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
2802 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
2803 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
2804 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
2805 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
2806 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
2807 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
2809 2002-06-11 Richard Henderson <rth@redhat.com>
2811 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
2812 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
2813 (code_for_builtns): Update.
2814 (alpha_init_builtins): Add __builtin_thread_pointer and
2815 __builtin_set_thread_pointer.
2816 (alpha_expand_builtin): Handle void builtins.
2817 * doc/extend.texi (Alpha Built-in Functions): Update.
2819 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
2822 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
2824 2002-06-11 Zack Weinberg <zack@codesourcery.com>
2826 * config.gcc: Make the name of the extra-modes file adjustable
2828 (s390x, strongarm, xscale stanzas): Use this facility.
2829 * configure.in: Update to match.
2830 * configure: Regenerate.
2832 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
2834 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
2835 max/mins as unsigned GE compares.
2837 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
2839 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
2840 * config/vax/bsd.h: New file.
2841 * config/vax/netbsd.h: Add missing notice.
2842 (CPP_PREDEFINES): Remove.
2843 (TARGET_OS_CPP_BUILTINS): Define.
2844 (CPP_SPEC): Use NETBSD_CPP_SPEC.
2845 * config/vax/openbsd.h: Update copyright years.
2846 (CPP_PREDEFINES): Remove.
2847 (TARGET_OS_CPP_BUILTINS): Define.
2848 * config/vax/ultrix.h: Likewise.
2849 * config/vax/vaxv.h: Likewise.
2850 * config/vax/vms.h: Likewise.
2851 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
2852 (CPP_PREDEFINES, CPP_SPEC): Remove.
2854 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
2856 * i386.md (addqi_1_slp, subqi_1_slp
2857 (andqi_ext0, testqi_ext0): Remove unnecesary check.
2858 (addhi*, addqi*): Simplify "dec" condition.
2859 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
2860 (and, or, xor to QImode splitters): New.
2863 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
2864 (andqi_ext_1_rex64): New.
2868 (rotrqi3*_slp): New.
2869 (rotlqi3*_slp): New.
2871 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
2873 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
2875 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
2876 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2877 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
2878 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
2879 __LONG_DOUBLE_128__ setting, _CALL_* setting.
2880 (CPP_DEFAULT_SPEC): Delete.
2881 (CPP_FLOAT_DEFAULT_SPEC): Delete.
2882 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
2883 (CPP_SYSV_DEFAULT_SPEC): Delete.
2884 (CPP_ENDIAN_BIG_SPEC): Delete.
2885 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2886 (CPP_ENDIAN_SPEC): Delete.
2887 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
2888 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
2889 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
2890 cpp_longdouble_default.
2891 * config/rs6000/softfloat.h: Delete.
2892 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
2893 (EXTRA_SPECS): Delete cpp_cpu.
2894 (TARGET_CPU_CPP_BUILTINS): New.
2895 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
2897 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
2898 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
2899 (CPP_DEFAULT_SPEC): Delete.
2900 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
2901 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
2902 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
2903 (CPP_DEFAULT_SPEC): Delete.
2904 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2905 (CPLUSPLUS_CPP_SPEC): Likewise.
2906 (CPP_CPU_SPEC): Delete.
2907 (CPP_DEFAULT_SPEC): Delete.
2908 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2909 (CPLUSPLUS_CPP_SPEC): Likewise.
2910 (CPP_CPU_SPEC): Delete.
2911 (CPP_DEFAULT_SPEC): Delete.
2912 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
2913 (CPP_DEFAULT_SPEC): Delete.
2914 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
2915 (CPP_DEFAULT_SPEC): Delete.
2917 * doc/gty.texi: Small updates.
2919 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
2921 * objc/objc-act.c (warn_with_ivar): Adjust calls to
2922 diagnostic_count_error.
2923 (warn_with_method): Likewise.
2925 * diagnostic.h (warnings_are_errors_message): New field of
2927 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
2929 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
2930 (diagnostic_count_diagnostic): Make aware of other kinds of
2932 (diagnostic_initialize): Initialize warnings_are_errors_message field.
2934 2002-06-11 Tom Tromey <tromey@redhat.com>
2937 * fold-const.c (fold_convert): Don't modify existing tree's type.
2939 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
2941 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
2943 2002-06-11 Richard Henderson <rth@redhat.com>
2945 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
2947 2002-06-11 Richard Henderson <rth@redhat.com>
2949 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
2950 DWARF2_UNWIND_INFO is false.
2952 2002-06-11 Bob Wilson <bob.wilson@acm.org>
2954 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
2956 * config/s390/s390.c (emit_prologue): gen_store_multiple
2957 returns an insn now, not a pattern.
2959 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2961 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
2964 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2966 * i386.c (x86_promote_QImode): Set for Athlon
2967 (x86_fast_prefix): New global variable.
2968 (x86_arch_always_fancy_math_387): Fix formating.
2969 * i386.h (x86_fast_prefix): Declare
2970 (TARGET_FAST_PREFIX): define.
2971 * i386.md (and to strict_low_part, HI to SI
2972 promoting splitter): Use new macro.
2974 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
2976 2002-06-11 Zack Weinberg <zack@codesourcery.com>
2978 * Makefile.in (distclean): Delete junk left in testsuite
2981 2002-06-11 Jeffrey Law <law@redhat.com>
2983 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
2984 last insn created by the splitter.
2986 * caller-save.c (init_caller_save): Move creation of SAVEINSN
2987 and RESTINSN into into the scope of the sequence.
2989 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
2992 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
2994 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
2995 not the pattern. So extract the pattern from the insn.
2997 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
2999 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3001 * config/s390/s390.md (movsi): Only use floating point
3002 register alternatives when operands are already fprs.
3003 (movdi_31, movdi_64): Likewise.
3005 2002-06-11 David S. Miller <davem@redhat.com>
3007 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
3008 Only run RTX equality checks on INSN_P rtl.
3010 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
3012 * config/s390/s390.md (reload_base, ltorg): Remove.
3013 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
3014 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
3015 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
3016 s390_asm_output_pool_prologue): Likewise.
3017 * s390.h (s390_pool_start_insn): Likewise.
3019 * s390.c (s390_output_symbolic_const): Remove support for
3020 old-style pool chunks.
3021 (s390_function_epilogue): Likewise.
3022 (s390_output_constant_pool): Likewise. Also, fix incorrect
3023 alignment for 64-bit literal pools.
3024 (print_operand_address): Remove 'y' and 'Y' format flags.
3025 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
3026 old-style pool chunks.
3027 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
3028 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
3029 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
3031 * s390.c (consttable_operand): New function.
3032 * s390-protos.h (consttable_operand): Declare it.
3033 * s390.h (PREDICATE_CODES): Add consttable_operand.
3034 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
3035 consttable_sf, consttable_df, pool_start_31, pool_end_31,
3036 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
3037 * s390.c (struct constant, struct constant_pool): New data types.
3038 (constant_modes, gen_consttable): New variables.
3039 (s390_start_pool, s390_end_pool, s390_add_pool,
3040 s390_dump_pool, s390_free_pool): New functions.
3041 (s390_chunkify_pool): Completely reimplement literal pool
3044 * s390.c (s390_pool_overflow): New variable.
3045 * s390.h (s390_pool_overflow): Declare it.
3046 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
3047 jumps in literal pool overflow situations.
3049 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
3050 (s390_frame_info): Account for possible use of RETURN_REGNUM
3051 by new literal pool overflow code.
3052 (s390_emit_prologue): Likewise.
3054 2002-06-05 David S. Miller <davem@redhat.com>
3056 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
3057 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
3058 emit_insns_before_scope, emit_insns_after,
3059 emit_insns_after_scope): Delete declaration.
3060 * ada/misc.c (insert_code_for): Use emit_insn* instead of
3062 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
3063 (alpha_set_memflags): Fix comment.
3064 (set_frame_related_p): Use get_insns instead of gen_sequence.
3065 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
3067 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
3069 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
3070 * config/fr30/fr30.c (fr30_move_double): Likewise.
3071 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
3073 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3074 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
3076 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
3077 instead of gen_sequence.
3078 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
3079 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
3080 * config/sh/sh.c (sh_need_epilogue): Likewise.
3081 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
3083 (setjmp pattern and split): Use them to avoid splitter which emits
3085 * genattrtab.c (main): Emit include of function.h
3086 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
3087 get_insns instead of gen_sequence.
3088 * config/cris/cris.c (cris_split_movdx): Likewise.
3089 * emit-rtl.c (emit_insns*): Kill.
3090 (try_split): Expect insn list instead of SEQUENCE.
3091 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
3092 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
3093 Make them abort if a SEQUENCE is given and RTL checking is
3095 (emit_*_scope): Don't forget to set scope on final insn.
3096 (gen_sequence): Move from here...
3097 * ssa.c (gen_sequence): To here as private function.
3098 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
3100 (expand_builtin_return, expand_builtin_mathfn): Likewise.
3101 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
3102 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
3103 (expand_builtin_expect_jump): Use get_insns and fix comments.
3104 * calls.c (try_to_integrate): Use emit_insn_foo.
3105 (expand_call, emit_library_call_value_1): Likewise.
3106 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
3107 (emit_move_insn_1): Use get_insns instead of gen_sequence.
3108 (expand_expr): Use emit_insn_foo.
3109 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
3110 * except.c (build_post_landing_pads): Likewise.
3111 * flow.c (attempt_auto_inc): Likewise.
3112 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
3113 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
3114 * function.c (fixup_var_refs_insn): Use get_insns instead of
3116 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
3117 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
3118 (fixup_stack_1, purge_addressof_1, expand_main_function,
3119 get_arg_pointer_save_area): Likewise.
3120 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
3121 expand_function_end): Use emit_insn_foo.
3122 (record_insns, keep_stack_depressed): Work with insn list instead
3123 of SEQUENCE, fix comments.
3124 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
3125 noce_try_store_flag_constants, noce_try_store_flag_inc,
3126 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
3127 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
3128 (noce_process_if_block): Use get_insns instead of gen_sequence.
3129 * optabs.c (add_equal_note): Work with insn list, fix comments.
3130 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
3131 (expand_unop, expand_complex_abs, expand_unop_insn,
3132 expand_no_conflict_block): Likewise.
3133 (gen_move_insn): Use get_insns instead of gen_sequence.
3134 (gen_cond_trap): Likewise.
3135 * integrate.c (copy_rtx_and_substitute): Likewise.
3136 (emit_initial_value_sets): Use emit_insn_foo.
3137 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
3138 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
3139 now that RTL generators give insn lists.
3140 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
3141 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
3142 instead of gen_sequence.
3143 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
3144 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
3145 instead of gen_sequence.
3146 * loop.c (move_movables, emit_prefetch_instructions,
3147 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
3149 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
3150 (product_cheap_p): Likewise, and add commentary about RTL wastage
3152 * lcm.c (optimize_mode_switching): Use get_insns instead of
3154 * profile.c (gen_edge_profiler): Likewise.
3155 * regmove.c (copy_src_to_dest): Likewise.
3156 * reg-stack.c (compensate_edge): Likewise and fix comment.
3157 * gcse.c (process_insert_insn): Likewise.
3158 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
3159 * jump.c (delete_prior_computation): Update comment.
3160 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
3161 of gen_sequence, update comments to match.
3162 * recog.c (peephole2_optimize): Work with insn lists instead of
3164 * sched-vis.c (print_pattern): Abort on SEQUENCE.
3165 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
3166 Use get_insns instead of gen_sequence.
3167 (copy_loop_body): Likewise and don't emit dummy NOTE.
3168 * genrecog.c: Don't mention SEQUENCE rtl in comments.
3169 * combine.c (try_combine): Expect insn lists from split generator.
3170 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
3173 2002-06-11 Roger Sayle <roger@eyesopen.com>
3174 Andreas Jaeger <aj@suse.de>
3176 * cfgbuild.c: Update copyright years.
3178 2002-06-11 Andreas Schwab <schwab@suse.de>
3180 * config/m68k/m68k.h (PREDICATE_CODES): Define.
3182 2002-06-11 Eric Christopher <echristo@redhat.com>
3184 * doc/tm.texi (Run-time Target): Add comment about flag_iso
3186 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
3187 * config/mips/ecoffl.h: Ditto.
3188 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
3189 (CPP_PREDEFINES): Ditto.
3190 * config/mips/elfl64.h: Ditto.
3191 * config/mips/elfl.h: Ditto.
3192 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
3193 out until irix header consolidation.
3194 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
3195 with SUBTARGET_OS_CPP_BUILTINS.
3196 * config/mips/iris6.h: Ditto.
3197 (CPLUSPLUS_CPP_SPEC): Remove.
3198 * config/mips/linux.h: Ditto.
3199 * config/mips/netbsd.h: Ditto.
3200 * config/mips/openbsd.h: Ditto.
3201 * config/mips/rtems.h: Ditto.
3202 * config/mips/rtems64.h: Ditto.
3203 * config/mips/sni-svr4.h: Ditto.
3204 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
3205 ISA_MIPS32, ISA_MIPS64): New defines.
3206 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
3207 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
3208 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3209 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
3210 (TARGET_CPU_CPP_BUILTINS): Define.
3211 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
3212 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
3213 (movdicc): Remove check for ISA_MIPS32.
3214 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
3215 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
3216 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
3217 sunge_sf, sunle_df, sunle_sf): New patterns.
3219 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
3221 * Makefile.in: Update cppmain.o.
3222 * cpphash.h (struct cpp_reader): Move some members to a
3224 (trad_line): Rename saved_line.
3225 (_cpp_read_logical_line_trad): Update.
3226 (_cpp_remove_overlay): New.
3227 * cppinit.c (cpp_create_reader): No need to set saved_line.
3228 (cpp_destroy): Update.
3229 (cpp_read_main_file): Only overlay if compiling.
3230 * cpplex.c (continue_after_nul): Return false if in directive.
3231 * cpplib.c (EXPAND): New.
3232 (directive_table, SEEN_EOL): Update.
3233 (end_directive): Remove overlay if traditional; don't skip
3234 line in traditional #define.
3235 (prepare_directive_trad): New.
3236 (_cpp_handle_directive, run_directive): Update for traditional
3238 (lex_macro_node): Simplify, don't use lex_identifier_trad.
3239 * cpplib.h (struct options): Add preprocess_only.
3240 * cppmain.c: Don't include intl.h.
3241 (cpp_preprocess_file): Set options->preprocess_only.
3242 (scan_translation_unit_trad): Fix, and print line numbers.
3243 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
3244 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
3245 save_replacement_text, _cpp_create_trad_definition): Update for
3247 (_cpp_overlay_buffer): Save line number.
3248 (_cpp_remove_overlay): Rename from restore_buff, restore line.
3249 (_cpp_read_logical_line_trad): Don't handle overlays here.
3250 (scan_out_logical_line): Process directives.
3252 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
3254 * gthr-win32.h: Wrap functions in extern "C".
3255 (__gthread_key_t): Typedef as unsigned long,
3257 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
3258 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
3259 (__gthr_win32_once, __gthr_win32_key_create,
3260 __gthr_win32_key_delete, __gthr_win32_getspecific,
3261 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3262 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3263 __gthr_win32_mutex_unlock): Declare.
3264 (__gthread_once,__gthread_key_create,
3265 __gthread_key_delete, __gthread_getspecific,
3266 __gthread_setspecific, __gthread_mutex_init_function,
3267 __gthread_mutex_lock,__gthread_mutex_trylock,
3268 __gthread_mutex_unlock): Call corresponding
3269 __gthr_win32_* extern implementations if #defined
3270 __GTHREAD_HIDE_WIN32API.
3271 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
3272 $(srcdir)/config/i386/gthr-win32.c
3273 * config/i386/gthr-win32.c: New implementation file.
3274 (__gthr_win32_once, __gthr_win32_key_create,
3275 __gthr_win32_key_delete, __gthr_win32_getspecific,
3276 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
3277 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
3278 __gthr_win32_mutex_unlock): New functions, based on
3279 static inlines in gthr-win32.h.
3281 2002-06-10 Bob Wilson <bob.wilson@acm.org>
3283 * config/xtensa/xtensa.c (override_options): Don't warn about
3284 using -fpic or -fPIC when PIC is enabled by default.
3286 2002-06-10 Roger Sayle <roger@eyesopen.com>
3288 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
3290 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3292 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
3293 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
3294 exists, substitute its pathname as @extra_modes_file@, define
3295 EXTRA_MODES_FILE to be an appropriate string to #include it
3296 with, and define EXTRA_CC_MODES to 1.
3298 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
3299 it's defined. Get rid of redundancy in calling sequence for
3300 CC; don't use it to define CCmode, to avoid a warning.
3301 * libgcc2.c: Include symcat.h for the sake of machmode.def.
3303 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
3304 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
3305 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
3307 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
3308 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
3310 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
3311 defining extra CC modes.
3313 2002-06-10 Roger Sayle <roger@eyesopen.com>
3314 Andreas Jaeger <aj@suse.de>
3316 * cfgrtl.c (create_basic_block_structure): Remove index argument
3317 and use last_basic_block++ instead. (create_basic_block): Update.
3318 * cfgbuild.c (find_basic_blocks_1): Likewise.
3320 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
3321 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
3322 * sched-ebb.c (schedule_ebbs): Likewise.
3323 * sched-rgn.c (schedule_insns): Likewise.
3324 * ssa-ccp.c (ssa_const_prop): Likewise.
3325 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
3326 * toplev.c (rest_of_compilation): Likewise.
3327 * config/ia64/ia64.c (ia64_reorg): Likewise.
3329 2002-06-10 Roger Sayle <roger@eyesopen.com>
3331 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
3332 of matching registers.
3334 2002-06-10 Roger Sayle <roger@eyesopen.com>
3336 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
3337 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
3339 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
3341 * config/mmix/mmix.h: Improve comments.
3342 (CPP_SPEC, CPP_PREDEFINES): Don't define.
3343 (TARGET_CPU_CPP_BUILTINS): Define.
3344 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
3345 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
3347 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
3349 (mmix_constant_address_p): Remove another
3350 redundant test before case.
3351 (mmix_canonicalize_comparison): Remove unused function.
3352 (mmix_print_operand_address): Don't test and adjust for operand in
3353 non-canonical format.
3354 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
3355 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
3357 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3359 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
3360 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
3361 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
3362 (gen_compare): Use CCmode unconditionally.
3364 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3366 PR optimization/6759
3367 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
3370 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3373 * c-decl.c (grokfield): Allow user defined types if they declare
3374 structs or unions for unnamed fields.
3376 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3379 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
3381 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3383 PR optimization/6842
3384 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
3385 operand subreg cannot be simplified.
3387 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3389 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
3390 (compare_constant): Likewise.
3391 (output_addressed_constants): Likewise.
3393 2002-06-10 Jakub Jelinek <jakub@redhat.com>
3395 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
3396 merge bb with itself.
3398 2002-06-10 Richard Henderson <rth@redhat.com>
3400 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
3401 (builtin_zapnot): Likewise.
3403 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
3406 2002-06-10 Eric Christopher <echristo@redhat.com>
3408 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
3409 prototype and function.
3410 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
3411 (call_insn_operand): Remove half pic references.
3412 (legitimate_address_p): Ditto.
3413 * config/i386/i386.h: Remove half pic defines.
3415 2002-06-10 Eric Christopher <echristo@redhat.com>
3417 * doc/extend.texi (Return Address): Add note explaining the side-
3418 effects of inlining on __builtin_return_address.
3420 2002-06-10 Tom Tromey <tromey@redhat.com>
3422 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
3423 (c-common.o): Depend on langhooks.h.
3425 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3427 * cpphash.h (_cpp_read_logical_line_trad,
3428 _cpp_expansions_different_trad): Update prototypes.
3429 * cpplex.c (continue_after_nul): New.
3430 * cppmain.c: Include cpphash.h.
3431 (scan_translation_unit_trad): New.
3432 (cpp_preprocess_file): Call it.
3433 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
3435 (_cpp_expansions_different_trad): Update prototype.
3437 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3439 Fix cfi generation for SH[1-4]:
3441 * sh.c (frame_insn): New function.
3442 (output_stack_adjust): Add parameter emit_fn. All callers changed.
3443 (push): Now returns rtx. Use frame_insn.
3444 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
3446 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
3448 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3450 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
3452 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
3453 (distclean): ... not here. But do delete all testsuite/*.log,
3454 testsuite/*.sum files here. Delete mkheaders. Delete
3455 po/*.gmo and the testsuite directory in a split tree build.
3457 2002-06-10 Jeffrey Law <law@redhat.com>
3459 * alias.c (static_reg_base_value): New to hold RTL for
3460 items allocated once per function for the aliasing code.
3461 (init_alias_once_per_function): Initialize static_reg_base_value.
3462 (init_alias_analysis): Avoid throw-away allocations of RTL by
3463 using pre-computed values in static_reg_base_value.
3464 * function.c (prepare_function_start): Call
3465 init_alias_once_per_function appropriately.
3466 * rtl.h (init_alias_once_per_function): Declare.
3467 * caller-save (init_caller_save): Restructure slightly to
3468 avoid lots of silly RTL generation.
3469 * expr.c (init_expr_once): Likewise.
3470 * reload1.c (reload_cse_regs_1): Allocate throw-away register
3471 RTL object here. Pass it into children.
3472 (reload_cse_simplify_operands): Use passed-in register RTL
3474 (reload_cse_simplify): Pass through throw-away register
3477 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
3479 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
3481 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
3483 * gcc.c (process_command): Avoid assignment to read-only location.
3484 Fix sizeof calculation.
3486 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
3488 * cpphash.h (struct cpp_macro): Put comments on their own lines.
3489 (_cpp_expansions_different_trad): New.
3490 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
3491 * cpptrad.c (canonicalize_text): New.
3492 (scan_out_logical_line): Handle no arguments correctly.
3493 (save_replacement_text): Commit memory when finished.
3494 (_cpp_expansions_different_trad): New.
3496 2002-06-10 Tim Josling <tej@melbpc.org.au>
3498 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
3500 (lang_names): Add treelang and cobol.
3501 (get_file_basename): Add code to support treelang and cobol as
3502 4th and 5th users of c-common.c.
3504 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
3506 * Makefile.in (install-driver): Install driver as
3507 $(target_alias)-gcc-$(version).
3508 * gcc.c (spec_version): Make const.
3509 (process_command): Handle -V and -b by using exec.
3510 * doc/invoke.texi (Target Options): Restore -V option,
3511 update docs for -b option.
3513 2002-06-10 Tim Josling <tej@melbpc.org.au>
3515 * configure.in (remaining_languages_check):
3516 Added check that all languages specified were found.
3517 Exit if not found. Previous behaviour was silent failure.
3518 * configure: Regenerated.
3520 2002-06-10 Tim Josling <tej@melbpc.org.au>
3522 First steps to making treelang documentation compliant, based on
3523 instructions in sourcebuild.texi. Also add to gcc.c list of
3526 * doc/contrib.texi: Add self as contributor of treelang.
3528 * doc/frontends.texi: Add mention of treelang.
3530 * doc/invoke.texi (Overall Options): Add mention of treelang.
3532 * doc/standards.texi: Add mention of treelang.
3534 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
3536 * config/cris/cris.c: Include ggc.h
3538 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
3540 * cpphash.h (_cpp_push_text_context): Update.
3541 (_cpp_arguments_ok): New.
3542 * cppmacro.c (_cpp_arguments_ok): New, split out from...
3543 (collect_args): ...here.
3544 (_cpp_push_text_context): Change inputs.
3545 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
3546 replace_args_and_push): New.
3547 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
3548 Don't use IS macros directly.
3549 (scan_out_logical_line): Handle function-like macro argument
3551 (push_replacement_text): Update.
3552 (replacement_length): Remove.
3553 (_cpp_create_trad_definition): Don't skip whitespace before
3556 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3558 * config/avr/avr.c (avr_mcu_types): Update for new devices.
3559 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
3560 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
3561 * config/avr/avr.md ("type" and "length" attributes): New type
3562 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
3563 output a single "call" or "rcall" insn depending on device size.
3564 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
3566 2002-06-09 David Edelsohn <edelsohn@gnu.org>
3568 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
3569 synonym for 630. Add power4. Remove embedded processors. Use -m604
3571 (CPP_CPU_SPEC): Add power3 and power4.
3572 (PROCESSOR_DEFAULT): Change to 604e.
3573 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
3574 (CPP_CPU_SPEC): Similar additions.
3575 (enum process_type): Add POWER4.
3576 (RTX_COSTS): Add POWER4.
3577 (CPP_CPU_SPEC): Similar additions.
3578 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
3579 (PROCESSOR_DEFAULT64): Define.
3580 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
3581 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
3583 (rs6000_issue_rate): Add Power4.
3584 * config/rs6000/rs6000.md (cpu attr): Add power4.
3585 (iu compare): Remove 604, 604e, 620, 630.
3586 Add basic Power4 scheduling information.
3587 (mfcr/mtcrf): Change type attribute to cr_logical.
3589 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3591 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
3593 * gengtype-lex.l: Fix format specifier warning.
3595 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
3597 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
3598 lieu of isspace/IDchar.
3599 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
3600 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
3603 2002-06-08 Zack Weinberg <zack@codesourcery.com>
3605 * Makefile.in (LIBCPP_OBJS): Take out version.o.
3606 * cpphash.h (cpp_reader): Take out print_version member.
3607 * cppinit.c: (cpp_handle_option): Don't do anything with
3608 -version. Just set help_only for --version, --target-help.
3609 Just set verbose option for -v.
3610 (cpp_post_options): Don't print a version string.
3612 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3614 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
3615 (avr_section_type_flags): New, handle .noinit* sections.
3617 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3619 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3620 and include netbsd_entry_point.
3621 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3622 (NETBSD_ENTRY_POINT): Define.
3624 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3626 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3627 if not already defined.
3628 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3630 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3632 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
3633 in a noreturn function.
3634 (avr_output_function_prologue, avr_output_function_epilogue):
3635 Correct function size calculation. Do not crash on empty function.
3636 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
3638 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3640 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3641 netbsd_link_spec and netbsd_entry_point.
3642 (LINK_SPEC): Use %(netbsd_link_spec).
3643 (NETBSD_ENTRY_POINT): Define.
3645 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3647 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
3649 (LINK_ARCH64_SPEC): Likewise.
3650 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
3651 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
3653 2002-06-08 Marc Espie <espie@openbsd.org>
3655 * lists.c (free_list): Fix typo in comment.
3657 2002-06-08 Andreas Jaeger <aj@suse.de>
3659 * lcm.c (optimize_mode_switching): Add unused attribute for
3662 * sched-deps.c (sched_analyze): Remove unused variable.
3664 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
3666 * diagnostic.def: Don't capitalize diagnostict descriptors.
3668 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3670 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
3671 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3672 (NETBSD_ENTRY_POINT): Define.
3674 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3676 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
3677 NETBSD_LINK_SPEC_ELF.
3678 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
3679 (NETBSD_ENTRY_POINT): Define.
3680 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
3681 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
3683 (NETBSD_ENTRY_POINT): Define.
3685 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3687 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3688 netbsd_link_spec and netbsd_entry_point.
3689 (LINK_SPEC): Use %(netbsd_link_spec).
3690 (NETBSD_ENTRY_POINT): Define.
3692 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3694 * config/netbsd-elf.h (LINK_SPEC): Rename to...
3695 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
3696 to specify program entry point.
3698 2002-06-07 Jeff Law <law@redhat.com
3700 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
3701 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
3702 than creating a new register.
3703 (distribute_notes): Likewise.
3704 * df.c (df_reg_use_gen): Likewise.
3705 (df_reg_clobber_gen): Likewise.
3706 (df_ref_record): Likewise.
3707 * expr.c (use_regs): Likewise.
3708 * flow.c (propagate_one_insn): Likewise.
3709 (mark_set_1): Likewise.
3710 (mark_used_reg): Likewise.
3711 * reload.c (emit_reload_insns): Likewise.
3713 2002-06-07 Roger Sayle <roger@eyesopen.com>
3715 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
3716 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
3717 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
3718 comparison code comp can be reversed.
3720 2002-06-07 Roger Sayle <roger@eyesopen.com>
3722 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
3723 constants last in comparisons. Optimize (x+1.0)>0.0 into the
3724 equivalent x > -1.0 when -ffast-math.
3726 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3728 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
3729 * config/mips/t-netbsd: New file.
3731 2002-06-07 Zack Weinberg <zack@codesourcery.com>
3733 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
3734 options their own entries.
3735 (parse_option): Clarify comment.
3736 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
3737 special case. Replace if/strcmp chain for -W options with
3738 use of new OPT_* entries for them.
3739 (cpp_handle_options): Update to match.
3740 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
3741 * c-decl.c: Update call to cpp_handle_option.
3743 2002-06-07 Akim Demaille <akim@epita.fr>
3745 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
3748 2002-06-07 Jeffrey Law <law@redhat.com>
3750 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
3753 2002-06-07 H.J. Lu (hjl@gnu.org)
3755 * configure.in: Add --enable-__cxa_atexit.
3756 * configure: Regenerated.
3757 * config.in: Likewise.
3759 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
3762 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
3764 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
3766 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3768 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
3770 2002-06-07 Jason Merrill <jason@redhat.com>
3772 * cppexp.c (num_equality_op): Use a temporary variable to work
3773 around gcc 3.0.4 bug.
3775 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
3777 * diagnostic.c (diagnostic_build_prefix): Tidy.
3779 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
3781 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
3782 scan_parameters, save_replacement_text, replacement_length): New.
3783 (scan_out_logical_line): Take a macro and save parameters if
3785 (_cpp_logical_line_trad): Update.
3786 (_cpp_create_trad_definition): Update to handle function-like
3788 * cpplex.c (new_buff): Update.
3789 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
3790 * cpphash.h: ...here.
3791 (CPP_ALIGN2, _cpp_save_parameter): New.
3792 * cppmacro.c (save_parameter): Rename, export.
3793 (parse_params): Update.
3795 2002-06-07 Andreas Jaeger <aj@suse.de>
3797 * config/mmix/mmix.c: Remove extra broken prototype for
3798 mmix_init_machine_status.
3800 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
3802 * gengtype.c: Add comments before all the routines.
3804 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3806 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
3807 from and add t-sh64 to ${tmake_file}.
3808 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
3809 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
3810 * config/sh/t-netbsd-sh5-32: Remove.
3811 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
3813 (MULTILIB_DIRNAMES): Define.
3815 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
3817 * i386.md (and promoting splitters): Disable QI to SImode promoting
3818 when doing so changes immediate to be 32bit.
3820 * rtl.h (emit_*_scope): Declare.
3821 * emit-rtl.c (emit_*_scope): New global functions.
3822 (try_split): Copy scope.
3823 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3824 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3825 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3826 noce_process_if_block, find_cond_trap): Copy scopes.
3827 * recog.c (peephole2_optimize): likewise.
3829 2002-06-06 Jeffrey Law <law@redhat.com>
3831 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
3833 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3835 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
3837 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3839 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
3840 ($(docdir)/gccinstall.info): New target.
3841 (info): Depend on it.
3842 (gccinstall.dvi): New target.
3843 (dvi): Depend on it.
3844 * doc/.cvsignore: Ignore new info files.
3845 * doc/install.texi (@setfilename): Reflect new info filename.
3847 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
3849 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
3852 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
3855 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
3856 c_common_get_alias_set.
3857 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
3859 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3861 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
3863 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
3864 * avr/avr.c (avr_output_function_epilogue): Use above to determine
3866 * pa/pa.c (pa_output_function_prologue): Likewise.
3868 2002-06-05 David S. Miller <davem@redhat.com>
3870 * integrate.c (subst_constants): Handle 'B' RTL format.
3872 2002-06-05 Eric Christopher <echristo@redhat.com>
3874 * varasm.c (make_decl_rtl): Fix comment for removed
3877 2002-06-05 Eric Christopher <echristo@redhat.com>
3879 * Makefile.in: Remove missed halfpic bits.
3881 2002-06-05 Eric Christopher <echristo@redhat.com>
3883 * toplev.c: Remove half-pic.
3884 * config/mips/mips.c: Ditto.
3885 * config/mips/mips.h: Ditto. Remove unused defines.
3886 * config/mips/openbsd.h: Update comment to reflect above.
3887 * config/mips/mips.md: Remove half-pic constraints.
3888 * halfpic.h: Delete.
3891 2002-06-05 Jeffrey Law <law@redhat.com>
3893 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
3894 rejects (mem (lo_sum (reg) (unspec))), but will allow
3895 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
3897 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3899 * cpphash.h (_cpp_create_definition): Update prototype.
3900 (_cpp_push_text_context, _cpp_create_trad_definition): New.
3901 ( cpp_lex_identifier_trad): New.
3902 (_cpp_set_trad_context): New.
3903 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
3904 * cpplib.c (SEEN_EOL): Update.
3905 (lex_macro_node): Update for -traditional.
3906 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
3907 * cppmacro.c (_cpp_create_definition): Split into
3908 create_iso_definition() and _cpp_create_trad_definition().
3909 (warn_of_redefinition): Update prototype; handle traditional
3911 (_cpp_push_text_context): New.
3912 * cpptrad.c (skip_whitespace, push_replacement_text): New.
3913 (lex_identifier): Call ht_lookup with correct start.
3914 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
3915 _cpp_set_trad_context): New.
3916 (scan_out_logical_line): Update to handle changing contexts.
3918 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
3920 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
3922 * config/sh/t-be (MULTILIB_ENDIAN): Set.
3923 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
3924 * t-sh (MULTILIB_ENDIAN): Set.
3925 (MULTILIB_OPTIONS): Use it.
3926 * t-sh64 (MULTILIB_OPTIONS): Likewise.
3927 (MULTILIB_DIRNAMES): Likewise.
3929 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
3931 * toplev.h (report_error_function): Remove.
3933 * diagnostic.h (location_t): New datatype.
3934 (text_info): Likewise.
3935 (diagnostic_info): Likewise.
3936 (output_prefix): New macro.
3937 (diagnostic_last_function_changed): Likewise.
3938 (diagnostic_set_last_function): Likewise.
3939 (diagnostic_last_module_changed): Likewise.
3940 (diagnostic_set_last_module): Likewise.
3941 (report_diagnostic): Now macro.
3942 (diagnostic_set_info): Declare.
3944 * diagnostic.c (report_problematic_module): Rename to
3945 diagnostic_repor_current_module.
3946 (set_diagnostic_context): Remove.
3947 (count_error): Rename to diagnostic_error_count.
3948 (error_function_changed): Remove.
3949 (record_last_error_function): Likewise.
3950 (error_module_changed): Likewise.
3951 (record_last_error_module): Likewise.
3952 (context_as_prefix): Rename to diagnostic_build_prefix.
3953 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
3954 (diagnostic_set_info): New function.
3956 * objc/objc-act.c: #include diagnostic.h
3957 (error_with_ivar): Adjust call to count_error.
3958 (warn_with_method): Likewise.
3959 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
3961 2002-06-05 Bob Wilson <bob.wilson@acm.org>
3963 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
3964 lang_hooks.types.make_type instead of make_node; set up
3965 __va_list_tag type decl.
3966 (xtensa_builtin_saveregs): Remove broken use of
3967 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
3968 for saved registers; add varargs alias set.
3970 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3973 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
3974 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3975 CPP_PREDEFINES and part of CPP_SPEC.
3976 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
3977 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
3979 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
3981 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
3983 2002-06-05 Alan Modra <amodra@bigpond.net.au>
3985 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
3987 2002-06-04 Zack Weinberg <zack@codesourcery.com>
3989 * gengtype-yacc.y: Make sure all rules end with a semicolon.
3991 2002-06-04 Bob Wilson <bob.wilson@acm.org>
3993 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
3994 typo in function prototype and include "ggc.h" header.
3996 2002-06-04 Richard Henderson <rth@redhat.com>
3998 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
3999 (print_operand) ['U']: Likewise.
4000 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
4001 (alpha_expand_unaligned_store_words): Likewise.
4002 (alpha_expand_builtin_vector_binop): Fix typo.
4003 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
4004 umulh, and cix insns.
4005 (one_arg_builtins): Add cix builtins.
4006 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
4007 (alpha_expand_builtin): Fix typo in arity.
4008 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
4009 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
4010 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
4011 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
4012 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
4013 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
4014 builtin_ctlz, builtin_ctpop): New.
4015 * doc/extend.texi (Alpha Built-in Functions): Update.
4017 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
4019 * gengtype.c (write_gc_root): Don't unnecessarily prevent
4020 global variable-length arrays being roots.
4022 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
4023 * configure.in (config_gtfiles): New variable.
4024 (all_gtfiles): Initialise from config_gtfiles.
4025 * configure: Regenerate.
4027 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4030 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
4031 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
4032 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
4033 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
4034 win32.h (CPP_SPEC): Remove cpp_cpu.
4035 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
4036 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
4038 2002-06-04 Janis Johnson <janis187@us.ibm.com>
4040 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
4042 2002-06-04 Jeff Law <law@redhat.com.
4043 David Edelsohn <edelsohn@gnu.org>
4044 Michael Matz <matz@kde.org>
4046 * sched-int.h (struct deps): New field libcall_block_tail_insn.
4047 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
4048 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
4049 is set, then mark the current insn as being part of a libcall
4051 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
4053 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
4054 insns against the issue rate.
4056 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
4058 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
4059 * final.c (final_scan_insn): Likewise.
4060 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
4061 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
4062 * haifa-sched.c (unlink_other_notes): Likeewise.
4063 (reemit_notes): Likewise.
4064 * print-rtl.c (print_rtx): Likewise.
4065 * sched-deps (sched-analyze): Likewise.
4066 * rtl.c (note_insn_name): Likewise.
4067 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
4068 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
4071 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4073 * varasm.c (mark_constants): Handle RTX format 'B'.
4075 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
4077 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
4078 (struct cpp_context): Add traditional fields.
4079 * cppmacro.c (paste_all_tokens, push_ptoken_context,
4080 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
4081 * cpptrad.c (skip_comment, lex_identifier,
4082 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
4084 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
4086 * gbl-ctors.h: Fix formatting.
4088 * gccspec.c: Likewise.
4090 * gcov-io.h: Likewise.
4092 * ggc-common.c: Likewise.
4094 * ggc-page.c: Likewise.
4095 * ggc-simple.c: Likewise.
4096 * global.c: Likewise.
4097 * graph.h: Likewise.
4098 * gthr-dce.h: Likewise.
4100 * gthr-posix.h: Likewise.
4101 * gthr-rtems.h: Likewise.
4102 * gthr-solaris.h: Likewise.
4103 * gthr-win32.h: Likewise.
4105 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
4107 Merge from pch-branch:
4109 * gengtype.h (UNION_OR_STRUCT_P): New macro.
4110 * gengtype.c (write_gc_structure_fields): Use it.
4111 (write_gc_root): Use it here too.
4113 * gengtype.c (write_gc_structure_fields): Assume that lengths
4114 of typenames fit into an 'int'; don't pass a size_t to "%d" in
4116 (write_gc_marker_routine_for_structure): Likewise.
4117 (write_gc_types): Likewise.
4118 (write_gc_root): Likewise.
4120 * varray.h (VARRAY_CLEAR): New.
4121 (varray_clear): Prototype.
4122 * varray.c (varray_clear): New.
4123 * cselib.c (reg_values_old): New.
4124 (used_regs_old): New.
4125 (cselib_init): Use cached varrays if available to avoid
4126 generating large amounts of garbage.
4127 (cselib_finish): Don't throw away old varrays.
4129 * final.c (insn_addresses_): Move out of ifdef.
4131 * varray.c (uses_ggc): Make more varray kinds GCable.
4132 * varray.h (union varray_data_tag): Let gengtype see
4133 fields 'generic' and 'te'.
4134 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
4135 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
4136 (reg_to_stack): Don't call VARRAY_FREE.
4137 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
4138 (insn_addresses_): Use gengtype to mark.
4139 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
4140 pointers; handle generic pointers in unused union fields.
4141 (get_output_file_with_visibility): Include cselib.h,
4142 insn-addr.h in gtype-desc.c.
4143 * function.c (prologue): Use gengtype to mark.
4144 (epilogue): Likewise.
4145 (sibcall_epilogue): Likewise.
4146 * dependence.c: Include gt-dependence.h, ggc.h.
4147 (struct def_use): Use gengtype to mark.
4148 (struct loop): Likewise.
4149 (struct induction): Likewise.
4150 (struct dependence): Likewise.
4151 (def_use_chain): Likewise.
4152 (dep_chain): Likewise.
4153 (loop_chain): Likewise.
4154 (induction_chain): Likewise.
4155 (init_dependence_analysis): Don't free anything, just clear pointers.
4156 (build_def_use): Use GGC to allocate def_use.
4157 (add_loop): Use GGC to allocate loop.
4158 (find_induction_variable): Use GGC to allocate induction.
4159 (check_node_dependence): Use GGC to allocate induction, dependence.
4160 (dump_node_dependence): Don't free varrays.
4161 (end_dependence_analysis): Likewise.
4162 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
4163 (struct elt_loc_list): Likewise.
4164 (struct elt_list): Likewise.
4165 * cselib.c: Don't include obstack.h.
4166 (hash_table): Use gengtype to mark.
4167 (reg_values): Use gengtype to mark.
4168 (used_regs): Use gengtype to mark.
4169 (cselib_obstack): Delete.
4170 (cselib_startobj): Delete.
4171 (empty_vals): Mark as deletable.
4172 (empty_elt_lists): Mark as deletable.
4173 (empty_elt_loc_lists): Mark as deletable.
4174 (new_elt_list): Use GGC to allocate struct elt_list.
4175 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
4176 (clear_table): Don't delete obstack; don't unnecessarily clear
4177 deletable variables.
4178 (new_cselib_val): Use GGC to allocate struct cselib_val.
4179 (cselib_init): Don't set up obstacks. Use GGC to allocate
4181 (cselib_finish): Just clear variables, don't free anything.
4182 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
4183 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
4184 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
4185 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
4186 (gt-reg-stack.h): New rule.
4187 (gt-dependence.h): New rule.
4188 (gtype-desc.o): Add cselib.h, insn-addr.h.
4190 * varray.c: Use only necessary headers.
4191 (element_size): New.
4193 (varray_init): Take type, not size. Use GGC if appropriate.
4194 (varray_grow): Update for change to struct varray_head_tag.
4195 Use GGC if appropriate.
4196 * varray.h (struct const_equiv_data): Use gengtype.
4197 (enum varray_data_enum): New.
4198 (union varray_data_tag): Use gengtype.
4199 (struct varray_head_tag): Use gengtype. Replace size field with
4200 enum varray_data_enum.
4201 (varray_init): Update prototype.
4202 (VARRAY_SCHED_INIT): Delete.
4203 (VARRAY_*_INIT): Update for change to varray_init.
4204 (VARRAY_SCHED): Delete.
4205 (VARRAY_PUSH_SCHED): Delete.
4206 (VARRAY_TOP_SCHED): Delete.
4207 * tree.h: Update for change to length specifier.
4208 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
4209 (clone_body): Likewise.
4210 * ssa.h (ssa_definition): Use gengtype to mark.
4211 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
4212 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
4213 * rtl.h (struct rtvec_def): Update for change to length specifier.
4214 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
4215 (struct initial_value_struct): Update for change to length specifier.
4216 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
4217 (ggc_add_tree_varray_root): Delete prototype.
4218 (ggc_mark_rtx_varray): Delete prototype.
4219 (ggc_mark_tree_varray): Delete prototype.
4220 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
4221 (ggc_add_tree_varray_root): Delete.
4222 (ggc_mark_rtx_varray): Delete.
4223 (ggc_mark_tree_varray): Delete.
4224 (ggc_mark_rtx_varray_ptr): Delete.
4225 (ggc_mark_tree_varray_ptr): Delete.
4226 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
4227 (create_varray): Delete prototype.
4228 * gengtype.c (varrays): Delete.
4229 (create_varray): Delete.
4230 (adjust_field_type): Detect array of string pointers.
4231 (process_gc_options): Remove code to handle varray_type option.
4232 (set_gc_used_type): Remove TYPE_VARRAY case.
4233 (output_escaped_param): New.
4234 (write_gc_structure_fields): Use output_escaped_param on all
4235 parameters. Handle 'skip' with 'use_param' option. Handle
4236 arrays of strings. Remove TYPE_VARRAY handling.
4237 (write_gc_roots): Use boolean to detect 'length' option.
4238 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
4239 (struct_fields): Call adjust_field_type on array fields.
4240 (type): Remove VARRAY_TYPE case.
4241 (type_option): Likewise.
4242 * gengtype-lex.l: Don't consider varray_type a keyword.
4243 * function.h: Update for change to length specifier.
4244 (free_eh_status): Delete prototype.
4245 * function.c (free_after_compilation): Don't call free_eh_status.
4246 (reorder_blocks): Don't use VARRAY_FREE.
4247 * except.c (struct eh_status): Update for change to length specifier.
4248 remove varray_type specifier.
4249 (free_eh_status): Delete.
4250 * dwarf2out.c: Include gt-dwarf2out.h.
4251 (used_rtx_varray): Use gengtype to mark, move
4253 (incomplete_types): Likewise.
4254 (decl_scope_table): Likewise.
4255 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
4256 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
4257 * c-tree.h (struct lang_type): Update for change to length specifier.
4258 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
4259 * c-objc-common.c: Include gt-c-objc-common.h.
4260 (deferred_fns): Mark for gengtype.
4261 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
4262 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
4263 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
4264 (gtype-desc.o): Update dependencies.
4265 (dwarf2out.o): Add gt-dwarf2out.h.
4266 (varray.o): Update dependencies.
4267 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
4268 (gt-c-objc-common.h): New rule.
4269 (gt-dwarf2out.h): New rule.
4270 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
4272 * doc/gty.texi (GTY Options): Correct spelling.
4273 (GGC Roots): Likewise.
4274 * Makefile.in (TEXI_CPP_FILES): New.
4275 (TEXI_GCC_FILES): New.
4276 (TEXI_GCCINT_FILES): New.
4277 (TEXI_CPPINT_FILES): New.
4278 ($(docdir)/cpp.info): Use new macros.
4279 ($(docdir)/gcc.info): Likewise.
4280 ($(docdir)/gccint.info): Likewise.
4281 ($(docdir)/cppinternals.info): Likewise.
4282 (cpp.dvi): Likewise.
4283 (gcc.dvi): Likewise.
4284 (gccint.dvi): Likewise.
4285 (cppinternals.dvi): Likewise.
4287 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
4288 * doc/gccint.texi (Top): Include gty.texi.
4289 * doc/gty.texi: New file.
4291 * bitmap.c: Include ggc.h, gt-bitmap.h.
4292 (bitmap_ggc_free): New.
4293 (bitmap_elem_to_freelist): New.
4294 (bitmap_element_free): Use bitmap_elem_to_freelist.
4295 (bitmap_element_allocate): Allow use of GGC.
4296 (bitmap_clear): Use bitmap_elem_to_freelist.
4297 (bitmap_copy): Update for change to bitmap_element_allocate.
4298 (bitmap_set_bit): Likewise.
4299 (bitmap_operation): Update for changes elsewhere.
4300 (bitmap_initialize): Allow to create bitmaps that will use GGC.
4301 * bitmap.h (struct bitmap_element_def): Use gengtype.
4302 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
4303 (bitmap_initialize): Add extra parameter.
4304 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
4305 (BITMAP_ALLOCA): Delete.
4306 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
4307 (BITMAP_GGC_ALLOC): New.
4308 * Makefile.in (gtype-desc.o): Add bitmap.h.
4309 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
4310 (GTFILES): Add bitmap.c.
4311 (gt-bitmap.h): New rule.
4312 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
4313 * basic-block.h: Update for changes to bitmap_initialize.
4314 * except.c (exception_handler_label_map): Move into...
4315 (struct eh_status): Here.
4316 (struct eh_region): Make 'aka' GCable.
4317 (free_eh_status): Don't need to specially handle
4318 exception_handler_label_map.
4319 (add_ehl_entry): Update for changes to exception_handler_label_map.
4320 (find_exception_handler_labels): Likewise.
4321 (remove_exception_handler_label): Likewise.
4322 (maybe_remove_eh_handler): Likewise.
4323 (for_each_eh_label): Likewise.
4324 (remove_eh_handler): Allocate 'aka' using GGC.
4325 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
4326 to list of includes.
4328 * gengtype.c (write_gc_marker_routine_for_structure): Name
4329 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
4330 (write_gc_types): Arrange for the tests with NULL to be inlined.
4331 (write_gc_roots): Update uses of procedure pointers.
4332 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
4334 * Makefile.in (explow.o): Add dependency on gt-explow.h.
4335 (sdbout.o): Add dependency on gt-sdbout.h.
4337 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
4338 (mem_attrs_htab): Likewise.
4339 (init_emit_once): Don't call ggc_add_deletable_htab.
4340 * fold-const.c (size_htab): Use gengtype to clear unused entries.
4341 (size_int_type_wide): Don't call ggc_add_deletable_htab.
4342 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
4343 parameters, use them, change callers.
4344 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
4345 (write_gc_roots): Handle 'if_marked' option.
4346 (main): Don't need to call set_gc_used_type any more.
4347 * ggc.h (ggc_htab_marked_p): Delete.
4348 (ggc_htab_mark): Delete.
4349 (struct ggc_cache_tab): New.
4350 (gt_ggc_cache_rtab): New declaration.
4351 * ggc-common.c (struct d_htab_root): Delete.
4352 (d_htab_roots): Delete.
4353 (ggc_add_deletable_htab): Delete.
4354 (ggc_htab_delete): Handle new htab-deleting mechanism.
4355 (ggc_mark_roots): Use new htab-deleting mechanism.
4356 * tree.c (type_hash_table): Use gengtype to clear unused entries.
4358 (init_obstacks): Don't call ggc_add_deletable_htab.
4360 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
4361 (struct hashed_entry): Likewise.
4362 (nst_method_hash_list): Likewise.
4363 (cls_method_hash_list): Likewise.
4364 (HASH_ALLOC_LIST_SIZE): Delete.
4365 (ATTR_ALLOC_LIST_SIZE): Delete.
4366 * objc/objc-act.c (hash_init): Use ggc to allocate
4367 nst_method_hash_list, cls_method_hash_list.
4368 (hash_enter): Use ggc to allocate; allocate one entry at a time.
4369 (hash_add_attr): Likewise.
4370 (ggc_mark_hash_table): Delete.
4371 (objc_act_parse_init): Delete.
4372 (objc_init): Delete reference to objc_act_parse_init.
4373 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
4374 obstack.h. Replace references to 'struct hash_table' with htab_t.
4375 (struct symbol_hash_entry): Replace hash header with key field.
4376 (struct file_hash_entry): Replace hash header with key field.
4377 (struct demangled_hash_entry): Replace hash header with key field.
4378 (hash_string_eq): New.
4379 (hash_string_hash): New.
4380 (symbol_hash_newfunc): Delete.
4381 (symbol_hash_lookup): Modify to use htab_t.
4382 (file_hash_newfunc): Delete.
4383 (file_hash_lookup): Modify to use htab_t.
4384 (demangled_hash_newfunc): Delete.
4385 (demangled_hash_lookup): Modify to use htab_t.
4386 (tlink_init): Modify to use htab_t.
4389 * ggc.h: Delete forward structure declarations.
4390 Delete prototypes for deleted functions.
4391 * ggc-common.c: Don't include hash.h.
4392 (ggc_add_tree_hash_table_root): Delete.
4393 (ggc_mark_tree_hash_table_entry): Delete.
4394 (ggc_mark_tree_hash_table): Delete.
4395 (ggc_mark_tree_hash_table_ptr): Delete.
4396 * gengtype.c (write_gc_structure_fields): Allow param_is option.
4397 (write_gc_marker_routine_for_structure): Use visibility of
4398 the parameter if there is one.
4399 * function.c: Replace hash.h with hashtab.h. Replace references
4400 to 'struct hash_table *' with htab_t.
4401 (struct insns_for_mem_entry): Include a plain key.
4402 (fixup_var_refs_insns_with_hash): Update to use htab_t.
4403 (insns_for_mem_newfunc): Delete.
4404 (insns_for_mem_hash): Update to use htab_t.
4405 (insns_for_mem_comp): Likewise.
4406 (insns_for_mem_walk): Likewise.
4407 * c-lang.c: Include ggc.h.
4408 * Makefile.in (OBJS): Remove hash.o.
4409 (c-lang.o): Add GGC_H.
4410 (COLLECT2_OBJS): Remove hash.o.
4411 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
4412 (ggc-common.o): Remove hash.h.
4413 (function.o): Remove hash.h, add HASHTAB_H.
4414 (genautomata.o): Remove hash.h, add HASHTAB_H.
4416 * varasm.c (mark_const_str_htab_1): Delete.
4417 (mark_const_str_htab): Delete.
4418 (const_str_htab_del): Delete.
4419 (const_str_htab): Use gengtype to mark.
4420 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
4422 * tree.c (mark_tree_hashtable_entry): Delete.
4423 (mark_tree_hashtable): Delete.
4424 * tree.h (mark_tree_hashtable): Delete prototype.
4425 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
4426 (ggc_mark): Likewise.
4428 (htab_create_ggc): New.
4429 * ggc-common.c (ggc_calloc): New.
4430 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
4431 (struct type): Add param_struct structure.
4432 * gengtype.c (param_structs): New.
4433 (adjust_field_type): Handle param_is option.
4434 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
4435 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
4436 (write_gc_structure_fields): Add new PARAM parameter. Update
4437 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
4438 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
4439 Use it to generate function name. Update callers.
4440 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
4442 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
4444 (main): Define PTR as pointer-to-scalar. Don't specially
4445 mark deferred_string or ehl_map_entry.
4446 * gengtype-yacc.y (PARAM_IS): Add new token.
4447 (externstatic): Use adjust_field_type.
4448 (type_option): Add PARAM_IS.
4449 * gengtype-lex.l: Add rule for typedef of function pointers.
4450 Add rule for PARAM_IS.
4451 (IWORD): Add size_t.
4452 * except.c (exception_handler_label_map): Use gengtype to mark.
4453 (type_to_runtime_map): Likewise.
4454 (mark_ehl_map_entry): Delete.
4455 (mark_ehl_map): Delete.
4456 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
4457 (t2r_mark_1): Delete.
4459 * Makefile.in (gtype-desc.o): Correct dependencies.
4460 (GTFILES): Add hashtab.h.
4461 (genautomata.o): Actually uses hashtab.h.
4463 * Makefile.in (stringpool.o): Add $(GGC_H).
4464 (dwarf2asm.o): Likewise.
4465 (GTFILES): Add hashtable.h.
4466 * c-common.h (struct c_common_identifier): Use gengtype.
4467 * c-decl.h (c_mark_tree): Delete.
4468 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4469 * c-tree.h (struct lang_identifier): Use gengtype.
4470 (union lang_tree_node): New.
4471 (c_mark_tree): Delete prototype.
4472 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
4474 * gengtype-lex.l (IWORD): Allow 'bool'.
4476 * gengtype-yacc.y (ALIAS): New token.
4477 (type_option): New rule.
4478 (option): Use type_option.
4479 * gengtype.c (process_gc_options): New.
4480 (set_gc_used_type): Use it.
4481 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
4482 Add new variable 't' to hold the type of the field being processed.
4483 Add more error checking. Use UNION_P when looking at 'desc' option.
4484 Handle language-specific structures containing other
4485 language-specific structures.
4486 (write_gc_types): Handle 'ptr_alias' option.
4487 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
4488 * ggc-common.c (ggc_pending_trees): Delete.
4489 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
4490 (ggc_mark_trees): Delete.
4491 (gt_ggc_m_tree_node): Delete.
4492 * ggc.h (ggc_pending_trees): Delete.
4493 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
4494 * hashtable.h (ht_identifier): Use gengtype.
4495 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
4496 * langhooks.h (struct lang_hooks): Delete mark_tree.
4497 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
4499 * system.h: Poison LANG_HOOKS_MARK_TREE.
4500 * tree.c (tree_node_structure): New.
4501 * tree.h (struct tree_common): Use gengtype.
4502 (struct tree_int_cst): Likewise.
4503 (struct tree_real_cst): Likewise.
4504 (struct tree_string): Likewise.
4505 (struct tree_complex): Likewise.
4506 (struct tree_vector): Likewise.
4507 (struct tree_identifier): Likewise.
4508 (struct tree_list): Likewise.
4509 (struct tree_vec): Likewise.
4510 (struct tree_exp): Likewise.
4511 (struct tree_block): Likewise.
4512 (struct tree_type): Likewise.
4513 (struct tree_decl): Likewise.
4514 (enum tree_structure_enum): New.
4515 (union tree_node): Use gengtype, with an alias.
4516 (tree_node_structure): Prototype.
4517 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
4519 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
4520 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
4521 to LANG_HOOKS_FUNCTION_FINAL.
4522 * Makefile.in (GTFILES): Add bitmap.h.
4523 * except.c (struct eh_region): Mark field 'aka' to be skipped.
4525 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
4526 (alpha_init_machine_status): Give proper type.
4527 * Makefile.in (c-lang.o): Depend on gtype-c.h.
4528 (optabs.o): Depend on gt-optabs.h.
4529 (GTFILES): Add optabs.o.
4530 (gt-optabs.h): Add rule.
4531 * optabs.c: Include gt-optabs.h.
4533 * gengtype.c (set_gc_used_type): Correct some errors in last change.
4534 (write_gc_structure_fields): If a field which should be NULL is
4536 * c-pragma.c: Move struct align_stack and variable alignment_stack
4539 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
4540 * config/xtensa/xtensa.c: Include gt-cris.h.
4541 (struct machine_function): Use gengtype to mark.
4542 * config/mmix/mmix.h (struct machine_function): Use gengtype
4544 * config/cris/t-cris: Add dependencies for gt-cris.h.
4545 * config/cris/cris.c: Include gt-cris.h.
4546 (struct machine_function): Use gengtype to mark.
4547 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
4549 * doc/tm.texi (Per-Function Data): Delete references to
4550 mark_machine_status.
4551 * config/ia64/ia64.c (ia64_override_options): Don't set
4552 mark_machine_status.
4553 * config/i386/i386.c (override_options): Likewise.
4554 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
4555 * config/arm/arm.c (arm_init_expanders): Likewise.
4556 * config/alpha/alpha.c (override_options): Likewise.
4557 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
4558 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
4559 (write_gc_structure_fields): Don't handle 'really' option.
4560 Handle 'maybe_null' option.
4561 (write_gc_types): Handle 'maybe_null' option.
4562 * function.h (struct function): Don't use "really".
4563 (mark_machine_status): Delete declaration.
4564 (mark_lang_status): Delete declaration.
4565 (gt_ggc_mr_machine_function): Delete prototype.
4566 (gt_ggc_mr_language_function): Delete prototype.
4567 * function.c (mark_machine_status): Delete.
4568 (mark_lang_status): Delete.
4569 (gt_ggc_mr_machine_function): Delete.
4570 (gt_ggc_mr_language_function): Delete.
4571 * c-tree.h (mark_c_function_context): Delete prototype.
4572 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
4573 * c-decl.c (struct language_function): Rename from struct
4574 c_language_function. Update uses. Use gengtype to mark.
4575 (mark_c_function_context): Delete.
4576 * c-common.h (struct c_language_function): Rename from struct
4578 (mark_stmt_tree): Delete prototype.
4579 (c_mark_lang_decl): Delete prototype.
4580 (mark_c_language_function): Delete prototype.
4581 * c-common.c (mark_stmt_tree): Delete.
4582 (c_mark_lang_decl): Delete.
4583 (mark_c_language_function): Delete.
4585 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
4586 (lang_bitmap): New typedef. Use where appropriate.
4587 (struct type): Add gc_used field, lang_struct field.
4588 (UNION_P): New macro.
4589 (new_structure): New prototype.
4590 (find_structure): Remove 'pos' parameter. Change all callers.
4591 * gengtype-lex.l: Update for changes to find_structure.
4592 * gengtype-yacc.y (typedef_struct): Use new_structure.
4593 (yacc_ids): Suppress warning.
4594 (type): Use new_structure.
4595 * gengtype.c (string_type): Update for changes to struct type.
4596 (find_structure): Just find a structure, don't worry about
4598 (new_structure): New.
4599 (note_yacc_type): Use new_structure.
4600 (set_gc_used_type): New.
4602 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
4603 (write_gc_types): Handle TYPE_LANG_STRUCT.
4604 (write_gc_marker_routine_for_structure): New.
4605 (main): Call set_gc_used. Add some calls to set_gc_used_type
4606 for places where GCC doesn't use gengtype properly yet.
4607 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
4608 (gt_ggc_m_tree_node): Likewise.
4610 * varasm.c (copy_constant): Call expand_constant if we hit
4611 something we can't recognise.
4613 * ggc-common.c (ggc_mark_rtvec_children): Delete.
4614 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
4615 (lang_mark_false_label_stack): Delete.
4616 * rtl.h (struct rtvec_def): Use gengtype to mark.
4617 * ggc.h (ggc_mark_rtvec): Delete.
4618 (gt_ggc_m_rtvec_def): Delete.
4619 (ggc_mark_nonnull_tree): Delete.
4620 (ggc_mark_rtvec_children): Delete prototype.
4621 (lang_mark_false_label_stack): Delete declaration.
4623 * gengtype.h (note_yacc_type): Add prototype.
4624 * gengtype.c (note_yacc_type): New function.
4625 * gengtype-lex.l: Add lexer support for yacc files.
4626 * gengtype-yacc.y (start): Extract union from yacc files.
4627 (yacc_union): New rule.
4628 (yacc_typematch): New rule.
4629 (yacc_ids): New rule.
4630 (enum_items): Tweak for efficiency.
4631 (optionseq): Likewise.
4633 * c-common.h (struct language_function): Use gengtype.
4634 (struct c_lang_decl): Likewise.
4635 * c-tree.h (struct lang_decl): Likewise.
4636 (struct lang_type): Likewise.
4637 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
4638 tree language substructures.
4640 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
4642 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
4644 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
4646 * stmt.c (struct nesting): Add discriminator. Use gengtype to
4647 mark. Remove 'data.block.cleanup_ptr' field.
4648 (struct stmt_status): Use usual technique to mark struct nesting.
4649 (gt_ggc_mr_nesting_cond): Delete.
4650 (gt_ggc_mr_nesting_loop): Delete.
4651 (gt_ggc_mr_nesting_block): Delete.
4652 (gt_ggc_mr_nesting_case_stmt): Delete.
4653 (expand_start_cond): Set discriminator.
4654 (expand_start_loop): Likewise.
4655 (expand_start_null_loop): Likewise.
4656 (expand_start_bindings_and_block): Set discriminator. Don't set
4658 (expand_decl_cleanup): Replace 'cleanup_ptr' with
4659 &thisblock->data.block.cleanups.
4660 (expand_start_case): Set discriminator.
4661 (expand_start_case_dummy): Set discriminator.
4663 * ggc-callbacks.c: Remove.
4665 * gengtype.h (struct type): Add 'u.s.bitmap' field.
4666 (find_structure): Add 'pos' parameter.
4667 * gengtype-lex.l: Update callers to find_structure.
4668 * gengtype-yacc.y: Likewise.
4669 * gengtype.c (find_structure): Allow for structures to be defined
4670 in multiple language backends.
4671 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
4672 (counter): Rename to gc_counter.
4673 (write_gc_structure_fields): Fail when writing out fields for
4674 an incomplete structure. Ignore arrays of scalars. Handle
4676 (write_gc_types): Reset counter for each procedure written.
4678 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
4679 (free_case_nodes): Delete.
4680 (expand_end_case_type): Delete call to free_case_nodes.
4682 * Makefile.in (cselib.o): Include gt-<filename>.h.
4684 (profile.o): Likewise.
4685 (alias.o): Likewise.
4686 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
4687 alphabetize backend files.
4688 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
4689 * alias.c: Use gengtype for roots.
4690 * c-common.h (struct stmt_tree_s): Use gengtype.
4691 * c-decl.c: Use gengtype for roots.
4692 * cselib.c: Use gengtype for roots.
4693 * expr.c: Use gengtype for roots.
4694 * fold-const.c: Use gengtype for roots.
4695 * gcse.c: Use gengtype for roots.
4696 * gengtype-lex.l: Handle typedefs of function types.
4697 Allow for empty array bounds.
4698 Allow processing to stop on initialisers.
4699 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
4700 (semiequal): New rule.
4701 * gengtype.c (create_file): Tidy output files.
4702 (get_output_file_with_visibility): Fix paren warning. Fix bug
4703 involving multiple input files mapping to one output file.
4704 (write_gc_structure_fields): Skip arrays of scalars.
4705 (write_gc_types): Tidy output files.
4706 (write_gc_root): New function.
4707 (write_gc_roots): Fix bugs, add support for roots that are
4709 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
4710 (ggc_mark_tree_ptr): Delete.
4711 (ggc_add_rtx_root): Delete.
4712 (ggc_add_tree_root): Delete.
4713 (ggc_del_root): Delete.
4714 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
4715 allocate struct initial_value_struct.
4716 * profile.c: Use gengtype for roots.
4717 * sdbout.c: Use gengtype for roots.
4718 * varasm.c (mark_weak_decls): Delete unused prototype.
4719 (mark_const_hash_entry): Delete unused function.
4720 * config/darwin-protos.h: Use gengtype for roots.
4721 (machopic_add_gc_roots): Delete.
4722 * config/arm/arm.c: Use gengtype for roots.
4723 * config/arm/arm.h: Use gengtype for roots.
4724 * config/c4x/c4x-protos.h: Use gengtype for roots.
4725 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
4726 * config/d30v/d30v-protos.h: Use gengtype for roots.
4727 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
4728 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
4729 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
4730 * config/ia64/ia64-protos.h: Use gengtype for roots.
4731 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
4732 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
4733 * config/m68hc11/m68hc11.c (z_reg): Make global.
4734 (z_reg_qi): Make global.
4735 (m68hc11_add_gc_roots): Delete.
4736 * config/mcore/mcore-protos.h: Use gengtype for roots.
4737 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
4738 * config/mips/mips.c (mips_add_gc_roots): Delete.
4739 * config/mips/mips.h: Use gengtype for roots.
4740 * config/mmix/mmix.c (override_options): Use gengtype for roots.
4741 * config/mmix/mmix.h: Use gengtype for roots.
4742 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
4743 * config/mn10200/mn10200.h: Use gengtype for roots.
4744 * config/pa/pa.c: Use gengtype for roots, marking.
4745 (struct deferred_plabel): Use GGC, gengtype.
4746 (pa_add_gc_roots): Delete.
4747 (mark_deferred_plabels): Delete.
4748 * config/pj/pj-protos.h: Use gengtype for roots.
4749 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
4750 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
4751 machopic_add_gc_roots.
4752 * config/rs6000/rs6000.h: Use gengtype for roots.
4753 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
4754 (gt-darwin.h): Add rule.
4755 * config/sh/sh.c: Use gengtype for roots.
4756 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
4757 (gt-sh.h): Add rule.
4758 * config/sparc/sparc.c: Use gengtype for roots.
4759 (sparc_add_gc_roots): Delete.
4760 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
4761 (mark_ultrasparc_pipeline_state): Delete.
4762 * config/sparc/sparc.h: Use gengtype for roots.
4764 * Makefile.in (c-parse.o): Update dependencies.
4765 (c-common.o): Likewise.
4766 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
4767 Add dependencies for the files they generate.
4768 * c-common.c: Replace ggc_add_* uses with GTY annotations.
4769 * c-common.h: Likewise.
4770 * c-decl.c: Likewise.
4771 (gt_ggc_mp_binding_level): Delete.
4772 * c-lang.c: Include gtype-c.h.
4773 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
4775 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
4776 (gt_ggc_mp_align_stack): Delete.
4777 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
4778 * function.c: Replace ggc_add_* uses with GTY annotations.
4779 (gt_ggc_mp_function): Delete.
4780 * function.h: Replace ggc_add_* uses with GTY annotations.
4781 * gengtype.c (lang_names): New.
4782 (NUM_BASE_FILES): New.
4783 (open_base_files): Create language base files.
4785 (get_file_basename): New.
4786 (get_base_file_bitmap): New.
4787 (get_output_file_with_visibility): Rename from get_output_file.
4788 Add more mappings for various C/Objc filenames.
4789 (finish_root_table): New.
4790 (write_gc_roots): Handle dependencies and scoping properly.
4791 * gengtype.h: Add prototypes for new functions.
4792 * ggc-common.c (struct deletable_root): Delete.
4793 (deletables): Delete.
4794 (ggc_add_deletable_root): Delete.
4795 (ggc_mark_roots): No need to deal with deleted functionality.
4796 * ggc.h (ggc_add_deletable_root): Delete prototype.
4797 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
4798 (gtype-objc.h): Add rule to create.
4799 * objc/config-lang.in (gtfiles): New.
4800 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
4801 ggc_add_* with GTY markers. Include gtype-objc.h.
4802 (ggc_mark_imp_list): Delete.
4803 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
4804 * objc/objc-lang.c: Random Whitespace Change.
4806 * except.h (exception_handler_labels): Delete.
4807 (get_exception_handler_labels): New.
4808 * except.c (exception_handler_labels): Delete.
4809 (struct eh_status): Add exception_handler_labels field.
4810 (doing_eh): Don't add exception_handler_labels as root.
4811 (free_eh_status): Don't need to free exception_handler_labels.
4812 (get_exception_handler_labels): New.
4813 (find_exception_handler_labels): Update for move of
4814 exception_handler_labels.
4815 (remove_exception_handler_label): Likewise.
4816 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
4817 * jump.c (rebuild_jump_labels): Likewise.
4818 * loop.c (find_and_verify_loops): Likewise.
4819 * sched-rgn.c (is_cfg_nonregular): Likewise.
4821 * gengtype.c (write_gc_structure_fields): Handle variable-length
4824 * varasm.c (struct weak_syms): Use GGC, gengtype.
4825 (mark_weak_decls): Delete.
4826 (weak_decls): Likewise.
4827 (add_weak): Likewise.
4828 (remove_from_pending_weak_list): Likewise.
4829 (init_varasm_once): Likewise.
4831 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
4832 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
4833 stor-layout.c, regclass.c, and lists.c.
4834 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
4835 gt-regclass.h and gt-lists.h on s-gtype.
4836 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
4837 * except.c: Use gengtype for roots.
4838 * explow.c: Use gengtype for roots. Include gt-explow.h.
4839 * expr.h (init_stor_layout_once): Delete prototype.
4840 * function.c: Use gengtype for roots.
4841 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
4842 * gengtype-yacc.y (start): Can also be an externstatic.
4843 (externstatic): New production.
4844 (struct_fields): Correct array bounds inversion for 2-d arrays.
4845 * gengtype.c (variables): New variable.
4846 (note_variable): New function.
4847 (get_output_file): Include libfuncs.h into gtype-desc.c.
4848 (get_output_file_name): New function.
4849 (write_gc_structure_fields): Suppress warnings.
4850 (write_gc_types): Make static.
4851 (put_mangled_filename): New function.
4852 (write_gc_roots): New function.
4853 (main): Call write_gc_roots.
4854 * gengtype.h (note_variable): Prototype.
4855 (get_output_file_name): Prototype.
4856 (write_gc_types): Delete prototype.
4857 * ggc.h: Clean up unnecessary structure predefinitions.
4858 (struct ggc_root_tab): Define.
4859 (gt_ggc_m_rtx_def): Make function, not macro.
4860 (gt_ggc_m_tree_node): Likewise.
4861 * libfuncs.h: Use gengtype for roots.
4862 * lists.c: Use gengtype for roots. Include gt-lists.h.
4863 (init_EXPR_INSN_LIST_cache): Delete.
4864 * optabs.c: Use gengtype for roots.
4865 (gt_ggc_mp_optab): Delete.
4866 * optabs.h: Use gengtype for roots.
4867 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
4868 * rtl.h: Use gengtype for roots.
4869 (init_EXPR_INSN_LIST_cache): Delete prototype.
4870 * stor-layout.c: Use gengtype for roots.
4871 Include gt-stor-layout.h.
4872 (init_stor_layout_once): Delete.
4873 * toplev.c: Use gengtype for roots. Delete calls to deleted
4875 * tree.c: Use gengtype for roots.
4876 * tree.h: Use gengtype for roots.
4877 * varasm.c: Use gengtype for roots.
4879 * Makefile.in (GTFILES): Add @all_gtfiles@.
4880 * configure: Regenerate.
4881 * configure.in: Construct all_gtfiles from the gtfiles definitions
4883 * gengtype-yacc.y (type): Warn about duplicate structure names.
4884 * gengtype.c (get_output_file): Handle .c files in language
4887 * Makefile.in (GTFILES): Run gengtype on all the config files
4888 and on the target .c file.
4889 * except.c (mark_eh_region): Delete.
4890 (init_eh_for_function): Use GGC on struct eh_status.
4891 (mark_eh_status): Delete.
4892 (free_eh_status): Use GGC.
4893 (expand_eh_region_start): Use GGC to
4894 (collect_eh_region_array): Allocate last_region_number using GGC.
4895 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
4896 (remove_eh_handler): Let GGC free struct eh_region.
4897 (add_call_site): Use GGC to reallocate call_site_record array.
4898 * function.c (init_machine_status): Update calling sequence.
4899 (mark_machine_status): Likewise.
4900 (mark_lang_status): Likewise.
4901 (prepare_function_start): Update init_machine_status call.
4902 (mark_function_status): Delete.
4903 (maybe_mark_struct_function): Delete.
4904 (ggc_mark_struct_function): Delete.
4905 (gt_ggc_mp_function): New.
4906 (gt_ggc_mr_machine_function): New.
4907 (gt_ggc_mr_language_function): New.
4908 (init_function_once): Use canonical names.
4909 * function.h (struct function): Use gengtype.
4910 (init_machine_status): Return the structure.
4911 (mark_machine_status): Take a 'void *'.
4912 (mark_lang_status): Likewise.
4913 * ggc-common.c (ggc_mark_trees): Use canonical name for
4914 ggc_mark_struct_function.
4915 * tree.h (ggc_mark_struct_function): Delete prototype.
4916 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
4917 (alpha_init_machine_status): Likewise.
4918 (override_options): Use canonical name for alpha_mark_machine_status.
4919 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
4920 * config/arm/arm.h (struct machine_function): Use gengtype.
4921 * config/arm/arm.c (arm_mark_machine_status): Delete.
4922 (arm_init_machine_status): Update calling sequence.
4923 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
4924 * config/cris/cris.c (cris_init_machine_status): Update
4926 * config/d30v/d30v.h (struct machine_function): Use gengtype.
4927 * config/d30v/d30v.c (d30v_init_machine_status): Update
4929 (d30v_mark_machine_status): Delete.
4930 * config/i386/i386.c: Include gt-i386.h.
4931 (struct machine_function): Use gengtype.
4932 (ix86_init_machine_status): Update calling sequence.
4933 (ix86_mark_machine_status): Delete.
4934 (override_options): Use canonical namke for ix86_mark_machine_status.
4935 * config/ia64/ia64.h (struct machine_function): Use gengtype.
4936 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
4938 (ia64_mark_machine_status): Delete.
4939 (ia64_override_options): Use canonical name for
4940 ia64_mark_machine_status.
4941 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
4943 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
4944 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4945 * gengtype.c (get_output_file): Fix warning.
4946 (main): Add prototype to suppress warning.
4947 * tree.c: Remove tree_hash_mark prototype.
4949 * tree.h (init_stmt): Delete prototype.
4950 * toplev.c (lang_independent_init): Don't call init_stmt.
4951 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
4952 (stmt_obstack): Delete.
4953 (POPSTACK): No need to free 'struct nesting'.
4954 (gt_ggc_mr_nesting_cond): Use canonical names.
4955 (gt_ggc_mr_nesting_loop): Use canonical names.
4956 (gt_ggc_mr_nesting_block): Use canonical names.
4957 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
4958 (mark_stmt_status): Delete.
4959 (init_stmt): Delete.
4960 (clear_last_expr): Clear both last_expr_type and last_expr_value.
4961 Use it everywhere that last_expr_type was cleared.
4962 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
4963 (zap_lists): Delete.
4964 * ggc.h (ggc_add_deletable_root): Prototype.
4965 (mark_stmt_status): Remove prototype.
4966 * ggc-common.c (ggc_add_deletable_root): New.
4967 (ggc_mark_roots): Handle deletable roots.
4968 * function.c (ggc_mark_struct_function): Use canonical name
4969 for mark_stmt_status.
4970 * emit-rtl.c (free_sequence_stack): New.
4971 (start_sequence): Use a freelist for sequences.
4972 (end_sequence): Likewise.
4973 (init_emit_once): Add free_sequence_stack as a deleteable root.
4974 * c-pragma.c Include gt-c-pragma.h.
4975 (struct align_stack): Use gengtype.
4976 (push_alignment): Use GGC for struct align_stack.
4977 (mark_align_stack): Delete.
4978 (gt_ggc_mp_align_stack): New.
4979 (init_pragma): Use canonical name for mark_align_stack.
4980 * c-decl.c: Include gt-c-decl.h.
4981 (struct binding_level): Use gengtype.
4982 (make_binding_level): Use GGC; handle the freelist here.
4983 (pop_binding_level): New.
4984 (pushlevel): Move code into make_binding_level.
4985 (push_label_level): Likewise.
4986 (poplevel): Move code into pop_binding_level.
4987 (pop_label_level): Likewise.
4988 (mark_binding_level): Delete.
4989 (gt_ggc_mp_binding_level): New.
4990 (c_init_decl_processing): Use canonical name for mark_binding_level.
4991 Add free_binding_level as deletable root.
4992 (mark_c_function_context): Use canonical name for mark_binding_level.
4993 * Makefile.in (c-decl.o): Add gt-c-decl.h.
4994 (c-pragma.o): Add gt-c-pragma.h.
4995 (GTFILES): Add c-decl.c and c-pragma.c.
4996 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
4998 * tree.c (struct type_hash): Use gengtype.
4999 (init_obstacks): Use canonical name for type_hash_mark.
5000 (type_hash_mark): Delete.
5002 * rtl.h (struct mem_attrs): Use gengtype.
5003 * optabs.h (struct optab): Use gengtype.
5004 * optabs.c (expand_binop): Squish signed/unsigned warning.
5005 (mark_optab): Make local, use canonical name, use autogenerated
5007 (init_optabs): Use canonical name for mark_optab.
5008 (new_optab): Use GGC to allocate optabs.
5009 * ggc.h: Delete mark_optab prototype.
5010 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
5011 mem_attrs marker procedure.
5012 * gengtype.c (get_output_file): Include headers in gtype-desc.c
5013 explicitly rather than deducing them from file names.
5014 (write_gc_structure_fields): Handle arrays of structures.
5015 (main): Return non-zero exit code if errors occur during output.
5016 * emit-rtl.c (mem_attrs_mark): Delete.
5017 (init_emit_once): Use canonical name for mem_attrs marker procedure.
5018 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
5019 (tree.o): Depend on gt-tree.h.
5020 (GTFILES): Add rtl.h, optabs.h, tree.c.
5021 (gt-tree.h): Add it to s-gtype rule.
5023 * .cvsignore: Ignore gengtype flex/bison generated files.
5024 * Makefile.in (GGC_H): Add gtype-desc.h.
5025 (OBJS): Add gtype-desc.o.
5026 (GEN): Add gengtype.
5027 (STAGESTUFF): Add gengtype.
5028 (varasm.o): Add gt-varasm.h.
5029 (stmt.o): Add gt-stmt.h.
5030 (except.o): Add gt-except.h.
5031 (integrate.o): Add gt-integrate.h.
5033 Add new rules for new files.
5034 * configure: Regenerate.
5035 * configure.in: Correct defaults.h paths.
5036 * emit-rtl.c (mark_sequence_stack): Delete.
5037 (mark_emit_status): Delete.
5038 (start_sequence): Allocate sequence structures using GGC.
5039 (end_sequence): Allocate sequence structures using GGC.
5040 * except.c: Use gengtype for various structures. Include
5042 * expr.c (mark_expr_status): Delete.
5043 * function.c: Use gengtype for various structures. Include
5045 (mark_function_status): Use standard gt_ggc names for marker functions.
5046 (ggc_mark_struct_function): Likewise.
5047 * function.h: Use gengtype for various structures.
5048 * gengtype-lex.l: New file.
5049 * gengtype-yacc.y: New file.
5050 * gengtype.c: New file.
5051 * gengtype.h: New file.
5052 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
5053 the standard names. Remove some now-unnecessary prototypes.
5054 * integrate.c: Use gengtype for various structures. Include
5056 (mark_hard_reg_initial_vals): Delete.
5057 * integrate.h (mark_hard_reg_initial_vals): Delete.
5058 * stmt.c: Use gengtype for various structures. Include
5060 (mark_case_node): Delete.
5061 (mark_goto_fixup): Delete.
5062 (mark_stmt_status): Use standard gt_ggc names for marker functions.
5063 * system.h: Define GTY to empty. In flex/bison files,
5064 don't poison malloc or realloc, instead just define them to
5065 xmalloc and xrealloc.
5066 * varasm.c: Use gengtype for various structures. Include
5067 gt-varasm.h. Use standard gt_ggc names for marker functions.
5068 (mark_pool_constant): Delete.
5069 (mark_varasm_status): Delete.
5070 (decode_rtx_const): #if 0 out non-typesafe hack.
5072 * function.h (free_lang_status): Mark as obsolete.
5073 * function.c (free_lang_status): Mark as obsolete.
5074 * c-decl.c (push_c_function_context): Use GC to allocate and free
5075 struct language_function.
5076 (pop_c_function_context): Likewise.
5077 * c-common.c (mark_c_language_function): Mark struct
5080 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
5081 Document that the machine_function structures must be allocated
5082 using GC. Update mark_machine_status documentation.
5083 * function.h: Don't declare free_machine_status.
5084 * function.c (free_machine_status): Don't define.
5085 (free_after_compilation): Don't call free_machine_status.
5086 (ggc_mark_struct_function): Mark f->machine. Call
5087 mark_machine_status only on non-NULL pointers.
5088 * system.h: Poison free_machine_status.
5089 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
5090 struct machine_function.
5091 (xtensa_free_machine_status): Delete.
5092 (override_options): Don't set free_machine_status.
5093 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
5094 free_machine_status.
5095 (rs6000_init_machine_status): Use GC on struct machine_function.
5096 (rs6000_free_machine_status): Delete.
5097 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
5099 (ia64_mark_machine_status): Likewise.
5100 (ia64_free_machine_status): Delete.
5101 (ia64_override_options): Don't set free_machine_status.
5102 * config/i386/i386.c (override_options): Don't set
5103 free_machine_status.
5104 (ix86_init_machine_status): Use GC on struct machine_function.
5105 (ix86_mark_machine_status): Likewise.
5106 (ix86_free_machine_status): Delete.
5107 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
5109 (d30v_mark_machine_status): Likewise.
5110 (d30v_free_machine_status): Delete.
5111 (d30v_init_expanders): Don't set free_machine_status.
5112 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
5114 (arm_init_machine_status): Likewise.
5115 (arm_free_machine_status): Delete.
5116 (arm_init_expanders): Don't set free_machine_status.
5117 * config/alpha/alpha.c (override_options): Don't set
5118 free_machine_status.
5119 (alpha_init_machine_status): Use GC on struct machine_function.
5120 (alpha_mark_machine_status): Likewise.
5121 (alpha_free_machine_status): Delete.
5123 * varasm.c (compare_constant): Fix typo.
5125 * varasm.c: Don't include obstack.h.
5126 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
5127 (struct rtx_const): Give substructures names, improve formatting.
5128 (struct constant_descriptor): Delete.
5129 (struct constant_descriptor_tree): New, based on constant_descriptor.
5130 (const_hash_table): Is a hash table of trees.
5131 (mark_const_hash_entry): Is used for hashes of trees. Mark
5132 constant_descriptor_tree structure.
5133 (mark_const_str_htab_1): Mark deferred_string structure.
5134 (compare_constant): Rewrite to compare trees.
5135 (compare_constant_1): Delete.
5136 (record_constant): Delete.
5137 (record_constant_1): Delete.
5138 (output_constant_def): Use struct constant_descriptor_tree.
5139 Don't duplicate trees twice.
5140 (struct constant_descriptor_rtx): New.
5141 (struct pool_constant): Used for rtx constants.
5142 (init_varasm_status): Update for change to struct varasm_status.
5143 (mark_varasm_status): Likewise.
5144 (free_varasm_status): Delete.
5145 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
5146 (record_constant_rtx): Likewise.
5147 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
5148 (force_const_mem): Likewise.
5149 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
5150 * function.c (free_after_compilation): Don't use free_varasm_status.
5151 * function.h: Don't prototype free_varasm_status.
5153 * ggc-common.c (ggc_realloc): Handle X being NULL.
5155 * ggc-common.c (ggc_realloc): New function.
5156 * ggc.h: Prototype it.
5157 * emit-rtl.c (free_emit_status): Delete.
5158 (init_emit): Allocate emit subarrays using GC.
5159 (gen_reg_rtx): Reallocate subarrays using GC.
5160 (init_emit): Use GC to allocate 'struct emit_status' and its
5162 (mark_emit_status): Mark structure and its subarrays.
5163 * stmt.c (free_stmt_status): Delete.
5164 * expr.c (free_expr_status): Delete.
5165 * function.h: Remove prototypes for deleted functions.
5166 * function.c (free_after_compilation): Don't use deleted functions.
5167 Don't call free() on x_parm_reg_stack_loc.
5168 (free_after_parsing): Don't use free_stmt_status.
5169 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
5170 (mark_function_status): Mark x_parm_reg_stack_loc.
5172 * varasm.c (init_varasm_status): Use GC to allocate
5173 'struct varasm_status' and its fields x_const_rtx_hash_table
5174 and x_const_rtx_sym_hash_table.
5175 (mark_varasm_status): Mark them.
5176 (free_varasm_status): Use GC to free them.
5177 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
5178 (mark_expr_status): Mark the structure itself.
5179 (free_expr_status): Use GC to free the structure.
5180 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
5181 (mark_stmt_status): Mark the 'struct stmt_status' itself.
5182 (init_stmt_for_function): Allocate the structure for GC.
5184 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
5185 (equate_type_number_to_die): Likewise.
5186 * tree.h (TYPE_SYMTAB_DIE): New macro.
5187 (struct die_struct): Predeclare.
5188 (struct tree_type): Add field symtab.die. Add a tag
5189 to the union type of field symtab.
5191 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
5192 'struct rtvec_def *', not 'struct rtvec_def'.
5194 * function.h (original_arg_vector): Make a real rtvec.
5195 * function.c (ggc_mark_struct_function): Adjust.
5196 * integrate.c (expand_inline_function): Adjust.
5198 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5200 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
5201 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
5202 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
5203 (TARGET_VERSION_CPU): Define according to the
5205 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
5207 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
5208 if TARGET_SHMEDIA64.
5209 (LINK_DEFAULT_CPU_EMUL): Define according to the
5211 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
5212 (SUBTARGET_LINK_SPEC): Define.
5213 (LINK_SPEC): Use SH_LINK_SPEC.
5215 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5216 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
5217 and TARGET_SHMEDIA64 which abort, for now.
5218 * config/sh/t-netbsd-sh5: New file.
5219 * config/sh/t-netbsd-sh5-32: New file.
5220 * config/sh/t-netbsd-sh5-64: New file.
5222 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5223 Richard Henderson <rth@redhat.com>
5225 * config/alpha/alpha.c (reg_or_const_int_operand): New.
5226 (some_operand, input_operand): Accept CONST_VECTOR.
5227 (alpha_extra_constraint): Add 'W'.
5228 (alpha_expand_zap_mask): New.
5229 (alpha_expand_builtin_vector_binop): New.
5230 (enum alpha_builtin): New.
5231 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
5232 (alpha_init_builtins, alpha_expand_builtin): New.
5233 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
5234 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
5235 (PREDICATE_CODES): Update.
5236 * config/alpha/alpha-protos.h: Update.
5237 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
5238 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
5239 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
5240 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
5241 (movv2si, movv2si_fix, movv2si_nofix): New.
5242 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
5243 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
5244 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
5245 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
5246 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
5247 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
5248 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
5249 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
5250 builtin_unpkbw, unpkbw): New.
5251 * doc/extend.texi (Alpha Built-in Functions): New.
5253 2002-06-03 Richard Henderson <rth@redhat.com>
5255 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
5256 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
5258 2002-06-03 Richard Henderson <rth@redhat.com>
5260 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
5262 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
5263 (const0_operand): New.
5264 (reg_or_fp0_operand, fp0_operand): Remove.
5265 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5266 * config/alpha/alpha-protos.h: Update.
5267 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
5268 and fp0_operand with reg_or_0_operand and const0_operand.
5270 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
5272 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
5274 2002-06-03 Roger Sayle <roger@eyesopen.com>
5276 * gcse.c (cprop_jump): Use single_set to get the pattern
5277 from the setcc argument.
5279 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
5281 * diagnostic.h (diagnostic_count): Move from output_buffer to
5283 (diagnostic_kind_count): Adjust definition.
5285 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
5287 * except.c (except.c): Do not rebuild CFG.
5288 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
5291 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5293 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
5294 * toplev.c: Include cfglahout.h
5295 * Makefile.in (toplev.c): Add dependnecy.
5297 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
5299 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
5300 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
5301 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
5303 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5305 * config/ns32k/netbsd.h: Update copyright years.
5306 (TARGET_OS_CPP_BUILTINS): Define.
5307 (CPP_PREDEFINES): Remove.
5308 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
5309 (TARGET_CPU_CPP_BUILTINS): Define.
5311 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5313 * emit-rtl.c: Fix formatting.
5314 * errors.h: Likewise.
5315 * except.c: Likewise.
5316 * explow.c: Likewise.
5317 * expmed.c: Likewise.
5321 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
5323 * config/h8300/elf.h: Fix formatting.
5324 * config/h8300/rtems.h: Likewise.
5326 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5328 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
5330 2002-06-02 Tom Tromey <tromey@redhat.com>
5332 * fixinc/fixincl.x: Rebuilt.
5333 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
5335 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5338 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
5339 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
5343 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5345 * final.c (final): Allow notes to not have computed addresses;
5346 kill no longer needed STACK_REGS ifdef.
5348 2002-06-02 Richard Henderson <rth@redhat.com>
5350 * gcse.c (bypass_conditional_jumps): Fix typo last change.
5352 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5354 * loop.c (emit_prefetch_instructions): Properly place the address
5357 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5359 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
5360 (set_block_for_insn): Turn into macro.
5361 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
5362 * cfglayout.c (insn_scopes): Kill.
5363 (scope_to_insns_initialize): Do not use insn_scopes.
5364 (scope_to_insns_finalize): Likewise.
5365 (duplicate_insn_chain): Likewise.
5366 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
5367 * cfgrtl.c (basic_block_for_insn): Kill.
5368 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
5369 (create_basic_block_structure): Use reorder_insns.
5370 (compute_bb_for_insn): Do not use basic_block_for_insn.
5371 (merge_blocks_nomove): Likewise.
5372 (update_bb_for_insn): Likewise.
5373 (verify_flow_info): Likewise.
5374 (set_block_for_insn): Kill.
5375 * combine.c (try_combine): Update gen_rtx_INSN call.
5376 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
5377 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
5379 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
5380 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
5382 (emit_insns_after): Simplify.
5383 (emit_copy_of_insn_after): Copy scope.
5384 * final.c (final_start_function): Lower scopes.
5385 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
5386 * integrate.c (copy_insn_list): Cope scopes.
5387 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
5388 * loop.c (loop_optimize): Do not care block notes.
5389 * print-rtl.c (print_rtx): Print BB.
5390 * recog.c (apply_change_group): Simplify.
5391 * rtl.c (copy_rtx): Handle 'B'.
5392 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
5393 * rtl.h (Field accessors): Update indexes.
5394 * sched-ebb.c (schedule_ebbs): Do not lower notes.
5395 * sched-rgn.c (schedule_insns): Likewise.
5396 * toplev.c (rest_of_compilation): Lower notes.
5397 * unroll.c (unroll_loop): Do not care scoping notes.
5398 (copy_loop_body): Copy scopes.
5400 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5403 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5405 * rtems.h: Similarly.
5406 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
5407 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
5408 (TARGET_CPU_CPP_BUILTINS): Use.
5410 2002-06-02 Richard Henderson <rth@redhat.com>
5412 * alias.c: Include target.h.
5413 (mark_constant_function): Use targetm.binds_local_p instead
5414 of checking TREE_PUBLIC ourselves.
5415 * Makefile.in (alias.o): Add TARGET_H.
5417 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5419 * c-lex.c: Update copyright and file description.
5421 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5423 * config/fr30/fr30.h: Update to new CPP macros.
5425 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5427 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
5429 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5430 Zack Weinberg <zack@codesourcery.com>
5432 * c-common.c (c_common_init): Override cpplib's default
5433 warn_long_long setting.
5434 * c-lex.c (lex_number): Replace with interpret_integer,
5435 interpret_float, narrowest_unsigned_type and
5436 narrowest_signed_type, taking advantage of the new
5437 cpplib functionality.
5438 * cpperror.c (_cpp_begin_message): If a warning is turned
5439 into an error, avoid printing "warning:".
5440 * cppexp.c (cpp_num_sign_extend): New.
5441 * cppinit.c: Update comment.
5442 * cpplib.h (cpp_num_sign_extend): New.
5443 * tree.h: Update comment.
5445 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5447 * diagnostic.h (struct diagnostic_context): Add new member
5449 (internal_error_function): Remove declaration.
5450 * diagnostic.c (internal_error_function): Remove definition..
5451 (internal_error): Adjust use.
5453 2002-06-02 Richard Henderson <rth@redhat.com>
5455 * rtl.h (CC0_P): New.
5456 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
5457 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
5458 (bypass_block): Save old dest block for dump text.
5459 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
5460 Allow only true SET insns, not single_set.
5462 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
5464 * diagnostic.c (diagnostic_finish): Rename to output_flush.
5465 (clear_disgnostic_info): Rename to output_clear_data. Use false
5466 instead of 0 for boolean value.
5467 Adjust function call throughout.
5469 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5471 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
5472 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
5474 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5476 * d30v.h (CPP_PREDEFINES): Replace with
5477 (TARGET_CPU_CPP_BUILTINS): New.
5479 2002-06-02 Roger Sayle <roger@eyesopen.com>
5481 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
5483 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
5485 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
5487 2002-06-02 Richard Henderson <rth@redhat.com>
5489 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
5491 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
5493 Support for C++ constructors/destructors.
5494 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
5495 instead of looping if main() returns.
5496 (asm_file_start): Output global symbols that cause .data and .bss
5497 initialization code to be linked in, unconditionally for now.
5498 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
5499 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
5500 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5502 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
5503 (__tablejump__): New.
5504 (__do_copy_data, __do_clear_bss): New.
5505 (__do_global_ctors, __do_global_dtors): New.
5506 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
5509 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
5511 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
5512 (CPP_SPEC, CPP_PREDEFINES): Kill.
5513 * c4x/rtems.h (CPP_PREDEFINES): Kill.
5514 (TARGET_OS_CPP_BUILTINS): New.
5516 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
5518 * Makefile.in (tracer.o): New.
5519 * params.def (TRACER_*): New options.
5520 * rtl.h (tracer): Declare.
5521 * timevar.def (TV_TRACER): New.
5522 * toplev.c (dump_file_index): Add DFI_tracer.
5523 (dump_file_info): Add tracer.
5525 (lang_indepdenent_options): Add tracer.
5526 (rest_of_compilation): Call tracer.
5527 * tracer.c: New file.
5528 * invoke.texi (-ftracer): Document.
5529 (--param tracer-*): Document.
5531 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
5533 * tree-inline.c (expand_call_inline): Make the statement
5534 expression we generate have a COMPOUND_STMT.
5536 2002-06-01 Roger Sayle <roger@eyesopen.com>
5538 * gcse.c (cprop_cc0_jump): Function deleted.
5539 (cprop_jump): Take an additional argument which is the possibly
5540 NULL cc setting insn immediately before the conditional jump.
5541 When a MODE_CC set is present, substitute it into the JUMP_INSN
5542 before attempting the constant propagation.
5543 (cprop_insn): Recognize cc setters followed by conditional jumps
5544 as a special case. Use cprop_jump instead of cprop_cc0_jump.
5545 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
5546 (find_bypass_set): New function based upon find_avail_set used by
5547 cprop, but finds constant expressions available at the end of
5549 (bypass_block): New function. Given a basic block that begins
5550 with a conditional jump and multiple incoming edges, perform
5551 the jump bypass optimization.
5552 (bypass_conditional_jumps): New function. Call bypass_block with
5553 each suitable basic block in the CFG using a simple single pass.
5555 2002-06-01 Roger Sayle <roger@eyesopen.com>
5557 * tree.c (real_minus_onep): New function to test for -1.0.
5558 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
5560 2002-06-01 Roger Sayle <roger@eyesopen.com>
5562 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
5563 and "!p && !q" into "(p|q) == 0" under suitable conditions.
5565 2002-06-01 Andreas Jaeger <aj@suse.de>
5567 * cppexp.c (cpp_classify_number): Cast precission to int for
5568 correct printf format.
5570 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
5572 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
5573 expected, but don't really exist: atmega83, atmega85, attiny10.
5574 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
5575 emulations for all devices.
5576 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
5577 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
5579 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
5581 * config/h8300/h8300-protos.h: Add a prototype for
5582 h8300_shift_needs_scratch_p.
5583 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
5584 * config/h8300/h8300.h (OK_FOR_R): New.
5585 (OK_FOR_S): Likewise.
5586 (OK_FOR_T): Likewise.
5587 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
5588 * config/h8300/h8300.md (anonymous shift patterns): Use
5589 constraints R, S, and T.
5591 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5593 * basic-block.h (struct basic_block_def): New field loop_father.
5594 (BB_VISITED): New flag.
5595 (struct loop): New field pred, removed field shared.
5596 (struct loops): New field parray.
5597 (LOOP_EXITS_DOMS): Removed.
5598 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
5599 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
5600 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
5601 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
5602 verify_loop_structure): Declare.
5603 * cfg.c (entry_exit_blocks): Initialize loop_father field.
5604 * cfganal.c (dfs_enumerate_from): New function.
5605 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
5606 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5607 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
5608 flow_loop_dump, flow_loops_dump, flow_loops_free,
5609 flow_loop_tree_node_add, flow_loop_level_compute,
5610 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
5611 flow_loop_outside_edge_p): Modified for new infrastructure.
5612 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
5613 redirect_edge_with_latch_update, flow_loop_free): New static functions.
5614 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
5615 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5616 find_common_loop, verify_loop_structure, loop_latch_edge,
5617 loop_preheader_edge): New functions.
5618 (flow_loops_cfg_dump): Do not show dominators, as this information
5619 does not remain up to date long.
5620 (flow_loops_find): Store results in new format.
5621 * predict.c (propagate_freq, estimate_probability,
5622 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5625 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
5627 * except.c (nothrow_function_p): Walk epilogue delay list
5628 checking the insn, not the chain for potential throws.
5630 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5632 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
5633 (install): Refer to install-cpp directly.
5634 (uninstall-cpp): Folded into uninstall rule.
5635 * configure.in: Delete all code relating to --disable-cpp.
5636 * configure: Regenerate.
5637 * config/t-install-cpp: Delete.
5639 2002-05-31 Richard Henderson <rth@redhat.com>
5641 * configure.in (HAVE_AS_TLS): Add alpha tests.
5642 * configure: Rebuild.
5643 * config/alpha/alpha.c (TARGET_AS_TLS): New.
5644 (alpha_tls_size, alpha_tls_size_string): New.
5645 (overide_options): Set it. Always install machine_status hooks.
5646 (input_operand): Accept got tls predicates.
5647 (local_symbol_p): Merge into ...
5648 (local_symbolic_operand): ... here. Reject tls symbols.
5649 (global_symbolic_operand): Likewise.
5650 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
5651 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
5652 (tp16_symbolic_operand, tp32_symbolic_operand): New.
5653 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
5654 (alpha_encode_section_info): Handle TLS symbols.
5655 (alpha_strip_name_encoding): Likewise.
5656 (alpha_legitimate_address_p): Likewise.
5657 (alpha_legitimize_address): Likewise.
5658 (alpha_expand_mov): Early exit to avoid nop moves.
5659 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
5660 (alpha_init_machine_status, alpha_mark_machine_status,
5661 alpha_free_machine_status): Always define.
5662 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5663 (print_operand, print_operand_address): Add TLS relocs.
5664 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
5665 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
5666 (TARGET_SWITCHES): Add -mtls-kernel.
5667 (alpha_tls_size, alpha_tls_size_string): New.
5668 (TARGET_OPTIONS): Add -mtls-size=.
5669 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
5670 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
5671 (ASM_OUTPUT_LABELREF): Skip %.
5672 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
5673 (PREDICATE_CODES): Update.
5674 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
5675 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
5676 UNSPEC_TP, UNSPECV_SET_TP): New.
5677 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
5678 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
5679 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
5680 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
5681 (call_value_osf_2_er): Accept anything as op4.
5682 * config/alpha/alpha-protos.h: Update.
5683 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
5685 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5687 * cppinit.c (append_include_chain): Always pay attention to
5688 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
5691 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
5693 * target.h: Fix formatting.
5694 * timevar.h: Likewise.
5695 * tlink.c: Likewise.
5696 * toplev.c: Likewise.
5697 * toplev.h: Likewise.
5699 * tree-dump.h: Likewise.
5701 * tree-inline.h: Likewise.
5702 * unroll.c: Likewise.
5703 * unwind-dw2.c: Likewise.
5704 * unwind-dw2-fde.c: Likewise.
5705 * unwind-dw2-fde-glibc.c: Likewise.
5706 * unwind-dw2-fde.h: Likewise.
5707 * unwind.h: Likewise.
5708 * unwind-sjlj.c: Likewise.
5709 * varasm.c: Likewise.
5710 * varray.h: Likewise.
5711 * vmsdbg.h: Likewise.
5712 * vmsdbgout.c: Likewise.
5713 * xcoffout.h: Likewise.
5715 2002-05-31 Igor Shevlyakov <igor@microunity.com>
5717 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
5718 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
5720 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
5722 * gcc.c (cpp_unique_options): Remove "-d" options.
5723 (cpp_debug_options): New spec string.
5724 (default_compilers): Use it.
5725 * objc/lang-specs.h: Likewise.
5727 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
5729 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5730 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
5731 * gcc/mklibgcc.in: Likewise.
5732 * gcc/config/arc/t-arc: Likewise.
5733 * gcc/configure.in: Likewise.
5734 * gcc/configure: Regenerate.
5736 2002-05-31 Stan Shebs <shebs@apple.com>
5737 Turly O'Connor <turly@apple.com>
5739 * c-decl.c (struct binding_level): Change int field n_incomplete
5740 to tree list incomplete_list.
5741 (clear_binding_level): Init field with NULL.
5742 (pushdecl): Add incomplete type to list.
5743 (mark_binding_level): Mark the incomplete list.
5744 (finish_struct): Scan the incomplete list for types instead
5745 of all decls in the current binding level.
5747 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5749 * pa.c (output_millicode_call): Add missing '%' characters.
5750 (output_call): Likewise.
5752 2002-05-31 David Edelsohn <edelsohn@gnu.org>
5754 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
5755 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5757 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
5759 * varasm.c (mark_constant_pool): Walk epilogue delay list
5760 checking the insn, not the chain for potential constants.
5762 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
5764 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
5766 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
5768 * i386.c (classify_argument): Properly handle base types.
5770 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
5771 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
5774 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5776 * gcse.c (gcse_emit_move_after): New.
5777 (pre_delete, hoist_store): Use it.
5779 * reload1.c (emit_input_reload_insns): Use constrain_operands
5780 instead of constraint_accepts_reg_p to verify optimization.
5781 (constraint_accepts_reg_p): Kill
5783 * reload1.c (reload_cse_delete_noop_set): Kill.
5784 (reload_cse_simplify): use delte_insn_and_edges.
5786 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5788 * cfgloop.c (flow_loops_find): Initialize first and last fields
5791 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
5793 * c-common.c (builtin_define_std): Correct logic.
5795 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5797 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
5798 (output_call): Likewise.
5800 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5802 * pa.c: Move output.h include after tree.h include.
5803 (pa_asm_output_mi_thunk): Constify identifier lab.
5805 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5807 * config/ns32k/ns32k.h: Define named constants for the
5808 bits in target_flags and use them.
5809 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
5811 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5813 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
5814 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
5815 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
5816 default scheduling model.
5817 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
5818 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
5819 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
5820 * doc/install.texi (hppa*-*-*): Document default scheduling.
5822 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5824 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
5826 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5828 * config.gcc (ns32k-*-netbsd*): Set tm_file to
5829 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
5830 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
5831 netbsd.h, or netbsd-aout.h.
5833 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5835 * longlong.h (count_trailing_zeros): Add missing \, and clean up
5836 whitespace in __ns32000__ case.
5838 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
5840 * expr.c (expand_expr): Output partially zeroed out vectors with
5841 output_constant_def.
5843 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5845 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
5847 (shl*-*-netbsdelf*): New targets.
5848 * config/sh/netbsd-elf.h: New file.
5849 * config/sh/t-netbsd: New file.
5851 2002-05-30 Richard Henderson <rth@redhat.com>
5852 Eric Botcazou <ebotcazou@multimania.com>
5854 PR optimization/6822
5855 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
5856 to unsigned int for op1 comparisons. Use gen_int_mode.
5858 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
5860 * expmed.c (const_mult_add_overflow_p): New.
5861 * expr.h: Declare it.
5862 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
5863 Don't eliminate the biv if the giv has a constant multiplier and
5864 the rhs argument of the comparison does satisfy the predicate.
5865 Use expand_mult_add to compute the replacement constant.
5867 2002-05-30 Osku Salerma <osku@iki.fi>
5869 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
5870 (c_common_get_alias_set): Handle it.
5871 * doc/extend.texi: Document it.
5873 2002-05-30 Richard Henderson <rth@redhat.com>
5875 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5876 * toplev.c (process_options): Don't check it.
5877 * doc/tm.texi: Don't document it.
5878 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
5879 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5880 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
5881 frame pointer optimization if current_function_profile.
5883 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
5885 * langhooks.c: Fix formatting.
5886 * langhooks.h: Likewise.
5888 * libgcc2.c: Likewise.
5889 * lists.c: Likewise.
5890 * local-alloc.c: Likewise.
5894 2002-05-30 Marc Espie <espie@openbsd.org>
5896 * config.gcc (sparc64-*-openbsd*): New.
5897 * config/sparc/openbsd1-64.h: New.
5898 * config/sparc/openbsd64.h: New.
5900 2002-05-30 Jeff Law <law@redhat.com>
5902 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
5903 a dead insn with a REG_RETVAL note when the entire libcall is not
5904 dead and remove the associated REG_LIBCALL note at the same time.
5906 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
5908 * lcm.c (output.h): #include.
5909 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
5910 as an ordinary block.
5911 (optimize_mode_switching): Don't pretend that the exit block is
5912 an ordinary block, or handle sucessors of entry block specially.
5913 Instead, split edges from entry block and to exit block, and
5914 put a computing definition on the thus gained post-entry-block,
5915 and a need on the pre-exit-block.
5917 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5919 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
5920 * rtl.texi: Document 'B'
5922 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5924 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
5926 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
5928 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
5930 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5931 const0_rtx instead of NULL_RTX when in error.
5932 (altivec_expand_abs_builtin): Same.
5933 (rs6000_expand_binop_builtin): Same.
5934 (altivec_expand_predicate_builtin): Same.
5935 (altivec_expand_stv_builtin): Same.
5936 (rs6000_expand_ternop_builtin): Same.
5937 (altivec_expand_builtin): Same.
5939 2002-05-29 David S. Miller <davem@redhat.com>
5941 * rtl.h (clear_emit_caches): Delete.
5942 * integrate.c (output_inline_function): Don't call it.
5943 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
5944 (clear_emit_caches): Delete definition.
5945 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
5947 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
5949 * config/mmix/mmix.c: Include real.h.
5950 (mmix_constant_address_p): Remove redundant test before switch.
5952 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5954 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
5955 only if not already defined.
5957 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
5959 * config/h8300/h8300-protos.h: Remove prototypes for
5960 ok_for_bclr and small_power_of_two.
5961 * config/h8300/h8300.c (small_power_of_two): Remove.
5962 (ok_for_blcr): Likewise.
5963 (fix_bit_operand): Make WHAT deal with an integer instead of a
5964 constraint character.
5965 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
5966 (CONST_OK_FOR_P): Likewise.
5967 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
5968 CONST_OK_FOR_P any more.
5969 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
5974 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5976 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5977 (CPP_PREDEFINES): Make sure this is undefined.
5978 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
5979 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
5980 or -U__MIPSEB__ before defining one or the other. Instead,
5981 use %(subtarget_endian_default) if neither -EB nor -EL are
5983 (SUBTARGET_EXTRA_SPECS): Define.
5984 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
5987 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
5989 * doc/md.texi (Patterns): Note pattern condition pitfall
5992 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
5994 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
5995 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
5996 ternary operations from here...
5997 (rs6000_expand_builtin): ...to here.
5998 New argument expandedp.
5999 Change all instances of altivec_expand_binop_builtin to
6000 rs6000_expand_binop_builtin.
6001 (altivec_expand_unop_builtin): Rename to
6002 rs6000_expand_unop_builtin.
6003 (altivec_expand_binop_builtin): Rename to
6004 rs6000_expand_binop_builtin.
6005 (altivec_expand_ternop_builtin): Rename to
6006 rs6000_expand_ternop_builtin.
6008 2002-05-29 Richard Henderson <rth@redhat.com>
6010 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
6011 (TARGET_BI_ARCH): Likewise.
6012 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
6013 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
6014 (TARGET_64BIT_DEFAULT): Default to 0.
6015 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
6017 2002-05-29 Richard Henderson <rth@redhat.com>
6019 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
6020 (get_pc_thunk_name): New.
6021 (output_set_got): Use it.
6022 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
6023 into linkonce sections.
6025 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6027 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6028 (CPP_PREDEFINES): Make sure this is undefined.
6029 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
6030 (CPP_SUBTARGET_SPEC): Don't provide different versions for
6031 default-32 and default-64. Just always use %(netbsd_cpp_spec).
6032 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
6033 cpp_subtarget_spec64. Add netbsd_cpp_spec.
6034 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6035 (CPP_PREDEFINES): Make sure this is undefined.
6036 (SUBTARGET_EXTRA_SPECS): Define.
6037 (CPP_SPEC): Use %(netbsd_cpp_spec).
6039 2002-05-29 Jeff Law <law@redhat.com>
6041 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
6043 * flow.c (propagate_one_insn): Do not remove a dead insn if it
6044 contains a REG_RETVAL note.
6046 * haifa-sched (sched_analyze): Remove another useless clearing
6047 of SCHED_GROUP_P I missed yesterday.
6049 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
6050 * pa.c (pa_asm_output_mi_thunk): New function.
6051 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
6053 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6054 Marek Michalkiewicz <marekm@amelek.gda.pl>
6056 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
6057 (avr_asm_only_p): Make non-static.
6058 (enum avr_arch): Remove.
6059 (avr_arch_types): New.
6060 (avr_mcu_types): Update.
6061 (avr_override_options): Use avr_arch_types table instead of switch.
6062 * avr.h (CPP_PREDEFINES): Die.
6063 (avr_base_arch_macro, avr_extra_arch_macro): New.
6064 (TARGET_CPU_CPP_BUILTINS): New.
6065 (CPP_SPEC, EXTRA_SPECS): Simplify.
6066 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
6067 CPP_AVR5_SPEC): Die.
6069 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6071 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6072 NETBSD_OS_CPP_BUILTINS_AOUT.
6073 (SUBTARGET_EXTRA_SPECS): Define.
6074 (CPP_SPEC): Use %(netbsd_cpp_spec).
6076 2002-05-29 Richard Henderson <rth@redhat.com>
6078 * config/i386/i386.c (ix86_output_function_epilogue): New.
6079 (TARGET_ASM_FUNCTION_EPILOGUE): New.
6080 (pic_label_name): Remove.
6081 (pic_labels_used): New.
6082 (ix86_asm_file_end): Emit one pc load stub for each register used.
6083 (output_set_got): Generate deep pc load to any register.
6084 (ix86_select_alt_pic_regnum): New.
6085 (ix86_save_reg): Don't save pic register if we can find a valid
6086 call-clobbered replacement.
6087 (ix86_expand_prologue): If we found a valid replacement, renumber
6088 pic_offset_table_rtx.
6089 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
6090 pic_offset_table_rtx after reload.
6091 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
6092 * config/i386/i386.md (set_got): Make insn, not expander.
6093 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
6095 2002-05-29 Richard Henderson <rth@redhat.com>
6097 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
6098 alignment for alloca.
6100 2002-05-29 Richard Henderson <rth@redhat.com>
6102 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
6103 (print_operand_address): Only add rip for symbolic addresses
6104 for which we do not have another relocation type.
6106 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6108 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6109 (EXTRA_SPECS): Add netbsd_cpp_spec.
6110 (CPP_SPEC): Use %(netbsd_cpp_spec).
6111 (CPP_PREDEFINES): Remove.
6112 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6113 (EXTRA_SPECS): Define.
6114 (CPP_SPEC): Use %(netbsd_cpp_spec).
6115 (CPP_PREDEFINES): Remove.
6117 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6119 PR preprocessor/6844
6120 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
6123 2002-05-29 Eric Christopher <echristo@redhat.com>
6125 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
6126 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
6128 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
6130 * config/fr30/fr30.md: Remove previous restriction on splits.
6131 Enforce conformance through gen_lowpart and cont_int_operand.
6132 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
6133 as the assembler does not support ".bss".
6135 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6137 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
6138 (CPP_PREDEFINES): Remove.
6139 (SUBTARGET_EXTRA_SPECS): Define.
6140 (CPP_SPEC): Use %(netbsd_cpp_spec).
6141 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
6142 (CPP_PREDEFINES): Remove.
6143 (SUBTARGET_EXTRA_SPECS): Define.
6144 (CPP_SPEC): Use %(netbsd_cpp_spec).
6145 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
6146 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
6147 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
6148 Add netbsd_cpp_spec.
6149 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
6151 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
6152 Zack Weinberg <zack@codesourcery.com>
6154 * cppexp.c (cpp_num): Move to cpplib.h.
6155 (CPP_ERROR): Remove.
6156 (interpret_float_suffix, interpret_int_suffix): New.
6157 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
6158 (cpp_classify_number, cpp_interpret_integer): New.
6159 (interpret_number): Remove.
6160 (eval_token): Update to use new routines.
6161 * cpphash.h (cpp_num_part): Move to cpplib.h.
6162 * cppinit.c (cpp_post_options): Set warn_long_long.
6163 * cpplib.h (struct cpp_options): Add warn_long_long.
6164 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
6165 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
6166 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
6167 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
6168 cpp_interpret_integer): New.
6170 2002-05-29 Joel Sherrill <joel@OARcorp.com>
6172 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
6174 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
6176 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
6177 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
6178 (CPP_SUBTARGET_SPEC): Define.
6179 (SUBTARGET_EXTRA_SPECS): Define.
6182 2002-05-29 Chris Lattner <sabre@nondot.org>
6184 * ssa.c (rename_insn_1): Rename uses of undefined registers to
6185 prevent confusion if/when the register is defined.
6187 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
6190 * config/cris/cris.md: Fix typos and thinkos in comments.
6191 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
6193 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
6194 ("*mov_sideqi_mem"): Similar, but for operand 3.
6195 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
6196 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
6197 Remove spurious mode specifier on operand 2.
6199 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
6201 * config/h8300/h8300-protos.h: Remove the prototype for
6203 Add prototypes for single_one_operand and single_zero_operand.
6204 * config/h8300/h8300.c (o_operand): Remove.
6205 (single_one_operand): New.
6206 (single_zero_operand): Likewise.
6207 (print_operand): For 'V' operand, and the operand with 0xff.
6208 For 'V' and 'W' operands, do not and the bit position with 7.
6209 * config/h8300/h8300.md (various anonymous patterns): Replace
6210 use of exact_log2 with single_one_operand/single_zero_operand.
6212 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6214 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
6216 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
6218 * config/s390/s390.c (legitimate_pic_operand_p): Do not
6219 accept symbolic LARL operands.
6220 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
6223 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
6225 * config/s390/s390.md (cmpstr_64/31): Mark whole
6226 input registers as used.
6228 2002-05-28 Richard Henderson <rth@redhat.com>
6230 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
6231 not current_function_uses_pic_offset_table and
6232 current_function_uses_const_pool; examine current_function_profile.
6233 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
6234 input to blockage if needed.
6235 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
6236 (legitimize_pic_address): Likewise. Set regs_ever_live for
6237 pic_offset_table_rtx when invoked during reload.
6238 * config/i386/i386.h (FINALIZE_PIC): Remove.
6239 * config/i386/i386.md (tablejump): Reformat. Do not set
6240 current_function_uses_pic_offset_table.
6241 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
6242 (blockage): Accept anything as operand 0.
6244 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6246 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
6247 common CPP built-ins for all NetBSD a.out targets.
6248 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
6249 common CPP built-ins for all NetBSD ELF targets.
6250 * config/netbsd.h: Add missing notice.
6251 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
6252 for all NetBSD targets.
6253 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
6254 for all NetBSD targets using an LP64 code model.
6255 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
6258 2002-05-28 Richard Henderson <rth@redhat.com>
6260 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
6261 update if UPDATE_LIFE_LOCAL.
6263 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6265 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
6267 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6268 Jason R. Thorpe <thorpej@wasabisystems.com>
6270 config/sh reorganization to factor out endianness and coff:
6272 * config/sh/little.h: New file.
6273 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
6274 defined, define to 0 to select big-endian.
6275 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
6276 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6277 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6278 * config/sh/t-be: New file.
6279 * config/sh/t-le: New file.
6281 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
6282 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
6283 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
6284 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
6285 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6286 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6287 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
6288 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
6289 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
6290 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
6291 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
6292 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
6293 (LINK_SPEC): Define to SH_LINK_SPEC.
6294 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
6295 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
6296 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6297 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
6298 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
6299 * config/sh/coff.h: New file.
6300 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
6301 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6302 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
6303 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
6304 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
6305 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
6306 (PTRDIFF_TYPE): Likewise.
6307 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
6308 (CPP_PREDEFINES): Don't define.
6309 (TARGET_OBJFMT_CPP_BUILTINS): Define.
6310 (LINK_SPEC): Define to SH_LINK_SPEC.
6311 (LINK_EMUL_PREFIX): Redefine.
6312 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
6313 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
6314 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
6315 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
6316 (TARGET_OS_CPP_BUILTINS): Define.
6317 (TARGET_DEFAULT): Redefine.
6318 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
6319 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
6320 (LINK_SPEC): Don't redefine.
6321 (LINK_DEFAULT_CPU_EMUL): Redefine.
6322 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
6323 * sh.c (sh_asm_named_section): Don't declare / define.
6324 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
6325 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
6326 (sh64-*-elf* tm_file): Likewise.
6327 (sh-*-rtemself* tm_file): Likewise.
6328 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
6329 (sh-*-linux* tmake_file): Add sh/t-le.
6330 (sh-*-rtems* tm_file): Add sh/coff.h
6331 (sh-*-* tm_file): Likewise.
6333 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6335 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
6336 CONSTANT_POOL_ADDRESS_P.
6338 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
6340 2002-05-28 David Edelsohn <edelsohn@gnu.org>
6341 Jeff Law <law@redhat.com>
6343 * optabs.c (expand_binop): Fix nwords sign warnings.
6344 generate pseudo for add_optab.
6346 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
6347 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
6349 2002-05-28 Marc Espie <espie@openbsd.org>
6351 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
6352 inherited from gas.h.
6353 (ASM_QUAD): Undef. OpenBSD does not support it.
6355 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
6357 * doc/install.texi (binaries): Change mingw binaries
6358 link to www.mingw.org.
6360 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6362 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
6364 2002-05-28 Richard Henderson <rth@redhat.com>
6366 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
6367 bottom alignment for leaf functions.
6369 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6371 * config/pa/milli32.S, config/pa/lib1funcs.asm,
6372 config/sparc/sol2-g1.asm: Delete unused files.
6374 2002-05-28 Richard Henderson <rth@redhat.com>
6376 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
6378 * flow.c (calculate_global_regs_live): Rename call_used to
6379 invalidated_by_call. Initialize from regs_invalidated_by_call
6380 instead of call_used_regs.
6382 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
6385 2002-05-28 Zack Weinberg <zack@codesourcery.com>
6387 * tree.h: Don't include real.h.
6388 Forward-declare struct realvaluetype.
6389 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
6391 (TREE_REAL_CST_PTR): New accessor.
6392 (TREE_REAL_CST): Update.
6393 * real.h: Include machmode.h.
6394 (realvaluetype): Make it struct realvaluetype, not a typedef.
6395 (build_real): Prototype here.
6397 * tree.c: Include real.h.
6398 (build_real): Allocate the REAL_VALUE_TYPE as a separate
6399 object in GC memory, set TREE_REAL_CST_PTR to point to it.
6400 (build_real_from_int_cst): Use build_real.
6401 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
6404 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
6405 fold-const.c, print-tree.c, real.c: Include real.h.
6406 * Makefile.in: Update dependency lists.
6408 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6410 * basic-block.h (last_basic_block): Declare.
6411 (expunge_block_nocompact): Declaration removed.
6412 (compact_blocks): Declare.
6413 * cfg.c (last_basic_block): New variable.
6414 (expunge_block_nocompact): Removed.
6415 (expunge_block): Do not compact basic blocks.
6416 (compact_blocks): New.
6417 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
6419 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
6421 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
6422 real positions of blocks.
6423 (delete_unreachable_blocks): Simplified -- quadratic behavior now
6425 (cleanup_cfg): Compact blocks.
6426 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
6427 basic_block_info varray.
6428 (flow_delete_block): Comment update.
6429 (back_edge_of_syntactic_loop_p): Modify position check code.
6430 (verify_flow_info): Update checking.
6431 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
6432 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6433 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
6434 indices no longer change.
6435 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
6437 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
6438 * profile.c (branch_prob): Compact blocks.
6439 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
6442 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
6444 * config/h8300/h8300.md (two anonymous patterns): New.
6446 2002-05-28 David S. Miller <davem@redhat.com>
6448 * config/sparc/sparc.md (cpu): Tidy.
6449 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
6451 (in_call_delay): Delete reference to 'return' type.
6452 (eligible_for_return_delay, in_return_delay, define_delay
6453 referencing those): Delete.
6454 (rest of file): Use new type attributes as appropriate.
6455 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
6456 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
6457 * config/sparc/ultra1_2.md (us1_single): New reservation.
6458 (us1_ialuX): Likewise.
6459 * config/sparc/ultra3.md (us3_single): Likewise.
6460 (us3_ialuX): Likewise.
6461 (us3_imul, us3_idiv): Tweak.
6463 2002-05-28 Richard Henderson <rth@redhat.com>
6465 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
6468 2002-05-28 Richard Henderson <rth@redhat.com>
6470 * config.gcc: Obsolete mn10200.
6472 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
6474 * cppexp.c (interpret_number): Optimize for single-digit
6475 and less-than-half-precision cases.
6476 (num_trim, num_positive, num_div_op): Cast constants.
6478 2002-05-27 Bo Thorsen <bo@suse.de>
6480 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
6481 3.1 branch. The file was made by Jakub Jelinek.
6482 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
6483 support so multilib doesn't break. And don't define this at all
6484 when -Dinhibit_libc is used.
6485 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
6486 * config/i386/t-linux64: Implement full multilib support. Patch
6487 originally done by Andreas Jaeger and Jakub Jelinek.
6489 2002-05-27 Roger Sayle <roger@eyesopen.com>
6491 * c-common.c: Add support for __attribute__((nothrow)) to specify
6492 that a function cannot throw an exception (using TREE_NOTHROW).
6493 (handle_nothrow_attribute): New function to process this attribute.
6495 * doc/extend.texi: Document the new nothrow function attribute.
6497 2002-05-27 H.J. Lu (hjl@gnu.org)
6499 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
6500 (num_positive): Likewise.
6501 (num_div_op): Likewise.
6503 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6505 * c-common.c (c_common_init): Always use intmax_t.
6507 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6509 * c-common.c (c_common_init): Use intmax_t for now.
6511 2002-05-24 Andrew Haley <aph@redhat.com>
6513 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
6514 if T is a boolean type.
6516 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6518 * basic-block.h (last_basic_block): Defined as synonym for
6520 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
6521 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6522 flow_dfs_compute_reverse_init): Replaced relevant occurences of
6523 n_basic_blocks with last_basic_block.
6524 * cfgbuild.c (make_edges): Likewise.
6525 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
6526 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
6527 * combine.c (combine_instructions): Likewise.
6528 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
6529 iterative_dataflow_bitmap): Likewise.
6530 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6531 calc_idoms, idoms_to_doms): Likewise.
6532 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
6534 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
6535 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
6536 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
6537 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
6538 delete_null_pointer_checks, compute_code_hoist_vbeinout,
6539 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6540 compute_store_table, build_store_vectors): Likewise.
6541 * haifa-sched.c (sched_init): Likewise.
6542 * ifcvt.c (if_convert): Likewise.
6543 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6544 pre_edge_lcm, compute_available, compute_nearerout,
6545 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
6547 * predict.c (estimate_probability, process_note_prediction,
6548 note_prediction_to_br_prob): Likewise.
6549 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
6550 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6551 * regrename.c (copyprop_hardreg_forward): Likewise.
6552 * resource.c (init_resource_info): Likewise.
6553 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
6554 init_regions, schedule_insns): Likewise.
6555 * ssa-ccp.c (ssa_const_prop): Likewise.
6556 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6557 * ssa.c (compute_dominance_frontiers,
6558 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
6560 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
6561 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
6564 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6566 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
6568 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
6569 hoist_insn_after, hoist_insn_to_edge): New.
6571 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
6573 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
6574 (PROP_FINAL): Include.
6575 * flow.c (life_analysis, update_life_info,
6576 init_propagate_block_info, mark_set_1, mark_used_rgs):
6577 Support SCAN_DEAD_STORE.
6579 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
6581 * c-common.c (c_common_init): Set CPP arithmetic precision.
6582 * cppexp.c (cpp_num_part): Move typedef ...
6583 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
6584 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
6585 (sanity_checks): Update.
6587 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
6589 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
6590 (mkheaders): New rule.
6591 (install-mkheaders): New rule.
6592 * configure.in (all_outputs): Add mkheaders.
6593 * configure: Regenerate.
6594 * mkheaders.in: New file.
6596 2002-05-26 Jakub Jelinek <jakub@redhat.com>
6598 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
6600 2002-05-26 Andreas Jaeger <aj@suse.de>
6602 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
6604 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
6606 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
6607 right_shift): Remove.
6608 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
6610 (struct op): Use cpp_num.
6611 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
6612 num_part_mul, num_unary_op, num_binary_op, num_negate,
6613 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
6614 num_div_op, num_lshift, num_rshift, append_digit): New.
6615 (interpret_number, parse_defined, eval_token, reduce): Update
6616 for two-integer arithmetic.
6617 (binary_handler): New typedef.
6619 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6620 (_cpp_parse_expr, reduce): Update to handle two-integers.
6621 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6623 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6625 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6626 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6627 branch insn into account, do not assume 1.
6628 (avr_out_sbxx_branch): New function. Optimize cases of skipping
6629 over single word insn. Handle upper half of I/O space too.
6630 * config/avr/avr.md (*sbrx_branch): Use it.
6631 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6632 (*sbix_branch, *sbix_branch_bit7): Likewise.
6633 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
6634 Use RTL peepholes to optimize register operand sign tests.
6636 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6638 * config/avr/avr.c (avr_asm_only_p): New variable.
6639 (avr_override_options): Set it here if AVR1.
6640 (asm_file_start): Test it here, report an error if set.
6642 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
6644 * alias.c: Fix formatting.
6645 * attribs.c: Likewise.
6646 * bb-reorder.c: Likewise.
6647 * bitmap.c: Likewise.
6648 * bitmap.h: Likewise.
6649 * builtins.c: Likewise.
6651 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6653 * reload.c (find_valid_class): Accept new argument DEST,
6654 choose class accordingly.
6655 (push_reload): Update callers.
6657 2002-05-26 Andreas Jaeger <aj@suse.de>
6659 * combine.c (combine_instructions): Do not indent #if for
6662 2002-05-25 Richard Henderson <rth@redhat.com>
6664 * c-pragma.c (apply_pragma_weak): Convert value identifier to
6665 string for decl_attributes.
6666 (handle_pragma_weak): Call assemble_alias if we're modifying
6669 2002-05-25 Richard Henderson <rth@redhat.com>
6672 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
6673 using rtl instead of fprintf.
6674 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
6675 * config/sparc/sparc-protos.h: Update.
6677 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
6679 * Makefile.in (C_COMMON_H): Fix.
6680 Update other targets.
6681 * c-common.c: Don't include c-lex.h.
6682 (builtin_define_with_value): Make static and prototype.
6683 (builtin_define_std): Move from c-lex.h.
6684 * c-common.h (init_c_lex): Move from c-lex.h.
6685 * c-decl.c: Don't include c-lex.h.
6686 (make_pointer_declarator): Move from c-parse.in.
6687 * c-lex.c: Don't include c-lex.h.
6689 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
6690 (make_pointer_declarator): Move to c-decl.c.
6691 * c-pragma.c: Don't include c-lex.h.
6692 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
6693 * c-tree.h (make_pointer_declarator): New.
6695 * passes.texi, tm.texi: Update.
6697 * Make-lang.in: Update and correct.
6698 * objc-act.c: Don't include c-lex.h or cpplib.h.
6700 * treetree.c: Don't include c-lex.h.
6702 * darwin-c.c: Don't include c-lex.h.
6703 * c4x/c4x-c.c: Don't include c-lex.h.
6704 * c4x/t-c4x: Update.
6705 * i370/i370-c.c: Don't include c-lex.h.
6706 * i370/t-i370: Update.
6707 * i960/i960-c.c: Don't include c-lex.h.
6708 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
6709 * i960/t-960bare: Update.
6710 * i960/t-vxworks: Update.
6711 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
6712 * rs6000/t-darwin: Update.
6713 * rs6000/t-rs6000-c-rule: Update.
6714 * v850/v850-c.c: Don't include c-lex.h.
6715 * v850/v850.c: Don't include c-lex.h or cpplib.h.
6718 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6720 * tree.def: Fix typos.
6721 * doc/install.texi: Likewise.
6723 2002-05-25 Richard Henderson <rth@redhat.com>
6725 * configure.in (HAVE_AS_TLS): Add ia64 test.
6726 * configure: Rebuild.
6727 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
6728 (override_options): Set it.
6729 (TARGET_HAVE_TLS): New.
6730 (sdata_symbolic_operand): Look for 's'.
6731 (tls_symbolic_operand): New.
6732 (ia64_expand_load_address): Abort for tls symbols.
6733 (gen_tls_get_addr): New.
6734 (gen_thread_pointer): New.
6735 (ia64_expand_move): Split out from movdi. Handle tls symbols.
6736 (rtx_needs_barrier): Add new unspecs.
6737 (ia64_encode_section_info): Handle tls symbols.
6738 (ia64_strip_name_encoding): Strip two encoding chars.
6739 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
6740 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
6741 (TARGET_OPTIONS): Add tls-size.
6742 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
6743 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
6744 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
6745 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
6746 (movsf, movdf): Likewise.
6747 (movdi_symbolic): Use match_scratch. Don't split if we won't
6748 have a scratch availiable.
6749 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
6750 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
6751 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
6752 * config/ia64/ia64-protos.h: Update.
6753 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
6754 sdata_symbolic_operand.
6755 (ASM_OUTPUT_LABELREF): Strip two characters.
6757 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6759 * combine.c (simplify_set): Remove an unnecessary subreg.
6761 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
6763 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
6765 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
6767 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6769 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
6771 2002-05-25 Roger Sayle <roger@eyesopen.com>
6773 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
6774 (cond (compare x y) 0) into the equivalent (cond x y).
6776 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6778 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
6780 2002-05-24 Zack Weinberg <zack@codesourcery.com>
6782 * config.gcc: Remove all stanzas for previously obsoleted
6783 systems. Where necessary, add explicit error stanzas to
6784 prevent removed systems from being misidentified as something
6785 else. Begin a fresh obsoletions list, with the systems that
6786 were reprieved last round.
6787 * doc/install.texi: Remove all mention of dead targets.
6788 * fixinc/mkfixinc.sh: Likewise.
6790 * config/arm/arm.h: Bit 31 of target_flags is no longer
6793 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
6794 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
6795 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
6796 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
6797 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
6798 config/alpha/osf12.h, config/alpha/osf2or3.h,
6799 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
6800 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
6801 config/clipper/clipper-protos.h, config/clipper/clipper.c,
6802 config/clipper/clipper.h, config/clipper/clipper.md,
6803 config/clipper/clix.h, config/convex/convex-protos.h,
6804 config/convex/convex.c, config/convex/convex.h,
6805 config/convex/convex.md, config/convex/fixinc.convex,
6806 config/convex/proto.h, config/elxsi/elxsi-protos.h,
6807 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
6808 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
6809 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
6810 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
6811 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
6812 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
6813 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
6814 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
6815 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
6816 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
6817 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
6818 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
6819 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
6820 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
6821 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
6822 config/m68k/altos3068.h, config/m68k/apollo68.h,
6823 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
6824 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
6825 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
6826 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
6827 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
6828 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
6829 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
6830 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
6831 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
6832 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
6833 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
6834 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
6835 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
6836 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
6837 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
6838 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
6839 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
6840 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
6841 config/mips/dec-osf1.h, config/mips/elflorion.h,
6842 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
6843 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
6844 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
6845 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
6846 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
6847 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
6848 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
6849 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
6850 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
6851 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
6852 config/ns32k/sequent.h, config/ns32k/tek6000.h,
6853 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
6854 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
6855 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
6856 config/sparc/rtems.h, config/we32k/we32k-protos.h,
6857 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
6860 2002-05-24 Richard Henderson <rth@redhat.com>
6862 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
6863 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
6864 * config/i386/i386.c (tls_model_chars): Add leading space.
6865 (tls_symbolic_operand): Don't bias by 1.
6866 (legitimize_address): Don't unbias by 1.
6868 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6870 * lcm.c (optimize_mode_switching): Change bb used as indices
6873 2002-05-24 Richard Henderson <rth@redhat.com>
6875 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
6876 of update_life_info_in_dirty_blocks.
6878 2002-05-24 Jakub Jelinek <jakub@redhat.com>
6881 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
6883 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
6885 PR preprocessor/6780
6886 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
6888 2002-05-24 Jim Blandy <jimb@redhat.com>
6890 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
6891 entry with a type code of zero, marking the end of the compilation
6894 2002-05-24 Richard Henderson <rth@redhat.com>
6896 * varasm.c (asm_output_bss): Always output one byte.
6897 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6899 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6901 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
6904 2002-05-24 Andreas Jaeger <aj@suse.de>
6906 * ggc-page.c (alloc_page): Cast variables of type size_t to
6907 unsigned long, adjust printf format string.
6908 (ggc_alloc): Likewise.
6909 (ggc_print_statistics): Likewise.
6910 (ggc_print_statistics): Correct printf format string for SCALE to
6913 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
6915 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
6917 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
6918 Zack Weinberg <zack@codesourcery.com>
6920 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
6922 * dwarf2out.c (lookup_filename): Properly quote filename in .file
6923 directive in assembly file.
6924 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6925 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6926 * config/pj/pj.h (ASM_FILE_START): Likewise.
6927 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6928 * config/avr/avr.c (asm_file_end): Likewise.
6929 * toplev.c (output_quoted_string): Handle possibly signed plain
6931 * toplev.h (output_clean_symbol_name): Declare
6932 * toplev.c (output_clean_symbol_name): Define.
6933 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
6934 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
6936 2002-05-24 Alan Modra <amodra@bigpond.net.au>
6938 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
6940 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
6942 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
6943 of size of unsigned.
6945 2002-05-23 Richard Henderson <rth@redhat.com>
6947 * configure.in (HAVE_AS_TLS): New test.
6948 * config.in, configure: Rebuild.
6949 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
6950 (ix86_tls_dialect_string, ix86_tls_dialect): New.
6951 (override_options): Set it.
6952 (tls_model_chars, tls_symbolic_operand): New.
6953 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
6954 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
6955 (local_exec_symbolic_operand): New.
6956 (get_pic_label_name): Merge into output_set_got.
6957 (ix86_asm_file_end): Emit pic_label_name if defined.
6958 (legitimate_constant_p, constant_address_p): New.
6959 (legitimate_pic_operand_p): New.
6960 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
6961 (legitimate_address_p): Likewise.
6962 (ix86_encode_section_info): Rename from i386_; handle tls decls.
6963 (ix86_strip_name_encoding): New.
6964 (get_thread_pointer): New.
6965 (legitimize_address): Handle tls symbols.
6966 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
6968 (struct machine_function): Add some_ld_name.
6969 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
6970 (print_operand) [&]: Use it. Handle UNSPEC_TP.
6971 (output_addr_const_extra): New.
6972 (maybe_get_pool_constant): New.
6973 (ix86_split_to_parts): Use it.
6974 (ix86_expand_move): Handle tls symbols.
6975 (ix86_tls_get_addr): New.
6976 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
6977 (TARGET_OPTIONS): Add tls-dialect.
6978 (CONSTANT_ADDRESS_P): Use new out-of-line function.
6979 (LEGITIMATE_CONSTANT_P): Likewise.
6980 (LEGITIMATE_PIC_OPERAND_P): Likewise.
6981 (TARGET_STRIP_NAME_ENCODING): New.
6982 (ASM_OUTPUT_LABELREF): New.
6983 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
6984 (OUTPUT_ADDR_CONST_EXTRA): New.
6985 (PREDICATE_CODES): Update.
6986 (ix86_tls_dialect, ix86_tls_dialect_string): New.
6987 * config/i386/i386.md: Regroup and renumber unspec constants.
6988 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
6989 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
6990 (tls_global_dynamic, tls_local_dynamic_base): New.
6991 (tls_local_dynamic_once): New.
6992 * config/i386/i386-protos.h: Update.
6994 2002-05-23 Richard Henderson <rth@redhat.com>
6996 * genemit.c (gen_insn): Print file:lineno comment before function.
6998 * gensupport.c (struct queue_elem): Add filename member.
6999 (queue_pattern): Initialize it; update all callers.
7000 (process_include): Don't free filename.
7001 (read_md_rtx): Set read_rtx_filename.
7003 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
7005 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
7007 2002-05-23 Richard Henderson <rth@redhat.com>
7009 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
7011 2002-05-23 Richard Henderson <rth@redhat.com>
7013 * doc/extend.texi (C++98 Thread-Local Edits): Update with
7014 commentary from Mark.
7016 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7018 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
7019 Use FOR_EACH_BB macros to iterate over basic block chain.
7020 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
7021 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
7023 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
7024 find_unreachable_blocks, create_edge_list, verify_edge_list,
7025 remove_fake_edges, add_noreturn_fake_exit_edges,
7026 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
7028 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7029 find_sub_basic_blocks): Likewise.
7030 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
7032 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
7034 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
7036 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
7037 commit_edge_insertions, commit_edge_insertions_watch_calls,
7038 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
7039 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
7040 * conflict.c (conflict_graph_compute): Likewise.
7041 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7042 df_modified_p, df_refs_unlink, df_dump): Likewise.
7043 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
7044 * final.c (compute_alignments): Likewise.
7045 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
7046 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
7047 count_or_remove_death_notes): Likewise.
7048 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
7049 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
7050 classic_gcse, compute_transp, cprop, compute_pre_data,
7051 compute_transpout, invalidate_nonnull_info,
7052 delete_null_pointer_checks_1, delete_null_pointer_checks,
7053 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
7054 compute_store_table, build_store_vectors, store_motion): Likewise.
7055 * global.c (global_conflicts, mark_elimination): Likewise.
7056 * graph.c (print_rtl_graph_with_bb): Likewise.
7057 * haifa-sched.c (sched_init): Likewise.
7058 * ifcvt.c (if_convert): Likewise.
7059 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
7060 compute_available, compute_nearerout, compute_rev_insert_delete,
7061 optimize_mode_switching): Likewise.
7062 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
7063 * predict.c (estimate_probability, note_prediction_to_br_prob,
7064 propagate_freq, counts_to_freqs, expensive_function_p,
7065 estimate_bb_frequencies): Likewise.
7066 * profile.c (instrument_edges, get_exec_counts,
7067 compute_branch_probabilities, compute_checksum, branch_prob,
7068 find_spanning_tree): Likewise.
7069 * recog.c (split_all_insns, peephole2_optimize): Likewise.
7070 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
7072 * regclass.c (scan_one_insn, regclass): Likewise.
7073 * regmove.c (mark_flags_life_zones, regmove_optimize,
7074 record_stack_memrefs): Likewise.
7075 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
7076 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
7077 * resource.c (find_basic_block): Likewise.
7078 * sched-ebb.c (schedule_ebbs): Likewise.
7079 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
7080 find_single_block_region, find_rgns, schedule_insns)
7081 * sibcall.c (optimize_sibling_and_tail_recursive_call)
7082 * ssa-ccp.c (optimize_unexecutable_edges,
7083 ssa_ccp_df_delete_unreachable_insns): Likewise.
7084 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7085 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
7086 rename_block, convert_to_ssa, compute_conservative_reg_partition,
7087 compute_coalesced_reg_partition, rename_equivalent_regs,
7088 convert_from_ssa): Likewise.
7089 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
7090 process_for_unwind_directive): Likewise.
7092 * df.c (FOR_ALL_BBS): Removed.
7093 * gcse.c (struct null_pointer_info): Type of current_block field
7095 (struct reg_avail_info): Type of last_bb field changed.
7096 * config/ia64/ia64.c (block_num): Removed.
7097 (need_copy_state): Type changed.
7100 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7102 * cppinit.c (mark_named_operators): Split out from init_builtins.
7103 (cpp_finish_options): Call it from here instead.
7105 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7107 * builtin-attrs.def: Update copyright years.
7108 (ATTR_NONNULL): New attribute identifier.
7109 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
7110 attribute tree lists.
7111 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
7113 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
7114 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
7115 attribute lists. Chain the appropriate nonnull attribute.
7116 * c-format.c (check_format_arg): Remove null format string
7118 * testsuite/gcc.dg/format/null-1.c: New test.
7120 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7122 * Makefile.in (ADAC): Define.
7124 (.SUFFIXES): Move before language makefile fragments.
7125 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
7127 2002-05-23 Mark Mitchell <mark@codesourcery.com>
7129 * varasm.c (make_decl_rtl): Don't allow weak variables to be
7132 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7134 * cfg.c (dump_flow_info): Print results of
7135 maybe_hot/probably_never_executed predicates.
7136 * toplev.c (open_dump_file): Print function frequency.
7138 2002-05-23 David S. Miller <davem@redhat.com>
7140 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
7143 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
7145 * c-common.c (warn_nonnull): Declare.
7146 (c_common_attribute_table): Add "nonnull" attribute.
7147 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
7148 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
7149 check_function_arguments_recurse): New functions.
7150 * c-common.h (warn_nonnull): Declare extern.
7151 (check_function_arguments, check_function_arguments_recurse): New
7153 * c-decl.c (c_decode_option): Add -Wnonnull option.
7154 * c-format.c (set_Wformat): Set warn_nonnull if enabling
7156 (format_check_context): New structure.
7157 (check_format_info_recurse): Remove recursion and rename to...
7158 (check_format_arg): ...this. Update comment.
7159 (check_format_info): Use check_function_arguments_recurse.
7160 * c-typeck.c (build_function_call): Call check_function_arguments
7161 instead of check_function_format.
7162 * doc/extend.texi: Document "nonnull" attribute.
7163 * doc/invoke.texi: Docuemnt -Wnonnull option.
7164 * testsuite/gcc.dg/nonnull-1.c: New test.
7165 * testsuite/gcc.dg/nonnull-2.c: New test.
7167 2002-05-23 David S. Miller <davem@redhat.com>
7169 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
7170 * cfgcleanup.c (cleanup_cfg): If it is set do not
7171 attempt to delete trivially dead insns.
7172 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
7173 * toplev.c (rest_of_compilation): Document non-trivial aspect
7174 the RTL before optimize_save_area_alloca is run.
7176 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7178 * c-lex.c (indent_level): Remove.
7179 (cb_file_change, c_lex): Remove indent level handling.
7180 * c-lex.h (indent_level): Remove.
7181 * input.h (struct file_stack): Remove indent_level.
7182 * toplev.c (push_srcloc): Remove indent_level handling.
7184 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7187 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
7188 of x in constraints for clarity.
7189 (sse_mov?fcc split): abort if op2 == op3.
7190 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
7191 sse_movsfcc_const0_4): Add earlyclobber.
7192 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
7193 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
7194 Use Y instead of x in constraints.
7196 2002-05-23 Richard Henderson <rth@redhat.com>
7198 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
7199 (C++98 Thread-Local Edits): New subsection.
7201 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
7202 (ix86_arch): Set type to enum processor_type.
7204 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
7205 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
7207 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7209 * configure.in: Fix as version test for binutils 2.12.1 releases
7211 * configure: Rebuilt.
7213 2002-05-23 Richard Henderson <rth@redhat.com>
7215 * config/i386/i386.c (get_pic_label_name): New.
7216 (load_pic_register): Remove.
7217 (output_set_got): New.
7218 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
7219 * config/i386/i386.md (UNSPEC_SET_GOT): New.
7220 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
7221 (prologue_set_got, prologue_get_pc): Remove.
7222 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
7223 (builtin_setjmp_receiver): Use gen_set_got.
7224 * config/i386/i386-protos.h: Update.
7226 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7228 * gcse.c (hash_expr): Do not use alias set for hashing.
7230 2002-05-22 Kevin Buettner <kevinb@redhat.com>
7232 * dbxout.c (dbxout_class_name_qualifiers): New function.
7233 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
7235 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
7237 * cpperror.c (_cpp_begin_message): No special casing
7239 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
7240 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
7241 * cpplib.c (do_include_common): Use DL_ERROR.
7242 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
7244 * fix-header.c (read_scan_file): Update.
7246 2002-05-22 Richard Henderson <rth@redhat.com>
7248 * config/i386/i386.c (ix86_expand_call): New function, extracted
7249 from md call patterns. Add pic_offset_table_rtx to
7250 CALL_INSN_FUNCTION_USAGE when needed.
7251 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
7252 (call_value_pop, call_value, untyped_call): Likewise.
7253 (call_exp, call_value_exp): Remove.
7254 * config/i386/i386-protos.h: Update.
7256 2002-05-22 Richard Henderson <rth@redhat.com>
7258 * varasm.c (default_section_type_flags): Check for VAR_DECL
7259 before using DECL_THREAD_LOCAL.
7261 2002-05-22 David Edelsohn <edelsohn@gnu.org>
7263 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
7264 (STARTFILE_SPEC): Delete PE crt0.o.
7265 * config/rs6000/aix51.h: Same.
7266 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
7267 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
7268 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
7269 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
7270 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
7272 2002-05-22 Richard Henderson <rth@redhat.com>
7274 * varasm.c (default_section_type_flags): Handle tls data and
7276 (default_unique_section): Handle tls sections.
7278 2002-05-23 Alan Modra <amodra@bigpond.net.au>
7280 * configure.in (CROSS): Define NATIVE_CROSS.
7281 * configure: Regenerate.
7282 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
7283 (startfile_prefix_spec): New var.
7284 (static_specs): Add startfile_prefix_spec.
7285 (do_spec_2): Split out from..
7287 (main): Process startfile_prefix_spec.
7288 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
7290 (STARTFILE_PREFIX_SPEC): Define.
7291 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
7294 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7296 * cpperror.c: Fix formatting.
7297 * cppexp.c: Likewise.
7298 * cppfiles.c: Likewise.
7299 * cpphash.c: Likewise.
7300 * cpphash.h: Likewise.
7301 * cppinit.c: Likewise.
7302 * cpplex.c: Likewise.
7303 * cpplib.c: Likewise.
7304 * cppmacro.c: Likewise.
7305 * cppmain.c: Likewise.
7306 * cppspec.c: Likewise.
7308 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7310 * combine.c (force_to_mode): Use gen_int_mode.
7311 Don't clear CONST_INT bits outside of mode.
7313 2002-05-22 Richard Henderson <rth@redhat.com>
7315 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
7316 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7318 2002-05-22 Jakub Jelinek <jakub@redhat.com>
7321 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
7322 if DECL_SIZE_UNIT is INTEGER_CST.
7324 2002-05-22 Richard Henderson <rth@redhat.com>
7326 * flow.c (life_analysis): Delete broken reg_label check.
7328 2002-05-22 Richard Henderson <rth@redhat.com>
7330 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
7331 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
7333 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7335 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
7336 (embed-bb.c): New rule.
7337 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
7338 * config/sh/embed_bb.c: Delete.
7340 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7342 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
7344 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
7346 * config/h8300/h8300.md (*andorqi3): New.
7348 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
7350 PR preprocessor/6517
7351 * Makefile.in: Update.
7352 * c-common.c (c_common_post_options): Add preprocessor
7353 errors to the error count.
7354 * c-lang.c (c_post_options): Kill.
7355 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7356 * hooks.h: Add header guards.
7357 * langhooks-def.h: Include hooks.h.
7358 (LANG_HOOKS_POST_OPTIONS): Update.
7359 * langhooks.h (struct lang_hooks): Update post_options.
7360 * toplev.c (parse_options_and_default_flags): Update.
7362 * objc-lang.c (objc_post_options): Kill.
7363 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
7365 2002-05-21 Bruce Korb <bkorb@gnu.org>
7367 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
7368 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
7369 * fixinc/fixincl.x: regen.
7371 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
7373 * cfgbuild.c: Fix formatting.
7375 * cfgcleanup.c: Likewise.
7376 * cfglayout.c: Likewise.
7377 * cfgloop.c: Likewise.
7378 * cfgrtl.c: Likewise.
7380 2002-05-21 Richard Henderson <rth@redhat.com>
7382 * c-common.h (enum rid): Add RID_THREAD.
7383 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
7384 (grokdeclarator): Grok __thread.
7385 * c-parse.in (reswords): Add __thread.
7386 (rid_to_yy): Add RID_THREAD.
7388 * tree.h (DECL_THREAD_LOCAL): New.
7389 (struct tree_decl): Add thread_local_flag.
7390 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
7391 * tree.c (staticp): TLS variables are not static.
7393 * target-def.h (TARGET_HAVE_TLS): New.
7394 * target.h (have_tls): New.
7395 * output.h (SECTION_TLS): New.
7396 * varasm.c (assemble_variable): TLS variables can't be common for now.
7397 (default_section_type_flags): Handle .tdata and .tbss.
7398 (default_elf_asm_named_section): Handle SECTION_TLS.
7399 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
7401 * flags.h (flag_tls_default): Declare.
7402 * toplev.c (flag_tls_default): Define.
7403 (display_help): Display help for it.
7404 (decode_f_option): Set it.
7406 * doc/extend.texi (Thread-Local): New node describing language-level
7407 thread-local storage.
7408 * doc/invoke.texi (-ftls-model): Document.
7410 * fixinc/inclhack.def (thread_keyword): New.
7411 * fixinc/fixincl.x: Rebuild.
7413 2002-05-21 Jeffrey A Law <law@redhat.com>
7415 * optabs.c (expand_binop): For double-word integer multiplies,
7416 do not compute intermediate results into something that is
7417 not a register (such as a SUBREG or MEM).
7419 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
7420 (ix86_sched_reorder): Make sure to initialize scheduling
7421 data even when there's only one insn in the ready queue.
7423 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7425 * genautomata.c (reserv_sets_hash_value): Fix a typo.
7427 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
7429 * genautomata.c (reserv_sets_hash_value): Define hash_value as
7430 set_el_t. Transform the hash value into unsigned.
7431 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
7432 (transform_3): Add code to process `(A,B)+(D,E)'.
7434 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
7436 * reload1.c (do_output_reload): Run delete_output_reload
7439 2002-05-21 Roger Sayle <roger@eyesopen.com>
7442 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
7443 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
7444 (can_store_by_pieces): ... and here to limit the largest mode used.
7445 Add a comment to document this function.
7447 2002-05-21 Richard Henderson <rth@redhat.com>
7449 * flow.c (life_analysis): Fix test for deleted label.
7451 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
7453 * doc/tm.texi: Fix typo.
7455 2002-05-21 Zack Weinberg <zack@codesourcery.com>
7457 * c-common.c (c_common_init): Set options->unsigned_char from
7459 (cb_register_builtins): Define __STRICT_ANSI__ and
7460 __CHAR_UNSIGNED__ here...
7461 * cppinit.c (init_builtins): Not here.
7462 (cpp_create_reader): unsigned_char option defaults to 0, not
7463 !DEFAULT_SIGNED_CHAR.
7464 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
7465 and -funsigned-char.
7467 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
7468 * cpphash.c (_cpp_init_hashtable): Don't set it.
7469 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
7470 directly. Clarify comment.
7472 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7474 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
7475 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
7476 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
7477 BASIC_BLOCK (n_basic_blocks - 1).
7478 * cfganal.c (can_fallthru, flow_call_edges_add,
7479 flow_preorder_transversal_compute): Too.
7480 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
7481 find_sub_basic_blocks): Too.
7482 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
7483 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
7484 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
7485 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
7486 * combine.c (this_basic_block): Type changed to basic_block.
7487 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
7488 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7489 get_last_value, distribute_notes, distribute_links): Too.
7490 * final.c (compute_alignments): Too.
7491 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
7492 * function.c (thread_prologue_and_epilogue_insns): Too.
7493 * gcse.c (compute_code_hoist_vbeinout): Too.
7494 * global.c (build_insn_chain): Too.
7495 * ifcvt.c (find_if_block, find_cond_trap): Too.
7496 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
7497 * regmove.c (regmove_optimize): Too.
7498 * resource.c (find_basic_block): Too.
7499 * sched-ebb.c (schedule_ebbs): Too.
7500 * ssa-dce.c (find_control_dependence, find_pdom): Too.
7502 2002-05-21 Andreas Jaeger <aj@suse.de>
7504 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
7506 2002-05-21 Richard Henderson <rth@redhat.com>
7508 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
7509 unspec names, not numbers.
7511 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
7513 * doc/sourcebuild.texi: Mention snapshot-README and
7514 snapshot-index.html as needing updating for new front ends.
7516 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7518 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
7519 disabling checking, and avoid multiple evaluation of RTX.
7521 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
7523 * bitmap.c (bitmap_find_bit): Return early if we have the correct
7526 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7528 * profile.c (gen_edge_profiler): Set alias set before the memory is
7531 2002-05-20 David S. Miller <davem@redhat.com>
7533 * cselib.c (max_value_regs): New.
7534 (cselib_lookup, cselib_invalidate_regno): Initialize it when
7535 adding new entries to the REG_VALUES table and we are dealing with
7537 (clear_table): Initialize it.
7538 (cselib_invalidate_regno): Use it to determine which hard
7539 registers to scan when mode is not VOIDmode.
7541 2002-05-20 Duraid Madina <duraid@fl.net.au>
7543 * tradcpp.c (fixup_newlines): Use old-style function header.
7545 2002-05-20 Krister Walfridsson <cato@df.lth.se>
7547 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
7549 2002-05-20 H.J. Lu (hjl@gnu.org)
7551 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
7553 * config/mips/mips.h (DFMODE_NAN): Defined.
7554 (SFMODE_NAN): Likewise.
7556 2002-05-20 Dale Johannesen <dalej@apple.com>
7558 * combine.c (cant_combine_insn_p): Back out my
7561 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7563 * params.c: Fix formatting.
7564 * params.h: Likewise.
7565 * predict.c: Likewise.
7566 * prefix.c: Likewise.
7567 * print-rtl.c: Likewise.
7568 * print-tree.c: Likewise.
7569 * profile.c: Likewise.
7571 2002-05-20 H.J. Lu (hjl@gnu.org)
7573 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
7575 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
7577 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
7578 switches straight on to the assembler, do not abbreviate them.
7579 * config/arm/elf.h (ASM_SPEC): As above.
7580 * config/arm/semi.h (ASM_SPEC): As above.
7581 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
7582 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
7583 -mcpu=xscale on to the assembler by default.
7584 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
7586 2002-05-20 Richard Henderson <rth@redhat.com>
7588 * cse.c (canon_hash): Reorder do_not_record test. Always
7589 allow pic_offset_table_rtx.
7591 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
7593 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
7594 (expand_binop): Ditto (3 times).
7596 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
7598 * Makefile.in (distclean): Remove QMTest stuff.
7599 (QMTEST_PATH): New variable.
7600 (QMTESTFLAGS): Likewise.
7601 (QMTESTRUNFLAGS): Likewise.
7603 (QMTEST_GPP_TESTS): Likewise.
7604 (QMTEST_DIR): Likewise.
7605 (QMTEST_DIR/context): New target.
7606 (qmtest-g++): Likeise.
7607 (qmtest-gui): Likewise.
7608 (QMTEST_DIR/gpp-expected.qmr): Likewise.
7610 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
7612 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
7613 an altivec register if TARGET_ALTIVEC.
7615 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7616 to ALTIVEC_VECTOR_MODE.
7617 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7618 (rs6000_va_arg): Vectors may go in registers if they are not
7621 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
7623 * protoize.c: Fix formatting.
7625 2002-05-19 Richard Henderson <rth@redhat.com>
7627 * gensupport.c (init_include_reader): Merge into ...
7628 (process_include): ... here. Simplify composite path creation.
7629 Plug memory leaks. Fix file/line number tracking. Do not
7630 process_define_cond_exec. Return void.
7631 (process_rtx): Don't check process_include return value.
7633 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7635 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
7637 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7638 traversing basic block chain.
7639 (create_basic_block_structure, create_basic_block): Declaration changed.
7640 (link_block, unlink_block): Declare.
7641 * cfg.c (entry_exit_blocks): Initialize new fields.
7642 (link_block, unlink_block): New.
7643 (expunge_block_nocompact): Unlink basic block.
7644 (dump_flow_info): Print prev_bb/next_bb fields.
7645 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
7646 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
7647 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
7648 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7649 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
7650 (verify_flow_info): Check that list agrees with numbering.
7652 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
7654 * c-common.c (preprocessing_asm): New macro.
7655 * c-lex.h (builtin_define, builtin_assert): Use pfile.
7659 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
7660 (CPP_SPEC): Simplify.
7661 (TARGET_CPU_CPP_BUILTINS): Update.
7662 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
7663 (CPP_SPEC): Simplify.
7664 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
7665 (TARGET_OS_CPP_BUILTINS): Update.
7666 * osf.h (CPP_XFLOAT_SPEC): Kill.
7667 (TARGET_OS_CPP_BUILTINS): Update.
7668 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
7669 * osf5.h (CPP_XFLOAT_SPEC): Kill.
7670 * vms.h (CPP_SUBTARGET_SPEC): Kill.
7671 (TARGET_OS_CPP_BUILTINS): Update.
7673 2002-05-19 Richard Henderson <rth@redhat.com>
7675 * varasm.c (default_binds_local_p): Fix typo.
7677 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7679 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
7680 CONST_INT operand to the correct mode after adding 1 to it.
7682 2002-05-19 Mark Mitchell <mark@codesourcery.com>
7684 * config.gcc (powerpc-wrs-windiss*): New target.
7686 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7688 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
7691 2002-05-18 Mark Mitchell <mark@codesourcery.com>
7693 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
7695 * config.in: Regenerated.
7696 * configure: Regenerated.
7698 2002-05-19 Richard Henderson <rth@redhat.com>
7700 * target-def.h (TARGET_BINDS_LOCAL_P): New.
7701 * target.h (struct gcc_target): Move boolean fields to the end.
7703 * varasm.c (default_binds_local_p): New.
7704 * output.h: Declare it.
7706 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
7707 * config/cris/cris.c (cris_encode_section_info): Likewise.
7708 * config/i386/i386.c (i386_encode_section_info): Likewise.
7709 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7710 * config/sh/sh.c (sh_encode_section_info): Likewise.
7712 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
7713 (TARGET_BINDS_LOCAL_P): New.
7715 2002-05-19 Richard Henderson <rth@redhat.com>
7717 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
7718 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
7719 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
7721 * toplev.c (display_help): Kill -a -ax help.
7723 * config/1750a/1750a.h, config/alpha/alpha.h,
7724 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
7725 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
7726 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
7727 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
7729 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
7730 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
7732 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
7733 (ix86_output_function_block_profiler): Kill.
7734 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
7735 (m68hc11_function_block_profiler): Kill.
7736 * config/m68hc11/m68hc11-protos.h: Update.
7737 * config/m88k/m88k.c (output_block_profiler): Kill.
7738 (output_function_block_profiler): Kill.
7739 * config/m88k/m88k-protos.h: Update.
7741 2002-05-19 Richard Henderson <rth@redhat.com>
7743 * system.h (STRIP_NAME_ENCODING): Poison it.
7744 * output.h (STRIP_NAME_ENCODING): Remove.
7745 (default_strip_name_encoding): Declare.
7746 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
7747 * target.h (strip_name_encoding): New.
7748 * varasm.c (default_strip_name_encoding): New.
7750 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
7751 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
7752 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
7753 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
7754 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
7755 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
7756 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
7757 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
7758 config/v850/v850.h: Use the hook, not the macro.
7760 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7761 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
7762 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
7763 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
7764 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
7765 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
7766 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7767 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
7768 config/v850/v850.c, config/v850/v850.h:
7769 Move STRIP_NAME_ENCODING to out-of-line function and add
7770 TARGET_STRIP_NAME_ENCODING.
7772 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
7773 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
7774 with TARGET_STRIP_NAME_ENCODING referencing existing function;
7775 make function static.
7777 * xcoffout.c: Include target.h
7778 * Makefile.in (xcoffout.o): Update.
7780 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
7781 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
7782 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
7783 reloc argument unused.
7784 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
7786 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
7787 STRIP_NAME_ENCODING docs.
7789 2002-05-19 Andreas Jaeger <aj@suse.de>
7791 * gengenrtl.c: Add prototype for excluded_rtx.
7793 * real.h: Add prototype for exact_real_truncate.
7795 2002-05-18 Richard Henderson <rth@redhat.com>
7797 * system.h (ENCODE_SECTION_INFO): Poison it.
7798 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
7799 * target.h (encode_section_info): New.
7800 * varasm.c (make_decl_rtl, output_constant_def): Use it.
7801 * hooks.c (hook_tree_int_void): New.
7802 * hooks.h: Declare it.
7804 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7805 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
7806 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
7807 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
7808 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
7809 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
7810 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7811 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
7812 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7813 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7814 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
7815 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
7816 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
7817 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
7818 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
7819 referencing existing function. Make function static.
7821 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
7822 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
7823 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
7824 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
7825 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
7826 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
7827 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
7828 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
7829 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
7830 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
7831 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
7832 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
7833 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
7834 Move ENCODE_SECTION_INFO to out-of-line function and add
7835 TARGET_ENCODE_SECTION_INFO.
7837 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
7838 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7840 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
7842 (switch_to_section): Replace in_rdata case with in_readonly_data.
7844 * config/h8300/h8300.c (h8300_encode_label): Make static.
7845 * config/h8300/h8300-protos.h: Update.
7847 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
7848 from rs6000_encode_section_info; make static.
7849 (rs6000_xcoff_encode_section_info): New.
7851 * config/v850/v850.c (v850_encode_data_area): Make static.
7852 * config/v850/v850-protos.h: Update.
7854 * config/vax/vax.c: Include flags.h.
7855 (vms_select_section): Fix typo.
7857 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
7858 ENCODE_SECTION_INFO docs.
7860 2002-05-18 Richard Henderson <rth@redhat.com>
7862 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
7863 REGISTER_TARGET_PRAGMAS.
7864 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
7866 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
7868 2002-05-18 Richard Henderson <rth@redhat.com>
7870 * system.h (SELECT_RTX_SECTION): Poison.
7871 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
7872 * target.h (select_rtx_section): New.
7873 * varasm.c (output_constant_pool): Use it.
7874 (default_select_rtx_section, default_elf_select_rtx_section): New.
7875 * output.h: Declare them.
7877 * config/darwin.h (SELECT_RTX_SECTION): Move ...
7878 * config/darwin.c (machopic_select_rtx_section): ... here.
7879 * config/darwin-protos.h: Update.
7881 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
7882 * config/nextstep.c (machopic_select_rtx_section): ... here.
7883 (nextstep_select_section): Rename variable to avoid macro clash.
7884 * config/nextstep-protos.h: Update.
7886 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
7887 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
7888 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
7889 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
7890 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
7891 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
7892 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
7893 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
7894 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
7895 (SELECT_RTX_SECTION): Remove.
7897 * config/darwin.h, config/elfos.h, config/nextstep.h,
7898 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
7899 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
7900 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
7901 config/sparc/lynx.h, config/xtensa/xtensa.c
7902 (TARGET_ASM_SELECT_RTX_SECTION): New.
7904 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
7905 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
7906 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
7907 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
7908 (ia64_aix_select_rtx_section): New.
7909 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
7911 * config/mips/mips.c (mips_select_rtx_section): Make static.
7912 Support ELF SHF_MERGE features.
7913 * config/mips/mips-protos.h: Update.
7914 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
7915 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
7916 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
7917 make static, fall back to default_elf_select_rtx_section.
7918 * config/rs6000/rs6000-protos.h: Update.
7919 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
7920 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
7921 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
7922 * config/romp/romp.c (romp_select_rtx_section): New.
7923 * config/s390/s390.c (s390_select_rtx_section): New.
7924 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
7925 declarations before target macro definition.
7926 (xtensa_emit_call): Use static buffer.
7927 (xtensa_select_rtx_section): New.
7928 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
7929 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
7930 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
7932 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
7933 SELECT_RTX_SECTION docs.
7935 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7937 * i386.md (movsi/movdi): Fix template.
7938 (sse2 patterns): Set attributes consistently.
7940 * i386.md (pushqi2, ashrqi_*): Fix constraint.
7942 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
7944 * optabs.c (complex_part_zero_p): New.
7945 * (expand_cmplxdiv_straight): Use it.
7946 * (expand_cmplxdiv_wide): Ditto.
7947 * (expand_binop): Ditto.
7949 2002-05-18 Richard Henderson <rth@redhat.com>
7951 * final.c (HAVE_READONLY_DATA_SECTION): New.
7952 (shorten_branches): Use it instead of ifdefs.
7953 * varasm.c (enum in_section): Add in_readonly_data.
7954 (text_section, data_section): Tidy.
7955 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
7957 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
7958 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
7959 (READONLY_DATA_SECTION): Don't undef.
7961 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
7962 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
7963 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
7965 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
7966 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
7967 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
7968 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
7970 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
7971 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
7972 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7973 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
7974 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
7975 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
7976 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
7977 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
7978 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
7980 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
7981 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
7982 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
7983 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
7984 config/pa/pa64-hpux.h, config/sparc/litecoff.h
7985 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7987 * config/elfos.h, config/netware.h, config/svr3.h,
7988 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7989 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7990 config/h8300/h8300.h, config/i386/i386-interix.h,
7991 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7992 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
7994 * config/elfos.h, config/netware.h, config/svr3.h,
7995 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7996 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
7997 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7998 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
8000 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
8001 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
8002 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
8003 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
8004 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
8005 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
8006 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
8007 config/rs6000/sysv4.h, config/v850/v850.h
8008 (EXTRA_SECTIONS): Remove in_const/in_rdata.
8009 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
8011 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
8012 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
8013 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
8014 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
8015 * config/alpha/alpha.c (alpha_start_function): Likewise.
8016 (alpha_write_linkage): Likewise.
8017 * config/m32r/m32r.c (m32r_select_section): Likewise.
8018 * config/m88k/m88k.c (m88k_select_section): Likewise.
8019 * config/mips/mips.c (mips_select_rtx_section): Likewise.
8020 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
8021 (rs6000_elf_select_section): Likewise.
8022 * config/v850/v850.c (v850_select_section): Likewise.
8024 * config/1750a/1750a.h, config/i860/sysv3.h
8025 (READONLY_DATA_SECTION_ASM_OP): New.
8026 READONLY_DATA_SECTION_ASM_OP.
8027 * config/i386/interix.c, config/i386/winnt.c
8028 (i386_pe_unique_section): Always use .rdata prefix.
8029 * config/pa/som.h (readonly_data): Always switch to read-only section.
8030 (READONLY_DATA_SECTION): Predicate on flag_pic.
8031 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
8032 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
8033 (READONLY_DATA_SECTION): Update.
8035 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
8037 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8038 is used without -Wformat.
8039 * c-common.h (warn_format_zero_length): Declare extern.
8040 * c-decl.c (warn_options): Add "format-zero-length".
8041 * c-format.c (warn_format_zero_length): Declare.
8042 (set_Wformat): Set warn_format_zero_length for -Wformat.
8043 (check_format_info): Only warn about zero-length formats if
8044 warn_format_zero_length is true. Include the format type
8045 name in the warning message.
8046 * doc/invoke.texi: Document -Wformat-zero-length.
8047 * testsuite/gcc.dg/format/zero-length-1.c: New test.
8049 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
8051 * timevar.c: Fix formatting.
8052 * tlink.c: Likewise.
8053 * toplev.c: Likewise.
8054 * tree-dump.c: Likewise.
8055 * tree-inline.c: Likewise.
8057 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8059 * cppinit.c (cpp_post_options): If preprocessed, turn off
8060 traditional. If traditional, turn off column numbers.
8061 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
8062 * cpptrad.c (handle_newline): Update line_base.
8063 (skip_comment): Handle -Wcomment.
8065 2002-05-17 Zack Weinberg <zack@codesourcery.com>
8067 * cppinit.c (struct builtin): Remove unused fields.
8068 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
8069 (operator_array): New - was second half of builtin_array.
8070 (init_builtins): Simplify loop over builtin_array/operator_array.
8072 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
8074 * defaults.h (UNIQUE_SECTION): Remove.
8075 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
8077 2002-05-17 Richard Henderson <rth@redhat.com>
8079 * expr.c (init_expr_once): Don't use start/end_sequence.
8080 Use rtx_alloc instead of emit_insn.
8081 * toplev.c (lang_dependent_init): Run init_expr_once here ...
8082 (lang_independent_init): ... not here.
8084 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8086 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
8088 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
8090 * config/avr/avr.c (avr_regs_to_save): New function. Also check
8091 for fixed registers, possibly used for global register variables.
8092 (initial_elimination_offset, avr_output_function_prologue,
8093 avr_output_function_epilogue): Move common code to avr_regs_to_save.
8095 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8097 * Makefile.in: Update for cpptrad.c.
8098 * cpphash.h (struct cpp_buffer): New members for buffer
8100 (struct cpp_reader): New members for traditional output.
8101 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
8102 * cppinit.c (cpp_create_reader): Set trad_line.
8103 (cpp_destroy): Free trad_out_base if used.
8104 (cpp_read_main_file): Overlay an empty buffer if traditional.
8105 (cpp_finish_options): Don't do builtins.
8106 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
8107 (cpp_handle_option): Handle it.
8108 * cpplex.c (continue_after_nul): New.
8109 (_cpp_lex_direct): Use handle_nul.
8110 * cpplib.h (struct cpp_options): New traditional option.
8111 * cpptrad.c: New file.
8113 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
8115 * c-common.c (c_common_init_options): Use C89 for Objective-C,
8116 and set the options flag.
8117 * cppinit.c (lang_flags): Remove objc.
8118 (lang_defaults): Remove OBJC and OBJCXX.
8120 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
8121 (cpp_handle_option): Remove -+ and -lang-objc++.
8122 For ObjC, just set a flag.
8123 (print_help): Update.
8124 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
8126 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8128 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
8129 bootstrap with -mips3.
8131 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
8133 * final.c: Fix formatting.
8134 * fix-header.c: Likewise.
8136 * fold-const.c: Likewise.
8137 * function.c: Likewise.
8139 2002-05-17 David S. Miller <davem@redhat.com>
8141 PR c/6689, PR optimization/6615
8142 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
8143 and make it a pointer to rtx. Update comments.
8144 (update_equiv_regs): When scanning for equivalences, record
8145 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
8146 it while making the equiv replacements.
8148 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8150 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
8152 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
8154 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
8155 when encoding visibility into SYMBOL_REF_FLAG.
8157 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
8159 * expr.c (force_operand): Fix reversed move.
8161 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
8163 * doc/install.texi (Testing): Mention two common DejaGnu warnings
8164 that can be ignored.
8166 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8168 * doc/install.texi (Final install): Recommend to install into a
8169 "clean" target directory.
8171 2002-05-17 Richard Henderson <rth@redhat.com>
8173 * config/ia64/ia64.md: Use braced strings instead of quoted strings
8174 for code blocks. Tidy whitespace.
8176 2002-05-17 Richard Henderson <rth@redhat.com>
8178 * hooks.c (hook_tree_bool_false): New.
8179 * hooks.h: Declare it.
8180 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
8181 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
8182 * target.h (select_section, unique_section): New.
8183 (in_small_data_p): New.
8184 * varasm.c (resolve_unique_section): Use hooks instead of macros.
8185 (variable_section, output_constant_def_contents): Likewise.
8186 (default_select_section, default_unique_section): New.
8187 (categorize_decl_for_section, default_elf_select_section): New.
8188 * output.h: Declare them.
8190 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
8191 (TARGET_ASM_SELECT_SECTION): New.
8192 (SELECT_SECTION): Move ...
8193 * config/darwin.c (machopic_select_section): ... here.
8194 * config/darwin-protos.h: Update.
8196 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
8197 (SELECT_SECTION): Move ...
8198 * config/nextstep.c (nextstep_select_section): ... here.
8199 * config/nextstep-protos.h: Update.
8201 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
8202 (TARGET_ASM_SELECT_SECTION): New.
8203 * config/svr3.h (SELECT_SECTION): Remove.
8205 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
8206 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
8207 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
8208 (alpha_encode_section_info): Use it.
8209 * config/alpha/alpha-protos.h: Update.
8210 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
8211 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8212 (TARGET_ASM_SELECT_SECTION): New.
8213 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
8215 * config/arm/pe.h (UNIQUE_SECTION): Remove.
8216 (TARGET_ASM_UNIQUE_SECTION): New.
8218 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
8219 (avr_unique_section): Rename from unique_section; make static.
8220 * config/avr/avr-protos.h: Update.
8221 * config/avr/avr.h (UNIQUE_SECTION): Remove.
8223 * config/c4x/c4x.h (SELECT_SECTION): Remove.
8225 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
8226 (TARGET_ASM_UNIQUE_SECTION): New.
8227 * config/i386/i386-interix.h: Likewise.
8228 * config/i386/win32.h: Likewise.
8229 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
8230 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
8231 * config/i386/sco5.h (SELECT_SECTION): Remove.
8232 (TARGET_ASM_SELECT_SECTION): New.
8233 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
8235 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
8236 instead of SELECT_SECTION.
8237 * config/m68k/dpx2.h: Likewise.
8238 * config/rs6000/lynx.h: Likewise.
8240 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8241 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8242 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
8243 (ia64_in_small_data_p): New.
8244 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
8245 (ia64_aix_select_section, ia64_aix_unique_section): New.
8246 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
8247 (SELECT_SECTION, UNIQUE_SECTION): Remove.
8249 * config/m32r/m32r.h (SELECT_SECTION): Remove.
8250 (TARGET_ASM_SELECT_SECTION): New.
8251 * config/m32r/m32r.c (m32r_select_section): Take align argument.
8252 * config/m32r/m32r-protos.h: Update.
8254 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
8255 (SELECT_SECTION): Move ...
8256 * config/m88k/m88k.c (m88k_select_section): ... here.
8258 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
8259 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
8260 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
8261 (mcore_unique_section): Make static.
8262 * config/mcore/mcore-protos.h: Update.
8264 * config/mips/elf.h (UNIQUE_SECTION): Remove.
8265 (TARGET_ASM_UNIQUE_SECTION): New.
8266 * config/mips/elf64.h: Likewise.
8267 * config/mips/iris6gld.h: Likewise.
8268 * config/mips/linux.h: Likewise.
8269 * config/mips/mips-protos.h: Update.
8270 * config/mips/mips.c (mips_select_section): Add align argument.
8271 * config/mips/mips.h (SELECT_SECTION): Remove.
8272 (TARGET_ASM_SELECT_SECTION): New.
8274 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8275 * config/mmix/mmix.c (mmix_select_section): Remove.
8276 (mmix_unique_section): Remove.
8277 * config/mmix/mmix-protos.h: Update.
8279 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
8280 (SELECT_SECTION): Move ...
8281 * config/pa/pa.c (pa_select_section): ... here.
8282 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
8284 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
8285 from rs6000_select_section and make static.
8286 (rs6000_elf_unique_section): Similarly.
8287 (rs6000_xcoff_select_section): From xcoff.h.
8288 (rs6000_xcoff_unique_section): Likewise.
8289 * config/rs6000/rs6000-protos.h: Update.
8290 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
8291 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
8292 * config/rs6000/xcoff.h: Likewise.
8294 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
8295 (SELECT_SECTION): Move ...
8296 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
8298 * config/v850/v850.h (SELECT_SECTION): Move ...
8299 * config/v850/v850.c (v850_select_section): ... here.
8300 (TARGET_ASM_SELECT_SECTION): New.
8302 * config/vax/vms.h (SELECT_SECTION): Move ...
8303 * config/vax/vax.c (vms_select_section): ... here.
8304 (TARGET_ASM_SELECT_SECTION): New.
8306 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
8307 for the target hooks.
8309 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
8311 * config/arm/arm.c (emit_multi_reg_push): Do not set
8312 RTX_FRAME_RELATED_P on the SEQUENCE.
8314 2002-05-16 Richard Henderson <rth@redhat.com>
8316 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
8317 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
8319 2002-05-16 Richard Henderson <rth@redhat.com>
8321 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
8323 * config/ia64/ia64.c (saveable_obstack): Do not declare.
8325 2002-05-16 Richard Henderson <rth@redhat.com>
8327 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
8328 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
8329 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
8330 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
8331 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
8332 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
8333 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
8334 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
8335 Revert "Basic block renumbering removal", and two followup patches.
8337 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8339 * lcm.c (optimize_mode_switching): Revert previous change.
8341 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8343 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
8344 with only extant block numbers.
8346 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
8348 * lcm.c (optimize_mode_switching): Fix typo.
8350 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8352 * flow.c (calculate_global_regs_live): Queue blocks in program order.
8354 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8356 * doc/install.texi (Configuration): Document PWDCMD.
8358 2002-05-16 Dale Johannesen <dalej@apple.com>
8360 * combine.c (cant_combine_insn_p): Reenable combinations
8361 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8363 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8365 * c-common.c (cb_register_builtins): Handle more built-ins
8366 here rather than in gcc.c specs.
8367 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
8368 (cpp_options): Pass -O flags even when only preprocessing.
8369 * toplev.c (set_fast_math_flags): New prototype.
8370 (fast_math_flags_set_p): New.
8371 (set_no_fast_math_flags): Remove.
8372 (decode_f_option): Update.
8373 * toplev.h (set_fast_math_flags): Update.
8374 (fast_math_flags_set_p): New.
8375 (set_no_fast_math_flags): Remove.
8377 * c4x/c4x.c (c4x_override_options): Update.
8379 2002-05-16 Zack Weinberg <zack@codesourcery.com>
8381 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
8382 Default-define here.
8383 (builtin_define_with_value): Can now wrap the expansion in
8384 quotation marks if such is wanted.
8385 (cb_register_builtins): Update calls to builtin_define_with_value.
8386 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
8388 (c_common_init): Set options->stdc_0_in_system_headers.
8389 * c-lex.h: Update prototype of builtin_define_with_value.
8390 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
8391 and REGISTER_PREFIX.
8393 * cppinit.c (VERS, ULP, C, X): Kill.
8394 (builtin_array): Remove entries for __VERSION__,
8395 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
8396 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
8398 (init_builtins): Kill off a bunch of now-dead code.
8399 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
8400 -fno-leading-underscore.
8401 (cpp_handle_option): Remove code to set user_label_prefix.
8402 (cpp_post_options): Likewise.
8404 * cpplib.h (struct cpp_options): Remove user_label_prefix.
8405 (stdc_0_in_system_headers): New.
8406 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
8407 stdc_0_in_system_headers) too to decide the value of __STDC__.
8409 * tradcpp.c (user_label_prefix): Kill.
8410 (main): Remove code handling -f(no-)leading-underscore.
8411 (initialize_builtins): Don't define __REGISTER_PREFIX__
8412 or __USER_LABEL_PREFIX__.
8413 (install_value): Wrap compound statement in dummy loop so the
8414 macro works properly in an if statement.
8417 2002-05-16 Janis Johnson <janis187@us.ibm.com>
8419 * loop.h (struct loop_info): Add member has_prefetch.
8420 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
8421 (prescan_loop): Initialize has_prefetch.
8422 (struct prefetch_info): Change prefetch_in_loop and
8423 prefetch_before_loop from bit fields to ints.
8424 (emit_prefetch_instructions): Several small fixes.
8425 (check_dbra_loop): Don't reverse loop that uses prefetch.
8427 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8429 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
8430 * configure.in: Likewise.
8431 * fixinc/check.tpl: Likewise.
8432 * fixinc/fixinc.dgux: Likewise.
8433 * fixinc/fixinc.svr4: Likewise.
8434 * fixinc/fixinc.winnt: Likewise.
8435 * fixinc/fixincl.sh: Likewise.
8436 * fixproto: Likewise.
8437 * configure: Regenerate.
8439 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8441 Basic block renumbering removal:
8442 * basic_block.h (struct basic_block_def): Renamed index to sindex,
8443 added prev_bb and next_bb fields.
8444 (n_basic_blocks): Renamed to num_basic_blocks.
8445 (last_basic_block): New, index of last basic block.
8446 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
8447 traversing basic block chain.
8448 (BLOCK_NUM): index -> sindex.
8449 (create_basic_block_structure, create_basic_block): Declaration changed.
8450 (debug_num2bb): Declare.
8451 (expunge_block_nocompact): Declaration removed.
8452 (link_block, unlink_block, compact_blocks): Declare.
8453 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
8454 * cfg.c (entry_exit_blocks): Initialize new fields.
8455 (clear_edges, alloc_block, expunge_block, cached_make_edge,
8456 redirect_edge_pred, dump_flow_info, dump_edge_info,
8457 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
8458 free_aux_for_edges): Modified.
8459 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
8460 (expunge_block_nocompact): Removed.
8461 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
8462 find_unreachable_blocks, create_edge_list, print_edge_list,
8463 verify_edge_list, flow_edge_list_print, remove_fake_successors,
8464 remove_fake_edges, flow_reverse_top_sort_order_compute,
8465 flow_depth_first_order_compute, flow_preorder_transversal_compute,
8466 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
8467 flow_dfs_compute_reverse_execute): Modified.
8468 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
8469 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
8471 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8472 merge_blocks_move_predecessor_nojumps,
8473 merge_blocks_move_successor_nojumps, merge_blocks,
8474 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
8475 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
8476 * cfglayout.c (skip_insns_after_block, label_for_bb,
8477 record_effective_endpoints, scope_to_insns_finalize,
8478 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
8479 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
8480 cfg_layout_duplicate_bb): Modified.
8481 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
8482 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8483 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
8484 flow_loops_find, flow_loop_outside_edge_p): Modified.
8485 * cfgrtl.c (create_basic_block_structure, create_basic_block,
8486 flow_delete_block, compute_bb_for_insn, split_block,
8487 try_redirect_by_replacing_jump, redirect_edge_and_branch,
8488 force_nonfallthru_and_redirect, tidy_fallthru_edge,
8489 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
8490 commit_edge_insertions, commit_edge_insertions_watch_calls,
8491 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
8492 purge_all_dead_edges): Modified.
8493 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
8494 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8495 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
8497 * conflict.c (conflict_graph_compute): Modified.
8498 * df.c (FOR_ALL_BBS): Removed.
8499 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8500 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
8501 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
8502 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
8503 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8504 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
8505 * final.c (compute_alignments, final_scan_insn): Modified.
8506 * flow.c (verify_local_live_at_start, update_life_info,
8507 update_life_info_in_dirty_blocks, free_basic_block_vars,
8508 delete_noop_moves, calculate_global_regs_live,
8509 initialize_uninitialized_subregs, allocate_bb_life_data,
8510 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
8511 mark_used_reg, count_or_remove_death_notes): Modified.
8512 * function.c (thread_prologue_and_epilogue_insns): Modified.
8513 * gcse.c (struct null_pointer_info): Change typo of current_block
8515 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
8516 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
8517 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
8518 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
8519 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
8520 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
8521 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
8522 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
8523 pre_delete, one_pre_gcse_pass, compute_transpout,
8524 invalidate_nonnull_info, delete_null_pointer_checks_1,
8525 free_code_hoist_mem, compute_code_hoist_vbeinout,
8526 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8527 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
8528 compute_store_table, build_store_vectors, insert_insn_start_bb,
8529 insert_store, replace_store_insn, free_store_memory, store_motion):
8531 * global.c (global_alloc, global_conflicts, mark_elimination,
8532 build_insn_chain): Modified.
8533 * graph.c (print_rtl_graph_with_bb): Modified.
8534 * haifa-sched.c (sched_init): Modified.
8535 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
8536 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
8537 if_convert): Modified.
8538 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
8539 compute_insert_delete, pre_edge_lcm, compute_available,
8540 compute_farthest, compute_nearerout, compute_rev_insert_delete,
8541 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
8543 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
8544 * loop.c (loop_dump_aux): Modified.
8545 * predict.c (combine_predictions_for_insn, estimate_probability,
8546 last_basic_block_p, process_note_prediction, process_note_predictions,
8547 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
8548 expensive_function_p, estimate_bb_frequencies,
8549 compute_function_frequency): Modified.
8550 * print-rtl.c (print_rtx): Modified.
8551 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
8552 get_exec_counts, compute_branch_probabilities, compute_checksum,
8553 branch_prob, find_spanning_tree): Modified.
8554 * recog.c (split_all_insns, peephole2_optimize): Modified.
8555 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
8556 convert_regs_1, convert_regs_2, convert_regs): Modified.
8557 * regclass.c (scan_one_insn, regclass): Modified.
8558 * regmove.c (mark_flags_life_zones, regmove_optimize,
8559 combine_stack_adjustments): Modified.
8560 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
8561 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
8562 * reorg.c (dbr_schedule): Modified.
8563 * resource.c (find_basic_block, init_resource_info): Modified.
8564 * sbitmap.c (sbitmap_intersection_of_succs,
8565 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
8566 sbitmap_union_of_preds): Modified.
8567 * sched-deps.c (init_dependency_caches): Modified.
8568 * sched-ebb.c (schedule_ebbs): Modified.
8569 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
8570 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
8571 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
8572 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
8573 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
8574 ssa_const_prop): Modified.
8575 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
8576 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
8577 * ssa.c (remove_phi_alternative, find_evaluations,
8578 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
8579 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
8580 make_regs_equivalent_over_bad_edges,
8581 make_equivalent_phi_alternatives_equival,
8582 compute_conservative_reg_partition,
8583 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
8584 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
8587 2002-05-16 Mark Mitchell <mark@codesourcery.com>
8589 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
8591 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
8593 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
8594 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8595 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
8596 calling CONSTANT_POOL_ADDRESS_P.
8597 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
8598 to decide whether to define __arm__ or __thumb.
8599 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
8600 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
8602 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8604 * config/arc/arc.h (CPP_PREDEFINES): Remove.
8606 (TARGET_CPU_CPP_BUILTINS): New.
8608 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
8610 * cpphash.h (cpp_macro): Move here, and make expansion a union.
8611 * cppmacro.c (cpp_macro): Remove.
8612 (enter_macro_context, replace_args, warn_of_redefinition,
8613 _cpp_create_definition, cpp_macro_definition): Update.
8615 2002-05-16 Jason Merrill <jason@redhat.com>
8617 * config/mips/mips.c (mips_output_external): Don't do sdata
8618 optimization for a variable with DECL_COMDAT set.
8620 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8622 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8623 Cleanups for accepting modifiers on pointers.
8624 Fix predicate typos.
8625 Allow long pointers as well as int pointers.
8627 2002-05-15 Richard Henderson <rth@redhat.com>
8629 * varasm.c (merge_weak): Remove special case for extern and common.
8631 2002-05-15 Matt Hiller <hiller@redhat.com>
8633 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
8635 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
8636 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
8637 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
8638 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
8639 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
8640 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
8642 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8644 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
8646 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8648 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
8649 ("altivec_mfvscr"): Read from VSCR.
8651 Add vscr sets for the following insns: altivec_vctuxs,
8652 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
8653 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
8654 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
8655 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
8656 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
8657 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
8658 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
8659 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
8660 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
8661 altivec_vsum2sws, altivec_vsumsws.
8663 * config/rs6000/rs6000.h: Add VSCR fixed register.
8664 (CALL_REALLY_USED_REGISTERS): Add vscr.
8665 (CALL_USED_REGISTERS): Same.
8666 (FIXED_REGISTERS): Same.
8667 (REG_ALLOC_ORDER): Same.
8668 (reg_class): Add VSCR_REGS.
8669 (REG_CLASS_NAMES): Same.
8670 (REG_CLASS_CONTENTS): Same.
8672 (REGISTER_NAMES): Add vscr.
8673 (DEBUG_REGISTER_NAMES): Same.
8674 (ADDITIONAL_REGISTER_NAMES): Same.
8675 (FIRST_PSEUDO_REGISTER): Increment.
8676 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
8678 2002-05-15 Jakub Jelinek <jakub@redhat.com>
8680 * fold-const.c (fold): Fix a typo.
8682 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
8684 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
8685 comparison against the highest or lowest integer value before
8686 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
8687 transformation and that of an unsigned comparison against 0
8690 2002-05-15 Richard Henderson <rth@redhat.com>
8692 * varasm.c (merge_weak): Error for any weakening after definition.
8693 Adjust weakening after use warning to catch more cases.
8694 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
8695 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
8697 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
8699 * invoke.texi (-malign-double): Re-add lost warning.
8701 * i386-protos.h (x86_output_mi_thunk): Declare.
8702 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
8703 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
8705 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
8706 when flag_asynchronous_unwind_tables is set.
8708 * flags.h (flag_reorder_functions): Declare.
8709 * function.c (prepare_function_start): Initialize frequnecy.
8710 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
8711 * Makefile.in (predict.o): Add dependency on target.h and params.h
8712 * defaults.h (HOT_TEXT_SECTION_NAME,
8713 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
8714 * predict.c (choose_function_section): New function.
8715 (estimate_bb_frequencies): Use it.
8716 * toplev.c (flag_reorder_functions): New global variable.
8717 (lang_independent_options): New.
8718 (parse_options_and_default_flags): Set.
8719 * varasm.c (assemble_start_function): Bypass functdion alignment
8720 for never executed functions.
8721 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
8722 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
8723 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
8726 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
8728 * predict.c: Inlude profile.h
8729 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
8730 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
8731 Use the information about maximal counter in the program.
8733 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
8735 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
8736 probably_never_executed_bb_p): New functions.
8737 * cfgcleanup.c (outgoing_edges_match): Use them.
8738 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
8739 (maybe_hot_bb_p, probably_cold_bb_p,
8740 probably_never_executed_bb_p): New functions.
8742 * function.h (function): Add new field function_frequency.
8743 * predict.c (compute_function_frequency): New function.
8744 (estimate_probability): Call it.
8746 2002-03-09 Jakub Jelinek <jakub@redhat.com>
8748 PR optimization/5172, optimization/5200
8749 * gcse.c (gcse_main): Disable store_motion.
8751 2002-05-14 Zack Weinberg <zack@codesourcery.com>
8753 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
8754 (c_common_nodes_and_builtins): Use it.
8755 (builtin_define_with_value): New function.
8756 (cb_register_builtins): Define __SIZE_TYPE__,
8757 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
8758 using builtin_define_with_value. Use consistent notation when
8759 defining __GXX_WEAK__.
8760 (WCHAR_TYPE_SIZE): Don't redefine.
8761 (combine_strings): Don't use WCHAR_TYPE_SIZE.
8763 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
8764 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
8765 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
8766 * tradcpp.c (initialize_builtins): Likewise.
8767 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
8769 * c-lex.h (builtin_define_with_value): Prototype.
8770 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
8771 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
8772 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
8774 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
8775 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
8776 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
8777 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
8778 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
8779 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
8780 config/sparc/sol2-bi.h, config/sparc/sparc.h:
8781 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
8782 to __SIZE_TYPE__ etc from all spec strings. When this makes
8783 extra specs empty, delete them.
8785 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
8787 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
8788 for PA8000 or generating dwarf2 call frame information.
8789 (output_call): Remove DO_FRAME_NOTES check from return pointer
8791 (following_call): Return 0 when scheduling for PA8000 or generating
8792 dwarf2 call frame information. Revise comment.
8794 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8797 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
8798 and __IEEE_FP_INEXACT as appropriate.
8799 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
8800 (CPP_SPEC): Remove ieee defines.
8801 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
8803 2002-05-14 Richard Henderson <rth@redhat.com>
8805 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
8806 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
8808 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8810 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
8812 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
8813 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
8814 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
8815 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
8816 (EXTRA_SPECS): Update.
8817 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
8818 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
8819 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
8820 define TARGET_OS_CPP_BUILTINS if necessary.
8822 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8824 * gcc.c (cpp_options): Must pass -m* and -f* options
8825 to the front end even when only preprocessing.
8826 (cc1_options): Remove redundant -lang-c.
8827 * tradcpp.c (main): Ignore -m options.
8829 * lang-specs.h: Similarly.
8831 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
8833 * genautomata.c (transform_3): Add code for transformation
8834 `(A,B,...)+C -> A+C,B,...'.
8836 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
8838 * final.c (end_final): Do not output profile_arcs constructor, when
8839 no functions are instrumented.
8841 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
8843 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
8845 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8847 * doc/install.texi: Remove special markup originally required for
8848 HTML generation with texi2html.
8850 2002-05-14 Andreas Schwab <schwab@suse.de>
8852 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
8854 (UNIQUE_SECTION): Define to get small data correctly.
8856 * varasm.c (resolve_unique_section): Add third parameter
8857 flag_function_or_data_sections and use it instead of
8858 flag_function_sections.
8859 (assemble_start_function): Pass flag_function_sections.
8860 (asm_emit_uninitialised): Pass flag_data_sections.
8861 (assemble_variable): Likewise.
8863 2002-05-14 Richard Henderson <rth@redhat.com>
8865 * config/i386/i386.md: Use define_constants for unspec numbers.
8866 * config/i386/i386.c: Likewise.
8868 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8870 * doc/contrib.texi: Update my entry.
8872 2002-05-13 Mark Mitchell <mark@codesourcery.com>
8874 * fixinc/inclhack.def (winidss_valist): Limit applicability.
8875 * fixinc/fixincl.x: Regenerated.
8876 * fixinc/tests/base/math.h: Update.
8877 * fixinc/tests/base/testing.h: Likewise.
8879 2002-05-13 Zack Weinberg <zack@codesourcery.com>
8881 * genattr.c (gen_attr): Don't emit a comma after the last
8884 2002-05-13 Richard Henderson <rth@redhat.com>
8886 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
8888 * recog.c (peephole2_optimize): Likewise.
8890 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
8892 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
8895 2002-05-13 Jeffrey A Law (law@redhat.com)
8897 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
8898 Update prototype and callers.
8899 (propagate_one_insn): Stack pointer adjustments kill MEMs on
8900 the mem_set_list which reference the stack pointer, as do
8901 calls to constant functions as they may clobber outgoing
8904 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
8906 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8907 (ia32_multipass_dfa_lookahead): New function.
8909 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8911 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
8912 (translate_options): Remove 'V'.
8913 (process_command): Similarly.
8915 * invoke.texi: Remove documentation of 'V'.
8917 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8919 * config/s390/linux.h: Revert 2002-04-22 changes.
8921 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
8923 * config/fr30/fr30.md: Only allow splits of immediate loads
8924 if the destination is a register.
8926 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8928 * Makefile.in (c-common.o, cppinit.o): Update.
8929 * c-common.c: Include except.h.
8930 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
8931 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
8932 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
8933 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
8934 CPP_PREDEFINES): Handle here.
8936 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
8937 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
8938 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
8939 TARGET_OS_CPP_BUILTINS.
8940 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
8941 (CPP_SPEC, EXTRA_SPECS): Update.
8942 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
8943 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
8944 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
8945 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
8946 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
8948 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
8949 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
8951 2002-05-12 Zack Weinberg <zack@codesourcery.com>
8953 * emit-rtl.c (global_rtl): Update comment.
8954 (const_double_htab, const_double_htab_hash,
8955 const_double_htab_hash, lookup_const_double): New.
8956 (const_int_htab_hash, const_int_htab_eq): Remove const
8957 qualifiers, which cause tons of warnings with RTL checking on.
8958 (gen_rtx_CONST_DOUBLE): Deleted.
8959 (const_double_from_real_value): New function - bears some
8960 resemblance to the former immed_real_const_1.
8961 (immed_double_const): Moved here from varasm.c and
8963 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
8964 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
8965 (gen_rtx): Use immed_double_const.
8966 (init_emit_once): Initialize the const_double_htab. Use
8967 REAL_VALUE_FROM_INT where possible. Can now use
8968 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
8969 * varasm.c (struct varasm_status): Remove x_const_double_chain.
8970 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
8971 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
8972 (init_varasm_status, mark_varasm_status): Don't touch
8973 x_const_double_chain.
8975 * output.h: Delete prototype for clear_const_double_mem.
8976 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
8977 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
8978 const_double_from_real_value, not immed_real_const_1, and use
8979 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
8981 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
8982 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
8983 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
8984 (gen_rtx_REG): Second arg is unsigned.
8986 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
8987 (excluded_rtx): New, return true for CONST_DOUBLE.
8988 (genmacro): Write nothing for excluded codes.
8989 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
8990 * expr.c (expand_expr): Likewise.
8991 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
8993 * toplev.c (rest_of_compilation): Don't call
8994 clear_const_double_mem.
8996 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
8997 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
8998 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
8999 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
9000 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
9001 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
9002 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
9003 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
9005 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9007 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
9009 2002-05-12 Tom Tromey <tromey@redhat.com>
9011 * tree.h (copy_node): Don't mention TREE_PERMANENT.
9013 2002-05-12 Zack Weinberg <zack@codesourcery.com>
9015 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
9016 (scan_comma_elt): New function. Accepts whitespace in comma lists.
9017 * gensupport.h: Prototype new routines.
9018 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
9020 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
9021 (next_comma_elt): Use scan_comma_elt.
9023 * config/i386/i386.md: Use new attribute notation to break up
9024 long lines in define_attr forms.
9026 2002-05-12 Richard Henderson <rth@redhat.com>
9028 * expr.c (compress_float_constant): New.
9029 (emit_move_insn): Use it.
9030 (float_extend_from_mem): New.
9031 (init_expr_once): Initialize it.
9032 * real.c (exact_real_truncate): New.
9034 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
9035 dropped into memory; penalize for size.
9036 (RTX_COSTS): FLOAT_EXTEND is free.
9037 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
9038 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
9040 2002-05-12 Richard Henderson <rth@redhat.com>
9042 * profile.h (profile_info): Add missing extern to declaration.
9043 * profile.c (profile_info): Define it.
9045 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9047 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
9048 used for DImode and TImode.
9050 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
9052 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
9055 2002-05-11 Zack Weinberg <zack@codesourcery.com>
9057 * config/rs6000/rs6000.c (rs6000_default_long_calls,
9058 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
9059 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
9060 (rs6000_override_options): Handle -m(no-)longcall.
9061 (init_cumulative_args, output_mi_thunk): Check for both
9062 longcall and shortcall attributes on the function.
9063 (rs6000_attribute_table): Add "shortcall".
9064 (rs6000_handle_longcall_attribute): Update comment.
9065 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
9066 altivec_expand_ternop_builtin): Add default clauses to switches
9067 to silence warnings.
9069 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
9070 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
9071 (TARGET_OPTIONS): Add longcall and no-longcall.
9073 * config/rs6000/rs6000.md (call_nonlocal_sysv,
9074 call_value_nonlocal_sysv): Split by alternatives. One pair
9075 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
9076 the call cookie. The other pair accepts only LR/CTR and has
9079 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
9080 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
9082 * config/rs6000/rs6000-c.c: New file.
9083 * config/rs6000/t-rs6000-c-rule: New file.
9084 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
9085 Prototype rs6000_pragma_longcall.
9087 * doc/extend.texi: Document shortcall attribute.
9088 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
9090 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9092 * reorg.c (dbr_schedule): Remove unnecessary test.
9094 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9096 * i386.md (testsi to testqi spliters): New.
9098 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
9100 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
9102 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
9104 * basic-block.h: New flag EDGE_CAN_FALLTHRU
9105 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
9106 that can be made fallthru.
9108 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
9110 * cfglayout.c (cleanup_unconditional_jumps): New static function.
9111 (cfg_layout_initialize): Use it.
9113 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
9115 * config/avr/avr.c (avr_mcu_types): Update supported devices.
9116 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9117 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9119 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
9121 * dbxout.c: Fix formatting.
9122 * dependence.c: Likewise.
9124 * diagnostic.c: Likewise.
9125 * doloop.c: Likewise.
9126 * dominance.c: Likewise.
9127 * doschk.c: Likewise.
9128 * dwarf2asm.c: Likewise.
9129 * dwarf2out.c: Likewise.
9130 * dwarfout.c: Likewise.
9132 2002-05-10 Richard Henderson <rth@redhat.com>
9134 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
9135 Convert integers constants as needed. Replace "nwords" field with
9137 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
9138 * function.h: Fix typo in comment.
9139 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
9141 2002-05-10 Roger Sayle <roger@eyesopen.com>
9143 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
9144 into the equivalent (signed char)c > 0.
9146 2002-05-10 Janis Johnson <janis187@us.ibm.com>
9148 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
9149 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
9150 (struct prefetch_info): Fix spelling of member bytes_accessed.
9151 (emit_prefetch_instructions): Make dump messages more regular;
9152 restructure code to add more dump messages; use new macros for
9153 heuristics. (There are no code generation changes in any of this).
9155 2002-05-10 David S. Miller <davem@redhat.com>
9157 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
9158 (struct rtx_def): Update unchanging flag comment.
9159 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
9160 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
9161 to be handled to INSN too.
9162 (dbr_schedule): Likewise.
9163 * resource.c (next_insn_no_annul): Likewise.
9165 * cse.c (rtx_cost): Remove multiplication by power of 2 special
9168 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9170 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
9171 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
9172 (possibly) work around broken /bin/sh.
9174 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9176 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
9177 . as N64/N32 libgcc_s.so subdirs.
9179 2002-05-10 David S. Miller <davem@redhat.com>
9181 * config/sparc/sparc.md: Use define_constants for unspec numbers.
9183 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
9185 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
9187 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
9188 * doc/rtl.texi: Document these macros more accurately.
9189 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
9190 JUMP_INSNs and CALL_INSNs.
9191 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
9192 or INSN_FROM_TARGET_P if the code is appropriate.
9194 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
9196 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
9197 before using SYMBOL_REF_FLAG (addr).
9199 * config/avr/avr-protos.h (avr_io_address_p): Declare.
9200 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
9201 Make non-static. Update all callers.
9202 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
9203 New insns to clear/set/test a single bit in I/O address space.
9205 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9207 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
9209 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9211 * Makefile.in: Update.
9212 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
9213 builtin_define_std): New.
9214 (c_common_init): Register CPP builtins callback.
9215 * c-common.h (flag_iso, flag_undef): New.
9216 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
9217 * c-lex.c: Don't include target.h.
9218 (cb_register_builtins): Move to c-common.c.
9219 (init_c_lex): Don't register hook here.
9220 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
9221 (cpp_define, cpp_assert): Remove.
9222 * gcc.c (cc1_options): Pass -undef to front end.
9223 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
9224 (TARGET_INITIALIZER): Update.
9225 * target.h (struct cpp_reader): Don't predeclare.
9226 (struct gcc_target): Remove cpp builtin hook.
9227 * tree.c (default_register_cpp_builtins): Remove.
9231 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9233 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
9235 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9237 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
9238 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
9240 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9242 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
9243 * config/sparc/libgcc-sparc-glibc.ver: New file.
9244 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
9245 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
9247 2002-05-09 Jakub Jelinek <jakub@redhat.com>
9250 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
9251 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
9252 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
9254 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
9255 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
9256 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9257 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
9259 2002-05-09 Richard Henderson <rth@redhat.com>
9261 * config/ia64/ia64.md: Use define_constants for unspec numbers.
9262 * config/ia64/ia64.c: Likewise.
9264 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
9266 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
9267 (save_restore_insns): Likewise.
9268 (mips_expand_prologue, mips_expand_epilogue): Update callers.
9269 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
9271 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
9273 * athlon.md, k6.md, pentium.md, ppro.md): New files.
9274 * i386.md: Move scheduling information into new files.
9276 * i386.md (type attribute): Add "rotate" for rotate insns.
9277 (rotate insns): Set type to "rotate".
9278 (various attributes and function units): Treat rotate like shift.
9279 (pent_pair attribute): Only rotates by one bit position are
9281 (sbb insns): Explicitly set pent_pair attribute on a couple
9282 that were missing it.
9284 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9286 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
9287 make sure that buffer starts on odd word address.
9288 (sh_va_arg): Skip odd fp registers when reading a double precision
9291 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9293 * tree.h (preserve_data, object_permanent_p, type_precision):
9296 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
9298 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
9299 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
9301 * cpp.texi: Update for removal of obsolete features.
9303 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
9304 Jeffrey A Law (law@redhat.com)
9306 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
9307 the DFA interface for Pentium processors.
9308 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
9309 (attr_pent_pair, ix86_pent_find_pair): Remove.
9310 (ix86_sched_reorder_pentium): Remove.
9311 (ix86_sched_reorder): Remove reordering for Pentium.
9312 * i386.md (Pentium scheduling): Rewrite using DFA description.
9314 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
9316 * cfganal.c (can_fallthru): Fix fast path.
9317 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
9318 with edges to the next block.
9320 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
9321 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
9323 * final.c (end_final): Use C trees to output data structures for profiling.
9325 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
9326 (profile.o): New dependency profile.h
9327 (final.o): New dependency profile.h
9328 * profile.h: New file. New global structure profile_info.
9329 * final.h (count_edges_instrumented_now): Declare.
9330 (current_function_cfg_checksum): Declare.
9331 (function_list): New structure.
9332 (functions_head, functions_tail): New static variables.
9333 (end_final): Emits more data, removed some -ax stuff.
9334 (final): Stores function names and chcksums.
9335 * gcov-io.h (__write_gcov_string): New function.
9336 (__read_gcov_string): New function.
9337 * gcov.c (read_profile): New function.
9338 (create_program_flow_graph): Uses read_profile instead of reading
9340 (read_files): Removed da_file checking, it's done by read_profile now.
9341 * libgcc2.c (bb_function_info): New structure.
9342 (bb): New field in structure, removed some -ax stuff.
9343 (__bb_exit_func): Changed structure of da_file.
9344 * profile.c (count_edges_instrumented_now): New global variable.
9345 (current_function_cfg_checksum): New global variable.
9346 (max_counter_in_program): New global variable.
9347 (get_exec_counts): New function.
9348 (compute_checksum): New function.
9349 (instrument_edges): Sets count_edges_instrumented_now.
9350 (compute_branch_probabilities): Uses get_exec_counts instead of
9352 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
9353 (init_branch_prob): Removed da_file checking, done in get_exec_counts
9355 (end_branch_prob): Removed da_file checking, done in get_exec_counts
9357 * gcov.texi: Updated information about gcov file format.
9359 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
9361 * sbitmap.c: Fix formatting.
9363 * scan-decls.c: Likewise.
9364 * sched-deps.c: Likewise.
9365 * sched-ebb.c: Likewise.
9366 * sched-rgn.c: Likewise.
9367 * sched-vis.c: Likewise.
9368 * sdbout.c: Likewise.
9369 * sibcall.c: Likewise.
9370 * simplify-rtx.c: Likewise.
9372 * ssa-ccp.c: Likewise.
9373 * ssa-dce.c: Likewise.
9375 * stor-layout.c: Likewise.
9376 * stringpool.c: Likewise.
9378 2002-05-09 David S. Miller <davem@redhat.com>
9380 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
9382 2002-05-07 David S. Miller <davem@redhat.com>
9384 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
9385 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
9386 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
9387 library implementation clobbers the output before the inputs
9388 are fully consumed, use stack temporary for the output.
9390 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
9392 * config/netbsd.h (CPP_SPEC): Remove.
9393 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
9394 * config/i386/netbsd.h (CPP_SPEC): Define.
9395 * config/ns32k/netbsd.h (CPP_SPEC): Define.
9396 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
9397 * config/sparc/netbsd.h (CPP_SPEC): Define.
9398 * config/vax/netbsd.h (CPP_SPEC): Define.
9400 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
9402 * read-rtl.c: Fix formatting.
9404 * recog.c: Likewise.
9405 * regclass.c: Likewise.
9406 * regmove.c: Likewise.
9407 * reg-stack.c: Likewise.
9408 * reload1.c: Likewise.
9409 * reload.c: Likewise.
9410 * resource.c: Likewise.
9411 * rtlanal.c: Likewise.
9413 * rtl-error.c: Likewise.
9415 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
9417 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
9418 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
9420 2002-05-08 Bernd Schmidt <bernds@redhat.com>
9422 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
9423 use __SSE2__ macro instead.
9424 * config/i386/xmmintrin.h: Likewise.
9426 2002-05-08 Janis Johnson <janis187@us.ibm.com>
9428 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
9429 and use it in all invocations of these macros. Clean up comments.
9430 * rtl.c (rtl_check_failed_flag): Add an argument for the name
9431 of the flag access macro whose check failed.
9432 * doc/rtl.texi (Flags): Document additional flag uses.
9434 2002-05-08 Robert Spier <rspier@pobox.com>
9435 Neil Booth <neil@daikokuya.demon.co.uk>
9437 PR preprocessor/6521
9438 * cppfiles.c (handle_missing_header): Don't do anything
9439 different for <> includes.
9441 * cppopts.texi: Update documentation for -MG.
9443 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
9445 * cpplex.c (cpp_interpret_charconst): Truncate as well as
9448 * cpp.texi: Clarify multichar charconst valuation.
9450 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9452 * doc/invoke.texi: Document -mwindiss option.
9454 2002-05-08 Jason Merrill <jason@redhat.com>
9456 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
9458 * dwarf2out.c (gen_type_die): Abort on broken recursion.
9461 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
9464 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
9466 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
9467 little-endian multilibs to override arm/thumb multilibs.
9468 Do not build hardware floating point multilibs, nor apcs-26
9469 multilibs for the Thumb.
9471 2002-05-08 Mark Mitchell <mark@codesourcery.com>
9474 * varasm.c (mark_weak): New function.
9475 (merge_weak): Use it. Do not call declare_weak.
9476 (declare_weak): Use merge_weak.
9478 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9480 * cse.c (dead_libcall_p): Update counts.
9481 (delete_trivially_dead_insns): Update call of dead_libcall_p.
9483 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9485 * cfglayout.c (function_tail_eff_head): Rename to ...
9486 (function_footer): ... this one.
9487 (unlink_insn_chain): New functions.
9488 (label_for_bb): Only call block_label and emit debug message.
9489 (record_effective_endpoints): Actually unlink the headers and footers.
9490 (fixup_reorder_cahin): Re-insert the unlinked sequences.
9491 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
9492 * cfglayout.h (struct reorder_block_def): New fields footer/header;
9493 remove eff_head/eff_end.
9494 * rtl.h (set_first_insn): Declare.
9495 * emit-rtl.c (set_first_insn): New function.
9497 * cfglayout.c (fixup_reorder_chain): Dump duplicated
9498 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9499 cfg_layout_duplicate_bb): New global function.
9500 (duplicate_insn_chain): New static function.
9501 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
9502 cfg_layout_duplicate_bb): Declare.
9503 (struct reorder_block_def): Add "original" field.
9504 * emit-rtl.c (emit_copy_of_insn_after): New function.
9505 * rtl.h (emit_copy_of_insn_after): Declare.
9507 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
9508 (fixup_reorder_chain): properly handle edges to exit block.
9510 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9511 Jan Hubicka <jh@suse.cz>
9513 * basic-block.h (note_prediction_to_br_prob): declare.
9514 * c-semantics.c: Inlucde predit.h
9515 (expand_stmt): predict GOTO_STMT as not taken.
9516 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
9517 (cleanup_cfg): Do not free tail_recursion_list.
9518 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
9519 (flow_delete_block): Kill predictions past end of basic block.
9520 * output.h (delete_unreachable_blocks): Declare.
9521 * predict.c (predicted_by_p, process_note_predictions,
9522 process_note_prediction, last_block_p): New function.
9523 (estimate_probability): Bypass loop on PRED_CONTINUE;
9524 do not handle noreturn heuristics; kill PRED_RETURN; add
9526 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
9527 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
9528 * predict.h (IS_TAKEN): New constant.
9529 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
9530 * rtl.c (NOTE_INSN_PREDICTION): New.
9531 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
9533 (insn_note): add NOTE_INSN_PREDICTION.
9534 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
9535 CFG; free tail_recursion_label_list.
9536 * stmt.c: Include predict.h;
9537 (return_prediction): New.
9538 (expand_value_return): Use it.
9539 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
9541 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
9543 * config/mips/mips.md: Name the unspecs with define_constant.
9544 (*HILO_delay): Rename to 'hilo_delay' (no star).
9545 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
9546 (reload_outdi, reload_outsi): Likewise.
9548 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
9550 * toplev.c: Fix formatting.
9552 2002-05-07 Janis Johnson <janis187@us.ibm.com>
9554 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
9555 * configure.in (ac_rtlflag_checking): New.
9556 * doc/install.texi (--enable-checking): Document RTL flag checking.
9558 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9560 * c-common.c (c_common_init): Set options->unsigned_wchar.
9561 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
9562 group target dependencies.
9563 (init_builtins, cpp_handle_option): Update.
9564 * cpplex.c (cpp_interpret_charconst): Update.
9565 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
9566 signed_char to unsigned_char, group target dependencies.
9567 * defaults.h (WCHAR_UNSIGNED): Remove.
9568 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
9570 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
9571 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
9572 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
9573 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
9574 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
9576 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
9578 2002-05-07 Mark Mitchell <mark@codesourcery.com>
9580 * fixinc/inclhack.def (windiss_math1): New fix.
9581 (windiss_math2): Likewise.
9582 (windiss_valist): Likewise.
9583 * fixinc/fixincl.x: Regenerated.
9585 2002-05-07 Andreas Jaeger <aj@suse.de>
9587 * genautomata.c (output_internal_min_issue_delay_func): Add
9588 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
9589 (output_internal_trans_func): Likewise.
9591 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
9593 * pa.c (hppa_profile_hook): Use force_reg to get the address
9594 of the profile hook into an appropriate pseudo register.
9596 2002-05-07 Mark Mitchell <mark@codesourcery.com>
9598 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
9599 (LINK_START_SPEC): Handle it.
9600 (LINK_OS_SPEC): Likewise.
9601 (CPP_SPEC): Likewise.
9602 (STARTFILE_SPEC): Likewise.
9603 (LIB_SPEC): Likewise.
9604 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
9606 (CRTSAVRES_DEFAULT_SPEC): New macro.
9607 (LIB_WINDISS_SPEC): New macro.
9608 (CPP_OS_WINDISS_SPEC): Likewise.
9609 (STARTFILE_WINDISS_SPEC): Likewise.
9610 (ENDFILE_WINDISS_SPEC): Likewise.
9611 (LINK_START_WINDISS_SPEC): Likewise.
9612 (LINK_OS_WINDISS_SPEC): Likewise.
9613 * config/rs6000/windiss.h: New file.
9615 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
9617 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9619 2002-05-06 David S. Miller <davem@redhat.com>
9621 * config/sparc/sparc.md (shift insns): Do not mask off
9622 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9625 2002-05-06 Richard Henderson <rth@redhat.com>
9628 * expr.c (highest_pow2_factor_for_type): New.
9629 (expand_assignment): Use it.
9631 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
9633 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
9635 ("altivec_mfvscr"): Same.
9637 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9639 * rtl.h (struct rtx_def): Update comments.
9640 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
9641 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
9642 RTL_FLAG_CHECK macros with list of expected RTL codes.
9643 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
9644 (rtl_check_failed_flag): New.
9645 * reload1.c (reload): Use REG macro before changing rtx to MEM.
9646 (reload_cse_noop_set_p): Check rtx code before using access macro.
9647 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
9648 before using access macro.
9650 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9652 * doc/rtl.texi (Flags): Update to reflect current usage.
9654 2002-05-06 Roger Sayle <roger@eyesopen.com>
9657 * fold-const.c (sign_bit_p): New function.
9658 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
9659 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
9660 Reapply fold when converting (A & C) == C into (A & C) != 0.
9661 (fold_binary_op_with_conditional_arg): Fix typo in comment.
9663 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9665 * c-common.c (warn_multichar): New.
9666 (c_common_init): Set CPP's warn_multichar.
9667 * c-common.h (warn_multichar): New.
9668 * c-decl.c (warn_multichar): Remove.
9669 * c-lex.c (lex_charconst): Update.
9670 * c-tree.h (warn_multichar): Remove.
9671 * cppexp.c (eval_token): Sign-extend charconst value.
9672 * cppinit.c (cpp_create_reader): Set warn_multichar.
9673 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
9674 each character. Update prototype. Sign-extend the result.
9675 * cpplib.h: Fix conditions.
9676 (struct cpp_options): Add new warning flag.
9677 (cpp_interpret_charconst): Update prototype.
9679 * cpp.texi: Update documentation.
9681 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
9683 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
9684 Fix typo in usage of allof instead of unit.
9686 2002-05-06 Richard Henderson <rth@redhat.com>
9688 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
9689 and any jump or call for IN.
9691 2002-05-06 Bernd Schmidt <bernds@redhat.com>
9693 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
9695 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
9697 2002-05-06 Roger Sayle <roger@eyesopen.com>
9699 * fold-const.c (lshift-double): Cast the high word to an unsigned
9700 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
9701 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
9702 avoid compiler warning. (fold): Remove redundant code from
9703 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
9705 2002-05-06 Jeff Law <law@redhat.com>
9707 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
9708 * pa.c (pa_adjust_cost): Remove all true dependency cost
9709 adjustments. Also remove support for non-DFA scheduling.
9710 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
9711 to adjust true dependency costs. Update various comments.
9712 (7100lc, 7200, 7300 scheduling): Simplify by combining the
9713 FP ALU & MPY units into a single unit.
9715 2002-05-06 Catherine Moore <clm@redhat.com>
9717 * config/v850/v850.c (compute_register_save_size): Make sure
9718 to count all of the registers that will be saved.
9720 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9722 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
9724 2002-05-06 David S. Miller <davem@redhat.com>
9726 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
9727 allow result to overlap input operands in memory.
9729 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9732 * cpp.texi: Update multichar charconst docs.
9734 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9736 * cpplex.c (cpp_interpret_charconst): Sign-extend each
9737 character. Don't ignore excess characters. Treat
9738 multicharacter character constants as signed.
9739 (cpp_parse_escape): Clarify diagnostic.
9741 2002-05-05 Jakub Jelinek <jakub@redhat.com>
9743 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
9744 use add instead of shift.
9745 (ashldi3_sp64): Likewise.
9746 (ashlsi3_const1, ashldi3_const1): Remove.
9747 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
9748 * config/sparc/sparc.c (const1_operand): New.
9750 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
9752 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
9754 2002-05-05 Jakub Jelinek <jakub@redhat.com>
9757 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
9759 2002-05-05 Richard Henderson <rth@redhat.com>
9761 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
9762 memory latency adjustments.
9763 (alpha_variable_issue): Remove.
9764 (alpha_use_dfa_pipeline_interface): New.
9765 (alpha_multipass_dfa_lookahead): New.
9766 * config/alpha/alpha.md: Remove define_function_unit scheduling;
9767 include new dfa scheduling.
9768 (attr type): Add none.
9770 * config/alpha/ev4.md: New.
9771 * config/alpha/ev5.md: New.
9772 * config/alpha/ev6.md: New.
9774 2002-05-05 David S. Miller <davem@redhat.com>
9776 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
9778 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
9780 * cse.c: Fix formatting.
9781 * emit-rtl.c: Likewise.
9783 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9785 * genautomata.c (initiate_states): Add additional guard to
9786 initialize `units_array'.
9788 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9790 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
9791 process_unit_to_form_the_same_automaton_unit_lists,
9792 form_the_same_automaton_unit_lists
9793 check_unit_distributions_to_automata): New prototypes and
9795 (check_automata): Rename it into `check_automata_insn_issues'.
9796 (unit_decl): New fields `the_same_automaton_unit' and
9797 `the_same_automaton_message_reported_p'.
9798 (unit_decl_t): New typedef.
9799 (the_same_automaton_lists): New gloval variable.
9800 (unit_regexp, unit_set_el, units_array, units_cmp,
9801 output_get_cpu_unit_code_func): Use the typedef.
9802 (evaluate_max_reserv_cycles): Increment
9803 `description->max_insn_reserv_cycles'.
9804 (initiate_states): Don't increment `max_cycles_num'.
9805 (transform_insn_regexps): Move code around transformation of
9806 regexps from `generate'.
9807 (generate): Remove call of `transform_insn_regexps'.
9808 (expand_automata): Call `transform_insn_regexps' and
9809 `check_unit_distributions_to_automata'. Check errors before
9812 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
9813 automaton `ultrasparc3_1'.
9815 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
9817 * c-common.c (c_common_init): Set up CPP arithmetic.
9818 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
9819 something reasonable for the host.
9820 (sanity_checks): Add checks.
9821 (cpp_read_main_file): Call sanity_checks() from here...
9822 (cpp_post_options): ... not here.
9823 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
9824 * cpplib.h (struct cpp_options): New member int_precision.
9826 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9828 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
9830 2002-05-04 David S. Miller <davem@redhat.com>
9832 * config/sparc/linux.h, config/sparc/linux64.h
9833 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
9835 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
9837 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
9839 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
9842 2002-05-05 Tim Josling <tej@melbpc.org.au>
9844 * treelang; New directory for new sample language treelang.
9846 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9848 * Makefile.in (c-lex.o): Update.
9849 * c-lex.c: Include target.h.
9850 (cb_register_builtins): New.
9851 (init_c_lex): Set builtins callback.
9852 * c-lex.h (cpp_define, cpp_assert): New prototypes.
9853 * cppinit.c (init_builtins): Use callback, including for
9855 * cpplib.h (struct cpp_callbacks): New member.
9856 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
9857 (TARGET_INITIALIZER): Update.
9858 * target.h (struct gcc_target): New hook.
9859 * tree.c (default_register_cpp_builtins): New.
9860 * tree.h (default_register_cpp_builtins): New.
9862 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
9864 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9866 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
9867 (cpp_post_options): Move sanity checks to...
9868 (sanity_checks): New.
9869 * cpplex.c (maybe_read_ucs): Fix prototype.
9870 (parse_string, cpp_parse_escape): Cast for %c format specifier.
9871 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
9874 2002-05-04 Bernd Schmidt <bernds@redhat.com>
9876 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
9877 builtins. Use V2DI patterns instead of TI for logical operations.
9878 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
9879 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
9880 (ix86_expand_builtins): Change the pattern used for movntdq.
9881 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
9882 sse2_nandv2di3): New patterns.
9883 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
9885 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
9886 (cvtdq2pd): Correct mode on operand 1.
9887 (sse2_umulsidi3): Describe without unspec.
9888 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
9890 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
9891 (ashlv2di3): Likewise, from sse2_ashlv2di3.
9892 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
9893 ashlv4si3, ashlv2di3): Use SImode for shift count.
9894 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
9895 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
9897 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
9899 (__m128i, __m128d): New macros.
9900 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
9901 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
9902 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
9903 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
9904 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
9905 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
9906 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
9907 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
9908 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
9909 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
9910 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
9911 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
9912 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
9913 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
9914 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
9915 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
9916 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
9917 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
9918 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
9919 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
9920 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
9921 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
9922 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
9923 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
9924 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
9925 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
9926 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
9927 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
9928 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
9929 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
9930 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
9931 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
9932 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
9933 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
9934 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
9935 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
9936 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
9938 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
9939 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
9941 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
9943 * dwarf2out.c: Fix formatting.
9944 * varasm.c: Likewise.
9946 2002-05-04 David Edelsohn <edelsohn@gnu.org>
9949 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
9950 clobber and use result as temporary value.
9952 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9954 * expr.c (force_operand): Use expand_simple_* to handle more
9957 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9959 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
9961 (lex_charconst): Update for change in prototype of
9962 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
9964 * cpphash.h (BITS_PER_CPPCHAR_T): New.
9965 * cppinit.c (cpp_create_reader): Initialize them for no
9966 change in semantics.
9967 (cpp_post_options): Add sanity checks.
9968 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
9969 and truncation issues. Calculate in type cppchar_t.
9970 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
9971 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
9972 run-time dependent precision correctly. Return whether the
9973 result is signed or not.
9974 * cpplib.c (dequote_string): Use cppchar_t; update.
9975 * cpplib.h (cppchar_signed_t): New.
9976 struct cpp_options): New precision members.
9977 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
9978 * cppexp.c (eval_token): Update.
9980 2002-05-03 David S. Miller <davem@redhat.com>
9982 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
9983 * config/sparc/sparc.c (sparc_rtx_costs): New function
9984 implementing RTX_COSTS and CONST_COSTS.
9985 * config/sparc/sparc.h (CONST_COSTS): Delete.
9986 (RTX_COSTS_CASES): Define.
9987 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
9990 * config/sparc/sparc.md (DFA schedulers): Split out...
9991 * config/sparc/cypress.md, config/sparc/hypersparc.md,
9992 config/sparc/sparclet.md, config/sparc/supersparc.md,
9993 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
9995 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
9996 checks on it, always defined for Sparc.
9998 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
9999 Tweak, and add more detailed comments.
10001 2002-05-03 Zack Weinberg <zack@codesourcery.com>
10003 * Re-apply patch accidentally reverted with
10004 DFA scheduler merge: remove all rules and variables to slurp
10005 source files out of libiberty and rebuild them with HOST_CC.
10006 ($(HOST_PREFIX_1)varray.o): New rule.
10007 (genattrtab rule): Word wrap.
10009 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10011 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
10012 (CPP_SUBTARGET_SPEC): Define.
10013 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
10014 cpp_subtarget specs.
10015 (CPP_SPEC): Redefine to include %(cpp_subtarget).
10017 2002-05-03 David S. Miller <davem@redhat.com>
10019 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
10020 * target.h (struct gcc_target): Delete cycle_display member.
10022 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
10023 (rtx_needs_barrier): Delete reference to cycle_display unspec.
10024 (ia64_sched_reorder2): Mention need for cycle display handling
10025 once such notes exist.
10027 2002-05-03 Richard Henderson <rth@redhat.com>
10029 * real.c (etoasc): Strip most trailing zeros for clarity.
10030 * sched-vis.c: Include real.h.
10031 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
10032 * Makefile.in (sched-vis.o): Add real.h.
10034 2002-05-03 David S. Miller <davem@redhat.com>
10036 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
10039 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
10041 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
10042 when we get an out of range literal.
10043 (altivec_expand_ternop_builtin): Same.
10044 (altivec_expand_unop_builtin): Same.
10045 (altivec_expand_builtin): Same, for dss.
10046 (altivec_expand_builtin): Use trees instead of rtl when
10047 determining literal argument validity.
10049 2002-05-03 David S. Miller <davem@redhat.com>
10051 Delete cycle display scheduling hook.
10052 * config/ia64/ia64.c (ia64_cycle_display,
10053 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
10054 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
10055 and use emit_insn_before instead of ia64_emit_insn_before.
10056 * config/ia64/ia64.md (unspec usage): Delete cycle display.
10057 (cycle_display): Delete insn pattern.
10058 * config/sparc/sparc.md (unspec usage): Delete cycle display.
10059 (cycle_display): Delete insn pattern.
10060 * config/sparc/sparc.c (sparc_cycle_display,
10061 TARGET_SCHED_CYCLE_DISPLAY): Delete.
10062 * doc/md.texi (cycle_display): Don't mention.
10063 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
10065 2002-05-03 Richard Henderson <rth@redhat.com>
10067 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
10068 * recog.h: Declare them.
10070 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
10071 * config/sparc/sparc.md: Use store_data_bypass_p instead.
10072 * config/sparc/sparc-protos.h: Update.
10074 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10076 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
10077 -D__arch64__. Add -D_LP64.
10078 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
10080 (CPP_ARCH64_SPEC): Likewise.
10081 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
10082 (NO_BUILTIN_SIZE_TYPE): Undef.
10084 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
10086 * genautomata.c (min_issue_delay_pass_states): Change return type
10088 (min_issue_delay_pass_states): Change the algorithm.
10089 (min_issue_delay): Set up min_insn_issue_delay for the state.
10090 (output_min_issue_delay_table): Interchange the nested loops and
10091 and initiate min_insn_issue_delay for states.
10093 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
10095 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
10096 jump is simplejump.
10098 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
10100 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
10103 2002-05-03 Richard Henderson <rth@redhat.com>
10106 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
10107 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
10108 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
10109 code before JUMP, not EARLIEST.
10111 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
10113 * c-format.c (check_format_info_main): Don't check for presence of
10114 parameter for * width until after operand number has been read,
10115 and only check for it if format parameters are available.
10118 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
10120 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
10121 (LINK_SPEC): Undef before defining.
10123 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10125 PR preprocessor/6489
10126 * tradcpp.c (fixup_newlines): New.
10127 (main, finclude): Use it.
10129 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
10131 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
10132 * config/mips/mips.c (mips_unique_section): Strip encoding from
10135 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10137 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
10140 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10142 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
10143 (Specific): Removed buildstats references.
10144 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
10145 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
10146 Accomodate Solaris versions beyond 8.
10147 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
10148 (Specific, *-*-solaris2.8): Removed, obsolete.
10150 2002-05-03 Jakub Jelinek <jakub@redhat.com>
10153 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
10154 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
10155 fill leaf_reg_remap with identity.
10156 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
10158 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10160 * config/h8300/crti.asm: Remove trailing spaces.
10161 * config/h8300/h8300.c: Likewise.
10162 * config/h8300/lib1funcs.asm: Likewise.
10164 2002-05-02 Jason Merrill <jason@redhat.com>
10166 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
10167 * c-decl.c (c_init_decl_processing): Use it.
10168 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
10169 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
10170 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
10172 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
10174 * regrename.c: Fix formatting.
10175 * tree.c: Likewise.
10177 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
10179 * i386.md (attribute memory): Handle compares properly.
10181 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
10183 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
10186 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
10188 * function.c: Fix formatting.
10190 2002-05-02 Jan Hubicka <jh@suse.cz>
10192 * haifa-sched.c (schedule_insn): Print table of instructions and
10194 (sched_block): Do not print ready list at verbosity level 1.
10195 * sched-vis.c (print_insn): Make global.
10196 * sched-ebb.c (ebb_print_insn): Rename from...
10197 (print_insn): ... this one.
10198 * sched-int.h (print_insn): Declare
10200 2002-05-02 Richard Henderson <rth@redhat.com>
10202 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
10203 emitted by cycle_display.
10205 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
10207 * doc/install.texi (*-*-freebsd*): Update to latest status.
10209 2002-05-02 Jakub Jelinek <jakub@redhat.com>
10212 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
10213 * config/float-sparc.h: Assume 128-bit long double if
10214 __LONG_DOUBLE_128__ is defined.
10216 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
10218 * genattrtab.c (write_function_unit_info): Add a dummy element
10219 when num_units == 0.
10221 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10223 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
10224 TYPE_MODE (double_type_node) instead of DFmode.
10226 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
10228 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
10230 * toplev.c (rest_of_compilation): Revert Richard's patch.
10232 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10234 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10236 2002-05-02 Catherine Moore <clm@redhat.com>
10238 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
10240 2002-05-02 Kazu Hirata <kazu@hxi.com>
10242 * combine.c: Fix comment typos.
10243 * expr.c: Likewise.
10244 * genautomata.c: Likewise.
10245 * stmt.c: Likewise.
10246 * tree.h: Likewise.
10248 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
10250 * doc/install.texi: State GNAT version requirements.
10252 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
10254 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
10255 of the frame pointer or arg pointer register which strict register
10256 checking is not enabled.
10258 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
10260 * gcc.dg/altivec-8.c: New.
10262 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
10263 PRE_INC and PRE_DEC for altivec modes.
10265 2002-05-01 Bruce Korb <bkorb@gnu.org>
10267 * fixinc/check.tpl(set-writable): make sure the function exists first
10268 * fixinc/inclhack.def(alpha_assert): fix test_text
10269 * fixinc/tests/base/assert.h: add in missing result
10271 2002-05-01 Jeff Law <law@redhat.com>
10273 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
10276 2002-05-01 Joel Brobecker <brobecker@gnat.com>
10278 * dbxout.c (dbxout_type): Emit size information for range types,
10279 as well, but only when using GDB extensions.
10281 2002-05-01 Richard Henderson <rth@redhat.com>
10283 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
10284 target-independent gnu binutils date test.
10286 2002-05-01 Richard Henderson <rth@redhat.com>
10288 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
10289 info before expunging the block.
10291 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10293 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
10294 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
10295 -M -or -MM is in effect.
10297 2002-05-01 Zack Weinberg <zack@codesourcery.com>
10299 * config.gcc: Correct test of --enable-obsolete. Obsolete all
10300 A29k configurations.
10301 * doc/install.texi: Update to match.
10303 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10306 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
10307 for duplicates. Always loop over whole list.
10309 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10311 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
10313 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10315 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
10318 2002-05-01 Joel Sherrill <joel@OARcorp.com>
10320 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
10322 2002-05-01 David Edelsohn <edelsohn@gnu.org>
10324 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
10325 (nabs_nopower): Same.
10326 (floatdisf2): New pattern.
10327 (absdi2): Convert to define_insn_and_split.
10329 (trunctfsf2): Same.
10330 (floatditf2): Same.
10331 (floatsitf2): Same.
10332 (fix_trunctfdi2): Same.
10333 (fix_trunctfsi2): Same.
10335 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
10337 * doc/install.texi: Update Texinfo version requirement
10340 2002-05-01 Jakub Jelinek <jakub@redhat.com>
10342 PR target/6512, PR target/5628
10343 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
10344 when memory is not aligned.
10345 (movdf_insn_v9only_vis): Likewise.
10346 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
10347 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
10348 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
10350 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
10352 * gcc.dg/altivec-7.c: New.
10354 * config/rs6000/altivec.h: Cleanup.
10356 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
10358 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10359 (RS/6000 and PowerPC Options): Document -mvrsave=.
10361 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
10362 (rs6000_altivec_vrsave_string): Same.
10363 (rs6000_override_options): Call rs6000_parse_vrsave_option.
10364 (rs6000_parse_vrsave_option): New.
10365 (rs6000_stack_info): Only generate vrsave instructions when
10366 TARGET_ALTIVEC_VRSAVE.
10368 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
10369 (rs6000_altivec_vrsave_string): Define extern.
10370 (rs6000_altivec_vrsave): Same.
10371 (TARGET_ALTIVEC_VRSAVE): New.
10373 2002-04-30 Richard Henderson <rth@redhat.com>
10376 * toplev.c (rest_of_compilation): Don't run cross-jump before
10379 2002-04-30 Tom Rix <trix@redhat.com>
10381 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
10382 check which_alternative.
10384 2002-04-30 Kazu Hirata <kazu@hxi.com>
10386 * cpplex.c: Fix comment formatting.
10387 * function.c: Likewise.
10388 * integrate.c: Likewise.
10389 * regrename.c: Likewise.
10390 * sibcall.c: Likewise.
10391 * simplify-rtx.c: Likewise.
10392 * tree-inline.c: Likewise.
10394 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
10396 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
10397 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
10398 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
10399 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
10400 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
10401 * pa/x-ada: New file. Define ADA_CFLAGS.
10403 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
10405 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
10406 from MMIX_LAST_REGISTER_FILE_REGNUM.
10407 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
10408 (struct machine_function): New member highest_saved_stack_register
10409 previously static variable in mmix.c.
10410 (MACHINE_DEPENDENT_REORG): Define.
10411 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
10412 (MMIX_OUTPUT_REGNO): New.
10413 (mmix_target_asm_function_prologue): Move calculation of last used
10414 saved-stack-register into...
10415 (mmix_machine_dependent_reorg): New function. Update to also handle
10417 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
10418 register names, simplify somewhat by new variable regno.
10419 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
10421 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
10422 emitting register names.
10423 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
10424 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
10425 Remove fixed FIXME.
10426 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
10429 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
10431 2002-04-30 Richard Henderson <rth@redhat.com>
10433 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
10434 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
10435 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
10436 emit_tfmode_cvt): New.
10437 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
10438 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
10439 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
10440 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
10441 * config/sparc/sparc-protos.h: Update.
10443 2002-04-30 Janis Johnson <janis187@us.ibm.com>
10445 * install.texi (Final install): Add to the list of info to include
10446 in a report of a successful bootstrap, and add link to 3.1 list.
10448 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
10450 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
10451 (mode): Add vector modes
10452 (i387): Kill attribute.
10453 (unit): New attribute.
10454 (length_immediate): Grok new types.
10455 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
10456 (modrm): Use "unit".
10457 (memory): Handle MMX/SSE properly.
10458 (scheduling descriptions): Kill uses of fop1.
10459 (sse, mmx, fp patterns): Set type and mode properly.
10461 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
10463 * pa.c (override_options): Default to PA8000 scheduling.
10464 * doc/invoke.texi (HP-PA options): Mention newly added 7300
10465 scheduling parameter.
10467 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
10468 handling of double precision multiplies.
10470 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
10471 fpdiv and fpsqrt instructions.
10472 (7200 & 7300 scheduling): Fix typo in handling of
10473 store-load and store-store penalties.
10475 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10477 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
10478 mips. Add two missing commas.
10480 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
10482 * doc/contrib.texi (Contributors): Update Paolo Carlini's
10483 and Benjamin Kosnik's entries.
10485 2002-04-29 David S. Miller <davem@redhat.com>
10487 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
10488 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
10489 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
10490 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10492 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10494 * combine.c (find_split_point): Use gen_int_mode.
10496 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
10498 Merging code from dfa-branch:
10500 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
10502 * genautomata.c (output_reserv_sets): Fix typo.
10504 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
10506 * genautomata.c (output_reserv_sets): Remove
10507 next_cycle_output_flag.
10509 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
10511 * sched-rgn.c (init_ready_list): Make the DFA code handle
10512 USE/CLOBBER insns in the same way as the traditional
10514 (new_ready): Similarly..
10516 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
10518 * haifa-sched.c (schedule_block): Change the DFA state only after
10521 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
10523 * pa.c (hppa_use_dfa_pipeline_interface): New function.
10524 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
10525 (override_options): Add PA7300 scheduling support.
10526 (pa_adjust_cost): Update various comments. Properly
10527 handle anti and output dependencies when using the
10529 (pa_issue_rate): Add PA7300 scheduling support.
10530 (pa_can_combine_p): Call extract_insn before calling
10531 constrain_operands (taken from mainline tree).
10532 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
10533 * pa.md (cpu attr): Add 7300. Rewrite pipeline
10534 descriptions using DFA descriptions. Add PA7300
10535 scheduling support.
10537 2002-03-30 David S. Miller <davem@redhat.com>
10539 Add UltraSPARC-III DFA scheduling support.
10540 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
10541 Update FP conditional move on register insn patterns to use it, as
10543 (define_attr cpu): Add ultrasparc3.
10544 (define_attr us3load_type): New, update integer load patterns to
10545 set it, as appropriate.
10546 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
10547 (rest): Add UltraSPARC3 scheduling description.
10548 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
10549 (PROCESSOR_ULTRASPARC3): New.
10550 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
10551 ({ASM,CPP}_CPU_SPEC): Likewise.
10552 (REGISTER_MOVE_COST): Likewise.
10553 (RTX_COSTS): Likewise.
10554 * config/sparc/sparc.c (sparc_override_options,
10555 sparc_initialize_trampoline, sparc64_initialize_trampoline,
10556 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10557 sparc_issue_rate): Likewise.
10558 * config/sparc/sol2.h: Likewise.
10559 * config/sparc/sol2-sld-64.h: Likewise.
10560 * config/sparc/linux64.h: Likewise.
10562 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
10564 * doc/md.texi: Add comments about usage the latency time for the
10565 different dependencies and about case when two or more conditions
10566 in different define_insn_reservations returns TRUE for an insn.
10568 * doc/md.texi: Add reference for automaton based pipeline
10571 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
10573 * doc/passes.texi: Add missed information about genattrtab.
10575 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
10577 * genautomata.c (output_automata_list_transition_code): Check
10578 automata_list on NULL.
10580 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
10582 * genautomata.c (output_insn_code_cases,
10583 output_automata_list_min_issue_delay_code,
10584 output_automata_list_transition_code,
10585 output_automata_list_state_alts_code): Comment the functions.
10587 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
10589 * genautomata.c (automata_list_el_t): New typedef.
10590 (get_free_automata_list_el,free_automata_list_el,
10591 free_automata_list, automata_list_hash, automata_list_eq_p,
10592 initiate_automata_lists, automata_list_start, automata_list_add,
10593 automata_list_finish, finish_automata_lists,
10594 output_insn_code_cases, output_automata_list_min_issue_delay_code,
10595 output_automata_list_transition_code,
10596 output_automata_list_state_alts_code, add_automaton_state,
10597 form_important_insn_automata_lists): New functions and prototypes.
10598 (insn_reserv_decl): Add members important_automata_list and
10600 (ainsn): Add members important_p.
10601 (automata_list_el): New structure.
10602 (first_free_automata_list_el, current_automata_list,
10603 automata_list_table): New global variables.
10604 (create_ainsns): Initiate member important_p.
10605 (output_internal_min_issue_delay_func): Generate the switch and
10606 call output_insn_code_cases.
10607 (output_internal_trans_func, output_internal_state_alts_func):
10609 (generate): Call initiate_automata_lists.
10610 (automaton_states): New global variable.
10611 (expand_automata): Call form_important_insn_automata_lists.
10612 (write_automata): Call finish_automata_lists.
10614 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
10616 * genautomata.c (add_excls, add_presence_absence): Check that
10617 cpu units in the sets belong the same automaton.
10619 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10620 about that cpu units in the sets belong the same automaton.
10622 * doc/md.texi: Ditto.
10624 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
10625 Nitin Gupta <niting@noida.hcltech.com>
10627 * config/sh/sh.c (sh_use_dfa_interface): New function.
10629 (sh_issue_rate): New Function.
10630 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10631 TARGET_SCHED_ISSUE_RATE: define.
10633 * config/sh/sh.md: Add DFA based pipeline description for SH4.
10635 (define_attr insn_class): New attribute used for DFA
10637 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
10638 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
10639 cmpeqdi_t): Likewise.
10641 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
10642 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
10644 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
10646 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10648 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
10651 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10653 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
10654 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
10656 (output_dfa_start_func): Initiate new variable insn_codes_length,
10657 (write_automata): Output definition of the new variable.
10659 2001-10-02 David S. Miller <davem@redhat.com>
10661 * haifa-sched.c (advance_one_cycle): New function.
10662 (schedule_block): Use it.
10663 (queue_to_ready): Use it, and also make sure to advance the DFA
10664 state on all stall cycles, not just those where insn_queue links
10667 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
10669 * haifa-sched.c (max_issue): Remove last_p argument. Only return
10670 non-zero if the highest-priority instruction could be scheduled.
10671 (choose_ready): Remove last argument from max_issue call.
10673 2001-09-28 David S. Miller <davem@redhat.com>
10675 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
10676 ultrasparc and 3 for other multi-issue sparcs.
10678 2001-09-27 David S. Miller <davem@redhat.com>
10680 * config/sparc/sparc.md (cycle_display): New pattern.
10681 * config/sparc/sparc.c (sparc_cycle_display): New.
10682 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
10684 2001-09-25 David S. Miller <davem@redhat.com>
10686 Convert all of Sparc scheduling to DFA
10687 * config/sparc/sparc.md: Kill all define_function_unit
10688 directives and replace with DFA equivalent.
10689 * config/sparc/sparc.c (ultrasparc_adjust_cost,
10690 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
10691 ultra_fpmode_conflict_exists, ultra_find_type,
10692 ultra_build_types_avail, ultra_flush_pipeline,
10693 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
10694 ultrasparc_variable_issue, ultrasparc_sched_init,
10695 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
10696 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
10697 ultra_cur_hist, ultra_cycles_elapsed): Kill.
10698 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10699 ultrasparc_store_bypass_p): New.
10700 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
10703 2001-09-24 David S. Miller <davem@redhat.com>
10705 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
10706 ready->vec[foo] not ready[foo].
10708 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10710 * doc/md.texi: Correct examples for define_insn_reservations
10713 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10715 * genautomata.c (create_automata): Print message about creation of
10717 (generate): Remove printing meease about creation of
10720 2001-09-05 David S. Miller <davem@redhat.com>
10722 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
10723 * config/sparc/linux64.h: Likewise.
10725 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
10727 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
10728 schedule_block, sched_init, sched_finish): Add missed calls of
10729 use_dfa_pipeline_interface.
10731 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
10734 * sched-vis.c (get_visual_tbl_length): Ditto.
10736 2001-08-27 Richard Henderson <rth@redhat.com>
10738 * genattr.c (main): Emit state_t even when not doing scheduling.
10740 2001-08-27 Richard Henderson <rth@redhat.com>
10742 * genautomata.c (expand_automata): Always create a description.
10744 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
10746 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10747 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10748 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10751 * genattr.c (main): New variable num_insn_reservations. Increase
10752 it if there is DEFINE_INSN_RESERVATION. Output automaton based
10753 pipeline hazard recognizer interface.
10755 * genattrtab.h: New file.
10757 * genattrtab.c: Include genattrtab.h.
10758 (attr_printf, check_attr_test, make_internal_attr,
10759 make_numeric_value): Move protypes into genattrtab.h. Define them
10761 (num_dfa_decls): New global variable.
10762 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10763 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10764 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10765 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
10767 * genautomata.c: New file.
10769 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10771 * sched-int.h: (curr_state): Add the external definition for
10772 automaton pipeline interface.
10773 (haifa_insn_data): Add comments for members blockage and units.
10775 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10776 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10777 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10778 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10779 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10780 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10781 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10783 (TARGET_SCHED): Use the new macros.
10785 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10786 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10787 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10788 dfa_bubble): New members in gcc_target.sched.
10790 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10791 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10792 (insn_queue): Redefine it as pointer to array.
10793 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10795 (max_insn_queue_index_macro_value): New variable.
10796 (curr_state, dfa_state_size, ready_try): New varaibles for
10797 automaton interface.
10798 (ready_element, ready_remove, max_issue): New function prototypes
10799 for automaton interface.
10800 (choose_ready): New function prototype.
10801 (insn_unit, blockage_range): Add comments.
10802 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10803 FUNCTION_UNITS_SIZE == 0.
10804 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10805 actual_hazard, potential_hazard): Add comments.
10806 (insn_cost): Use cost -1 as undefined value. Remove
10807 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
10808 pipeline interface.
10809 (ready_element, ready_remove): New functions for automaton
10811 (schedule_insn): Add new code for automaton pipeline interface.
10812 (queue_to_ready): Add new code for automaton pipeline interface.
10813 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10814 (debug_ready_list): Print newline when the queue is empty.
10815 (max_issue): New function for automaton pipeline interface.
10816 (choose_ready): New function.
10817 (schedule_block): Add new code for automaton pipeline interface.
10818 Print ready list before scheduling each insn.
10819 (sched_init): Add new code for automaton pipeline interface.
10820 Initiate insn cost by -1.
10821 (sched_finish): Free the current automaton state and finalize
10822 automaton pipeline interface.
10824 * sched-rgn.c: Include target.h.
10825 (init_ready_list, new_ready, debug_dependencies): Add new code for
10826 automaton pipeline interface.
10828 * sched-vis.c: Include target.h.
10829 (get_visual_tbl_length): Add code for automaton interface.
10830 (target_units, print_block_visualization): Add comments.
10832 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10833 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10834 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10835 (getruntime.o, genautomata.o): New entries.
10836 (genattrtab.o): Add new dependency file genattrtab.h.
10837 (genattrtab): Add new dependencies. Link it with `libm.a'.
10838 (getruntime.o, hashtab.o): New entries for canadian cross.
10840 * doc/md.texi: Description of automaton based model.
10842 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10844 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10845 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10846 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10847 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10848 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10849 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10850 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10852 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10853 MAX_DFA_ISSUE_RATE): New macro descriptions.
10855 * doc/contrib.texi: Add dfa based scheduler contribution.
10857 * doc/gcc.texi: Add more information about genattrtab.
10859 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10861 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
10862 adjust_address_nv call.
10864 2002-04-29 Janis Johnson <janis187@us.ibm.com>
10866 * doc/install.texi (Testing): Provide additional information, and
10867 a stronger encouragement, for running the testsuites.
10869 2002-04-29 DJ Delorie <dj@redhat.com>
10871 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
10872 given in upper case.
10874 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10876 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
10877 Solaris 2 <widec.h> if missing.
10878 * fixinc/fixincl.x: Regenerate.
10879 * fixinc/tests/base/widec.h: New file.
10881 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
10883 * toplev.c (f_options): Add "profile" switch so that
10884 -fno-profile can be used to disable -p.
10886 2002-04-29 Bernd Schmidt <bernds@redhat.com>
10888 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
10890 * tree.c (build_common_tree_nodes_2): Likewise.
10891 * tree.h (enum tree_index): Likewise.
10892 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
10894 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
10896 (init_mmx_sse_builtins): Initialize SSE2 builtins.
10897 (ix86_expand_builtin): Add support for SSE2 builtins.
10898 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
10899 (VALID_SSE_REG_MODE): Use it.
10900 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
10901 (enum ix86_builtins): Add SSE2 builtins.
10902 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
10903 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
10904 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
10905 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
10906 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
10907 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
10908 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
10909 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
10910 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
10911 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
10912 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
10913 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
10914 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
10915 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
10916 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
10917 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
10918 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
10919 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
10920 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
10921 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
10922 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
10923 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
10924 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
10925 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
10926 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
10927 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
10928 lfence_insn): New patterns.
10929 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
10930 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
10932 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
10934 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
10936 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10938 * doc/contrib.texi (Contributors): Add Paolo Carlini and
10940 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
10941 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
10942 and CPU instead of cpu.
10944 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
10946 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
10948 (lang_independent_options): Add -fif-conversion, -fif-conversion2
10949 (rest_of_compilation): Do if conversion only when asked for.
10950 (parse_options_and_default_flags): Set new variables to 1 for -O1
10951 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
10953 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10955 * i386.c (dbx64_register_map): Fix typo.
10957 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10959 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
10960 real_one_half, real_bb_freq_max): New static variables.
10961 (debug_profile_bbauxs): Kill.
10962 (process_note_predictions): Kill unused variable.
10963 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
10965 (propagate_freq): Use REAL_ARITHMETICS.
10966 (estimate_bb_frequencies): Likevise; init new static variables.
10967 * Makefile.in (predict.o): Add dependency on real.h
10969 2002-04-28 David S. Miller <davem@redhat.com>
10972 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
10973 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
10974 several {reads,writes} instead.
10975 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
10978 2002-04-27 David S. Miller <davem@redhat.com>
10981 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
10984 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
10985 including signal.h and sys/ucontext.h, not needed.
10987 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
10989 * varasm.c (output_constant_def): Correct test for not calling
10990 ENCODE_SECTION_INFO for INTEGER_CST.
10992 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
10994 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
10995 keep most cases as function eval_token.
10996 (eval_token): New function.
10997 (_cpp_parse_expr): Read token here for improved diagnostics.
10998 Don't use op_as_text. Detect bad ':' here.
10999 (reduce): Don't detect bad ':' here.
11000 (op_as_text): Remove.
11001 * cpphash.h (_cpp_test_assertion): Change prototype.
11002 * cpplib.c (_cpp_test_assertion): Change prototype.
11004 2002-04-28 Richard Henderson <rth@redhat.com>
11007 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
11008 (ggc_mark_rtx_children): New.
11010 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11013 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
11014 after call peepholes for UltraSPARC.
11015 (call + jump 64-bit peepholes): Remove.
11017 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11020 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
11021 result as temporary value.
11023 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11026 * toplev.c (rest_of_compilation): Only run regrename and copy
11027 propagation if optimizing.
11029 2002-04-28 Jakub Jelinek <jakub@redhat.com>
11031 PR optimization/6475
11032 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
11033 register of REGNO_DECL (i).
11034 * Makefile.in (reload1.o): Add $(TREE_H).
11036 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
11038 * cppexp.c (lex): Update to use state.skip_eval.
11039 (struct op): Remove prio and flags members.
11040 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
11041 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
11042 (LEFT_ASSOC): New macro.
11043 (optab): New table of operator priorities and flags.
11045 (_cpp_parse_expr): Clean up logic. Return bool. Use a
11046 malloc-ed parser stack.
11047 (reduce): New; reduce the operator stack.
11048 (_cpp_expand_op_stack): Expand the operator stack as necessary.
11049 * cpphash.h (struct op): Predeclare.
11050 (struct cpp_reader): New members op_stack, op_limit.
11051 (struct lexer_state): New member skip_eval.
11052 (_cpp_parse_expr): Update.
11053 (_cpp_expand_op_stack): New.
11054 * cpplib.c (do_if): Update.
11055 * cppinit.c (cpp_create_reader): Create op stack.
11056 (cpp_destroy): And destroy it.
11057 * cpplib.h (CPP_LAST_CPP_OP): Correct.
11058 (TTYPE_TABLE): Correct.
11060 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11063 * c-decl.c (duplicate_decls): Call merge_weak.
11064 * c-pragma.c (apply_pragma_weak): Warn about misuse.
11065 * output.h (merge_weak): Prototype merge_weak.
11066 * varasm.c (merge_weak): New function.
11067 (declare_weak): Make sure we don't give an error on VAR_DECLs.
11068 Mark RTL with SYMBOL_REF_WEAK.
11070 2002-04-27 Kurt Garloff <garloff@suse.de>
11072 * tree-inline.c (inlinable_function_p): Improve heuristics
11073 by using a smoother function to cut down allowable inlinable size.
11074 * param.def: Add parameters max-inline-insns-single,
11075 max-inline-slope, min-inline-insns that determine the exact
11076 shape of the above function.
11077 * param.h: Likewise.
11079 2002-04-26 Richard Henderson <rth@redhat.com>
11081 * c-parse.in (malloced_yyss, malloced_yyvs): New.
11082 (yyoverflow): Re-add. Set them.
11083 (free_parser_stacks): New.
11084 * c-common.h: Declare it.
11085 * c-lex.c (c_common_parse_file): Call it.
11087 2002-04-26 Richard Henderson <rth@redhat.com>
11089 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
11090 for fallthru search.
11092 2002-04-26 Eric Christopher <echristo@redhat.com>
11094 PR optimization/3700
11095 * config/mips/mips.c (mips_issue_rate): Define. New function.
11096 (TARGET_SCHED_ISSUE_RATE): Use.
11098 2002-04-25 David S. Miller <davem@redhat.com>
11101 * reorg.c (optimize_skip): Do not allow exception causing
11102 instructions to be considered for delay slots.
11103 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
11104 (relax_delay_slots): Do not try to consider exception causing
11105 instructions as redundant.
11107 2002-04-26 Richard Henderson <rth@redhat.com>
11110 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
11112 2002-04-26 Mark Mitchell <mark@codesourcery.com>
11115 * config/i386/i386.md (untyped_call): Return the value in a float
11116 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
11119 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
11121 * tree.c (tree_int_cst_lt): Compare constants whose types differ
11122 in unsigned-ness correctly.
11124 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11126 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
11127 portable runtime model.
11129 2002-04-26 Richard Henderson <rth@redhat.com>
11131 * c-parse.in (yyoverflow): Revert.
11133 2002-04-26 David Edelsohn <edelsohn@gnu.org>
11134 Richard Henderson <rth@redhat.com>
11136 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
11137 result as temporary value.
11139 2002-04-26 Richard Henderson <rth@redhat.com>
11142 * c-common.c (fix_string_type): Split out of ...
11143 (combine_strings): ... here. Take a varray, not a tree list.
11144 (c_expand_builtin_printf): Use fix_string_type.
11145 * c-common.h: Update decls.
11146 * c-parse.in (string): Remove. Update all uses to use STRING
11147 instead, and not call combine_strings.
11148 (yylexstring): New.
11150 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
11151 (build_asm_stmt): Likewise.
11152 * objc/objc-act.c (my_build_string): Use fix_string_type.
11153 (build_objc_string_object): Build varray for combine_strings.
11155 2002-04-26 Bo Thorsen <bo@suse.co.uk>
11157 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
11160 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
11162 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
11163 (HAVE_NO_R_OPERAND): Remove.
11164 (HAVE_VALUE): Remove.
11165 (op_to_prio): Update.
11166 (UNARY): Don't alter flags.
11167 (_cpp_parse_expr): want_value used to indicate whether
11168 a number or unary operator is expected next. Distinguish
11169 unary and binary +/-.
11170 (op_as_text): Update for unary operators.
11172 2002-04-25 Richard Henderson <rth@redhat.com>
11175 * c-parse.in (yyoverflow): New.
11177 2002-04-25 Richard Henderson <rth@redhat.com>
11180 * c-common.c (shorten_compare): Simplfy conditions leading to
11181 the generation of a warning.
11183 2002-04-25 Richard Henderson <rth@redhat.com>
11186 * expmed.c (extract_bit_field): Fall through to generic code rather
11187 than aborting on subreg special case.
11189 2002-04-25 David S. Miller <davem@redhat.com>
11191 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
11192 for DECL being NULL.
11194 2002-04-25 Steve Christiansen <smc@us.ibm.com>
11196 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
11198 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
11200 * c-decl.c (grokdeclarator): Remove outdated ??? note
11201 on invalid declaration of flexible array members.
11203 2002-04-25 Richard Henderson <rth@redhat.com>
11205 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
11207 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
11209 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
11210 needed by the compiler, even if they are used as global regs.
11212 2002-04-25 Matt Hiller <hiller@redhat.com>
11214 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
11216 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
11217 of the corresponding functions.
11218 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
11221 2002-04-25 Matt Hiller <hiller@redhat.com>
11223 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
11225 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
11226 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
11227 registers, adjust comment accordingly.
11228 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11229 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
11230 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
11231 for coprocessor registers.
11232 (ADDITIONAL_REGISTER_NAMES): Include
11233 ALL_COP_ADDITIONAL_REGISTER_NAMES.
11235 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
11236 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
11237 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
11238 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
11239 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
11241 (mips_char_to_class): Adjust comment to include coprocessor
11242 constraint letters.
11244 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
11246 (mips_reg_names, mips_regno_to_class): Include coprocessor
11248 (mips_sw_reg_names): Ditto, make non-static.
11249 (mips_move_1word): Handle moves to and from coprocessor registers.
11250 (mips_move_2words): Handle moves to and from coprocessor
11252 (mips_class_max_nregs, mips_register_move_cost): Handle
11253 coprocessor register classes.
11254 (override_options): Initialize mips_char_to_class and
11255 mips_hard_regno_mode_ok properly for coprocessor registers.
11257 * config/mips/mips.md (movdi_internal, movdi_internal2,
11258 movsi_internal1, movsi_internal2): Add constraint-sets for
11259 coprocessor registers.
11260 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
11261 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
11263 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
11264 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
11266 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
11267 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
11269 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
11270 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
11273 * doc/tm.texi: Document feature.
11275 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11277 * integrate.c (function_attribute_inlinable_p): Simplify.
11278 Check the table pointer is not NULL.
11280 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
11282 * doc/c-tree.texi: Fix typo in introduction.
11284 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11286 * c-common.h (c_common_parse_file): Update.
11287 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11288 * c-lex.c (YYDEBUG): Get from c-lex.h.
11289 (c_common_parse_file): Update.
11290 * c-lex.h (YYDEBUG, yydebug): New.
11291 * c-parse.in (YYDEBUG): Get from c-lex.h.
11292 (c_set_yydebug): Remove.
11293 * c-tree.h (c_set_yydebug): Remove.
11294 * langhooks-def.h (lhd_do_nothing_i): New.
11295 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
11296 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
11297 * langhooks.c (lhd_do_nothing_i): New.
11298 (lhd_set_yydebug): Remove.
11299 * langhooks.h (struct lang_hooks): Update.
11300 * toplev.c (set_yydebug): New.
11301 (compile_file): Update call to parse_file hook.
11302 (decode_d_option): Update.
11304 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
11306 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
11308 * loop.c (load_mems): Don't change the interface of called functions.
11310 * calls.c (expand_call): Take current_function_pretend_args_size
11311 into account when setting argblock for sibcalls.
11313 2002-04-24 Matt Hiller <hiller@redhat.com>
11315 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
11318 * cpplex.c (skip_line_comment): Process comment one multibyte
11319 character at a time rather than one char at a time, if
11321 (parse_string): Process string one multibyte character at a time
11322 rather than one char at a time, if appropriate.
11323 * c-lex.c (lex_string): Lex and copy multibyte strings
11325 * cpplib.h (cppchar_t): Change to unsigned.
11327 2002-04-24 Richard Henderson <rth@redhat.com>
11330 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
11333 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
11335 * sh.c (sh_va_arg): If argument was passed by reference,
11336 dereference the pointer.
11338 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11340 * sh.md (divsi3_i4_media): Use match_operand for input values
11341 rather than hard registers.
11342 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
11343 unnecessarily through hard registers. Keep copies of pseudo
11344 registers outside of the libcall sequence.
11346 * sh.md (casesi_shift_media): Add modes.
11348 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
11351 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11353 * attribs.c (c_common_attribute_table): Move table and handlers
11355 (format_attribute_table, lang_attribute_table,
11356 lang_attribute_common): Remove.
11357 (init_attributes): Replace NULL pointers with pointers to the
11359 (handle_packed_attribute, handle_nocommon_attribute,
11360 handle_common_attribute, handle_noreturn_attribute,
11361 handle_noinline_attribute, handle_always_inline_attribute,
11362 handle_used_attribute, handle_unused_attribute,
11363 handle_const_attribute, handle_transparent_union_attribute,
11364 handle_constructor_attribute, handle_destructor_attribute,
11365 handle_mode_attribute, handle_section_attribute,
11366 handle_aligned_attribute, handle_weak_attribute,
11367 handle_alias_attribute, handle_visibility_attribute,
11368 handle_no_instrument_function_attribute, handle_malloc_attribute,
11369 handle_no_limit_stack_attribute, handle_pure_attribute,
11370 handle_deprecated_attribute, handle_vector_size_attribute,
11371 vector_size_helper): Move to c-common.c.
11372 * c-common.c (c_common_attribute_table,
11373 handle_packed_attribute, handle_nocommon_attribute,
11374 handle_common_attribute, handle_noreturn_attribute,
11375 handle_noinline_attribute, handle_always_inline_attribute,
11376 handle_used_attribute, handle_unused_attribute,
11377 handle_const_attribute, handle_transparent_union_attribute,
11378 handle_constructor_attribute, handle_destructor_attribute,
11379 handle_mode_attribute, handle_section_attribute,
11380 handle_aligned_attribute, handle_weak_attribute,
11381 handle_alias_attribute, handle_visibility_attribute,
11382 handle_no_instrument_function_attribute, handle_malloc_attribute,
11383 handle_no_limit_stack_attribute, handle_pure_attribute,
11384 handle_deprecated_attribute, handle_vector_size_attribute,
11385 vector_size_helper): Move from attribs.c.
11386 * c-common.h (c_common_attribute_table,
11387 c_common_format_attribute_table): New.
11388 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11389 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11390 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
11391 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
11392 (LANG_HOOKS_INITIALIZER): Update.
11393 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
11394 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
11395 * target.h: Update comment.
11396 * tree.c (default_target_attribute_table): Remove.
11397 * tree.h (default_target_attribute_table, format_attribute_table,
11398 lang_attribute_table, lang_attribute_common): Remove.
11400 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
11401 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
11403 2002-04-24 Jason Merrill <jason@redhat.com>
11405 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
11406 * dwarf2out.c (dwarf_attr_name): Support it.
11407 (gen_array_type_die): Emit it.
11408 (lookup_type_die): No special handling for VECTOR_TYPE.
11409 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
11411 2002-04-24 Richard Henderson <rth@redhat.com>
11413 * config/mips/mips.md (movdi_usd): Renumber.
11415 2002-04-24 David S. Miller <davem@redhat.com>
11418 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
11419 32-bit Sparc and current_function_returns_struct is true.
11421 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11423 * loop.c (canonicalize_condition): Use gen_int_mode.
11425 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
11427 * config/rs6000/altivec.h: Cleanup file. Add non individual
11429 (vec_vaddubm): New.
11430 (vec_vadduhm): New.
11431 (vec_vadduwm): New.
11433 (vec_vaddcuw): New.
11434 (vec_vaddubs): New.
11435 (vec_vaddsbs): New.
11436 (vec_vadduhs): New.
11437 (vec_vadduws): New.
11438 (vec_vaddsws): New.
11448 (vec_vcmpbfp): New.
11449 (vec_vcmpequb): New.
11450 (vec_vcmpequh): New.
11451 (vec_vcmpequw): New.
11452 (vec_vcmpeqfp): New.
11453 (vec_vcmpgefp): New.
11454 (vec_vcmpgtub): New.
11455 (vec_vcmpgtsb): New.
11456 (vec_vcmpgtuh): New.
11457 (vec_vcmpgtsh): New.
11458 (vec_vcmpgtuw): New.
11459 (vec_vcmpgtsw): New.
11460 (vec_vcmpgtfp): New.
11461 (vec_vcmpgefp): New.
11466 (vec_vexptefp): New.
11471 (vec_lde): Add vector float variant.
11474 (vec_vlogefp): New.
11475 (vec_vmaddfp): New.
11476 (vec_vmhaddshs): New.
11498 (vec_vmladduhm): New.
11499 (vec_vmhraddshs): New.
11500 (vec_msumubm): New.
11501 (vec_vmsummbm): New.
11502 (vec_vmsumuhm): New.
11503 (vec_vmsumshm): New.
11504 (vec_vmsumuhs): New.
11505 (vec_vmsumshs): New.
11506 (vec_vmuleub): New.
11507 (vec_vmulesb): New.
11508 (vec_vmuleuh): New.
11509 (vec_vmulesh): New.
11510 (vec_vmuloub): New.
11512 (vec_vmulouh): New.
11513 (vec_vmulosh): New.
11514 (vec_vnmsubfp): New.
11517 (vec_vpkuhum): New.
11518 (vec_vpkuwum): New.
11520 (vec_vpkuhus): New.
11521 (vec_vpkshss): New.
11522 (vec_vpkuwus): New.
11523 (vec_vpkswss): New.
11524 (vec_vpkshus): New.
11525 (vec_vpkswus): New.
11532 (vec_vrsqrtefp): New.
11543 (vec_vspltisb): New.
11544 (vec_vspltish): New.
11545 (vec_vspltisw): New.
11559 (vec_vsububm): New.
11560 (vec_vsubuhm): New.
11561 (vec_vsubuwm): New.
11563 (vec_vsubcuw): New.
11564 (vec_vsububs): New.
11565 (vec_vsubsbs): New.
11566 (vec_vsubuhs): New.
11567 (vec_vsubshs): New.
11568 (vec_vsubuws): New.
11569 (vec_vsubsws): New.
11570 (vec_vsum4ubs): New.
11571 (vec_vsum4sbs): New.
11572 (vec_vsum4shs): New.
11573 (vec_vsum2sws): New.
11574 (vec_vsumsws): New.
11576 (vec_vupkhsb): New.
11577 (vec_vupkhpx): New.
11578 (vec_vupkhsh): New.
11579 (vec_vupklsb): New.
11580 (vec_vupklpx): New.
11581 (vec_vupklsh): New.
11584 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
11587 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
11588 added literals from substracted literals.
11589 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
11590 (fold) [associate]: Preserve MINUS_EXPR if needed.
11592 2002-04-23 Zack Weinberg <zack@codesourcery.com>
11594 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
11597 2002-04-23 Tom Tromey <tromey@redhat.com>
11599 * gcc.c: Added --resource. For PR java/6314.
11601 2002-04-23 David O'Brien <obrien@FreeBSD.org>
11603 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
11604 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
11607 2002-04-23 David O'Brien <obrien@FreeBSD.org>
11609 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
11611 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
11613 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
11615 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11616 (ix86_expand_clrstr): Fix typo.
11617 * loop.c (gen_load_of_final_value): New.
11618 (loop_givs_rescan, strength_reduce, check_dbra_loop):
11621 2002-04-23 Roger Sayle <roger@eyesopen.com>
11623 * builtins.c (builtin_memset_gen_str): New function.
11624 (expand_builtin_memset): Optimize the case of constant length, but
11627 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
11629 * config/rs6000/altivec.h (vec_step): Remove extraneous
11631 (vec_ctu): Cast return.
11633 2002-04-23 Alan Modra <amodra@bigpond.net.au>
11636 * function.h: (struct function): Add profile_label_no field.
11637 (current_function_profile_label_no): Define.
11638 * function.c: (profile_label_no): New static var.
11639 (expand_function_start): Increment it, and copy to
11640 current_function_profile_label_no.
11641 * output.h (profile_label_no): Delete.
11642 * final.c (profile_label_no): Delete.
11643 (profile_function): Use current_function_profile_label_no.
11644 (final_end_function): Don't increment profile_label_no here.
11645 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
11646 profile_label_no with current_function_profile_label_no.
11647 * config/pa/pa.c (current_function_number): Delete.
11648 (pa_output_function_prologue): Don't output profile label here.
11649 (hppa_profile_hook): Use label_no param rather than
11650 current_function_number.
11651 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
11652 * config/pa/pa.h: .. here.
11653 (FUNCTION_PROFILER): Output profile label here.
11655 2002-04-22 Eric Christopher <echristo@redhat.com>
11657 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
11658 patch of 2002-04-09 due to binutils issues.
11659 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
11661 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
11663 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
11664 constraint to 'o' for m=r and r=m alternatives.
11665 ("*movv8hi_internal1"): Same.
11666 ("*movv16qi_internal1"): Same.
11667 ("*movv4sf_internal1"): Same.
11669 2002-04-22 Janis Johnson <janis187@us.ibm.com>
11671 * rtl.h (RTX_FLAG): New macro.
11672 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
11673 * final.c (alter_subreg): Use macro to access rtx flag.
11674 * integrate.c (copy_rtx_and_substitute): Use new access macro.
11675 * print-rtl.c (print_rtx): Use new access macro.
11677 * cse.c (insert): Check rtx code before accessing flag.
11679 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
11680 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
11681 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
11682 convert_const_symbol_ref, make_canonical, make_alternative_compare,
11683 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
11684 simplify_test_exp, optimize_attrs, simplify_by_exploding,
11685 find_and_mark_used_attributes, unmark_used_attributes,
11686 add_values_to_cover, simplify_with_current_value,
11687 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
11688 copy_rtx_unchanging, main): Use new access macros.
11690 2002-04-22 Tom Rix <trix@redhat.com>
11692 * expmed.c (init_expmed): Generate shifted constant once.
11694 2002-04-22 Zack Weinberg <zack@codesourcery.com>
11696 * c-lex.c (lex_charconst): Call convert to get constant in
11697 proper type; don't just smash the type field.
11700 * config.gcc: Add list of obsolete configurations. Disallow
11701 building these without --enable-obsolete.
11702 * doc/install.texi: Document --enable-obsolete and obsoletion
11703 policy. Mention obsoletion of individual targets in
11704 appropriate places.
11706 2002-04-22 Richard Henderson <rth@redhat.com>
11708 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
11710 2002-04-22 Mark Mitchell <mark@codesourcery.com>
11713 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
11714 (walk_fixup_memory_subreg): Likewise.
11715 (fixup_var_refs_insn): Adjust accordingly.
11716 (fixup_var_refs_1): Likewise.
11718 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
11720 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
11721 LIBPATH_ARCH64_SPEC): Define.
11722 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
11723 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
11724 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
11725 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
11727 2002-04-22 Joel Sherrill <joel@OARcorp.com>
11729 * gthr-rtems.h: Correct prototypes to remove warnings.
11731 2002-04-22 Richard Henderson <rth@redhat.com>
11734 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
11736 * gcse.c (free_insn_expr_list_list): New.
11737 (clear_modify_mem_tables): Use it. Fix bit set usage.
11738 (canon_list_insert): Use EXPR_LISTs for expressions.
11739 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
11741 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
11743 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
11744 file change and include code to _cpp_pop_buffer.
11745 * cpphash.h (struct pending_option): Predeclare.
11746 (struct cpp_reader): New member next_include_file.
11747 (_cpp_pop_file_buffer): Update.
11748 (_cpp_push_next_buffer): Update, rename.
11749 * cppinit.c (cpp_destroy): Free include chain and pending here.
11750 (cpp_finish_options): Simplify.
11751 (_cpp_push_next_buffer): Rename and clean up.
11752 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
11754 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
11756 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
11758 * config/rs6000/altivec.h (vec_xor): Add variant for both args
11759 being vector signed int.
11761 (vec_xor): Add variant for both args being vector signed char.
11762 Remove redundant variant.
11765 2002-04-21 David S. Miller <davem@redhat.com>
11767 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
11768 compare mode in output RTL.
11770 2002-04-22 David Edelsohn <edelsohn@gnu.org>
11772 * config/rs6000/rs6000.c (rs6000_override_options): Correct
11773 style and formatting of previous patch.
11775 2002-04-22 Alan Modra <amodra@bigpond.net.au>
11777 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
11778 flag_pic for ABI_AIX.
11780 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11782 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
11783 * cppfiles.c (read_include_file): Similarly.
11784 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
11785 uxstrdup ustrchr, ufputs): Similarly.
11786 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
11787 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
11788 cpp_ideq, parse_identifier, parse_number): Similarly.
11789 * cpplib.c (struct directive, dequote_string, D, run_directive,
11790 cpp_push_buffer): Similarly.
11791 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
11792 _cpp_create_definition, check_trad_stringification,
11793 cpp_macro_definition): Similarly.
11795 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11797 * cppmacro.c (funlike_invocation_p): Don't step back
11800 2002-04-21 David Edelsohn <edelsohn@gnu.org>
11802 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
11805 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
11807 * doc/invoke.texi: Remove Chill references.
11808 * doc/gcc.texi: Update last modified date.
11810 2002-04-20 Kazu Hirata <kazu@hxi.com>
11812 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
11813 push and pop. Replace add.l with add.w.
11815 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11817 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
11818 multiply instructions for H8/300H case.
11820 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11822 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
11823 Bum three instructions from each routine.
11825 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
11827 * Makefile.in: Update.
11828 * decl.c (push_c_function_context, pop_c_function_context,
11829 mark_c_function_context): Rename for consistency.
11830 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
11831 * c-tree.h (push_c_function_context, pop_c_function_context,
11832 mark_c_function_context): Rename for consistency.
11833 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11834 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11835 * function.c (init_lang_status, save_lang_status,
11836 restore_lang_status, mark_lang_status, free_lang_status):
11837 Move to langhooks.h.
11838 (push_function_context_to, pop_function_context_from,
11839 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
11841 * function.h (init_lang_status, save_lang_status,
11842 restore_lang_status, mark_lang_status, free_lang_status):
11843 Move to langhooks.h.
11844 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
11845 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
11846 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
11847 LANG_HOOKS_FUNCTION_INITIALIZER): New.
11848 (LANG_HOOKS_INITIALIZER): Update.
11849 (lhd_do_nothing_f): New.
11850 * langhooks.h (struct lang_hooks_for_functions): New.
11851 (struct lang_hooks): New hooks.
11852 * langhooks.c (lhd_do_nothing_f): New.
11854 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11855 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11857 2002-04-19 David S. Miller <davem@redhat.com>
11859 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
11860 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
11862 2002-04-19 Jakub Jelinek <jakub@redhat.com>
11864 PR optimization/3756
11865 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
11866 x = ((int) y < 0) ? cst1 : cst2.
11868 2002-04-19 Jakub Jelinek <jakub@redhat.com>
11871 * function.c: Reapply patch for c/6358.
11872 (expand_function_end): Copy decl_rtl's mode, not
11873 current_function_return_rtx mode.
11875 2002-04-19 Joel Sherrill <joel@OARcorp.com>
11877 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
11880 2002-04-19 Tom Tromey <tromey@redhat.com>
11882 * doc/install.texi (Specific): Update status of Solaris 2.8.
11883 For PR libgcj/6158.
11885 2002-04-19 Andreas Schwab <schwab@suse.de>
11887 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
11888 (PUT_REAL): Restore old definition.
11890 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
11891 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11893 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
11894 binutils 2.11.2 and higher generate smaller binaries than Sun's
11897 2002-04-19 Mark Mitchell <mark@codesourcery.com>
11900 * toplev.c (rest_of_compilation): Do not defer functions for which
11901 TREE_SYMBOL_REFERENCED has already been set.
11903 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
11905 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
11908 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
11910 * builtins.c: Include langhooks.h.
11911 (lang_type_promotes_to): Remove.
11912 (expand_builtin_va_arg): Use new hook.
11913 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
11914 (simple_type_promotes_to): Move to c-typeck.c.
11915 * c-common.h (simple_type_promotes_to): Remove.
11916 * c-decl.c (duplicate_decls, grokdeclarator): Update.
11917 * c-format.c: Include langhooks.h.
11918 (check_format_types): Update.
11919 * c-tree.h (c_type_promotes_to): New.
11920 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
11921 (type_lists_compatible_p): Update.
11922 * langhooks-def.h (lhd_type_promotes_to): New.
11923 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
11924 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11925 * langhooks.c (lhd_type_promotes_to): New.
11926 * langhooks.h (struct lang_hooks_for_types): New hook.
11927 * tree.h (lang_type_promotes_to): Remove.
11929 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
11931 2002-04-18 Richard Henderson <rth@redhat.com>
11933 * function.c: Revert patch for c/6358.
11935 2002-04-18 Richard Henderson <rth@redhat.com>
11937 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
11938 blocks. Handle multiple references to the TRAP block. Handle
11939 non-adjacent THEN and OTHER blocks.
11941 2002-04-18 Richard Henderson <rth@redhat.com>
11943 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
11944 crash with no type for by-mode libcalls.
11946 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
11948 2002-04-18 Bob Wilson <bob.wilson@acm.org>
11950 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
11951 __xtensa_nonlocal_goto): Use a syscall instructions to flush
11952 the register windows.
11954 2002-04-18 Zack Weinberg <zack@codesourcery.com>
11956 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
11957 appropriate. Document need for extended precision even when
11958 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
11959 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
11960 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
11961 instead of relying on later syntax error when REAL_WIDTH > 5.
11962 * real.c: Define NE based only on whether or not we have a
11963 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
11964 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
11965 define GET_REAL and PUT_REAL as simple memcpy operations; no
11966 need to byteswap or round.
11967 Use #error instead of #ifdef-ing out the entire file, for
11968 prompt error detection.
11970 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
11972 2002-04-18 David S. Miller <davem@redhat.com>
11974 * config/sparc/sparc.h (BRANCH_COST): Define.
11976 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
11979 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
11981 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
11982 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
11983 propagate_block calls after relaxation loop using new variable
11984 stabilized_prop_flags.
11986 2002-04-18 Richard Henderson <rth@redhat.com>
11988 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
11989 (ia64_va_arg): Expect variable sized types by reference.
11990 * config/ia64/ia64-protos.h: Update.
11991 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
11992 ia64_function_arg_pass_by_reference.
11994 2002-04-18 Richard Henderson <rth@redhat.com>
11996 * ifcvt.c: Include except.h.
11997 (block_has_only_trap): Break out from find_cond_trap.
11998 (find_cond_trap): Use it. Always delete the trap block.
11999 (merge_if_block): Allow then block null. Be less simplistic about
12000 what insns can end a block.
12001 * Makefile.in (ifcvt.o): Depend on except.h.
12003 * config/ia64/ia64.md (trap, conditional_trap): New.
12005 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12008 * function.c (assign_parms): Assign hard current_function_return_rtx
12010 (expand_function_end): ...not here.
12012 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
12014 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12015 * c-tree.h (c_incomplete_type_error): New.
12016 * c-typeck.c (require_complete_type, build_component_ref): Update.
12017 (incomplete_type_error): Rename.
12018 * langhooks-def.h (lhd_incomplete_type_error): New.
12019 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
12020 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
12021 * langhooks.c (lhd_incomplete_type_error): New.
12022 * langhooks.h (struct lang_hooks_for_types): New hook.
12023 * tree.c (size_in_bytes): Use new hook.
12024 * tree.h (incomplete_type_error): Remove.
12026 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
12028 2002-04-18 Zack Weinberg <zack@codesourcery.com>
12030 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
12031 TARGET_FLOAT_FORMAT blocks.
12033 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12035 * doc/install.texi (Downloading the source): Do not mention Chill
12036 any longer, but mention Ada.
12037 (Configuration): Do not mention Chill any longer.
12039 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
12041 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
12043 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
12045 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
12048 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12050 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
12051 instead of unsigned_type.
12053 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12055 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
12056 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
12059 2002-04-18 Bernd Schmidt <bernds@redhat.com>
12061 * attribs.c (vector_type_node_list): New static variable.
12062 (handle_vector_size_attribute): Use it to avoid generating a
12063 new type node each time we are called.
12065 * combine.c (subst): Avoid trying to make a vector mode subreg of
12066 an integer constant.
12067 (gen_lowpart_for_combine): Likewise.
12069 2002-04-18 Roger Sayle <roger@eyesopen.com>
12070 Jakub Jelinek <jakub@redhat.com>
12072 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
12073 for integer constant c (if x has unsigned type or sign bit is not
12074 set in c). This folds the zero/sign extension into the bit-wise and
12077 2002-04-18 Jakub Jelinek <jakub@redhat.com>
12080 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
12083 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
12085 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
12087 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
12089 * gcc.c (read_specs): Detect and fail if an attempt is made to
12090 rename a spec string to an already existing string.
12092 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12094 * config/s390/s390.c (legitimize_pic_address): Do not generate
12095 illegal address constant without CONST.
12097 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12099 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
12100 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12102 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
12104 PR optimization/6305
12105 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
12106 to make sure previous reloads are taken into account. Generate
12107 better code if one operand is an in-range immediate constant.
12109 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
12111 * doc/install.texi (Building): libgcj requires GNU make.
12113 2002-04-17 Jakub Jelinek <jakub@redhat.com>
12116 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
12117 even if hard quad and register is not floating.
12118 (movtf reg<-mem split): Disallow splitting if hard quad and
12119 register is floating.
12120 (movtf mem<-reg split): Likewise.
12121 * config/sparc/sparc.c (fp_register_operand): New predicate.
12122 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
12124 2002-04-17 Zack Weinberg <zack@codesourcery.com>
12126 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
12127 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
12128 (unprotoize.o): Ditto. Build from protoize.c. Define
12129 UNPROTOIZE on command line.
12130 * protoize.c: Include cppdefault.h. Delete include_defaults.
12131 (in_system_include_dir): Use cpp_include_defaults (defined in
12133 * unprotoize.c: Delete file.
12135 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
12137 * config/rs6000/altivec.h (vec_ld): Add array variants.
12141 2002-04-17 Alan Matsuoka <alanm@redhat.com>
12142 Aldy Hernandez <aldyh@redhat.com>
12144 * config/rs6000/altivec.h: Define __ALTIVEC__.
12149 (vec_vmaddfp): New.
12151 Add parentheses to all macro arguments.
12153 2002-04-16 Richard Henderson <rth@redhat.com>
12156 * except.c (remove_eh_handler): Insert inner regions at beginning
12157 of sibling chain. Refactor expressions.
12159 2002-04-16 Richard Henderson <rth@redhat.com>
12161 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
12162 * config/sparc/sol2-gas-bi.h: New file.
12163 * config.gcc (sparc*-solaris): Add it as needed.
12164 * configure.in (AS_SPARC64_FLAG): Remove check.
12165 * config.in, configure: Regenerate.
12167 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
12169 2002-04-16 Richard Henderson <rth@redhat.com>
12171 * config/mips/mips.c (override_options): Don't override N32 for
12175 * config/mips/mips.md (can_delay): Split out of existing define_delays.
12176 (HILO_delay): Set can_delay false.
12178 2002-04-16 Dale Johannesen <dalej@apple.com>
12180 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
12181 instruction addresses.
12182 (rs6000_output_function_epilogue): Likewise.
12184 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
12186 * c-parse.in (poplevel, compstmt_start,
12187 compstmt_primary_start): Add ending ';', in accordance
12190 2002-04-16 Richard Henderson <rth@redhat.com>
12192 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
12193 Adjust tm_file order to get TARGET_DEFAULT set properly.
12194 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
12195 * doc/install.texi (sparc-solaris): Update.
12197 2002-04-16 Dale Johannesen <dalej@apple.com>
12199 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
12200 comparison operands do not match each other or if modes of
12201 conditions do not match result.
12203 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
12206 * config/s390/s390.md (mulsidi3): Set both subregs of the
12207 multiword register.
12209 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
12211 * config/rs6000/altivec.h (vec_addc): Type check.
12213 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12216 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
12218 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
12220 2002-04-15 Richard Henderson <rth@redhat.com>
12222 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
12223 call_really_used_regs too.
12225 2002-04-15 Richard Henderson <rth@redhat.com>
12227 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
12229 2002-04-15 David S. Miller <davem@redhat.com>
12231 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
12232 as being CLOBBERed.
12234 2002-04-16 Jakub Jelinek <jakub@redhat.com>
12237 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
12238 CONST_VECTOR is { 0, ... 0 }.
12240 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
12242 * doc/install.texi (Installing GCC: Configuration): Clarify
12243 the only supported ways to configure gcc.
12245 2002-04-15 Roland McGrath <roland@frob.com>
12247 * config.gcc (alpha*-*-gnu*): New target configuration.
12248 * config/alpha/gnu.h: New file for it.
12249 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
12251 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12253 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
12254 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
12255 * tree.h (expand_start_stmt_expr): Update prototype.
12256 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
12257 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
12258 on the STMT_EXPR created for the inline function.
12260 2002-04-15 Richard Henderson <rth@redhat.com>
12262 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
12263 config/i386/linux-aout.h, config/i386/linux-oldld.h,
12264 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
12265 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
12266 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
12267 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
12268 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
12269 Define __gnu_linux__, not gnu_linux.
12270 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
12272 2002-04-15 Mark Mitchell <mark@codesourcery.com>
12274 Remove Chill front end.
12275 * gcc.c (default_compilers): Remove Chill entries.
12276 * ch: Remove directory.
12277 * doc/frontends.texi: Remove information about Chill.
12278 * doc/sourcebuild.texi: Likewise.
12279 * doc/standards.texi: Likewise.
12281 2002-04-15 Douglas B Rupp <rupp@gnat.com>
12283 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
12284 (LONGLONG_STANDALONE): Define.
12286 2002-04-15 David S. Miller <davem@redhat.com>
12288 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
12289 Call emit_library_call with LCT_NORMAL.
12290 (sparc_initialize_trampoline): Use LCT_foo instead of
12291 magic constant in emit_library_call invocations.
12292 (sparc64_initialize_trampoline): Likewise.
12293 (sparc_profile_hook): Likewise.
12294 * config/sparc/sparc.md: Likewise.
12296 * config/sparc/sparc.c (sparc_extra_constraint_check):
12297 Fix type of argument 'c'.
12298 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
12301 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12303 * diagnostic.h (output_buffer_state): Redefine.
12304 (output_format_decoder): New macro.
12305 (output_prefixing_rule): Likewise.
12306 (output_line_cutoff): Likewise.
12307 (diagnostic_format_decoder): Adjust.
12308 (diagnostic_prefixing_rule): Likewise.
12309 (diagnostic_line_cutoff): Likewise.
12310 (diagnostic_state): Likewise.
12311 (diagnostic_kind_count): Likewise.
12312 (diagnostic_buffer): Now a macro.
12314 * diagnostic.c (diagnostic_buffer): Remove definition.
12315 (output_is_line_wrapping): Adjust.
12316 (set_real_maximum_length): Likewise.
12317 (output_set_maximum_length): Likewise.
12318 (init_output_buffer): Likewise.
12319 (lhd_print_error_function): Likewise.
12320 (output_do_verbatim): Likewise.
12322 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
12324 * cpperror.c (print_location): Don't print include chain
12326 (cpp_begin_message): Update to use DL_ macros.
12327 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12328 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12329 cpp_notice, cpp_notice_from_errno): Remove.
12330 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12333 * cppexp.c (CPP_ICE): Remove.
12334 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
12335 lex, integer_overflow, _cpp_parse_expr): Update.
12336 * cppfiles.c (read_include_file, find_include_file,
12337 handle_missing_header, _cpp_read_file, remap_filename): Update.
12338 * cpphash.h (enum error_type): Remove.
12339 (_cpp_begin_message): Update.
12340 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
12341 cpp_handle_option, cpp_post_options): Update.
12342 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
12343 skip_whitespace, parse_identifier, parse_slow, parse_string,
12344 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
12345 cpp_interpret_charconst): Update.
12346 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
12347 lex_macro_node, do_undef, glue_header_name, parse_include,
12348 do_include_common, read_flag, do_line, do_linemarker, do_ident,
12349 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
12350 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
12351 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
12352 _cpp_pop_buffer, do_diagnostic): Update.
12353 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
12354 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
12355 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
12356 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
12357 cpp_notice, cpp_notice_from_errno): Remove.
12358 (cpp_error, cpp_error_with_line): Update to take a diagnostic
12361 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
12362 collect_args, enter_macro_context, save_parameter, parse_params,
12363 _cpp_create_definition, check_trad_stringification,
12364 cpp_macro_definition): Update.
12365 * cppmain.c (cpp_preprocess_file): Update.
12366 * fix-header.c (read_scan_file): Update.
12368 2002-04-14 Andreas Schwab <schwab@suse.de>
12370 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
12372 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12374 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
12376 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12378 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
12381 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
12383 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
12385 2002-04-13 Joel Sherrill <joel@OARcorp.com>
12387 * config/sparc/t-elf: Enable v8 multilibs. Impacts
12388 sparc-elf and sparc-rtems targets.
12390 2002-04-13 Mark Mitchell <mark@codesourcery.com>
12392 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
12393 defined, and __gnu_hurd__ wherever __GNU__ is defined.
12394 * arm/linux-elf.h: Likewise.
12395 * cris/aout.h: Likewise.
12396 * cris/linux.h: Likewise.
12397 * i370/linux.h: Likewise.
12398 * i386/gnu.h: Likewise.
12399 * i386/linux-aout.h: Likewise.
12400 * i386/linux-oldld.h: Likewise.
12401 * i386/linux.h: Likewise.
12402 * i386/linux64.h: Likewise.
12403 * ia64/linux.h: Likewise.
12404 * m68k/linux-aout.h: Likewise.
12405 * m68k/linux.h: Likewise.
12406 * mips/linux.h: Likewise.
12407 * pa/pa-linux.h: Likewise.
12408 * pj/linux.h: Likewise.
12409 * rs6000/sysv4.h: Likewise.
12410 * s390/linux.h: Likewise.
12411 * sh/linux.h: Likewise.
12412 * sparc/linux-aout.h: Likewise.
12413 * sparc/linux.h: Likewise.
12414 * sparc/linux64.h: Likewise.
12415 * xtensa/linux.h: Likewise.
12417 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
12419 * stmt.c (check_unique_operand_names): Expect operand names to
12420 be strings rather than identifiers. Use simple_cst_equal to
12422 (resolve_operand_name_1): Make same identifier to string change here.
12423 * c-parse.in (asm_operand): Convert a named operand into a string.
12424 * cp/parse.y (asm_operand): Likewise.
12426 2002-04-13 Andreas Schwab <schwab@suse.de>
12428 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
12430 2002-04-12 Mark Mitchell <mark@codesourcery.com>
12432 Revert these changes:
12434 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12437 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12439 2002-04-12 Richard Henderson <rth@redhat.com>
12441 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
12442 (sparc*-*-solaris): Clean up header files.
12443 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
12444 and plan on generating 64-bit code.
12445 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
12446 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
12447 * config/sparc/sol2-sld-64.h: Rename ...
12448 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
12449 for AS_SPARC64_FLAG not defined.
12450 * config/sparc/sol2-gld-bi.h: New.
12451 * config/sparc/sol2-sld.h: Remove.
12452 * config/sparc/sol26-sld.h: New.
12453 * config/sparc/sol2.h: Tidy comments.
12454 * doc/install.texi: Document sparc-solaris configury changes.
12456 2002-04-12 Richard Henderson <rth@redhat.com>
12458 * recog.c (offsettable_address_p): Match the logic in adjust_address.
12460 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
12461 in 64-bit mode only. Use only for 32-bit or MEDLOW.
12463 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12465 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
12467 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
12469 * pa.c (pa_can_combine_p): Call extract_insn before calling
12470 constrain_operands.
12472 2002-04-12 Douglas B Rupp <rupp@gnat.com>
12474 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
12475 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
12476 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
12477 (CPP_PREDEFINES): Handle __declspec.
12478 * config/i386/t-interix (USER_H): Remove.
12480 2002-04-12 DJ Delorie <dj@redhat.com>
12482 * integrate.c (compare_blocks): Make comparisons safe for when
12483 sizeof(int) < sizeof(char *).
12484 (find_block): Likewise.
12486 2002-04-12 Jan Hubicka <jh@suse.cz>
12487 David Edelsohn <edelsohn@gnu.org>
12489 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
12491 (symbol_ref_operand): New.
12492 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
12493 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
12495 2002-04-12 Andreas Schwab <schwab@suse.de>
12497 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
12498 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
12499 overrides the definition in config/svr4.h.
12501 2002-04-12 Eric Norum <eric.norum@usask.ca>
12503 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
12504 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
12505 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
12506 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
12507 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
12508 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
12509 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
12510 definitions to config/rtems.h and make the targets more similar.
12512 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12514 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
12515 POINTERS_EXTEND_UNSIGNED.
12516 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
12517 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
12519 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
12522 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
12524 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
12525 depends on TARGET_SHMEDIA, not TARGET_SH5.
12527 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
12529 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
12530 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
12532 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
12534 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
12537 2002-04-12 Andreas Schwab <schwab@suse.de>
12539 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
12541 2002-04-12 Richard Henderson <rth@redhat.com>
12544 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
12546 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
12547 modes spanning multiple hard regs.
12549 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
12551 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12553 * pa.c (pa_output_function_prologue): Don't accumulate the total
12554 number of code bytes when using TARGET_64BIT, or gas, SOM and not
12555 the portable runtime.
12556 (output_deferred_plabels): Handle 64bit plabels.
12557 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
12558 generating pic code using the GAS assembler for object formats that
12559 are not SOM (ie., ELF32 and ELF64).
12560 (output_millicode_call): Check attribute type if attribute length is 28.
12561 Likewise use $PIC_pcrel$0. Only call get_attr_length and
12562 dbr_sequence_length once.
12563 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
12564 dbr_sequence_length once.
12565 * pa.h (TARGET_SOM): Define if not defined.
12566 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
12567 with GAS and not SOM.
12568 (jump, call_internal_reg, call_value_internal_reg): Likewise.
12569 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
12571 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12573 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
12574 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
12575 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
12576 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
12577 elfos.h and dbxelf.h values are fine now.
12578 * config/i386/freebsd.h, config/alpha/freebsd.h
12579 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
12581 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12583 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
12584 or set Acpu or Amachine. Reformat.
12585 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12587 (LINK_SPEC): Do not need to undef.
12588 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
12589 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
12590 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12592 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
12593 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
12594 (LINK_SPEC): Do not need to undef.
12595 (DONT_USE_BUILTIN_SETJMP): Do not define.
12596 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
12597 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
12598 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
12599 Remove trailing spaces.
12600 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
12601 __ELF__, or set Acpu or Amachine. Reformat.
12602 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
12605 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12607 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
12608 all other *-*-freebsd* targets.
12610 2002-04-11 Richard Henderson <rth@redhat.com>
12612 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
12614 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12616 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12617 Include {cpu}/{cpu}.h thru tm_file.
12618 (alpha*-*-linux*ecoff): Remove target.
12619 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12620 (LINK_SPEC): Remove, is not OS independent.
12621 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12622 (LINK_SPEC): Do not need to #undef any longer.
12623 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12625 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12627 (LINK_SPEC): Moved here from alpha/elf.h.
12628 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12629 SUB_CPP_PREDEFINES.
12630 * config/alpha/linux-ecoff.h: Remove.
12631 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12632 (CPP_SPEC): Define _POSIX_SOURCE as needed.
12633 (CPP_SUBTARGET_SPEC): Do not define.
12634 (LINK_SPEC): Do not need to #undef any longer.
12635 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
12636 * config/alpha/vms.h: Likewise.
12638 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
12640 * doc/extend.texi: Remove old claim that typedefs cannot have
12641 an alignment attribute.
12643 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12645 PR optimization/6177
12646 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
12647 bitpos is 0 and bitsize CONCAT size.
12649 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12652 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
12654 2002-04-10 David O'Brien <obrien@FreeBSD.org>
12656 * config/alpha/freebsd.h: Minor reformatting.
12657 (CPP_SPEC): Define ELF and add cpp_subtarget.
12658 (ASM_SPEC): No longer needed.
12660 2002-04-11 Richard Henderson <rth@redhat.com>
12662 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
12663 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
12664 (dimode mem/zero splitter): New.
12666 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
12668 * config/cris/cris.c (cris_override_options): Tweak error message
12669 for PIC not implemented.
12671 * config/cris/cris.h: Tweak comments related to parameter-passing.
12673 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
12675 2002-04-10 Richard Henderson <rth@redhat.com>
12677 * except.c (add_ehl_entry): Allow duplicates after landing pad
12680 2002-04-10 David Edelsohn <edelsohn@gnu.org>
12682 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
12684 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
12686 * c-decl.c (c_init_decl_processing): Move generation of
12687 decls for g77_integer_type_node and friends from here ...
12688 * c-common.c (c_common_nodes_and_builtins): ... to here.
12690 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
12692 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
12693 is only used as frame pointer when frame_pointer_needed is true.
12695 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
12698 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
12699 for the fact that the pool entry uses two words.
12700 (movdf_hard_insn): Similarly. Also, ADR instruction can span
12702 (movdf_soft_insn): Similarly.
12703 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
12704 for the fact that the pool entry uses three words.
12706 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
12708 * config/mips/mips.c (mips_va_arg): When using the struct version
12709 of the EABI va_list, allow arguments in the register save area to
12710 take up less room than a stack argument.
12712 2002-04-10 Richard Henderson <rth@redhat.com>
12714 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
12715 if EXPAND_INITIALIZER.
12717 2002-04-09 Richard Henderson <rth@redhat.com>
12719 * config/alpha/alpha.md (movdi_er_maybe_g): New.
12720 * config/alpha/alpha.c (alpha_expand_mov): Use it.
12722 2002-04-10 Alan Modra <amodra@bigpond.net.au>
12724 PR optimization/6233
12725 * rtlanal.c (pure_call_p): New function.
12726 * rtl.h (pure_call_p): Declare.
12727 * loop.c (prescan_loop): Use it to set has_nonconst_call.
12728 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
12730 2002-04-09 Eric Christopher <echristo@redhat.com>
12732 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
12733 information to .comm directive.
12735 2002-04-09 Richard Henderson <rth@redhat.com>
12738 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
12740 2002-04-09 Richard Henderson <rth@redhat.com>
12742 * basic-block.h (flow_delete_block_noexpunge): Declare.
12743 (expunge_block_nocompact): Declare.
12744 * cfg.c (expunge_block_nocompact): Split out from ...
12745 (expunge_block): ... here.
12746 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
12747 (flow_delete_block_noexpunge): Split out from ...
12748 (flow_delete_block): ... here.
12749 * cfgcleanup.c (delete_unreachable_blocks): Compact while
12750 removing dead blocks.
12751 * except.c (exception_handler_labels): Remove.
12752 (exception_handler_label_map): New.
12753 (struct eh_region): Add aka member.
12754 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
12755 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
12756 (for_each_eh_label, for_each_eh_label_1): New.
12757 (init_eh): Register exception_handler_label_map.
12758 (free_eh_status): Use free_region.
12759 (find_exception_handler_labels): Use the map, not the list.
12760 (remove_exception_handler_label): Likewise.
12761 (maybe_remove_eh_handler): Likewise.
12762 (remove_eh_handler): Use the region aka bitmap.
12763 * except.h (exception_handler_labels): Remove.
12764 (for_each_eh_label): Declare.
12765 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
12766 * loop.c (invalidate_loops_containing_label): New.
12767 (find_and_verify_loops): Use it. Use for_each_eh_label.
12768 * sched-rgn.c (is_cfg_nonregular): Use
12769 current_function_has_exception_handlers.
12771 2002-04-09 Richard Henderson <rth@redhat.com>
12773 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
12774 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
12775 Do not return changed status.
12776 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
12777 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
12778 New functions that do return changed status.
12779 * sbitmap.h: Update decls.
12780 * gcse.c, lcm.c: Use _cg functions as needed.
12782 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
12784 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
12785 (sh64-*-elf*, sh-*-rtemself*): Likewise.
12786 * config/sh/embed_bb.c: New file.
12787 * config/sh/embed-elf.h: New file.
12788 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
12789 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
12790 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12792 (SUBTARGET_CPP_PTR_SPEC): Don't define.
12793 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
12794 Add subtarget_asm_endian_spec.
12795 (ASM_SPEC): Use subtarget_asm_endian_spec.
12796 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
12797 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
12798 (WCHAR_UNSIGNED): Define.
12799 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
12800 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12801 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
12803 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
12804 (sh_adjust_cost): Likewise.
12805 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12807 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
12808 (WCHAR_TYPE_SIZE): Likewise.
12809 (ASM_SPEC): Use subtarget_asm_endian_spec.
12810 (SH_ELF_WCHAR_TYPE): #undef/ #define.
12811 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
12812 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
12813 (MAX_WCHAR_TYPE_SIZE): Don't #define .
12814 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
12815 (USER_LABEL_PREFIX): Don't #undef /#define .
12816 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12817 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
12818 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
12819 (ASM_SPEC): Likewise.
12820 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
12821 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
12822 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
12823 (LIB2FUNCS_EXTRA): Define.
12824 * t-sh64 (LIB2FUNCS_EXTRA): Define.
12825 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
12826 (LIB1ASMFUNCS_CACHE): Define.
12827 (LIB2FUNCS_EXTRA): Redefine empty.
12829 2002-04-08 Richard Henderson <rth@redhat.com>
12831 * reorg.c (get_branch_condition): Use reversed_comparison_code.
12833 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12835 * config/m68hc11/larith.asm (__map_data_section): Fix condition
12836 and optimize for size.
12837 (__do_global_ctors): Fix pointer comparison.
12838 (__do_global_dtors): Likewise.
12840 2002-04-09 David S. Miller <davem@redhat.com>
12842 * config/sparc/sparc.c (sparc_extra_constraint_check): New
12843 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
12844 allow reloading pseudos.
12845 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
12846 * config/sparc/sparc-protos.h: Declare it.
12848 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
12849 unsigned comparison warning.
12850 (output_restore_regs): Mark leaf_function as unused.
12852 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12854 * expr.c (is_aligning_offset): New function.
12855 (expand_expr, case COMPONENT_EXPR): Call it.
12857 2002-04-08 David S. Miller <davem@redhat.com>
12860 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
12862 Make init_priority work on Sparc when using GNU ld.
12863 * config/sparc/linux.h, config/sparc/linux64.h,
12864 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
12865 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
12866 * config/sparc/sol2-gld.h: New file to do the same.
12867 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
12868 sparc/sol2-gld.h to tm_file.
12870 PR optimization/4328
12871 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
12872 * doc/md.texi: Document it.
12873 * config/sparc/sparc.md (movdi_insn_sp64_novis,
12874 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
12875 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
12876 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
12877 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
12879 2002-04-08 Andreas Jaeger <aj@suse.de>
12881 * stmt.c (expand_asm_operands): Revert last patch from Richard
12884 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12886 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
12887 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
12889 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12891 * doc/contrib.texi (Contributors): Add David O'Brien.
12893 2002-04-08 Alan Modra <amodra@bigpond.net.au>
12895 * configure.in (auto-build.h): Use target_alias and build_alias
12896 when running configure.
12897 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
12898 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
12899 * configure: Regenerate.
12901 2002-04-07 David S. Miller <davem@redhat.com>
12903 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
12905 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12908 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
12909 generating 32-bit pic code.
12911 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
12913 * cppinit.c (cpp_create_reader): Initialize
12914 discard_comments_in_macro_exp.
12915 (COMMAND_LINE_OPTIONS): Add "-CC" option.
12916 (cpp_handle_option): Handle "-CC" option.
12917 * cpplex.c (save_comment): If saving a C++ comment in
12918 a directive, convert it to a C comment.
12919 (_cpp_lex_direct): Pass second comment start character to
12920 save_comment to indicate comment type.
12921 * cpplib.c (_cpp_handle_directive): If processing
12922 a "#define" directive and discard_comments_in_macro_exp
12923 is false, re-enable saving of comments.
12924 (lex_macro_node): If discard_comments_in_macro_exp is false,
12925 discard any comments before the macro identifier.
12926 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
12928 * cppmacro.c (cpp_get_token): If expanding a macro while
12929 processing a directive, discard any comments we might encounter.
12930 (parse_params): If discard_comments_in_macro_exp is false,
12931 ignore comments in the macro parameter list.
12932 * gcc.c (cpp_unique_options): Add "-CC" option.
12933 (option_map): Map "--comments-in-macros" to "-CC".
12934 * doc/cppopts.texi: Document "-CC" option.
12935 * f/lang-specs.h: Add "-CC" option.
12936 * testsuite/gcc.dg/cpp/maccom1.c: New test.
12937 * testsuite/gcc.dg/cpp/maccom2.c: New test.
12938 * testsuite/gcc.dg/cpp/maccom3.c: New test.
12939 * testsuite/gcc.dg/cpp/maccom4.c: New test.
12940 * testsuite/gcc.dg/cpp/maccom5.c: New test.
12941 * testsuite/gcc.dg/cpp/maccom6.c: New test.
12943 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
12946 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
12948 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12951 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12954 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
12955 RTX_UNCHANGING_P for the functions arguments when a tail call
12958 2002-04-06 Jason Merrill <jason@redhat.com>
12960 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
12961 (parse_options_and_default_flags): Set them appropriately.
12962 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
12964 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
12966 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
12969 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
12972 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
12973 types come in by-reference. Fix typo in comment.
12975 2002-04-05 David S. Miller <davem@redhat.com>
12977 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
12978 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
12979 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
12980 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
12982 2002-04-05 David S. Miller <davem@redhat.com>
12984 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
12985 are not going to emit return instructions, emit at least a nop
12986 for the sake of sane backtraces.
12988 2002-04-05 Richard Henderson <rth@redhat.com>
12990 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
12992 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
12994 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
12996 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
12998 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
12999 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
13000 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
13002 2002-04-05 Andreas Schwab <schwab@suse.de>
13004 * c-convert.c: Include c-common.h.
13005 * Makefile.in (c-convert.o): Updated.
13007 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13009 * mklibgcc.in: Use separate libgcc.map for each multilib.
13010 * Makefile.in (distclean): Don't remove libgcc.map here.
13012 2002-04-05 Jakub Jelinek <jakub@redhat.com>
13014 * Makefile.in (s-mlib): Handle --disable-multilib by separate
13015 genmultilib invocation.
13017 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
13019 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
13020 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
13021 to num_gprs for symmetry.
13022 * config/mips/mips.c: Adjust accordingly.
13024 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13026 * c-common.c (truthvalue_conversion): Rename, update.
13027 * c-common.h (c_common_truthvalue_conversion): New.
13028 * c-convert.c (convert): Update.
13029 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13030 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
13031 * c-typeck.c (build_binary_op, build_unary_op,
13032 build_conditional_expr): Update.
13033 * fold-const.c (constant_boolean_node, fold): Use langhook.
13034 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
13035 * langhooks.h (struct lang_hooks): New hook.
13036 * stmt.c (expand_decl_cleanup): Use langhook.
13037 * tree.h (truthvalue_conversion): Remove.
13039 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13041 2002-04-05 Alan Modra <amodra@bigpond.net.au>
13043 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
13044 Add rules to make null object file.
13046 2002-04-04 Jim Blandy <jimb@redhat.com>
13048 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
13049 macro formal parameter names.
13051 2002-04-04 David S. Miller <davem@redhat.com>
13053 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
13055 2002-04-04 Richard Henderson <rth@redhat.com>
13058 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
13059 Support copies into and out of memory. Don't accept allows_reg
13060 and allows_mem as gospel.
13062 2002-04-04 Richard Henderson <rth@redhat.com>
13065 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
13066 (write_dependence_p): Likewise.
13068 2002-04-04 Richard Henderson <rth@redhat.com>
13070 * predict.c (estimate_bb_frequencies): Do frequency calculation
13071 with a volatile temporary.
13073 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
13075 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
13077 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13080 * final.c (final_start_function): Don't bump profile_label_no here...
13081 (final_end_function): ...but here.
13083 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13085 * config/sparc/sparc.md (pic): New attribute.
13086 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
13088 (split after do_builtin_setjmp_setup): New.
13090 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13093 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
13096 2002-04-04 Jakub Jelinek <jakub@redhat.com>
13098 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
13099 UNITS_PER_WORD for zero sized aggregates.
13101 2002-04-03 David S. Miller <davem@redhat.com>
13103 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
13104 one-character spec for this, just use %(link_gcc_c_sequence).
13106 2002-04-03 David S. Miller <davem@redhat.com>
13108 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
13111 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13113 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
13114 (DWARF_FRAME_RETURN_COLUMN): Move.
13115 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13116 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
13117 * pa.c (except.h, predict.h): Include.
13119 (store_reg_modify, set_reg_plus_d): Revise prototypes.
13120 (output_ascii): Add cast.
13121 (store_reg_modify): Revise to add frame notes.
13122 (set_reg_plus_d): Likewise.
13123 (compute_frame_size): Include space for eh data registers in frame if
13124 the current function calls eh_return.
13125 (hppa_expand_prologue): Ensure register %r2 is saved if the current
13126 function calls eh_return. Save eh data registers if the current
13127 function calls eh_return. Fix code to add frame notes. Emit
13128 blockage to prevent insns with frame notes being scheduled in the
13129 delay slot of calls.
13130 (hppa_expand_epilogue): Restore eh data registers and do final stack
13131 adjustment if the current function calls eh_return. Don't add frame
13133 (output_call): Revise for change in length of call insn. Don't do
13134 return pointer adjustment for an unconditional jump in the delay slot
13135 of a call when using frame notes.
13136 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
13137 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
13138 (ARG_POINTER_CFA_OFFSET): Define.
13139 * pa.md (return_external_pic): New pattern.
13140 (prologue): Correct formatting. Use return_external_pic if current
13141 function calls eh_return.
13142 (call_internal_symref, call_value_internal_symref,
13143 sibcall_internal_symref, sibcall_value_internal_symref): Change default
13144 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
13146 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
13148 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
13149 list of targets to check using "nop" insn.
13150 * configure: Rebuilt.
13152 2002-04-04 Alan Modra <amodra@bigpond.net.au>
13154 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
13156 2002-04-03 David S. Miller <davem@redhat.com>
13158 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
13159 library sequence passed to the linker.
13160 (LINK_COMMAND_SPEC): Use it.
13161 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
13162 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
13163 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13165 2002-04-03 Jason Merrill <jason@redhat.com>
13167 * except.c (struct eh_status): Remove protect_list.
13168 (begin_protect_partials, end_protect_partials): Remove.
13169 (add_partial_entry): Remove.
13170 * except.h: Remove prototypes.
13172 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
13173 expand_decl_cleanup_eh.
13176 * tree.h (CLEANUP_EH_ONLY): New macro.
13177 * stmt.c (expand_decl_cleanup_eh): New fn.
13178 (expand_cleanups): Check CLEANUP_EH_ONLY.
13179 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
13180 Use expand_decl_cleanup_eh.
13181 (expand_stmt): Adjust.
13182 * c-common.h: Adjust prototype.
13184 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
13186 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
13187 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
13188 (cris_target_asm_function_epilogue): Ditto.
13189 (cris_initial_frame_pointer_offset): Ditto.
13190 (cris_simple_epilogue): Ditto.
13191 (cris_expand_builtin_va_arg): Variable-size types come in
13194 2002-04-03 David S. Miller <davem@redhat.com>
13196 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
13198 (set_fast_math): Correct 'fsr' type.
13200 2002-04-03 Richard Henderson <rth@redhat.com>
13203 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
13204 * toplev.c (check_global_declarations): Use it.
13205 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
13206 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13207 (LANG_HOOKS_DECLS): Add it.
13208 * langhooks.c (lhd_warn_unused_global_decl): New.
13209 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13210 * c-objc-common.c (c_warn_unused_global_decl): New.
13211 * c-tree.h (c_warn_unused_global_decl): Declare.
13212 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
13214 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
13216 * langhooks-def.h (lhd_set_decl_assembler_name,
13217 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
13218 (LANG_HOOKS_INITIALIZER): Update.
13219 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
13220 * langhooks.h (struct lang_hooks): New hook.
13221 * tree.c (set_decl_assembler_name): Move to langhooks.c.
13222 (lang_set_decl_assembler_name): Remove.
13223 (init_obstacks): Don't set hook.
13224 (decl_assembler_name): New function.
13225 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
13226 (decl_assembler_name): New.
13227 (lang_set_decl_assembler_name): Remove.
13229 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13231 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
13232 works properly with .hidden symbols.
13233 * configure: Rebuilt.
13234 * config.in: Rebuilt.
13235 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13236 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
13237 properly with .hidden symbols.
13239 2002-04-03 Jakub Jelinek <jakub@redhat.com>
13242 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
13245 2002-04-03 Richard Henderson <rth@redhat.com>
13248 * sched-rgn.c (sets_likely_spilled): New.
13249 (sets_likely_spilled_1): New.
13250 (add_branch_dependences): Use it.
13252 2002-04-02 Richard Henderson <rth@redhat.com>
13255 * loop.h (LOOP_FIRST_PASS): New.
13256 * loop.c (strength_reduce): Mind it when deciding to unroll.
13257 * toplev.c (rest_of_compilation): Set it.
13259 2002-04-02 David S. Miller <davem@redhat.com>
13261 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
13262 mems_ok_for_ldd_peep when the order of the loads being examined
13264 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
13265 existing comment to increase comprehension of this situation.
13267 2002-04-02 Zack Weinberg <zack@codesourcery.com>
13269 * config/sh/sh.md: Don't use union real_extract.
13271 2002-04-02 Richard Henderson <rth@redhat.com>
13273 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
13275 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13277 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
13278 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
13279 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
13280 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
13281 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
13282 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
13283 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
13284 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
13285 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
13286 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
13287 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
13288 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
13289 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
13290 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
13291 Include as many configury headers via tm_file as possible. This
13292 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
13293 * config/openbsd-oldgas.h: New file.
13294 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
13295 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
13296 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
13297 config/i386/i386-coff.h, config/i386/i386-interix.h,
13298 config/i386/iscdbx.h, config/i386/linux-aout.h,
13299 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
13300 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
13301 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
13302 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
13303 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
13304 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
13305 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
13306 config/i386/vxi386.h: Do not directly include configury headers.
13307 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
13308 Directly include configury headers that are no longer automatically
13309 included by the above headers.
13310 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
13311 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
13312 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
13313 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
13314 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
13315 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
13316 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
13317 (TARGET_VERSION): Define.
13318 * config/i386/beos-elf.h, config/i386/freebsd.h,
13319 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
13320 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
13321 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
13322 config/i386/sco5.h, config/i386/sysv4.h
13323 (TARGET_VERSION): Do not need to protect.
13324 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
13325 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
13326 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
13327 config/i386/i386-interix.h, config/i386/linux-aout.h,
13328 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
13329 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
13330 (YES_UNDERSCORES): Do not define - not needed.
13331 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
13332 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13333 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
13334 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
13335 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
13336 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
13337 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
13338 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
13340 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
13341 Richard Henderson <rth@redhat.com>
13344 * function.c (assign_temp): Accept either type or decl argument.
13345 Detect variables whose size is too large to fit into an integer.
13346 * stmt.c (expand_decl): Pass the decl, not the type.
13348 2002-04-02 David O'Brien <obrien@FreeBSD.org>
13350 * protoize.c: Match include directory usage with cppdefault.c.
13352 2002-04-03 Jeffrey A Law (law@redhat.com)
13353 Hans-Peter Nilsson <hp@bitrange.com>
13355 * combine.c (simplify_comparison): Avoid narrowing a comparison
13356 with a paradoxical subreg when doing so would drop signficant bits.
13358 2002-04-02 Steve Ellcey <sje@cup.hp.com>
13360 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
13361 if POINTERS_EXTEND_UNSIGNED is defined.
13363 2002-04-02 Richard Henderson <rth@redhat.com>
13366 * local-alloc.c (contains_replace_regs): LO_SUM may contain
13369 2002-04-02 Richard Henderson <rth@redhat.com>
13371 * doc/standards.texi: Document required freestanding libc entry points.
13373 2002-04-02 Alan Modra <amodra@bigpond.net.au>
13375 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
13376 associated splitter. Remove MQ constraint.
13377 (ctrdi_internal4): Correct CCmode clobber.
13379 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13381 * milli64.S ($$dyncall): New function.
13382 * t-linux (LIB1ASMFUNCS): Revise module list.
13383 (LIB1ASMSRC): Use pa/milli64.S.
13385 2002-04-02 Richard Henderson <rth@redhat.com>
13387 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
13388 rename solaris_sys_varargs_h.
13390 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13392 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
13393 the same mode as its component.
13395 2002-04-02 Richard Henderson <rth@redhat.com>
13398 * final.c (this_is_asm_operands): Export.
13399 * output.h (this_is_asm_operands): Declare.
13400 * config/i386/i386.c (print_operand): Error odd asm operands.
13402 2002-04-02 Richard Henderson <rth@redhat.com>
13405 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
13407 2002-04-01 Richard Henderson <rth@redhat.com>
13410 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
13411 * fixinc/fixincl.x: Rebuild.
13413 2002-04-01 Richard Henderson <rth@redhat.com>
13415 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
13416 (atomic_alloc, atomic_free): New.
13417 (SIZE, MASK_FOR, PTR_IN): New.
13418 (emergency_reg_state, emergency_reg_state_free): New.
13419 (emergency_labeled_state, emergency_labeled_state_free): New.
13420 (reg_state_alloced, labeled_state_alloced): New.
13421 (alloc_reg_state, free_reg_state): New.
13422 (alloc_label_state, free_label_state, free_label_states): New.
13423 (push, pop, dup_state_stack, free_state_stack): Use them.
13424 (desc_label_state): Likewise.
13425 (uw_frame_state_for): Free label states and state stack.
13426 (uw_update_reg_address): Eliminate warnings.
13428 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
13430 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
13431 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
13433 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13435 * c-decl.c (grokdeclarator): Update.
13436 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13437 * c-tree.h (c_mark_addressable): New.
13438 * c-typeck.c (default_function_array_conversion, build_unary_op,
13439 build_array_ref, convert_for_assignment): Update.
13440 (mark_addressable): Rename.
13441 * calls.c (try_to_integrate, expand_call): Use langhook.
13442 * expr.c (expand_expr): Use langhook.
13443 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
13444 * langhooks.h (struct lang_hooks): New hook.
13445 * stmt.c (expand_asm_operands): Use langhook.
13446 * tree.h (mark_addressable): Remove.
13448 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13450 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13452 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
13453 in previous change.
13455 2002-04-01 Bob Wilson <bob.wilson@acm.org>
13457 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
13458 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
13460 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13462 * c-common.c (unsigned_conversion_warning, convert_and_check,
13463 unsigned_type, signed_type, shorten_compare,
13464 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
13465 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
13466 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
13468 * c-decl.c (grokdeclarator): Update.
13469 * c-format.c (check_format_types): Update.
13470 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13471 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13472 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
13473 * convert.c (convert_to_integer): Use new hooks.
13474 * expmed.c (make_tree): Use new hooks.
13475 * expr.c (store_expr): Use new hooks.
13476 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
13477 all_ones_mask_p, unextend, fold): Use new hooks.
13478 * langhooks.h (struct lang_hooks_for_types): New hooks.
13479 * tree.h (signed_or_unsigned_type, signed_type,
13480 unsigned_type): Remove.
13482 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13483 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13485 2002-03-31 Richard Henderson <rth@redhat.com>
13487 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
13488 (desc_frgr_mem): Fix reference to f16-f31.
13490 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13492 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
13493 RTVEC_ELT): Const-ify.
13494 * varray.h (VARRAY_CHECK): Const-ify.
13495 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
13496 ggc_mark_rtvec, ggc_mark): Const-ify.
13498 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13500 * diagnostic.c: Include langhooks-def.h.
13501 * Makefile.in (diagnostic.o): Update.
13503 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13505 * c-common.c (c_unsafe_for_reeval): Rename.
13506 * c-common.h (c_unsafe_for_reeval): Rename.
13507 * c-decl.c (finish_incomplete_decl): Rename.
13508 (c_init_decl_processing): Don't set langhook.
13509 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13510 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13511 * c-objc-common.c (c_objc_common_init): Don't set langhook.
13512 * c-tree.h (finish_incomplete_decl): Rename.
13513 * langhooks-def.h (lhd_unsafe_for_reeval): New.
13514 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
13515 (LANG_HOOKS_INITIALIZER): Update.
13516 * langhooks.c (lhd_unsafe_For_reeval): New.
13517 * langhooks.h (struct langhooks): New hooks.
13518 * toplev.c (incomplete_decl_finalize_hook): Remove.
13519 (wrapup_global_declarations): Update.
13520 * tree.c (lang_unsafe_for_reeval): Remove.
13521 (unsafe_for_reeval): Update.
13522 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
13525 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
13526 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
13528 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13530 * diagnostic.c (print_error_function): Remove.
13531 (default_print_error_function): Rename.
13532 (report_error_function): Update.
13533 * diagnostic.h (print_error_function): Remove.
13534 (default_print_error_function): Remove.
13535 * langhooks-def.h (struct diagnostic_context): Predeclare.
13536 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
13537 (LANG_HOOKS_INITIALIZER): Update.
13538 * langhooks.h (struct diagnostic context): Predeclare.
13539 (struct lang_hooks): New hook.
13541 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13543 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
13544 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
13546 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
13547 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
13548 of PIC_OFFSET_TABLE_REGNUM thruout.
13549 * config/rs6000/rs6000.md: Likewise.
13550 * config/rs6000/darwin.h: Likewise.
13552 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13554 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
13555 unsigned HOST_WIDE_INT, not unsigned int.
13557 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13559 PR middle-end/6096, middle-end/6098, middle-end/6099
13560 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
13562 (fill_slots_from_thread): Likewise.
13564 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13566 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
13567 floating fields in float regs.
13568 (function_arg_record_value_2): Likewise.
13570 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
13572 * config/mmix/mmix.md (define_constants): Remove misleading
13573 FIXME. Add MMIX_fp_rO_OFFSET.
13574 ("nonlocal_goto_receiver"): Don't have stack-frame address of
13575 saved rO as part of the pattern. Remove FIXME.
13576 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
13577 here, at output-time.
13579 2002-03-31 Jakub Jelinek <jakub@redhat.com>
13582 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
13584 (output_v9branch): Likewise.
13586 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
13588 * gcc.c: Revert previous patch for now.
13589 * config/i386/djgpp.h: Likewise.
13591 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
13593 * config/mmix/crti.asm (_init): Register _fini with atexit.
13594 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
13596 2002-03-31 Richard Henderson <rth@redhat.com>
13599 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
13600 (ASM_OUTPUT_DEF_FROM_DECLS): New.
13602 2002-03-31 Richard Henderson <rth@redhat.com>
13604 * libgcc2.c (__bb_exit_func): Make static.
13606 * config/alpha/alpha.md (trap): New.
13608 2002-03-31 Richard Henderson <rth@redhat.com>
13610 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
13611 promoted argument types; build trap.
13612 (expand_builtin_trap): New.
13613 (expand_builtin): Use it.
13614 * stmt.c (expand_nl_goto_receivers): Likewise.
13615 * expr.h (expand_builtin_trap): Declare.
13616 * libfuncs.h (LTI_abort, abort_libfunc): New.
13617 * optabs.c (init_optabs): Init abort_libfunc.
13619 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
13621 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13622 (LINK_COMMAND_SPEC): ... from here.
13623 (init_gcc_specs): Duplicate it here too, omitting
13624 shared_name in the second copy.
13625 (init_spec): Test for duplicate
13626 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13628 2002-03-30 David S. Miller <davem@redhat.com>
13630 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13631 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
13633 2002-03-30 Roger Sayle <roger@eyesopen.com>
13634 Richard Henderson <rth@redhat.com>
13636 * regmove.c (combine_stack_adjustments_for_block): Avoid
13637 emitting a stack adjustment of zero bytes. Let delete_insn
13640 2002-03-30 Richard Henderson <rth@redhat.com>
13642 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
13643 (sparc_emitting_epilogue): New.
13644 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
13645 * config/sparc/sparc-protos.h: Update.
13646 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
13647 (TARGET_SWITCHES): Update.
13648 * config/sparc/sparc.md (return): Remove.
13649 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
13650 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
13651 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
13652 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13653 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
13654 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
13655 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
13656 Remove MASK_EPILOGUE.
13657 * doc/invoke.texi: Update.
13659 2002-03-30 Daniel Berlin <dan@dberlin.org>
13661 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
13662 CPP will start the file for us.
13664 2002-03-30 Richard Henderson <rth@redhat.com>
13667 * config/ia64/ia64.c (group_barrier_needed_p): Special case
13668 prologue_allocate_stack.
13669 (ia64_single_set): Use insn codes for recognition of special
13670 cases, not rtl matching.
13671 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
13673 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
13675 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
13677 2002-03-30 Richard Henderson <rth@redhat.com>
13680 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
13681 or -fomit-frame-pointer with profiling.
13682 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13683 (FUNCTION_PROFILER): Do nothing.
13684 (PROFILE_HOOK): New.
13685 * config/sparc/sparc.c (sparc_override_options): Don't check
13686 code models for profiling.
13687 (sparc_function_profiler): Remove.
13688 (sparc_profile_hook): New.
13689 * config/sparc/sparc-protos.h: Update.
13691 2002-03-30 Jakub Jelinek <jakub@redhat.com>
13693 PR optimization/6086
13694 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
13695 of SUBREG of volatile MEM or because the MEM was mode dependent,
13696 return CLOBBER instead of unmodified SUBREG.
13698 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
13700 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
13701 when not optimizing.
13703 * toplev.c (rest_of_compilation): Cann mark_constant_function
13704 only when optimizing.
13706 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
13709 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
13710 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
13711 (try_optimize_cfg): clear all AUX fields.
13713 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
13714 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
13715 (ix86_address_cost): Be prepared for SUBREGed registers.
13716 (legitimate_address_p): Accept SUBREGed registers.
13718 2002-03-29 Richard Henderson <rth@redhat.com>
13721 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
13723 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13725 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
13726 for aggregate and TFmode types.
13728 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13730 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
13732 2002-03-29 Richard Henderson <rth@redhat.com>
13735 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
13736 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
13738 2002-03-29 Richard Henderson <rth@redhat.com>
13741 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
13742 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
13743 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
13744 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
13746 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
13748 2002-03-29 Dale Johannesen <dalej@apple.com>
13750 * loop.c (combine_movables): Do allow combination of pseudos.
13752 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
13754 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
13755 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
13756 No functional change except ...
13757 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
13758 * doc/install.texi (*-*-freebsd*): Document port configuration.
13760 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13762 * Makefile.in (convert.o, calls.o, expmed.o): Update.
13763 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
13765 * builtin-types.def (BT_PTRMODE): Update.
13766 * c-common.c (type_for_size): Rename c_common_type_for_size.
13767 (type_for_mode): Similarly.
13768 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
13770 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
13771 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
13772 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
13774 * c-typeck.c (common_type, comptypes, default_conversion):
13776 * calls.c: Include langhooks.h.
13777 (emit_library_call_value_1): Use new hooks. Avoid redundant
13779 * convert.c: Include langhooks.h
13780 (convert_to_pointer, convert_to_integer): Use new hooks.
13781 * except.c (init_eh): Similarly.
13782 * expmed.c: Include langhooks.h.
13783 (expand_mult_add): Use new hooks.
13784 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
13785 try_casesi): Similarly.
13786 * fold-const.c (optimize_bit_field_compare, make_range,
13787 decode_field_reference, fold_truthop, fold): Similarly.
13788 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
13789 put_var_into_stack): Similarly.
13790 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
13791 LANG_HOOKS_TYPE_FOR_SIZE): New.
13792 (LANG_HOOKS_TYPES_INITIALIZER): Update.
13793 * langhooks.h (lang_hooks_for_types): New hooks.
13794 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
13795 * tree.c (get_unwidened, get_narrower): Similarly.
13796 * tree.h (type_for_mode, type_for_size): Remove.
13797 * varasm.c (force_const_mem): Use new hooks.
13798 * utils2.c (nonbinary_modular_operation): Update.
13800 * objc-act.c (handle_impent): Update.
13801 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
13804 2002-03-29 Steve Ellcey <sje@cup.hp.com>
13806 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
13807 * config/ia64/ia64.c (basereg_operand): New.
13808 * config/ia64/ia64-protos.h (basereg_operand): Declare.
13809 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
13811 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13813 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
13814 unwind information when frame_pointer_needed.
13815 (mmix_assemble_integer): Tweak wording in comment.
13817 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13819 * Makefile.in (except.o): Update.
13820 * except.c: Include langhooks.h.
13821 (init_eh): Use langhook.
13822 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
13823 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
13824 (LANG_HOOKS_INITIALIZER): Update.
13825 * langhooks.h (lang_hooks_for_types): New.
13826 (struct lang_hooks): Add it.
13827 * tree.c (make_lang_type_fn, make_lang_type): Remove.
13828 * tree.h (make_lang_type_fn, make_lang_type): Remove.
13830 * alpha/alpha.c: Include langhooks.h.
13831 (alpha_build_va_list): Use langhook.
13832 * d30v/d30v.c: Include langhooks.h.
13833 (d30v_build_va_list): Use langhook.
13834 * i386/i386.c: Include langhooks.h.
13835 (ix86_build_va_list): Use langhook.
13836 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
13837 * s390/s390.c: Include langhooks.h.
13838 (s390_build_va_list): Use langhook.
13839 * stormy16/stormy16.c: Include langhooks.h.
13840 (stormy16_build_va_list): Use langhook.
13842 2002-03-29 Jakub Jelinek <jakub@redhat.com>
13845 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
13847 (length): Compute variable length for branches/calls/jumps here.
13848 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
13849 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
13850 define branch_type attribute.
13851 (divsi3_sp32): Maximum length is 6 not 7.
13852 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
13853 call_address_untyped_struct_value_sp32,
13854 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
13855 * config/sparc/sparc.c (empty_delay_slot): New function.
13856 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
13857 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
13859 2002-03-29 Jakub Jelinek <jakub@redhat.com>
13861 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
13862 nonzero_bits if not needed.
13863 (nonzero_bits) [XOR]: Likewise.
13864 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
13865 reg_last_set_mode and mode are both MODE_INT, but not equal.
13866 (record_value_for_reg): Compute reg_last_set_nonzero_bits
13867 in nonzero_bits_mode for MODE_INT modes.
13869 2002-03-28 Richard Henderson <rth@redhat.com>
13872 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
13873 to GAS. Correct drift between alternatives.
13875 2002-03-28 Richard Henderson <rth@redhat.com>
13878 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
13880 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
13882 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
13883 emulation to the linker.
13885 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
13887 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
13888 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13890 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
13892 * combine.c (simplify_and_const_int): Make sure to apply mask
13893 when force_to_mode returns a constant integer. PR3311.
13895 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13897 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
13899 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13901 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
13902 and Objective-C Dialect Options.
13904 2002-03-28 Richard Henderson <rth@redhat.com>
13906 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
13907 comparison should be done vs !=0 not >0 return code. Tidy cases.
13909 2002-03-28 Richard Henderson <rth@redhat.com>
13911 * c-decl.c (finish_function): New arg can_defer_p. Pass it
13912 on to c_expand_body.
13913 * c-tree.h (finish_function): Update decl.
13914 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
13916 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
13918 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
13920 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
13922 * rtlanal.c: Include flags.h
13923 (may_trap_p): Do not mark FP operations if trapping
13924 if !flag_trapping_math
13925 * Makefile.in (rtlanal.o): Add dependency on flag.h
13926 * ifcvt.c (noce_operand_ok): Avoid the lameness.
13928 2002-03-27 Zack Weinberg <zack@codesourcery.com>
13930 * mips.md: Use dconst1, not 1.0, as first argument of
13931 REAL_VALUE_LDEXP. Don't use union real_extract.
13933 2002-03-28 Alan Modra <amodra@bigpond.net.au>
13935 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
13936 rather than $target. Heed program_prefix and
13937 program_transform_name. Search for gas in cross-compiler case too.
13938 "test -x" rather than "test -f".
13939 (gcc_cv_ld): Likewise.
13940 (gcc_cv_nm): Heed program_prefix and program_transform_name.
13941 (gcc_cv_objdump): Likewise.
13942 * configure: Regenerate.
13944 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13946 * Makefile.in (attribs.o): Update.
13947 * attribs.c: Include langhooks.h.
13948 (decl_attributes): Use langhook.
13949 * c-decl.c (insert_default_attributes): Rename.
13950 * c-tree.h (c_insert_default_attributes): New.
13951 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
13952 (LANG_HOOKS_INITIALIZER): Update.
13953 * langhooks.h (struct lang_hooks): New hook.
13954 * tree.h (insert_default_attributes): Remove.
13956 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
13958 2002-03-27 Andreas Schwab <schwab@suse.de>
13960 * config/i386/i386.c (classify_argument): Also check for
13963 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13965 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
13968 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
13970 * i960.md (ret): Set PC.
13971 (nonlocal_goto): Fix expander.
13972 * builtins.c (epxand_builin_longjmp): Check that we've emitted
13975 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
13977 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
13978 of libcall regions.
13980 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13982 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
13983 assigning to BLOCK_FOR_INSN directly.
13985 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
13987 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
13989 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13991 * c-common.c (c_expand_expr): Fix prototype.
13992 * c-common.h (c_expand_expr): Always declare, update.
13993 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13994 * c-objc-common.c (c_objc_common_init): No global hook.
13995 * expr.c (expand_expr): Use langhook.
13996 * expr.h (enum expand_modifier): Conditionally declare.
13997 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
13998 (LANG_HOOKS_INITIALIZER): Update.
13999 * langhooks.c (lhd_expand_expr): New.
14000 * langhooks.h (struct lang_hooks): New hook.
14001 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
14002 (lang_independent_init): Don't default hook.
14004 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
14006 2002-03-27 Richard Henderson <rth@redhat.com>
14009 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
14010 TARGET_CONST_GP. Simplify conditions.
14012 2002-03-27 Richard Henderson <rth@redhat.com>
14014 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14015 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
14016 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
14018 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
14020 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
14021 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
14022 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
14023 Remove unnecessary masks.
14024 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14025 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
14026 -mwindows, -mdll switches and their negations.
14028 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
14030 * gcc-common.c (lang_mark_false_label_stack): Remove.
14031 * ggc.h (lang_mark_false_label_stack): Similarly.
14033 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
14035 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
14037 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
14038 or __rtems_ is defined.
14040 2002-03-26 Richard Henderson <rth@redhat.com>
14042 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
14043 if a non-trivial load was emitted.
14044 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
14045 in high+extra+low case.
14047 2002-03-26 Richard Henderson <rth@redhat.com>
14049 * config.gcc (sparc*-solaris): Use float_format=sparc.
14051 2002-03-26 Richard Henderson <rth@redhat.com>
14053 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14054 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
14055 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
14056 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
14057 (WINT_TYPE_SIZE): Fix at 32.
14059 2002-03-26 Richard Henderson <rth@redhat.com>
14061 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
14062 until after eh landing pad generation.
14063 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
14064 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
14066 2002-03-26 Richard Henderson <rth@redhat.com>
14068 * expr.h (ADD_PARM_SIZE): One more convert for INC.
14070 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
14072 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
14073 and warning switches.
14074 (cc1_options): Likewise.
14076 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
14078 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
14079 Restore more of the signal context. Set no_reg_stack_frame.
14080 * config/ia64/unwind-ia64.c (unw_state_record):
14081 Add no_reg_stack_frame, comments.
14082 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
14083 (uw_update_context): Adjust bsp when unwinding from leaf,
14084 but not signal frame.
14086 2002-03-26 David Edelsohn <edelsohn@gnu.org>
14088 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
14090 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14092 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
14094 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14097 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
14098 "Add a pool_range attribute", which was lost during the ARM/Thumb
14101 2002-03-26 Bob Wilson <bob.wilson@acm.org>
14103 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
14104 a register into the MAC16 accumulator.
14106 2002-03-26 Andrew Cagney <ac131313@redhat.com>
14108 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
14109 (Warning Options): Document -Wswitch-enum.
14110 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
14112 (warn_switch_enum): Define variables.
14113 * flags.h (warn_switch_enum): Declare variables.
14114 * stmt.c (expand_end_case_type): When warn_switch_enum /
14115 -Wswitch-enum, perform switch checks.
14118 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
14120 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
14121 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
14122 (reload_muladdsi_compare0_scratch): Delete.
14124 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
14126 * doc/install.texi (*-*-freebsd*): Update.
14128 2002-03-26 Richard Henderson <rth@redhat.com>
14130 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
14131 (SUB_PARM_SIZE): Cast DEC to ssizetype.
14133 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
14134 types from the normal argument frame.
14136 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
14137 variable sized objects by reference.
14138 (sparc_va_arg): Receive them by reference too.
14140 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
14142 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
14143 code to not restoring global registers.
14145 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
14147 * Makefile.in (ggc-common.o): Update.
14148 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
14149 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14150 * c-tree.h (c_mark_tree): New.
14151 * ggc-common.c: Include langhooks.h.
14152 (gcc_mark_trees): Use new langhook.
14153 * ggc-callbacks.c: Delete file.
14154 * ggc.h (lang_mark_tree): Remove.
14155 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
14156 (LANG_HOOKS_INITIALIZER): Update.
14157 * langhooks.h (struct lang_hooks): New hook.
14159 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
14161 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14163 * doc/cpp.texi: Exclude entire Top node from printed manual.
14164 Move option index after directive index. Insert page breaks
14165 before GFDL and concept index. Index environment variables
14166 with command line options.
14167 * doc/cppenv.texi: Use @vtable for environment variable list.
14168 Add paragraph explaining semantics of empty elements in path
14169 variables. Exclude a cross-reference to Fishkill from the
14170 manpage. Remove an unnecessary cross-reference of the entry
14171 right above the referer. Don't use @anchor in text that goes
14173 * doc/cppopts.texi: Cross-reference the environment variables
14174 section, not the specific environment variable, for consistency.
14176 2002-03-25 Richard Henderson <rth@redhat.com>
14178 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
14179 anywhere in the block. Don't refer to insns that have been
14180 removed from the chain. Iterate backward through the new insns.
14181 Don't refer to edges that have been removed.
14183 2002-03-26 Alan Modra <amodra@bigpond.net.au>
14185 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
14186 test for overflow of constant.
14188 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
14191 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
14192 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
14193 these patterns on arm_archv4.
14195 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
14197 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
14200 2002-03-25 Zack Weinberg <zack@codesourcery.com>
14202 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
14203 float_handled, float_handler, float_signal, set_float_handler,
14204 and do_float_handler. Set handler for SIGFPE to crash_signal.
14205 * toplev.h: Don't prototype do_float_handler.
14207 * c-lex.c: Fold parse_float into lex_number. Make warning
14208 about portability of hex float constants more informative, and
14209 don't issue it on top of a syntax error.
14210 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
14212 * real.h: Define REAL_VALUE_ABS here...
14213 * simplify-rtx.c: ... not here. Fold check_fold_consts,
14214 simplify_unary_real, simplify_binary_real, and
14215 simplify_binary_is2orm1 into their callers.
14216 * tree.c: Fold build_real_from_int_cst_1 into caller.
14218 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
14220 * tsystem.h: Include float.h here...
14221 * libgcc2.c: ... not here.
14223 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
14225 Fixes for: PR bootstrap/3591, target/5676
14226 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
14227 defined. Do not disable exceptions or rtti.
14228 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
14229 mcore.h. Disable exceptions and rtti, since they are not
14232 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
14234 * c-decl.c (maybe_build_cleanup): Remove.
14235 * expr.c (expand_expr): Use langhook.
14236 * langhooks-def.h (lhd_return_null_tree,
14237 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
14238 (LANGHOOKS_INITIALIZER): Update.
14239 * langhooks.c (lhd_return_null_tree): New.
14240 * langhooks.h (struct lang_hooks): New hook.
14241 * tree-inline.c (initialize_inlined_parameters): Use langhook.
14242 * tree.h (maybe_build_cleanup): Remove.
14244 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14246 * regrename.c (build_def_use): Move recog_memoized
14247 before extract_insn.
14249 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14252 * expr.c (emit_group_store): Handle storing into CONCAT.
14254 2002-03-25 Jakub Jelinek <jakub@redhat.com>
14256 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
14257 corresponding MATCH_DUP.
14259 2002-03-24 Richard Henderson <rth@redhat.com>
14261 * unroll.c (unroll_loop): Zero label_map.
14263 * gcse.c: Include except.h.
14264 * Makefile.in (gcse.o): Update.
14266 2002-03-24 Richard Henderson <rth@redhat.com>
14268 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
14269 Do resolve_unique_section before shared data clause.
14271 2002-03-24 Richard Henderson <rth@redhat.com>
14273 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
14275 2002-03-24 Richard Henderson <rth@redhat.com>
14277 * recog.c (peephole2_optimize): Split blocks when EH insns are
14278 generated in the middle of a block. Do global life update if
14281 2002-03-24 Richard Henderson <rth@redhat.com>
14283 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
14285 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14288 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
14289 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
14290 (init_dependency_output): Don't make no_output decision here.
14292 2002-03-24 Andrew Cagney <ac131313@redhat.com>
14294 * stmt.c (check_for_full_enumeration_handling): Remove tests of
14295 warn_switch. Update description.
14296 (expand_end_case_type): Call check_for_full_enumeration_handling
14299 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14301 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
14302 (m68hc11_split_move): Call it to see if the source and destination
14303 operands use the same direction auto inc/dec mode, otherwise make the
14304 source an offsetable memory operand and generate an add.
14306 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14308 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
14309 register for operand 2.
14310 ("*subsi3_zero_extendqi"): Likewise.
14311 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
14312 bits so that it is compatible with a pop.
14313 ("*andhi3_gen"): Likewise.
14314 ("xorhi3"): Likewise.
14316 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14318 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
14320 (cpp_post_options): ... not here.
14322 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
14323 Aldy Hernandez <aldyh@redhat.com>
14325 Removal of separate preprocessor cpp0.
14327 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
14328 cpp0, install-common): Update.
14329 * c-common.c (flag_preprocess_only): New.
14330 (c_common_init): Preprocess for -E.
14331 * c-common.h (flag_preprocess_only): New.
14332 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
14333 * c-objc-common.c (c_init_decl_processing): Exit quickly
14334 for NULL return from c_common_init.
14335 * cpplib.h (cpp_preprocess_file): New.
14336 * cppmain.c (main, general_init, pfile, progname): Remove.
14337 (do_preprocessing): Rename cpp_preprocess_file, don't call
14338 cpp_finish. Don't close stdout here.
14339 (setup_callbacks): Update prototype.
14340 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
14342 * tradcpp.c (main): Ignore -quiet.
14344 * lang-specs.h (default_compilers): Preprocess with cc1obj.
14346 2002-03-24 Richard Henderson <rth@redhat.com>
14348 PR optimization/5742
14349 * machmode.def: Add inner mode field to complex modes.
14350 * config/mips/mips.c (mips_function_value): Always define. Add
14351 new argument to handle libcalls.
14352 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
14353 (FUNCTION_VALUE): Likewise.
14354 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
14355 * config/mips/mips-protos.h: Update.
14357 2002-03-23 Richard Henderson <rth@redhat.com>
14359 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
14360 * config/sparc/sparc-protos.h: Update.
14361 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
14363 2002-03-23 Richard Henderson <rth@redhat.com>
14365 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
14366 _start or _init begins the text segment.
14368 2002-03-23 David Edelsohn <edelsohn@gnu.org>
14370 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
14371 not HOST_WIDEST_INT.
14372 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
14374 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
14377 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
14378 operand argument to output_return_instruction.
14379 * arm.c (arm_print_operand, case 'd'): If the operand is
14380 const_true_rtx then just return.
14381 (arm_print_operand, case 'D'): If the operand is const_true_rtx
14384 2002-03-23 Andrew Cagney <ac131313@redhat.com>
14386 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
14387 (Warning Options): Document -Wswitch-default.
14388 * toplev.c (W_options): Add -Wswitch-default. Update comment on
14390 (warn_switch_default): Define variable.
14391 (warn_switch): Update comment.
14392 * flags.h (warn_switch_default): Declare variable.
14393 (warn_switch): Update comment.
14394 * stmt.c (expand_end_case): Check for and, when
14395 warn_switch_no_default, warn of a missing default case.
14397 2002-03-23 Alan Modra <amodra@bigpond.net.au>
14399 * real.h (N): Special case 128 bit doubles.
14401 * combine.c (simplify_comparison): When widening modes, ignore
14402 sign extension on CONST_INTs.
14404 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14406 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
14407 passed to adjust_address. Fix comment formatting.
14410 2002-03-22 Zack Weinberg <zack@codesourcery.com>
14412 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
14413 Always make REAL_VALUE_TYPE a struct containing an array of
14414 HOST_WIDE_INT, not a double. Tidy up the code deciding how
14415 big it is. Don't declare or use union real_extract.
14417 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
14418 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
14419 (print_operand), config/arm/arm.c (output_move_double),
14420 config/arm/arm.md (consttable_4, consttable_8),
14421 config/romp/romp.c (output_fpops), config/s390/s390.h
14422 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
14423 (xtensa_output_literal): Don't use union real_extract.
14425 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
14426 (sfmode_constant_to_ulong), config/ns32k/merlin.h
14427 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
14428 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
14429 (PRINT_OPERAND): Don't use local version of union
14432 * config/convex/convex.c (check_float_value), config/vax/vax.c
14433 (vax_float_literal), config/m88k/m88k.md (divdf3),
14434 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
14435 config/pdp11/pdp11.c (output_move_quad): Don't do host
14436 arithmetic on target floating point quantities.
14438 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
14439 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
14441 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
14442 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
14444 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
14445 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
14447 * print-rtl.c (print_rtx): Disable code which needs
14448 floating-point emulator.
14449 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
14450 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
14451 depending on HOST_FLOAT_FORMAT to be defined properly.
14453 * config/1750a/1750a.c (get_double, float_label): Delete.
14454 (print_operand): Delete huge commented-out chunk. Use
14455 REAL_VALUE_TO_DECIMAL.
14456 * config/1750a/1750a-protos.h: Delete prototypes of deleted
14458 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
14460 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
14461 Use REAL_VALUE_TO_DECIMAL as ELF version does.
14462 * config/m88k/m88k.c (real_power_of_2_operand,
14463 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
14464 real_extract out of the union; run the input through
14465 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
14466 from that into the union.
14467 * config/pdp11/pdp11.c (output_move_double): Rearrange
14468 parentheses to make automatic indenter happy.
14470 * doc/tm.texi (Cross-compilation): Rename node to "Floating
14471 Point" and rewrite to describe current situation. Also adjust
14472 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
14474 * doc/rtl.texi: Adjust cross reference.
14476 2002-03-22 Bob Wilson <bob.wilson@acm.org>
14478 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
14479 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
14480 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
14481 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
14482 prevent use of sp as a reload register.
14483 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
14484 non_acc_reg_operand.
14485 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
14486 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
14487 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14488 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
14490 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14492 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
14493 * cpplex.c (unterminated): Delete.
14494 (parse_string): No string literal may extend over multiple
14495 lines. Suppress the error when preprocessing assembly.
14496 * cppmain.c (scan_translation_unit): Strings are single-line.
14498 * doc/cpp.texi: Update to match.
14500 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14502 PR optimization/5854
14503 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
14505 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
14506 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
14507 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
14508 const0 if scratch register was not allocated.
14509 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
14510 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
14511 with GEN_INT (...).
14512 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
14513 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
14514 with GEN_INT (...) everywhere. Remove constraints in define_split
14516 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
14517 require scratch register for setting 0 into regs/non-pushable memory.
14519 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14521 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
14522 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
14524 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
14526 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
14527 * cppinit.c (cpp_create_reader): On by default.
14528 (cpp_handle_option): Handle -W[no-]endif-labels.
14529 (cpp_post_options): Also enable if -pedantic.
14530 * cpplib.c (do_else): Use it.
14531 (do_endif): Likewise.
14532 * doc/cppopts.texi: Document new option.
14533 * doc/invoke.texi: Document new option.
14535 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
14537 * config/i386/i386.c, config/i386/i386.md: Change all occurences
14538 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
14540 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
14542 * flow.c (calculate_global_regs_live): Clear aux fields of
14545 2002-03-22 Jakub Jelinek <jakub@redhat.com>
14547 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
14548 REG or MEM subregs, pass rtx * instead of rtx to it.
14549 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
14550 rtx * instead of rtx to alter_subreg.
14551 * config/m32r/m32r.c (gen_split_move_double): Likewise.
14552 * config/pj/pj.c (pj_output_rval): Likewise.
14554 2002-03-22 Richard Henderson <rth@redhat.com>
14557 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
14558 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
14559 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
14560 (ia64_expand_prologue): Look at int_regs, not words, for number
14561 of incomming int regs.
14563 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
14565 * expr.c (expand_expr): A RESULT_DECL is part of a call.
14567 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
14569 * toplev.c (flag_loop_optimize, flag_crossjumping):
14570 New static variables.
14571 (rest_of_compilation): Conditionalize crossjumping and
14573 (parse_options_and_default_flags): Default loop_optimize and
14575 (lang_independent_options): Add -fcrossjumping and -floop-optimize
14576 * invoke.texi (crossjumping, loop-optimize): Document.
14578 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14580 * real.c (eiisneg): Move outside #ifdef NANS.
14582 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
14584 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
14585 frequencies match; avoid match on different loop depths.
14586 (try_crossjump_to_bb): Kill tests that no longer brings time
14588 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
14590 (split_edge): Likewise.
14592 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
14595 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
14596 * cfgrtl.c: Include insn-config.h
14597 (split_block) Dirtify block in presence of conditional execution
14599 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14601 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
14602 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
14603 (function_arg): Constify CUMULATIVE_ARGS.
14604 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
14605 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
14606 (UNITS_PER_DOUBLE): New macro.
14607 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
14608 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
14609 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
14610 fp_regs and stack_words.
14611 (EABI_FLOAT_VARARGS_P): New macro.
14612 * config/mips/mips.c (struct mips_arg_info): New.
14613 (mips_arg_info): New function.
14614 (function_arg_advance): Use it. Add adjustment instructions here
14615 rather than in function_arg.
14616 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
14617 for VOIDmode at the beginning of the function.
14618 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
14619 (function_arg_pass_by_reference): Likewise.
14620 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14621 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14622 (mips_va_start): Likewise. Use the new stack_words field of
14623 CUMULATIVE_ARGS to set up overflow area. Reformat.
14624 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
14625 doubles and other types, aligning the overflow pointer for non-doubles
14626 too. Remove some code duplication. Replace hard-coded constants.
14628 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14630 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14631 (CLASS_UNITS): Undefine.
14632 (CLASS_MAX_NREGS): Use FP_INC.
14633 * config/mips/mips.c (compute_frame_size): Likewise.
14634 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
14636 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14638 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
14639 prototype, and handle lexing numbers and identifiers.
14640 (parse_identifier): Update to new form of parse_slow.
14641 (parse_number): Fast path only, use parse_slow otherwise.
14642 (_cpp_lex_direct): Update calls to parse_number.
14644 2002-03-21 DJ Delorie <dj@redhat.com>
14646 * bb-reorder.c (make_reorder_chain_1): Protect against
14647 when redundant edges are omitted.
14648 * predict.c (dump_prediction): Likewise.
14650 2002-03-21 Richard Henderson <rth@redhat.com>
14653 * fixinc/inclhack.def (solaris_stdio_tag): New.
14654 * fixinc/fixincl.x: Regenerate.
14656 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14659 * c-typeck.c (process_init_element): Flag non-static
14660 initialization of a flexible array member as illegal.
14662 2002-03-22 Alan Modra <amodra@bigpond.net.au>
14664 * config/rs6000/t-linux64: New.
14665 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
14666 t-ppccomm. Use t-rs6000 and t-linux64.
14667 (powerpc64-*-gnu* <tmake_file>): Likewise.
14668 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
14669 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
14670 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
14672 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
14674 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
14675 flag_really_no_inline instead of optimize == 0.
14677 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
14679 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
14681 * flags.h (flag_really_no_inline): New.
14683 * c-common.c (c_common_post_options): Initialize
14684 flag_really_no_inline.
14686 * toplev.c (flag_really_no_inline): New.
14688 2002-03-21 Jakub Jelinek <jakub@redhat.com>
14690 * config/avr/avr.md (length): Fix length computation for
14691 conditional branches.
14693 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
14695 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
14696 sdbout.o, profile.o): Update.
14697 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
14699 * c-common.h (gettags): Move here from tree.h.
14700 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
14701 insert_block, getdecls, kept_level_p, global_bindings_p): New.
14702 * dbxout.c (dbxout_init): Use getdecls langhook.
14703 * expr.c (expand_expr): Use insert_block langhook.
14704 * fold-const.c: Include langhooks.h.
14705 (fold_range_test, fold_binary_op_with_conditional_arg,
14706 fold): Use global_bindings_p langhook.
14707 * integrate.c (expand_inline_function): Use insert_block langhook.
14708 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
14709 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
14710 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
14711 LANG_HOOKS_GETDECLS): New.
14712 (LANG_HOOKS_INITIALIZER): Update.
14713 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
14715 * langhooks.h (struct lang_hooks_for_decls): New.
14716 (struct lang_hooks): Update.
14717 * profile.c: Include langhooks.h.
14718 (output_func_start_profiler): Use new langhooks.
14719 * sdbout.c: Include langhooks.h.
14720 (sdbout_init, sdbout_finish): Use getdecls langhook.
14721 * stmt.c: Include langhooks.h.
14722 (expand_fixup, fixup_gotos): Use new langhooks.
14723 * stor-layout.c: Include langhooks.h.
14724 (variable_size): Use global_bindings_p langhook.
14725 * toplev.c (compile_file): Use getdecls langhook.
14726 * tree-inline.c (remap_block): Use insert_block langhook.
14727 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
14728 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
14730 2002-03-21 Richard Henderson <rth@redhat.com>
14732 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
14733 constants in .data when -fpic.
14735 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14737 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
14740 2002-03-21 Tom Tromey <tromey@redhat.com>
14742 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
14744 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14746 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
14748 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
14750 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14751 Richard Henderson <rth@redhat.com>
14754 * c-common.c (c_expand_expr): Preserve result of a statement
14755 expression if needed.
14757 2002-03-21 Jakub Jelinek <jakub@redhat.com>
14760 * genrecog.c (maybe_both_true_mode): Remove.
14761 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
14762 * machmode.def (Pmode): Likewise.
14764 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
14766 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
14767 (nonlocal_mentioned_p_1): New function.
14768 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
14769 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
14770 (mark_constant_function): Recognize pure functions.
14771 * rtl.h (global_reg_mentioned_p): New prototype.
14772 * rtlanal.c (global_reg_mentioned_p,
14773 global_reg_mentioned_p_1): New function.
14775 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14777 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
14779 * fixinc/fixincl.x: Regenerate.
14781 2002-03-20 Jason Merrill <jason@redhat.com>
14783 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
14785 2002-03-20 Michael Meissner <meissner@redhat.com>
14787 * doc/invoke.texi (Optimize Options): Document that -O2 sets
14790 2002-03-20 Bob Wilson <bob.wilson@acm.org>
14792 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
14793 ".literal_position" directive before the constant pool.
14795 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14797 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
14798 Add Craig Rodrigues.
14799 Add Brad Lucier to testers.
14801 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14804 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
14806 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
14807 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
14808 instead of insn_extract.
14810 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14813 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
14815 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
14816 stmt if some case has been output.
14818 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14821 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
14822 movsfcc_1, movdfcc_1): Add %O2.
14823 * config/i386/i386.c (print_operand): Handle %ON.
14824 Print . before float condition codes in Sun as cmov syntax.
14825 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
14826 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
14829 2002-03-20 Philip Blundell <pb@nexus.co.uk>
14831 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
14832 return instruction if PC was popped.
14834 2002-03-20 Bob Wilson <bob.wilson@acm.org>
14836 * config/xtensa/xtensa.md: Remove unused type attributes.
14837 (adddi_carry, subddi_carry): Change type attribute to "multi".
14839 2002-03-19 Dale Johannesen <dalej@apple.com>
14841 PR optimization/5999, middle-end/5731
14842 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
14843 multiplications by reciprocals.
14845 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
14847 * Makefile.in: Update.
14848 * c-common.c: Include langhooks.h.
14849 (inline_forbidden_p): Use new hook.
14850 * diagnostic.c: Include langhooks.h.
14851 (format_with_decl, announce_function,
14852 default_print_error_function): Use new hook.
14853 * dwarf2out.c (dwarf2_name): Use new hook.
14854 * function.c: Include langhooks.h.
14855 (init_function_start): Use new hook.
14856 * langhooks-def.h (lhd_decl_printable_name): New.
14857 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
14858 (LANGHOOKS_INITIALIZER): Update.
14859 * langhooks.c (lhd_decl_printable_name): New.
14860 * langhooks.h (struct lang_hooks): New hook.
14861 * toplev.c (decl_name, decl_printable_name): Remove.
14862 (open_dump_file): Use new hook.
14863 (process_options): Remove old hook.
14864 * tree.h (decl_printable_name): Remove.
14866 * objc-act.c (objc_init): Remove old hook.
14867 (objc_printable_name): Export.
14868 * objc-act.h (objc_printable_name): New.
14869 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14871 2002-03-19 Jim Blandy <jimb@redhat.com>
14873 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
14874 the start_source_file debug hook, not the current line number.
14876 2002-03-19 Richard Henderson <rth@redhat.com>
14878 * flow.c (EH_USES): Provide default.
14879 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
14880 * doc/tm.texi (EH_USES): New.
14882 * config/ia64/ia64.c (ia64_eh_uses): New.
14883 * config/ia64/ia64-protos.h: Update.
14884 * config/ia64/ia64.h (EH_USES): New.
14886 2002-03-19 Richard Henderson <rth@redhat.com>
14888 * varasm.c (output_constant_def): Fix stupid typo.
14890 2002-03-19 Richard Henderson <rth@redhat.com>
14893 * except.c (current_function_has_exception_handlers): New.
14894 * except.h: Declare it.
14895 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
14896 Combine tests that disable all sibcalls for the function.
14898 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
14900 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
14903 2002-03-19 Richard Henderson <rth@redhat.com>
14906 * config/ia64/ia64.c: Revert 2002-03-01 patch.
14907 * config/ia64/ia64.h (INIT_EXPANDERS): New.
14909 2002-03-19 Jim Blandy <jimb@redhat.com>
14911 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
14912 name, even if the replacement list contains no tokens, as required
14915 2002-03-19 Jason Merrill <jason@redhat.com>
14917 * varasm.c (globalize_decl): Get the name from the RTL, not
14918 DECL_ASSEMBLER_NAME.
14920 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
14922 2002-03-19 Bob Wilson <bob.wilson@acm.org>
14924 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
14925 subdi_carry): Define.
14927 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14929 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
14930 about -fpic/-fPIC if extra_warnings set.
14932 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14934 * expr.c (expand_expr): Sign-extend CONST_INT generated from
14935 TREE_STRING_POINTER.
14936 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
14938 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14940 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
14941 in favor of SP if FRAME_POINTER_REQUIRED is false.
14943 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
14945 * emit-rtl.c (gen_int_mode): New function.
14946 * rtl.h: Prototype for it.
14947 * combine.c (make_extraction, simplify_comparison), expmed.c
14948 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
14949 (convert_modes, store_field), optabs.c (expand_fix),
14950 simplify-rtx.c (neg_const_int, simplify_unary_real),
14952 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
14953 Use it instead of GEN_INT (trunc_int_for_mode (...)).
14955 2002-03-19 Jakub Jelinek <jakub@redhat.com>
14958 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
14959 convert_parm_for_inlining.
14960 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
14962 * langhooks-def.h: Likewise.
14963 * objc/objc-lang.c: Likewise.
14964 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
14966 * tree-inline.c (initialize_inlined_parameters):
14967 Call convert_parm_for_inlining lang hook if needed.
14968 * c-typeck.c (c_convert_parm_for_inlining): New function.
14969 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
14971 2002-03-18 Mark Mitchell <mark@codesourcery.com>
14973 * calls.c (precompute_arguments): Do not assume that temporaries
14974 can be destroyed after expanding the argument.
14975 (expand_call): Likewise.
14977 2002-03-15 Eric Christopher <echristo@redhat.com>
14979 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
14980 Fix register preference on last change.
14981 * config/mips/mips.c (mips_return_in_memory): New function.
14982 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
14983 * config/mips/mips-protos.h: Declare.
14984 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
14985 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
14987 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
14989 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
14991 (anddi3, iorsi3): Likewise.
14993 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
14994 use %gprel for symbols that are going to be placed in linkonce
14997 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
14998 RETURN_ADDRESS_POINTER_REGNUM to $ra.
14999 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
15000 not needed. Disregard leaf_function_p().
15001 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
15002 mips16 frame pointer.
15003 * config/mips/mips.md (store ra): Only to small SP offsets.
15004 2001-08-22 Graham Stott <grahams@redhat.com>
15005 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
15006 return a REG rtx for the return address register.
15008 2002-03-18 Bob Wilson <bob.wilson@acm.org>
15010 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
15011 constant-pool addresses as "mode-dependent".
15012 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
15014 2002-03-18 Jakub Jelinek <jakub@redhat.com>
15017 * expr.c (emit_group_load): Use extract_bit_field if
15018 needed for CONCAT arguments.
15020 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
15023 * arm.md (tablejump): Make this a define_expand. For PIC add the
15024 offset to the base of the table.
15025 (thumb_tablejump): Matcher for Thumb tablejump insn.
15026 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
15027 as the difference of two labels.
15028 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15029 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
15030 tables in the code.
15031 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
15032 * arm.c (get_jump_table_size): If the table is not in the text
15033 section, return zero.
15035 2002-03-18 Bernd Schmidt <bernds@redhat.com>
15037 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
15039 (arm_reload_out_hi): Use gen_lowpart instead of
15040 gen_rtx_SUBREG to access QImode components.
15041 * config/arm/arm.md: Disable zero_extend split for QImode
15042 subregs in BIG_ENDIAN mode.
15043 (storehi_bigend): Match use of least significant byte.
15044 (storeinthi): Remove extraneous SUBREG.
15045 Add missing construction of operands[2].
15046 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
15047 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
15048 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
15050 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
15052 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
15055 2002-03-17 Richard Henderson <rth@redhat.com>
15057 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
15060 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15062 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
15063 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
15065 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15067 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
15069 * predict.c (estimate_bb_frequencies): Delete unused variables.
15071 2002-03-17 Richard Henderson <rth@redhat.com>
15073 * config/ia64/ia64.c (ia64_attribute_table): Move before
15074 targetm definition. Make static.
15076 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
15078 * c-common.h (yyparse, c_common_parse_file): New.
15079 * c-lang.c: Include c-common.h.
15080 (LANG_HOOKS_PARSE_FILE): Redefine.
15081 * c-lex.c: Include c-common.h.
15082 (yyparse): Rename c_common_parse_file. Call yyparse.
15083 * c-parse.in (yyparse): Remove macro.
15084 * c-tree.h (yyparse_1): Remove.
15085 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
15086 (LANG_HOOKS_INITIALIZER): Update.
15087 * langhooks.h (struct lang_hoooks): New hook parse_file.
15088 * toplev.c (compile_file): Use parse_file hook.
15089 * tree.h (yyparse): Remove.
15090 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
15092 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
15094 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
15095 float_truncate, not fix.
15096 ("*truncdfsf2_real"): Ditto.
15097 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
15099 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
15101 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
15103 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
15104 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
15105 where appropriate. Make the second reference to
15106 leaf_function_p a function call, as intended. Reindented.
15108 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
15109 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
15111 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
15112 add register to non-constant into sp.
15114 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
15115 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
15116 (mips16_gp_pseudo_rtx): Lose.
15117 (INIT_EXPANDERS): Deleted.
15118 * config/mips/mips.c (mips_init_machine_status): New.
15119 (mips_free_machine_status): New.
15120 (mips_mark_machine_status): New.
15121 (override_options): Set them.
15122 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
15123 (struct machine_function): ... new. Replaced all references.
15124 (mips_add_gc_roots): Don't mark them.
15125 (embedded_pic_fnaddr_reg): New, extracted from...
15126 (embedded_pic_offset): ... here.
15127 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
15130 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15132 * cppinit.c: Revert -MD removal.
15134 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15136 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
15137 soft registers by default for 68HC12.
15138 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
15139 when compiling with -fomit-frame-pointer.
15140 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
15141 (expand_epilogue): Likewise.
15142 (m68hc11_gen_rotate): Use exg when rotating by 8.
15144 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15146 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
15147 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
15148 (splits): Remove unused add splits.
15149 ("*addhi3_68hc12"): Tune constraints.
15150 ("addhi_sp"): Try to use X instead of Y in all cases and if the
15151 constant fits in 8-bits and D is dead use abx/aby instructions.
15152 ("*addhi3"): Remove extern declaration of ix_reg.
15153 ("*subsi3"): Optimize and provide new split.
15154 ("subhi3"): Cleanup.
15155 ("*subhi3_sp"): Avoid saving X if we know it is dead.
15156 (arith splits): For 68hc12 save the address register on the stack
15157 and do the arithmetic operation with a pop.
15159 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15161 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
15162 allocating QImode in address registers.
15163 ("*movqi_m68hc11"): Likewise.
15165 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
15167 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
15169 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
15171 * cppinit.c (print_help): Display -MD and -MMD.
15172 Don't display usage string. Update assertion syntax and
15174 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
15175 (cpp_handle_option): Update.
15177 2002-03-15 Chris Demetriou <cgd@broadcom.com>
15179 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
15180 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
15181 and define it so that regardless of target CPU size,
15182 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
15183 of "int" rather than "long."
15185 2002-03-15 Richard Henderson <rth@redhat.com>
15187 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
15190 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15192 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
15193 ("tstqi" split): Avoid using memory for tstqi on address register.
15194 (splits): Remove constraints.
15195 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
15196 ("cmpdf", "cmpsf"): Remove since not used.
15197 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
15198 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
15200 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15202 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
15203 ("neghi2"): Tighten constraints.
15204 ("one_cmplsi2"): Optimize and simplify split.
15205 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
15207 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15209 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
15210 and split of AND operation to clear the upper bits.
15211 ("*logicalsi3_zextqi"): Likewise.
15212 ("*logicallhi3_zexthi_ashift8"): Likewise.
15213 ("*logicalsi3_silshr16"): Likewise.
15214 ("logicalsi3_silshl16"): Likewise.
15215 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
15217 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15219 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
15220 (m68hc11_indirect_p): New function.
15221 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
15222 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
15224 (asm_print_register): Likewise.
15225 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
15226 (m68hc11_indirect_p): Declare.
15227 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
15228 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
15229 (TARGET_SWITCHES): New option -mrelax.
15230 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
15232 ("iorsi3", "xorsi3"): Likewise.
15233 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
15234 ("*andhi3_mem"): New to handle destination in memory with bclr
15235 and a scratch register.
15236 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
15237 ("*andhi3_const"): New when operand2 is constant.
15238 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
15239 ("*andhi3_gen"): Cleanup of the old "andhi3".
15240 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
15241 ("xorqi3"): Update constraints.
15243 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15245 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
15246 for reg_equiv_memory_loc when the operand is a register that does
15247 not get a hard register (stack location).
15248 (tst_operand): After reload, accept all memory operand.
15249 (symbolic_memory_operand): Fix detection of symbolic references.
15250 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
15251 accept symbols and any constant.
15253 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15255 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
15256 note on the insn that sets the soft frame register.
15257 (must_parenthesize): ix and iy are also reserved names.
15258 (print_operand_address): One more place where parenthesis are required
15259 to avoid confusion with register names.
15260 (m68hc11_gen_movhi): Allow push of stack pointer.
15261 (m68hc11_check_z_replacement): Fix handling of parallel with a
15263 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
15264 the replacement register is.
15265 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
15266 and D8_REGS classes.
15267 (MODES_TIEABLE_P): All modes are tieable except QImode.
15269 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15271 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
15272 (___subdi3): Likewise.
15273 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
15274 (__map_data_section): Optimize 68hc11 case.
15276 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15278 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
15279 than a shift to avoid adding a register with itself.
15280 (m68hc11_memory_move_cost): Take into account NO_REGS.
15281 (m68hc11_register_move_cost): Update and use memory move cost
15282 for soft registers.
15283 (m68hc11_address_cost): Make cost of valid offset not 0 so that
15284 it gives more opportunities to cse to optimize.
15285 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
15286 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
15288 2002-03-15 Mark Mitchell <mark@codesourcery.com>
15290 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
15291 * c-common.def (CLEANUP_STMT): New tree node.
15292 * c-common.h (CLEANUP_DECL): New macro.
15293 (CLEANUP_EXPR): Likewise.
15294 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
15295 * expr.c (expand_expr): Tidy.
15296 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
15297 * tree-inline.c (initialize_inlined_parameters): Clean up
15298 new local variables.
15300 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15303 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
15304 before movrXX only, use reg_overlap_mentioned_p.
15305 Only special case NE if just one insn can be generated.
15307 2002-03-15 Jason Merrill <jason@redhat.com>
15309 * varasm.c (assemble_variable): Call resolve_unique_section before
15310 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
15311 of error_mark_node.
15313 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15316 * arm.md (split pattern for thumb shiftable immediates): Add comment
15317 explaining non-obvious test.
15319 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
15322 * arm.md (movaddr, movaddr_insn): Delete.
15324 2002-03-15 Jason Merrill <jason@redhat.com>
15326 * toplev.c (wrapup_global_declarations): Clarify variable handling.
15327 -fkeep-static-consts doesn't apply to comdats.
15329 2002-03-14 Richard Henderson <rth@redhat.com>
15331 * c-decl.c: Include c-pragma.h.
15332 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
15333 (finish_function): Tidy.
15334 * c-pragma.c: Include c-common.h.
15335 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
15336 (handle_pragma_weak): Use them.
15337 (init_pragma): Register pending_weaks.
15338 * c-pragma.h (maybe_apply_pragma_weak): Declare.
15339 * print-tree.c (print_node): Print DECL_WEAK.
15340 * varasm.c (mark_weak_decls): Remove.
15341 (remove_from_pending_weak_list): Remove.
15342 (add_weak): Remove.
15343 (asm_emit_uninitialised): Call globalize_decl for weak commons.
15344 (weak_decls): Make a tree_list.
15345 (declare_weak): Cons weak_decls directly.
15346 (globalize_decl): Remove weak_decls elements directly.
15347 (weak_finish): Simplify weak_decls walk. Don't weaken unused
15348 symbols. Don't pretend to handle aliases.
15349 (init_varasm_once): Update weak_decls registry.
15350 * Makefile.in: Update dependencies.
15352 2002-03-14 Richard Henderson <rth@redhat.com>
15355 * config/ia64/ia64.c: Include tm_p.h last.
15356 (gen_nop_type): Remove duplicate definition.
15357 (cycle_end_fill_slots): Set sched_data for second L slot.
15358 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
15359 (nop_cycles_until): Fix typos.
15361 2002-03-15 Jakub Jelinek <jakub@redhat.com>
15363 PR optimization/5891
15364 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
15366 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
15368 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
15369 descriptors correctly.
15371 2002-03-14 Michael Meissner <meissner@redhat.com>
15373 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
15374 100, allowing MAX_UNROLLED_INSNS to be overridden.
15376 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
15379 * unroll.c (params.h): Include.
15380 (MAX_UNROLLED_INSNS): Delete, now in params.h.
15382 * doc/invoke.texi (--param max-unroll-insns): Document.
15384 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
15386 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15388 * arm.md: Fix warnings about constraints in peepholes and splits.
15390 2002-03-14 Zack Weinberg <zack@codesourcery.com>
15392 * cpphash.h (struct lexer_state): Remove line_extension member.
15393 * cpplib.c (dequote_string, do_linemarker): New functions.
15394 (linemarker_dir): New data object.
15395 (DIRECTIVE_TABLE): No longer need to interpret #line in
15396 preprocessed source. Delete obsolete comment about return
15397 values of handlers.
15398 (end_directive, directive_diagnostics, _cpp_handle_directive):
15399 Don't muck with line_extension.
15400 (directive_diagnostics): No need to issue warnings for
15402 (_cpp_handle_directive): Issue warnings for linemarkers here,
15403 when appropriate. Dispatch linemarkers to do_linemarker, not
15405 (do_line): Code to handle linemarkers split out to do_linemarker.
15406 Convert escape sequences in filename argument, both places.
15408 * cppmacro.c (quote_string): Rename cpp_quote_string and
15409 export. All callers changed.
15410 * cpplib.h (cpp_quote_string): Prototype.
15411 * cppmain.c (print_line): Call cpp_quote_string on to_file
15412 before printing it.
15414 * doc/cpp.texi: Document that escapes are now interpreted in
15415 #line and in linemarkers, and that non-printing characters are
15416 converted to octal escapes when linemarkers are generated.
15418 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
15420 * emit-rtl.c (try_split): Use delete_insns.
15421 * recog.c (split_all_insns): Fix terminating condition.
15423 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
15424 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
15427 * arm.c (arm_output_epilogue): Fix floating-point register save
15428 adjustment when using a frame pointer.
15430 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
15432 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
15433 * config/mips/mips.c (compute_frame_size): Retrofit them here.
15434 (save_restore_insns, mips_expand_epilogue): And here.
15435 (build_mips16_call_stub): And here.
15436 (mips_function_value): Use the new macros to decide whether a single
15437 or complex float can be returned in floating-point registers. Return
15438 a parallel rtx in the complex case.
15440 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
15442 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
15443 call after liveness analysis.
15445 * recog.c (split_insn): Use delete_insn_and_edges.
15447 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
15448 instructions to have branch prediction notes.
15449 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
15451 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
15453 * configure.in: Don't pass -Wno-long-long to a ADA compiler
15454 that doesn't support it.
15455 * configure: Regenerate.
15457 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15460 * config/sparc/sparc.md (normal_branch, inverted_branch,
15461 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
15462 inverted_fp_branch): Adjust calls to output_cbranch.
15463 Set length attribute.
15464 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
15465 output_v9branch. Set length attribute.
15466 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
15468 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
15469 (output_cbranch): Likewise. Handle far branches.
15470 (output_v9branch): Handle far branches.
15471 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
15473 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
15474 noov_compare64_op predicates.
15476 2002-03-13 Jason Merrill <jason@redhat.com>
15478 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
15479 into the function and constify it.
15480 * gthr-dce.h, gthr-solaris.h: Likewise.
15482 2002-03-13 David Edelsohn <edelsohn@gnu.org>
15484 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
15485 * config/rs6000/rs6000.c (rs6000_va_arg): Use
15486 std_expand_builtin_va_arg if not ABI_V4.
15488 2002-03-13 Jason Merrill <jason@redhat.com>
15490 * varasm.c (globalize_decl): New fn.
15491 (assemble_start_function): Use it.
15492 (asm_emit_uninitialized): Use it.
15493 (assemble_alias): Use it.
15494 (assemble_variable): Use it.
15496 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
15498 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
15499 2002-03-12 internal visibility change.
15500 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
15501 visibility into SYMBOL_REF_FLAG.
15503 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
15505 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
15506 VOIDmode operand. Add compile-time optimization for constant results.
15508 2002-03-12 Jason Merrill <jason@redhat.com>
15510 * c-typeck.c (convert_for_assignment): Don't allow conversions
15511 between pointers and references. Only allow lvalues to convert to
15514 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
15516 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
15517 before prologue, to avoid scheduling problems.
15519 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15521 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
15522 (ELIMINABLE_REGS): Add sfp->sp.
15523 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
15525 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15527 PR optimization/5892
15528 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
15530 2002-03-13 Jakub Jelinek <jakub@redhat.com>
15532 * loop.c (basic_induction_var): Don't call convert_modes if mode
15533 classes are different.
15535 2002-03-12 Richard Henderson <rth@redhat.com>
15537 PR optimization/5901
15538 * function.c (reposition_prologue_and_epilogue_notes): Position
15539 the markers after/before the last/first insn not deleted.
15541 2002-03-12 Richard Henderson <rth@redhat.com>
15543 PR optimization/5878
15544 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
15545 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
15546 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
15548 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
15549 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
15550 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
15552 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
15553 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
15554 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
15555 also. Don't set it if not flag_pic.
15556 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
15557 to be INVALID_REGNUM when not used.
15559 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
15561 * expmed.c (store_bit_field): Reset alias set for memory.
15562 (extract_bit_field): Same.
15564 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15566 * c-common.c (c_tree_code_type, c_tree_code_length,
15567 c_tree_code_name, add_c_tree_codes): Delete.
15568 * c-common.h (add_c_tree_codes): Delete.
15569 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
15571 * c-objc-common.c (c_objc_common_init): Don't call
15572 add_c_tree_codes, instead set lang_unsafe_for_reeval.
15573 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
15574 objc_tree_code_name, add_objc_tree_codes): Delete.
15575 (objc_init): Don't call add_objc_tree_codes.
15576 * objc/objc-lang.c (tree_code_type, tree_code_length,
15577 tree_code_name): Define.
15578 * toplev.c (lang_independent_init): Don't set
15579 tree_code_length[IDENTIFIER_NODE].
15580 * tree.c (tree_code_type, tree_code_length, tree_code_name):
15581 Delete definitions, moved to language front-ends.
15582 * tree.def (IDENTIFIER_NODE): Hardwire the length.
15583 * tree.h (tree_code_type, tree_code_length, tree_code_name):
15585 (tree_code_length): Change type to unsigned char.
15587 2002-03-12 Richard Henderson <rth@redhat.com>
15589 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
15590 internal visibility change.
15592 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15594 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
15595 validize_mem() instead of change_address to avoid clobbering
15598 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
15600 * c-lex.h (position_after_whitespace): Remove.
15602 2002-03-12 Jakub Jelinek <jakub@redhat.com>
15604 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
15605 (lex_string): Use unsigned char pointers.
15607 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15609 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
15610 is not a valid memory_operand.
15612 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15614 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
15615 * config/xtensa/lib1funcs.asm: Fix copyright to include
15616 special case for libgcc files.
15617 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15618 (__divsi3): Likewise.
15619 (__umodsi3): Likewise.
15620 (__modsi3): Likewise.
15621 * config/xtensa/lib2funcs.S: Fix copyright to include
15622 special case for libgcc files.
15624 2002-03-12 Tom Rix <trix@redhat.com>
15626 * collect2.c (resolve_lib_name): Move outside of
15627 OBJECT_FORMAT_COFF ifdef.
15628 (ignore_library): Same.
15630 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15632 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
15634 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15636 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
15637 to function_section before writing out the constant pool.
15639 2002-03-12 David Edelsohn <edelsohn@gnu.org>
15641 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
15643 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
15645 2002-03-12 Alan Modra <amodra@bigpond.net.au>
15647 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
15648 (adddi3): Likewise.
15651 (cmpsi splitter): Likewise.
15652 (modsi3): Fail if <= 0.
15653 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
15654 redundant test when HOST_BITS_PER_WIDE_INT != 32.
15655 (reg_or_sub_cint64_operand): Likewise.
15656 (num_insns_constant_wide): Optimize sign extension.
15657 (rs6000_legitimize_address): Likewise.
15659 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15661 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15662 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15664 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15666 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
15667 address calculation.
15669 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15671 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
15672 scratch register to DImode / TImode.
15673 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
15674 register used does not overlap the target.
15676 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15678 * Makefile.in (debug.o): Depend on debug.h.
15679 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
15680 * debug.c (do_nothing_debug_hooks): Likewise.
15681 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
15682 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
15683 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
15684 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15685 * dwarfout.c (dwarf_debug_hooks): Likewise.
15686 * integrate.c (output_inline_function): Likewise.
15687 * objc/objc-act.c (synth_module_prologue): Likewise.
15688 * sdbout.c (sdb_debug_hooks): Likewise.
15689 * toplev.c (debug_hooks): Likewise.
15690 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15692 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15694 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
15695 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
15696 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
15697 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
15698 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
15699 * defaults.h (POINTER_SIZE): Define.
15700 * doc/tm.texi (POINTER_SIZE): Document default.
15702 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15704 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
15706 2002-03-11 Richard Henderson <rth@redhat.com>
15708 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
15709 if rebuild_label_notes_after_reload.
15711 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
15713 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
15714 emit pic register load if "internal" visibility.
15715 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
15716 (cris_expand_builtin_va_arg): Do all computations on trees.
15718 2002-03-11 Richard Henderson <rth@redhat.com>
15720 * rtlanal.c: Include recog.h.
15721 (keep_with_call_p): Fix thinko.
15722 * Makefile.in (rtlanal.o): Update dependencies.
15724 2002-03-11 Chris Meyer <cmeyer@gatan.com>
15726 * genflags.c (gen_insn): Use IS_VSPACE.
15727 * genoutput.c (output_insn_data): Likewise.
15728 (process_template): Likewise.
15730 2002-03-11 Richard Henderson <rth@redhat.com>
15732 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
15734 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
15736 * Makefile.in: Update.
15737 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
15738 Update documentation.
15739 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
15740 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
15742 2002-03-11 Zack Weinberg <zack@codesourcery.com>
15744 * Makefile.in: Give texi2pod its input file as a command line
15745 argument, not on stdin.
15747 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
15748 Daniel Berlin <dan@dberlin.org>
15750 C++ alias analysis improvement.
15751 * alias.c (record_component_aliases): Record aliases for base
15754 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
15756 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
15758 2002-03-11 Douglas B Rupp <rupp@gnat.com>
15760 * toplev.c (vms_fopen): Remove, not needed.
15762 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
15764 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
15766 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
15767 for FP, already done later.
15769 * toplev.c (debug_args): Add entry for VMS_DEBUG.
15770 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
15772 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
15774 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
15775 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
15776 LARGEST_EXPONENT_IS_NORMAL for the given mode.
15777 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
15778 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
15779 (ediv, emul, eldexp, esqrt): Likewise.
15780 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
15781 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
15782 (saturate): New function.
15783 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
15784 (make_nan): Use a saturation value instead of a NaN if
15785 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
15786 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
15787 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
15788 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
15789 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
15790 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
15791 !ROUND_TOWARDS_ZERO.
15792 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
15793 (ROUND_TOWARDS_ZERO): Document.
15795 2002-03-11 Andreas Jaeger <aj@suse.de>
15797 * cfg.c (dump_flow_info): Remove unused variable.
15799 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
15801 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
15802 computations on trees.
15804 2002-03-10 Richard Henderson <rth@redhat.com>
15807 * reload.c (copy_replacements_1): New.
15808 (copy_replacements): Use it to recurse through the rtx.
15810 2002-03-10 Richard Henderson <rth@redhat.com>
15812 * loop.c (strength_reduce): Compute number of iterations as
15813 unsigned HOST_WIDE_INT.
15815 2002-03-10 Richard Henderson <rth@redhat.com>
15817 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
15818 to move away from the end of the block.
15820 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
15822 PR preprocessor/5899
15823 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
15825 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15827 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
15829 * attribs.c (decl_attributes): Fix signed/unsigned warning.
15831 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
15833 * config/mmix/mmix.c: Improve comments.
15834 (mmix_target_asm_function_prologue): Drop variable
15835 empty_stack_frame. Don't allocate unused slot above fp.
15836 (mmix_target_asm_function_epilogue): Mirror prologue changes.
15837 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
15838 brace in first column.
15839 (enum reg_class): Ditto.
15840 (FIRST_PARM_OFFSET): Now 0.
15841 (USER_LABEL_PREFIX): Remove #if 0:d definition.
15843 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15845 * combine.c (make_extraction): Fix error in last change.
15847 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15849 * c4x.c (c4x_fp_reglist): Const-ify.
15850 * cris.c (cris_print_operand): Likewise.
15851 * i386.c (ix86_va_arg): Likewise.
15852 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
15853 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
15854 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
15855 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
15856 * mcore.h (regno_reg_class): Likewise.
15857 * mips.c (gen_int_relational): Likewise.
15858 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
15859 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
15860 * pdp11.c (move_costs): Likewise.
15861 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
15862 * s390.c (s390_branch_condition_mnemonic, regclass_map):
15864 * s390.h (regclass_map): Likewise.
15865 * sh.c (shift_amounts): Likewise.
15866 * sh.md (rotlsi3): Likewise.
15868 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
15870 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
15871 (ne0+5): Use new clobber to generate proper shift pattern.
15872 Patch by Michael Matz <matz@kde.org>.
15874 2002-03-09 Andreas Schwab <schwab@suse.de>
15876 * gcc.c (validate_all_switches): Also handle `%W{...}'.
15878 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
15880 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
15882 2002-03-09 Jakub Jelinek <jakub@redhat.com>
15885 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
15886 even for non-representable constants.
15888 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15890 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
15891 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
15892 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
15893 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
15894 (pop_function_context): Compute MAY_SHARE parameter for
15896 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
15897 (gen_mem_addressof): Call fixup_var_refs with new parm.
15899 * combine.c (make_extraction): Don't make extension of CONST_INT.
15901 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
15903 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
15904 in o32 and o64 ABIs.
15905 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
15906 but getting fixed-size structs passed in registers regardless of
15907 padding in o32 and o64 ABIs.
15909 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
15910 offset before loading address of argument passed by transparent
15913 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
15915 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
15917 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
15919 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
15920 marker such that registers after it are saved.
15922 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15924 * sparc.c (arith_4096_operand): Fix error in last change.
15926 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
15928 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
15929 defaults for MEABI.
15931 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15933 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
15936 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15938 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
15940 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
15942 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
15943 removed; fix return value.
15944 * combine.c (combine_instructions): Dirtify blocks where we failed to
15945 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
15946 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
15948 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15950 * gcse.c (insert_insn_end_bb): Fix typo in last change.
15952 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
15954 * recog.c (peephole2_optimize): Re-distribute EH edges.
15956 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
15958 * expr.c (expand_expr): Use unsave lang hook.
15959 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
15960 (LANG_HOOKS_INITIALIZER): Update.
15961 * langhooks.h (struct lang_hooks): New hook unsave.
15962 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
15963 (unsave_expr_1): Remove unused lang_unsave_expr_now.
15964 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
15965 (unsave_expr_now): Remove.
15966 * tree.h (unsave_expr_now, lang_unsave,
15967 lang_unsave_expr_now): Remove.
15970 2002-03-08 Andreas Jaeger <aj@suse.de>
15972 * flow.c (propagate_block_delete_insn): Remove unused variable.
15974 2002-03-08 Kazu Hirata <kazu@hxi.com>
15976 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
15977 insn length for memory load/store.
15979 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
15981 * doc/install.texi (--with-libiconv-prefix): Document.
15983 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
15985 * doc/sourcebuild.texi: Fix typo.
15987 2002-03-08 Jakub Jelinek <jakub@redhat.com>
15990 * builtins.c (std_expand_builtin_va_arg): Do all computations on
15993 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15995 * rtl.c (copy_most_rtx): Move from here ...
15996 * emit-rtl.c (copy_most_rtx): ... to here.
15998 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
16000 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
16001 SUBTARGET_CPP_SIZE_SPEC.
16002 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
16004 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
16006 2002-03-07 Matt Hiller <hiller@redhat.com>
16008 * gensupport.c (first_dir_md_include): Renamed from include;
16009 change all references.
16010 (last_dir_md_include): Renamed from last_include; change all
16012 (init_md_reader): Unconditionally initialize base_dir whether or
16013 not filename is a relative path.
16015 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
16017 * config/fp-bit.c (_unord_f2): Compile it in even if
16018 US_SOFTWARE_GOFAST is enabled.
16020 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
16021 NULL_RTX. Set all HFmode operations as NULL_RTX.
16022 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
16023 NULL_RTX, try reversing the comparison and the operands.
16025 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16027 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
16028 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
16031 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
16033 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
16035 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16037 * basic-block.h (fixup_abnormal_edges): Declare.
16038 * reload1.c (fixup_abnormal_edges): New function.
16039 * reg-stack.c (convert_regs): Use it.
16041 * gcse.c (insert_insn_end_bb): Handle trapping insns.
16043 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
16045 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
16047 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
16048 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
16049 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
16050 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
16051 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
16052 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
16053 unless x and y could be infinite.
16054 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
16055 Check that the common type of both arguments is a real, even for
16056 targets without unordered comparisons. Allow an integer argument
16057 to be compared against a real.
16058 (expand_tree_builtin): Use expand_unordered_cmp.
16059 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
16060 * cse.c (fold_rtx): Likewise. Fix indentation.
16061 * fold-const.c (fold_real_zero_addition_p): New.
16062 (fold): Use it, and the new HONOR_... macros.
16063 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
16064 * jump.c (reversed_comparison_code_parts): After searching for
16065 the true comparison mode, use HONOR_NANS to decide whether it
16066 can be safely reversed.
16067 (reverse_condition_maybe_unordered): Remove IEEE check.
16068 * simplify-rtx.c (simplify_binary_operation): Use the new macros
16069 to decide which simplifications are valid. Allow the following
16070 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
16071 and (a - -b) to (a + b).
16072 (simplify_relational_operation): Use HONOR_NANS.
16073 * doc/tm.texi: Document the MODE_HAS_... macros.
16075 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
16077 * combine.c (simplify_comparison): If simplifying a logical shift
16078 right and compare with constant, force the comparison to unsigned.
16080 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
16082 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
16084 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
16086 (alt_reg_names): Remove % for vrsave.
16088 2002-03-06 Richard Henderson <rth@redhat.com>
16090 PR optimization/5844
16091 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
16092 if used indicates we've already emitted one copy of an operand.
16093 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
16094 (gen_split): Supply a non-null used.
16096 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
16098 * reload1.c (reload): Unshare all rtl after reload is done.
16100 * simplify-rtx.c (simplify_plus_minus): Do not abort,
16101 but simply fail if the expression is too complex to simplify.
16102 (simplify_gen_binary): Handle simplify_plus_minus failures.
16104 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
16106 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
16107 consistently call delete_trivially_dead_insns after CSE and GCSE;
16108 fix DFI_life dumping; do jump threading after liveness; do crossjumping
16109 after liveness2; update comment in last crossjumping.
16110 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
16112 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
16114 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
16115 after completing fast dead code elimination.
16117 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
16120 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
16122 * version.c: Fix misplaced leading blanks on first line.
16124 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
16126 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
16128 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
16130 * cfgcleanup.c (mentions_nonequal_regs): New function.
16131 (thread_jump): Use it.
16132 * toplev.c (rest_of_compilation): Run jump threading after
16135 2002-03-06 Jakub Jelinek <jakub@redhat.com>
16137 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
16140 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
16142 * predict.c (estimate_bb_frequencies): Do not reload the
16143 frequencies from notes.
16145 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
16147 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
16148 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
16150 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
16151 delete_noop_moves): Return indeger.
16152 * flow.c (ndead): New variable.
16153 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
16154 BB argument; update callers.
16155 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
16156 (life_analysis): Do not call purge_all_dead_edges.
16157 (update_life_info): Return number of deleted insns; print statistics.
16158 (update_life_info_in_dirty_blocks): likewise.
16159 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
16160 return number of insns deleted.
16162 * cse.c: Include timevar.h
16163 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
16164 iterate until stabilizes; print statistics; return number of killed
16166 * Makefile.in: (cse.o): Add timevar.h dependency
16167 * rtl.h (delete_trivially_dead_insns): New.
16168 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
16169 * toplev.c (rest_of_compilation): Update callers.
16171 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
16172 (try_optimize_cfg): Do not update liveness.
16173 (cleanup-cfg): Loop until try_optimize_cfg and dead code
16174 removal stabilizes; use delete_trivially_dead_insns.
16176 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
16178 2002-03-05 Zack Weinberg <zack@codesourcery.com>
16180 * cppmain.c (setup_callbacks): Disable #pragma and #ident
16181 callbacks when processing assembly language.
16183 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16185 * pa.h (ASM_FILE_END): Define.
16186 * som.h (ASM_FILE_END): Delete.
16188 * pa.c (function_arg): Don't pass floats in general registers in
16189 indirect calls if TARGET_ELF32.
16191 2002-03-05 Richard Henderson <rth@redhat.com>
16193 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
16195 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
16197 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
16199 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16201 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
16202 -r command line. Don't hide any symbols if not building
16205 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
16207 * cfg.c (dump_flow_info): Warn about profile mismatches.
16208 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
16209 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
16211 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16213 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
16214 wide volatile memory by parts.
16216 2002-03-05 Jakub Jelinek <jakub@redhat.com>
16218 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
16221 2002-03-05 Richard Henderson <rth@redhat.com>
16223 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
16225 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16227 * toplev.c (documented_lang_options): Document more
16228 language-specific options.
16229 * doc/invoke.texi (Warning Options): Correct documentation for
16230 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
16231 * c-decl.c (c_decode_option): Use a table to handle warning options.
16233 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
16235 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
16236 parameter to mmix_encode_section_info.
16237 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
16238 relocatably. Always produce ELF, not mmo if linking relocatably.
16239 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
16240 first is non-zero, don't add symbol prefix.
16241 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
16242 prototype accordingly.
16244 2002-03-04 Krister Walfridsson <cato@df.lth.se>
16246 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
16248 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
16250 * configure.in: Increase required makeinfo version to 4.1.
16251 * configure: Regenerate.
16253 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
16255 * .cvsignore: Remove *.info* and genrtl*; these files are generated
16258 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
16260 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
16261 * doc/invoke.texi: Fix @math uses.
16263 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
16265 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
16268 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
16270 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
16271 (powerpc-*-eabisimaltivec*): Same.
16273 * config/rs6000/t-ppcendian: New.
16275 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16277 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
16278 nonimmediate_src_operand and nonimmediate_lsrc_operand to
16279 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
16281 2002-03-03 Richard Henderson <rth@redhat.com>
16283 * toplev.c (rest_of_decl_compilation): Revert last two changes.
16285 2002-03-03 Zack Weinberg <zack@codesourcery.com>
16287 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
16288 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
16289 tree.c, config/m68k/m68k.c:
16290 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
16291 REAL_ARITHMETIC blocks unconditional. Delete some further
16292 #ifdef blocks predicated on REAL_ARITHMETIC.
16293 * flags.h, toplev.c: Delete remaining references to
16294 flag_pretend_float.
16296 * doc/invoke.texi: Remove documentation of -fpretend-float.
16297 * doc/tm.texi: Describe the various REAL_* macros as provided by
16298 real.h, not by the target configuration files.
16300 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
16301 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
16302 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16303 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
16304 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
16305 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
16306 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
16307 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
16308 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16309 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
16310 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16311 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
16312 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
16313 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
16314 config/xtensa/xtensa.h:
16315 Do not define, undefine, or mention in comments any of
16316 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
16317 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
16318 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
16319 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
16320 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
16321 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
16322 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
16323 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
16324 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
16326 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16328 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
16329 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
16330 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
16331 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
16332 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
16333 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
16335 * defaults.h (BITS_PER_WORD): Define.
16336 * doc/tm.texi (BITS_PER_WORD): Document default value.
16338 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
16339 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
16340 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
16342 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16344 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
16345 lieu of explicit sizeof/sizeof.
16346 * i386.c (override_options, ix86_init_mmx_sse_builtins,
16347 ix86_expand_builtin): Likewise.
16348 * mips.c (mips_add_gc_roots): Likewise.
16349 * mmix.c (mmix_output_condition): Likewise.
16350 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
16351 altivec_init_builtins): Likewise.
16352 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
16353 * cppexp.c (Nsuff, parse_number): Likewise.
16354 * cppinit.c (builtin_array_end): Likewise.
16355 * gcc.c (n_default_compilers, process_command): Likewise.
16356 * genpreds.c (output_predicate_decls): Likewise.
16357 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
16358 * lcm.c (N_ENTITIES): Likewise.
16359 * stor-layout.c (set_sizetype): Likewise.
16361 2002-03-03 Richard Henderson <rth@redhat.com>
16363 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
16364 for types or labels.
16366 2002-03-03 Richard Henderson <rth@redhat.com>
16368 * c-decl.c (start_decl): Initialized variables are not common.
16370 2002-03-02 Per Bothner <per@bothner.com>
16372 * gcc.c (option_map): Suport new --bootclasspath option.
16373 --CLASSPATH is now just an alias for --classpath.
16375 2002-03-02 Richard Henderson <rth@redhat.com>
16377 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
16378 load if "internal" visibility.
16379 * doc/extend.texi: Document visibility meanings.
16381 2002-03-02 Richard Henderson <rth@redhat.com>
16383 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
16384 to functions as well.
16386 2002-03-02 Richard Henderson <rth@redhat.com>
16388 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
16389 (handle_visibility_attribute): Don't call assemble_visibility.
16390 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
16391 without asmspec. Invoke assemble_alias when needed.
16392 * varasm.c (maybe_assemble_visibility): New.
16393 (assemble_start_function, assemble_variable, assemble_alias): Use it.
16395 2002-03-02 Richard Henderson <rth@redhat.com>
16397 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
16398 invoke ENCODE_SECTION_INFO with first call flag.
16400 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
16401 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
16402 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
16403 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
16404 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16405 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16406 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
16407 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
16408 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
16409 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
16410 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
16411 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
16412 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16413 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
16414 config/mcore/mcore-protos.h, config/mcore/mcore.c,
16415 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
16416 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
16417 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
16418 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
16419 config/sh/sh.h, config/sparc/sparc.h,
16420 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
16421 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
16422 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
16423 FIRST argument. As needed, examine it and do nothing.
16425 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
16426 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16427 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
16429 * config/arm/t-pe (pe.o): Add dependencies.
16431 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16433 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
16434 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
16435 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
16436 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
16437 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
16438 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
16439 * defaults.h (BITS_PER_UNIT): Define.
16440 * doc/tm.texi (BITS_PER_UNIT): Document default value.
16442 2002-03-02 Kazu Hirata <kazu@hxi.com>
16444 * config/h8300/h8300-protos.h: Add a prototype for
16445 compute_a_shift_length.
16446 * config/h8300/h8300.c (h8300_asm_insn_count): New.
16447 (compute_a_shift_length): Likewise.
16448 (h8300_adjust_insn_length): Do not adjust insn length of shift
16450 * config/h8300/h8300.md (anonymous shift patterns): Use
16451 compute_a_shift_length.
16453 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16455 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
16456 trunc_int_for_mode.
16458 * emit-rtl.c (offset_address): Call update_temp_slot_address.
16460 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16462 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
16463 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
16464 * flags.h (flag_zero_initialized_in_bss): Declare.
16465 * toplev.c (flag_zero_initialized_in_bss): New flag.
16466 (lang_independent_options): Add flag_zero_initialized_in_bss.
16467 * tree.c (initializer_zerop): New function.
16468 * tree.h (initializer_zerop): Declare.
16469 * varasm.c (assemble_variable): If we can emit bss, put zero
16470 initializers in the bss section.
16472 2002-03-02 Alan Modra <amodra@bigpond.net.au>
16474 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
16475 like more than one symbol per .weak directive.
16477 2002-03-01 Richard Henderson <rth@redhat.com>
16479 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
16480 adjust argument_pointer by pretend_args_size.
16481 (ia64_va_start): Adjust va_start address by -pretend_args_size.
16483 2002-03-01 Kazu Hirata <kazu@hxi.com>
16485 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
16487 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
16489 * toplev.c (rest_of_compilation): Delete dead jumptables before
16491 * flow.c (delete_dead_jumptables): Make global.
16492 * rtl.h (delete_dead_jumptables): Declare.
16494 2002-03-01 David Edelsohn <edelsohn@gnu.org>
16496 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
16497 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
16498 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
16500 2002-03-01 Kazu Hirata <kazu@hxi.com>
16502 * config/h8300/h8300-protos.h: Fix formatting.
16503 * config/h8300/h8300.c: Likewise.
16504 * config/h8300/h8300.h: Likewise.
16506 2002-03-01 Kazu Hirata <kazu@hxi.com>
16508 * config/h8300/h8300.c (print_operand): Support 16-bit
16509 constant addresses.
16510 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
16512 2002-02-28 Richard Henderson <rth@redhat.com>
16514 * expmed.c (store_bit_field): Prevent generation of CONCATs;
16515 pun complex values as integers; use gen_lowpart instead of
16517 (extract_bit_field): Likewise.
16519 2002-03-01 Alan Modra <amodra@bigpond.net.au>
16520 David Edelsohn <edelsohn@gnu.org>
16522 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
16523 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
16524 (SUPPORTS_WEAK): Likewise.
16525 * output.h (add_weak): Add tree param.
16526 * varasm.c (add_weak): Likewise. Save decl.
16527 (struct weak_syms): Add decl field.
16528 (mark_weak_decls): New function.
16529 (init_varasm_once): ggc_add_root mark_weak_decls.
16530 (assemble_start_function): Use ASM_WEAKEN_DECL.
16531 (assemble_variable): Likewise.
16532 (assemble_alias): Likewise.
16533 (declare_weak): Pass decl to add_weak.
16534 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
16535 (remove_from_pending_weak_list): Declare and define for
16537 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
16538 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
16539 * defaults.h (SUPPORTS_WEAK): Likewise.
16540 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16541 .weak for code sym. Do emit .size for descriptor sym.
16542 (ASM_DECLARE_FUNCTION_SIZE): Define.
16543 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
16544 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
16545 .lglobl unless TARGET_XCOFF. Formatting fixes.
16546 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
16547 .weak for code sym.
16548 (HANDLE_PRAGMA_WEAK): Remove.
16549 (ASM_WEAKEN_LABEL): Remove.
16550 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
16552 2002-03-01 Jason Merrill <jason@redhat.com>
16554 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
16555 (TARGET_EXPR_CLEANUP): New macro.
16557 2002-02-28 Steve Ellcey <sje@cup.hp.com>
16559 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
16560 to take ptr_extend into account as third type of extension.
16561 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
16562 fields used by SUBREG_PROMOTED_UNSIGNED_P.
16563 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
16564 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
16565 * calls.c (precompute_arguments): Use new macro.
16566 (expand_call): Ditto.
16567 * combine.c (nonzero_bits): Ditto.
16568 (record_promoted_value): Ditto.
16569 * expr.c (store_expr): Ditto.
16570 (expand_expr): Ditto.
16571 * function.c (assign_parms): Ditto.
16573 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
16575 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
16576 override -shared and -shared-libgcc.
16578 2002-02-28 David O'Brien <obrien@FreeBSD.org>
16580 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
16582 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
16585 2002-02-28 Richard Henderson <rth@redhat.com>
16587 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
16588 4 cycle latency from MM producers.
16589 (ia64_internal_sched_reorder): Likewise with pipeline flush.
16591 2002-02-28 Jakub Jelinek <jakub@redhat.com>
16593 * mklibgcc.in: Don't use GNU make extension.
16595 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16597 * c-parse.in (STATIC): New terminal.
16598 (scspec): New non-terminal. Update productions accordingly.
16599 (program): Remove bogus ifc / end ifc.
16600 (array_declarator): Simplify production using STATIC.
16602 2002-02-28 Jim Meyering <meyering@lucent.com>
16604 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
16605 \a still means TARGET_BELL.
16607 2002-02-28 Richard Henderson <rth@redhat.com>
16609 * haifa-sched.c (sched_emit_insn): New.
16610 (schedule_block): Use last_scheduled_insn to track last insn.
16611 * sched-int.h (sched_emit_insn): Prototype.
16612 * config/ia64/ia64.c (last_issued): Remove.
16613 (ia64_variable_issue): Don't set it.
16614 (nop_cycles_until): Use sched_emit_insn.
16616 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
16618 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16619 extended constants.
16621 2002-02-28 Kazu Hirata <kazu@hxi.com>
16623 * config/h8300/h8300.c: Fix formatting.
16624 * config/h8300/h8300.h: Likewise.
16626 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
16628 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16629 which may overwrite the high byte of the frame pointer.
16631 2002-02-28 Bo Thorsen <bo@suse.de>
16633 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
16634 (STARTFILE_SPEC): Add 64 bit files.
16635 (ENDFILE_SPEC): Likewise.
16637 2002-02-28 Jason Merrill <jason@redhat.com>
16639 * c-decl.c (finish_function): Only warn about missing return
16640 statement with -Wreturn-type.
16642 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
16644 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
16646 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
16647 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
16649 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
16651 * basic-block.h (BB_REACHABLE): Renumber.
16652 (BB_DIRTY, BB_NEW): New flags.
16653 (clear_bb_flags): Declare.
16654 (update_life_info_in_dirty_blocks): Declare.
16655 * cfg.c (clear_bb_flags): New function.
16656 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
16657 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
16658 reorder_insns, emit_insn_after): Mark block as dirty.
16659 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
16660 (update_life_info_in_dirty_blocks): New function.
16661 * recog.c (apply_change_group): Dirtify block.
16663 * cse.c (cse_insn): Reorder emitting of jump insn to keep
16665 * gcse.c (delete_null_pointer_checks): Likewise.
16667 * toplev.c (dump_file_index): Move cse2 after bp,
16669 (dump_file_info): Similary.
16670 (rest_of_compilation): Avoid most of CFG rebuilds;
16671 do first if converision after null pointer checks, do cse2
16672 after branch prediction; avoid full liveness rebuild after
16673 initializing subregs.
16674 * invoke.texi (-d options): Document -du, renumber.
16676 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
16677 (notice_new_block): Do not set BB_UPDATE_LIFE.
16678 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
16679 merge_blocks_move_successor_nojumps, merge_blocks,
16680 try_crossjump_to_edge): Likewise.
16681 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
16682 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
16683 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
16684 (merge_of_block): Do not use life_data_ok.
16685 (find_if_case_1): Do not use SET_UPDATE_LIFE.
16686 (if_convert): Use BB_DIRTY mechanizm to update life.
16687 * lcm.c (optimize_mode_switching): Update
16688 update_life_info_in_dirty_blocks
16690 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16692 * Makefile.in (integrate.o): Update.
16693 * c-decl.c (copy_lang_decl): Rename.
16694 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16695 * integrate.c: Include langhooks.h.
16696 (copy_decl_for_inlining): Update to use langhook.
16697 * langhooks-def.h (lhd_do_nothing_t,
16698 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
16699 (LANG_HOOKS_INITIALIZER): Update.
16700 * langhooks.c (lhd_do_nothing_t): New.
16701 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
16702 * tree.h (copy_lang_decl): Remove.
16704 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16706 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
16708 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
16709 POST_DEC, and POST_MODIFY.
16711 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16713 * c-typeck.c (digest_init): Remove unused parameter; all
16716 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
16718 * expmed.c (expand_shift): Correctly test for low part of a
16721 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16723 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
16724 insn UIDs with insn addresses.
16726 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16728 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
16729 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
16730 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
16731 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
16732 gcc.c, toplev.c: Delete code implementing -traditional mode.
16734 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
16735 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
16736 Document removal of -traditional mode for compilation, and
16737 remove documentation only relevant to that mode.
16739 * config/nextstep.h, config/ptx4.h, config/svr4.h,
16740 config/convex/convex.h, config/d30v/d30v.h,
16741 config/i386/dgux.h, config/i386/osf1elf.h,
16742 config/i386/osfelf.h, config/i386/osfrose.h,
16743 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
16744 config/m68k/hp310.h, config/m88k/dgux.h,
16745 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
16746 config/m88k/m88k.h, config/m88k/openbsd.h,
16747 config/mips/abi64.h, config/mips/osfrose.h,
16748 config/mips/svr4-5.h, config/mips/svr4-t.h,
16749 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
16750 config/stormy16/stormy16.h: Remove all references to
16751 -traditional from target specs. Delete all mention of the
16752 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
16753 delete a couple of commented-out definitions of
16754 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
16757 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
16758 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
16760 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16762 * mklibgcc.in: Don't use \n in a line subject to
16763 interpretation by echo.
16765 2002-02-27 Graham Stott <grahams@redhat.com>
16767 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
16770 * loop.c (prescan_loop): Handle PARALLEL.
16772 * unroll.c (loop_iterations): Return 0 if the add_val for
16775 * final.c (output_operand_lossage): Constify PFX_STR.
16777 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
16779 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
16781 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
16782 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
16784 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
16786 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16788 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
16790 * cpplex.c (_cpp_lex_token): Handle directives in macro
16792 * cpplib.c (_cpp_handle_directive): Save and restore state
16793 if parsing macro args when entering a directive.
16794 * cppmacro.c (collect_args): No need to handle directives
16795 in macro arguments.
16796 (enter_macro_context, replace_args): Use the original macro
16797 definition in case it was redefined whilst collecting arguments.
16799 * cpp.texi: Update.
16801 2002-02-26 David Edelsohn <edelsohn@gnu.org>
16803 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
16804 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
16805 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
16807 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
16808 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
16809 (load_toc_v4_PIC_2): Same.
16811 2002-02-26 Alan Modra <amodra@bigpond.net.au>
16813 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
16815 2002-02-26 Richard Henderson <rth@redhat.com>
16817 * config/alpha/alpha.md (ashldi_se): Re-enable.
16819 2002-02-26 Richard Henderson <rth@redhat.com>
16821 * config/alpha/alpha.c (alpha_encode_section_info): Examine
16822 MODULE_LOCAL_P; improve commentary.
16824 2002-02-26 Zack Weinberg <zack@codesourcery.com>
16826 * doc/cpp.texi: Clarify documentation of relationship between
16827 #line and #include.
16829 2002-02-26 Kazu Hirata <kazu@hxi.com>
16831 * config/h8300/h8300-protos.h: Update the prototype for
16832 compute_logical_op_length. Add the prototype for
16833 compute_logical_op_cc.
16834 * config/h8300/h8300.c (compute_logical_op_length): Figure out
16835 code from operands.
16836 (compute_logical_op_cc): New.
16837 * config/h8300/h8300.md: Combine all the logical op patterns
16838 in HImode and SImode. Use compute_logical_op_cc.
16840 2002-02-26 Kelley Cook <kelleycook@comcast.net>
16842 * config/i386/i386.c (print_operand): Don't append ATT-style
16843 length suffixs to x87 opcodes when in Intel mode.
16845 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
16847 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
16848 (init_emit_once): Update calls.
16849 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
16850 (init_syntax_once): Prototype.
16852 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
16854 * pa-linux.h (LIB_SPEC): Update definition.
16855 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16857 2002-02-26 Richard Henderson <rth@redhat.com>
16859 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
16860 if we emitted a stop bit.
16862 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16864 * configure.in (libgcc_visibility): Substitute.
16865 * configure: Rebuilt.
16866 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
16867 defined symbols .hidden.
16869 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16871 * attribs.c (c_common_attribute_table): Add visibility.
16872 (handle_visibility_attribute): New function.
16873 * varasm.c (assemble_visibility): New function.
16874 * output.h (assemble_visibility): Add prototype.
16875 * tree.h (MODULE_LOCAL_P): Define.
16876 * crtstuff.c (__dso_handle): Use visibility attribute.
16877 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
16878 for MODULE_LOCAL_P symbols too.
16879 * config/ia64/ia64.c (ia64_encode_section_info): Handle
16880 MODULE_LOCAL_P symbols the same way as local symbols.
16881 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
16882 into .sdata/.sbss by the user.
16883 * doc/extend.texi (Function Attributes): Document visibility
16886 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16889 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
16890 STRING_CST initializer spanning the whole variable without
16892 If expand_expr returned MEM, don't use it.
16894 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
16896 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
16897 generate a die for the lexical block.
16899 2002-02-26 Kazu Hirata <kazu@hxi.com>
16901 * config/h8300/h8300-protos.h: Add a prototype for
16902 compute_logical_op_length.
16903 * config/h8300/h8300.c (compute_logical_op_length): New.
16904 * config/h8300/h8300.md (anonymous logical patterns): Use
16905 compute_logical_op_length for length.
16907 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16909 * dwarf2out.c (modified_type_die): Do not call type_main_variant
16911 (gen_type_die): Same.
16913 * attribs.c (handle_vector_size_attribute): Set debug information.
16915 2002-02-26 Daniel Egger <degger@fhm.edu>
16917 * config/rs6000/rs6000.md: Swap define_insn attributes to
16918 fix incorrect generation of merge high instructions instead
16921 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16923 * c-typeck.c (really_start_incremental_init): Use
16924 bitsize_zero_node for vectors.
16926 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16928 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
16929 ("*set_vrsave_internal"): Same.
16931 2002-02-25 Richard Henderson <rth@redhat.com>
16933 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
16934 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
16936 2002-02-25 Jakub Jelinek <jakub@redhat.com>
16939 * config/i386/i386.c (ix86_return_pops_args): Only pop
16940 fake structure return argument if it was passed on the stack.
16942 2002-02-25 Jason Merrill <jason@redhat.com>
16944 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
16947 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16949 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
16950 link with shared_name only.
16951 * doc/invoke.texi (Link Options): Document new behavior.
16953 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16955 * c-typeck.c (push_init_level): Handle vectors.
16957 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16959 * config/sparc/sparc.c (const64_high_operand): Zero-extend
16960 operands of SPARC_SETHI_P.
16961 (input_operand): Likewise.
16962 (sparc_emit_set_const32): Likewise.
16963 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
16964 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
16965 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
16966 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
16967 (movdi_insn_sp64_vis): Likewise.
16968 (movdi split, movdf split): Use SETHI32.
16969 * doc/md.texi: Document SPARC constraints L, M and N.
16971 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16973 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
16974 ("*set_vrsave_internal"): use mfspr for Darwin.
16976 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
16977 gen_get_vrsave_internal.
16979 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16981 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
16983 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
16985 * cpplex.c (cpp_interpret_charconst): Get signedness or
16986 otherwise of wide character constants correct.
16987 * cppexp.c (lex): Get signedness of wide charconsts correct.
16989 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16991 * optabs.c (widen_operand): Only call convert_modes for
16992 promoted SUBREG if signedness matches.
16993 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
16995 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16997 * cpplib.c (glue_header_name): Use local buffer to build up
17000 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17002 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
17004 2002-02-23 Kazu Hirata <kazu@hxi.com>
17006 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
17007 H8/300[HS] separately.
17008 * config/h8300/h8300.md: Remove the early clobber constraint
17009 from bit field patterns.
17011 2002-02-23 Kazu Hirata <kazu@hxi.com>
17013 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
17015 (mulhisi3): Likewise.
17016 (umulqisi3): Likewise.
17017 (umulhisi3): Likewise.
17019 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
17021 * cppinit.c (output_deps): Correct test for stdout output.
17022 (init_dependency_output): Cure warning.
17024 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17026 * expr.c (store_expr): When converting expression to promoted
17027 equivalent type, allow using SUBREG_REG of TARGET as the target
17028 of the expansion of EXP.
17029 * loop.c (basic_induction_var, case SUBREG): Always look inside.
17030 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
17031 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
17032 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
17033 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
17035 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
17037 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
17038 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
17039 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
17041 2002-02-23 Jakub Jelinek <jakub@redhat.com>
17043 PR optimization/5747
17044 * loop.c (scan_loop): Update reg info if move_movables created new
17047 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17049 * gcc.c (init_gcc_spec): Revert last change.
17051 2002-02-23 David Edelsohn <edelsohn@gnu.org>
17053 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
17054 gpc_reg_operand constraint.
17056 2002-02-23 Alan Modra <amodra@bigpond.net.au>
17058 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
17059 Simplify comparison of `low'.
17060 (add_operand): Fix formatting.
17061 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
17062 (mask_operand): Disallow mask to wrap in 64-bit mode.
17063 (rs6000_stack_info): Remove redundant test setting push_p.
17064 (output_toc): Fix formatting.
17065 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
17066 cc_reg_not_cr0_operand constraint.
17067 (booldi3, boolcdi3 splitters): Same.
17069 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
17071 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
17073 2002-02-22 David Edelsohn <edelsohn@gnu.org>
17075 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
17076 gcc invoked with -shared-libgcc.
17078 2002-02-22 Jakub Jelinek <jakub@redhat.com>
17081 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
17082 decl if any of elements was TREE_USED.
17084 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
17086 * config/sparc/sol2.h: Don't include sys/mman.h.
17087 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
17088 (arith_4096_operand): Don't throw high bits away.
17089 (const64_operand): Take sign extension of CONST_INTs into account.
17090 (const64_high_operand, sparc_emit_set_const32): Likewise.
17091 (GEN_HIGHINT64): Likewise.
17092 (sparc_emit_set_const64_quick1): Likewise.
17093 (const64_is_2insns): Likewise.
17094 (print_operand): Use trunc_int_for_mode for sign extension.
17095 * config/sparc/sparc.h (SMALL_INT32): Likewise.
17096 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
17097 chars. Assume CONST_INT is already properly sign-extended.
17098 (movdi split): Sign-extend each SImode part.
17099 (andsi3 split): Don't mask high bits off, so that result
17100 remains properly sign-extend.
17101 (iorsi3 split): Likewise.
17102 (xorsi3 split): Likewise.
17104 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
17106 * fold-const.c (fold): Fix typo in comments.
17108 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17110 * Makefile.in (langhooks.o): Update dependencies.
17112 2002-02-21 Diego Novillo <dnovillo@redhat.com>
17114 * langhooks.c: Include flags.h.
17116 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
17118 * testsuite/gcc.dg/attr-alwaysinline.c: New.
17120 * c-common.c (c_common_post_options): Set inline trees by
17123 * doc/extend.texi (Function Attributes): Document always_inline
17125 Update documentation about inlining when not optimizing.
17127 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
17129 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
17130 unless DECL_ALWAYS_INLINE.
17132 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
17133 unless DECL_ALWAYS_INLINE.
17134 (c_disregard_inline_limits): Disregard if always_inline set.
17136 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
17137 Disregard if always_inline set.
17138 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
17139 unless DECL_ALWAYS_INLINE.
17141 * attribs.c (handle_always_inline_attribute): New.
17142 (c_common_attribute_table): Add always_inline.
17144 * config/rs6000/altivec.h: Add prototypes for builtins
17145 requiring the always_inline attribute.
17147 2002-02-21 Eric Christopher <echristo@redhat.com>
17149 * expmed.c (store_bit_field): Try to simplify the subreg
17150 before generating a new one when when the mode size of
17151 value is less than maxmode.
17153 2002-02-21 Richard Henderson <rth@redhat.com>
17155 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
17156 than gen_rtx_PLUS to form the sum.
17157 * explow.c (force_reg): Rearrange to not allocate new pseudo
17158 when force_operand returns a register.
17159 * expr.c (expand_assignment): Allow offset_rtx expansion to
17160 return a sum. Do not force addresses into registers.
17161 (expand_expr): Likewise.
17162 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
17163 to canonicalize arithmetic that didn't simpify.
17164 (simplify_plus_minus): New argument force; update
17165 all callers. Don't split CONST unless we can do something with it,
17166 and wouldn't lose the constness of the operands.
17168 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
17169 that we generated earlier.
17171 2002-02-21 Tom Tromey <tromey@redhat.com>
17173 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17174 (output_line_info): Use constant `1', with a long explanatory
17176 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
17178 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
17180 * jump.c (redirect_jump): If old label has no UID, don't try to
17183 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
17185 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
17186 If input is constant, do shifts at compile time.
17188 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
17190 * doc/extend.texi: Fix some more overfull hboxes.
17192 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17194 PR optimization/4994
17195 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
17198 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17201 * expr.h (expand_and): Add mode argument.
17202 * expmed.c (expand_and): Add mode argument.
17203 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
17204 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
17205 * except.c (expand_builtin_extract_return_addr): Likewise.
17206 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17207 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
17208 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
17209 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
17210 * config/c4x/c4x.md: Use GEN_INT (x) instead of
17211 gen_rtx (CONST_INT, VOIDmode, x).
17213 2002-02-21 Jakub Jelinek <jakub@redhat.com>
17216 * stmt.c (warn_if_unused_value): Move side effects test once more.
17218 2002-02-20 Torbjorn Granlund <tege@swox.com>
17220 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
17221 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
17223 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
17225 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
17226 SUBREG or ZERO_EXTEND.
17228 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
17230 * sh.h (current_function_anonymous_args): Remove.
17231 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
17232 of current_function_varargs and current_function_stdarg is set.
17233 * sh.c (sh_expand_prologue): Check current_function_varargs /
17234 current_function_stdarg / TARGET_SH5 instead of
17235 current_function_anonymous_args.
17237 * sh64.h (TARGET_VERSION): Define.
17239 2002-02-20 David Edelsohn <edelsohn@gnu.org>
17241 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
17242 VRSAVE_REGNO on TARGET_ALTIVEC.
17244 2002-02-20 Alan Modra <amodra@bigpond.net.au>
17246 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
17247 bits of SImode const_int.
17248 (includes_rshift_p): Likewise.
17249 (print_operand): Call mask_operand and mask64_operand with correct
17251 (rs6000_output_function_epilogue): Pad traceback table to word.
17252 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
17253 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
17254 mask64_operand with correct mode.
17255 (FUNCTION_ARG_REGNO_P): Correct parentheses.
17257 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17260 * varasm.c (get_pool_constant_mark): New.
17261 * rtl.h (get_pool_constant_mark): Add prototype.
17262 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
17263 be represented if it has not been output.
17265 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17267 * combine.c (do_SUBST): Sanity check substitutions of
17268 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
17269 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
17270 CONST_INT into its operand.
17271 (known_cond): Likewise, for ZERO_EXTEND.
17272 * simplify-rtx.c (simplify_unary_operation): Fix condition to
17273 allow for simplification of wide modes. Reject CONST_INTs in
17274 ZERO_EXTEND when their actual mode is not given.
17276 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
17278 * c-decl.c (pushdecl): If no global declaration is found for an
17279 extern declaration in block scope, try a limbo one.
17281 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17284 * c-common.c (pointer_int_sum): Moved from...
17285 * c-typeck.c (pointer_int_sum): ...here.
17286 * c-common.h (pointer_int_sum): Add prototype.
17288 2002-02-20 Jakub Jelinek <jakub@redhat.com>
17291 * c-decl.c (duplicate_decls): Return 0 if issued error about
17294 2002-02-20 Roger Sayle <roger@eyesopen.com>
17295 Jakub Jelinek <jakub@redhat.com>
17298 * tree.c (host_integerp): Ensure that the constant integer is
17299 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
17300 when pos is zero or non-zero respectively. Clarify comment.
17301 * c-format.c (check_format_info_recurse): Fix host_integerp
17302 usage; the pos argument should be zero when assigning to a
17303 signed HOST_WIDE_INT.
17305 2002-02-20 Richard Henderson <rth@redhat.com>
17307 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
17308 of the operand, rather than assuming TImode.
17309 (ix86_expand_binop_builtin): Cope with commutative patterns
17310 using nonimmediate_operand for both operands.
17311 (ix86_expand_timode_binop_builtin): Likewise.
17312 (ix86_expand_store_builtin): Validate operand 1.
17313 (ix86_expand_unop1_builtin): Likewise.
17315 2002-02-20 Philip Blundell <philb@gnu.org>
17318 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
17320 2002-02-20 Richard Henderson <rth@redhat.com>
17323 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
17325 2002-02-20 Tom Tromey <tromey@redhat.com>
17327 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17328 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17329 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17330 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
17331 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
17334 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
17336 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
17337 for (const_int 0) in X not just INTVAL.
17339 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
17341 * doc/extend.texi: Avoid or reduce overfull hboxes.
17343 2002-02-20 Diego Novillo <dnovillo@redhat.com>
17345 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
17346 operations if the field does not start at a mode boundary.
17348 2001-02-20 Joel Sherrill <joel@OARcorp.com>
17350 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
17351 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
17352 Also done for -Acpu and -Amachine.
17354 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
17356 * cppinit.c (init_dependency_output): Take deps output file
17357 from -o if none given with -MF. Suppress normal output.
17358 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
17359 * doc/cpp.texi, doc/invoke.texi: Update.
17361 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17363 * toplev.c (output_quoted_string): Write unprintable
17364 characters with octal escapes.
17366 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17368 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
17369 really_call_used[VRSAVE_REGNO] if not Altivec.
17371 2002-02-19 Alan Modra <amodra@bigpond.net.au>
17373 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
17375 (constant_pool_expr_1): Fix formatting.
17376 (rs6000_legitimize_reload_address): Likewise.
17378 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17380 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
17381 now that we have one.
17383 2002-02-19 Zack Weinberg <zack@codesourcery.com>
17385 * tree.h (struct tree_common): Remove aux. Add unused_0 at
17386 end of first block of bitfields (which was only seven bits);
17387 rename dummy to unused_1; remove comment which is no longer true.
17389 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17391 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
17393 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17396 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
17400 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
17401 arm_is_longcall_p rather than inspecting call-type cookie
17403 (call_value_insn) [TARGET_THUMB]: Likewise.
17405 2002-02-19 Graham Stott <grahams@redhat.com>
17407 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
17409 2002-02-19 David Edelsohn <edelsohn@gnu.org>
17411 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
17412 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
17413 (FP_SAVE_INLINE): Delete.
17415 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
17416 * config/rs6000/eabi.asm: Remove ABI save restore routines.
17417 * config/rs6000/t-ppccomm: Build crtsavres.o.
17418 * config/rs6000/crtsavres.asm: New file.
17420 2002-02-19 Philip Blundell <philb@gnu.org>
17422 * config/arm/arm.c (use_return_insn): Don't reject interrupt
17424 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
17425 (output_return_instruction): Allow interrupt functions to return with
17426 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
17427 (arm_expand_prologue): Subtract 4 before stacking LR in an
17428 interrupt function.
17430 2002-02-19 Philip Blundell <pb@nexus.co.uk>
17432 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
17433 decl, not just FUNCTION_DECL.
17434 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
17435 (arm_assemble_integer): Likewise.
17436 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
17439 2002-02-19 matthew green <mrg@eterna.com.au>
17441 * config.gcc (sparc-*-netbsdelf*): Enable target.
17442 (sparc64-*-netbsd*): New target.
17443 * config/sparc/netbsd-elf.h: New file.
17444 * config/sparc/t-netbsd64: New file.
17446 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
17448 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
17450 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
17452 * doc/invoke.texi: explicitly list the style guidelines that
17453 -Weffc++ checks for.
17455 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
17457 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
17459 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
17462 * gcc.c (cpp_unique_options): Treat -o as indicating object file
17463 only if not -E. If -E, pass -o through to the preprocessor.
17465 2002-02-19 Kazu Hirata <kazu@hxi.com>
17467 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
17468 register number with an appropriate macro.
17470 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17472 * doc/rtl.texi (Constants): Close @code tag.
17474 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
17476 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
17477 ("mmx_uavgv4hi3"): Same.
17478 ("pmulhrwv4hi3"): Same.
17480 * tree-inline.c (walk_tree): Handle vectors.
17482 * c-common.c (constant_expression_warning): Handle vectors.
17483 (overflow_warning): Same.
17485 * sched-deps.c (sched_analyze_2): Handle vectors.
17487 * rtlanal.c (rtx_unstable_p): Handle vectors.
17488 (rtx_varies_p): Same.
17489 (count_occurrences): Same.
17490 (regs_set_between_p): Same.
17491 (modified_between_p): Same.
17492 (modified_in_p): Same.
17493 (volatile_insn_p): Same.
17494 (volatile_refs_p): Same.
17495 (side_effects_p): Same.
17496 (may_trap_p): Same.
17497 (inequality_comparisons_p): Same.
17498 (replace_regs): Same.
17499 (computed_jump_p_1): Same.
17501 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
17503 (inner_mode_array): New.
17504 (copy_rtx): Handle vectors.
17505 (copy_most_rtx): Same.
17506 (rtx_equal_p): Same.
17507 (get_mode_alignment): Adjust for vectors.
17509 * resource.c (mark_referenced_resources): Handle vectors.
17510 (mark_set_resources): Same.
17512 * reload1.c (eliminate_regs): Handle vectors.
17513 (elimination_effects): Same.
17514 (scan_paradoxical_subregs): Same.
17516 * reload.c (subst_reg_equivs): Handle vectors.
17518 * regrename.c (scan_rtx): Handle vectors.
17520 * regclass.c (reg_scan_mark_refs): Handle vectors.
17522 * recog.c (find_single_use_1): Handle vectors.
17524 * local-alloc.c (equiv_init_varies_p): Handle vectors.
17525 (contains_replace_regs): Same.
17526 (memref_referenced_p): Same.
17528 * integrate.c (copy_rtx_and_substitute): Handle vectors.
17529 (subst_constants): Same.
17531 * genattrtab.c (attr_copy_rtx): Handle vectors.
17532 (encode_units_mask): Same.
17533 (clear_struct_flag): Same.
17534 (count_sub_rtxs): Same.
17536 * gcse.c (want_to_gcse_p): Handle vectors.
17537 (oprs_unchanged_p): Same.
17538 (hash_expr_1): Same.
17539 (oprs_not_set_p): Same.
17540 (expr_killed_p): Same.
17541 (compute_transp): Same.
17542 (store_ops_ok): Same.
17544 * function.c (purge_addressof_1): Do not allow paradoxical subregs
17546 (fixup_var_refs_1): Same.
17547 (instantiate_virtual_regs_1): Same.
17549 * fold-const.c (operand_equal_p): Handle vectors.
17551 (rtl_expr_nonnegative_p): Same.
17553 * flow.c (mark_used_regs): Handle vectors.
17555 * df.c (df_uses_record): Handle vectors.
17557 * cselib.c (cselib_subst_to_values): Handle vectors.
17558 (cselib_mem_conflict_p): Same.
17561 * cse.c (canon_reg): Handle vectors.
17563 (cse_process_notes): Same.
17564 (count_reg_usage): Same.
17565 (canon_hash): Same.
17567 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
17569 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
17571 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
17572 (gen_rtx): Handle CONST_VECTOR.
17573 (gen_const_vector_0): New.
17574 (copy_rtx_if_shared): CONST_VECTORs can be shared.
17575 (reset_used_flags): Same.
17576 (copy_insn_1): Same.
17577 (initializer_constant_valid_p): Handle VECTOR_CST.
17579 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
17581 * doc/rtl.texi (Constants): Document const_vector.
17582 (CONST0_RTX): Update for vectors.
17583 (RTL sharing): Same.
17585 * print-tree.c (print_node): Add case for VECTOR_CST.
17587 * tree.h (TREE_VECTOR_CST_ELTS): New.
17588 (struct tree_vector): New.
17589 (union tree_node): Add vector node.
17590 (build_vector): Add prototype.
17592 * tree.def (VECTOR_CST): New.
17594 * tree.c (build_vector): New.
17596 * expmed.c (make_tree): Handle CONST_VECTOR.
17598 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
17599 (CONST_VECTOR_ELT): New.
17600 (CONST_VECTOR_NUNITS): New.
17602 * machmode.h (GET_MODE_INNER): New.
17603 (DEF_MACHMODE): Accept 8th arg.
17605 * machmode.def: Add 8th argument for vector inner mode.
17606 Add inner vector modes for vectors.
17608 * rtl.def (VEC_CONST): Remove.
17609 (CONST_VECTOR): New.
17611 * expr.c (clear_storage): Allow vectors.
17612 (is_zeros_p): Handle VECTOR_CST.
17614 * varasm.c (output_constant_pool): Handle vectors.
17615 (rtx_const): Add veclo and vechi fields.
17616 (kind): Add RTX_VECTOR.
17617 (decode_rtx_const): Add case for vector.
17619 * config/rs6000/rs6000-protos.h: Add zero_constant.
17621 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17622 constants. Force easy vector constants into memory.
17623 (easy_vector_constant): New.
17624 (emit_easy_vector_constant): New.
17625 (rs6000_legitimize_reload_address): Do not generate bad reloads on
17628 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17630 ("altivec_lvxl"): Same.
17631 (altivec_lvebx): Same.
17632 (altivec_lvehx): Same.
17633 (altivec_lvewx): Same.
17634 ("*movv4si_const0"): New.
17635 ("*movv4sf_const0"): New.
17636 ("*movv8hi_const0"): New.
17637 ("*movv16qi_const0"): New.
17639 2002-02-18 Kazu Hirata <kazu@hxi.com>
17641 * config/h8300/h8300.c (notice_update_cc): Use
17644 2002-02-18 Kazu Hirata <kazu@hxi.com>
17646 * config/h8300/h8300.md (divmod patterns): Change the
17647 constraints for operands[1] to register_operand.
17649 2002-02-18 Kazu Hirata <kazu@hxi.com>
17651 * config/h8300/h8300-protos.h: Remove the prototype for
17653 * config/h8300/h8300.c (p_operand): Remove.
17654 * config/h8300/h8300.md: Replace p_operand with
17657 2002-02-18 Philip Blundell <pb@nexus.co.uk>
17659 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
17661 (output_return_instruction): Allow use of LDR to unstack
17662 return addresss even for interrupt handlers or when
17663 interworking. If compiling for ARMv5, use interworking-safe
17664 return instructions by default. Remove duplicated code and
17665 lengthy "strcat" sequences.
17667 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17669 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
17670 (LINK_EH_SPEC): Define.
17671 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
17673 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
17675 * config/s390/s390.c (s390_emit_prologue): Do not set the
17676 frame_related flag for call-clobbered registers.
17678 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
17680 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
17681 (construct_container): Fix handling of SSE operands.
17682 (ix86_expand_builtin): Fix handling of 64bit pointers.
17683 (mmx_maskmovq_rex): New pattern.
17685 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
17687 * regrename.c (kill_set_value): Handle subregs properly.
17689 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
17691 * objc/objc-act.c (handle_impent): Remove leading '*'
17692 from objc_class_name.
17694 2002-02-17 Richard Henderson <rth@redhat.com>
17696 * config/alpha/alpha.c (some_small_symbolic_operand,
17697 some_small_symbolic_operand_1, split_small_symbolic_operand,
17698 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
17699 Handle small SYMBOL_REFs anywhere, not just inside memories.
17700 * config/alpha/alpha-protos.h: Update.
17701 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17702 * config/alpha/alpha.md (small symbolic operand splitter): Update.
17704 2002-02-17 Roland McGrath <roland@frob.com>
17706 * config.gcc (powerpc-*-gnu-gnualtivec*,
17707 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
17708 * config/rs6000/gnu.h: New file.
17709 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
17710 Grok "gnu" in rs6000_abi_name.
17711 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
17712 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
17713 Grok -mcall-gnu analogous to -mcall-linux et al.
17714 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17715 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
17716 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
17718 2002-02-17 Jakub Jelinek <jakub@redhat.com>
17721 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
17724 2002-02-17 Philipp Thomas <pthomas@suse.de>
17726 * config/cris/cris.h: Undefine STARTFILE_SPEC and
17727 ENDFILE_SPEC before (re)defining them.
17729 2002-02-17 Kazu Hirata <kazu@hxi.com>
17731 * config/h8300/h8300.c: Fix formatting.
17732 * config/h8300/h8300.h: Likewise.
17734 2002-02-17 Philipp Thomas <pthomas@suse.de>
17736 * doc/tm.texi: Explain why empty strings should not be
17737 marked for translation.
17739 2002-02-17 Philipp Thomas <pthomas@suse.de>
17741 * final.c (output_operand_lossage): Changed to accept
17742 printf style arguments. Change calls where necessary.
17743 * output.h (output_operand_lossage): Change declaration
17744 accordingly. Update copyright.
17745 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
17746 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
17747 Update copyright date where necessary.
17749 * config/i386/i386.c (print_operand): Likewise. Remove use of
17752 * config/cris/cris.c (cris_operand_lossage): Likewise.
17753 Rename parameter so that exgettext recognizes it as
17754 translatable message.
17755 (LOSE_AND_RETURN): Rename parameter to msgid.
17757 2002-02-17 Kazu Hirata <kazu@hxi.com>
17759 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
17760 hard coded register number with an appropriate macro.
17761 (HARD_REGNO_MODE_OK): Likewise.
17762 (ARG_POINTER_REGNUM): Likewise.
17763 (STATIC_CHAIN_REGNUM): Likewise.
17764 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
17765 * config/h8300/h8300.md (define_constants): Define more
17768 2002-02-17 Philipp Thomas <pthomas@suse.de>
17770 * config/i386/i386.h: Don't mark empty strings for translation.
17772 2002-02-16 H.J. Lu <hjl@gnu.org>
17774 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
17776 2002-02-16 Zack Weinberg <zack@codesourcery.com>
17778 * cppinit.c (merge_include_chains): Check for brack being
17779 NULL before attempting to merge it with qtail.
17781 2002-02-16 Andrew Cagney <ac131313@redhat.com>
17783 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
17786 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17788 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
17790 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17792 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
17793 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
17794 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
17796 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17798 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
17799 now only if !TARGET_FIX.
17800 (*movsi_nt_vms_fix): New pattern.
17802 2002-02-16 Douglas B Rupp <rupp@gnat.com>
17804 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
17805 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
17806 (alpha_sa_mask, alpha_sa_size): Reflect above change.
17807 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
17808 (alpha_start_function, alpha_expand_epilogue): Likewise.
17809 (unicosmk_gen_dsib): Likewise.
17811 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17813 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
17815 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
17817 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
17818 check_and_change_labels, s390_final_chunkify): Delete.
17819 (s390_split_branches, s390_chunkify_pool): New functions.
17820 (s390_function_prologue): Call them.
17822 * config/s390/s390.h (S390_REL_MAX): Delete.
17823 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
17825 * config/s390/s390.md (cjump, icjump, jump): Fix length
17826 attribute calculation.
17829 2002-02-15 David Edelsohn <edelsohn@gnu.org>
17831 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
17832 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
17834 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17836 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
17837 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
17838 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
17840 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
17842 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
17844 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
17846 * reload.c (find_dummy_reload): Check that an output register
17847 is valid for its mode.
17849 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
17851 * combine.c (known_cond): After replacing the REG of a SUBREG, try
17854 * function.c (assign_parms): Demote promoted argument passed by
17855 transparent reference.
17857 2001-02-14 Joel Sherrill <joel@OARcorp.com>
17859 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
17860 -Acpu() and -Amachine() to eliminate warnings.
17862 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
17864 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
17866 2002-02-14 Kazu Hirata <kazu@hxi.com>
17868 * config/h8300/h8300-protos.h: Update the prototype for
17870 * config/h8300/h8300.c (const_costs): Treat SET as a little
17871 more expensive operation.
17872 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
17873 reference to const_costs.
17875 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
17877 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
17879 2002-02-14 Jakub Jelinek <jakub@redhat.com>
17882 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
17883 use arguments from newtype.
17885 2002-02-13 Eric Christopher <echristo@redhat.com>
17887 * config/mips/mips.c (override_options): Add check for march/mipsX
17888 on the same command line. Fix error message in cpu processing.
17889 Remove architecture and ISA checks.
17891 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
17893 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
17895 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
17897 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
17899 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
17901 ("*movv8hi_internal1"): Same.
17902 ("*movv16qi_internal1"): Same.
17903 ("*movv4sf_internal1"): Same.
17905 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
17906 not push_reload for altivec modes.
17908 2002-02-13 Joel Sherrill <joel@OARcorp.com>
17910 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
17911 all RTEMS targets including removal of #includes from config/*/rtems*.h
17912 file and adding them to tm_file setting. Added xm_defines=POSIX to
17914 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
17915 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
17916 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
17917 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
17918 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
17919 config/m68k/rtemself.h: Ditto.
17920 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
17921 config/mips/rtems64.h: Ditto.
17922 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
17923 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
17925 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
17926 config/sparc/rtemself.h: Ditto.
17927 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
17928 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
17929 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
17931 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
17932 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
17933 target made more similar to i386-elf.
17934 * config/i386/t-rtems-i386: Added soft float support and multilibs.
17935 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
17936 be similar to config/m68k/t-m68kelf.
17937 * gthr-rtems.h: Encapsulate with extern "C" for C++.
17939 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
17941 * regmove.c (kill_value): Handle subregs.
17943 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
17945 * i386.md (mul patterns): Allow memory operand to be first;
17946 add expanders where needed; fix constraints.
17947 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
17948 Allow memory operand to be the first.
17950 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
17953 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17956 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
17959 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17961 PR optimization/5547:
17962 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
17963 all valid IA-32 address modes involving non-scaled %ebx and
17964 GOT/GOTOFF as displacement.
17966 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
17968 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
17969 after emitting ltorg insns.
17971 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
17972 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
17973 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
17974 *abssf2): Fix "op_type" attribute.
17976 2002-02-13 Douglas B Rupp <rupp@gnat.com>
17978 * mkconfig.sh: Avoid using a subshell redirect.
17979 ($output.T): Change to $(output)T.
17980 (ENABLE_NLS): Remove unneeded undef.
17982 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
17983 * config/alpha/x-vms (libsubdir): Define.
17985 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
17986 register frame procedures. Optimize retrieving context.
17988 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
17989 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
17990 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
17992 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17994 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
17995 Make same change as for find_base_value.
17997 2002-02-13 Kazu Hirata <kazu@hxi.com>
17999 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
18000 of QImode and SImode.
18002 2002-02-13 Kazu Hirata <kazu@hxi.com>
18004 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
18005 length computation of movsi.
18006 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
18008 2002-02-13 Kazu Hirata <kazu@hxi.com>
18010 * config/h8300/h8300.md (subqi3): Tighten the predicate for
18011 operands[2] to register_operand.
18013 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
18015 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
18017 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
18019 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
18020 for altivec_lvx* and altivec_stvx*.
18021 ("*movv4si_internal"): Add constraint for loading from GPRs.
18022 ("*movv8hi_internal1"): Same.
18023 ("*movv16qi_internal1"): Same.
18024 ("*movv4sf_internal1"): Same.
18026 * config/rs6000/rs6000.c (altivec_register_operand): New.
18028 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
18029 altivec_register_operand.
18031 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
18033 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
18036 2002-02-13 Stan Shebs <shebs@apple.com>
18038 * c-typeck.c (digest_init): Handle vectors.
18039 (really_start_incremental_init): Same.
18040 (pop_init_level): Same.
18041 (process_init_element): Same.
18043 * varasm.c (output_constant): Same.
18045 * expr.c (clear_storage): Same.
18046 (store_constructor): Same.
18048 2002-02-12 Eric Christopher <echristo@redhat.com>
18050 * explow.c (hard_function_value): Add comment explaining
18051 signed/unsigned comparison.
18053 2002-02-12 Jakub Jelinek <jakub@redhat.com>
18055 * jump.c (never_reached_warning): Add finish argument.
18056 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
18057 real insn after end.
18058 * rtl.h (never_reached_warning): Adjust prototype.
18059 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
18060 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
18061 never_reached_warning.
18063 2002-02-12 Graham Stott <grahams@redhat.com>
18065 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
18067 2002-02-12 Kazu Hirata <kazu@hxi.com>
18069 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
18070 logical shifts on H8/300.
18071 (shift_alg_si): Improve several shifts on H8/300.
18072 (get_shift_alg): Likewise.
18074 2002-02-12 Graham Stott <grahams@redhat.com>
18076 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
18078 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18080 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
18081 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
18083 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
18085 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
18086 non-CONST_INT through default_assemble_integer.
18087 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
18088 <case 8>: Abort for CONST_DOUBLE.
18090 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18092 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
18094 * config/pa/pa-linux.h (LIB_SPEC): Delete.
18095 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18097 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
18099 * config/stormy16/stormy16.md (zero_extendqihi2): New.
18101 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
18103 * regrename.c (regrename_optimize): Don't accept a
18104 part-clobbered register if the replaced register is not part
18107 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
18108 take padding into account when computing the argument value.
18110 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
18112 * combine.c (try_combine): Apply substitutions in
18113 CALL_INSN_FUNCTION_USAGE too.
18115 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
18117 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
18118 __builtin_altivec_abs*.
18121 * config/rs6000/rs6000.h (rs6000_builtins): Add
18122 ALTIVEC_BUILTIN_ABS*.
18124 * config/rs6000/altivec.h: Use const char for builtins expecting
18126 (vec_abs): New versions for C and C++.
18129 2002-02-10 Kazu Hirata <kazu@hxi.com>
18131 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
18134 2002-02-10 Kazu Hirata <kazu@hxi.com>
18136 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
18137 constant definition from h8300.md.
18138 (FRAME_POINTER_REGNUM): Likewise.
18139 * config/h8300/h8300.md (define_constants): Add FP_REG.
18141 2002-02-10 Kazu Hirata <kazu@hxi.com>
18143 * config/h8300/h8300.c (print_operand): Remove redundant code.
18145 2002-02-10 Kazu Hirata <kazu@hxi.com>
18147 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
18148 * config/h8300/h8300.c (byte_reg): Make it static.
18150 2002-02-10 Richard Henderson <rth@redhat.com>
18153 * c-typeck.c (incomplete_type_error): Handle flexible array members.
18155 2002-02-10 Richard Henderson <rth@redhat.com>
18158 * tree.c (append_random_chars): Don't abort if main_input_filename
18161 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
18163 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
18165 2002-02-10 Kazu Hirata <kazu@hxi.com>
18167 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
18168 (pushhi1): Likewise.
18170 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
18172 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
18173 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
18175 2002-02-09 David O'Brien <obrien@FreeBSD.org>
18177 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
18179 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
18181 2002-02-09 Kazu Hirata <kazu@hxi.com>
18183 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
18184 a half of an SImode register on H8/300.
18186 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
18188 * i386.md (movdi_2): Add missing '!'.
18190 2002-02-09 Kazu Hirata <kazu@hxi.com>
18192 * config/h8300/h8300.h: Fix formatting. Remove commented-out
18195 2002-02-09 Kazu Hirata <kazu@hxi.com>
18197 * config/h8300/h8300.md (length): Correct the distance valid
18198 for the short branch.
18200 2002-02-09 Kazu Hirata <kazu@hxi.com>
18202 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
18204 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18206 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
18207 registers in SImode.
18208 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
18211 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
18214 Contribute sh64-elf.
18215 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
18216 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
18217 (sh_cannot_modify_jumps_p): New function.
18218 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18219 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
18220 (sh_ms_bitfield_layout_p): New function.
18221 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
18222 Zack Weinberg <zack@codesourcery.com>
18223 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
18224 expand_simple_binop instead of expand_binop.
18225 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
18226 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
18227 use of .quad and .uaquad.
18228 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
18229 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
18230 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18231 * config/sh/sh.md (movdi_const, movdi_const_32bit,
18232 movdi_const_16bit): Make sure all CONSTs have modes.
18233 (sym2PIC): Ditto, but by adjusting all callers.
18234 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
18235 if the prologue calls the SHmedia argument decoder or register
18237 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18238 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
18239 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
18240 (sh_expand_epilogue): Don't emit USE of return target register.
18241 (prepare_move_operands): Legitimize DImode PIC addresses.
18242 (sh_media_register_for_return): Skip tr0, used to initialize the
18244 (sh_expand_prologue): Remove explicit USE of return register.
18245 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
18246 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
18247 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
18248 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
18249 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
18250 EXTRA_CONSTRAINT_T.
18251 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
18252 (MOVI_SHORI_BASE_OPERAND_P): New.
18253 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
18254 (EXTRA_CONSTRAINT_T): Define in terms of them.
18255 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
18256 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
18257 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
18258 alternatives supporting TARGET_REGS.
18259 (UNSPEC_GOTPLT): New constant.
18260 (movdi split): Move incrementing of LABEL_NUSES...
18261 (movdi_const, movdi_const_32bit): Here. Use
18262 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
18263 (movdi_const_16bit): New.
18264 (call, call_value) [flag_pic]: Use GOTPLT.
18265 (call_pop, call_value_pop): New expands.
18266 (call_pop_compact, call_pop_rettramp): New insns.
18267 (call_value_pop_compact, call_value_pop_rettramp): New insns.
18268 (sibcall) [flag_pic]: Use GOT.
18269 (builtint_setjmp_receiver): Remove bogus, unused expand.
18270 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
18271 (*pt, *ptb, ptrel): New insns.
18272 (sym2GOT): Handle DImode GOT.
18273 (sym2GOTPLT, symGOTPLT2reg): New expands.
18274 (sym2PIC): New expand.
18275 (shcompact_return_tramp): Use GOTPLT to return trampoline.
18276 (shcompact_return_tramp_i): Use return register explicitly.
18277 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
18278 disable flag_reorder_blocks.
18279 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18280 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
18281 clobbers, for clarity.
18282 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
18283 restoring of r0 in macl as MAYBE_DEAD.
18284 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
18285 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
18286 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
18287 alter_subreg all over.
18288 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
18289 reload, instead of emitting instructions that would require
18291 (casesi_load_media): Add missing modes.
18292 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
18293 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
18294 as used if the argument decoder is called.
18295 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18296 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
18297 Pmode, then extend it to DImode if necessary.
18298 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18299 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
18300 constants in FPU-enabled SHmedia, let them be loaded from memory.
18301 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
18302 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
18303 Adjust whitespace in assembly output templates.
18304 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
18305 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
18306 mode of if_then_else.
18307 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
18308 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
18310 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
18311 Joern Rennecke <amylaar@redhat.com>
18312 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
18313 (SUBTARGET_CPP_PTR_SPEC): New.
18314 (SUBTARGET_CPP_SPEC): Remove.
18315 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18316 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18317 Fix typo in previous checkin.
18318 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
18319 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
18320 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
18321 Alexandre Oliva <aoliva@redhat.com>
18322 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
18323 what single FP register can hold for SHmedia target.
18324 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
18325 Alexandre Oliva <aoliva@redhat.com>
18326 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
18327 Do not split into SUBREG.
18328 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
18329 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
18330 and added new functions as specified in SH5 ABI r9.
18331 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
18332 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
18334 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
18335 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
18336 gen_consttable_4 and gen_consttable_8. Emit multiple labels
18337 and consttable_window_ends.
18338 2001-06-03 Graham Stott <grahams@redhat,com>
18339 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
18340 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
18341 * config/sh/sh.c (print_operand): Handle floating-point pair,
18342 vector and matrix registers.
18343 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
18344 vector modes into account.
18345 * config/sh/sh.md (movv2sf): Split move between registers into
18347 (movv4sf, movv16sf): Introduce insns that get split only after
18349 * config/sh/shmedia.h: Fix Copyright dates.
18350 * config/sh/ushmedia.h: Likewise. Move loop counter
18351 declarations into conditionals that uses them.
18352 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
18354 * config/sh/sshmedia.h: Fix Copyright dates.
18355 (sh_media_PUTCFG): Fix constraints.
18356 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
18357 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
18358 ptrmemfunc_vbit_in_delta for SH5.
18359 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
18360 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
18361 * invoke.texi: Likewise.
18362 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
18363 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
18364 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
18365 GCC_pop_shmedia_regs_nofpu): New global symbols.
18366 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
18367 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
18368 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
18369 compact function with nonlocal labels.
18370 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
18371 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
18372 (initial_elimination_offset): Account for their stack space.
18373 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
18374 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
18375 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
18376 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
18377 least one of the operands to be a register.
18378 (movv2sf): Likewise. Renamed to movv2sf_i.
18379 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
18380 prepare_move_operands() before emitting SHmedia insns.
18381 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
18382 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
18383 Don't save nor initialize r12. Don't mis-align the stack.
18384 Pad the code with a nop.
18385 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
18387 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
18388 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
18389 [__SHMEDIA__]: Implement.
18390 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
18391 * config/sh/sh.md: Set latency of `pt' closer to reality.
18392 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
18393 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
18394 Set move, load and store type attributes.
18395 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
18396 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
18398 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
18399 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
18400 * config/sh/sh.c (sh_media_register_for_return): New function.
18401 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
18402 branch-target register.
18403 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
18404 * config/sh/sh.md (return_media_i): Use any call-clobbered
18405 branch-target register.
18406 (return_media): If r18 wasn't copied in the prologue, copy it
18408 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
18409 Clear class FP0_REGS.
18410 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
18412 2001-03-08 DJ Delorie <dj@redhat.com>
18413 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
18414 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
18415 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
18416 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
18417 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
18418 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
18419 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
18420 return value correctly for call_cookie.
18421 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
18422 * config/sh/crt1.asm (start): Modified so as to call
18423 ___setup_argv_and_call_main.
18424 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
18425 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
18427 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
18428 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
18429 (STRIP_NAME_ENCODING): Use it.
18430 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
18431 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
18432 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
18433 prepare_scc_operands().
18434 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
18435 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
18436 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
18437 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
18438 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
18439 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
18440 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
18441 used in shcompact_incoming_args.
18442 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
18444 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
18446 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
18447 Adjust accordingly.
18448 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
18449 Simplify. Adjust. Add sanity check.
18450 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
18452 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
18454 (udivsi3, divsi3): Use them.
18455 (force_mode_for_call): New insn.
18456 (call, call_value, sibcall_value): Emit it before SHcompact
18458 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
18459 * config/sh/sh.md (call, call_value, sibcall): Make sure the
18460 call cookie is non-NULL before taking its value.
18461 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
18462 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
18463 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
18464 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
18466 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
18467 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
18468 temporary for stack adjusts. Use MACL and MACH to pass
18469 arguments to shcompact_incoming_args.
18470 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
18472 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
18473 (nested_trampoline): Load static chain address into r1.
18474 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
18475 2001-01-07 Alexandre Oliva <aoliva@redhat.com
18476 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
18477 fp_arith_reg_operand().
18478 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
18479 * config/sh/sh.md (casesi): Sign-extend the first two operands,
18480 and use signed compares for them.
18481 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
18482 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
18483 ones properly aligned.
18484 (find_barrier): Account for extra alignment needed for 8-byte wide
18486 (machine_dependent_reorg): Require a label for the second 4-byte
18487 constant after an 8-byte one.
18488 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
18490 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18491 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
18492 last_float when switching float modes.
18493 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
18494 auto-increment for general-purpose registers.
18495 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
18497 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
18499 * config/sh/sh.c (sh_builtin_saveregs): Support using all
18500 registers for varargs.
18501 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
18502 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
18503 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
18504 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
18505 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
18506 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
18507 call_cookie accordingly.
18508 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
18509 (SHCOMPACT_BYREF): Likewise.
18510 (SHCOMPACT_FORCE_ON_STACK): New macro.
18511 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
18512 (sh_builtin_saveregs): Likewise.
18513 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18514 shcompact_incoming_args): Use new shift values. Support
18515 sequences of consecutive and non-consecutive pushes/pops.
18516 * config/sh/sh.md (return): Don't explicitly use PR_REG.
18517 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
18518 * config/sh/sh.h (TEXT_SECTION): Define.
18519 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
18520 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
18521 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
18522 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
18523 return values on FPU-enabled SHmedia.
18524 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
18525 FPU-enabled SHmedia.
18526 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
18527 value is returned in a non-FP reg and is not returned by
18529 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
18531 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
18532 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
18533 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
18534 quad-aligned to be passed by callee-copy reference.
18535 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
18536 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
18537 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
18538 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
18539 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
18540 copying low-numbered FP regs to r7 and r8.
18541 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
18542 FP regs to general-purpose regs only if the copy was passed on the
18544 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
18545 copying FP reg to r9.
18546 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
18547 copy FP regs to general-purpose regs only in outgoing calls.
18548 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
18549 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
18551 * config/sh/sh.h (struct sh_args): Document all fields.
18552 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
18553 passed partially on the stack should not consider making
18555 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
18556 stack_regs only for incoming calls. When passing FP args,
18557 make sure there are FP regs available before modifying
18559 (SHCOMPACT_BYREF): Pass double args in general-purpose
18560 registers by reference.
18561 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
18562 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
18563 attempt to generate sibcalls if the caller got any arguments
18565 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
18566 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
18567 to 8-byte boundaries.
18568 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
18569 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
18570 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
18571 stored in the stack.
18572 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
18573 for the offsets to have the ISA bit set.
18574 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
18575 invocation. Use beq instead of bgt to mark end of sequence of
18577 (shcompact_incoming_args): Fix store of r2. Use beq instead of
18578 bgt to mark end of sequence of stores.
18579 * config/sh/sh.c (arith_operand): Don't check whether
18580 CONST_OK_FOR_J for now.
18581 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
18582 instead of long for conversion.
18583 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
18584 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
18585 before passing it to fprintf.
18586 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
18587 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
18588 Call set_fpscr before reading/writing SR.
18589 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
18591 * config/sh/lib1funcs.asm: Add `.align 2' directives before
18593 (FMOVD_WORKS): Define on SH5 with FPU.
18594 (set_fpscr): Define on SH5. Remove separate _fpscr_values
18596 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
18598 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
18599 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
18601 (ia_main_table): Ditto.
18602 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
18603 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
18604 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
18605 the definitions from sh.h.
18606 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
18608 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
18609 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
18610 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18611 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
18612 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
18613 Increment LABEL_NUSES.
18615 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18617 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18619 * config/sh/elf.h (SIZE_TYPE): Likewise.
18620 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18621 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18622 shcompact_incoming_args): Load switch table addresses using
18624 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18625 (NO_BUILTIN_SIZE_TYPE): Define.
18626 (SIZE_TYPE): Don't define.
18627 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18628 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18629 definition of __SH5__=32 for -m5-compact-nofpu.
18630 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18632 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
18633 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
18634 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
18635 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
18636 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
18637 (INSN_LENGTH_ALIGNMENT): Likewise.
18638 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18639 * config/sh/sh.md (call, call_value, sibcall): Simplify
18640 copying of non-branch-target register.
18641 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18642 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
18643 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
18644 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18645 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
18646 floating-point values as structs.
18647 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
18648 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
18649 general-purpose register.
18650 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
18651 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18652 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
18653 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
18654 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
18655 (ENCODE_SECTION_INFO): Enclose variables and constants in
18657 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
18658 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
18659 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
18660 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
18661 only for LABEL_REFs. For SYMBOL_REFs, prepend
18662 SH_DATALABEL_ENCODING to the symbol name.
18663 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
18665 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18666 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
18668 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
18669 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
18670 (DATALABEL_REF_P): Don't require CONST.
18671 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
18673 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
18674 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
18676 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18677 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
18678 Use shallow_copy_rtx and PUT_MODE to change the mode of
18679 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
18680 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
18681 on SHmedia using GENERAL_REGs.
18682 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18683 bltu_media_i): Fix reversion of conditions.
18684 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18685 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
18686 * config/sh/sh.c (output_far_jump): Save r13 in macl.
18687 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
18688 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
18689 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
18690 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
18691 (GCC_nested_trampoline): Likewise.
18692 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
18693 * config/sh/sh.c (gen_datalabel_ref): Define.
18694 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
18695 (INITIALIZE_TRAMPOLINE): Likewise.
18696 (TRAMPOLINE_ADJUST_ADDRESS): Define.
18697 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
18698 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
18699 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
18700 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
18701 (ic_invalidate): Adjust for SH5.
18702 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
18703 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
18704 _nested_trampoline.
18705 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
18706 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
18707 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
18708 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18709 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
18710 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
18711 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18712 * config/sh/sh.c (target_reg_operand): Match only target-branch
18713 registers and pseudos that aren't virtual registers.
18714 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18715 Copy operands that don't match target_reg_operand to pseudos.
18716 (call_media, call_value_media, sibcall_media): Use
18717 target_reg_operand instead of target_operand.
18718 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
18719 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
18720 * config/sh/sh.c (target_reg_operand): Match hardware registers
18721 other than branch-target registers.
18722 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
18723 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
18724 (fpscr_values) [SH5 == 32]: Define.
18725 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
18726 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18727 Handle function addresses coming in SUBREGs.
18728 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
18729 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18730 shcompact_return_trampoline): Use datalabel where appropriate.
18731 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
18732 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
18733 general-purpose register to copy one branch-target register to
18735 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18736 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
18737 SYMBOL_REFs with VOIDmode.
18738 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18739 bltu_media_i): New insns.
18740 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18741 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
18742 (INIT_CUMULATIVE_ARGS): Likewise.
18743 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
18744 * machmode.def (V16SFmode): New mode.
18745 * c-common.c (type_for_mode): Support V2SF and V16SF.
18746 * tree.c (build_common_tree_nodes_2): Likewise.
18747 * tree.h (tree_index): Likewise.
18748 * calls.c (emit_call_1): Take args_so_far. Adjust all
18749 callers. Introduce CALL_POPS_ARGS.
18750 * tm.texi (CALL_POPS_ARGS): Document.
18751 * config/sh/crt1.asm: Implement in SHmedia mode.
18752 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
18753 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
18754 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
18755 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
18756 Implement divsi and udivsi in SHmedia mode. Introduce
18757 SHcompact trampolines.
18758 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
18760 (regno_reg_class): Rewrite.
18761 (fp_reg_names): Remove.
18762 (sh_register_names, sh_additional_register_names): New.
18763 (print_operand): Added `u'. Support SUBREGs in addresses.
18764 Add parentheses around shifted CONSTs.
18765 (output_file_start): Output .mode and .abi directives.
18766 (shiftcosts, addsubcosts, multcosts): Adjust.
18767 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
18768 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
18769 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
18770 bytes, not registers. Take into account the need for the
18771 SHcompact incoming args trampoline. Adjust all callers.
18772 (sh_expand_prologue): Take stack_regs into account. Call
18773 incoming args trampoline. Keep stack aligned as per SH5 ABI.
18774 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
18775 stack aligned as per SH5 ABI.
18776 (sh_builtin_saveregs): Support SH5 ABI.
18777 (sh_build_va_list, sh_va_start): Likewise.
18778 (initial_elimination_offset): Take alignment into account.
18779 Compute location of PR according to the SH5 stack frame.
18780 (arith_reg_operand): Reject branch-target registers.
18781 (shmedia_6bit_operand): New.
18782 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
18783 (target_reg_operand): Match DImode only. Accept SUBREGs.
18784 (target_operand): New.
18785 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
18786 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
18787 SIBCALL_REGS for SHmedia.
18788 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
18789 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
18790 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
18791 (TARGET_SWITCHES): New SH5 flags.
18792 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
18793 VALID_REGISTER_P to disable unsupported registers.
18794 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
18795 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
18796 (FUNCTION_ARG_PADDING): Define.
18797 (FASTEST_ALIGNMENT): Adjust.
18798 (SH_REGISTER_NAMES_INITIALIZER): New.
18799 (sh_register_names): Declare.
18800 (DEBUG_REGISTER_NAMES): Define.
18801 (REGISTER_NAMES): Define based on sh_register_names.
18802 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
18803 (sh_additional_register_names): Declare.
18804 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
18805 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
18806 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
18807 (REGISTER_NATURAL_MODE): Define.
18808 (FIRST_PSEUDO_REGISTER): Adjust.
18809 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
18810 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
18811 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
18812 (VECTOR_MODE_SUPPORTED_P): Define.
18813 (REG_CLASS_CONTENTS): Adjust.
18814 (SMALL_REGISTER_CLASSES): Adjust.
18815 (REG_ALLOC_ORDER): Adjust.
18816 (INDEX_REG_CLASS): Adjust.
18817 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
18818 (CONST_OK_FOR_LETTER_P): Adjust.
18819 (PREFERRED_RELOAD_CLASS): Adjust.
18820 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
18821 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
18822 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
18823 (FIRST_FP_PARM_REG): Adjust.
18824 (CALL_POPS_ARGS): Define.
18825 (FUNCTION_ARG_REGNO_P): Adjust.
18826 (struct sh_args): New fields.
18827 (GET_SH_ARG_CLASS): Adjust.
18828 (INIT_CUMULATIVE_ARGS): Adjust.
18829 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
18830 (FUNCTION_ARG_ADVANCE): Adjust.
18831 (FUNCTION_ARG): Adjust.
18832 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
18833 (FUNCTION_ARG_CALLEE_COPIES): Define.
18834 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
18835 (STRICT_ARGUMENT_NAMING): Define.
18836 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
18837 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
18838 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
18839 (SETUP_INCOMING_VARARGS): Adjust.
18840 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
18841 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
18842 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
18843 (SUBREG_OK_FOR_INDEX_P): Adjust.
18844 (EXTRA_CONSTRAINT_S): Update.
18845 (EXTRA_CONSTRAINT_T): New.
18846 (EXTRA_CONSTRAINT): Adjust.
18847 (GO_IF_LEGITIMATE_INDEX): Adjust.
18848 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
18849 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
18850 (MOVE_MAX): Adjust.
18851 (MAX_MOVE_MAX): Define.
18853 (CONST_COSTS): Adjust.
18854 (REGISTER_MOVE_COST): Adjust.
18855 (BRANCH_COST): Adjust.
18856 (TEXT_SECTION_ASM_OP): Adjust.
18857 (DBX_REGISTER_NUMBER): Adjust.
18858 (ASM_OUTPUT_DOUBLE_INT): New.
18859 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
18860 (PREDICATE_CODES): Adjust.
18861 (PROMOTE_MODE): Adjust.
18862 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
18863 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
18864 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
18865 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
18866 (DR0_REG, DR2_REG, DR4_REG): Renumber.
18867 (TR0_REG, TR1_REG, TR2_REG): New.
18868 (XD0_REG): Renumber.
18869 (UNSPEC_COMPACT_ARGS): New.
18870 (type): Added pt and ptabs.
18871 (length): Default to 4 on SHmedia. Default pt length to 12
18872 and 20 on SHmedia32 and SHmedia64, respectively.
18873 (pt): New function unit.
18874 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
18875 Add whitespace between operands of SHmedia instructions.
18877 (adddi3_media, addsi3_media): Adjust constraints.
18878 (subsi3) [SHmedia]: Force operand 1 into a register.
18879 (udivsi3_i1_media, udivsi3_i4_media): New.
18880 (udivsi3): Support SHmedia.
18881 (divsi3_i1_media, divsi3_i4_media): New.
18882 (divsi3): Support SHmedia.
18883 (anddi3, iordi3, xordi3): Adjust constraints.
18884 (zero_extendhidi2, zero_extendqidi2): New.
18885 (extendsidi2, extendhidi2, extendqidi2): New.
18886 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
18887 (pop_e, pop_fpul, pop_4): Likewise.
18888 (movsi_media): Support FP and BT registers.
18889 (movsi_media_nofpu): New. Adjust splits to DImode.
18890 (lduw, ldub): Renamed to zero_extend* above.
18891 (movqi_media): Fix typo.
18892 (movdi_media): Support FP and BT registers.
18893 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
18894 (movdi_const_32bit): New.
18895 (shori_media): Require immediate operand. Use `u' for output.
18896 (movdf_media, movsf_media): Simplified.
18897 (movdf_media_nofpu, movsf_media_nofpu): New.
18898 (movdf, movsf): Adjust
18899 (movv2sf, movv2sf, movv16sf): New.
18900 (beq_media, beq_media_i): Adjust constraints. Don't use
18901 scratch BT register.
18902 (bne_media, bne_media_i): Likewise.
18903 (bgt_media, bgt_media_i): Likewise.
18904 (bge_media, bge_media_i): Likewise.
18905 (bgtu_media, bgtu_media_i): Likewise.
18906 (bgeu_media, bgeu_media_i): Likewise.
18907 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
18908 bunordered): Emit jump insn. Force operands to registers when
18910 (jump_media, jump): Simplify.
18911 (call_compact, call_compact_rettramp): New.
18912 (call_value_compact, call_value_compact_rettramp): New.
18913 (call_media, call_value_media): Simplify.
18914 (sibcall_compact, sibcall_media): New.
18915 (call, call_value): Adjust for SHmedia and SHcompact.
18916 (sibcall, sibcall_value, untyped_call): Likewise.
18917 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
18918 (indirect_jump): Adjust for SHmedia.
18919 (casesi_jump_media): New.
18920 (nop): Re-enable for SHmedia.
18921 (call_site): Restrict to SH1.
18922 (casesi): Adjust for SHmedia.
18923 (casesi_shift_media, casesi_load_media): New.
18924 (return): Explicitly use PR register. Call return trampoline
18926 (return_i): Explicitly use PR register.
18927 (shcompact_return_tramp, shcompact_return_tramp_i): New.
18928 (return_media): Adjust.
18929 (shcompact_incoming_args): New.
18930 (epilogue): Adjust.
18931 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18932 (movstrsi): Disable on SH5.
18933 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
18934 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
18935 (subsf3, subsf3_media): Likewise.
18936 (mulsf3, mulsf3_media, mac_media): Likewise.
18937 (divsf3, divsf3_media): Likewise.
18938 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
18939 (floatsisf2, fux_truncsfsi2): Likewise.
18940 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
18942 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
18943 (cmpunsf_media, cmpsf): Likewise.
18944 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
18945 (abssf2, abssf2_media): Likewise.
18946 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
18947 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
18948 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
18949 (floatsidf2, fix_truncdfsi2): Likewise.
18950 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
18952 (cmpeqdf_media, cmpgtdf_media): Likewise.
18953 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
18954 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
18955 (absdf2, absdf2_media): Likewise.
18956 (extendsfdf2, extendsfdf2_media): Likewise.
18957 (truncsfdf2, truncsfdf2_media): Likewise.
18958 * config/sh/sh64.h: New file.
18959 * config/sh/t-sh64: New file.
18960 * config/sh/shmedia.h: New file.
18961 * config/sh/ushmedia.h: New file.
18962 * config/sh/sshmedia.h: New file.
18963 * configure.in: Added sh64-*-elf.
18964 * configure: Rebuilt.
18965 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
18966 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
18967 (reg_class_from_letter): Use `b' for TARGET_REGS.
18968 (print_operand): Support `%M', `%m', `AND' and
18969 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
18970 (andcosts): Adjust for SHmedia.
18971 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
18973 (target_reg_operand): New function.
18974 * config/sh/sh-protos.h (target_reg_operand): Declare.
18975 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
18976 FP registers on SH5.
18977 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
18979 (TARGET_REGISTER_P): New macro.
18980 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
18981 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
18982 (EXTRA_CONSTRAINT_S): New macro.
18983 (EXTRA_CONSTRAINT): Adjust.
18984 (FLOAT_TYPE_SIZE): Define to 32.
18985 (Pmode): DImode on SHmedia.
18986 (CONST_COSTS): Adjust for SHmedia literals.
18987 (PREDICATE_CODES): Added target_reg_operand.
18988 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
18989 * config/sh/sh.md: Remove all attrs from SHmedia insns.
18990 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
18991 (cmpdi): Accept SHmedia.
18992 (movdicc_false, movdicc_true): New insns.
18993 (movdicc): New expand.
18994 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
18996 (addsi3_media): Match `S' constraint.
18997 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
18998 (negdi2): Expand for SHmedia.
18999 (one_cmpldi2): New expand.
19000 (zero_extendsidi2): Change from expand to insn.
19001 (extendsidi2): Add constraints.
19002 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
19003 LD/ST address. Fix SI immediate loading split.
19004 (movhi_media, movqi_media, lduw, ldub): New insns.
19005 (movhi, movqi): Accept SHmedia.
19006 (shori_media, movdi_media): Relax input constraints. Split
19007 symbolic constants.
19008 (movdf_media, movsf_media): New insn. New split to movdi.
19009 (movdf, movsf): Match on SHmedia.
19010 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
19011 bgeu_media): New insns and splits. New insns with `_i' suffix.
19012 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
19013 (bunordered): New expand.
19014 (jump_compact): Renamed from `jump'.
19015 (jump_media): New insn.
19016 (jump): New expand.
19017 (call_media, call_value_media): New insns.
19018 (call, call_value): Adjust.
19019 (indirect_jump_compact): Renamed from `indirect_jump'.
19020 (indirect_jump_media): New insn.
19021 (indirect_jump): New expand.
19022 (untyped_call, return): Accept SHmedia.
19023 (return_media): New insn.
19024 (prologue, epilogue, blockage): Accept SHmedia.
19025 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
19026 (sunordered): New expand.
19027 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
19028 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
19029 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
19030 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
19031 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
19032 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
19033 abssf2_media): New insns.
19034 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
19035 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
19036 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
19037 floatdidf2, floatsidf2_media, fix_truncdfdi2,
19038 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
19039 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
19040 absdf2_media): New insns.
19041 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
19042 (extendsfdf2_media, truncdfsf2_media): New insns.
19043 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
19044 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
19045 * config/sh/sh.h (CONST_OK_FOR_J): Document.
19046 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
19047 * config/sh/sh.md (adddi3): New expand.
19048 (adddi3_media, adddi3z_media): New insns.
19049 (adddi3_compact): Renamed from adddi3.
19050 (addsi3_media): Use add.l r63 to add constant zero.
19051 (subdi3): New expand.
19052 (subdi3_media): New insn.
19053 (subdi3_compact): Renamed from subdi3.
19054 (mulsidi3): New expand.
19055 (mulsidi3_media): New insn.
19056 (mulsidi3_compact): Renamed from mulsidi3.
19057 (umulsidi3): New expand.
19058 (umulsidi3_media): New insn.
19059 (umulsidi3_compact): Renamed from umulsidi3.
19060 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
19061 (ashlsi3, ashrsi3, lshrsi3): Use them.
19062 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
19063 (ashldi3, ashrdi3, lshrdi3): Use them.
19064 (zero_extendsidi2): New expand.
19065 (extendsidi2): New insn.
19066 (movsi_media): New insn. Split to movdi to load constants.
19067 (movsi): Enable for shmedia.
19068 (movdi_media): New insn. Use shori_media to load wide constants.
19069 (short_media): New insn.
19070 (movdi): Enable for shmedia.
19071 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
19072 * config/sh/sh.h (CPP_SPEC): Added `m5'.
19073 (SUBTARGET_CPP_SPEC): Added `!m5'.
19074 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
19075 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
19076 to all other SH variants.
19077 (TARGET_DEFAULT): Set to SH1_BIT.
19078 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
19079 (BITS_PER_WORD): Raise to 64 on shmedia.
19080 (MAX_BITS_PER_WORD): Change to 64.
19081 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
19082 (INT_TYPE_SIZE): Keep as 32.
19083 (UNITS_PER_WORD): Raise to 8 on shmedia.
19084 (MIN_UNITS_PER_WORD): Keep as 4.
19085 (POINTER_SIZE): Raise to 64 on shmedia.
19086 (CONST_OK_FOR_J): New macro.
19087 (CONST_OK_FOR_LETTER_P): Use it.
19088 (processor_type): Add PROCESSOR_SH5.
19089 * config/sh/sh.md: Conditionalize all expands, insns and
19090 splits to TARGET_SH1.
19092 (addsi3_compact): Renamed from...
19093 (addsi3): Now an expand.
19094 (addsi3_media, subsi3_media): New insns.
19095 (subsi3): Don't negate constants with SHmedia.
19097 * hooks.c: New file.
19098 * hooks.h: New file.
19099 * Makefile.in (HOOKS_H): New.
19100 (TARGET_DEF_H): Added $(HOOKS_H).
19101 (OBJS): Added hooks.o.
19102 (cfgcleanup.o, bb-reorder.o): Added target.h.
19103 (hooks.o): Added dependencies.
19104 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
19105 (TARGET_INITIALIZER): this.
19106 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
19107 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
19108 * bb-reorder.c: Include target.h.
19109 (reorder_basic_blocks): Skip if cannot modify jumps.
19110 * cfgcleanup.c: Include target.h.
19111 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
19113 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19115 * config/mips/mips.md (casesi_internal, casesi_internal_di):
19116 Protect jump delay slot instructions with .set noreorder and
19119 2002-02-08 Chris Demetriou <cgd@broadcom.com>
19121 * config/mips/mips.md (casesi_internal_di): Calculate
19122 the index into the target offset table correctly.
19124 2002-02-08 Richard Henderson <rth@redhat.com>
19126 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
19127 * final.c (output_addr_const): Accept and discard SUBREG.
19128 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
19129 mark them unknown instead.
19130 (simplify_subtraction): Handle RTX_UNKNOWN.
19131 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
19133 2002-02-08 David Edelsohn <edelsohn@gnu.org>
19135 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
19137 2002-02-08 Richard Henderson <rth@redhat.com>
19139 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
19141 2002-02-08 Andreas Jaeger <aj@suse.de>
19143 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
19144 * config/i386/t-linux64: New file.
19146 2002-02-08 Jakub Jelinek <jakub@redhat.com>
19148 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
19149 * c-parse.in (compstmt): Clear last_expr_type.
19151 2002-02-07 Richard Henderson <rth@redhat.com>
19153 * loop.c (strength_reduce): Sink final_value when not
19156 2002-02-07 David O'Brien <obrien@FreeBSD.org>
19158 * config/sparc/freebsd.h: Fix mismatched spec {.
19160 2002-02-07 Richard Henderson <rth@redhat.com>
19162 * cfgrtl.c: Include recog.h and insn-config.h.
19163 (keep_with_call_p): Fix general_operand invocation.
19164 * Makefile.in (cfgrtl.o): Update dependencies.
19166 2002-02-07 Kazu Hirata <kazu@hxi.com>
19168 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
19169 comment. Accept HImode only if TARGET_H8300.
19171 2002-02-07 Eric Christopher <echristo@redhat.com>
19173 * config/mips/crtn.asm: Cleanup #ifdefs.
19175 2002-02-07 Eric Christopher <echristo@redhat.com>
19177 * config/mips/crti.asm: Add changes for mips16. mips16 uses
19178 register 7 as RA instead of $31.
19179 * config/mips/crtn.asm: Ditto.
19180 * config/mips/mips.c (mips_move_2words): Add case for
19181 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
19182 (compute_frame_size): Fix typo.
19183 (save_restore_insns): Ditto. Make documentation about using
19184 register $7 as return register more precise.
19185 (mips_expand_epilogue): Fix comment. Add code to work around not
19186 being able to add to the stack pointer directly.
19187 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
19188 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
19191 2002-02-07 Tom Rix <trix@redhat.com>
19193 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
19194 immediates in ldu and stdu DS opcode field.
19195 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
19196 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
19197 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
19199 2002-02-07 Jeff Sturm <jsturm@one-point.com>
19201 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
19202 offset for stack bias.
19204 2002-02-07 H.J. Lu <hjl@gnu.org>
19206 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
19208 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
19210 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
19212 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
19214 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
19215 * i386.c (x86_order_regs_for_local_alloc): New global function.
19216 * i386.h (REG_ALLOC_ORDER): CLeanup.
19217 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
19219 2002-02-07 Richard Henderson <rth@redhat.com>
19221 PR optimization/2463
19222 * alias.c (find_base_value): Recall base values for fixed hard regs.
19223 * loop.c (loop_regs_update): Don't use single_set on non-insns.
19225 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
19227 * config/mips/mips.md (define_delay) [mips16]: Adjust required
19230 2002-02-06 Richard Henderson <rth@redhat.com>
19233 * stmt.c (resolve_operand_name_1): Take more care with mixed
19234 named and unnamed operands.
19236 2002-02-06 Janis Johnson <janis187@us.ibm.com>
19237 Jan Hubicka <jh@suse.cz>
19239 * loop.c (remove_constant_addition): Avoid clobbering a shared
19242 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19244 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
19245 * config/s390/t-linux64: New file.
19246 * config/s390/libgcc-glibc.ver: New file.
19248 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
19250 * config/s390/linux64.h: Delete file.
19251 * config/s390/s390x.h: New file.
19252 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
19253 as target header file.
19254 * config/s390/linux.h (TARGET_VERSION): Define depending on
19255 DEFAULT_TARGET_64BIT.
19256 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
19257 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
19258 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
19259 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
19260 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
19261 (EXTRA_SPEC): New define.
19262 * config/s390/s390.h (TARGET_VERSION): Define depending on
19263 DEFAULT_TARGET_64BIT.
19264 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
19266 2002-02-06 Jason Merrill <jason@redhat.com>
19268 * c-decl.c (finish_function): Warn about a non-void function with
19269 no return statement and no abnormal exit.
19270 (current_function_returns_abnormally): New variable.
19271 (start_function): Clear it.
19272 (struct c_language_function): Add returns_abnormally.
19273 (push_c_function_context): Save it.
19274 (pop_c_function_context): Restore it.
19275 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
19276 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
19277 an explicit return type.
19278 * c-tree.h: Declare current_function_returns_abnormally.
19279 (C_FUNCTION_IMPLICIT_INT): New macro.
19280 * c-typeck.c (build_function_call): Set it.
19281 (c_expand_return): Set current_function_returns_value even if the
19282 value is erroneous.
19284 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19287 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
19288 unsafe for reevaluation.
19290 2002-02-06 Jakub Jelinek <jakub@redhat.com>
19293 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
19294 EXPR_STMT, but COMPOUND_STMT, recurse into it.
19296 2002-02-06 Richard Henderson <rth@redhat.com>
19298 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
19299 be a general_operand. Dest for function value must be a pseudo.
19301 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
19303 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
19304 as SYMBOL_REFs from the constant pool.
19306 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
19308 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
19309 passed by invisible reference.
19311 2002-02-05 Richard Henderson <rth@redhat.com>
19313 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
19315 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
19317 Implement using "base addresses" in insn operands as default.
19318 * config/mmix/mmix.c (mmix_conditional_register_usage): if
19319 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
19320 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
19321 used to read the rtx value.
19322 (mmix_target_asm_function_epilogue): Fix spacing.
19323 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
19324 (mmix_legitimate_address): Ditto.
19325 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
19326 should be loaded with a GETA insn. Don't allocate needless extra
19327 char for nul termination and fix misleading comment.
19328 (mmix_print_operand_address): Handle constants if
19329 TARGET_BASE_ADDRESSES.
19330 (mmix_output_register_setting): Use base addressing if
19331 TARGET_BASE_ADDRESSES and the number of insns is 3.
19332 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
19333 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
19334 to use R as constraint, add LDA to match s.
19335 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
19336 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
19337 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
19338 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
19339 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
19340 order with other fixed registers.
19341 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
19342 other parameter/call-clobbered registers.
19343 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
19344 -mbase-addresses, -mno-base-addresses.
19345 (MMIX Options): Ditto.
19347 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
19349 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
19351 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
19353 * config/rs6000/altivec.h: Change elem to _S_elem.
19355 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19357 * config/netbsd.h (WCHAR_TYPE): Define.
19358 (WCHAR_TYPE_SIZE): Ditto.
19359 (WINT_TYPE): Ditto.
19360 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
19361 (WCHAR_UNSIGNED): Ditto.
19362 (WCHAR_TYPE_SIZE): Ditto.
19363 (WINT_TYPE): Ditto.
19364 * config/arm/netbsd.h: Likewise.
19365 * config/i386/netbsd-elf.h: Likewise.
19366 * config/i386/netbsd.h: Likewise.
19367 * config/m68k/netbsd-elf.h: Likewise.
19368 * config/m68k/netbsd.h: Likewise.
19369 * config/ns32k/netbsd.h: Likewise.
19370 * config/sparc/netbsd.h: Likewise.
19371 * config/vax/netbsd.: Likewise.
19373 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19375 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
19376 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
19377 (TARGET_INITIALIZER): this.
19378 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
19379 (BITFIELD_NBYTES_LIMITED): Markup fix.
19380 * tree.h (default_ms_bitfield_layout_p): Declare.
19381 (record_layout_info): Added prev_field.
19382 * tree.c (default_ms_bitfield_layout_p): New fn.
19383 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
19384 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
19385 * stor-layout.c: Include target.h.
19386 (start_record_layout): Initialize prev_field.
19387 (place_field): Handle MS bit-field layout, and disregard
19388 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
19389 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
19390 * Makefile.in (stor-layout.o): Adjust dependencies.
19392 2002-02-05 Jason Merrill <jason@redhat.com>
19394 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
19396 2002-02-05 Andreas Jaeger <aj@suse.de>
19398 * crtstuff.c: Fix comments.
19400 2002-02-05 Richard Henderson <rth@redhat.com>
19403 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
19404 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
19407 * config/mips/mips.c (function_arg): Handle TImode.
19408 (function_arg_advance): Likewise.
19410 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19412 * config/rs6000/altivec.h (vec_step_help): Rename to
19415 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19417 * config/rs6000/altivec.h: Fix typos.
19419 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
19421 * config/arm/netbsd.h: Correct a comment.
19423 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19425 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
19426 building void typed builtins.
19428 * config/rs6000/altivec.h (vec_ld*): Fix typos.
19429 (vec_step): Implement for C++.
19431 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19433 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
19435 2002-02-04 Richard Henderson <rth@redhat.com>
19437 * combine.c (nonzero_bits): Re-introduce special case for
19438 sp/fp/ap wrt REGNO_POINTER_ALIGN.
19440 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
19442 * doc/extend.texi: Warn about unsupported usage of altivec
19445 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
19446 (altivec_predicate_*): New.
19448 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
19449 Add C++ version of vec_*() functions.
19451 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
19452 (bdesc_2arg): Remove altivec predicates.
19453 (altivec_expand_builtin): Handle predicates.
19454 (altivec_init_builtins): Handle predicates.
19455 (altivec_expand_predicate_builtin): New.
19457 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19459 * pa.c (DO_FRAME_NOTES): Move forward.
19460 (store_reg): Revise handling of frame notes.
19461 (load_reg): Likewise.
19462 (set_reg_plus_d): Likewise.
19463 (hppa_expand_prologue): Likewise.
19464 (hppa_expand_epilogue): Likewise.
19466 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19468 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
19470 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19472 PR c/4475, c++/3780:
19473 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
19474 * c-common.h (SWITCH_TYPE): Define.
19475 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
19476 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
19477 Rename spareness variable to sparseness.
19478 (expand_end_case_type): Renamed from expand_end_case, use orig_type
19479 if non-NULL instead of TREE_TYPE (orig_index).
19480 * tree.h (expand_end_case_type): Renamed from expand_end_case.
19481 (expand_end_case): Define using expand_end_case_type.
19482 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
19483 to expand_end_case_type.
19484 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
19486 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19488 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
19489 (BIGGEST_ALIGNMENT): Change to 128.
19491 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19493 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
19495 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
19497 * pa.md (call_internal_reg_64bit): Remove unused variable.
19499 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
19501 * config/arm/arm.h (machine_function): Add uses_anonymous_args
19503 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
19504 * config/arm/arm.c (current_function_anonymous_args): Delete,
19505 replace uses with cfun->machine->uses_anonymous_args.
19506 (arm_reorg): Do not reset uses_anonymous_args.
19508 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
19509 any geenral register.
19511 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
19513 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
19516 2002-02-04 Richard Henderson <rth@redhat.com>
19518 * combine.c (force_to_mode): Remove STACK_BIAS code.
19519 (nonzero_bits): Likewise. Replace sp/fp special case with
19520 REGNO_POINTER_ALIGN.
19522 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
19523 (HARD_FRAME_POINTER_REGNUM): New.
19524 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
19525 (FIXED_REGS, CALL_USED_REGS): Update.
19526 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
19527 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
19528 (HARD_REGNO_NREGS): Update for SFP.
19529 (STACK_POINTER_OFFSET): Include bias here ...
19530 (FIRST_PARM_OFFSET): ... not here.
19531 (STACK_BIAS): Remove.
19532 (INIT_EXPANDERS): New.
19533 (STARTING_FRAME_OFFSET): Do not include bias.
19534 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
19535 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
19536 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
19537 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
19538 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
19539 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
19540 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
19541 (MUST_SAVE_REGISTER): Likewise.
19542 (sparc_flat_function_prologue): Likewise.
19543 (sparc_flat_function_epilogue): Likewise.
19544 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
19545 (sparc_init_modes): SFP is GENERAL_REGS.
19546 (sparc_builtin_saveregs): SFP does not have bias applied.
19548 2002-02-04 Richard Henderson <rth@redhat.com>
19550 * config/alpha/alpha.c (current_function_is_thunk): Don't check
19551 current_function_is_thunk.
19552 (alpha_sa_mask): Distinguish between current_function_is_thunk
19553 called from ASM_OUTPUT_MI_THUNK and not.
19554 (alpha_does_function_need_gp): Thunks always need gp.
19555 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19556 (alpha_output_mi_thunk_osf): New.
19557 * config/alpha/alpha-protos.h: Update.
19558 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
19560 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
19562 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
19563 function types, not when they're taken away.
19565 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
19567 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
19568 CODE_LABEL and jump table when replacing a table jump with a
19571 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19573 * config/s390/s390-protos.h (legitimize_la_operand,
19574 s390_secondary_input_reload_class, s390_plus_operand,
19575 s390_expand_plus_operand): Add prototypes.
19577 config/s390/s390.c (s390_secondary_input_reload_class,
19578 s390_plus_operand, s390_expand_plus_operand): New functions.
19580 (struct s390_address): New member 'pointer'.
19581 (s390_decompose_address): Compute it.
19582 (legitimate_la_operand_p): Use it.
19583 (legitimize_la_operand): New function.
19584 (movti, movdi, movdf splitters): Call it.
19586 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
19587 (PREDICATE_CODES): Add s390_plus_operand.
19589 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
19590 (la_ccclobber): Allow GENERAL_REGS as output operand.
19592 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
19593 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
19594 (*la_64, *la_31, reload_indi, reload_insi): ... these.
19596 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
19598 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
19599 register names for regular asm () construct.
19601 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19603 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
19606 2002-02-04 Jakub Jelinek <jakub@redhat.com>
19608 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
19611 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
19613 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
19614 constant pool to be identical by string address and index.
19616 2002-02-04 Anthony Green <green@redhat.com>
19618 * output.h (SECTION_OVERRIDE): Define.
19619 * varasm.c (named_section): Obey SECTION_OVERRIDE.
19621 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19623 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19624 by existing arm*-*-netbsd* (a.out) target.
19625 (ns32k-*-netbsdelf*): Likewise.
19626 (sparc-*-netbsdelf*): Likewise.
19627 (vax-*-netbsdelf*): Likewise.
19629 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
19631 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19632 headers and libobjc headers.
19634 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
19636 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
19637 (_mingw.h): Remove duplicate include.
19639 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19641 * config.gcc: Set cpu_type to m68k for 68010, as well.
19642 (m68010-*-netbsdelf*): New...
19643 (m68k*-*-netbsdelf*): ...targets.
19644 * config/m68k/netbsd-elf.h: New file.
19646 2002-02-02 Kazu Hirata <kazu@hxi.com>
19648 * config/h8300/h8300.c (hand_list): Move inside function_arg.
19650 2002-02-02 Kazu Hirata <kazu@hxi.com>
19652 * config/h8300/h8300.c (h8_push_ops): Move inside
19654 (h8_pop_ops): Likewise.
19655 (h8_move_ops): Likewise.
19657 2002-02-02 Kazu Hirata <kazu@hxi.com>
19659 * config/h8300/h8300.c (os_task): Make it static.
19660 (monitor): Likewise.
19661 (pragma_saveall): Likewise.
19663 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
19665 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
19666 constant is a valid sign-extension for Pmode.
19668 2002-02-02 Kazu Hirata <kazu@hxi.com>
19670 * config/h8300/h8300.c: Fix formatting.
19672 2002-02-02 Kazu Hirata <kazu@hxi.com>
19674 * config/h8300/h8300.md: Fix formatting.
19676 2002-02-02 Kazu Hirata <kazu@hxi.com>
19678 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
19679 predicates of operands[1]. Split the patterns for each
19682 2002-02-02 Kazu Hirata <kazu@hxi.com>
19684 * config/h8300/h8300.md (xor patterns): Tighten the predicates
19685 of operands[1] to register_operand.
19687 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19689 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
19690 * cpphash.c (_cpp_init_hashtable): Similarly.
19691 * cppinit.c (cpp_create_reader): Default the signed_char flag.
19692 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
19693 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
19694 (cpp_handle_option): Handle the new options.
19695 * cpplex.c (cpp_interpret_charconst): Use new flag.
19696 * cpplib.h (struct cpp_options): New member signed_char.
19697 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
19698 (cpp_options): Handle -fsigned-char and -funsigned-char.
19699 (static_specs): Remove signed_char_spec.
19700 (do_spec1): Don't handle %c.
19701 * system.h: Poison SIGNED_CHAR_SPEC.
19702 * tradcif.y (yylex): Use flag_signed_char.
19703 * tradcpp.h (flag_signed_char): New.
19704 * tradcpp.c (flag_signed_char): New.
19705 (main): Handle new command-line options.
19706 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
19708 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
19709 * avr/avr.h: Remove old comments.
19710 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
19711 (CC1_SPEC): Pass -fsigned-char if -mic*.
19712 (SIGNED_CHAR_SPEC): Remove.
19714 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
19716 2002-02-01 Eric Christopher <echristo@redhat.com>
19718 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
19719 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
19720 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
19721 (ASM_OUTPUT_REG_POP): Ditto.
19723 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19725 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
19728 2002-02-02 Jakub Jelinek <jakub@redhat.com>
19730 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
19732 2002-02-02 Jakub Jelinek <jakub@redhat.com>
19735 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
19738 2002-02-01 Janis Johnson <janis187@us.ibm.com>
19740 * cfganal.c: Include tm_p.h.
19741 (keep_with_call_p): Fix the test that determines if a register holds
19742 the return value of a call.
19744 2002-02-01 DJ Delorie <dj@redhat.com>
19746 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
19747 we are given conflicting registers, switch to the other one we
19748 had allocated for us.
19749 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
19750 as TImode so we know when the "other" register is available.
19752 2002-02-01 David O'Brien <obrien@FreeBSD.org>
19754 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
19757 2002-02-01 Janis Johnson <janis187@us.ibm.com>
19759 * cfganal.c (keep_with_call_p): New function.
19760 (flow_call_edges_add): Prevent splitting a block between a call and
19761 a single-set instruction that should be kept in the same block.
19763 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
19765 * doc/install.texi (avr): Update outdated URL.
19767 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
19769 * config/stormy16/stormy16.md (pushqi): New.
19773 (movhi): Remove stack operands.
19775 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
19776 nonimmediate_nonstack_operand.
19777 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
19779 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
19782 2002-01-31 Jason Merrill <jason@redhat.com>
19784 * Makefile.in (c-parse.c): Handle .output file.
19785 * objc/Make-lang.in (objc-parse.c): Likewise.
19787 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
19789 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
19790 the -me[lb] option is given. Don't output the default flag
19793 2002-01-31 Zack Weinberg <zack@codesourcery.com>
19795 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
19796 the primary source file; this has not been done yet.
19797 * c-decl.c (c_expand_body): Reset input_filename from
19798 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
19800 2002-01-31 Kazu Hirata <kazu@hxi.com>
19802 * rtlanal.c (subreg_regno_offset): Do not use
19803 SUBREG_REGNO_OFFSET.
19804 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
19805 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
19807 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19809 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
19810 version rather than GNATS version in --version output.
19812 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
19814 * ifcvt.c (noce_process_if_block): Make a copy of the destination
19815 when copying back from a temporary.
19817 2002-01-30 Richard Henderson <rth@redhat.com>
19819 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
19820 and new_dest are the same.
19822 2002-01-30 Richard Henderson <rth@redhat.com>
19825 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
19826 * rtl.c (note_insn_name): Update.
19827 * emit-rtl.c (remove_unnecessary_notes): Kill it.
19828 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
19829 to perform loop rotation.
19830 (expand_exit_loop_top_cond): New.
19831 * tree.h (expand_exit_loop_top_cond): Declare it.
19832 * c-semantics.c (genrtl_while_stmt): Use it.
19833 (genrtl_for_stmt): Likewise.
19835 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
19837 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
19838 arguments to 64-bit boundaries on 64-bit ABIs.
19840 2002-01-30 Steve Ellcey <sje@cup.hp.com>
19842 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
19844 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19846 * c-decl.c (grokdeclarator): Handle type being a typedef for an
19849 2002-01-30 David O'Brien <obrien@FreeBSD.org>
19851 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
19852 * config/sparc/sparc_bi.h: Remove file.
19853 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
19855 2002-01-30 Richard Henderson <rth@redhat.com>
19857 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
19859 2002-01-30 Zack Weinberg <zack@codesourcery.com>
19861 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
19863 2002-01-30 Jason Merrill <jason@redhat.com>
19865 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
19866 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
19867 (reg_save): Use DW_CFA_offset_extended_sf instead.
19869 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
19871 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19873 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
19876 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
19878 * rs6000.md ("*call_value_local32"): Remove constraints.
19879 ("*call_value_local64"): Same.
19880 ("*call_value_indirect_nonlocal_aix32"): Same.
19881 ("*call_value_nonlocal_aix32"): Same.
19882 ("*call_value_indirect_nonlocal_aix64"): Same.
19883 ("*call_value_nonlocal_aix64"): Same.
19884 ("*call_value_nonlocal_sysv"): Same.
19886 2002-01-29 Richard Henderson <rth@redhat.com>
19888 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
19890 2002-01-29 Richard Henderson <rth@redhat.com>
19892 * expr.c (force_operand): Ignore flag_pic for detecting pic
19894 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
19895 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
19896 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
19897 instead of open-coded loop.
19898 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
19899 be fixed when in use.
19901 2002-01-29 Richard Henderson <rth@redhat.com>
19903 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
19904 * sched-rgn.c (propagate_deps): Update them.
19905 * sched-deps.c (sched_analyze_insn): Update them. Flush the
19906 clobbers list when either gets too long.
19908 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19910 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
19911 and INDEX_REGS the same as GENERAL_REGS.
19912 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
19914 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
19916 * tree.c (build_nonstandard_integer_type): Correct prototype.
19918 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
19920 * config/s390/s390.md (movstrsico, movstrdix_64,
19921 movstrsix_31): Remove, replace by ...
19922 (movstrdi_short, movstrsi_short, movstrdi_long,
19923 movstrsi_long): ... these. New.
19924 (movstrdi, movstrsi): Adapt.
19926 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
19927 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
19928 Remove unnecessary CC clobber.
19929 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
19930 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
19932 (divmoddi4): Don't partially initialize TImode register.
19934 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
19936 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
19938 2002-01-29 Richard Henderson <rth@redhat.com>
19940 * flow.c (print_rtl_and_abort): Remove.
19941 (print_rtl_and_abort_fcn): Remove.
19942 (verify_local_live_at_start): Use dump_bb instead.
19943 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
19944 (verify_wide_reg_1): Return 2 on mode test failure.
19946 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
19948 PR c/3325, c/3326, c/2511, c/3347
19949 * c-decl.c (enum_decl_context): Remove BITFIELD.
19950 (grokdeclarator): Take bitfield width as an input.
19951 Ensure bitfields are given the correct type. Perform
19952 bitfield width validation with build_bitfield_integer_type
19953 rather than waiting for finish_struct.
19954 (grok_typename, grok_typename_in_parm_context, start_decl,
19955 push_parmdecl, grokfield, start_function): Update calls to
19957 (build_bitfield_integer_type): New function.
19958 (finish_struct): Move bitfield validation to grokdeclarator
19959 and build_bitfield_integer_type.
19960 * tree.c (build_nonstandard_integer_type): New function.
19961 * tree.h (build_nonstandard_integer_type): New prototype.
19963 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
19965 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19968 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
19969 don't ignore unrecognized -W* options.
19970 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
19971 * cpplib.h (cpp_handle_option): Adjust prototype.
19972 * c-decl.c (c_decode_options): Pass 0 as last argument to
19976 * gcc.c (cpp_unique_options): Split from cpp_options.
19977 (cpp_options): Source cpp_unique_options.
19978 (default_compilers): Use cpp_unique_options instead of cpp_options
19979 when used together with cc1_options.
19980 (static_specs): Add cpp_unique_options.
19981 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
19982 when used together with cc1_options.
19984 2002-01-29 Kazu Hirata <kazu@hxi.com>
19986 * config/h8300/h8300-protos.h: Update the prototype of
19988 * config/h8300/h8300.c (output_a_shift): Remove an unused
19989 argument 'insn'. Remove redundant code.
19990 * config/h8300/h8300.md: Adust to the new prototype of
19993 2002-01-29 Kazu Hirata <kazu@hxi.com>
19995 * config/h8300/h8300-protos.h: Update the prototypes of
19996 emit_a_rotate and expand_a_rotate.
19997 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
19998 first argument to 'enum rtx_code'.
19999 (expand_a_rotate): Likewise.
20001 2002-01-28 Kazu Hirata <kazu@hxi.com>
20003 * config/h8300/h8300-protos.h: Update the prototype of
20005 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
20007 * config/h8300/h8300.md: Adjust to the new prototype.
20009 2002-01-28 Kazu Hirata <kazu@hxi.com>
20011 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
20014 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
20016 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
20017 is a fixed register before returning pic_offset_table_rtx.
20018 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
20019 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
20021 2002-01-28 Jason Merrill <jason@redhat.com>
20023 * dwarf2.h: Sync with src version.
20025 2002-01-28 Paul Koning <pkoning@equallogic.com>
20027 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
20028 BT_FN_VOID_PTR_VAR.
20029 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
20030 * doc/extend.texi (__builtin_prefetch): Update documentation:
20031 first argument is now const void ptr.
20033 2002-01-28 Kazu Hirata <kazu@hxi.com>
20035 * config/h8300/h8300-protos.h: Remove an unused prototype.
20037 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
20039 * toplev.c (lang_independent_init): Round up identifier size.
20041 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20043 * config.gcc: Revert previous change.
20045 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
20047 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
20049 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
20051 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
20052 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
20053 other non-elf netbsd config frags.
20054 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
20055 collect2 will does that.
20056 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
20057 shared-lib frobbing will work.
20059 2002-01-28 Kazu Hirata <kazu@hxi.com>
20061 * config/h8300/h8300.h: Fix formatting.
20062 * config/h8300/h8300.md: Likewise.
20064 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
20066 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
20067 the old, removed AAA_standards fix.
20068 * fixinc/fixincl.x: Rebuilt.
20070 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
20072 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
20073 atexit call in crtbegin, hooked in after call to frame_dummy;
20074 register EH before registering __fini__start.
20076 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
20078 * config/rs6000/altivec.h: Remove spurious semicolons.
20080 2002-01-27 Kazu Hirata <kazu@hxi.com>
20082 * config/h8300/h8300.md: Replace dead bit extraction patterns
20083 with ones that work.
20085 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20087 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
20088 if not STRICT_ALIGNMENT.
20089 * rtl.h (MEM_ALIGN): Likewise.
20091 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
20093 * doc/invoke.texi (-fdump-translation-unit): Revert this
20094 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
20096 2002-01-27 Kazu Hirata <kazu@hxi.com>
20098 * config/h8300/h8300.md (define_constants): New.
20099 (anonymous patterns) Use defined constants appropriately.
20101 2002-01-27 Kazu Hirata <kazu@hxi.com>
20103 * config/h8300/h8300.c (function_arg): Remove redundant code.
20105 2002-01-26 Richard Henderson <rth@redhat.com>
20107 * sched-deps.c (reg_pending_uses_head): New.
20108 (reg_pending_barrier): Rename from reg_pending_sets_all.
20109 (find_insn_list): Don't mark inline.
20110 (find_insn_mem_list): Remove.
20111 (add_dependence_list, add_dependence_list_and_free): New.
20112 (flush_pending_lists): Replace only_write param with separate
20113 for_read and for_write parameters. Update all callers. Use
20114 add_dependence_list_and_free.
20115 (sched_analyze_1): Do not add reg dependencies here; just set
20116 the pending bits. Use add_dependence_list.
20117 (sched_analyze_2): Likewise.
20118 (sched_analyze_insn): Replace schedule_barrier_found with
20119 reg_pending_barrier. Add all dependencies for pending reg
20120 uses, sets, and clobbers.
20121 (sched_analyze): Don't add reg dependencies for calls, just
20122 set pending bits. Use regs_invalidated_by_call. Treat
20123 sched_before_next_call as a normal list, not a fake insn.
20124 (init_deps): No funny init for sched_before_next_call.
20125 (free_deps): Free pending mems lists. Don't zero reg_last.
20126 (init_deps_global): Init reg_pending_uses.
20127 (finish_deps_global): Free it.
20128 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
20129 (find_insn_mem_list): Remove.
20130 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
20131 (propagate_deps): Use them. Zero temp mem lists.
20133 2002-01-26 Richard Henderson <rth@redhat.com>
20135 * Makefile.in (CRTSTUFF_CFLAGS): New.
20136 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
20137 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
20138 crtstuff.c instead of alpha assembly version.
20139 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
20140 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
20141 not FORCE_{INIT,FINI}_SECTION_ALIGN.
20142 (__do_global_dtors_aux): Mark used.
20143 (frame_dummy, __do_global_ctors_aux): Mark used.
20144 (fini_dummy, init_dummy): Remove.
20146 * config/alpha/crtbegin.asm: Remove file.
20147 * config/alpha/crtend.asm: Remove file.
20148 * config/alpha/t-crtbe: Remove file.
20149 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
20150 (LINK_EH_SPEC): New.
20152 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
20153 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
20154 calling constructors.
20155 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
20157 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
20158 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
20159 CRT_END_INIT_DUMMY hack.
20160 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
20161 FORCE_{INIT,FINI}_SECTION_ALIGN.
20163 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
20164 FORCE_{INIT,FINI}_SECTION_ALIGN.
20166 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
20167 invocation sequence.
20168 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
20170 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
20171 (FORCE_CODE_SECTION_ALIGN): New.
20173 2002-01-26 Richard Henderson <rth@redhat.com>
20175 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
20177 2002-01-26 Richard Henderson <rth@redhat.com>
20179 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
20180 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
20182 2002-01-26 Kazu Hirata <kazu@hxi.com>
20184 * config/h8300/h8300.md: Remove bit extraction patterns that
20185 cannot be triggered.
20186 Restrict each bit extraction pattern to a variant on which the
20189 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
20191 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
20193 2002-01-26 Kazu Hirata <kazu@hxi.com>
20195 * config/h8300/h8300.md: Remove bit test patterns that cannot
20197 Restrict each bit test pattern to a variant on which the
20200 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20202 * builtins.c (expand_builtin_strncat): Remove redundant check for
20205 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20207 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
20209 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
20212 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20214 * dbxout.c (dbxout_init): Use assemble_name rather than just
20215 stripping off the first character.
20216 (dbxout_source_file): Likewise.
20218 2002-01-25 DJ Delorie <dj@redhat.com>
20220 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
20221 using rtx_equal_p, not by comparing pointers.
20223 2002-01-25 Steve Ellcey <sje@cup.hp.com>
20225 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
20226 for PIC_OFFSET_TABLE_REGNUM.
20227 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
20229 2002-01-25 David O'Brien <obrien@FreeBSD.org>
20231 * config.gcc (x86_64-*-freebsd*): New target.
20232 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
20234 (i[34567]86-*-freebsd*): Don't include svr4.h.
20235 * config/i386/freebsd64.h: New file.
20237 2002-01-25 Douglas B Rupp <rupp@gnat.com>
20239 * config/alpha/x-vms (version): Make static.
20241 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
20242 in previous checkin.
20244 * Makefile.in (install-headers-cp): New target.
20245 * config.gcc (alpha-dec-*vms*): Install headers with
20248 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
20250 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
20253 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20255 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
20256 of compare_tree_int.
20257 (expand_builtin_strncat): Likewise.
20258 * c-decl.c (finish_struct): Use tree_low_cst.
20259 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
20260 * tree.c (compare_tree_int): Likewise.
20262 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
20264 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
20265 adjustments even if they are implemented by more than two insns.
20267 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
20269 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
20270 * df.h (struct ref): Kill B.
20271 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
20273 * basic-block.h (PROP_EQUAL_NOTES): New flag.
20274 * flow.c (propagate_one_insn): Use it.
20275 (mark_used_regs): Handle NIL.
20277 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
20279 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
20282 2002-01-25 David Edelsohn <edelsohn@gnu.org>
20284 * rs6000.md (prefetch): Make address V4SI mode so that the address
20285 is restricted to legitimate form for instruction.
20287 2002-01-25 Bob Wilson <bob.wilson@acm.org>
20289 * doc/install.texi (xtensa-*-elf): New target.
20290 (xtensa-*-linux*): New target.
20291 * doc/contrib.texi: Add myself.
20293 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
20295 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
20296 purpose register to hold an SImode (or smaller) value.
20298 2002-01-25 Jakub Jelinek <jakub@redhat.com>
20300 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
20302 * crtstuff.c: Likewise.
20304 2002-01-25 Kazu Hirata <kazu@hxi.com>
20306 * config/h8300/h8300.md (negation patterns): Tighten
20307 predicates to register_operand.
20309 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
20311 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
20314 * builtins.c (expand_builtin_prefetch): Same.
20316 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20318 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
20321 2002-01-24 Kazu Hirata <kazu@hxi.com>
20323 * config/h8300/h8300.c (print_operand): Remove support for
20324 operand character 'A'.
20325 * config/h8300/h8300.md (three anonymous patterns): Replace
20326 operand character 'A' with either 'T' or 'S'.
20328 2002-01-24 Kazu Hirata <kazu@hxi.com>
20330 * config/h8300/h8300.c (print_operand): Remove support for
20331 operand character 'U'.
20333 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
20335 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
20337 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
20339 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
20340 values to be assigned to the stack pointer.
20342 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20344 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
20345 to const_double needs to be done right for big-endian systems.
20347 2002-01-24 Jason Merrill <jason@redhat.com>
20350 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
20351 to can_throw_internal.
20353 2002-01-23 Richard Henderson <rth@redhat.com>
20355 * fold-const.c (fold): Change UINT_MAX test to check vs precision
20356 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
20358 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20360 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
20361 (symGOT2reg): Use them, then set as GOT value as unchanging.
20362 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
20363 as a temporary, if possible.
20364 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
20365 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
20367 2002-01-23 Kazu Hirata <kazu@hxi.com>
20369 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
20370 accept to accept 0x80 as operands[2].
20372 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
20374 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
20376 2002-01-23 Richard Henderson <rth@redhat.com>
20378 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
20380 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
20382 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
20383 (parmlist_or_identifiers_1): Verify that only a parmlist follows
20386 2002-01-23 Richard Henderson <rth@redhat.com>
20388 * expr.c (move_by_pieces_1): Extend size before negation.
20390 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
20391 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
20392 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
20393 * config/m68k/t-m68kelf: Likewise.
20395 2002-01-23 Bob Wilson <bob.wilson@acm.org>
20397 * config/xtensa/elf.h: New file.
20398 * config/xtensa/lib1funcs.asm: New file.
20399 * config/xtensa/lib2funcs.S: New file.
20400 * config/xtensa/linux.h: New file.
20401 * config/xtensa/t-xtensa: New file.
20402 * config/xtensa/xtensa-config.h: New file.
20403 * config/xtensa/xtensa-protos.h: New file.
20404 * config/xtensa/xtensa.c: New file.
20405 * config/xtensa/xtensa.h: New file.
20406 * config/xtensa/xtensa.md: New file.
20407 * config.gcc (xtensa-*-elf*): New target.
20408 (xtensa-*-linux*): New target.
20409 * cse.c (canon_hash): Compare rtx pointers instead of register
20410 numbers. This is required for the Xtensa port.
20411 * integrate.c (copy_insn_list): Handle case where the static
20412 chain is in memory and the memory address has to be copied to
20414 * doc/invoke.texi (Option Summary): Add Xtensa options.
20415 (Xtensa Options): New node.
20416 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
20418 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20420 * diagnostic.c (internal_error): Do ICE suppression only
20421 when ENABLE_CHECKING is not defined.
20423 * c-typeck.c (require_complete_type): Return error_mark_node
20424 if type is error_mark_node.
20426 2002-01-23 Janis Johnson <janis187@us.ibm.com>
20428 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
20429 -Os and issue a warning.
20431 2002-01-23 Zack Weinberg <zack@codesourcery.com>
20433 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
20434 current (lack of) need for host configuration by hand.
20436 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
20437 references. Documentation of some target macros moved from
20438 hostconfig.texi to tm.texi.
20440 2002-01-23 Will Cohen <wcohen@redhat.com>
20442 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
20445 2002-01-23 Kazu Hirata <kazu@hxi.com>
20447 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
20450 2002-01-23 Jason Merrill <jason@redhat.com>
20452 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
20454 * function.c (assign_parms): Don't put args of inline functions
20455 into registers when not optimizing.
20457 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
20459 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
20460 (prologue_use): New pattern.
20461 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
20462 preference to gen_rtx_USE.
20463 (thumb_expand_prologue): Use gen_prologue_use in preference to
20465 (thumb_expand_epilogue): Use gen_prologue_use in preference to
20468 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
20470 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
20472 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
20475 * doc/extend.texi: Correct documentation of __alignof__.
20477 2002-01-22 Zack Weinberg <zack@codesourcery.com>
20479 * params.h: Rename arguments of DEFPARAM so that it will be
20480 recognized as a translation keyword.
20482 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20484 * extend.texi: Document altivec functions.
20485 Fix N-bit adjectives in X86 builtin documentation.
20487 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20489 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
20490 auto_inc_dec values.
20492 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
20494 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
20496 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
20498 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
20500 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
20502 2002-01-22 Richard Henderson <rth@redhat.com>
20504 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
20505 copy_insn not copy_rtx.
20507 2002-01-23 Alan Modra <amodra@bigpond.net.au>
20509 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
20510 "nonzero" as that might add "1" bits. Ensure "constop" is
20511 properly sign extened.
20512 (force_to_mode): Tweak for sign extended constop.
20514 2002-01-22 Richard Henderson <rth@redhat.com>
20516 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
20517 for_each_rtx instead of assuming we're already looking at the MEM.
20518 (split_small_symbolic_mem_operand): Likewise.
20519 * config/alpha/alpha.h (PREDICATE_CODES): Update.
20520 * config/alpha/alpha.md (small symbolic memory splitters): Update.
20522 2002-01-22 Richard Henderson <rth@redhat.com>
20524 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
20525 sequence number for the literal.
20526 (divmoddi_internal_er): Likewise.
20528 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20531 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
20532 in LIBICONV variable.
20533 * configure: Regenerated.
20535 2002-01-22 Krister Walfridsson <cato@df.lth.se>
20537 * dependence.c (build_def_use): Remove array_idx.
20539 * dwarfout.c (last_filename): Remove.
20540 (output_compile_unit_die): Remove last_filename.
20542 2002-01-22 Roger Sayle <roger@eyesopen.com>
20543 Richard Henderson <rth@redhat.com>
20546 * fold-const.c (fold): Optimize unsigned comparisons against
20547 UINT_MAX (and similar unsigned constants).
20549 2002-01-22 Janis Johnson <janis187@us.ibm.com>
20551 * Makefile.in (loop.o): Depend on OPTABS_H.
20552 * loop.c (emit_prefetch_instructions): Check the prefetch operand
20553 against the predicate.
20556 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
20557 for the address operand.
20559 2002-01-22 Richard Henderson <rth@redhat.com>
20561 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
20563 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
20566 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
20567 preprocessor flags.
20569 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
20571 * config.gcc (x86_64-*-netbsd*): New target.
20572 * config/i386/netbsd64.h: New file.
20574 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20576 * regrename.c (kill_value): Fix typo.
20578 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
20580 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
20582 * config/rs6000/rs6000.h: Same.
20584 * function.c (instantiate_virtual_regs): Remove
20585 STARTING_FRAME_PHASE.
20586 (assign_stack_local_1): Same.
20587 Calculate frame phase.
20589 2002-01-22 Nick Clifton <nickc@redhat.com>
20591 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
20592 variable declaration to outer scope in order to simplify
20594 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
20595 arm_hard_regno_mode_ok.
20596 * config/arm/arm-protos.h: Add a prototype for
20597 arm_hard_regno_mode_ok.
20598 * config/arm/arm.c (soft_df_operand): Remove now redundant
20599 check for DImode values using IP_REGNUM.
20600 (nonimmediate_soft_df_operand): Remove now redundant check for
20601 DImode values using IP_REGNUM.
20602 (arm_hard_regno_mode_ok): New function. New check: make sure
20603 that DImode values are not stored in IP_REGNUM.
20605 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
20607 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
20609 2002-01-22 Jason Merrill <jason@redhat.com>
20611 * c-semantics.c (genrtl_compound_stmt): Only check nesting
20612 consistency if this COMPOUND_STMT is scoped.
20614 2002-01-22 Kazu Hirata <kazu@hxi.com>
20616 * predict.c: Fix formatting.
20617 * print-tree.c: Likewise.
20618 * protoize.c: Likewise.
20619 * real.h: Likewise.
20621 * sbitmap.h: Likewise.
20622 * scan.c: Likewise.
20623 * sched-deps.c: Likewise.
20624 * sched-vis.c: Likewise.
20625 * sdbout.c: Likewise.
20626 * sibcall.c: Likewise.
20628 * ssa-ccp.c: Likewise.
20629 * ssa-dce.c: Likewise.
20630 * stmt.c: Likewise.
20631 * stor-layout.c: Likewise.
20632 * system.h: Likewise.
20634 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20636 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
20637 if fits in bounds of base type.
20639 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
20640 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
20641 (add_bound_info, default): If can't find a context, make a
20643 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
20645 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
20647 * c-typeck.c (parser_build_binary_op): If result from
20648 build_binary_op is ERROR_MARK just return error_mark_node without
20649 further processing.
20651 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
20653 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
20654 Split a.out-specific bits into...
20655 * config/netbsd-aout.h: ...this.
20656 * config/netbsd-elf.h: New file.
20657 * config/alpha/netbsd-elf.h: Remove.
20658 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
20659 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
20660 (STARTFILE_SPEC): Remove redundant definition.
20661 (ENDFILE_SPEC): Likewise.
20662 (LINK_SPEC): Likewise.
20663 (CPP_SPEC): Likewise.
20664 (ASM_SPEC): Likewise.
20665 (LIB_SPEC): Likewise.
20666 (SWITCH_TAKES_ARG): Likewise.
20667 (TARGET_MEM_FUNCTIONS): Likewise.
20668 (CPP_PREDEFINES): Redefine.
20669 (ASM_FINAL_SPEC): Remove redefinition.
20670 (ASM_COMMENT_START): Redefine.
20671 (FUNCTION_PROFILER): Define.
20672 (TARGET_VERSION): Redefine.
20673 Comment and formatting cleanup.
20674 * config/i386/netbsd.h: Include <netbsd-aout.h>.
20675 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
20676 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
20677 big- or little-endian.
20678 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
20679 * config.gcc (*-*-netbsd*): Add definitions common to all
20681 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
20682 gnu_ld definitions. Add netbsd-elf.h to and remove
20683 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
20684 tmake_file, and don't lose previous tmake_file contents.
20685 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
20686 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
20687 gnu_ld definitions. Add netbsd-elf.h to tm_file.
20688 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
20689 (mipsel-*-netbsd*): Rename this to...
20690 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
20691 mips/little.h to tm_file for mips*el-*.
20692 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
20693 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
20694 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
20696 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20698 * pa-protos.h (reg_before_reload_operand): New function prototype.
20699 * pa.c (reg_before_reload_operand): New function implementation.
20700 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
20701 contraints to "*m".
20703 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20705 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
20707 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20709 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
20710 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
20711 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
20712 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
20713 (ENDFILE_SPEC): Undefine.
20714 (STARTFILE_SPEC): Redefine for PA.
20716 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20718 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
20720 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
20722 * config.gcc: Add entries to supported PowerPC --with-cpu
20725 2002-01-21 Jakub Jelinek <jakub@redhat.com>
20727 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
20728 true for 64-bit mode only SSE registers in 32-bit mode.
20730 2002-01-21 Kazu Hirata <kazu@hxi.com>
20732 * unwind-dw2.c: Fix formatting.
20733 * unwind-dw2-fde.c: Likewise.
20734 * unwind-dw2-fde.h: Likewise.
20735 * unwind-pe.h: Likewise.
20736 * varasm.c: Likewise.
20737 * varray.h: Likewise.
20739 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
20741 Remove workaround for register stack overwrite bug in mmix.
20742 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
20743 support for TARGET_REG_STACK_FILL_BUG.
20744 * config/mmix/mmix.h: Remove member has_call_without_parameters.
20745 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
20747 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
20748 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
20749 -mno-reg-stack-fill-bug-workaround.
20750 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
20751 machine member has_call_without_parameters.
20752 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
20753 -mreg-stack-fill-bug-workaround and
20754 -mno-reg-stack-fill-bug-workaround.
20755 (MMIX Options): Ditto.
20757 2002-01-21 Kazu Hirata <kazu@hxi.com>
20759 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
20761 Remove redundant code.
20763 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
20765 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
20766 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20767 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20768 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
20769 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
20770 out target macro definitions and non-target-specific comments
20771 mostly taken from old versions of the manual.
20773 2002-01-20 Kazu Hirata <kazu@hxi.com>
20775 * config/h8300/h8300.h: Fix comment formatting.
20776 * config/ia64/aix.h: Likewise.
20777 * config/ia64/ia64-protos.h: Likewise.
20778 * config/ia64/ia64.c: Likewise.
20779 * config/ia64/ia64.h: Likewise.
20780 * config/ia64/ia64intrin.h: Likewise.
20781 * config/ia64/linux.h: Likewise.
20782 * config/ia64/unwind-aix.c: Likewise.
20783 * config/ia64/unwind-ia64.c: Likewise.
20785 2002-01-20 Kazu Hirata <kazu@hxi.com>
20787 * config/h8300/h8300.c: Revise comments about shift code.
20789 2002-01-20 Kazu Hirata <kazu@hxi.com>
20791 * config/h8300/h8300.c (function_arg): Update a comment.
20793 2002-01-20 Kazu Hirata <kazu@hxi.com>
20795 * config/h8300/h8300.md: Update the comments at the beginning
20798 2002-01-20 Kazu Hirata <kazu@hxi.com>
20800 * config/i370/i370.c: Fix comment formatting.
20801 * config/i370/i370.h: Likewise.
20802 * config/i370/i370.md: Likewise.
20803 * config/i370/linux.h: Likewise.
20805 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20807 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
20809 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
20810 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
20811 in incomplete case.
20813 2002-01-20 Graham Stott <grahams@redhat.com>
20815 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
20817 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
20819 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
20821 2002-01-19 Tom Rix <trix@redhat.com>
20823 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
20825 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
20827 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
20829 * function.c (assign_stack_local_1): Adjust x_frame_offset with
20830 STARTING_FRAME_PHASE.
20831 (STARTING_FRAME_PHASE): New.
20832 (instantiate_virtual_regs): Check saneness of
20833 STARTING_FRAME_PHASE.
20835 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
20837 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
20839 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
20841 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
20843 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
20844 be used for bootstrapping GCC 3.0.
20846 2002-01-18 Kazu Hirata <kazu@hxi.com>
20848 * config/h8300/h8300.md: Fix an insn length.
20850 2002-01-18 Kazu Hirata <kazu@hxi.com>
20852 * bitmap.h: Fix comment formatting.
20853 * combine.c: Likewise.
20854 * cppfiles.c: Likewise.
20855 * c-pragma.h: Likewise.
20856 * c-typeck.c: Likewise.
20858 * dwarf2out.c: Likewise.
20859 * function.c: Likewise.
20861 * genattrtab.c: Likewise.
20862 * gthr-win32.h: Likewise.
20863 * haifa-sched.c: Likewise.
20864 * predict.c: Likewise.
20865 * rtlanal.c: Likewise.
20867 * unwind-dw2-fde.h: Likewise.
20868 * unwind-pe.h: Likewise.
20869 * vmsdbgout.c: Likewise.
20871 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20873 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
20874 if type_required and passed decl.
20876 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
20878 * config.gcc (cpu_type): Include altivec.h in powerpc
20882 * config/rs6000/altivec.h: New.
20884 2002-01-17 David Edelsohn <edelsohn@gnu.org>
20886 * doc/install.texi (*-ibm-aix*): Update assembler and exception
20887 handling information.
20888 * doc/trouble.texi (Interoperation): Add libstdc++ information
20890 (Misunderstandings): Add template instantiation and static template
20891 member information for AIX.
20893 2002-01-17 Jason Merrill <jason@redhat.com>
20895 * dbxout.c (dbxout_type): Support const and volatile.
20897 * except.c (add_partial_entry): Remove backwards compatibility code.
20898 (end_protect_partials): Likewise.
20900 2002-01-17 Jakub Jelinek <jakub@redhat.com>
20902 * config/ia64/ia64.md (prologue_use): New.
20903 * config/ia64/ia64.c (ia64_expand_prologue): Use
20904 gen_prologue_use instead of gen_rtx_USE.
20905 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
20906 as CODE_FOR_pred_rel_mutex.
20907 (ia64_sched_reorder2): Likewise.
20909 2002-01-16 Eric Christopher <echristo@redhat.com>
20911 * config/mips/r3900.h: Reformat.
20912 (SUBTARGET_CPP_SIZE_SPEC): Remove.
20913 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
20914 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
20915 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
20916 * config/mips/t-elf: Remove mips3 multilib.
20918 2002-01-16 H.J. Lu <hjl@gnu.org>
20920 * config/mips/linux.h: Include "mips/abi64.h".
20922 2002-01-16 H.J. Lu <hjl@gnu.org>
20924 * config/mips/t-linux: New.
20926 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
20928 * config/mips/linux.h: Don't include "gofast.h".
20929 (INIT_SUBTARGET_OPTABS): Removed.
20931 2002-01-16 Kazu Hirata <kazu@hxi.com>
20933 * config/h8300/h8300-protos.h: Replace emit_a_shift with
20935 * config/h8300/h8300.c: Likewise.
20936 * config/h8300/h8300.md: Likewise.
20938 2002-01-16 Kazu Hirata <kazu@hxi.com>
20940 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
20941 spaces after an opcode name.
20942 (pushqi1_h8300hs): Likewise.
20943 (pushhi1_h8300hs): Likewise.
20945 2002-01-16 Kazu Hirata <kazu@hxi.com>
20947 * doc/extend.texi: Replace "option" with "attribute"
20950 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20952 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
20953 (and:DI () (const_int -8)).
20954 (split_small_symbolic_mem_operand): Split
20955 (mem (and:DI () (const_int -8)).
20957 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20960 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
20961 same way as TYPE_IMUL.
20962 (ultrasparc_sched_reorder): Likewise.
20963 * config/sparc/sparc.md (type): Add comment to update
20964 ultrasparc_sched_reorder when making changes.
20966 2002-01-16 Kazu Hirata <kazu@hxi.com>
20968 * doc/invoke.texi: Change the dump file name of block
20969 reordering pass from 28.bbro to 29.bbro.
20970 Mention -dk option.
20972 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
20974 * i386.md (minsf splitter): Fix pasto.
20976 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
20978 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
20979 to frame pointer initialisation instruction.
20980 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
20981 initialisation instruction.
20982 (soft_df_operand): Do not accept the IP register.
20983 (nonimmediate_soft_df_operand): Do not accept the IP register.
20985 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20988 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
20989 MASK_V8 being both set.
20991 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
20993 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
20994 insn for GOT register; add REG_MAYBE_DEAD notes instead.
20995 config/s390/s390.md (call, call_value): Add GOT register to
20996 CALL_INSN_FUNCTION_USAGE where needed.
20997 (call_exp, call_value_exp): New.
20999 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
21001 * config/arm/arm.c: General formatting tidy up.
21003 2002-01-16 Graham Stott <grahams@redhat.com>
21005 * calls.c (try_to_integrate): Use "(size_t)" intermediate
21006 cast and when casting an integer literal to "rtx" pointer.
21007 (expand_call): Likewise.
21008 * flow.c (try_pre_increment): Likewise.
21009 (find_use_as_address): Likewise.
21010 * integrate.c (expand_iline_function): Likewise.
21011 * regmove.c (try_auto_increment): Likewise.
21013 2002-01-16 Graham Stott <grahams@redhat.com>
21015 * sched-rgn.c (passed): Use sbitmap_free.
21016 (header): Likewise.
21018 (in_queue): Likewise.
21019 (in_stack): Likewise.
21021 2002-01-15 Eric Christopher <echristo@redhat.com>
21023 * flow.c (propagate_one_insn): Change to use fatal_insn.
21025 2002-01-15 Kazu Hirata <kazu@hxi.com>
21027 * expmed.c (extract_fixed_bit_field): Remove unused code.
21028 * system.h: Poison SLOW_ZERO_EXTEND.
21029 * doc/tm.texi: Remove.
21030 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
21031 * config/arm/arm.h: Likewise.
21032 * config/avr/avr.h: Likewise.
21033 * config/clipper/clipper.h: Likewise.
21034 * config/convex/convex.h: Likewise.
21035 * config/d30v/d30v.h: Likewise.
21036 * config/dsp16xx/dsp16xx.h: Likewise.
21037 * config/elxsi/elxsi.h: Likewise.
21038 * config/fr30/fr30.h: Likewise.
21039 * config/h8300/h8300.h: Likewise.
21040 * config/i370/i370.h: Likewise.
21041 * config/i386/i386.h: Likewise.
21042 * config/m68k/m68k.h: Likewise.
21043 * config/mips/mips.h: Likewise.
21044 * config/ns32k/ns32k.h: Likewise.
21045 * config/pdp11/pdp11.h: Likewise.
21046 * config/pj/pj.h: Likewise.
21047 * config/s390/s390.h: Likewise.
21048 * config/sh/sh.h: Likewise.
21049 * config/stormy16/stormy16.h: Likewise.
21050 * config/v850/v850.h: Likewise.
21051 * config/vax/vax.h: Likewise.
21052 * config/we32k/we32k.h: Likewise.
21054 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21056 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
21057 (altivec_lvsl): Change constraint to b.
21058 (altivec_lvsr): Same.
21059 (altivec_lvebx): Same.
21060 (altivec_lvehx): Same.
21061 (altivec_lvewx): Same.
21062 (altivec_lvxl): Same.
21063 (altivec_lvx): Same.
21064 (altivec_stvx): Add parallel.
21065 (altivec_stvxl): Same.
21066 (altivec_stvehx): Same.
21067 (altivec_stvebx): Same.
21068 (altivec_stvebx): Same.
21070 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
21072 * config.gcc: Change altivec.h to altivec-defs.h.
21074 * config/rs6000/altivec.h: Delete.
21076 * config/rs6000/altivec-defs.h: Add.
21078 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
21080 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
21083 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
21084 less than or equal to eight bytes.
21086 * vax.md (andsi3): Remove constraints and change SET destination
21087 operand type to nonimmediate_operand.
21088 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
21089 when it is a CONST_INT.
21091 2002-01-15 Jason Merrill <jason@redhat.com>
21093 * c-common.def (FILE_STMT): New code.
21094 * c-common.c (statement_code_p): It's a statement.
21095 * c-common.h (stmt_tree_s): Add x_last_filename.
21096 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
21097 (last_expr_filename): New macro.
21098 * c-semantics.c (begin_stmt_tree): Initialize it.
21099 (add_stmt): If the filename changed, also insert a
21101 (expand_stmt): Handle seeing one.
21103 2002-01-15 Eric Christopher <echristo@redhat.com>
21105 * flow.c (propagate_one_insn): Add error message and print out
21106 insn for debugging.
21108 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21110 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
21111 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
21112 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
21113 TRAMPOLINE_ALIGNMENT.
21114 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
21116 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
21117 PCC_BITFIELD_TYPE_MATTERS.
21118 * config/interix.h (STDC_VALUE): Remove. Use
21119 STDC_0_IN_SYSTEM_HEADERS.
21120 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
21121 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
21122 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
21124 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
21126 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
21127 not work on this platform currently.
21129 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
21131 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
21132 readonly_warning in _().
21134 2002-01-15 Douglas B Rupp <rupp@gnat.com>
21136 * gcc.c (delete_if_ordinary): Backout previous change.
21138 2002-01-15 Kazu Hirata <kazu@hxi.com>
21140 * config/h8300/h8300.c (print_operand): Remove support for
21141 unused operand characters.
21143 * read-rtl.c: Fix formatting.
21144 * real.c: Likewise.
21145 * recog.c: Likewise.
21146 * regclass.c: Likewise.
21147 * regmove.c: Likewise.
21148 * reg-stack.c: Likewise.
21149 * reload1.c: Likewise.
21150 * rtlanal.c: Likewise.
21152 2002-01-15 Kazu Hirata <kazu@hxi.com>
21154 * config/i386/i386.c: Fix formatting.
21156 2002-01-15 Jakub Jelinek <jakub@redhat.com>
21158 * c-typeck.c (process_init_element): Don't save_expr
21159 COMPOUND_LITERAL_EXPR if just its initializer will be used.
21161 2002-01-15 David Edelsohn <edelsohn@gnu.org>
21163 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
21164 emit optional traceback table if optimize_size or TARGET_ELF.
21165 * config/rs6000/rs6000.md (prefetch): New.
21167 2002-01-15 Andreas Jaeger <aj@suse.de>
21169 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
21171 2002-01-15 Kazu Hirata <kazu@hxi.com>
21173 * mips-tfile.c: Fix formatting.
21175 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
21177 * unroll.c (final_reg_note_copy): Fix previous commit.
21179 2002-01-14 Kazu Hirata <kazu@hxi.com>
21181 * config/h8300/h8300-protos.h: Remove the prototype for
21183 * config/h8300/h8300.c (eq_operator): Remove.
21185 2002-01-14 Richard Henderson <rth@redhat.com>
21187 * config/i386/i386.md (prefetch): Tidy.
21188 (prefetch_3dnow): Fix locality operand.
21190 2002-01-14 Richard Henderson <rth@redhat.com>
21192 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
21193 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
21195 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
21197 * reload1.c (reload_combine): Pass reg_sum replacement through
21198 copy_rtx in loop performing multiple changes.
21200 2002-01-14 Jakub Jelinek <jakub@redhat.com>
21202 * except.c (remove_unreachable_regions): New.
21203 (free_eh_status): Clear exception_handler_labels.
21204 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
21205 (find_exception_handler_labels): Don't add the same label more than
21207 (remove_exception_handler_label): Don't die if
21208 find_exception_handler_labels hasn't been called for the current
21211 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
21213 * toplev.c (rest_of_compilation): Rebuild jump labels after
21216 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
21218 * doc/extend.texi: Move documentation of X86 built-in functions
21220 * doc/invoke.texi: From here.
21221 * doc/sourcebuild.texi: Document location of documentation for
21222 machine built-in functions.
21224 2002-01-13 Christopher Faylor <cgf@redhat.com>
21226 * cppfiles.c (TEST_THRESHOLD): New macro.
21227 (SHOULD_MMAP): Ditto.
21228 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
21231 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
21233 * unroll.c (final_reg_note_copy): Properly handle
21235 (unroll_loops): Fix LOOP_CONDITION heuristics.
21237 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
21239 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
21240 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
21242 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
21244 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
21247 2002-01-14 Tom Rix <trix@redhat.com>
21249 * config/rs6000/rs6000.md: Fix typo with sradi.
21251 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
21253 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
21254 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
21255 (clrstrdi, clrstrsi): Adapt callers.
21257 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
21259 (movti splitter): Never use register 0 as base register.
21261 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21263 * combine.c (simplify_shift_const): Always generate new rtx
21264 for shift expression instead of reusing given expression.
21266 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21268 * config/alpha/alpha.c (alpha_expand_mov): Don't call
21269 alpha_legitimize_address unless mode is Pmode.
21271 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
21273 * doc/md.texi (Modifiers): Document the '*' constraint for the
21276 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
21277 * doc/extend.texi (Function Attributes): 'interrupt' is valid
21280 2002-01-13 Richard Henderson <rth@redhat.com>
21282 * reload.c (find_reloads): Use a hard reg destination as reload reg
21283 for an input reload of the source.
21285 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21287 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
21290 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
21292 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21293 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
21295 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
21297 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21299 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
21301 2002-01-12 Tom Rix <trix@redhat.com>
21303 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
21306 2002-01-12 Richard Henderson <rth@redhat.com>
21308 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
21310 * doc/invoke.texi: Update Alpha options.
21312 * doc/invoke.texi: Update i386 built-in function lists.
21314 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
21316 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
21317 referencing outside.
21319 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21321 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
21322 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
21323 offsets, and change line folding.
21324 * optabs.c (expand_binop): Remove warnings.
21325 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
21327 2002-01-12 Graham Stott <grahams@redhat.com>
21329 * attribs.c (handle_deprecated_attribute): constify WHAT.
21330 * diagnostic.c (warn_deprecated_use): Add braces, fixes
21331 dangling else warning and constify WHAT.
21332 * except.h (struct function, struct inline_remap): Move
21333 struct tag forward defs before all prototypes.
21334 (duplicate_eh_regions): Whitespace.
21336 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
21338 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21339 MODE_BASE_REG_CLASS.
21340 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
21342 2002-01-12 Richard Henderson <rth@redhat.com>
21344 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
21345 (ix86_expand_vector_move): New.
21346 (bdesc_2arg): Remove andps, andnps, orps, xorps.
21347 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
21348 Remove old prefetch builtins. Special case the logicals removed above.
21349 (ix86_expand_builtin): Likewise.
21350 (safe_vector_operand): Use V4SFmode, not TImode.
21351 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
21352 (ix86_expand_timode_binop_builtin): New.
21353 * config/i386/i386-protos.h: Update.
21354 * config/i386/i386.h (enum ix86_builtins): Update.
21355 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
21356 Use ix86_expand_vector_move in vector move expanders.
21357 (movti_internal, movti_rex64): Add xorps alternative.
21358 (sse_clrv4sf): Rename and adjust from sse_clrti.
21359 (prefetch): Don't work so hard.
21360 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
21361 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
21362 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
21364 2002-01-11 Richard Henderson <rth@redhat.com>
21366 * config/i386/mmintrin.h: New file.
21367 * config/i386/xmmintrin.h: New file.
21368 * config.gcc (i?86-*-*): Add extra_headers.
21369 * simplify-rtx.c (simplify_unary_operation): Handle saturating
21371 (simplify_binary_operation): Handle saturating arithmetic codes.
21372 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
21373 not the lowpart subreg.
21374 (ix86_expand_builtin): Return a TImode dummy register instead of 0
21376 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
21378 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21380 * conflict.c (conflict_graph_compute): Free regsets when finished.
21381 * ssa.c (compute_coalesced_reg_partition): Likewise.
21383 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21385 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
21386 every where we allocate a register.
21388 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21390 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
21391 * lcm.c (compute_earliest, compute_farthest): Likewise.
21393 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21395 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
21397 2002-01-11 Janis Johnson <janis187@us.ibm.com>
21399 * doc/rtl.texi (Insns): Fix 2 typos.
21401 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
21403 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
21404 options. Use @table @gcctabopt for MMIX options. Add index
21405 entries for MMIX options. Start new paragraph with first
21406 heading of the machine-dependent options.
21408 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
21411 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
21412 * combine.c (force_to_mode): Same.
21413 * reload1.c (clear_reload_reg_in_use): Same.
21415 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
21417 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
21420 2002-01-11 Andreas Jaeger <aj@suse.de>,
21421 Brad Lucier <lucier@math.purdue.edu>
21423 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
21426 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
21428 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
21429 Protect with IN_LIBGCC.
21430 (LINK_EH_SPEC): Add required trailing space.
21432 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
21434 * c-tree.h: Move function declarations so that they are listed
21435 under the filename which contains them.
21436 (check_identifier, finish_decl_top_level,
21437 lookup_name_current_level_global, shadow_record_fields): Remove.
21439 2002-01-11 Andreas Jaeger <aj@suse.de>
21441 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
21444 2002-01-10 Richard Henderson <rth@redhat.com>
21446 * config/alpha/alpha.c (print_operand): Add 'J'.
21447 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
21448 new operand with the sequence number for the lituse. When splitting
21449 the insns, use gen_movdi_er_high_g and generate a sequence number.
21450 (gen_movdi_er_high_g): Print the sequence number if non-zero.
21452 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
21454 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
21455 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
21457 (altivec_expand_builtin): Same.
21458 (altivec_expand_stv_builtin): New.
21460 * config/rs6000/rs6000.h (rs6000_builtins): Same.
21462 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
21463 ("altivec_lvehx"): New.
21464 ("altivec_lvewx"): New.
21465 ("altivec_lvxl"): New.
21466 ("altivec_lvx"): New.
21467 ("altivec_stvx"): New.
21468 ("altivec_stvebx"): New.
21469 ("altivec_stvehx"): New.
21470 ("altivec_stvewx"): New.
21471 ("altivec_stvxl"): New.
21473 2002-01-10 Richard Henderson <rth@redhat.com>
21475 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
21476 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
21477 care not to delete instructions twice.
21479 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21481 * toplev.c: Don't declare environ (it's not used anywhere).
21482 * configure.in: Don't check for declaration of environ.
21483 * config/i386/xm-mingw32.h: Don't #define environ.
21484 * config.in, configure: Regenerate.
21486 2002-01-10 Zack Weinberg <zack@codesourcery.com>
21488 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
21489 * configure: Regenerate.
21491 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
21492 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
21493 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
21495 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
21496 LIMITS_H_TEST here, not in m68k/x-next.
21497 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
21498 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
21500 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
21501 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
21502 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
21504 * config/i386/x-djgpp: Renamed i386/t-djgpp.
21505 * config/m88k/x-dolph: Renamed m88k/t-dolph.
21506 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
21507 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
21508 replacement of quadlib.asm with quadlib.c.
21510 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
21511 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
21512 config/rs6000/xm-beos.h: Delete file.
21514 * config.gcc: Update to match above changes.
21516 2002-01-10 Kazu Hirata <kazu@hxi.com>
21518 * config/h8300/h8300.h: Fix comment typos.
21519 * config/h8300/h8300.md: Likewise.
21520 * config/h8300/lib1funcs.asm: Likewise.
21522 2002-01-10 Dale Johannesen <dalej@apple.com>
21524 PR optimization/5269
21525 * unroll.c (precondition_loop_p): Make *increment be the correct
21526 sign when n_iterations known, to avoid confusing caller.
21528 2002-01-10 Kazu Hirata <kazu@hxi.com>
21530 * doc/extend.texi (deprecated): Fix a typo.
21532 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
21534 * basic-block.h (update_br_prob_note): Declare.
21535 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
21536 (try_forward_edges): Care negative frequencies and update note.
21537 (outgoing_edges_match): Tweek conditional merging heuristics.
21538 (try_crossjump_to_edge): use update_br_prob_note.
21539 * cfglayout.c (fixup_reorder_chain): Likewise.
21540 * cfrtl.c (update_br_prob_note): New.
21541 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
21543 * i386.c (ix86_decompose_address): Return -1 if address contains
21545 (legitimate_address_p): Require ix86_decompose_address to return 1.
21547 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21548 (cprop_insn): Likewise.
21550 2002-01-10 Kazu Hirata <kazu@hxi.com>
21552 * toplev.c: Fix formatting.
21553 * tree.c: Likewise.
21554 * tree-dump.c: Likewise.
21555 * unroll.c: Likewise.
21556 * unwind-dw2.c: Likewise.
21557 * unwind-dw2-fde.c: Likewise.
21558 * unwind-dw2-fde-glibc.c: Likewise.
21559 * unwind-sjlj.c: Likewise.
21561 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21563 * doc/invoke.texi: Document PDP-11 options.
21565 2002-01-10 Kazu Hirata <kazu@hxi.com>
21567 * config/h8300/h8300.h: Fix formatting.
21569 2002-01-10 Ira Ruben <ira@apple.com>
21571 Add __attribute__ ((deprecated)).
21572 * extend.texi: Document __attribute__ ((deprecated)).
21573 * invoke.texi: Document -Wno-deprecated-declarations.
21574 * testsuite/g++.dg/other/deprecated.C: New C++ test.
21575 * testsuite/gcc.dg/deprecated.c: New C test.
21576 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
21577 (c_common_attribute_table): Add "deprecated" entry.
21578 (handle_deprecated_attribute): New function.
21579 * c-decl.c (deprecated_states): New enum.
21580 deprecated_state: State of "deprecated" handling.
21581 (start_decl): Set deprecated_state based on attributes.
21582 (grokdeclarator): Test for deprecated uses, propagate attribute.
21583 * c-typeck.c (build_component_ref): Test for deprecated fields.
21584 (build_external_ref): Test for deprecated primaries.
21585 * diagnostic.c (warn_deprecated_use) New function to issue
21586 warnings about __attribute__ ((depricated)) references.
21587 * flags.h (warn_deprecated_decl): Extern declared for
21588 -W[no-]deprecated-declarations option.
21589 * print-tree.c (print_node): Show deprecated flag status.
21590 * toplev.c (warn_deprecated_decl): Defined.
21591 (W_options): Added "deprecated-declaration".
21592 * toplev.h (warn_deprecated_use): Extern declared.
21593 * tree.h (struct tree_common): Define deprecated_flag.
21594 (TREE_DEPRECATED): New macro to access flag.
21595 * cp/call.c (build_call): Test for deprecated calls.
21596 * cp/class.c (add_implicitly_declared_members): Set global
21597 flag to tell grokdeclarator to not issue deprecated warnings.
21598 * cp/cp-tree.h: Add extern for adding_implicit_members.
21599 * cp/decl.c (deprecated_states): New enum.
21600 (start_decl): Set deprecated_state based on attributes.
21601 (grokdeclarator): Test for deprecated uses, propagate attribute.
21602 * cp/lex.c (do_identifier): Test for deprecated primaries.
21603 * cp/typeck.c (build_component_ref): Test for deprecated fields.
21605 2002-01-10 Ira Ruben <ira@apple.com>
21607 Fix to assign attributes to inline member functions.
21608 * cp/decl.c (start_method): Handle attrlist.
21610 2002-01-10 Kazu Hirata <kazu@hxi.com>
21612 * combine.c (expand_field_assignment): Use subreg_lsb().
21614 2002-01-10 David Edelsohn <edelsohn@gnu.org>
21616 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21617 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21618 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21619 Recurse for any operand of AND as long as constant is non-zero.
21621 2002-01-10 Kazu Hirata <kazu@hxi.com>
21623 * config/h8300/h8300.md: Remove constraints from expanders.
21625 2002-01-10 Kazu Hirata <kazu@hxi.com>
21627 * varasm.c: Fix formatting.
21628 * varray.c: Likewise.
21629 * vmsdbgout.c: Likewise.
21630 * xcoffout.c: Likewise.
21632 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
21634 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
21635 update edge probabilities to match.
21637 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21639 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
21641 * doc/languages.texi, doc/sourcebuild.texi: New files.
21642 * doc/configfiles.texi: Make a subsubsection. Update.
21643 * doc/configterms.texi: Add @node. Remove warning that this isn't
21644 instructions for building GCC.
21645 * doc/makefile.texi: Make a subsection.
21646 * doc/gccint.texi: Update.
21648 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
21650 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
21652 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
21654 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
21656 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
21658 * optabs.c (expand_fix): Look for wider integer modes first.
21660 * i386.md (mov?f): Avoid the fake const double trick for medium
21662 (min?f*/max?f*): Prohibit memory operands for i387 variant.
21663 (fop_df_4): Disable for SSE compilation.
21665 2002-01-10 Graham Stott <grahams@redhat.com>
21667 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
21668 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
21670 2002-01-10 Richard Henderson <rth@redhat.com>
21672 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
21674 2002-01-10 Richard Henderson <rth@redhat.com>
21676 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
21677 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
21679 2002-01-10 Kazu Hirata <kazu@hxi.com>
21681 * combine.c (can_combine_p): Fix a comment typo.
21683 2002-01-09 Zack Weinberg <zack@codesourcery.com>
21685 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
21686 empty list correctly. Change loop index $t to $f for
21687 consistency with rest of Makefile.
21689 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
21691 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
21692 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21694 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
21695 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
21696 (altivec_init_builtins): Same.
21697 (altivec_expand_unop_builtin): Return NULL_RTX on error.
21698 (altivec_expand_binop_builtin): Same.
21699 (altivec_expand_ternop_builtin): Same.
21702 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
21703 ("altivec_vctuxs"): Fix typo.
21704 ("altivec_vnmsubfp"): Same.
21705 ("altivec_dssall"): New.
21706 ("altivec_mfvscr"): New.
21707 ("altivec_dss"): New.
21708 ("altivec_lvsl"): New.
21709 ("altivec_lvsr"): New.
21710 ("altivec_dstt"): New.
21711 ("altivec_dstst"): New.
21712 ("altivec_dststt"): New.
21713 ("altivec_dst"): New.
21715 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
21716 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21718 2002-01-09 Richard Henderson <rth@redhat.com>
21720 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
21722 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
21724 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
21726 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
21728 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
21730 2002-01-09 Kazu Hirata <kazu@hxi.com>
21732 * read-rtl.c: Fix formatting.
21733 * real.c: Likewise.
21734 * regclass.c: Likewise.
21735 * regrename.c: Likewise.
21736 * reg-stack.c: Likewise.
21737 * reload1.c: Likewise.
21738 * reload.c: Likewise.
21741 2002-01-09 Kazu Hirata <kazu@hxi.com>
21743 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
21744 to extract items in the expr_list chain.
21746 2002-01-09 Richard Henderson <rth@redhat.com>
21748 * config/vax/vax.c (vax_rtx_cost): Never abort.
21750 * config/vax/vax.h (REAL_ARITHMETIC): Define.
21752 2002-01-09 Jan Hubicka <jh@suse.cz>
21754 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
21756 2002-01-09 Richard Henderson <rth@redhat.com>
21758 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
21759 Unify code from various alternatives.
21761 2002-01-09 Richard Henderson <rth@redhat.com>
21763 * regrename.c (copy_value): Ignore the copy if the source register
21764 is present in the value chain with a narrower mode.
21766 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21768 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
21769 for the c4x target. Also improve layout.
21771 2002-01-09 Richard Henderson <rth@redhat.com>
21773 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
21774 * config/m32r/m32r.md (and ior xor splitters): Swap operands
21775 to match insn patterns.
21777 2002-01-09 Richard Henderson <rth@redhat.com>
21779 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
21780 (copyprop_hardreg_forward_1): Likewise.
21782 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
21784 * pa.md (decrement_and_branch_until_zero): Change predicate for
21785 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
21787 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
21789 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
21790 gets undefined. For Darwin.
21792 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21794 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
21796 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21798 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
21800 2002-01-08 Richard Henderson <rth@redhat.com>
21802 * regrename.c (copy_value): Ignore overlapping copies.
21804 2002-01-08 Richard Henderson <rth@redhat.com>
21806 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
21807 as needed to avoid shared structure.
21809 2002-01-08 Kazu Hirata <kazu@hxi.com>
21811 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
21814 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21816 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
21817 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
21818 documentation of obsolete macros.
21819 * system.h: Poison these macros.
21820 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
21821 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
21822 config/c4x/c4x.h, config/clipper/clipper.h,
21823 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
21824 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
21825 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
21826 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
21827 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
21828 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
21829 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21830 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
21831 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
21832 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21833 config/sparc/sparc.h, config/stormy16/stormy16.h,
21834 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
21835 definitions and commented out definitions of obsolete macros.
21836 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
21837 of MAX_INT_TYPE_SIZE.
21839 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21841 * config/s390/s390.c (s390_preferred_reload_class): Never
21842 return ADDR_REGS if it isn't a subset of the given class.
21843 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
21844 FP_REGS, but all superclasses as well.
21846 * config/s390/s390.c (s390_function_profiler): Fix thinko.
21848 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
21849 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
21850 must not be a const_int.
21852 2002-01-08 Richard Henderson <rth@redhat.com>
21854 * Makefile.in (toplev.o): Depend on options.h.
21855 (gcc.o): Depend on specs.h.
21857 2002-01-08 Jakub Jelinek <jakub@redhat.com>
21859 * expr.c (store_expr): Convert VOIDmode constants back to target's
21862 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21864 * doc/invoke.texi: Markup gcc as @command. Refer to
21865 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
21866 of http://gcc.gnu.org/thanks.html.
21868 2002-01-08 Dale Johannesen <dalej@apple.com>
21870 * config/rs6000/rs6000.md: Add missing int register
21871 target case to movdf_low.
21873 2002-01-08 Zack Weinberg <zack@codesourcery.com>
21875 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
21876 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
21877 (cppinit.o): Depend on except.h.
21878 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
21879 s-specs): New rules.
21881 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
21882 Don't create specs.h/options.h/gencheck.h here. Remove
21883 unnecessary variable settings from last argument of AC_OUTPUT.
21884 * config.in, configure: Regenerate.
21885 * intl.c: Hardcode package name as "gcc".
21887 * cppinit.c: Include except.h.
21888 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
21890 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
21891 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
21892 (!)USING_SJLJ_EXCEPTIONS.
21893 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
21895 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21897 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
21898 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
21899 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
21900 documentation of obsolete macros.
21901 * system.h: Poison these macros.
21902 * config/d30v/d30v.h, config/ns32k/encore.h,
21903 config/stormy16/stormy16.h: Remove definitions and commented out
21904 definitions of obsolete macros.
21906 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
21908 * objc/objc-act.c (handle_class_ref): Mark the declaration of
21909 %sobjc_class_ref_%s as used - to prevent unwanted compiler
21912 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21914 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
21915 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
21916 to insn adjusting stack/frame pointer.
21917 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
21918 accept operands that cause the insn to be non-splittable.
21920 2002-01-08 Graham Stott <grahams@redhat.com>
21922 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
21923 (C_TYPE_FIELDS_VOLATILE): Likewise.
21924 (C_TYPE_BEING_DEFINED): Likewise.
21925 (C_IS_RESERVED_WORD): Likewise.
21926 (C_TYPE_VARIABLE_SIZE): Likewise.
21927 (C_DECL_VARIABLE_SIZE): Likewise.
21928 (C_MISSING_PROTOTYPE_WARNED): Likewise.
21929 (C_SET_EXP_ORIGINAL_CODE): Likewise.
21930 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
21932 (C_DECL_ANTICIPATED): Likewise.
21933 (c_build_type_variant): Add parenthesis.
21935 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21937 * gcc.c (option_map): Remove --version.
21938 (process_command): Handle -fversion following the GNU Coding
21939 Standards. Partially addresses PR other/704.
21941 2002-01-08 Graham Stott <grahams@redhat.com>
21943 * combine.c (combine_instructions): Fix typo.
21945 2002-01-08 Graham Stott <grahams@redhat.com>
21947 * debug.h: Use "tree" and "rtx" throughout.
21949 * debug.c: Likewise.
21951 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
21953 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
21954 constant pool, use the pool's version of the symbol instead.
21956 2002-01-07 Richard Henderson <rth@redhat.com>
21958 * regrename.c (find_oldest_value_reg): Ignore the value chain if
21959 the original register was copied in a mode with a fewer number of
21960 hard registers than the desired mode.
21961 (copyprop_hardreg_forward_1): Likewise.
21962 (debug_value_data): Fix loop test.
21963 * toplev.c (parse_options_and_default_flags): Reenable
21964 -fcprop-registers at -O1.
21966 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21968 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
21969 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
21971 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
21974 * config/rs6000/rs6000.md: Add altivec predicate patterns.
21976 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
21978 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
21979 (pa_output_function_prologue): Output local label at the beginning of
21980 the prologue when profiling.
21981 (hppa_profile_hook): Use the local label rather than the function label.
21982 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
21984 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21986 * config/rs6000/rs6000.c (print_operand): Remove extra space.
21987 (altivec_expand_unop_builtin): Fix thinko.
21988 (altivec_expand_binop_builtin): Same.
21989 (altivec_expand_ternop_builtin): Same.
21990 (altivec_expand_builtin): Same.
21992 2002-01-07 Richard Henderson <rth@redhat.com>
21994 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
21996 2002-01-07 Jason Merrill <jason@redhat.com>
21998 * unwind-dw2.c (execute_cfa_program): Use < again.
22000 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22002 * predict.c (combine_predictions_for_insn): Avoid division by zero.
22004 2002-01-07 Jakub Jelinek <jakub@redhat.com>
22006 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
22007 Don't allow -1 - x -> ~x simplifications in the first pass.
22009 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
22011 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
22013 (altivec_expand_binop_builtin): Same.
22014 (altivec_expand_unop_builtin): Same.
22015 (print_operand): Fix typo.
22016 (bdesc_1arg): Add vupk* variants.
22018 * rs6000.h (rs6000_builtins): Add vupk* enums.
22020 * rs6000.md: Add altivec_vupk* variants.
22022 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
22024 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
22025 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
22026 and last update dates.
22028 2002-01-07 Janis Johnson <janis187@us.ibm.com>
22030 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
22032 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
22034 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
22035 * config/avr/avr.h (CPP_SPEC): Likewise.
22036 (LINK_SPEC): Likewise.
22037 (CRT_BINUTILS_SPECS): Likewise.
22038 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
22039 * doc/invoke.texi (AVR Options): Document them.
22041 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
22043 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
22046 2002-01-07 Graham Stott <grahams@redhat.com>
22048 * config/i386/i386.h: Update copyright date.
22049 (HALF_PIC_PTR): Add parenthesis.
22050 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
22051 (CONSTANT_ALIGNMENT): Add parenthesis.
22052 (DATA_ALIGNMENT): Likewise.
22053 (LOCAL_ALIGNMENT): Likewise.
22054 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
22055 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
22056 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
22057 (HARD_REGNO_NREGS): Add paranethesis.
22058 (VALID_SSE_REG_MODE): Whitespace.
22059 (VALID_MMX_REG_MODE): Whitespace.
22060 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
22061 (ix86_hard_regno_mode_ok): Add parenthesis.
22062 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
22063 (RETURN_IN_MEMORY): Whitespace.
22064 (N_REG_CLASSES): Add parenthesis.
22065 (INTEGER_CLASS_P): Add parenthesis and wrap.
22066 (FLOAT_CLASS_P): Likewise.
22067 (SSE_CLASS_P): Likewise.
22068 (MMX_CLASS_P): Likewise.
22069 (MAYBE_INTEGER_CLASS_P): Likewise.
22070 (MAYBE_FLOAT_CLASS_P): Likewise.
22071 (MAYBE_SSE_CLASS_P): Likewise.
22072 (MAYBE_MMX_CLASS_P): Likewise.
22073 (Q_CLASS_P): Likewise.
22074 (GENERAL_REGNO_P): Uppercase macro parameter.
22075 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
22076 (FP_REGNO_P): Likewise.
22077 (ANY_FP_REGNO_P): Uppercase macro parameter.
22078 (SSE_REGNO_P): Likewise.
22079 (SSE_REGNO): Likewise.
22080 (SSE_REG_P): Likewise.
22081 (SSE_FLOAT_MODE_P): Likewise.
22082 (MMX_REGNO_P): Likewise.
22083 (MMX_REG_P):Likewise.
22084 (STACK_REG_P): Likewise.
22085 (NON_STACK_REG_P): Likewise.
22086 (STACK_TOP_P): Likewise.
22087 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
22088 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
22089 (SECONDARY_MEMORY_NEEDED): Likewise.
22090 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
22091 (MD_ASM_CLOBBERS): Whitespace and wrap.
22092 (MUST_PASS_IN_STACK): Whitespace and wrap.
22093 (RETURN_POPS_ARGS): Add parenthesis.
22094 (INIT_CUMULATIVE_ARGS): Likewise.
22095 (FUNCTION_ARG): Likewise.
22096 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
22097 (SETUP_INCOMING_VARARGS): Likewise.
22098 (BUILD_VA_LIST_TYPE): Add parenthesis.
22099 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
22101 (EXPAND_BUILTIN_VA_ARG): Likewise.
22102 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
22103 (INITIALIZE_TRAMPOLINE): Add parenthesis.
22104 (INITIAL_ELIMINATION_OFFSET): Likewise.
22105 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
22106 (REGNO_OK_FOR_BASE_P): Likewise.
22107 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
22108 (REGNO_OK_FOR_DIREG_P): Likewise.
22109 (REG_OK_FOR_INDEX_P): Whitespace.
22110 (REG_OK_FOR_BASE_P): Whitespace.
22111 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
22113 (FIND_BASE_TERM): Fix typo.
22114 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
22115 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
22116 (SYMBOLIC_CONST; Whitespace.
22117 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
22118 (ENCODE_SECTION_INFO): Whitespace.
22119 (FINALIZE_PIC): Remove do { ... } while (0).
22120 (PROMOTE_MODE): Wrap in do { ... } while (0).
22121 (CONST_COSTS): Whitespace.
22122 (RTX_COSTS): Add paramethesis, whitespace and wrap.
22123 (REGISTER_MOVE_COST): Add parenthesis.
22124 (MEMORY_MOVE_COST): Likewise.
22125 (EXTRA_CC_MODES): Whitespace.
22126 (SELECT_CC_MODE): Add parenthesis and whitespace.
22127 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
22128 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
22129 (ASM_OUTPUT_LABEL): Add paramethesis.
22130 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
22131 (ASM_OUTPUT_REG_POP): Likewise.
22132 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
22133 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22135 * config/i386/i386.c: Update copyright.
22136 (CHECK_STACK_LIMIT): Add parenthesis.
22137 (AT_BP): Uppercase macro parameter.
22138 (x86_64_int_parameter_registers): Constify.
22139 (x86_64_int_return_registers): Likewise.
22140 (ix86_compare_op0): Use rtx.
22141 (construct_container): Constify INTREG parameter.
22142 (function_arg): Use rtx.
22144 * diagnostic.h: Update copyright date.
22145 (output_buffer_state): Add parenthesis.
22146 (output_buffer_format_args): Likewise.
22148 * combine.c (combine_instructions): Replace XEXP (links, 0)
22151 2002-01-06 H.J. Lu <hjl@gnu.org>
22153 * cfgcleanup.c (thread_jump): Fix 2 typos.
22155 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
22157 * config.gcc: Add support for --enable-altivec.
22159 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22161 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
22163 2002-01-06 Jakub Jelinek <jakub@redhat.com>
22165 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
22166 __objc_class_name_*.
22168 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
22170 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
22172 2002-01-06 Richard Henderson <rth@redhat.com>
22174 * reorg.c (emit_delay_sequence): Remove death notes, not merely
22175 nop them out. Increment label reference count for REG_LABEL.
22176 (fill_slots_from_thread): Frob label reference count around
22177 delete_related_insns.
22179 2002-01-05 Richard Henderson <rth@redhat.com>
22181 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
22184 2002-01-05 Richard Henderson <rth@redhat.com>
22186 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
22187 * integrate.c (output_inline_function): Likewise.
22188 * toplev.c (rest_of_compilation): Do it here instead. Move call
22189 to remove_unnecessary_notes after emitting abstract instance.
22190 Force an emitted nested function to have its parent emited as well.
22191 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
22193 (rtl_for_decl_location): Do not look at reload data structures
22194 before reload has run.
22196 2002-01-05 Kazu Hirata <kazu@hxi.com>
22198 * cse.c: Fix formatting.
22199 * dwarf2asm.c: Likewise.
22200 * dwarf2out.c: Likewise.
22201 * explow.c: Likewise.
22202 * expmed.c: Likewise.
22203 * function.c: Likewise.
22204 * gcov.c: Likewise.
22205 * gencheck.c: Likewise.
22206 * genrecog.c: Likewise.
22207 * ggc-common.c: Likewise.
22208 * ggc-page.c: Likewise.
22209 * global.c: Likewise.
22211 2002-01-05 Kazu Hirata <kazu@hxi.com>
22213 * combine.c: Fix formatting.
22215 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
22218 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
22220 2002-01-05 David Edelsohn <edelsohn@gnu.org>
22222 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
22223 as 1 for __powerpc64__ as well.
22225 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
22227 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
22230 2002-01-05 Daniel Berlin <dan@dberlin.org>
22232 * lcm.c: Revert change, due to performance regression it causes on
22233 SPEC because it's slightly more conservative (sigh, I hate
22236 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
22238 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
22240 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
22242 * doc/cppinternals.texi: Update.
22244 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
22246 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
22247 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
22249 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
22250 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
22251 kludge for pre-october-14th mmix versions to handle new-found bug
22252 with PUSHJ/PUSHGO and the register stack.
22253 * config/mmix/mmix.h (struct machine_function): Rename member
22254 has_call_value_without_parameters to has_call_without_parameters.
22255 All referers changed.
22256 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
22257 TARGET_MASK_BRANCH_PREDICT): New macros.
22258 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
22259 -mno-reg-stack-fill-bug-workaround.
22260 * config/mmix/mmix.md ("call"): Set struct machine member
22261 has_call_without_parameters.
22263 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
22265 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
22267 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
22269 * cfgcleanup.c: Include tm_p.h
22270 (mark_effect): Fix handling of hard register; fix handling of SET
22272 2002-01-04 Kazu Hirata <kazu@hxi.com>
22274 * config/h8300/h8300.md (anonymous patterns): Check that
22275 operands are registers before using REGNO on them.
22277 2002-01-03 Roland McGrath <roland@frob.com>
22279 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
22281 2002-01-04 Jakub Jelinek <jakub@redhat.com>
22283 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
22284 * c-common.h (genrtl_expr_stmt_value): Likewise.
22285 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
22286 (expand_expr_stmt_value): Add maybe_last argument.
22287 Don't warn about statement with no effect if it is the last statement
22288 in expression statement.
22289 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
22290 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
22291 expand_expr_stmt_value.
22292 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
22293 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
22294 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
22295 as maybe_last to expand_expr_stmt_value.
22297 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
22299 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
22300 be passed in, do not build it.
22301 (c_begin_if_stmt): New function.
22302 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22303 * c-common.h (c_expand_start_cond): Update prototype.
22304 (c_begin_if_stmt): Prototype new function.
22305 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
22306 * c-parse.in (if_prefix): Use c_begin_if_stmt,
22307 c_begin_while_stmt and c_finish_while_stmt_cond.
22309 2002-01-04 William Cohen <wcohen@redhat.com>
22311 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
22312 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22313 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22314 * config/pa/som.h (ASM_FILE_START): Likewise.
22316 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
22318 * lcm.c: Include df.h.
22319 Add available_transfer_function prototype.
22320 (compute_available): Rework to use iterative dataflow framework.
22321 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
22322 with bb_info in df.h
22323 (available_transfer_function): New function.
22325 * Makefile.in (lcm.o): add df.h to dependencies.
22327 2002-01-04 Richard Henderson <rth@redhat.com>
22329 * config/alpha/alpha.c (some_operand): Accept HIGH.
22330 (input_operand): Likewise; accept simple references to globals.
22331 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
22332 (alpha_const_double_ok_for_letter_p): Likewise.
22333 (alpha_extra_constraint): Likewise.
22334 (alpha_preferred_reload_class): Likewise. Do not force
22335 symbolic constants to memory.
22336 (alpha_legitimate_address_p): Accept simple references
22337 to small_symbolic_operand.
22338 (alpha_legitimize_address): New arg scratch. Be prepared to be
22339 called when no_new_pseudos. Emit simple symbolic references.
22340 Split integers into low, high, and rest.
22341 (alpha_expand_mov): Use alpha_legitimize_address.
22342 (some_small_symbolic_mem_operand): New.
22343 (split_small_symbolic_mem_operand): New.
22344 * config/alpha/alpha-protos.h: Update.
22345 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
22346 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
22347 (EXTRA_CONSTRAINT): Likewise.
22348 (PREFERRED_RELOAD_CLASS): Likewise.
22349 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
22350 (PREDICATE_CODES): Update.
22351 * config/alpha/alpha.md: New post-reload splitters to convert
22352 simplfied symbolic operands to the form that references $29.
22353 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
22354 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
22356 2002-01-03 Richard Henderson <rth@redhat.com>
22358 * local-alloc.c (function_invariant_p): Update commentary.
22360 2002-01-04 H.J. Lu <hjl@gnu.org>
22362 * toplev.c (rest_of_compilation): Fix a typo when calling
22365 2002-01-03 Kazu Hirata <kazu@hxi.com>
22367 * c-common.c: Fix formatting.
22368 * diagnostic.c: Likewise.
22369 * doloop.c: Likewise.
22370 * dwarf2out.c: Likewise.
22372 2002-01-03 Kazu Hirata <kazu@hxi.com>
22374 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
22375 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
22377 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22379 * cpperror.c: Update comments and copyright.
22380 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
22381 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
22383 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
22385 * collect2.c (main): Use strcmp when testing for "-shared".
22387 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
22389 * cppmacro.c: Don't include intl.h. Update comments.
22390 (new_number_token): Allocate enough buffer for 64-bit unsigned
22391 integers; update prototype.
22392 * cppmain.c: Update comments.
22394 2002-01-03 William Cohen <wcohen@redhat.com>
22396 * function.h (struct function): Add profile.
22397 (current_function_profile): New.
22398 doc/extend.texi: Update documentation.
22399 * final.c (final_start_function): Use current_function_profile
22400 instead of profile_flag.
22401 (profile_after_prologue): Likewise.
22402 * function.c (expand_function_start): Likewise.
22403 (expand_function_start): Likewise.
22404 * config/alpha/alpha.c (direct_call_operand):
22405 (alpha_does_function_need_gp): Likewise.
22406 (alpha_expand_prologue): Likewise.
22407 * config/arm/arm.c (arm_expand_prologue): Likewise.
22408 thumb_expand_prologue: Likewise.
22409 * config/d30v/d30v.c (d30v_stack_info): Likewise.
22410 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
22411 (fr30_expand_prologue): Likewise.
22412 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
22413 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
22414 * config/i386/i386.h (FINALIZE_PIC): Likewise.
22415 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
22416 * config/i960/i960.c (i960_output_function_prologue): Likewise.
22417 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
22418 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
22419 (m32r_expand_prologue): Likewise.
22420 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
22421 (m88k_expand_prologue): Likewise.
22422 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
22423 * config/mips/mips.c (compute_frame_size): Likewise.
22424 (mips_expand_prologue): Likewise.
22425 (mips_can_use_return_insn): Likewise.
22426 * config/pa/elf.h (ASM_FILE_START): Likewise.
22427 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
22428 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
22429 * config/pa/som.h (ASM_FILE_START): Likewise.
22430 * config/romp/romp.c (romp_using_r14): Likewise.
22431 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
22432 (rs6000_stack_info): Likewise.
22433 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22434 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
22435 * config/v850/v850.c (compute_register_save_size): Likewise.
22437 2002-01-03 Jakub Jelinek <jakub@redhat.com>
22439 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
22440 gen_lowpart_common fails, use gen_lowpart_SUBREG.
22442 2002-01-03 Turly O'Connor <turly@apple.com>
22444 * darwin.c (machopic_output_possible_stub_label): Don't generate
22445 stub routines for pseudo-stubs which we've just defined.
22447 2002-01-03 Kazu Hirata <kazu@hxi.com>
22449 * builtins.c: Fix formatting.
22450 * c-typeck.c: Likewise.
22451 * combine.c: Likewise.
22452 * expr.c: Likewise.
22453 * loop.c: Likewise.
22455 2002-01-03 Andreas Schwab <schwab@suse.de>
22457 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
22458 and return true if _cpp_push_next_buffer pushed a new include
22460 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
22461 _cpp_pop_file_buffer did not push a new file.
22462 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
22464 2002-01-02 Eric Christopher <echristo@redhat.com>
22466 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
22467 FIND_REG_INC_NOTE call. Update copyright.
22468 * loop.c (canonicalize_condition): Ditto.
22469 * reorg.c (delete_scheduled_jump): Ditto.
22471 2002-01-03 Kazu Hirata <kazu@hxi.com>
22473 * gcse.c: Fix formatting.
22475 2002-01-03 Graham Stott <grahams@redhat.com>
22477 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
22478 forward defs for struct tags rtx_def, union_tree, rtvec_def
22479 also output corresponding typedefs for rtx, tree, and rtvec.
22481 * system.h: Move forward defs for struct tags rtx_def, union_tree,
22482 rtvec_def along with corresponding typedefs for rtx, tree, and
22483 rtvec to config.h, hconfig.h, tconfig.h.
22485 2002-01-03 Graham Stott <grahams@redhat.com>
22487 * tree.h: Update copyright date.
22488 (IS_EXPR_CODE_CLASS): Add parenthesis.
22489 (TREE_SET_CODE): Add whitespace.
22490 (TREE_CHECK): Add parenthesis.
22491 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
22492 (CST_OR_CONSTRUCTOR_CHECK):
22493 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
22494 (TREE_SYMBOL_REFERENCED): Whitespace.
22495 (INT_CST_LT): Likewise.
22496 (INT_CST_LT_UNSIGNED): Likewise.
22497 (tree_real_cst): Unwrap comment.
22498 (tree_string): Likewise.
22499 (tree_complex): Likewise.
22500 (IDENTIFIER_POINTER): correct cast.
22501 (SAVE_EXPR_CONTEXT): Whitespace.
22502 (EXPR_WFL_FILENAME_NODE): Likewise.
22503 (EXPR_WFL_FILENAME): Remove parenthesis.
22504 (DECL_ORIGIN): Add parenthesis.
22505 (DECL_FROM_INLINE): Use NULL_TREE.
22506 (build_int_2): Whitespace.
22507 (build_type_variant): Add parenthesis.
22509 * gcc/jcf-parse.c: Update copyright date.
22510 (yyparse): Constify resource_filename.
22512 2002-01-03 Graham Stott <grahams@redhat.com>
22514 * rtl.h: Update copyright date.
22515 (RTL_CHECK1): Wrap long line.
22516 (RTL_CHECK2): Likewise.
22517 (RTL_CHECKC1): Wrap long line and whitespace.
22518 (RTL_CHECKC2): Likewise.
22519 (XWINT): Whitespace.
22525 (XBITMAP): Likewise.
22527 (XBBDEF): Likewise.
22529 (X0WINT): Likewise.
22531 (X0UINT): Likewise.
22535 (X0MODE): Likewise.
22536 (X0BITMAP): Likewise.
22537 (X0TREE): Likewise.
22538 (X0BBDEF): Likewise.
22539 (X0ADVFLAGS): Likewise.
22540 (X0CSELIB): Likewise.
22541 (X0MEMATTR): Likewise.
22542 (XCWINT): Likewise.
22544 (XCUINT): Likewise.
22548 (XCMODE): Likewise.
22549 (XCBITMAP): Likewise.
22550 (XCTREE): Likewise.
22551 (XCBBDEF): Likewise.
22552 (XCADVFLAGS): Likewise.
22553 (XCCSELIB): Likewise.
22554 (XC2EXP): Likewise.
22555 (INSN_UID): Likewise.
22556 (PREV_INSN): Likewise.
22557 (PATTERN): Likewise.
22558 (INSN_CODE): Likewise.
22559 (PUT_REG_NOTE_KIND): Likewise.
22560 (CODE_LABEL_NUMBER): Likewise.
22561 (NOTE_SOURCE_FILE): Likewise.
22562 (NOTE_BLOCK): Likewise.
22563 (NOTE_EH_HANDLER): Likewise.
22564 (NOTE_RANGE_INFO): Likewise.
22565 (NOTE_LIVE_INFO): Likewise.
22566 (NOTE_BASIC_BLOCK): Likewise.
22567 (NOTE_EXPECTED_VALUE): Likewise.
22568 (NOTE_LINE_NUMBER): Likewise.
22569 (LABEL_NAME): Likewise.
22570 (LABEL_NUSES): Likewise.
22571 (LABEL_ALTERNATE_NAME): Likewise.
22572 (ADDRESSOF_DECL): Likewise.
22573 (JUMP_LABEL): Likewise.
22574 (LABEL_NEXTREF): Likewise.
22576 (ORIGINAL_REGNO: Likewise.
22577 (HARD_REGISTER_NUM_P): Add parenthesis.
22578 (SUBREG_REG): Whitespace.
22579 (SUBREG_BYTE): Likewise.
22580 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
22581 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
22582 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
22583 (ASM_OPERANDS_INPUT_VEC): Likewise.
22584 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
22585 (ASM_OPERANDS_INPUT): Likewise.
22586 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
22587 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
22588 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
22589 (ASM_OPERANDS_INPUT_MODE): Likewise.
22590 (ASM_OPERANDS_SOURCE_FILE): Likewise.
22591 (ASM_OPERANDS_SOURCE_LINE): Likewise.
22592 (MEM_SET_IN_STRUCT_P): Minor reformat.
22593 (TRAP_CONDITION): Whitespace.
22594 (TRAP_CODE): Likewise.
22595 (COND_EXEC_TEST): Likewise.
22596 (COND_EXEC_CODE): Likewise.
22597 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
22598 (PHI_NODE_P): Add parenthesis.
22599 (plus_constant): Whitespace and add parenthesis.
22601 2002-01-03 Kazu Hirata <kazu@hxi.com>
22603 * config/avr/avr.c: Fix comment typos.
22604 * config/c4x/c4x.md: Likewise.
22605 * config/dsp16xx/dsp16xx.h: Likewise.
22606 * config/dsp16xx/dsp16xx.md: Likewise.
22607 * config/i386/i386.md: Likewise.
22608 * config/ia64/ia64.c: Likewise.
22609 * config/m32r/m32r.h: Likewise.
22610 * config/m68hc11/m68hc11.md: Likewise.
22611 * config/mmix/mmix.c: Likewise.
22612 * config/mn10200/mn10200.c: Likewise.
22613 * config/romp/romp.c: Likewise.
22614 * config/sh/sh.c: Likewise.
22615 * config/stormy16/stormy16.c: Likewise.
22616 * config/stormy16/stormy16.h: Likewise.
22617 * config/stormy16/stormy16.md: Likewise.
22619 2002-01-03 Graham Stott <grahams@redhat.com>
22621 * loop.h: Update copyright date.
22622 (LOOP_MOVABLES): Fix typo.
22623 (LOOP_REGS): Likewise.
22624 (LOOP_IVS): Likewise.
22626 2002-01-03 Graham Stott <grahams@redhat.com>
22628 * cppinit.c: Update copyright date.
22629 Don't include output.h
22630 * Makefile.in: Update copyright date.
22633 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
22636 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
22637 (-pthread) Add to RS/6000 options.
22639 2002-01-02 Kazu Hirata <kazu@hxi.com>
22641 * except.c: Fix comment typos.
22642 * loop.c: Likewise.
22643 * varasm.c: Likewise.
22644 * doc/tm.texi: Fix a typo.
22646 2002-01-02 Jakub Jelinek <jakub@redhat.com>
22648 * c-typeck.c (output_init_element): Allow initializing static storage
22649 duration objects with compound literals.
22651 2002-01-02 Richard Henderson <rth@redhat.com>
22653 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
22656 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22658 * gcc.c (default_compilers): Const-ify.
22659 * mips-tdump.c (stab_names): Likewise.
22660 * mips-tfile.c (map_coff_types, map_coff_storage,
22661 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
22662 pseudo_ops_t, pseudo_ops): Likewise.
22663 * protoize.c (default_include): Likewise
22665 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
22666 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
22667 Add array size in declaration.
22668 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
22669 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
22670 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
22671 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
22672 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
22673 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
22674 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
22675 emtens, make_nan): Const-ify.
22676 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
22677 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
22679 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
22681 * config.gcc (ia64-*-*): Set extra_headers.
22682 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
22683 * config/alpha/t-osf: Remove.
22684 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
22686 2002-01-02 David Edelsohn <edelsohn@gnu.org>
22688 * config/rs6000/t-aix43: Revert previous change.
22690 2002-01-02 Jason Merrill <jason@redhat.com>
22692 * c-decl.c (c_expand_body): Call outlining_inline_function when
22693 emitting an inline function out of line.
22695 2002-01-02 Richard Henderson <rth@redhat.com>
22697 * dwarf2out.c (limbo_die_node): Add created_for member.
22698 (new_die): New argument created_for. Update all callers.
22699 (mark_limbo_die_list): New.
22700 (dwarf2out_init): Register limbo_die_list as a root.
22701 (dwarf2out_finish): Force insert limbo dies into their function
22704 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
22707 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
22709 2002-01-02 Kazu Hirata <kazu@hxi.com>
22711 * config/h8300/fixunssfsi.c: Update copyright.
22714 * config/h8300/h8300.c: Update copyright.
22715 Eliminate warnings.
22717 2002-01-02 Kazu Hirata <kazu@hxi.com>
22719 * config/romp/romp.c: Fix comment formatting.
22720 * config/romp/romp.h: Likewise.
22721 * config/romp/romp.md: Likewise.
22722 * config/s390/s390.c: Likewise.
22723 * config/stormy16/stormy16.c: Likewise.
22724 * config/stormy16/stormy16.h: Likewise.
22726 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
22728 * c-common.h (genrtl_expr_stmt_value): Declare.
22729 * c-semantics.c (genrtl_goto_stmt): Redirect to...
22730 (genrtl_goto_stmt_value): ... this new function. Pass new
22731 argument down to expand_expr_stmt_value, taking
22732 TREE_ADDRESSABLE into account.
22733 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
22734 STMT_EXPR as addressable, i.e., one whose result we want.
22735 * expr.c (expand_expr): Don't save expression statement value
22736 of labeled_blocks or loop_exprs.
22737 * stmt.c (expand_expr_stmt): Redirect to...
22738 (expand_expr_stmt_value): ... this new function. Use new
22739 argument to tell whether to save expression value.
22740 (expand_end_stmt_expr): Reset last_expr_type and
22741 last_expr_value if we don't have either.
22742 * tree-inline.c (declare_return_variable): Mark its use
22743 statement as addressable.
22744 * tree.h: Document new use of TREE_ADDRESSABLE.
22745 (expand_expr_stmt_value): Declare.
22747 2002-01-01 Tom Rix <trix@redhat.com>
22749 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
22750 rs6000_emit_allocate_stack.
22752 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
22754 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
22755 ${srcdir}/ginclude/ to every entry in extra_headers.
22756 * configure: Regenerate.
22757 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
22758 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
22759 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
22760 * ginclude/proto.h: Rename to config/convex/proto.h.
22762 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22764 * attribs.c (handle_vector_size_attribute): Use host_integerp
22765 and tree_int_cst; remove warnings.
22766 * caller-save.c (insert_restore): Add cast to get rid of warning.
22767 (insert_save): Likewise.
22768 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22769 * regmove.c (find_matches): Add temporary var to kill a warning.
22771 2002-01-01 Douglas B Rupp <rupp@gnat.com>
22773 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
22774 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
22775 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
22776 (vms-dwarf2eh.o): Add Makefile rule.
22777 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
22778 * config/alpha/vms-dwarf2eh.asm: New file.
22780 * gcc.c (delete_if_ordinary): Delete all versions.
22782 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
22784 * config/mmix/mmix.md: Update FIXME to not mention
22786 (MMIX_rJ_REGNUM): New define_constants constant.
22787 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
22788 "*movdicc_real"): Adjust contraints formatting.
22789 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
22790 for branch prediction.
22791 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
22793 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
22794 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
22795 number. Delete related FIXMEs.
22796 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
22797 from number to MMIX_rJ_REGNUM.
22798 (TARGET_MASK_BRANCH_PREDICT): New.
22799 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
22800 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
22801 value. Add -mbranch-predict and -mno-branch-predict.
22802 (TARGET_VERSION): Drop date.
22803 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
22804 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
22805 for finding out global symbols.
22806 (mmix_asm_output_labelref): Revert condition for global symbol.
22807 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
22808 (mmix_print_operand_punct_valid_p): A '+' is valid.
22810 See ChangeLog.6 for earlier changes.