]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* doc/gty.texi: Small updates.
[gcc.git] / gcc / ChangeLog
CommitLineData
fc5c400a
GK
12002-06-11 Geoffrey Keating <geoffk@redhat.com>
2
3 * doc/gty.texi: Small updates.
4
13f0d49c
GDR
52002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
6
7 * objc/objc-act.c (warn_with_ivar): Adjust calls to
8 diagnostic_count_error.
9 (warn_with_method): Likewise.
10
11 * diagnostic.h (warnings_are_errors_message): New field of
12 diagnostic_context.
13 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
14 match semantics.
15 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
16 (diagnostic_count_diagnostic): Make aware of other kinds of
17 diagnostics.
18 (diagnostic_initialize): Initialize warnings_are_errors_message field.
19
0797e472
TT
202002-06-11 Tom Tromey <tromey@redhat.com>
21
22 For PR java/6520:
23 * fold-const.c (fold_convert): Don't modify existing tree's type.
24
f288d4aa
GK
252002-06-11 Geoffrey Keating <geoffk@redhat.com>
26
27 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
28
d27bab4c
RH
292002-06-11 Richard Henderson <rth@redhat.com>
30
31 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
32
bc2a8f08
RH
332002-06-11 Richard Henderson <rth@redhat.com>
34
35 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
36 DWARF2_UNWIND_INFO is false.
37
b217ec1b
BW
382002-06-11 Bob Wilson <bob.wilson@acm.org>
39
40 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
41
11819f80
UW
422002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
43
44 * config/s390/s390.c (emit_prologue): gen_store_multiple
45 returns an insn now, not a pattern.
46
c2727579
RO
472002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
48
49 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
50 $(TEXI2DVI) -o.
51
285464d0
JH
52Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
53
54 * i386.c (x86_promote_QImode): Set for Athlon
55 (x86_fast_prefix): New global variable.
56 (x86_arch_always_fancy_math_387): Fix formating.
57 * i386.h (x86_fast_prefix): Declare
58 (TARGET_FAST_PREFIX): define.
59 * i386.md (and to strict_low_part, HI to SI
60 promoting splitter): Use new macro.
61
62 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
63
1bb1f121
ZW
642002-06-11 Zack Weinberg <zack@codesourcery.com>
65
66 * Makefile.in (distclean): Delete junk left in testsuite
67 directory, too.
68
88c65786
JL
692002-06-11 Jeffrey Law <law@redhat.com>
70
0db79a6b
JL
71 * caller-save.c (init_caller_save): Move creation of SAVEINSN
72 and RESTINSN into into the scope of the sequence.
73
47eb2ca8
JL
74 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
75 RETURN insns.
76
603b4b92
JL
77 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
78
88c65786
JL
79 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
80 not the pattern. So extract the pattern from the insn.
882c7223
JL
81
82 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
83
df14489a
UW
842002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
85
86 * config/s390/s390.md (movsi): Only use floating point
87 register alternatives when operands are already fprs.
88 (movdi_31, movdi_64): Likewise.
89
6f9703af
DM
902002-06-11 David S. Miller <davem@redhat.com>
91
92 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
93 Only run RTX equality checks on INSN_P rtl.
94
b2ccb744
UW
952002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
96
97 * config/s390/s390.md (reload_base, ltorg): Remove.
98 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
99 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
100 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
101 s390_asm_output_pool_prologue): Likewise.
102 * s390.h (s390_pool_start_insn): Likewise.
103
104 * s390.c (s390_output_symbolic_const): Remove support for
105 old-style pool chunks.
106 (s390_function_epilogue): Likewise.
107 (s390_output_constant_pool): Likewise. Also, fix incorrect
108 alignment for 64-bit literal pools.
109 (print_operand_address): Remove 'y' and 'Y' format flags.
110 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
111 old-style pool chunks.
112 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
113 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
114 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
115
116 * s390.c (consttable_operand): New function.
117 * s390-protos.h (consttable_operand): Declare it.
118 * s390.h (PREDICATE_CODES): Add consttable_operand.
119 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
120 consttable_sf, consttable_df, pool_start_31, pool_end_31,
121 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
122 * s390.c (struct constant, struct constant_pool): New data types.
123 (constant_modes, gen_consttable): New variables.
124 (s390_start_pool, s390_end_pool, s390_add_pool,
125 s390_dump_pool, s390_free_pool): New functions.
126 (s390_chunkify_pool): Completely reimplement literal pool
127 overflow handling.
128
129 * s390.c (s390_pool_overflow): New variable.
130 * s390.h (s390_pool_overflow): Declare it.
131 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
132 jumps in literal pool overflow situations.
133
134 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
135 (s390_frame_info): Account for possible use of RETURN_REGNUM
136 by new literal pool overflow code.
137 (s390_emit_prologue): Likewise.
138
2f937369
DM
1392002-06-05 David S. Miller <davem@redhat.com>
140
141 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
142 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
143 emit_insns_before_scope, emit_insns_after,
144 emit_insns_after_scope): Delete declaration.
145 * ada/misc.c (insert_code_for): Use emit_insn* instead of
146 emit_insns_foo.
147 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
148 (alpha_set_memflags): Fix comment.
149 (set_frame_related_p): Use get_insns instead of gen_sequence.
150 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
151 emitting no insns.
152 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
153 gen_sequence.
154 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
155 * config/fr30/fr30.c (fr30_move_double): Likewise.
156 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
157 Likewise.
158 * config/ia64/ia64.c (spill_restore_mem): Likewise.
159 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
160 no insns.
161 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
162 instead of gen_sequence.
163 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
164 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
165 * config/sh/sh.c (sh_need_epilogue): Likewise.
166 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
167 attributes.
168 (setjmp pattern and split): Use them to avoid splitter which emits
169 no RTL.
170 * genattrtab.c (main): Emit include of function.h
171 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
172 get_insns instead of gen_sequence.
173 * config/cris/cris.c (cris_split_movdx): Likewise.
174 * emit-rtl.c (emit_insns*): Kill.
175 (try_split): Expect insn list instead of SEQUENCE.
176 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
177 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
178 Make them abort if a SEQUENCE is given and RTL checking is
179 enabled.
180 (emit_*_scope): Don't forget to set scope on final insn.
181 (gen_sequence): Move from here...
182 * ssa.c (gen_sequence): To here as private function.
183 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
184 comments.
185 (expand_builtin_return, expand_builtin_mathfn): Likewise.
186 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
187 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
188 (expand_builtin_expect_jump): Use get_insns and fix comments.
189 * calls.c (try_to_integrate): Use emit_insn_foo.
190 (expand_call, emit_library_call_value_1): Likewise.
191 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
192 (emit_move_insn_1): Use get_insns instead of gen_sequence.
193 (expand_expr): Use emit_insn_foo.
194 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
195 * except.c (build_post_landing_pads): Likewise.
196 * flow.c (attempt_auto_inc): Likewise.
197 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
198 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
199 * function.c (fixup_var_refs_insn): Use get_insns instead of
200 gen_sequence.
201 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
202 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
203 (fixup_stack_1, purge_addressof_1, expand_main_function,
204 get_arg_pointer_save_area): Likewise.
205 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
206 expand_function_end): Use emit_insn_foo.
207 (record_insns, keep_stack_depressed): Work with insn list instead
208 of SEQUENCE, fix comments.
209 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
210 noce_try_store_flag_constants, noce_try_store_flag_inc,
211 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
212 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
213 (noce_process_if_block): Use get_insns instead of gen_sequence.
214 * optabs.c (add_equal_note): Work with insn list, fix comments.
215 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
216 (expand_unop, expand_complex_abs, expand_unop_insn,
217 expand_no_conflict_block): Likewise.
218 (gen_move_insn): Use get_insns instead of gen_sequence.
219 (gen_cond_trap): Likewise.
220 * integrate.c (copy_rtx_and_substitute): Likewise.
221 (emit_initial_value_sets): Use emit_insn_foo.
222 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
223 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
224 now that RTL generators give insn lists.
225 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
226 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
227 instead of gen_sequence.
228 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
229 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
230 instead of gen_sequence.
231 * loop.c (move_movables, emit_prefetch_instructions,
232 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
233 Likewise.
234 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
235 (product_cheap_p): Likewise, and add commentary about RTL wastage
236 here.
237 * lcm.c (optimize_mode_switching): Use get_insns instead of
238 gen_sequence.
239 * profile.c (gen_edge_profiler): Likewise.
240 * regmove.c (copy_src_to_dest): Likewise.
241 * reg-stack.c (compensate_edge): Likewise and fix comment.
242 * gcse.c (process_insert_insn): Likewise.
243 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
244 * jump.c (delete_prior_computation): Update comment.
245 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
246 of gen_sequence, update comments to match.
247 * recog.c (peephole2_optimize): Work with insn lists instead of
248 SEQUENCE rtl.
249 * sched-vis.c (print_pattern): Abort on SEQUENCE.
250 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
251 Use get_insns instead of gen_sequence.
252 (copy_loop_body): Likewise and don't emit dummy NOTE.
253 * genrecog.c: Don't mention SEQUENCE rtl in comments.
254 * combine.c (try_combine): Expect insn lists from split generator.
255 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
256 hand.
257
43cf10b5
RS
2582002-06-11 Roger Sayle <roger@eyesopen.com>
259 Andreas Jaeger <aj@suse.de>
260
261 * cfgbuild.c: Update copyright years.
262
1062f15a
AS
2632002-06-11 Andreas Schwab <schwab@suse.de>
264
265 * config/m68k/m68k.h (PREDICATE_CODES): Define.
266
ce3649d2
EC
2672002-06-11 Eric Christopher <echristo@redhat.com>
268
269 * doc/tm.texi (Run-time Target): Add comment about flag_iso
270 and strict ANSI.
271 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
272 * config/mips/ecoffl.h: Ditto.
273 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
274 (CPP_PREDEFINES): Ditto.
275 * config/mips/elfl64.h: Ditto.
276 * config/mips/elfl.h: Ditto.
277 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
278 out until irix header consolidation.
279 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
280 with SUBTARGET_OS_CPP_BUILTINS.
281 * config/mips/iris6.h: Ditto.
282 (CPLUSPLUS_CPP_SPEC): Remove.
283 * config/mips/linux.h: Ditto.
284 * config/mips/netbsd.h: Ditto.
285 * config/mips/openbsd.h: Ditto.
286 * config/mips/rtems.h: Ditto.
287 * config/mips/rtems64.h: Ditto.
288 * config/mips/sni-svr4.h: Ditto.
289 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
290 ISA_MIPS32, ISA_MIPS64): New defines.
291 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
292 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
293 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
294 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
295 (TARGET_CPU_CPP_BUILTINS): Define.
296 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
297 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
298 (movdicc): Remove check for ISA_MIPS32.
299 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
300 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
301 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
302 sunge_sf, sunle_df, sunle_sf): New patterns.
303
bc3437ba
NB
3042002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
305
306 * Makefile.in: Update cppmain.o.
307 * cpphash.h (struct cpp_reader): Move some members to a
308 nested structure.
309 (trad_line): Rename saved_line.
310 (_cpp_read_logical_line_trad): Update.
311 (_cpp_remove_overlay): New.
312 * cppinit.c (cpp_create_reader): No need to set saved_line.
313 (cpp_destroy): Update.
314 (cpp_read_main_file): Only overlay if compiling.
315 * cpplex.c (continue_after_nul): Return false if in directive.
316 * cpplib.c (EXPAND): New.
317 (directive_table, SEEN_EOL): Update.
318 (end_directive): Remove overlay if traditional; don't skip
319 line in traditional #define.
320 (prepare_directive_trad): New.
321 (_cpp_handle_directive, run_directive): Update for traditional
322 directives.
323 (lex_macro_node): Simplify, don't use lex_identifier_trad.
324 * cpplib.h (struct options): Add preprocess_only.
325 * cppmain.c: Don't include intl.h.
326 (cpp_preprocess_file): Set options->preprocess_only.
327 (scan_translation_unit_trad): Fix, and print line numbers.
328 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
329 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
330 save_replacement_text, _cpp_create_trad_definition): Update for
331 variable renaming.
332 (_cpp_overlay_buffer): Save line number.
333 (_cpp_remove_overlay): Rename from restore_buff, restore line.
334 (_cpp_read_logical_line_trad): Don't handle overlays here.
335 (scan_out_logical_line): Process directives.
336
b25bb36a
DS
3372002-06-11 Danny Smith <dannysmith@users.sourforge.net>
338
339 * gthr-win32.h: Wrap functions in extern "C".
340 (__gthread_key_t): Typedef as unsigned long,
341 not win32 DWORD.
342 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
343 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
344 (__gthr_win32_once, __gthr_win32_key_create,
345 __gthr_win32_key_delete, __gthr_win32_getspecific,
346 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
347 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
348 __gthr_win32_mutex_unlock): Declare.
349 (__gthread_once,__gthread_key_create,
350 __gthread_key_delete, __gthread_getspecific,
351 __gthread_setspecific, __gthread_mutex_init_function,
352 __gthread_mutex_lock,__gthread_mutex_trylock,
353 __gthread_mutex_unlock): Call corresponding
354 __gthr_win32_* extern implementations if #defined
355 __GTHREAD_HIDE_WIN32API.
356 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
ce3649d2 357 $(srcdir)/config/i386/gthr-win32.c
b25bb36a
DS
358 * config/i386/gthr-win32.c: New implementation file.
359 (__gthr_win32_once, __gthr_win32_key_create,
360 __gthr_win32_key_delete, __gthr_win32_getspecific,
361 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
362 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
363 __gthr_win32_mutex_unlock): New functions, based on
364 static inlines in gthr-win32.h.
365
a69c385e
BW
3662002-06-10 Bob Wilson <bob.wilson@acm.org>
367
368 * config/xtensa/xtensa.c (override_options): Don't warn about
369 using -fpic or -fPIC when PIC is enabled by default.
370
e654730d
RS
3712002-06-10 Roger Sayle <roger@eyesopen.com>
372
373 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
374
a5381466
ZW
3752002-06-10 Zack Weinberg <zack@codesourcery.com>
376
377 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
ce3649d2 378 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
a5381466
ZW
379 exists, substitute its pathname as @extra_modes_file@, define
380 EXTRA_MODES_FILE to be an appropriate string to #include it
381 with, and define EXTRA_CC_MODES to 1.
382
383 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
384 it's defined. Get rid of redundancy in calling sequence for
385 CC; don't use it to define CCmode, to avoid a warning.
386 * libgcc2.c: Include symcat.h for the sake of machmode.def.
387
388 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
389 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
390 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
391 New files.
392 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
393 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
394
395 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
396 defining extra CC modes.
397
852c6ec7
RS
3982002-06-10 Roger Sayle <roger@eyesopen.com>
399 Andreas Jaeger <aj@suse.de>
400
401 * cfgrtl.c (create_basic_block_structure): Remove index argument
402 and use last_basic_block++ instead. (create_basic_block): Update.
403 * cfgbuild.c (find_basic_blocks_1): Likewise.
404
405 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
406 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
407 * sched-ebb.c (schedule_ebbs): Likewise.
408 * sched-rgn.c (schedule_insns): Likewise.
409 * ssa-ccp.c (ssa_const_prop): Likewise.
410 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
411 * toplev.c (rest_of_compilation): Likewise.
412 * config/ia64/ia64.c (ia64_reorg): Likewise.
413
60c86d4e
RS
4142002-06-10 Roger Sayle <roger@eyesopen.com>
415
416 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
417 of matching registers.
418
9543a9d2
RS
4192002-06-10 Roger Sayle <roger@eyesopen.com>
420
421 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
422 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
423
38e18619
HPN
4242002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
425
426 * config/mmix/mmix.h: Improve comments.
427 (CPP_SPEC, CPP_PREDEFINES): Don't define.
428 (TARGET_CPU_CPP_BUILTINS): Define.
429 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
430 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
431 unused predicate.
432 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
433 compiler warning.
434 (mmix_constant_address_p): Remove another
435 redundant test before case.
436 (mmix_canonicalize_comparison): Remove unused function.
437 (mmix_print_operand_address): Don't test and adjust for operand in
438 non-canonical format.
439 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
440 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
441
ac17cd8f
ZW
4422002-06-10 Zack Weinberg <zack@codesourcery.com>
443
444 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
445 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
446 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
447 (gen_compare): Use CCmode unconditionally.
448
7b668f9e
JJ
4492002-06-10 Jakub Jelinek <jakub@redhat.com>
450
451 PR optimization/6759
452 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
453 the REQ_EQUAL note.
454
85d49058
JJ
4552002-06-10 Jakub Jelinek <jakub@redhat.com>
456
457 PR c/6660
458 * c-decl.c (grokfield): Allow user defined types if they declare
459 structs or unions for unnamed fields.
460
50f30e6b
JJ
4612002-06-10 Jakub Jelinek <jakub@redhat.com>
462
463 PR c/6809
464 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
465
156755ac
JJ
4662002-06-10 Jakub Jelinek <jakub@redhat.com>
467
468 PR optimization/6842
469 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
470 operand subreg cannot be simplified.
471
5d056e9b
JJ
4722002-06-10 Jakub Jelinek <jakub@redhat.com>
473
474 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
475 (compare_constant): Likewise.
476 (output_addressed_constants): Likewise.
477
2bf87216
JJ
4782002-06-10 Jakub Jelinek <jakub@redhat.com>
479
480 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
481 merge bb with itself.
482
135fd2d8
RH
4832002-06-10 Richard Henderson <rth@redhat.com>
484
485 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
486 (builtin_zapnot): Likewise.
487
488 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
489 reservation.
490
fce5a9f2
EC
4912002-06-10 Eric Christopher <echristo@redhat.com>
492
493 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
494 prototype and function.
495 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
496 (call_insn_operand): Remove half pic references.
497 (legitimate_address_p): Ditto.
498 * config/i386/i386.h: Remove half pic defines.
499
95b1627e
EC
5002002-06-10 Eric Christopher <echristo@redhat.com>
501
502 * doc/extend.texi (Return Address): Add note explaining the side-
503 effects of inlining on __builtin_return_address.
504
aea185b3
TT
5052002-06-10 Tom Tromey <tromey@redhat.com>
506
507 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
508 (c-common.o): Depend on langhooks.h.
509
afb03408
NB
5102002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
511
512 * cpphash.h (_cpp_read_logical_line_trad,
513 _cpp_expansions_different_trad): Update prototypes.
514 * cpplex.c (continue_after_nul): New.
515 * cppmain.c: Include cpphash.h.
516 (scan_translation_unit_trad): New.
517 (cpp_preprocess_file): Call it.
518 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
519 overlay.
520 (_cpp_expansions_different_trad): Update prototype.
521
2754d3c5
R
522Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
523
524 Fix cfi generation for SH[1-4]:
525
526 * sh.c (frame_insn): New function.
527 (output_stack_adjust): Add parameter emit_fn. All callers changed.
528 (push): Now returns rtx. Use frame_insn.
529 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
530 of a DF register.
531 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
532
ad854f24
ZW
5332002-06-10 Zack Weinberg <zack@codesourcery.com>
534
535 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
536 and gtype-desc.c.
537 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
538 (distclean): ... not here. But do delete all testsuite/*.log,
539 testsuite/*.sum files here. Delete mkheaders. Delete
540 po/*.gmo and the testsuite directory in a split tree build.
541
bf1660a6
JL
5422002-06-10 Jeffrey Law <law@redhat.com>
543
544 * alias.c (static_reg_base_value): New to hold RTL for
545 items allocated once per function for the aliasing code.
546 (init_alias_once_per_function): Initialize static_reg_base_value.
547 (init_alias_analysis): Avoid throw-away allocations of RTL by
548 using pre-computed values in static_reg_base_value.
549 * function.c (prepare_function_start): Call
550 init_alias_once_per_function appropriately.
551 * rtl.h (init_alias_once_per_function): Declare.
552 * caller-save (init_caller_save): Restructure slightly to
553 avoid lots of silly RTL generation.
554 * expr.c (init_expr_once): Likewise.
555 * reload1.c (reload_cse_regs_1): Allocate throw-away register
556 RTL object here. Pass it into children.
557 (reload_cse_simplify_operands): Use passed-in register RTL
558 object.
559 (reload_cse_simplify): Pass through throw-away register
560 RTL object.
561
8dc58484 5622002-06-10 Daniel Berlin <dberlin@dberlin.org>
ad854f24 563
8dc58484
DB
564 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
565
ea16b5ee
RS
5662002-06-10 Richard Sandiford <rsandifo@redhat.com>
567
568 * gcc.c (process_command): Avoid assignment to read-only location.
569 Fix sizeof calculation.
570
6618c5d4
NB
5712002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
572
573 * cpphash.h (struct cpp_macro): Put comments on their own lines.
574 (_cpp_expansions_different_trad): New.
575 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
576 * cpptrad.c (canonicalize_text): New.
577 (scan_out_logical_line): Handle no arguments correctly.
578 (save_replacement_text): Commit memory when finished.
579 (_cpp_expansions_different_trad): New.
580
96e3ac4f
TJ
5812002-06-10 Tim Josling <tej@melbpc.org.au>
582
583 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
584 TREELANG and COBOL.
585 (lang_names): Add treelang and cobol.
586 (get_file_basename): Add code to support treelang and cobol as
587 4th and 5th users of c-common.c.
588
37a4aa31
GK
5892002-06-09 Geoffrey Keating <geoffk@redhat.com>
590
591 * Makefile.in (install-driver): Install driver as
592 $(target_alias)-gcc-$(version).
593 * gcc.c (spec_version): Make const.
594 (process_command): Handle -V and -b by using exec.
595 * doc/invoke.texi (Target Options): Restore -V option,
596 update docs for -b option.
597
02ef40d9
TJ
5982002-06-10 Tim Josling <tej@melbpc.org.au>
599
ad854f24
ZW
600 * configure.in (remaining_languages_check):
601 Added check that all languages specified were found.
02ef40d9
TJ
602 Exit if not found. Previous behaviour was silent failure.
603 * configure: Regenerated.
604
b38b97c4 6052002-06-10 Tim Josling <tej@melbpc.org.au>
ad854f24 606
b38b97c4
TJ
607 First steps to making treelang documentation compliant, based on
608 instructions in sourcebuild.texi. Also add to gcc.c list of
609 default languages.
ad854f24 610
b38b97c4
TJ
611 * doc/contrib.texi: Add self as contributor of treelang.
612
613 * doc/frontends.texi: Add mention of treelang.
614
615 * doc/invoke.texi (Overall Options): Add mention of treelang.
616
617 * doc/standards.texi: Add mention of treelang.
618
ae9dbf1f
HPN
6192002-06-09 Hans-Peter Nilsson <hp@axis.com>
620
621 * config/cris/cris.c: Include ggc.h
622
1ce676a0
NB
6232002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
624
625 * cpphash.h (_cpp_push_text_context): Update.
626 (_cpp_arguments_ok): New.
627 * cppmacro.c (_cpp_arguments_ok): New, split out from...
628 (collect_args): ...here.
629 (_cpp_push_text_context): Change inputs.
630 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
631 replace_args_and_push): New.
632 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
633 Don't use IS macros directly.
634 (scan_out_logical_line): Handle function-like macro argument
635 collection.
636 (push_replacement_text): Update.
637 (replacement_length): Remove.
638 (_cpp_create_trad_definition): Don't skip whitespace before
639 checking for '('.
640
25f2e176
MM
6412002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
642
643 * config/avr/avr.c (avr_mcu_types): Update for new devices.
644 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
645 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
646 * config/avr/avr.md ("type" and "length" attributes): New type
647 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
648 output a single "call" or "rcall" insn depending on device size.
649 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
650
309323c2
DE
6512002-06-09 David Edelsohn <edelsohn@gnu.org>
652
653 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
654 synonym for 630. Add power4. Remove embedded processors. Use -m604
655 assembler option.
656 (CPP_CPU_SPEC): Add power3 and power4.
657 (PROCESSOR_DEFAULT): Change to 604e.
658 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
659 (CPP_CPU_SPEC): Similar additions.
660 (enum process_type): Add POWER4.
661 (RTX_COSTS): Add POWER4.
662 (CPP_CPU_SPEC): Similar additions.
663 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6ef0903d 664 (PROCESSOR_DEFAULT64): Define.
309323c2
DE
665 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
666 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
667 branch adjustment.
668 (rs6000_issue_rate): Add Power4.
669 * config/rs6000/rs6000.md (cpu attr): Add power4.
670 (iu compare): Remove 604, 604e, 620, 630.
671 Add basic Power4 scheduling information.
672 (mfcr/mtcrf): Change type attribute to cr_logical.
673
1f8e4682
KG
6742002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
675
57d80297
KG
676 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
677 ATTRIBUTE_PRINTF_2.
678 * gengtype-lex.l: Fix format specifier warning.
679
1f8e4682
KG
680 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
681 not isspace.
682 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
683 lieu of isspace/IDchar.
684 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
685 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
686 ISSPACE.
687
5a9ee623
ZW
6882002-06-08 Zack Weinberg <zack@codesourcery.com>
689
690 * Makefile.in (LIBCPP_OBJS): Take out version.o.
691 * cpphash.h (cpp_reader): Take out print_version member.
692 * cppinit.c: (cpp_handle_option): Don't do anything with
693 -version. Just set help_only for --version, --target-help.
694 Just set verbose option for -v.
695 (cpp_post_options): Don't print a version string.
696
c16e5a35
MM
6972002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
698
699 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
700 (avr_section_type_flags): New, handle .noinit* sections.
701
79bc889e
JT
7022002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
703
704 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
705 and include netbsd_entry_point.
706 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
707 (NETBSD_ENTRY_POINT): Define.
708
6a79bb0a
JT
7092002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
710
711 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5a9ee623 712 if not already defined.
6a79bb0a
JT
713 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
714
e52b6b63
MM
7152002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
716
717 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
718 in a noreturn function.
719 (avr_output_function_prologue, avr_output_function_epilogue):
720 Correct function size calculation. Do not crash on empty function.
721 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
722
1569d670
JT
7232002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
724
725 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
726 netbsd_link_spec and netbsd_entry_point.
727 (LINK_SPEC): Use %(netbsd_link_spec).
728 (NETBSD_ENTRY_POINT): Define.
729
cfb06024
JT
7302002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
731
732 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
733 linker emulation.
734 (LINK_ARCH64_SPEC): Likewise.
735 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
736 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
737
5a9ee623
ZW
7382002-06-08 Marc Espie <espie@openbsd.org>
739
740 * lists.c (free_list): Fix typo in comment.
e3623158 741
272cdf58
AJ
7422002-06-08 Andreas Jaeger <aj@suse.de>
743
744 * lcm.c (optimize_mode_switching): Add unused attribute for
745 variable.
746
747 * sched-deps.c (sched_analyze): Remove unused variable.
748
bf3f2a12
GDR
7492002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
750
751 * diagnostic.def: Don't capitalize diagnostict descriptors.
752
523a5f2f
JT
7532002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
754
755 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
756 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
757 (NETBSD_ENTRY_POINT): Define.
758
a3e944f9
JT
7592002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
760
761 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
762 NETBSD_LINK_SPEC_ELF.
763 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
764 (NETBSD_ENTRY_POINT): Define.
765 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
766 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
767 netbsd_entry_point.
768 (NETBSD_ENTRY_POINT): Define.
769
854928a0
JT
7702002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
771
772 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
773 netbsd_link_spec and netbsd_entry_point.
774 (LINK_SPEC): Use %(netbsd_link_spec).
775 (NETBSD_ENTRY_POINT): Define.
776
6bb5d2e7
JT
7772002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
778
779 * config/netbsd-elf.h (LINK_SPEC): Rename to...
780 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
781 to specify program entry point.
782
e50126e8
JL
7832002-06-07 Jeff Law <law@redhat.com
784
785 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
272cdf58 786 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
e50126e8
JL
787 than creating a new register.
788 (distribute_notes): Likewise.
789 * df.c (df_reg_use_gen): Likewise.
790 (df_reg_clobber_gen): Likewise.
791 (df_ref_record): Likewise.
792 * expr.c (use_regs): Likewise.
793 * flow.c (propagate_one_insn): Likewise.
794 (mark_set_1): Likewise.
795 (mark_used_reg): Likewise.
796 * reload.c (emit_reload_insns): Likewise.
797
bc9c18c3
RS
7982002-06-07 Roger Sayle <roger@eyesopen.com>
799
800 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
801 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
802 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
803 comparison code comp can be reversed.
804
437f1df1
RS
8052002-06-07 Roger Sayle <roger@eyesopen.com>
806
807 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
808 constants last in comparisons. Optimize (x+1.0)>0.0 into the
809 equivalent x > -1.0 when -ffast-math.
810
cd24b8a4
JT
8112002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
812
813 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
814 * config/mips/t-netbsd: New file.
815
09e77dee
ZW
8162002-06-07 Zack Weinberg <zack@codesourcery.com>
817
818 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
819 options their own entries.
820 (parse_option): Clarify comment.
821 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
822 special case. Replace if/strcmp chain for -W options with
823 use of new OPT_* entries for them.
824 (cpp_handle_options): Update to match.
825 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
826 * c-decl.c: Update call to cpp_handle_option.
827
942030dc
AD
8282002-06-07 Akim Demaille <akim@epita.fr>
829
830 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
831 Whitespace changes.
832
f2846820
JL
8332002-06-07 Jeffrey Law <law@redhat.com>
834
835 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
836 on empty lists.
837
4bafaa6f
L
8382002-06-07 H.J. Lu (hjl@gnu.org)
839
840 * configure.in: Add --enable-__cxa_atexit.
841 * configure: Regenerated.
842 * config.in: Likewise.
843
844 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
845 not defined.
846
caef5b46
GDR
8472002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
848
849 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
850
ac64a17c
JT
8512002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
852
853 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
854
97459791
JM
8552002-06-07 Jason Merrill <jason@redhat.com>
856
857 * cppexp.c (num_equality_op): Use a temporary variable to work
858 around gcc 3.0.4 bug.
859
4b1d52c7
GDR
8602002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
861
862 * diagnostic.c (diagnostic_build_prefix): Tidy.
863
c70f6ed3
NB
8642002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
865
866 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
867 scan_parameters, save_replacement_text, replacement_length): New.
868 (scan_out_logical_line): Take a macro and save parameters if
869 non-NULL.
870 (_cpp_logical_line_trad): Update.
871 (_cpp_create_trad_definition): Update to handle function-like
872 macros.
873 * cpplex.c (new_buff): Update.
874 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
875 * cpphash.h: ...here.
876 (CPP_ALIGN2, _cpp_save_parameter): New.
877 * cppmacro.c (save_parameter): Rename, export.
878 (parse_params): Update.
879
aec2ac46
AJ
8802002-06-07 Andreas Jaeger <aj@suse.de>
881
882 * config/mmix/mmix.c: Remove extra broken prototype for
883 mmix_init_machine_status.
884
9f313342
GK
8852002-06-06 Geoffrey Keating <geoffk@redhat.com>
886
887 * gengtype.c: Add comments before all the routines.
888
3fa1b448
JT
8892002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
890
891 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
892 from and add t-sh64 to ${tmake_file}.
893 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
894 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
895 * config/sh/t-netbsd-sh5-32: Remove.
896 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
897 MULTILIB_ENDIAN.
898 (MULTILIB_DIRNAMES): Define.
899
0d682900
JH
900Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
901
902 * i386.md (and promoting splitters): Disable QI to SImode promoting
903 when doing so changes immediate to be 32bit.
904
905 * rtl.h (emit_*_scope): Declare.
906 * emit-rtl.c (emit_*_scope): New global functions.
907 (try_split): Copy scope.
908 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
909 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
910 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
911 noce_process_if_block, find_cond_trap): Copy scopes.
912 * recog.c (peephole2_optimize): likewise.
913
c991649c
JL
9142002-06-06 Jeffrey Law <law@redhat.com>
915
916 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
917
8a5d66c4
R
918Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
919
920 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
921
d7f8491b
RO
9222002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
923
924 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
925 ($(docdir)/gccinstall.info): New target.
926 (info): Depend on it.
927 (gccinstall.dvi): New target.
928 (dvi): Depend on it.
929 * doc/.cvsignore: Ignore new info files.
930 * doc/install.texi (@setfilename): Reflect new info filename.
931
eaeb7de8
R
932Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
933
934 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
935 on an UNSPEC.
936
0c7aeb88
NP
937Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
938
939 PR objc/6834
940 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
941 c_common_get_alias_set.
aec2ac46 942 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
0c7aeb88 943
2a496e8b
JDA
9442002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
945
946 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
947 functions.
948 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
949 * avr/avr.c (avr_output_function_epilogue): Use above to determine
950 function size.
951 * pa/pa.c (pa_output_function_prologue): Likewise.
952
2ff581c3
DM
9532002-06-05 David S. Miller <davem@redhat.com>
954
955 * integrate.c (subst_constants): Handle 'B' RTL format.
956
b2e2d0cc
EC
9572002-06-05 Eric Christopher <echristo@redhat.com>
958
959 * varasm.c (make_decl_rtl): Fix comment for removed
960 halfpic.c.
961
0f81faf6
EC
9622002-06-05 Eric Christopher <echristo@redhat.com>
963
964 * Makefile.in: Remove missed halfpic bits.
965
33005162
EC
9662002-06-05 Eric Christopher <echristo@redhat.com>
967
968 * toplev.c: Remove half-pic.
969 * config/mips/mips.c: Ditto.
970 * config/mips/mips.h: Ditto. Remove unused defines.
971 * config/mips/openbsd.h: Update comment to reflect above.
972 * config/mips/mips.md: Remove half-pic constraints.
973 * halfpic.h: Delete.
974 * halfpic.c: Ditto.
975
80081028
JL
9762002-06-05 Jeffrey Law <law@redhat.com>
977
5a9ee623
ZW
978 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
979 rejects (mem (lo_sum (reg) (unspec))), but will allow
980 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 981
cbc69f84
NB
9822002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
983
984 * cpphash.h (_cpp_create_definition): Update prototype.
985 (_cpp_push_text_context, _cpp_create_trad_definition): New.
986 ( cpp_lex_identifier_trad): New.
987 (_cpp_set_trad_context): New.
988 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
989 * cpplib.c (SEEN_EOL): Update.
990 (lex_macro_node): Update for -traditional.
991 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
992 * cppmacro.c (_cpp_create_definition): Split into
993 create_iso_definition() and _cpp_create_trad_definition().
994 (warn_of_redefinition): Update prototype; handle traditional
995 macros.
996 (_cpp_push_text_context): New.
997 * cpptrad.c (skip_whitespace, push_replacement_text): New.
998 (lex_identifier): Call ht_lookup with correct start.
999 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1000 _cpp_set_trad_context): New.
1001 (scan_out_logical_line): Update to handle changing contexts.
1002
dbf87f32
R
1003Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
1004
1005 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
1006 (shl*-*-elf*): Add.
1007 * config/sh/t-be (MULTILIB_ENDIAN): Set.
1008 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1009 * t-sh (MULTILIB_ENDIAN): Set.
1010 (MULTILIB_OPTIONS): Use it.
1011 * t-sh64 (MULTILIB_OPTIONS): Likewise.
1012 (MULTILIB_DIRNAMES): Likewise.
1013
47b69537
GDR
10142002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
1015
1016 * toplev.h (report_error_function): Remove.
1017
1018 * diagnostic.h (location_t): New datatype.
1019 (text_info): Likewise.
1020 (diagnostic_info): Likewise.
1021 (output_prefix): New macro.
1022 (diagnostic_last_function_changed): Likewise.
1023 (diagnostic_set_last_function): Likewise.
1024 (diagnostic_last_module_changed): Likewise.
1025 (diagnostic_set_last_module): Likewise.
1026 (report_diagnostic): Now macro.
1027 (diagnostic_set_info): Declare.
1028
1029 * diagnostic.c (report_problematic_module): Rename to
33005162 1030 diagnostic_repor_current_module.
47b69537
GDR
1031 (set_diagnostic_context): Remove.
1032 (count_error): Rename to diagnostic_error_count.
1033 (error_function_changed): Remove.
1034 (record_last_error_function): Likewise.
1035 (error_module_changed): Likewise.
1036 (record_last_error_module): Likewise.
1037 (context_as_prefix): Rename to diagnostic_build_prefix.
1038 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1039 (diagnostic_set_info): New function.
1040
1041 * objc/objc-act.c: #include diagnostic.h
1042 (error_with_ivar): Adjust call to count_error.
1043 (warn_with_method): Likewise.
1044 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1045
540eaea8
BW
10462002-06-05 Bob Wilson <bob.wilson@acm.org>
1047
1048 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1049 lang_hooks.types.make_type instead of make_node; set up
1050 __va_list_tag type decl.
1051 (xtensa_builtin_saveregs): Remove broken use of
1052 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1053 for saved registers; add varargs alias set.
1054
f23a084d
NB
10552002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1056
1057config:
1058 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1059 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1060 CPP_PREDEFINES and part of CPP_SPEC.
1061 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1062 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1063
3fe3a596
JH
1064Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
1065
1066 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1067
1fd9ba59
AM
10682002-06-05 Alan Modra <amodra@bigpond.net.au>
1069
1070 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1071
cea554e0
ZW
10722002-06-04 Zack Weinberg <zack@codesourcery.com>
1073
1074 * gengtype-yacc.y: Make sure all rules end with a semicolon.
1075
07232638
BW
10762002-06-04 Bob Wilson <bob.wilson@acm.org>
1077
1078 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1079 typo in function prototype and include "ggc.h" header.
1080
c4b50f1a
RH
10812002-06-04 Richard Henderson <rth@redhat.com>
1082
1083 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1084 (print_operand) ['U']: Likewise.
1085 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1086 (alpha_expand_unaligned_store_words): Likewise.
1087 (alpha_expand_builtin_vector_binop): Fix typo.
1088 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1089 umulh, and cix insns.
1090 (one_arg_builtins): Add cix builtins.
1091 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1092 (alpha_expand_builtin): Fix typo in arity.
1093 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1094 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1095 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1096 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1097 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1098 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1099 builtin_ctlz, builtin_ctpop): New.
1100 * doc/extend.texi (Alpha Built-in Functions): Update.
1101
aaab35ae
GK
11022002-06-04 Geoffrey Keating <geoffk@redhat.com>
1103
afb0f770
GK
1104 * gengtype.c (write_gc_root): Don't unnecessarily prevent
1105 global variable-length arrays being roots.
1106
aaab35ae
GK
1107 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1108 * configure.in (config_gtfiles): New variable.
1109 (all_gtfiles): Initialise from config_gtfiles.
1110 * configure: Regenerate.
1111
1ba7b414
NB
11122002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1113
1114config/i386:
1115 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1116 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1117 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1118 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1119 win32.h (CPP_SPEC): Remove cpp_cpu.
1120 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1121 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1122
135ca7b2
JJ
11232002-06-04 Janis Johnson <janis187@us.ibm.com>
1124
1125 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1126
85d69216 11272002-06-04 Jeff Law <law@redhat.com.
5a9ee623
ZW
1128 David Edelsohn <edelsohn@gnu.org>
1129 Michael Matz <matz@kde.org>
85d69216
JL
1130
1131 * sched-int.h (struct deps): New field libcall_block_tail_insn.
1132 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1133 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1134 is set, then mark the current insn as being part of a libcall
1135 scheduling group.
1136 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1137
1138 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1139 insns against the issue rate.
1140
63f4a88e
JH
1141Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
1142
1143 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1144 * final.c (final_scan_insn): Likewise.
1145 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1146 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1147 * haifa-sched.c (unlink_other_notes): Likeewise.
1148 (reemit_notes): Likewise.
1149 * print-rtl.c (print_rtx): Likewise.
1150 * sched-deps (sched-analyze): Likewise.
1151 * rtl.c (note_insn_name): Likewise.
1152 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1153 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1154 (RANGE_*): Kill.
1155
a5d1f75b
JT
11562002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1157
1158 * varasm.c (mark_constants): Handle RTX format 'B'.
1159
82eda77e
NB
11602002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1161
1162 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1163 (struct cpp_context): Add traditional fields.
1164 * cppmacro.c (paste_all_tokens, push_ptoken_context,
1165 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1166 * cpptrad.c (skip_comment, lex_identifier,
1167 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1168
589005ff
KH
11692002-06-04 Kazu Hirata <kazu@cs.umass.edu>
1170
1171 * gbl-ctors.h: Fix formatting.
1172 * gcc.c: Likewise.
1173 * gccspec.c: Likewise.
1174 * gcov.c: Likewise.
1175 * gcov-io.h: Likewise.
1176 * gcse.c: Likewise.
1177 * ggc-common.c: Likewise.
1178 * ggc.h: Likewise.
1179 * ggc-page.c: Likewise.
1180 * ggc-simple.c: Likewise.
1181 * global.c: Likewise.
1182 * graph.h: Likewise.
1183 * gthr-dce.h: Likewise.
1184 * gthr.h: Likewise.
1185 * gthr-posix.h: Likewise.
1186 * gthr-rtems.h: Likewise.
1187 * gthr-solaris.h: Likewise.
1188 * gthr-win32.h: Likewise.
1189
e2500fed
GK
11902002-06-03 Geoffrey Keating <geoffk@redhat.com>
1191
1192 Merge from pch-branch:
33005162 1193
e2500fed
GK
1194 * gengtype.h (UNION_OR_STRUCT_P): New macro.
1195 * gengtype.c (write_gc_structure_fields): Use it.
1196 (write_gc_root): Use it here too.
1197
1198 * gengtype.c (write_gc_structure_fields): Assume that lengths
1199 of typenames fit into an 'int'; don't pass a size_t to "%d" in
1200 printf.
1201 (write_gc_marker_routine_for_structure): Likewise.
1202 (write_gc_types): Likewise.
1203 (write_gc_root): Likewise.
1204
1205 * varray.h (VARRAY_CLEAR): New.
1206 (varray_clear): Prototype.
1207 * varray.c (varray_clear): New.
1208 * cselib.c (reg_values_old): New.
1209 (used_regs_old): New.
1210 (cselib_init): Use cached varrays if available to avoid
1211 generating large amounts of garbage.
1212 (cselib_finish): Don't throw away old varrays.
1213
1214 * final.c (insn_addresses_): Move out of ifdef.
1215
1216 * varray.c (uses_ggc): Make more varray kinds GCable.
1217 * varray.h (union varray_data_tag): Let gengtype see
1218 fields 'generic' and 'te'.
1219 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1220 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1221 (reg_to_stack): Don't call VARRAY_FREE.
1222 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1223 (insn_addresses_): Use gengtype to mark.
1224 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1225 pointers; handle generic pointers in unused union fields.
1226 (get_output_file_with_visibility): Include cselib.h,
1227 insn-addr.h in gtype-desc.c.
1228 * function.c (prologue): Use gengtype to mark.
1229 (epilogue): Likewise.
1230 (sibcall_epilogue): Likewise.
1231 * dependence.c: Include gt-dependence.h, ggc.h.
1232 (struct def_use): Use gengtype to mark.
1233 (struct loop): Likewise.
1234 (struct induction): Likewise.
1235 (struct dependence): Likewise.
1236 (def_use_chain): Likewise.
1237 (dep_chain): Likewise.
1238 (loop_chain): Likewise.
1239 (induction_chain): Likewise.
1240 (init_dependence_analysis): Don't free anything, just clear pointers.
1241 (build_def_use): Use GGC to allocate def_use.
1242 (add_loop): Use GGC to allocate loop.
1243 (find_induction_variable): Use GGC to allocate induction.
1244 (check_node_dependence): Use GGC to allocate induction, dependence.
1245 (dump_node_dependence): Don't free varrays.
1246 (end_dependence_analysis): Likewise.
1247 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1248 (struct elt_loc_list): Likewise.
1249 (struct elt_list): Likewise.
1250 * cselib.c: Don't include obstack.h.
1251 (hash_table): Use gengtype to mark.
1252 (reg_values): Use gengtype to mark.
1253 (used_regs): Use gengtype to mark.
1254 (cselib_obstack): Delete.
1255 (cselib_startobj): Delete.
1256 (empty_vals): Mark as deletable.
1257 (empty_elt_lists): Mark as deletable.
1258 (empty_elt_loc_lists): Mark as deletable.
1259 (new_elt_list): Use GGC to allocate struct elt_list.
1260 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1261 (clear_table): Don't delete obstack; don't unnecessarily clear
1262 deletable variables.
1263 (new_cselib_val): Use GGC to allocate struct cselib_val.
1264 (cselib_init): Don't set up obstacks. Use GGC to allocate
1265 hash table.
1266 (cselib_finish): Just clear variables, don't free anything.
1267 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1268 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1269 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1270 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1271 (gt-reg-stack.h): New rule.
1272 (gt-dependence.h): New rule.
1273 (gtype-desc.o): Add cselib.h, insn-addr.h.
1274
1275 * varray.c: Use only necessary headers.
1276 (element_size): New.
1277 (uses_ggc): New.
1278 (varray_init): Take type, not size. Use GGC if appropriate.
1279 (varray_grow): Update for change to struct varray_head_tag.
1280 Use GGC if appropriate.
1281 * varray.h (struct const_equiv_data): Use gengtype.
1282 (enum varray_data_enum): New.
1283 (union varray_data_tag): Use gengtype.
1284 (struct varray_head_tag): Use gengtype. Replace size field with
1285 enum varray_data_enum.
1286 (varray_init): Update prototype.
1287 (VARRAY_SCHED_INIT): Delete.
1288 (VARRAY_*_INIT): Update for change to varray_init.
1289 (VARRAY_SCHED): Delete.
1290 (VARRAY_PUSH_SCHED): Delete.
1291 (VARRAY_TOP_SCHED): Delete.
1292 * tree.h: Update for change to length specifier.
1293 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1294 (clone_body): Likewise.
1295 * ssa.h (ssa_definition): Use gengtype to mark.
1296 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1297 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1298 * rtl.h (struct rtvec_def): Update for change to length specifier.
1299 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1300 (struct initial_value_struct): Update for change to length specifier.
1301 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1302 (ggc_add_tree_varray_root): Delete prototype.
1303 (ggc_mark_rtx_varray): Delete prototype.
1304 (ggc_mark_tree_varray): Delete prototype.
1305 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1306 (ggc_add_tree_varray_root): Delete.
1307 (ggc_mark_rtx_varray): Delete.
1308 (ggc_mark_tree_varray): Delete.
1309 (ggc_mark_rtx_varray_ptr): Delete.
1310 (ggc_mark_tree_varray_ptr): Delete.
1311 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1312 (create_varray): Delete prototype.
1313 * gengtype.c (varrays): Delete.
1314 (create_varray): Delete.
1315 (adjust_field_type): Detect array of string pointers.
1316 (process_gc_options): Remove code to handle varray_type option.
1317 (set_gc_used_type): Remove TYPE_VARRAY case.
1318 (output_escaped_param): New.
1319 (write_gc_structure_fields): Use output_escaped_param on all
1320 parameters. Handle 'skip' with 'use_param' option. Handle
1321 arrays of strings. Remove TYPE_VARRAY handling.
1322 (write_gc_roots): Use boolean to detect 'length' option.
1323 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1324 (struct_fields): Call adjust_field_type on array fields.
1325 (type): Remove VARRAY_TYPE case.
1326 (type_option): Likewise.
1327 * gengtype-lex.l: Don't consider varray_type a keyword.
1328 * function.h: Update for change to length specifier.
1329 (free_eh_status): Delete prototype.
1330 * function.c (free_after_compilation): Don't call free_eh_status.
1331 (reorder_blocks): Don't use VARRAY_FREE.
1332 * except.c (struct eh_status): Update for change to length specifier.
1333 remove varray_type specifier.
1334 (free_eh_status): Delete.
1335 * dwarf2out.c: Include gt-dwarf2out.h.
1336 (used_rtx_varray): Use gengtype to mark, move
1337 outside ifdefs.
1338 (incomplete_types): Likewise.
1339 (decl_scope_table): Likewise.
33005162 1340 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
1341 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1342 * c-tree.h (struct lang_type): Update for change to length specifier.
1343 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1344 * c-objc-common.c: Include gt-c-objc-common.h.
1345 (deferred_fns): Mark for gengtype.
1346 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1347 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1348 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1349 (gtype-desc.o): Update dependencies.
1350 (dwarf2out.o): Add gt-dwarf2out.h.
1351 (varray.o): Update dependencies.
1352 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1353 (gt-c-objc-common.h): New rule.
1354 (gt-dwarf2out.h): New rule.
1355 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1356
1357 * doc/gty.texi (GTY Options): Correct spelling.
1358 (GGC Roots): Likewise.
1359 * Makefile.in (TEXI_CPP_FILES): New.
1360 (TEXI_GCC_FILES): New.
1361 (TEXI_GCCINT_FILES): New.
1362 (TEXI_CPPINT_FILES): New.
1363 ($(docdir)/cpp.info): Use new macros.
1364 ($(docdir)/gcc.info): Likewise.
1365 ($(docdir)/gccint.info): Likewise.
1366 ($(docdir)/cppinternals.info): Likewise.
1367 (cpp.dvi): Likewise.
1368 (gcc.dvi): Likewise.
1369 (gccint.dvi): Likewise.
1370 (cppinternals.dvi): Likewise.
1371
1372 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1373 * doc/gccint.texi (Top): Include gty.texi.
1374 * doc/gty.texi: New file.
1375
1376 * bitmap.c: Include ggc.h, gt-bitmap.h.
1377 (bitmap_ggc_free): New.
1378 (bitmap_elem_to_freelist): New.
1379 (bitmap_element_free): Use bitmap_elem_to_freelist.
1380 (bitmap_element_allocate): Allow use of GGC.
1381 (bitmap_clear): Use bitmap_elem_to_freelist.
1382 (bitmap_copy): Update for change to bitmap_element_allocate.
1383 (bitmap_set_bit): Likewise.
1384 (bitmap_operation): Update for changes elsewhere.
1385 (bitmap_initialize): Allow to create bitmaps that will use GGC.
1386 * bitmap.h (struct bitmap_element_def): Use gengtype.
1387 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
1388 (bitmap_initialize): Add extra parameter.
1389 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1390 (BITMAP_ALLOCA): Delete.
1391 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1392 (BITMAP_GGC_ALLOC): New.
1393 * Makefile.in (gtype-desc.o): Add bitmap.h.
1394 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1395 (GTFILES): Add bitmap.c.
1396 (gt-bitmap.h): New rule.
1397 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1398 * basic-block.h: Update for changes to bitmap_initialize.
1399 * except.c (exception_handler_label_map): Move into...
1400 (struct eh_status): Here.
1401 (struct eh_region): Make 'aka' GCable.
1402 (free_eh_status): Don't need to specially handle
1403 exception_handler_label_map.
1404 (add_ehl_entry): Update for changes to exception_handler_label_map.
1405 (find_exception_handler_labels): Likewise.
1406 (remove_exception_handler_label): Likewise.
1407 (maybe_remove_eh_handler): Likewise.
1408 (for_each_eh_label): Likewise.
1409 (remove_eh_handler): Allocate 'aka' using GGC.
1410 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1411 to list of includes.
1412
1413 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 1414 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
1415 (write_gc_types): Arrange for the tests with NULL to be inlined.
1416 (write_gc_roots): Update uses of procedure pointers.
1417 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1418
1419 * Makefile.in (explow.o): Add dependency on gt-explow.h.
1420 (sdbout.o): Add dependency on gt-sdbout.h.
1421
1422 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1423 (mem_attrs_htab): Likewise.
1424 (init_emit_once): Don't call ggc_add_deletable_htab.
1425 * fold-const.c (size_htab): Use gengtype to clear unused entries.
1426 (size_int_type_wide): Don't call ggc_add_deletable_htab.
1427 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1428 parameters, use them, change callers.
1429 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1430 (write_gc_roots): Handle 'if_marked' option.
1431 (main): Don't need to call set_gc_used_type any more.
1432 * ggc.h (ggc_htab_marked_p): Delete.
1433 (ggc_htab_mark): Delete.
1434 (struct ggc_cache_tab): New.
1435 (gt_ggc_cache_rtab): New declaration.
1436 * ggc-common.c (struct d_htab_root): Delete.
1437 (d_htab_roots): Delete.
1438 (ggc_add_deletable_htab): Delete.
1439 (ggc_htab_delete): Handle new htab-deleting mechanism.
1440 (ggc_mark_roots): Use new htab-deleting mechanism.
1441 * tree.c (type_hash_table): Use gengtype to clear unused entries.
1442 Make static.
1443 (init_obstacks): Don't call ggc_add_deletable_htab.
1444
1445 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1446 (struct hashed_entry): Likewise.
1447 (nst_method_hash_list): Likewise.
1448 (cls_method_hash_list): Likewise.
1449 (HASH_ALLOC_LIST_SIZE): Delete.
1450 (ATTR_ALLOC_LIST_SIZE): Delete.
1451 * objc/objc-act.c (hash_init): Use ggc to allocate
1452 nst_method_hash_list, cls_method_hash_list.
1453 (hash_enter): Use ggc to allocate; allocate one entry at a time.
1454 (hash_add_attr): Likewise.
1455 (ggc_mark_hash_table): Delete.
1456 (objc_act_parse_init): Delete.
1457 (objc_init): Delete reference to objc_act_parse_init.
1458 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
1459 obstack.h. Replace references to 'struct hash_table' with htab_t.
1460 (struct symbol_hash_entry): Replace hash header with key field.
1461 (struct file_hash_entry): Replace hash header with key field.
1462 (struct demangled_hash_entry): Replace hash header with key field.
1463 (hash_string_eq): New.
1464 (hash_string_hash): New.
1465 (symbol_hash_newfunc): Delete.
1466 (symbol_hash_lookup): Modify to use htab_t.
1467 (file_hash_newfunc): Delete.
1468 (file_hash_lookup): Modify to use htab_t.
1469 (demangled_hash_newfunc): Delete.
1470 (demangled_hash_lookup): Modify to use htab_t.
1471 (tlink_init): Modify to use htab_t.
1472 * hash.h: Delete.
1473 * hash.c: Delete.
1474 * ggc.h: Delete forward structure declarations.
1475 Delete prototypes for deleted functions.
1476 * ggc-common.c: Don't include hash.h.
1477 (ggc_add_tree_hash_table_root): Delete.
1478 (ggc_mark_tree_hash_table_entry): Delete.
1479 (ggc_mark_tree_hash_table): Delete.
1480 (ggc_mark_tree_hash_table_ptr): Delete.
1481 * gengtype.c (write_gc_structure_fields): Allow param_is option.
1482 (write_gc_marker_routine_for_structure): Use visibility of
1483 the parameter if there is one.
1484 * function.c: Replace hash.h with hashtab.h. Replace references
1485 to 'struct hash_table *' with htab_t.
1486 (struct insns_for_mem_entry): Include a plain key.
1487 (fixup_var_refs_insns_with_hash): Update to use htab_t.
1488 (insns_for_mem_newfunc): Delete.
1489 (insns_for_mem_hash): Update to use htab_t.
1490 (insns_for_mem_comp): Likewise.
1491 (insns_for_mem_walk): Likewise.
1492 * c-lang.c: Include ggc.h.
1493 * Makefile.in (OBJS): Remove hash.o.
1494 (c-lang.o): Add GGC_H.
1495 (COLLECT2_OBJS): Remove hash.o.
1496 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1497 (ggc-common.o): Remove hash.h.
1498 (function.o): Remove hash.h, add HASHTAB_H.
1499 (genautomata.o): Remove hash.h, add HASHTAB_H.
1500
1501 * varasm.c (mark_const_str_htab_1): Delete.
1502 (mark_const_str_htab): Delete.
1503 (const_str_htab_del): Delete.
1504 (const_str_htab): Use gengtype to mark.
1505 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
1506 allocate them.
1507 * tree.c (mark_tree_hashtable_entry): Delete.
1508 (mark_tree_hashtable): Delete.
1509 * tree.h (mark_tree_hashtable): Delete prototype.
1510 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1511 (ggc_mark): Likewise.
1512 (ggc_calloc): New.
1513 (htab_create_ggc): New.
1514 * ggc-common.c (ggc_calloc): New.
1515 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1516 (struct type): Add param_struct structure.
1517 * gengtype.c (param_structs): New.
1518 (adjust_field_type): Handle param_is option.
1519 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1520 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1521 (write_gc_structure_fields): Add new PARAM parameter. Update
1522 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
1523 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1524 Use it to generate function name. Update callers.
1525 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
1526 Process them.
1527 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
1528 option.
1529 (main): Define PTR as pointer-to-scalar. Don't specially
1530 mark deferred_string or ehl_map_entry.
1531 * gengtype-yacc.y (PARAM_IS): Add new token.
1532 (externstatic): Use adjust_field_type.
1533 (type_option): Add PARAM_IS.
1534 * gengtype-lex.l: Add rule for typedef of function pointers.
1535 Add rule for PARAM_IS.
1536 (IWORD): Add size_t.
1537 * except.c (exception_handler_label_map): Use gengtype to mark.
1538 (type_to_runtime_map): Likewise.
1539 (mark_ehl_map_entry): Delete.
1540 (mark_ehl_map): Delete.
1541 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1542 (t2r_mark_1): Delete.
1543 (t2r_mark): Delete.
1544 * Makefile.in (gtype-desc.o): Correct dependencies.
1545 (GTFILES): Add hashtab.h.
1546 (genautomata.o): Actually uses hashtab.h.
1547
1548 * Makefile.in (stringpool.o): Add $(GGC_H).
1549 (dwarf2asm.o): Likewise.
1550 (GTFILES): Add hashtable.h.
1551 * c-common.h (struct c_common_identifier): Use gengtype.
1552 * c-decl.h (c_mark_tree): Delete.
1553 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1554 * c-tree.h (struct lang_identifier): Use gengtype.
1555 (union lang_tree_node): New.
1556 (c_mark_tree): Delete prototype.
33005162 1557 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
1558 dwarf2_debug_hooks.
1559 * gengtype-lex.l (IWORD): Allow 'bool'.
1560 (ptr_alias): Match.
1561 * gengtype-yacc.y (ALIAS): New token.
1562 (type_option): New rule.
1563 (option): Use type_option.
1564 * gengtype.c (process_gc_options): New.
1565 (set_gc_used_type): Use it.
1566 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1567 Add new variable 't' to hold the type of the field being processed.
1568 Add more error checking. Use UNION_P when looking at 'desc' option.
1569 Handle language-specific structures containing other
1570 language-specific structures.
1571 (write_gc_types): Handle 'ptr_alias' option.
1572 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1573 * ggc-common.c (ggc_pending_trees): Delete.
1574 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1575 (ggc_mark_trees): Delete.
1576 (gt_ggc_m_tree_node): Delete.
1577 * ggc.h (ggc_pending_trees): Delete.
1578 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1579 * hashtable.h (ht_identifier): Use gengtype.
1580 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1581 * langhooks.h (struct lang_hooks): Delete mark_tree.
1582 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1583 anyway.
1584 * system.h: Poison LANG_HOOKS_MARK_TREE.
1585 * tree.c (tree_node_structure): New.
1586 * tree.h (struct tree_common): Use gengtype.
1587 (struct tree_int_cst): Likewise.
1588 (struct tree_real_cst): Likewise.
1589 (struct tree_string): Likewise.
1590 (struct tree_complex): Likewise.
1591 (struct tree_vector): Likewise.
1592 (struct tree_identifier): Likewise.
1593 (struct tree_list): Likewise.
1594 (struct tree_vec): Likewise.
1595 (struct tree_exp): Likewise.
1596 (struct tree_block): Likewise.
1597 (struct tree_type): Likewise.
1598 (struct tree_decl): Likewise.
1599 (enum tree_structure_enum): New.
1600 (union tree_node): Use gengtype, with an alias.
1601 (tree_node_structure): Prototype.
1602 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1603
1604 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
1605 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
1606 to LANG_HOOKS_FUNCTION_FINAL.
1607 * Makefile.in (GTFILES): Add bitmap.h.
1608 * except.c (struct eh_region): Mark field 'aka' to be skipped.
1609
1610 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1611 (alpha_init_machine_status): Give proper type.
1612 * Makefile.in (c-lang.o): Depend on gtype-c.h.
1613 (optabs.o): Depend on gt-optabs.h.
1614 (GTFILES): Add optabs.o.
1615 (gt-optabs.h): Add rule.
1616 * optabs.c: Include gt-optabs.h.
1617
1618 * gengtype.c (set_gc_used_type): Correct some errors in last change.
1619 (write_gc_structure_fields): If a field which should be NULL is
1620 not, abort.
1621 * c-pragma.c: Move struct align_stack and variable alignment_stack
1622 out from the ifdef.
1623
1624 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1625 * config/xtensa/xtensa.c: Include gt-cris.h.
1626 (struct machine_function): Use gengtype to mark.
1627 * config/mmix/mmix.h (struct machine_function): Use gengtype
1628 to mark.
1629 * config/cris/t-cris: Add dependencies for gt-cris.h.
1630 * config/cris/cris.c: Include gt-cris.h.
1631 (struct machine_function): Use gengtype to mark.
1632 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1633 to mark.
1634 * doc/tm.texi (Per-Function Data): Delete references to
1635 mark_machine_status.
1636 * config/ia64/ia64.c (ia64_override_options): Don't set
1637 mark_machine_status.
1638 * config/i386/i386.c (override_options): Likewise.
1639 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1640 * config/arm/arm.c (arm_init_expanders): Likewise.
1641 * config/alpha/alpha.c (override_options): Likewise.
33005162 1642 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
1643 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1644 (write_gc_structure_fields): Don't handle 'really' option.
1645 Handle 'maybe_null' option.
1646 (write_gc_types): Handle 'maybe_null' option.
1647 * function.h (struct function): Don't use "really".
1648 (mark_machine_status): Delete declaration.
1649 (mark_lang_status): Delete declaration.
1650 (gt_ggc_mr_machine_function): Delete prototype.
1651 (gt_ggc_mr_language_function): Delete prototype.
1652 * function.c (mark_machine_status): Delete.
1653 (mark_lang_status): Delete.
1654 (gt_ggc_mr_machine_function): Delete.
1655 (gt_ggc_mr_language_function): Delete.
1656 * c-tree.h (mark_c_function_context): Delete prototype.
1657 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1658 * c-decl.c (struct language_function): Rename from struct
1659 c_language_function. Update uses. Use gengtype to mark.
1660 (mark_c_function_context): Delete.
1661 * c-common.h (struct c_language_function): Rename from struct
1662 language_function.
1663 (mark_stmt_tree): Delete prototype.
1664 (c_mark_lang_decl): Delete prototype.
1665 (mark_c_language_function): Delete prototype.
1666 * c-common.c (mark_stmt_tree): Delete.
1667 (c_mark_lang_decl): Delete.
1668 (mark_c_language_function): Delete.
1669
1670 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1671 (lang_bitmap): New typedef. Use where appropriate.
1672 (struct type): Add gc_used field, lang_struct field.
1673 (UNION_P): New macro.
1674 (new_structure): New prototype.
1675 (find_structure): Remove 'pos' parameter. Change all callers.
1676 * gengtype-lex.l: Update for changes to find_structure.
1677 * gengtype-yacc.y (typedef_struct): Use new_structure.
1678 (yacc_ids): Suppress warning.
1679 (type): Use new_structure.
1680 * gengtype.c (string_type): Update for changes to struct type.
1681 (find_structure): Just find a structure, don't worry about
1682 creating one.
1683 (new_structure): New.
1684 (note_yacc_type): Use new_structure.
1685 (set_gc_used_type): New.
1686 (set_gc_used): New.
1687 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1688 (write_gc_types): Handle TYPE_LANG_STRUCT.
1689 (write_gc_marker_routine_for_structure): New.
1690 (main): Call set_gc_used. Add some calls to set_gc_used_type
1691 for places where GCC doesn't use gengtype properly yet.
1692 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1693 (gt_ggc_m_tree_node): Likewise.
1694
1695 * varasm.c (copy_constant): Call expand_constant if we hit
1696 something we can't recognise.
1697
1698 * ggc-common.c (ggc_mark_rtvec_children): Delete.
1699 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1700 (lang_mark_false_label_stack): Delete.
1701 * rtl.h (struct rtvec_def): Use gengtype to mark.
1702 * ggc.h (ggc_mark_rtvec): Delete.
1703 (gt_ggc_m_rtvec_def): Delete.
1704 (ggc_mark_nonnull_tree): Delete.
1705 (ggc_mark_rtvec_children): Delete prototype.
1706 (lang_mark_false_label_stack): Delete declaration.
1707
1708 * gengtype.h (note_yacc_type): Add prototype.
1709 * gengtype.c (note_yacc_type): New function.
1710 * gengtype-lex.l: Add lexer support for yacc files.
1711 * gengtype-yacc.y (start): Extract union from yacc files.
1712 (yacc_union): New rule.
1713 (yacc_typematch): New rule.
1714 (yacc_ids): New rule.
1715 (enum_items): Tweak for efficiency.
1716 (optionseq): Likewise.
1717
1718 * c-common.h (struct language_function): Use gengtype.
1719 (struct c_lang_decl): Likewise.
1720 * c-tree.h (struct lang_decl): Likewise.
1721 (struct lang_type): Likewise.
1722 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1723 tree language substructures.
1724
1725 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1726 ggc_mark_tree.
1727 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1728
1729 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1730
1731 * stmt.c (struct nesting): Add discriminator. Use gengtype to
1732 mark. Remove 'data.block.cleanup_ptr' field.
1733 (struct stmt_status): Use usual technique to mark struct nesting.
1734 (gt_ggc_mr_nesting_cond): Delete.
1735 (gt_ggc_mr_nesting_loop): Delete.
1736 (gt_ggc_mr_nesting_block): Delete.
1737 (gt_ggc_mr_nesting_case_stmt): Delete.
1738 (expand_start_cond): Set discriminator.
1739 (expand_start_loop): Likewise.
1740 (expand_start_null_loop): Likewise.
1741 (expand_start_bindings_and_block): Set discriminator. Don't set
1742 deleted fields.
1743 (expand_decl_cleanup): Replace 'cleanup_ptr' with
1744 &thisblock->data.block.cleanups.
1745 (expand_start_case): Set discriminator.
1746 (expand_start_case_dummy): Set discriminator.
1747
1748 * ggc-callbacks.c: Remove.
1749
1750 * gengtype.h (struct type): Add 'u.s.bitmap' field.
1751 (find_structure): Add 'pos' parameter.
1752 * gengtype-lex.l: Update callers to find_structure.
1753 * gengtype-yacc.y: Likewise.
1754 * gengtype.c (find_structure): Allow for structures to be defined
1755 in multiple language backends.
1756 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1757 (counter): Rename to gc_counter.
1758 (write_gc_structure_fields): Fail when writing out fields for
1759 an incomplete structure. Ignore arrays of scalars. Handle
1760 'tree_vec' special.
1761 (write_gc_types): Reset counter for each procedure written.
1762
1763 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1764 (free_case_nodes): Delete.
1765 (expand_end_case_type): Delete call to free_case_nodes.
1766
1767 * Makefile.in (cselib.o): Include gt-<filename>.h.
1768 (gcse.o): Likewise.
1769 (profile.o): Likewise.
1770 (alias.o): Likewise.
1771 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1772 alphabetize backend files.
1773 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1774 * alias.c: Use gengtype for roots.
1775 * c-common.h (struct stmt_tree_s): Use gengtype.
1776 * c-decl.c: Use gengtype for roots.
1777 * cselib.c: Use gengtype for roots.
1778 * expr.c: Use gengtype for roots.
1779 * fold-const.c: Use gengtype for roots.
1780 * gcse.c: Use gengtype for roots.
1781 * gengtype-lex.l: Handle typedefs of function types.
1782 Allow for empty array bounds.
1783 Allow processing to stop on initialisers.
1784 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1785 (semiequal): New rule.
1786 * gengtype.c (create_file): Tidy output files.
1787 (get_output_file_with_visibility): Fix paren warning. Fix bug
1788 involving multiple input files mapping to one output file.
1789 (write_gc_structure_fields): Skip arrays of scalars.
1790 (write_gc_types): Tidy output files.
1791 (write_gc_root): New function.
1792 (write_gc_roots): Fix bugs, add support for roots that are
1793 structures.
1794 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1795 (ggc_mark_tree_ptr): Delete.
1796 (ggc_add_rtx_root): Delete.
1797 (ggc_add_tree_root): Delete.
1798 (ggc_del_root): Delete.
1799 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1800 allocate struct initial_value_struct.
1801 * profile.c: Use gengtype for roots.
1802 * sdbout.c: Use gengtype for roots.
1803 * varasm.c (mark_weak_decls): Delete unused prototype.
1804 (mark_const_hash_entry): Delete unused function.
1805 * config/darwin-protos.h: Use gengtype for roots.
1806 (machopic_add_gc_roots): Delete.
1807 * config/arm/arm.c: Use gengtype for roots.
1808 * config/arm/arm.h: Use gengtype for roots.
1809 * config/c4x/c4x-protos.h: Use gengtype for roots.
1810 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1811 * config/d30v/d30v-protos.h: Use gengtype for roots.
1812 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1813 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1814 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1815 * config/ia64/ia64-protos.h: Use gengtype for roots.
1816 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1817 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1818 * config/m68hc11/m68hc11.c (z_reg): Make global.
1819 (z_reg_qi): Make global.
1820 (m68hc11_add_gc_roots): Delete.
1821 * config/mcore/mcore-protos.h: Use gengtype for roots.
1822 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1823 * config/mips/mips.c (mips_add_gc_roots): Delete.
1824 * config/mips/mips.h: Use gengtype for roots.
1825 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1826 * config/mmix/mmix.h: Use gengtype for roots.
1827 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1828 * config/mn10200/mn10200.h: Use gengtype for roots.
1829 * config/pa/pa.c: Use gengtype for roots, marking.
1830 (struct deferred_plabel): Use GGC, gengtype.
1831 (pa_add_gc_roots): Delete.
1832 (mark_deferred_plabels): Delete.
1833 * config/pj/pj-protos.h: Use gengtype for roots.
1834 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1835 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1836 machopic_add_gc_roots.
1837 * config/rs6000/rs6000.h: Use gengtype for roots.
1838 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1839 (gt-darwin.h): Add rule.
1840 * config/sh/sh.c: Use gengtype for roots.
1841 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1842 (gt-sh.h): Add rule.
1843 * config/sparc/sparc.c: Use gengtype for roots.
1844 (sparc_add_gc_roots): Delete.
1845 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1846 (mark_ultrasparc_pipeline_state): Delete.
1847 * config/sparc/sparc.h: Use gengtype for roots.
1848
1849 * Makefile.in (c-parse.o): Update dependencies.
1850 (c-common.o): Likewise.
1851 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1852 Add dependencies for the files they generate.
1853 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1854 * c-common.h: Likewise.
1855 * c-decl.c: Likewise.
1856 (gt_ggc_mp_binding_level): Delete.
1857 * c-lang.c: Include gtype-c.h.
1858 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1859 gt-c-parse.h.
1860 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1861 (gt_ggc_mp_align_stack): Delete.
1862 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1863 * function.c: Replace ggc_add_* uses with GTY annotations.
1864 (gt_ggc_mp_function): Delete.
1865 * function.h: Replace ggc_add_* uses with GTY annotations.
1866 * gengtype.c (lang_names): New.
1867 (NUM_BASE_FILES): New.
1868 (open_base_files): Create language base files.
1869 (startswith): New.
1870 (get_file_basename): New.
1871 (get_base_file_bitmap): New.
1872 (get_output_file_with_visibility): Rename from get_output_file.
1873 Add more mappings for various C/Objc filenames.
1874 (finish_root_table): New.
1875 (write_gc_roots): Handle dependencies and scoping properly.
1876 * gengtype.h: Add prototypes for new functions.
1877 * ggc-common.c (struct deletable_root): Delete.
1878 (deletables): Delete.
1879 (ggc_add_deletable_root): Delete.
1880 (ggc_mark_roots): No need to deal with deleted functionality.
1881 * ggc.h (ggc_add_deletable_root): Delete prototype.
1882 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1883 (gtype-objc.h): Add rule to create.
1884 * objc/config-lang.in (gtfiles): New.
1885 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1886 ggc_add_* with GTY markers. Include gtype-objc.h.
1887 (ggc_mark_imp_list): Delete.
1888 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1889 * objc/objc-lang.c: Random Whitespace Change.
1890
1891 * except.h (exception_handler_labels): Delete.
1892 (get_exception_handler_labels): New.
1893 * except.c (exception_handler_labels): Delete.
1894 (struct eh_status): Add exception_handler_labels field.
1895 (doing_eh): Don't add exception_handler_labels as root.
1896 (free_eh_status): Don't need to free exception_handler_labels.
1897 (get_exception_handler_labels): New.
1898 (find_exception_handler_labels): Update for move of
1899 exception_handler_labels.
1900 (remove_exception_handler_label): Likewise.
1901 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1902 * jump.c (rebuild_jump_labels): Likewise.
1903 * loop.c (find_and_verify_loops): Likewise.
1904 * sched-rgn.c (is_cfg_nonregular): Likewise.
1905
1906 * gengtype.c (write_gc_structure_fields): Handle variable-length
1907 TYPE_ARRAYs.
1908
1909 * varasm.c (struct weak_syms): Use GGC, gengtype.
1910 (mark_weak_decls): Delete.
1911 (weak_decls): Likewise.
1912 (add_weak): Likewise.
1913 (remove_from_pending_weak_list): Likewise.
1914 (init_varasm_once): Likewise.
1915
1916 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1917 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1918 stor-layout.c, regclass.c, and lists.c.
1919 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1920 gt-regclass.h and gt-lists.h on s-gtype.
1921 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1922 * except.c: Use gengtype for roots.
1923 * explow.c: Use gengtype for roots. Include gt-explow.h.
1924 * expr.h (init_stor_layout_once): Delete prototype.
1925 * function.c: Use gengtype for roots.
1926 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1927 * gengtype-yacc.y (start): Can also be an externstatic.
1928 (externstatic): New production.
1929 (struct_fields): Correct array bounds inversion for 2-d arrays.
1930 * gengtype.c (variables): New variable.
1931 (note_variable): New function.
1932 (get_output_file): Include libfuncs.h into gtype-desc.c.
1933 (get_output_file_name): New function.
1934 (write_gc_structure_fields): Suppress warnings.
1935 (write_gc_types): Make static.
1936 (put_mangled_filename): New function.
1937 (write_gc_roots): New function.
1938 (main): Call write_gc_roots.
1939 * gengtype.h (note_variable): Prototype.
1940 (get_output_file_name): Prototype.
1941 (write_gc_types): Delete prototype.
1942 * ggc.h: Clean up unnecessary structure predefinitions.
1943 (struct ggc_root_tab): Define.
1944 (gt_ggc_m_rtx_def): Make function, not macro.
1945 (gt_ggc_m_tree_node): Likewise.
1946 * libfuncs.h: Use gengtype for roots.
1947 * lists.c: Use gengtype for roots. Include gt-lists.h.
1948 (init_EXPR_INSN_LIST_cache): Delete.
1949 * optabs.c: Use gengtype for roots.
1950 (gt_ggc_mp_optab): Delete.
1951 * optabs.h: Use gengtype for roots.
1952 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1953 * rtl.h: Use gengtype for roots.
1954 (init_EXPR_INSN_LIST_cache): Delete prototype.
1955 * stor-layout.c: Use gengtype for roots.
1956 Include gt-stor-layout.h.
1957 (init_stor_layout_once): Delete.
1958 * toplev.c: Use gengtype for roots. Delete calls to deleted
1959 routines.
1960 * tree.c: Use gengtype for roots.
1961 * tree.h: Use gengtype for roots.
1962 * varasm.c: Use gengtype for roots.
33005162 1963
e2500fed
GK
1964 * Makefile.in (GTFILES): Add @all_gtfiles@.
1965 * configure: Regenerate.
1966 * configure.in: Construct all_gtfiles from the gtfiles definitions
1967 in config-lang.in.
1968 * gengtype-yacc.y (type): Warn about duplicate structure names.
1969 * gengtype.c (get_output_file): Handle .c files in language
1970 subdirectories.
1971
1972 * Makefile.in (GTFILES): Run gengtype on all the config files
1973 and on the target .c file.
1974 * except.c (mark_eh_region): Delete.
1975 (init_eh_for_function): Use GGC on struct eh_status.
1976 (mark_eh_status): Delete.
1977 (free_eh_status): Use GGC.
1978 (expand_eh_region_start): Use GGC to
1979 (collect_eh_region_array): Allocate last_region_number using GGC.
1980 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1981 (remove_eh_handler): Let GGC free struct eh_region.
1982 (add_call_site): Use GGC to reallocate call_site_record array.
1983 * function.c (init_machine_status): Update calling sequence.
1984 (mark_machine_status): Likewise.
1985 (mark_lang_status): Likewise.
1986 (prepare_function_start): Update init_machine_status call.
1987 (mark_function_status): Delete.
1988 (maybe_mark_struct_function): Delete.
1989 (ggc_mark_struct_function): Delete.
1990 (gt_ggc_mp_function): New.
1991 (gt_ggc_mr_machine_function): New.
1992 (gt_ggc_mr_language_function): New.
1993 (init_function_once): Use canonical names.
1994 * function.h (struct function): Use gengtype.
1995 (init_machine_status): Return the structure.
1996 (mark_machine_status): Take a 'void *'.
1997 (mark_lang_status): Likewise.
1998 * ggc-common.c (ggc_mark_trees): Use canonical name for
1999 ggc_mark_struct_function.
2000 * tree.h (ggc_mark_struct_function): Delete prototype.
2001 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2002 (alpha_init_machine_status): Likewise.
2003 (override_options): Use canonical name for alpha_mark_machine_status.
2004 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2005 * config/arm/arm.h (struct machine_function): Use gengtype.
2006 * config/arm/arm.c (arm_mark_machine_status): Delete.
2007 (arm_init_machine_status): Update calling sequence.
2008 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 2009 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
2010 calling sequence.
2011 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 2012 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
2013 calling sequence.
2014 (d30v_mark_machine_status): Delete.
2015 * config/i386/i386.c: Include gt-i386.h.
2016 (struct machine_function): Use gengtype.
2017 (ix86_init_machine_status): Update calling sequence.
2018 (ix86_mark_machine_status): Delete.
2019 (override_options): Use canonical namke for ix86_mark_machine_status.
2020 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 2021 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
2022 sequence.
2023 (ia64_mark_machine_status): Delete.
33005162 2024 (ia64_override_options): Use canonical name for
e2500fed 2025 ia64_mark_machine_status.
33005162 2026 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
2027 sequence.
2028 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2029 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2030 * gengtype.c (get_output_file): Fix warning.
2031 (main): Add prototype to suppress warning.
2032 * tree.c: Remove tree_hash_mark prototype.
2033
2034 * tree.h (init_stmt): Delete prototype.
2035 * toplev.c (lang_independent_init): Don't call init_stmt.
2036 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2037 (stmt_obstack): Delete.
2038 (POPSTACK): No need to free 'struct nesting'.
2039 (gt_ggc_mr_nesting_cond): Use canonical names.
2040 (gt_ggc_mr_nesting_loop): Use canonical names.
2041 (gt_ggc_mr_nesting_block): Use canonical names.
2042 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2043 (mark_stmt_status): Delete.
2044 (init_stmt): Delete.
2045 (clear_last_expr): Clear both last_expr_type and last_expr_value.
2046 Use it everywhere that last_expr_type was cleared.
2047 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2048 (zap_lists): Delete.
2049 * ggc.h (ggc_add_deletable_root): Prototype.
2050 (mark_stmt_status): Remove prototype.
2051 * ggc-common.c (ggc_add_deletable_root): New.
2052 (ggc_mark_roots): Handle deletable roots.
2053 * function.c (ggc_mark_struct_function): Use canonical name
2054 for mark_stmt_status.
2055 * emit-rtl.c (free_sequence_stack): New.
2056 (start_sequence): Use a freelist for sequences.
2057 (end_sequence): Likewise.
2058 (init_emit_once): Add free_sequence_stack as a deleteable root.
2059 * c-pragma.c Include gt-c-pragma.h.
2060 (struct align_stack): Use gengtype.
2061 (push_alignment): Use GGC for struct align_stack.
2062 (mark_align_stack): Delete.
2063 (gt_ggc_mp_align_stack): New.
2064 (init_pragma): Use canonical name for mark_align_stack.
2065 * c-decl.c: Include gt-c-decl.h.
2066 (struct binding_level): Use gengtype.
2067 (make_binding_level): Use GGC; handle the freelist here.
2068 (pop_binding_level): New.
2069 (pushlevel): Move code into make_binding_level.
2070 (push_label_level): Likewise.
2071 (poplevel): Move code into pop_binding_level.
2072 (pop_label_level): Likewise.
2073 (mark_binding_level): Delete.
2074 (gt_ggc_mp_binding_level): New.
2075 (c_init_decl_processing): Use canonical name for mark_binding_level.
2076 Add free_binding_level as deletable root.
2077 (mark_c_function_context): Use canonical name for mark_binding_level.
2078 * Makefile.in (c-decl.o): Add gt-c-decl.h.
2079 (c-pragma.o): Add gt-c-pragma.h.
2080 (GTFILES): Add c-decl.c and c-pragma.c.
2081 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2082
2083 * tree.c (struct type_hash): Use gengtype.
2084 (init_obstacks): Use canonical name for type_hash_mark.
2085 (type_hash_mark): Delete.
2086 Include gt-tree.h.
2087 * rtl.h (struct mem_attrs): Use gengtype.
2088 * optabs.h (struct optab): Use gengtype.
2089 * optabs.c (expand_binop): Squish signed/unsigned warning.
2090 (mark_optab): Make local, use canonical name, use autogenerated
2091 marker procedure.
2092 (init_optabs): Use canonical name for mark_optab.
2093 (new_optab): Use GGC to allocate optabs.
2094 * ggc.h: Delete mark_optab prototype.
2095 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2096 mem_attrs marker procedure.
2097 * gengtype.c (get_output_file): Include headers in gtype-desc.c
2098 explicitly rather than deducing them from file names.
2099 (write_gc_structure_fields): Handle arrays of structures.
2100 (main): Return non-zero exit code if errors occur during output.
2101 * emit-rtl.c (mem_attrs_mark): Delete.
2102 (init_emit_once): Use canonical name for mem_attrs marker procedure.
2103 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2104 (tree.o): Depend on gt-tree.h.
2105 (GTFILES): Add rtl.h, optabs.h, tree.c.
2106 (gt-tree.h): Add it to s-gtype rule.
2107
2108 * .cvsignore: Ignore gengtype flex/bison generated files.
2109 * Makefile.in (GGC_H): Add gtype-desc.h.
2110 (OBJS): Add gtype-desc.o.
2111 (GEN): Add gengtype.
2112 (STAGESTUFF): Add gengtype.
2113 (varasm.o): Add gt-varasm.h.
2114 (stmt.o): Add gt-stmt.h.
2115 (except.o): Add gt-except.h.
2116 (integrate.o): Add gt-integrate.h.
2117 (GTFILES): New.
2118 Add new rules for new files.
2119 * configure: Regenerate.
2120 * configure.in: Correct defaults.h paths.
2121 * emit-rtl.c (mark_sequence_stack): Delete.
2122 (mark_emit_status): Delete.
2123 (start_sequence): Allocate sequence structures using GGC.
2124 (end_sequence): Allocate sequence structures using GGC.
2125 * except.c: Use gengtype for various structures. Include
2126 gt-except.h.
2127 * expr.c (mark_expr_status): Delete.
2128 * function.c: Use gengtype for various structures. Include
2129 gt-function.h.
2130 (mark_function_status): Use standard gt_ggc names for marker functions.
2131 (ggc_mark_struct_function): Likewise.
2132 * function.h: Use gengtype for various structures.
2133 * gengtype-lex.l: New file.
2134 * gengtype-yacc.y: New file.
2135 * gengtype.c: New file.
2136 * gengtype.h: New file.
2137 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
2138 the standard names. Remove some now-unnecessary prototypes.
2139 * integrate.c: Use gengtype for various structures. Include
2140 gt-integrate.h.
2141 (mark_hard_reg_initial_vals): Delete.
2142 * integrate.h (mark_hard_reg_initial_vals): Delete.
2143 * stmt.c: Use gengtype for various structures. Include
2144 gt-stmt.h.
2145 (mark_case_node): Delete.
2146 (mark_goto_fixup): Delete.
2147 (mark_stmt_status): Use standard gt_ggc names for marker functions.
2148 * system.h: Define GTY to empty. In flex/bison files,
2149 don't poison malloc or realloc, instead just define them to
2150 xmalloc and xrealloc.
2151 * varasm.c: Use gengtype for various structures. Include
2152 gt-varasm.h. Use standard gt_ggc names for marker functions.
2153 (mark_pool_constant): Delete.
2154 (mark_varasm_status): Delete.
2155 (decode_rtx_const): #if 0 out non-typesafe hack.
2156
2157 * function.h (free_lang_status): Mark as obsolete.
2158 * function.c (free_lang_status): Mark as obsolete.
2159 * c-decl.c (push_c_function_context): Use GC to allocate and free
2160 struct language_function.
2161 (pop_c_function_context): Likewise.
2162 * c-common.c (mark_c_language_function): Mark struct
2163 language_function.
2164
2165 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2166 Document that the machine_function structures must be allocated
2167 using GC. Update mark_machine_status documentation.
2168 * function.h: Don't declare free_machine_status.
33005162 2169 * function.c (free_machine_status): Don't define.
e2500fed
GK
2170 (free_after_compilation): Don't call free_machine_status.
2171 (ggc_mark_struct_function): Mark f->machine. Call
2172 mark_machine_status only on non-NULL pointers.
2173 * system.h: Poison free_machine_status.
2174 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2175 struct machine_function.
2176 (xtensa_free_machine_status): Delete.
2177 (override_options): Don't set free_machine_status.
2178 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2179 free_machine_status.
2180 (rs6000_init_machine_status): Use GC on struct machine_function.
2181 (rs6000_free_machine_status): Delete.
2182 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2183 machine_function.
2184 (ia64_mark_machine_status): Likewise.
2185 (ia64_free_machine_status): Delete.
2186 (ia64_override_options): Don't set free_machine_status.
2187 * config/i386/i386.c (override_options): Don't set
2188 free_machine_status.
2189 (ix86_init_machine_status): Use GC on struct machine_function.
2190 (ix86_mark_machine_status): Likewise.
2191 (ix86_free_machine_status): Delete.
2192 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2193 machine_function.
2194 (d30v_mark_machine_status): Likewise.
2195 (d30v_free_machine_status): Delete.
2196 (d30v_init_expanders): Don't set free_machine_status.
2197 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2198 machine_function.
2199 (arm_init_machine_status): Likewise.
2200 (arm_free_machine_status): Delete.
2201 (arm_init_expanders): Don't set free_machine_status.
2202 * config/alpha/alpha.c (override_options): Don't set
2203 free_machine_status.
2204 (alpha_init_machine_status): Use GC on struct machine_function.
2205 (alpha_mark_machine_status): Likewise.
2206 (alpha_free_machine_status): Delete.
2207
2208 * varasm.c (compare_constant): Fix typo.
2209
2210 * varasm.c: Don't include obstack.h.
2211 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2212 (struct rtx_const): Give substructures names, improve formatting.
2213 (struct constant_descriptor): Delete.
2214 (struct constant_descriptor_tree): New, based on constant_descriptor.
2215 (const_hash_table): Is a hash table of trees.
2216 (mark_const_hash_entry): Is used for hashes of trees. Mark
2217 constant_descriptor_tree structure.
2218 (mark_const_str_htab_1): Mark deferred_string structure.
2219 (compare_constant): Rewrite to compare trees.
2220 (compare_constant_1): Delete.
2221 (record_constant): Delete.
2222 (record_constant_1): Delete.
2223 (output_constant_def): Use struct constant_descriptor_tree.
2224 Don't duplicate trees twice.
2225 (struct constant_descriptor_rtx): New.
2226 (struct pool_constant): Used for rtx constants.
2227 (init_varasm_status): Update for change to struct varasm_status.
2228 (mark_varasm_status): Likewise.
2229 (free_varasm_status): Delete.
2230 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2231 (record_constant_rtx): Likewise.
2232 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2233 (force_const_mem): Likewise.
2234 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2235 * function.c (free_after_compilation): Don't use free_varasm_status.
2236 * function.h: Don't prototype free_varasm_status.
2237
2238 * ggc-common.c (ggc_realloc): Handle X being NULL.
2239
2240 * ggc-common.c (ggc_realloc): New function.
2241 * ggc.h: Prototype it.
2242 * emit-rtl.c (free_emit_status): Delete.
2243 (init_emit): Allocate emit subarrays using GC.
2244 (gen_reg_rtx): Reallocate subarrays using GC.
2245 (init_emit): Use GC to allocate 'struct emit_status' and its
2246 subarrays.
2247 (mark_emit_status): Mark structure and its subarrays.
2248 * stmt.c (free_stmt_status): Delete.
2249 * expr.c (free_expr_status): Delete.
2250 * function.h: Remove prototypes for deleted functions.
2251 * function.c (free_after_compilation): Don't use deleted functions.
2252 Don't call free() on x_parm_reg_stack_loc.
2253 (free_after_parsing): Don't use free_stmt_status.
2254 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2255 (mark_function_status): Mark x_parm_reg_stack_loc.
2256
2257 * varasm.c (init_varasm_status): Use GC to allocate
2258 'struct varasm_status' and its fields x_const_rtx_hash_table
2259 and x_const_rtx_sym_hash_table.
2260 (mark_varasm_status): Mark them.
2261 (free_varasm_status): Use GC to free them.
2262 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2263 (mark_expr_status): Mark the structure itself.
2264 (free_expr_status): Use GC to free the structure.
2265 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2266 (mark_stmt_status): Mark the 'struct stmt_status' itself.
2267 (init_stmt_for_function): Allocate the structure for GC.
2268
2269 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2270 (equate_type_number_to_die): Likewise.
2271 * tree.h (TYPE_SYMTAB_DIE): New macro.
2272 (struct die_struct): Predeclare.
2273 (struct tree_type): Add field symtab.die. Add a tag
2274 to the union type of field symtab.
2275
2276 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2277 'struct rtvec_def *', not 'struct rtvec_def'.
2278
2279 * function.h (original_arg_vector): Make a real rtvec.
2280 * function.c (ggc_mark_struct_function): Adjust.
2281 * integrate.c (expand_inline_function): Adjust.
2282
b655555e
JT
22832002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2284
2285 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2286 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2287 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2288 (TARGET_VERSION_CPU): Define according to the
2289 default target.
2290 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2291 TARGET_VERSION_CPU.
2292 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2293 if TARGET_SHMEDIA64.
2294 (LINK_DEFAULT_CPU_EMUL): Define according to the
2295 default target.
2296 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2297 (SUBTARGET_LINK_SPEC): Define.
2298 (LINK_SPEC): Use SH_LINK_SPEC.
2299 (ASM_SPEC): Remove.
2300 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2301 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2302 and TARGET_SHMEDIA64 which abort, for now.
2303 * config/sh/t-netbsd-sh5: New file.
2304 * config/sh/t-netbsd-sh5-32: New file.
2305 * config/sh/t-netbsd-sh5-64: New file.
2306
6d8fd7bb
RH
23072002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2308 Richard Henderson <rth@redhat.com>
2309
2310 * config/alpha/alpha.c (reg_or_const_int_operand): New.
2311 (some_operand, input_operand): Accept CONST_VECTOR.
2312 (alpha_extra_constraint): Add 'W'.
2313 (alpha_expand_zap_mask): New.
2314 (alpha_expand_builtin_vector_binop): New.
2315 (enum alpha_builtin): New.
2316 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2317 (alpha_init_builtins, alpha_expand_builtin): New.
2318 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2319 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2320 (PREDICATE_CODES): Update.
2321 * config/alpha/alpha-protos.h: Update.
2322 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2323 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2324 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2325 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2326 (movv2si, movv2si_fix, movv2si_nofix): New.
2327 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2328 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2329 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2330 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2331 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2332 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2333 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2334 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2335 builtin_unpkbw, unpkbw): New.
2336 * doc/extend.texi (Alpha Built-in Functions): New.
2337
618939de
RH
23382002-06-03 Richard Henderson <rth@redhat.com>
2339
2340 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2341 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2342
73db7137
RH
23432002-06-03 Richard Henderson <rth@redhat.com>
2344
6933647a
RH
2345 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2346
73db7137
RH
2347 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2348 (const0_operand): New.
2349 (reg_or_fp0_operand, fp0_operand): Remove.
2350 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2351 * config/alpha/alpha-protos.h: Update.
2352 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2353 and fp0_operand with reg_or_0_operand and const0_operand.
2354
a6f7c915
DN
23552002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2356
2357 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2358
b2f02503
RS
23592002-06-03 Roger Sayle <roger@eyesopen.com>
2360
2361 * gcse.c (cprop_jump): Use single_set to get the pattern
2362 from the setcc argument.
2363
4fcc2065
GDR
23642002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
2365
33005162 2366 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
2367 diagnostic_context.
2368 (diagnostic_kind_count): Adjust definition.
2369
5204d665
JH
2370Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
2371
2372 * except.c (except.c): Do not rebuild CFG.
2373 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2374 optimization.
2375
0478a14c
JH
2376Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2377
2378 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2379 * toplev.c: Include cfglahout.h
2380 * Makefile.in (toplev.c): Add dependnecy.
2381
30efe578
NB
23822002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
2383
2384 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2385 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2386 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2387
a782515b
JT
23882002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2389
2390 * config/ns32k/netbsd.h: Update copyright years.
2391 (TARGET_OS_CPP_BUILTINS): Define.
2392 (CPP_PREDEFINES): Remove.
2393 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2394 (TARGET_CPU_CPP_BUILTINS): Define.
2395
0fb7aeda
KH
23962002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2397
589005ff 2398 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
2399 * errors.h: Likewise.
2400 * except.c: Likewise.
2401 * explow.c: Likewise.
2402 * expmed.c: Likewise.
2403 * expr.c: Likewise.
2404 * expr.h: Likewise.
2405
1c8ec18b
KH
24062002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2407
2408 * config/h8300/elf.h: Fix formatting.
2409 * config/h8300/rtems.h: Likewise.
2410
86cb04f6
JT
24112002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2412
2413 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2414
5d83269d
TT
24152002-06-02 Tom Tromey <tromey@redhat.com>
2416
2417 * fixinc/fixincl.x: Rebuilt.
2418 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2419
62f6a494
NB
24202002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2421
2422config/i370:
2423 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2424 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2425 * mvs.h: Similarly.
2426 * oe.h: Similarly.
2427
0acb0203
JH
2428Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
2429
2430 * final.c (final): Allow notes to not have computed addresses;
2431 kill no longer needed STACK_REGS ifdef.
2432
ada8d98a
RH
24332002-06-02 Richard Henderson <rth@redhat.com>
2434
2435 * gcse.c (bypass_conditional_jumps): Fix typo last change.
2436
ba4f7968
JH
2437Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2438
ada8d98a
RH
2439 * loop.c (emit_prefetch_instructions): Properly place the address
2440 computation.
ba4f7968
JH
2441
2442Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
2443
2444 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2445 (set_block_for_insn): Turn into macro.
2446 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2447 * cfglayout.c (insn_scopes): Kill.
2448 (scope_to_insns_initialize): Do not use insn_scopes.
2449 (scope_to_insns_finalize): Likewise.
2450 (duplicate_insn_chain): Likewise.
2451 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2452 * cfgrtl.c (basic_block_for_insn): Kill.
2453 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2454 (create_basic_block_structure): Use reorder_insns.
2455 (compute_bb_for_insn): Do not use basic_block_for_insn.
2456 (merge_blocks_nomove): Likewise.
2457 (update_bb_for_insn): Likewise.
2458 (verify_flow_info): Likewise.
2459 (set_block_for_insn): Kill.
2460 * combine.c (try_combine): Update gen_rtx_INSN call.
2461 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2462 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2463 scopes and BBs.
2464 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2465 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2466 Clear BB.
2467 (emit_insns_after): Simplify.
2468 (emit_copy_of_insn_after): Copy scope.
2469 * final.c (final_start_function): Lower scopes.
2470 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2471 * integrate.c (copy_insn_list): Cope scopes.
2472 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2473 * loop.c (loop_optimize): Do not care block notes.
2474 * print-rtl.c (print_rtx): Print BB.
2475 * recog.c (apply_change_group): Simplify.
2476 * rtl.c (copy_rtx): Handle 'B'.
2477 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2478 * rtl.h (Field accessors): Update indexes.
2479 * sched-ebb.c (schedule_ebbs): Do not lower notes.
2480 * sched-rgn.c (schedule_insns): Likewise.
2481 * toplev.c (rest_of_compilation): Lower notes.
2482 * unroll.c (unroll_loop): Do not care scoping notes.
2483 (copy_loop_body): Copy scopes.
2484
537fc532
NB
24852002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2486
2487config/h8300:
2488 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2489 SUBTARGET_SPEC.
2490 * rtems.h: Similarly.
2491 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2492 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2493 (TARGET_CPU_CPP_BUILTINS): Use.
2494
ab780373
RH
24952002-06-02 Richard Henderson <rth@redhat.com>
2496
2497 * alias.c: Include target.h.
2498 (mark_constant_function): Use targetm.binds_local_p instead
2499 of checking TREE_PUBLIC ourselves.
2500 * Makefile.in (alias.o): Add TARGET_H.
2501
b9305c66
NB
25022002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2503
2504 * c-lex.c: Update copyright and file description.
2505
0ac3e0c4
NB
25062002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2507
2508 * config/fr30/fr30.h: Update to new CPP macros.
2509
be3a1d46
NB
25102002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2511
2512 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2513
ceeedfc1 25142002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 2515 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
2516
2517 * c-common.c (c_common_init): Override cpplib's default
2518 warn_long_long setting.
2519 * c-lex.c (lex_number): Replace with interpret_integer,
2520 interpret_float, narrowest_unsigned_type and
2521 narrowest_signed_type, taking advantage of the new
2522 cpplib functionality.
2523 * cpperror.c (_cpp_begin_message): If a warning is turned
2524 into an error, avoid printing "warning:".
2525 * cppexp.c (cpp_num_sign_extend): New.
2526 * cppinit.c: Update comment.
2527 * cpplib.h (cpp_num_sign_extend): New.
2528 * tree.h: Update comment.
2529
27e511e0
GDR
25302002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2531
2532 * diagnostic.h (struct diagnostic_context): Add new member
33005162 2533 internal_error.
27e511e0
GDR
2534 (internal_error_function): Remove declaration.
2535 * diagnostic.c (internal_error_function): Remove definition..
2536 (internal_error): Adjust use.
2537
818b6b7f
RH
25382002-06-02 Richard Henderson <rth@redhat.com>
2539
2540 * rtl.h (CC0_P): New.
2541 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
2542 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
2543 (bypass_block): Save old dest block for dump text.
2544 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2545 Allow only true SET insns, not single_set.
2546
167143a0
GDR
25472002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2548
2549 * diagnostic.c (diagnostic_finish): Rename to output_flush.
2550 (clear_disgnostic_info): Rename to output_clear_data. Use false
2551 instead of 0 for boolean value.
2552 Adjust function call throughout.
2553
eae4bc56
JH
2554Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2555
2556 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2557 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2558
9eb404a0
NB
25592002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2560
2561 * d30v.h (CPP_PREDEFINES): Replace with
2562 (TARGET_CPU_CPP_BUILTINS): New.
2563
53e8b0b8
RS
25642002-06-02 Roger Sayle <roger@eyesopen.com>
2565
2566 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2567
92e34b67
JH
2568Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
2569
2570 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2571
e7e9d242
RH
25722002-06-02 Richard Henderson <rth@redhat.com>
2573
2574 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2575
9af145ae
MM
25762002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2577
2578 Support for C++ constructors/destructors.
2579 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2580 instead of looping if main() returns.
2581 (asm_file_start): Output global symbols that cause .data and .bss
2582 initialization code to be linked in, unconditionally for now.
2583 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2584 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2585 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2586 (LIBSTDCXX): New.
2587 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2588 (__tablejump__): New.
2589 (__do_copy_data, __do_clear_bss): New.
2590 (__do_global_ctors, __do_global_dtors): New.
2591 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2592 _ctors, _dtors.
2593
0d66ad57
NB
25942002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2595
2596 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2597 (CPP_SPEC, CPP_PREDEFINES): Kill.
2598 * c4x/rtems.h (CPP_PREDEFINES): Kill.
2599 (TARGET_OS_CPP_BUILTINS): New.
2600
5c856b23
JH
2601Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
2602
2603 * Makefile.in (tracer.o): New.
2604 * params.def (TRACER_*): New options.
2605 * rtl.h (tracer): Declare.
2606 * timevar.def (TV_TRACER): New.
2607 * toplev.c (dump_file_index): Add DFI_tracer.
2608 (dump_file_info): Add tracer.
2609 (flag_tracer): New.
2610 (lang_indepdenent_options): Add tracer.
2611 (rest_of_compilation): Call tracer.
2612 * tracer.c: New file.
2613 * invoke.texi (-ftracer): Document.
2614 (--param tracer-*): Document.
2615
e2405951
DB
26162002-06-01 Daniel Berlin <dberlin@dberlin.org>
2617
2618 * tree-inline.c (expand_call_inline): Make the statement
33005162 2619 expression we generate have a COMPOUND_STMT.
e2405951 2620
0e3f0221
RS
26212002-06-01 Roger Sayle <roger@eyesopen.com>
2622
2623 * gcse.c (cprop_cc0_jump): Function deleted.
2624 (cprop_jump): Take an additional argument which is the possibly
2625 NULL cc setting insn immediately before the conditional jump.
2626 When a MODE_CC set is present, substitute it into the JUMP_INSN
2627 before attempting the constant propagation.
2628 (cprop_insn): Recognize cc setters followed by conditional jumps
2629 as a special case. Use cprop_jump instead of cprop_cc0_jump.
2630 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
2631 (find_bypass_set): New function based upon find_avail_set used by
2632 cprop, but finds constant expressions available at the end of
2633 basic blocks.
2634 (bypass_block): New function. Given a basic block that begins
2635 with a conditional jump and multiple incoming edges, perform
2636 the jump bypass optimization.
2637 (bypass_conditional_jumps): New function. Call bypass_block with
2638 each suitable basic block in the CFG using a simple single pass.
2639
378393da
RS
26402002-06-01 Roger Sayle <roger@eyesopen.com>
2641
2642 * tree.c (real_minus_onep): New function to test for -1.0.
2643 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
2644
01c58f26
RS
26452002-06-01 Roger Sayle <roger@eyesopen.com>
2646
2647 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2648 and "!p && !q" into "(p|q) == 0" under suitable conditions.
2649
91b12472
AJ
26502002-06-01 Andreas Jaeger <aj@suse.de>
2651
2652 * cppexp.c (cpp_classify_number): Cast precission to int for
2653 correct printf format.
2654
01e9ae86
MM
26552002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
2656
2657 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2658 expected, but don't really exist: atmega83, atmega85, attiny10.
2659 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2660 emulations for all devices.
2661 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2662 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2663
be1e06df
KH
26642002-06-01 Kazu Hirata <kazu@cs.umass.edu>
2665
2666 * config/h8300/h8300-protos.h: Add a prototype for
2667 h8300_shift_needs_scratch_p.
2668 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2669 * config/h8300/h8300.h (OK_FOR_R): New.
2670 (OK_FOR_S): Likewise.
2671 (OK_FOR_T): Likewise.
2672 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2673 * config/h8300/h8300.md (anonymous shift patterns): Use
2674 constraints R, S, and T.
2675
2ecfd709
ZD
2676Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2677
2678 * basic-block.h (struct basic_block_def): New field loop_father.
2679 (BB_VISITED): New flag.
2680 (struct loop): New field pred, removed field shared.
2681 (struct loops): New field parray.
2682 (LOOP_EXITS_DOMS): Removed.
2683 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2684 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2685 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2686 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2687 verify_loop_structure): Declare.
2688 * cfg.c (entry_exit_blocks): Initialize loop_father field.
2689 * cfganal.c (dfs_enumerate_from): New function.
2690 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2691 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2692 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2693 flow_loop_dump, flow_loops_dump, flow_loops_free,
2694 flow_loop_tree_node_add, flow_loop_level_compute,
2695 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2696 flow_loop_outside_edge_p): Modified for new infrastructure.
2697 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2698 redirect_edge_with_latch_update, flow_loop_free): New static functions.
2699 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2700 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2701 find_common_loop, verify_loop_structure, loop_latch_edge,
2702 loop_preheader_edge): New functions.
2703 (flow_loops_cfg_dump): Do not show dominators, as this information
2704 does not remain up to date long.
2705 (flow_loops_find): Store results in new format.
2706 * predict.c (propagate_freq, estimate_probability,
2707 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2708 infrastructure.
2709
d9763749 27102002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 2711
d9763749
AL
2712 * except.c (nothrow_function_p): Walk epilogue delay list
2713 checking the insn, not the chain for potential throws.
91b12472 2714
1e730c5c
ZW
27152002-05-31 Zack Weinberg <zack@codesourcery.com>
2716
2717 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2718 (install): Refer to install-cpp directly.
2719 (uninstall-cpp): Folded into uninstall rule.
2720 * configure.in: Delete all code relating to --disable-cpp.
2721 * configure: Regenerate.
2722 * config/t-install-cpp: Delete.
2723
6f9b006d
RH
27242002-05-31 Richard Henderson <rth@redhat.com>
2725
2726 * configure.in (HAVE_AS_TLS): Add alpha tests.
2727 * configure: Rebuild.
2728 * config/alpha/alpha.c (TARGET_AS_TLS): New.
2729 (alpha_tls_size, alpha_tls_size_string): New.
2730 (overide_options): Set it. Always install machine_status hooks.
2731 (input_operand): Accept got tls predicates.
2732 (local_symbol_p): Merge into ...
2733 (local_symbolic_operand): ... here. Reject tls symbols.
2734 (global_symbolic_operand): Likewise.
2735 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2736 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2737 (tp16_symbolic_operand, tp32_symbolic_operand): New.
2738 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2739 (alpha_encode_section_info): Handle TLS symbols.
2740 (alpha_strip_name_encoding): Likewise.
2741 (alpha_legitimate_address_p): Likewise.
2742 (alpha_legitimize_address): Likewise.
2743 (alpha_expand_mov): Early exit to avoid nop moves.
2744 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
2745 (alpha_init_machine_status, alpha_mark_machine_status,
2746 alpha_free_machine_status): Always define.
2747 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2748 (print_operand, print_operand_address): Add TLS relocs.
2749 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2750 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2751 (TARGET_SWITCHES): Add -mtls-kernel.
2752 (alpha_tls_size, alpha_tls_size_string): New.
2753 (TARGET_OPTIONS): Add -mtls-size=.
2754 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2755 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2756 (ASM_OUTPUT_LABELREF): Skip %.
2757 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2758 (PREDICATE_CODES): Update.
2759 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2760 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2761 UNSPEC_TP, UNSPECV_SET_TP): New.
2762 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2763 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2764 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2765 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2766 (call_value_osf_2_er): Accept anything as op4.
2767 * config/alpha/alpha-protos.h: Update.
2768 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2769
39e5db1a
ZW
27702002-05-31 Zack Weinberg <zack@codesourcery.com>
2771
2772 * cppinit.c (append_include_chain): Always pay attention to
2773 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2774 marker on argument.
2775
41077ce4
KH
27762002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2777
2778 * target.h: Fix formatting.
2779 * timevar.h: Likewise.
2780 * tlink.c: Likewise.
2781 * toplev.c: Likewise.
2782 * toplev.h: Likewise.
2783 * tree.c: Likewise.
2784 * tree-dump.h: Likewise.
2785 * tree.h: Likewise.
2786 * tree-inline.h: Likewise.
2787 * unroll.c: Likewise.
2788 * unwind-dw2.c: Likewise.
2789 * unwind-dw2-fde.c: Likewise.
2790 * unwind-dw2-fde-glibc.c: Likewise.
2791 * unwind-dw2-fde.h: Likewise.
2792 * unwind.h: Likewise.
2793 * unwind-sjlj.c: Likewise.
2794 * varasm.c: Likewise.
2795 * varray.h: Likewise.
2796 * vmsdbg.h: Likewise.
2797 * vmsdbgout.c: Likewise.
2798 * xcoffout.h: Likewise.
2799
b2e426a0
IS
28002002-05-31 Igor Shevlyakov <igor@microunity.com>
2801
1e730c5c 2802 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
2803 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2804
8b968bd1
MW
28052002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2806
2807 * gcc.c (cpp_unique_options): Remove "-d" options.
2808 (cpp_debug_options): New spec string.
2809 (default_compilers): Use it.
2810 * objc/lang-specs.h: Likewise.
2811
5c35940c
NN
28122002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
2813
1e730c5c 2814 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
2815 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2816 * gcc/mklibgcc.in: Likewise.
2817 * gcc/config/arc/t-arc: Likewise.
2818 * gcc/configure.in: Likewise.
2819 * gcc/configure: Regenerate.
2820
8b496ceb
SS
28212002-05-31 Stan Shebs <shebs@apple.com>
2822 Turly O'Connor <turly@apple.com>
2823
2824 * c-decl.c (struct binding_level): Change int field n_incomplete
2825 to tree list incomplete_list.
2826 (clear_binding_level): Init field with NULL.
2827 (pushdecl): Add incomplete type to list.
2828 (mark_binding_level): Mark the incomplete list.
2829 (finish_struct): Scan the incomplete list for types instead
2830 of all decls in the current binding level.
2831
4722213d
JDA
28322002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2833
2834 * pa.c (output_millicode_call): Add missing '%' characters.
2835 (output_call): Likewise.
2836
1086fcb1
DE
28372002-05-31 David Edelsohn <edelsohn@gnu.org>
2838
2839 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2840 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2841
afdfb380 28422002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 2843
afdfb380
AL
2844 * varasm.c (mark_constant_pool): Walk epilogue delay list
2845 checking the insn, not the chain for potential constants.
1e730c5c 2846
f2df45f6
R
2847Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2848
2849 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2850
91ea38f9
JH
2851Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2852
2853 * i386.c (classify_argument): Properly handle base types.
2854
2855 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2856 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2857 registers.
2858
10d1bb36
JH
2859Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2860
2861 * gcse.c (gcse_emit_move_after): New.
2862 (pre_delete, hoist_store): Use it.
2863
2864 * reload1.c (emit_input_reload_insns): Use constrain_operands
2865 instead of constraint_accepts_reg_p to verify optimization.
2866 (constraint_accepts_reg_p): Kill
2867
2868 * reload1.c (reload_cse_delete_noop_set): Kill.
2869 (reload_cse_simplify): use delte_insn_and_edges.
2870
8a72fb76
ZD
28712002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2872
2873 * cfgloop.c (flow_loops_find): Initialize first and last fields
2874 correctly.
2875
a9da2e5b
NB
28762002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2877
2878 * c-common.c (builtin_define_std): Correct logic.
2879
6248c4dd
JDA
28802002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2881
2882 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2883 (output_call): Likewise.
2884
d499455b
JDA
28852002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2886
2887 * pa.c: Move output.h include after tree.h include.
2888 (pa_asm_output_mi_thunk): Constify identifier lab.
2889
2eb2901a
JT
28902002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2891
2892 * config/ns32k/ns32k.h: Define named constants for the
2893 bits in target_flags and use them.
2894 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2895
806bf413
JDA
28962002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2897
2898 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2899 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2900 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2901 default scheduling model.
2902 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2903 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2904 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2905 * doc/install.texi (hppa*-*-*): Document default scheduling.
2906
6d8d2bbc
JDA
29072002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2908
2909 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2910
c8eb9785
JT
29112002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2912
2913 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2914 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2915 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2916 netbsd.h, or netbsd-aout.h.
2917
6e2e5b6a
JT
29182002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2919
2920 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2921 whitespace in __ns32000__ case.
2922
00182e1e
AH
29232002-05-31 Aldy Hernandez <aldyh@redhat.com>
2924
1e730c5c
ZW
2925 * expr.c (expand_expr): Output partially zeroed out vectors with
2926 output_constant_def.
00182e1e 2927
b4eb03fe
JT
29282002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2929
2930 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2931 (sh-*-netbsdelf*)
2932 (shl*-*-netbsdelf*): New targets.
2933 * config/sh/netbsd-elf.h: New file.
8fd0df91 2934 * config/sh/t-netbsd: New file.
b4eb03fe 2935
261376e7
RH
29362002-05-30 Richard Henderson <rth@redhat.com>
2937 Eric Botcazou <ebotcazou@multimania.com>
2938
2939 PR optimization/6822
2940 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2941 to unsigned int for op1 comparisons. Use gen_int_mode.
2942
ce60bf25
EB
29432002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2944
2945 * expmed.c (const_mult_add_overflow_p): New.
2946 * expr.h: Declare it.
2947 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2948 Don't eliminate the biv if the giv has a constant multiplier and
2949 the rhs argument of the comparison does satisfy the predicate.
2950 Use expand_mult_add to compute the replacement constant.
2951
d18b1ed8
OS
29522002-05-30 Osku Salerma <osku@iki.fi>
2953
2954 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2955 (c_common_get_alias_set): Handle it.
2956 * doc/extend.texi: Document it.
2957
a7943381
RH
29582002-05-30 Richard Henderson <rth@redhat.com>
2959
2960 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2961 * toplev.c (process_options): Don't check it.
2962 * doc/tm.texi: Don't document it.
2963 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2964 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2965 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2966 frame pointer optimization if current_function_profile.
2967
e11e816e
KH
29682002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2969
2970 * langhooks.c: Fix formatting.
2971 * langhooks.h: Likewise.
2972 * lcm.c: Likewise.
2973 * libgcc2.c: Likewise.
2974 * lists.c: Likewise.
2975 * local-alloc.c: Likewise.
2976 * loop.c: Likewise.
2977 * loop.h: Likewise.
2978
29792002-05-30 Marc Espie <espie@openbsd.org>
2980
2981 * config.gcc (sparc64-*-openbsd*): New.
2982 * config/sparc/openbsd1-64.h: New.
2983 * config/sparc/openbsd64.h: New.
91f0fcee 2984
d35dfca9
JL
29852002-05-30 Jeff Law <law@redhat.com>
2986
2987 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2988 a dead insn with a REG_RETVAL note when the entire libcall is not
2989 dead and remove the associated REG_LIBCALL note at the same time.
2990
81b40b72
R
2991Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2992
2993 * lcm.c (output.h): #include.
2994 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2995 as an ordinary block.
2996 (optimize_mode_switching): Don't pretend that the exit block is
2997 an ordinary block, or handle sucessors of entry block specially.
2998 Instead, split edges from entry block and to exit block, and
2999 put a computing definition on the thus gained post-entry-block,
3000 and a need on the pre-exit-block.
3001
c8ea9a0f
JH
3002Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3003
3004 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3005 * rtl.texi: Document 'B'
3006
348f0869
JT
30072002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3008
3009 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3010 at run-time.
3011 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3012
9a171fcd
AH
30132002-05-30 Aldy Hernandez <aldyh@redhat.com>
3014
1e730c5c
ZW
3015 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3016 const0_rtx instead of NULL_RTX when in error.
3017 (altivec_expand_abs_builtin): Same.
3018 (rs6000_expand_binop_builtin): Same.
3019 (altivec_expand_predicate_builtin): Same.
3020 (altivec_expand_stv_builtin): Same.
3021 (rs6000_expand_ternop_builtin): Same.
3022 (altivec_expand_builtin): Same.
9a171fcd 3023
62a35e60
DM
30242002-05-29 David S. Miller <davem@redhat.com>
3025
3026 * rtl.h (clear_emit_caches): Delete.
3027 * integrate.c (output_inline_function): Don't call it.
3028 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3029 (clear_emit_caches): Delete definition.
3030 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3031
cbc39da8
HPN
30322002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
3033
3034 * config/mmix/mmix.c: Include real.h.
3035 (mmix_constant_address_p): Remove redundant test before switch.
3036
50efa737
JT
30372002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3038
3039 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3040 only if not already defined.
3041
2e760b15
KH
30422002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3043
3044 * config/h8300/h8300-protos.h: Remove prototypes for
3045 ok_for_bclr and small_power_of_two.
3046 * config/h8300/h8300.c (small_power_of_two): Remove.
3047 (ok_for_blcr): Likewise.
3048 (fix_bit_operand): Make WHAT deal with an integer instead of a
3049 constraint character.
3050 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3051 (CONST_OK_FOR_P): Likewise.
3052 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3053 CONST_OK_FOR_P any more.
3054 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3055 of fix_bit_operand.
3056 (iorqi3): Likewise.
3057 (xorqi3): Likewise.
3058
e1c293ae
JT
30592002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3060
3061 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3062 (CPP_PREDEFINES): Make sure this is undefined.
3063 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3064 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
3065 or -U__MIPSEB__ before defining one or the other. Instead,
3066 use %(subtarget_endian_default) if neither -EB nor -EL are
3067 specified.
3068 (SUBTARGET_EXTRA_SPECS): Define.
3069 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
3070 %(netbsd_cpp_spec).
3071
fde6d81f
HPN
30722002-05-29 Hans-Peter Nilsson <hp@axis.com>
3073
3074 * doc/md.texi (Patterns): Note pattern condition pitfall
3075 for unnamed insn.
3076
92898235
AH
30772002-05-29 Aldy Hernandez <aldyh@redhat.com>
3078
1e730c5c
ZW
3079 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3080 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
3081 ternary operations from here...
3082 (rs6000_expand_builtin): ...to here.
3083 New argument expandedp.
3084 Change all instances of altivec_expand_binop_builtin to
3085 rs6000_expand_binop_builtin.
3086 (altivec_expand_unop_builtin): Rename to
3087 rs6000_expand_unop_builtin.
3088 (altivec_expand_binop_builtin): Rename to
3089 rs6000_expand_binop_builtin.
3090 (altivec_expand_ternop_builtin): Rename to
3091 rs6000_expand_ternop_builtin.
92898235 3092
67adf6a9
RH
30932002-05-29 Richard Henderson <rth@redhat.com>
3094
3095 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3096 (TARGET_BI_ARCH): Likewise.
3097 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3098 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3099 (TARGET_64BIT_DEFAULT): Default to 0.
3100 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3101
145aacc2
RH
31022002-05-29 Richard Henderson <rth@redhat.com>
3103
3104 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3105 (get_pc_thunk_name): New.
3106 (output_set_got): Use it.
3107 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3108 into linkonce sections.
3109
a5b49bbc
JT
31102002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3111
3112 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3113 (CPP_PREDEFINES): Make sure this is undefined.
3114 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3115 (CPP_SUBTARGET_SPEC): Don't provide different versions for
3116 default-32 and default-64. Just always use %(netbsd_cpp_spec).
3117 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3118 cpp_subtarget_spec64. Add netbsd_cpp_spec.
3119 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3120 (CPP_PREDEFINES): Make sure this is undefined.
3121 (SUBTARGET_EXTRA_SPECS): Define.
3122 (CPP_SPEC): Use %(netbsd_cpp_spec).
3123
54374491
JL
31242002-05-29 Jeff Law <law@redhat.com>
3125
ae02eae8
JL
3126 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3127
b862c2aa
JL
3128 * flow.c (propagate_one_insn): Do not remove a dead insn if it
3129 contains a REG_RETVAL note.
3130
d10791ba
JL
3131 * haifa-sched (sched_analyze): Remove another useless clearing
3132 of SCHED_GROUP_P I missed yesterday.
3133
54374491
JL
3134 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3135 * pa.c (pa_asm_output_mi_thunk): New function.
3136 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3137
92c392e6
NB
31382002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3139 Marek Michalkiewicz <marekm@amelek.gda.pl>
3140
3141 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3142 (avr_asm_only_p): Make non-static.
3143 (enum avr_arch): Remove.
3144 (avr_arch_types): New.
3145 (avr_mcu_types): Update.
3146 (avr_override_options): Use avr_arch_types table instead of switch.
3147 * avr.h (CPP_PREDEFINES): Die.
3148 (avr_base_arch_macro, avr_extra_arch_macro): New.
3149 (TARGET_CPU_CPP_BUILTINS): New.
3150 (CPP_SPEC, EXTRA_SPECS): Simplify.
3151 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3152 CPP_AVR5_SPEC): Die.
3153
4528173e
JT
31542002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3155
3156 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3157 NETBSD_OS_CPP_BUILTINS_AOUT.
3158 (SUBTARGET_EXTRA_SPECS): Define.
3159 (CPP_SPEC): Use %(netbsd_cpp_spec).
3160
bd09bdeb
RH
31612002-05-29 Richard Henderson <rth@redhat.com>
3162
3163 * config/i386/i386.c (ix86_output_function_epilogue): New.
3164 (TARGET_ASM_FUNCTION_EPILOGUE): New.
3165 (pic_label_name): Remove.
3166 (pic_labels_used): New.
3167 (ix86_asm_file_end): Emit one pc load stub for each register used.
3168 (output_set_got): Generate deep pc load to any register.
3169 (ix86_select_alt_pic_regnum): New.
3170 (ix86_save_reg): Don't save pic register if we can find a valid
3171 call-clobbered replacement.
3172 (ix86_expand_prologue): If we found a valid replacement, renumber
3173 pic_offset_table_rtx.
3174 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3175 pic_offset_table_rtx after reload.
3176 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3177 * config/i386/i386.md (set_got): Make insn, not expander.
3178 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3179
002ff5bc
RH
31802002-05-29 Richard Henderson <rth@redhat.com>
3181
3182 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3183 alignment for alloca.
3184
edfe8595
RH
31852002-05-29 Richard Henderson <rth@redhat.com>
3186
3187 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3188 (print_operand_address): Only add rip for symbolic addresses
3189 for which we do not have another relocation type.
3190
cd7714ee
JT
31912002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3192
3193 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3194 (EXTRA_SPECS): Add netbsd_cpp_spec.
3195 (CPP_SPEC): Use %(netbsd_cpp_spec).
3196 (CPP_PREDEFINES): Remove.
3197 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3198 (EXTRA_SPECS): Define.
3199 (CPP_SPEC): Use %(netbsd_cpp_spec).
3200 (CPP_PREDEFINES): Remove.
3201
8dc901de
NB
32022002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3203
3204 PR preprocessor/6844
3205 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3206 NUL.
3207
2274b31a
EC
32082002-05-29 Eric Christopher <echristo@redhat.com>
3209
3210 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3211 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3212
5c7666c1
NC
32132002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
3214
3215 * config/fr30/fr30.md: Remove previous restriction on splits.
3216 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 3217 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
3218 as the assembler does not support ".bss".
3219
45beef47
JT
32202002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3221
3222 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3223 (CPP_PREDEFINES): Remove.
3224 (SUBTARGET_EXTRA_SPECS): Define.
3225 (CPP_SPEC): Use %(netbsd_cpp_spec).
3226 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3227 (CPP_PREDEFINES): Remove.
3228 (SUBTARGET_EXTRA_SPECS): Define.
3229 (CPP_SPEC): Use %(netbsd_cpp_spec).
3230 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3231 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3232 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3233 Add netbsd_cpp_spec.
3234 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3235
cd7ab83f
NB
32362002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3237 Zack Weinberg <zack@codesourcery.com>
3238
3239 * cppexp.c (cpp_num): Move to cpplib.h.
3240 (CPP_ERROR): Remove.
3241 (interpret_float_suffix, interpret_int_suffix): New.
3242 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3243 (cpp_classify_number, cpp_interpret_integer): New.
3244 (interpret_number): Remove.
3245 (eval_token): Update to use new routines.
3246 * cpphash.h (cpp_num_part): Move to cpplib.h.
3247 * cppinit.c (cpp_post_options): Set warn_long_long.
3248 * cpplib.h (struct cpp_options): Add warn_long_long.
3249 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3250 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3251 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3252 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3253 cpp_interpret_integer): New.
3254
61a8515c
JS
32552002-05-29 Joel Sherrill <joel@OARcorp.com>
3256
3257 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3258
53a428b5
JT
32592002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3260
3261 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
3262 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3263 (CPP_SUBTARGET_SPEC): Define.
3264 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
3265 (CPP_SPEC): Remove.
3266
45b1f7c7
CL
32672002-05-29 Chris Lattner <sabre@nondot.org>
3268
1e730c5c
ZW
3269 * ssa.c (rename_insn_1): Rename uses of undefined registers to
3270 prevent confusion if/when the register is defined.
45b1f7c7 3271
049746c2
HPN
32722002-05-29 Hans-Peter Nilsson <hp@axis.com>
3273
3274 PR target/6838
3275 * config/cris/cris.md: Fix typos and thinkos in comments.
3276 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3277 second alternative.
3278 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3279 ("*mov_sideqi_mem"): Similar, but for operand 3.
3280 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3281 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3282 Remove spurious mode specifier on operand 2.
3283
4d4d89e2
KH
32842002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3285
3286 * config/h8300/h8300-protos.h: Remove the prototype for
3287 o_operand.
3288 Add prototypes for single_one_operand and single_zero_operand.
3289 * config/h8300/h8300.c (o_operand): Remove.
3290 (single_one_operand): New.
3291 (single_zero_operand): Likewise.
3292 (print_operand): For 'V' operand, and the operand with 0xff.
3293 For 'V' and 'W' operands, do not and the bit position with 7.
3294 * config/h8300/h8300.md (various anonymous patterns): Replace
3295 use of exact_log2 with single_one_operand/single_zero_operand.
3296
abd6ddec
UW
32972002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3298
3299 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3300
da06d85a
UW
33012002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3302
3303 * config/s390/s390.c (legitimate_pic_operand_p): Do not
3304 accept symbolic LARL operands.
2274b31a 3305 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 3306 epilogue insns.
2274b31a 3307
f8766020
HP
33082002-05-29 Hartmut Penner <hpenner@de.ibm.com>
3309
3310 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 3311 input registers as used.
f8766020 3312
66edd3b4
RH
33132002-05-28 Richard Henderson <rth@redhat.com>
3314
3315 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3316 not current_function_uses_pic_offset_table and
3317 current_function_uses_const_pool; examine current_function_profile.
3318 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
3319 input to blockage if needed.
3320 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3321 (legitimize_pic_address): Likewise. Set regs_ever_live for
3322 pic_offset_table_rtx when invoked during reload.
3323 * config/i386/i386.h (FINALIZE_PIC): Remove.
3324 * config/i386/i386.md (tablejump): Reformat. Do not set
3325 current_function_uses_pic_offset_table.
3326 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3327 (blockage): Accept anything as operand 0.
3328
52f4fff6
JT
33292002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3330
3331 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3332 common CPP built-ins for all NetBSD a.out targets.
3333 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3334 common CPP built-ins for all NetBSD ELF targets.
3335 * config/netbsd.h: Add missing notice.
3336 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3337 for all NetBSD targets.
3338 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3339 for all NetBSD targets using an LP64 code model.
3340 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3341 NetBSD targets.
3342
e0e577a2
RH
33432002-05-28 Richard Henderson <rth@redhat.com>
3344
3345 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3346 update if UPDATE_LIFE_LOCAL.
3347
33482002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
3349
3350 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3351
f1a58d92 3352Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 3353 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
3354
3355 config/sh reorganization to factor out endianness and coff:
3356
3357 * config/sh/little.h: New file.
1e730c5c
ZW
3358 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3359 defined, define to 0 to select big-endian.
f1a58d92 3360 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
3361 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3362 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3363 * config/sh/t-be: New file.
3364 * config/sh/t-le: New file.
f1a58d92
R
3365
3366 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3367 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3368 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3369 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3370 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3371 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3372 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3373 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3374 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3375 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3376 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3377 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3378 (LINK_SPEC): Define to SH_LINK_SPEC.
3379 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3380 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3381 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3382 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3383 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3384 * config/sh/coff.h: New file.
3385 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3386 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3387 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3388 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3389 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3390 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3391 (PTRDIFF_TYPE): Likewise.
3392 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3393 (CPP_PREDEFINES): Don't define.
3394 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3395 (LINK_SPEC): Define to SH_LINK_SPEC.
3396 (LINK_EMUL_PREFIX): Redefine.
3397 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3398 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3399 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3400 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3401 (TARGET_OS_CPP_BUILTINS): Define.
3402 (TARGET_DEFAULT): Redefine.
3403 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3404 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3405 (LINK_SPEC): Don't redefine.
3406 (LINK_DEFAULT_CPU_EMUL): Redefine.
3407 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3408 * sh.c (sh_asm_named_section): Don't declare / define.
3409 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3410 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3411 (sh64-*-elf* tm_file): Likewise.
3412 (sh-*-rtemself* tm_file): Likewise.
3413 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
3414 (sh-*-linux* tmake_file): Add sh/t-le.
3415 (sh-*-rtems* tm_file): Add sh/coff.h
3416 (sh-*-* tm_file): Likewise.
3417
3418Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3419
3420 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3421 CONSTANT_POOL_ADDRESS_P.
3422
3423 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3424
d10791ba 34252002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
3426 Jeff Law <law@redhat.com>
3427
64de6c0a
DE
3428 * optabs.c (expand_binop): Fix nwords sign warnings.
3429 generate pseudo for add_optab.
3430
33a3dfc4
DE
3431 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3432 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3433
972957ba 34342002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 3435
2274b31a 3436 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
3437 inherited from gas.h.
3438 (ASM_QUAD): Undef. OpenBSD does not support it.
3439
cc92b8ab
DS
34402002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
3441
3442 * doc/install.texi (binaries): Change mingw binaries
3443 link to www.mingw.org.
3444
f8088d55
ZD
34452002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3446
3447 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3448
0b7ae565
RH
34492002-05-28 Richard Henderson <rth@redhat.com>
3450
3451 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3452 bottom alignment for leaf functions.
3453
16069d69
ZW
34542002-05-28 Zack Weinberg <zack@codesourcery.com>
3455
3456 * config/pa/milli32.S, config/pa/lib1funcs.asm,
3457 config/sparc/sol2-g1.asm: Delete unused files.
3458
04653686
RH
34592002-05-28 Richard Henderson <rth@redhat.com>
3460
3461 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3462
f3ea5f6a
RH
3463 * flow.c (calculate_global_regs_live): Rename call_used to
3464 invalidated_by_call. Initialize from regs_invalidated_by_call
3465 instead of call_used_regs.
3466
923c7cdf
RH
3467 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3468 DECL_EXTERNAL.
3469
11ad4784
ZW
34702002-05-28 Zack Weinberg <zack@codesourcery.com>
3471
8abbd76a
ZW
3472 * tree.h: Don't include real.h.
3473 Forward-declare struct realvaluetype.
11ad4784
ZW
3474 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3475 contain it.
3476 (TREE_REAL_CST_PTR): New accessor.
3477 (TREE_REAL_CST): Update.
3478 * real.h: Include machmode.h.
2274b31a 3479 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
3480 (build_real): Prototype here.
3481
3482 * tree.c: Include real.h.
2274b31a
EC
3483 (build_real): Allocate the REAL_VALUE_TYPE as a separate
3484 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
3485 (build_real_from_int_cst): Use build_real.
3486 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3487 REAL_CST.
3488
3489 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3490 fold-const.c, print-tree.c, real.c: Include real.h.
3491 * Makefile.in: Update dependency lists.
3492
bf77398c
ZD
34932002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3494
3495 * basic-block.h (last_basic_block): Declare.
3496 (expunge_block_nocompact): Declaration removed.
3497 (compact_blocks): Declare.
3498 * cfg.c (last_basic_block): New variable.
3499 (expunge_block_nocompact): Removed.
3500 (expunge_block): Do not compact basic blocks.
3501 (compact_blocks): New.
3502 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3503 longer change.
3504 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3505 last_basic_block.
3506 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3507 real positions of blocks.
3508 (delete_unreachable_blocks): Simplified -- quadratic behavior now
3509 cannot occur.
3510 (cleanup_cfg): Compact blocks.
3511 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3512 basic_block_info varray.
3513 (flow_delete_block): Comment update.
3514 (back_edge_of_syntactic_loop_p): Modify position check code.
3515 (verify_flow_info): Update checking.
3516 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3517 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3518 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3519 indices no longer change.
3520 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3521 last_basic_block.
3522 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3523 * profile.c (branch_prob): Compact blocks.
3524 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3525 last_basic_block.
3526
ae12a094
KH
35272002-05-28 Kazu Hirata <kazu@cs.umass.edu>
3528
3529 * config/h8300/h8300.md (two anonymous patterns): New.
3530
c6172f14
DM
35312002-05-28 David S. Miller <davem@redhat.com>
3532
3533 * config/sparc/sparc.md (cpu): Tidy.
3534 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3535 'trap'.
3536 (in_call_delay): Delete reference to 'return' type.
3537 (eligible_for_return_delay, in_return_delay, define_delay
3538 referencing those): Delete.
3539 (rest of file): Use new type attributes as appropriate.
3540 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3541 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3542 * config/sparc/ultra1_2.md (us1_single): New reservation.
3543 (us1_ialuX): Likewise.
3544 * config/sparc/ultra3.md (us3_single): Likewise.
3545 (us3_ialuX): Likewise.
3546 (us3_imul, us3_idiv): Tweak.
2274b31a 3547
34a6c2ec
RH
35482002-05-28 Richard Henderson <rth@redhat.com>
3549
3550 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3551 STRING_CST.
3552
9c075570
RH
35532002-05-28 Richard Henderson <rth@redhat.com>
3554
3555 * config.gcc: Obsolete mn10200.
3556
359b0bec
NB
35572002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
3558
3559 * cppexp.c (interpret_number): Optimize for single-digit
3560 and less-than-half-precision cases.
3561 (num_trim, num_positive, num_div_op): Cast constants.
3562
4075db8f
BT
35632002-05-27 Bo Thorsen <bo@suse.de>
3564
3565 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3566 3.1 branch. The file was made by Jakub Jelinek.
3567 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3568 support so multilib doesn't break. And don't define this at all
3569 when -Dinhibit_libc is used.
3570 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3571 * config/i386/t-linux64: Implement full multilib support. Patch
3572 originally done by Andreas Jaeger and Jakub Jelinek.
3573
39f2f3c8
RS
35742002-05-27 Roger Sayle <roger@eyesopen.com>
3575
3576 * c-common.c: Add support for __attribute__((nothrow)) to specify
3577 that a function cannot throw an exception (using TREE_NOTHROW).
3578 (handle_nothrow_attribute): New function to process this attribute.
3579
3580 * doc/extend.texi: Document the new nothrow function attribute.
3581
d51b0053
L
35822002-05-27 H.J. Lu (hjl@gnu.org)
3583
3584 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3585 (num_positive): Likewise.
3586 (num_div_op): Likewise.
3587
630363b4
NB
35882002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3589
3590 * c-common.c (c_common_init): Always use intmax_t.
3591
d94cde01
NB
35922002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3593
3594 * c-common.c (c_common_init): Use intmax_t for now.
3595
57f851a3
AH
35962002-05-24 Andrew Haley <aph@redhat.com>
3597
3598 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3599 if T is a boolean type.
3600
d55bc081
ZD
36012002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3602
3603 * basic-block.h (last_basic_block): Defined as synonym for
3604 n_basic_blocks.
3605 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3606 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3607 flow_dfs_compute_reverse_init): Replaced relevant occurences of
3608 n_basic_blocks with last_basic_block.
3609 * cfgbuild.c (make_edges): Likewise.
3610 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3611 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3612 * combine.c (combine_instructions): Likewise.
3613 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3614 iterative_dataflow_bitmap): Likewise.
3615 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3616 calc_idoms, idoms_to_doms): Likewise.
3617 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3618 Likewise.
3619 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3620 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3621 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3622 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3623 delete_null_pointer_checks, compute_code_hoist_vbeinout,
3624 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3625 compute_store_table, build_store_vectors): Likewise.
3626 * haifa-sched.c (sched_init): Likewise.
3627 * ifcvt.c (if_convert): Likewise.
3628 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3629 pre_edge_lcm, compute_available, compute_nearerout,
3630 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3631 Likewise.
3632 * predict.c (estimate_probability, process_note_prediction,
3633 note_prediction_to_br_prob): Likewise.
3634 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3635 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3636 * regrename.c (copyprop_hardreg_forward): Likewise.
3637 * resource.c (init_resource_info): Likewise.
3638 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3639 init_regions, schedule_insns): Likewise.
3640 * ssa-ccp.c (ssa_const_prop): Likewise.
3641 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3642 * ssa.c (compute_dominance_frontiers,
3643 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3644
3645 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3646 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3647 sizes consistently.
3648
71d2c5bd
JH
3649Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3650
3651 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3652 new.
3653 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3654 hoist_insn_after, hoist_insn_to_edge): New.
3655
5149f070
JH
3656Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
3657
3658 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3659 (PROP_FINAL): Include.
3660 * flow.c (life_analysis, update_life_info,
3661 init_propagate_block_info, mark_set_1, mark_used_rgs):
3662 Support SCAN_DEAD_STORE.
3663
c9220e3a
NB
36642002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3665
3666 * c-common.c (c_common_init): Set CPP arithmetic precision.
3667 * cppexp.c (cpp_num_part): Move typedef ...
3668 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3669 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3670 (sanity_checks): Update.
3671
e34a3d31
GK
36722002-05-26 Geoffrey Keating <geoffk@redhat.com>
3673
3674 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3675 (mkheaders): New rule.
3676 (install-mkheaders): New rule.
3677 * configure.in (all_outputs): Add mkheaders.
3678 * configure: Regenerate.
3679 * mkheaders.in: New file.
3680
9059e33c
JJ
36812002-05-26 Jakub Jelinek <jakub@redhat.com>
3682
3683 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3684
291cc0fe
AJ
36852002-05-26 Andreas Jaeger <aj@suse.de>
3686
3687 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3688
91318908
NB
36892002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
3690
3691 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3692 right_shift): Remove.
3693 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3694 HIGH_PART): New.
3695 (struct op): Use cpp_num.
3696 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3697 num_part_mul, num_unary_op, num_binary_op, num_negate,
3698 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3699 num_div_op, num_lshift, num_rshift, append_digit): New.
3700 (interpret_number, parse_defined, eval_token, reduce): Update
3701 for two-integer arithmetic.
3702 (binary_handler): New typedef.
3703 (optab): Update.
3704 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3705 (_cpp_parse_expr, reduce): Update to handle two-integers.
3706 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3707
331ca350
MM
37082002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3709
3710 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3711 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3712 branch insn into account, do not assume 1.
3713 (avr_out_sbxx_branch): New function. Optimize cases of skipping
3714 over single word insn. Handle upper half of I/O space too.
3715 * config/avr/avr.md (*sbrx_branch): Use it.
3716 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3717 (*sbix_branch, *sbix_branch_bit7): Likewise.
3718 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3719 Use RTL peepholes to optimize register operand sign tests.
3720
bcb6a2be
MM
37212002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3722
3723 * config/avr/avr.c (avr_asm_only_p): New variable.
3724 (avr_override_options): Set it here if AVR1.
3725 (asm_file_start): Test it here, report an error if set.
3726
ca7fd9cd
KH
37272002-05-26 Kazu Hirata <kazu@cs.umass.edu>
3728
3729 * alias.c: Fix formatting.
3730 * attribs.c: Likewise.
3731 * bb-reorder.c: Likewise.
3732 * bitmap.c: Likewise.
3733 * bitmap.h: Likewise.
3734 * builtins.c: Likewise.
3735
a65dc37d
JH
3736Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
3737
3738 * reload.c (find_valid_class): Accept new argument DEST,
3739 choose class accordingly.
3740 (push_reload): Update callers.
3741
9b89393b
AJ
37422002-05-26 Andreas Jaeger <aj@suse.de>
3743
3744 * combine.c (combine_instructions): Do not indent #if for
3745 traditional C.
3746
b53bb376
RH
37472002-05-25 Richard Henderson <rth@redhat.com>
3748
3749 * c-pragma.c (apply_pragma_weak): Convert value identifier to
3750 string for decl_attributes.
3751 (handle_pragma_weak): Call assemble_alias if we're modifying
3752 an existing decl.
3753
e133041b
RH
37542002-05-25 Richard Henderson <rth@redhat.com>
3755
3756 PR target/6788
3757 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3758 using rtl instead of fprintf.
3759 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3760 * config/sparc/sparc-protos.h: Update.
3761
81a75f0f
NB
37622002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3763
3764 * Makefile.in (C_COMMON_H): Fix.
3765 Update other targets.
3766 * c-common.c: Don't include c-lex.h.
3767 (builtin_define_with_value): Make static and prototype.
3768 (builtin_define_std): Move from c-lex.h.
3769 * c-common.h (init_c_lex): Move from c-lex.h.
3770 * c-decl.c: Don't include c-lex.h.
3771 (make_pointer_declarator): Move from c-parse.in.
3772 * c-lex.c: Don't include c-lex.h.
3773 * c-lex.h: Remove.
3774 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3775 (make_pointer_declarator): Move to c-decl.c.
3776 * c-pragma.c: Don't include c-lex.h.
3777 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3778 * c-tree.h (make_pointer_declarator): New.
3779doc:
3780 * passes.texi, tm.texi: Update.
3781objc:
3782 * Make-lang.in: Update and correct.
3783 * objc-act.c: Don't include c-lex.h or cpplib.h.
3784treelang:
3785 * treetree.c: Don't include c-lex.h.
3786config:
3787 * darwin-c.c: Don't include c-lex.h.
3788 * c4x/c4x-c.c: Don't include c-lex.h.
3789 * c4x/t-c4x: Update.
3790 * i370/i370-c.c: Don't include c-lex.h.
3791 * i370/t-i370: Update.
3792 * i960/i960-c.c: Don't include c-lex.h.
3793 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3794 * i960/t-960bare: Update.
3795 * i960/t-vxworks: Update.
3796 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3797 * rs6000/t-darwin: Update.
3798 * rs6000/t-rs6000-c-rule: Update.
3799 * v850/v850-c.c: Don't include c-lex.h.
3800 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3801
3802
04d2be8e
KH
38032002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3804
3805 * tree.def: Fix typos.
3806 * doc/install.texi: Likewise.
3807
7b6e506e
RH
38082002-05-25 Richard Henderson <rth@redhat.com>
3809
3810 * configure.in (HAVE_AS_TLS): Add ia64 test.
3811 * configure: Rebuild.
3812 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3813 (override_options): Set it.
3814 (TARGET_HAVE_TLS): New.
3815 (sdata_symbolic_operand): Look for 's'.
3816 (tls_symbolic_operand): New.
3817 (ia64_expand_load_address): Abort for tls symbols.
3818 (gen_tls_get_addr): New.
3819 (gen_thread_pointer): New.
3820 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3821 (rtx_needs_barrier): Add new unspecs.
3822 (ia64_encode_section_info): Handle tls symbols.
3823 (ia64_strip_name_encoding): Strip two encoding chars.
3824 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3825 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3826 (TARGET_OPTIONS): Add tls-size.
3827 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3828 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3829 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3830 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3831 (movsf, movdf): Likewise.
3832 (movdi_symbolic): Use match_scratch. Don't split if we won't
3833 have a scratch availiable.
3834 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3835 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3836 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3837 * config/ia64/ia64-protos.h: Update.
3838 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3839 sdata_symbolic_operand.
3840 (ASM_OUTPUT_LABELREF): Strip two characters.
3841
8c1d52a3
KH
38422002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3843
3844 * combine.c (simplify_set): Remove an unnecessary subreg.
3845
b47cae3d
MM
38462002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3847
3848 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3849
3850 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3851
ce9e3a6d
GDR
38522002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3853
3854 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3855
fb2c6841
RS
38562002-05-25 Roger Sayle <roger@eyesopen.com>
3857
3858 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3859 (cond (compare x y) 0) into the equivalent (cond x y).
3860
da7ac8f1
GDR
38612002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3862
3863 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3864
c7bdf0a6
ZW
38652002-05-24 Zack Weinberg <zack@codesourcery.com>
3866
3867 * config.gcc: Remove all stanzas for previously obsoleted
3868 systems. Where necessary, add explicit error stanzas to
3869 prevent removed systems from being misidentified as something
3870 else. Begin a fresh obsoletions list, with the systems that
3871 were reprieved last round.
3872 * doc/install.texi: Remove all mention of dead targets.
3873 * fixinc/mkfixinc.sh: Likewise.
3874
3875 * config/arm/arm.h: Bit 31 of target_flags is no longer
3876 reserved.
3877
3878 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3879 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3880 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3881 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3882 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3883 config/alpha/osf12.h, config/alpha/osf2or3.h,
3884 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3885 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3886 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3887 config/clipper/clipper.h, config/clipper/clipper.md,
3888 config/clipper/clix.h, config/convex/convex-protos.h,
3889 config/convex/convex.c, config/convex/convex.h,
3890 config/convex/convex.md, config/convex/fixinc.convex,
3891 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3892 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3893 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3894 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3895 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3896 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3897 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3898 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3899 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3900 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3901 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3902 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3903 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3904 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3905 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3906 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3907 config/m68k/altos3068.h, config/m68k/apollo68.h,
3908 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3909 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3910 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3911 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3912 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3913 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3914 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3915 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3916 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3917 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3918 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3919 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3920 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3921 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3922 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3923 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3924 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3925 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3926 config/mips/dec-osf1.h, config/mips/elflorion.h,
3927 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3928 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3929 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3930 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3931 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3932 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3933 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3934 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3935 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3936 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3937 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3938 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3939 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3940 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3941 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3942 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3943 Delete file.
3944
755ac5d4
RH
39452002-05-24 Richard Henderson <rth@redhat.com>
3946
3947 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3948 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3949 * config/i386/i386.c (tls_model_chars): Add leading space.
3950 (tls_symbolic_operand): Don't bias by 1.
3951 (legitimize_address): Don't unbias by 1.
3952
c429f12e
TM
39532002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3954
3955 * lcm.c (optimize_mode_switching): Change bb used as indices
3956 to bb->index.
3957
8beda321
RH
39582002-05-24 Richard Henderson <rth@redhat.com>
3959
3960 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3961 of update_life_info_in_dirty_blocks.
3962
90442291
JJ
39632002-05-24 Jakub Jelinek <jakub@redhat.com>
3964
3965 PR other/6782
3966 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3967
3620711b
NB
39682002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3969
3970 PR preprocessor/6780
3971 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3972
2f8d482e
JB
39732002-05-24 Jim Blandy <jimb@redhat.com>
3974
3975 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3976 entry with a type code of zero, marking the end of the compilation
3977 unit's macro info.
3978
95bfe95f
RH
39792002-05-24 Richard Henderson <rth@redhat.com>
3980
c7bdf0a6
ZW
3981 * varasm.c (asm_output_bss): Always output one byte.
3982 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 3983
7efda054
BM
39842002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3985
3986 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3987 namespace.
3988
8a951190
AJ
39892002-05-24 Andreas Jaeger <aj@suse.de>
3990
3991 * ggc-page.c (alloc_page): Cast variables of type size_t to
3992 unsigned long, adjust printf format string.
3993 (ggc_alloc): Likewise.
3994 (ggc_print_statistics): Likewise.
3995 (ggc_print_statistics): Correct printf format string for SCALE to
3996 use unsigned long.
3997
f29e2ec0
DS
39982002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3999
4000 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4001
211a0cbe 40022002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 4003 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
4004
4005 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4006 quoted strings.
4007 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 4008 directive in assembly file.
211a0cbe
GDR
4009 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4010 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4011 * config/pj/pj.h (ASM_FILE_START): Likewise.
4012 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4013 * config/avr/avr.c (asm_file_end): Likewise.
4014 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 4015 char.
211a0cbe
GDR
4016 * toplev.h (output_clean_symbol_name): Declare
4017 * toplev.c (output_clean_symbol_name): Define.
4018 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4019 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4020
2f0552b6
AM
40212002-05-24 Alan Modra <amodra@bigpond.net.au>
4022
4023 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4024
b326b2c1
VM
40252002-05-23 Vladimir Makarov <vmakarov@redhat.com>
4026
4027 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4028 of size of unsigned.
4029
f996902d
RH
40302002-05-23 Richard Henderson <rth@redhat.com>
4031
4032 * configure.in (HAVE_AS_TLS): New test.
4033 * config.in, configure: Rebuild.
4034 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4035 (ix86_tls_dialect_string, ix86_tls_dialect): New.
4036 (override_options): Set it.
4037 (tls_model_chars, tls_symbolic_operand): New.
4038 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4039 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4040 (local_exec_symbolic_operand): New.
4041 (get_pic_label_name): Merge into output_set_got.
4042 (ix86_asm_file_end): Emit pic_label_name if defined.
4043 (legitimate_constant_p, constant_address_p): New.
4044 (legitimate_pic_operand_p): New.
4045 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4046 (legitimate_address_p): Likewise.
4047 (ix86_encode_section_info): Rename from i386_; handle tls decls.
4048 (ix86_strip_name_encoding): New.
4049 (get_thread_pointer): New.
4050 (legitimize_address): Handle tls symbols.
4051 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4052 Remove UNSPEC_PLT.
4053 (struct machine_function): Add some_ld_name.
4054 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4055 (print_operand) [&]: Use it. Handle UNSPEC_TP.
4056 (output_addr_const_extra): New.
4057 (maybe_get_pool_constant): New.
4058 (ix86_split_to_parts): Use it.
4059 (ix86_expand_move): Handle tls symbols.
4060 (ix86_tls_get_addr): New.
4061 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4062 (TARGET_OPTIONS): Add tls-dialect.
4063 (CONSTANT_ADDRESS_P): Use new out-of-line function.
4064 (LEGITIMATE_CONSTANT_P): Likewise.
4065 (LEGITIMATE_PIC_OPERAND_P): Likewise.
4066 (TARGET_STRIP_NAME_ENCODING): New.
4067 (ASM_OUTPUT_LABELREF): New.
4068 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4069 (OUTPUT_ADDR_CONST_EXTRA): New.
4070 (PREDICATE_CODES): Update.
4071 (ix86_tls_dialect, ix86_tls_dialect_string): New.
4072 * config/i386/i386.md: Regroup and renumber unspec constants.
4073 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4074 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4075 (tls_global_dynamic, tls_local_dynamic_base): New.
4076 (tls_local_dynamic_once): New.
4077 * config/i386/i386-protos.h: Update.
4078
821e35ba
RH
40792002-05-23 Richard Henderson <rth@redhat.com>
4080
4081 * genemit.c (gen_insn): Print file:lineno comment before function.
4082 (main): likewise.
4083 * gensupport.c (struct queue_elem): Add filename member.
4084 (queue_pattern): Initialize it; update all callers.
4085 (process_include): Don't free filename.
4086 (read_md_rtx): Set read_rtx_filename.
4087
0f1ffa23 40882002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
4089
4090 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 4091
8e9fadc3
RH
40922002-05-23 Richard Henderson <rth@redhat.com>
4093
4094 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4095
244c2241
RH
40962002-05-23 Richard Henderson <rth@redhat.com>
4097
4098 * doc/extend.texi (C++98 Thread-Local Edits): Update with
4099 commentary from Mark.
4100
e0082a72
ZD
41012002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4102
4103 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4104 Use FOR_EACH_BB macros to iterate over basic block chain.
4105 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4106 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4107 Likewise.
4108 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4109 find_unreachable_blocks, create_edge_list, verify_edge_list,
4110 remove_fake_edges, add_noreturn_fake_exit_edges,
4111 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4112 Likewise.
4113 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4114 find_sub_basic_blocks): Likewise.
4115 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4116 Likewise.
4117 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4118 Likewise.
4119 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4120 Likewise.
4121 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4122 commit_edge_insertions, commit_edge_insertions_watch_calls,
4123 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4124 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4125 * conflict.c (conflict_graph_compute): Likewise.
4126 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4127 df_modified_p, df_refs_unlink, df_dump): Likewise.
4128 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4129 * final.c (compute_alignments): Likewise.
4130 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4131 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4132 count_or_remove_death_notes): Likewise.
4133 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4134 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4135 classic_gcse, compute_transp, cprop, compute_pre_data,
4136 compute_transpout, invalidate_nonnull_info,
4137 delete_null_pointer_checks_1, delete_null_pointer_checks,
4138 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4139 compute_store_table, build_store_vectors, store_motion): Likewise.
4140 * global.c (global_conflicts, mark_elimination): Likewise.
4141 * graph.c (print_rtl_graph_with_bb): Likewise.
4142 * haifa-sched.c (sched_init): Likewise.
4143 * ifcvt.c (if_convert): Likewise.
4144 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4145 compute_available, compute_nearerout, compute_rev_insert_delete,
4146 optimize_mode_switching): Likewise.
4147 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4148 * predict.c (estimate_probability, note_prediction_to_br_prob,
4149 propagate_freq, counts_to_freqs, expensive_function_p,
4150 estimate_bb_frequencies): Likewise.
4151 * profile.c (instrument_edges, get_exec_counts,
4152 compute_branch_probabilities, compute_checksum, branch_prob,
4153 find_spanning_tree): Likewise.
4154 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4155 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4156 Likewise.
4157 * regclass.c (scan_one_insn, regclass): Likewise.
4158 * regmove.c (mark_flags_life_zones, regmove_optimize,
4159 record_stack_memrefs): Likewise.
4160 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4161 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4162 * resource.c (find_basic_block): Likewise.
4163 * sched-ebb.c (schedule_ebbs): Likewise.
4164 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4165 find_single_block_region, find_rgns, schedule_insns)
4166 * sibcall.c (optimize_sibling_and_tail_recursive_call)
4167 * ssa-ccp.c (optimize_unexecutable_edges,
4168 ssa_ccp_df_delete_unreachable_insns): Likewise.
4169 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4170 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4171 rename_block, convert_to_ssa, compute_conservative_reg_partition,
4172 compute_coalesced_reg_partition, rename_equivalent_regs,
4173 convert_from_ssa): Likewise.
4174 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4175 process_for_unwind_directive): Likewise.
4176
4177 * df.c (FOR_ALL_BBS): Removed.
4178 * gcse.c (struct null_pointer_info): Type of current_block field
4179 changed.
4180 (struct reg_avail_info): Type of last_bb field changed.
4181 * config/ia64/ia64.c (block_num): Removed.
4182 (need_copy_state): Type changed.
4183 (last_block): New.
4184
17645b15
NB
41852002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4186
4187 * cppinit.c (mark_named_operators): Split out from init_builtins.
4188 (cpp_finish_options): Call it from here instead.
4189
79ed7328
JT
41902002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4191
4192 * builtin-attrs.def: Update copyright years.
4193 (ATTR_NONNULL): New attribute identifier.
4194 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4195 attribute tree lists.
4196 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4197 format operand.
4198 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4199 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4200 attribute lists. Chain the appropriate nonnull attribute.
4201 * c-format.c (check_format_arg): Remove null format string
4202 warning.
4203 * testsuite/gcc.dg/format/null-1.c: New test.
4204
7d600178
RO
42052002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4206
4207 * Makefile.in (ADAC): Define.
4208 (SYSLIBS): Define.
4209 (.SUFFIXES): Move before language makefile fragments.
4210 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4211
5ff225fc
MM
42122002-05-23 Mark Mitchell <mark@codesourcery.com>
4213
4214 * varasm.c (make_decl_rtl): Don't allow weak variables to be
4215 placed in common.
4216
0f72964f
JH
4217Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4218
4219 * cfg.c (dump_flow_info): Print results of
4220 maybe_hot/probably_never_executed predicates.
4221 * toplev.c (open_dump_file): Print function frequency.
4222
c863f8c2
DM
42232002-05-23 David S. Miller <davem@redhat.com>
4224
4225 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4226 regsets.
4227
b34c7881
JT
42282002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4229
4230 * c-common.c (warn_nonnull): Declare.
4231 (c_common_attribute_table): Add "nonnull" attribute.
4232 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4233 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4234 check_function_arguments_recurse): New functions.
4235 * c-common.h (warn_nonnull): Declare extern.
4236 (check_function_arguments, check_function_arguments_recurse): New
4237 prototypes.
4238 * c-decl.c (c_decode_option): Add -Wnonnull option.
4239 * c-format.c (set_Wformat): Set warn_nonnull if enabling
4240 format checking.
4241 (format_check_context): New structure.
4242 (check_format_info_recurse): Remove recursion and rename to...
4243 (check_format_arg): ...this. Update comment.
4244 (check_format_info): Use check_function_arguments_recurse.
4245 * c-typeck.c (build_function_call): Call check_function_arguments
4246 instead of check_function_format.
4247 * doc/extend.texi: Document "nonnull" attribute.
4248 * doc/invoke.texi: Docuemnt -Wnonnull option.
4249 * testsuite/gcc.dg/nonnull-1.c: New test.
4250 * testsuite/gcc.dg/nonnull-2.c: New test.
4251
95479831
DM
42522002-05-23 David S. Miller <davem@redhat.com>
4253
4254 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4255 * cfgcleanup.c (cleanup_cfg): If it is set do not
4256 attempt to delete trivially dead insns.
4257 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4258 * toplev.c (rest_of_compilation): Document non-trivial aspect
4259 the RTL before optimize_save_area_alloca is run.
4260
a97d1398
NB
42612002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4262
4263 * c-lex.c (indent_level): Remove.
4264 (cb_file_change, c_lex): Remove indent level handling.
4265 * c-lex.h (indent_level): Remove.
4266 * input.h (struct file_stack): Remove indent_level.
4267 * toplev.c (push_srcloc): Remove indent_level handling.
4268
66b408f2
JJ
42692002-05-23 Jakub Jelinek <jakub@redhat.com>
4270
4271 PR target/6753
4272 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4273 of x in constraints for clarity.
4274 (sse_mov?fcc split): abort if op2 == op3.
4275 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4276 sse_movsfcc_const0_4): Add earlyclobber.
4277 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4278 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
4279 Use Y instead of x in constraints.
4280
5bf0ebab
RH
42812002-05-23 Richard Henderson <rth@redhat.com>
4282
9217ef40
RH
4283 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4284 (C++98 Thread-Local Edits): New subsection.
4285
5bf0ebab
RH
4286 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4287 (ix86_arch): Set type to enum processor_type.
4288
8a951190 4289 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
4290 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4291
4832c9e1
JJ
42922002-05-23 Jakub Jelinek <jakub@redhat.com>
4293
4294 * configure.in: Fix as version test for binutils 2.12.1 releases
4295 (without dates).
4296 * configure: Rebuilt.
4297
c8c03509
RH
42982002-05-23 Richard Henderson <rth@redhat.com>
4299
4300 * config/i386/i386.c (get_pic_label_name): New.
4301 (load_pic_register): Remove.
4302 (output_set_got): New.
4303 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4304 * config/i386/i386.md (UNSPEC_SET_GOT): New.
4305 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4306 (prologue_set_got, prologue_get_pc): Remove.
4307 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4308 (builtin_setjmp_receiver): Use gen_set_got.
4309 * config/i386/i386-protos.h: Update.
4310
d51f3632
JH
4311Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4312
4313 * gcse.c (hash_expr): Do not use alias set for hashing.
4314
b0a93386
KB
43152002-05-22 Kevin Buettner <kevinb@redhat.com>
4316
4317 * dbxout.c (dbxout_class_name_qualifiers): New function.
4318 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4319
bdee42b1
NB
43202002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4321
4322 * cpperror.c (_cpp_begin_message): No special casing
4323 of CPP_FATAL_LIMIT.
4324 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4325 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4326 * cpplib.c (do_include_common): Use DL_ERROR.
4327 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4328 (DL_ICE): Renumber.
4329 * fix-header.c (read_scan_file): Update.
4330
0e07aff3
RH
43312002-05-22 Richard Henderson <rth@redhat.com>
4332
4333 * config/i386/i386.c (ix86_expand_call): New function, extracted
4334 from md call patterns. Add pic_offset_table_rtx to
4335 CALL_INSN_FUNCTION_USAGE when needed.
4336 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4337 (call_value_pop, call_value, untyped_call): Likewise.
4338 (call_exp, call_value_exp): Remove.
4339 * config/i386/i386-protos.h: Update.
4340
6f001fdf
RH
43412002-05-22 Richard Henderson <rth@redhat.com>
4342
4343 * varasm.c (default_section_type_flags): Check for VAR_DECL
4344 before using DECL_THREAD_LOCAL.
4345
cbaaba19
DE
43462002-05-22 David Edelsohn <edelsohn@gnu.org>
4347
4348 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4349 (STARTFILE_SPEC): Delete PE crt0.o.
4350 * config/rs6000/aix51.h: Same.
4351 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4352 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4353 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
4354 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4355 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4356
c711ba8e
RH
43572002-05-22 Richard Henderson <rth@redhat.com>
4358
4359 * varasm.c (default_section_type_flags): Handle tls data and
4360 default sections.
4361 (default_unique_section): Handle tls sections.
4362
343f59d9
AM
43632002-05-23 Alan Modra <amodra@bigpond.net.au>
4364
4365 * configure.in (CROSS): Define NATIVE_CROSS.
4366 * configure: Regenerate.
4367 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4368 (startfile_prefix_spec): New var.
4369 (static_specs): Add startfile_prefix_spec.
4370 (do_spec_2): Split out from..
4371 (do_spec): ..here.
4372 (main): Process startfile_prefix_spec.
4373 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4374 dynamic linker.
4375 (STARTFILE_PREFIX_SPEC): Define.
4376 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 4377 absolute paths.
343f59d9 4378
df383483
KH
43792002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4380
4381 * cpperror.c: Fix formatting.
4382 * cppexp.c: Likewise.
4383 * cppfiles.c: Likewise.
4384 * cpphash.c: Likewise.
4385 * cpphash.h: Likewise.
4386 * cppinit.c: Likewise.
4387 * cpplex.c: Likewise.
4388 * cpplib.c: Likewise.
4389 * cppmacro.c: Likewise.
4390 * cppmain.c: Likewise.
4391 * cppspec.c: Likewise.
4392
2dd36f90
JJ
43932002-05-22 Jakub Jelinek <jakub@redhat.com>
4394
4395 * combine.c (force_to_mode): Use gen_int_mode.
4396 Don't clear CONST_INT bits outside of mode.
4397
8dc02d7f
RH
43982002-05-22 Richard Henderson <rth@redhat.com>
4399
4400 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4401 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4402
45f79783
JJ
44032002-05-22 Jakub Jelinek <jakub@redhat.com>
4404
4405 PR c/6643
4406 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4407 if DECL_SIZE_UNIT is INTEGER_CST.
4408
19f71cd7
RH
44092002-05-22 Richard Henderson <rth@redhat.com>
4410
4411 * flow.c (life_analysis): Delete broken reg_label check.
4412
d5bcfcce
RH
44132002-05-22 Richard Henderson <rth@redhat.com>
4414
4415 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4416 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4417
985d311b 4418Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
4419
4420 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4421 (embed-bb.c): New rule.
985d311b 4422 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
4423 * config/sh/embed_bb.c: Delete.
4424
985d311b
R
4425Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
4426
4427 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4428
f6d45746
KH
44292002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4430
4431 * config/h8300/h8300.md (*andorqi3): New.
4432
e5f3b786
NB
44332002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
4434
4435 PR preprocessor/6517
4436 * Makefile.in: Update.
4437 * c-common.c (c_common_post_options): Add preprocessor
4438 errors to the error count.
4439 * c-lang.c (c_post_options): Kill.
4440 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4441 * hooks.h: Add header guards.
4442 * langhooks-def.h: Include hooks.h.
4443 (LANG_HOOKS_POST_OPTIONS): Update.
4444 * langhooks.h (struct lang_hooks): Update post_options.
4445 * toplev.c (parse_options_and_default_flags): Update.
4446objc:
4447 * objc-lang.c (objc_post_options): Kill.
4448 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4449
4c526be3
BK
44502002-05-21 Bruce Korb <bkorb@gnu.org>
4451
4452 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
4453 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4454 * fixinc/fixincl.x: regen.
4c526be3 4455
f87c27b4
KH
44562002-05-21 Kazu Hirata <kazu@cs.umass.edu>
4457
4458 * cfgbuild.c: Fix formatting.
4459 * cfg.c: Likewise.
4460 * cfgcleanup.c: Likewise.
4461 * cfglayout.c: Likewise.
4462 * cfgloop.c: Likewise.
4463 * cfgrtl.c: Likewise.
4464
3d78f2e9
RH
44652002-05-21 Richard Henderson <rth@redhat.com>
4466
4467 * c-common.h (enum rid): Add RID_THREAD.
4468 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4469 (grokdeclarator): Grok __thread.
4470 * c-parse.in (reswords): Add __thread.
4471 (rid_to_yy): Add RID_THREAD.
4472
4473 * tree.h (DECL_THREAD_LOCAL): New.
4474 (struct tree_decl): Add thread_local_flag.
4475 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4476 * tree.c (staticp): TLS variables are not static.
4477
4478 * target-def.h (TARGET_HAVE_TLS): New.
4479 * target.h (have_tls): New.
4480 * output.h (SECTION_TLS): New.
4481 * varasm.c (assemble_variable): TLS variables can't be common for now.
4482 (default_section_type_flags): Handle .tdata and .tbss.
4483 (default_elf_asm_named_section): Handle SECTION_TLS.
4484 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4485
4486 * flags.h (flag_tls_default): Declare.
4487 * toplev.c (flag_tls_default): Define.
4488 (display_help): Display help for it.
4489 (decode_f_option): Set it.
4490
4491 * doc/extend.texi (Thread-Local): New node describing language-level
4492 thread-local storage.
4493 * doc/invoke.texi (-ftls-model): Document.
4494
4495 * fixinc/inclhack.def (thread_keyword): New.
4496 * fixinc/fixincl.x: Rebuild.
4497
a151daf0
JL
44982002-05-21 Jeffrey A Law <law@redhat.com>
4499
8a951190 4500 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
4501 do not compute intermediate results into something that is
4502 not a register (such as a SUBREG or MEM).
4503
a151daf0
JL
4504 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4505 (ix86_sched_reorder): Make sure to initialize scheduling
4506 data even when there's only one insn in the ready queue.
4507
96b1f73b
VM
45082002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4509
4510 * genautomata.c (reserv_sets_hash_value): Fix a typo.
4511
dceb2b75
VM
45122002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4513
4514 * genautomata.c (reserv_sets_hash_value): Define hash_value as
4515 set_el_t. Transform the hash value into unsigned.
4516 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4517 (transform_3): Add code to process `(A,B)+(D,E)'.
4518
159d5964
NY
45192002-05-21 NIIBE Yutaka <gniibe@m17n.org>
4520
4521 * reload1.c (do_output_reload): Run delete_output_reload
4522 only if optimizing.
4523
cf5124f6
RS
45242002-05-21 Roger Sayle <roger@eyesopen.com>
4525
4526 PR middle-end/6600
4527 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4528 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
4529 (can_store_by_pieces): ... and here to limit the largest mode used.
4530 Add a comment to document this function.
4531
380e6ade
RH
45322002-05-21 Richard Henderson <rth@redhat.com>
4533
4534 * flow.c (life_analysis): Fix test for deleted label.
4535
1f95326c
NB
45362002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
4537
4538 * doc/tm.texi: Fix typo.
4539
2a1dc0d8
ZW
45402002-05-21 Zack Weinberg <zack@codesourcery.com>
4541
4542 * c-common.c (c_common_init): Set options->unsigned_char from
4543 flag_signed_char.
4544 (cb_register_builtins): Define __STRICT_ANSI__ and
4545 __CHAR_UNSIGNED__ here...
4546 * cppinit.c (init_builtins): Not here.
4547 (cpp_create_reader): unsigned_char option defaults to 0, not
4548 !DEFAULT_SIGNED_CHAR.
4549 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4550 and -funsigned-char.
4551
4552 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4553 * cpphash.c (_cpp_init_hashtable): Don't set it.
4554 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4555 directly. Clarify comment.
4556
d29146f2 45572002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 4558
f5eb2fc8
ZD
4559 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4560 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
4561 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
4562 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 4563 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 4564 flow_preorder_transversal_compute): Too.
d29146f2 4565 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
4566 find_sub_basic_blocks): Too.
4567 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 4568 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
4569 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4570 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
4571 * combine.c (this_basic_block): Type changed to basic_block.
4572 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4573 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
4574 get_last_value, distribute_notes, distribute_links): Too.
4575 * final.c (compute_alignments): Too.
4576 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4577 * function.c (thread_prologue_and_epilogue_insns): Too.
4578 * gcse.c (compute_code_hoist_vbeinout): Too.
4579 * global.c (build_insn_chain): Too.
4580 * ifcvt.c (find_if_block, find_cond_trap): Too.
4581 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4582 * regmove.c (regmove_optimize): Too.
4583 * resource.c (find_basic_block): Too.
4584 * sched-ebb.c (schedule_ebbs): Too.
4585 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 4586
68bd6dd6
AJ
45872002-05-21 Andreas Jaeger <aj@suse.de>
4588
4589 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4590
35a76aac
RH
45912002-05-21 Richard Henderson <rth@redhat.com>
4592
4593 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4594 unspec names, not numbers.
4595
2870428f
JM
45962002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
4597
4598 * doc/sourcebuild.texi: Mention snapshot-README and
4599 snapshot-index.html as needing updating for new front ends.
4600
b0ad77d5
KG
46012002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4602
4603 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4604 disabling checking, and avoid multiple evaluation of RTX.
4605
279be7c8
RE
46062002-05-21 Richard Earnshaw <rearnsha@arm.com>
4607
4608 * bitmap.c (bitmap_find_bit): Return early if we have the correct
4609 element cached.
4610
193a563a
JH
4611Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4612
4613 * profile.c (gen_edge_profiler): Set alias set before the memory is
4614 used.
4615
31825e57
DM
46162002-05-20 David S. Miller <davem@redhat.com>
4617
4618 * cselib.c (max_value_regs): New.
4619 (cselib_lookup, cselib_invalidate_regno): Initialize it when
4620 adding new entries to the REG_VALUES table and we are dealing with
4621 a hard register.
4622 (clear_table): Initialize it.
4623 (cselib_invalidate_regno): Use it to determine which hard
4624 registers to scan when mode is not VOIDmode.
4625
68bd6dd6 46262002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
4627
4628 * tradcpp.c (fixup_newlines): Use old-style function header.
4629
e0a09fda
KW
46302002-05-20 Krister Walfridsson <cato@df.lth.se>
4631
4632 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4633
e0c13c70
L
46342002-05-20 H.J. Lu (hjl@gnu.org)
4635
4636 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4637
4638 * config/mips/mips.h (DFMODE_NAN): Defined.
4639 (SFMODE_NAN): Likewise.
4640
4c11675d 46412002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 4642
2a1dc0d8
ZW
4643 * combine.c (cant_combine_insn_p): Back out my
4644 previous patch.
4c11675d 4645
6a4d6760
KH
46462002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4647
4648 * params.c: Fix formatting.
4649 * params.h: Likewise.
4650 * predict.c: Likewise.
4651 * prefix.c: Likewise.
4652 * print-rtl.c: Likewise.
4653 * print-tree.c: Likewise.
4654 * profile.c: Likewise.
4655
5715ca64
L
46562002-05-20 H.J. Lu (hjl@gnu.org)
4657
4658 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4659
00b89f01
NC
46602002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
4661
4662 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4663 switches straight on to the assembler, do not abbreviate them.
4664 * config/arm/elf.h (ASM_SPEC): As above.
4665 * config/arm/semi.h (ASM_SPEC): As above.
4666 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4667 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4668 -mcpu=xscale on to the assembler by default.
4669 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4670
1441374b
RH
46712002-05-20 Richard Henderson <rth@redhat.com>
4672
4673 * cse.c (canon_hash): Reorder do_not_record test. Always
4674 allow pic_offset_table_rtx.
4675
c0fe508e
TM
46762002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
4677
4678 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4679 (expand_binop): Ditto (3 times).
4680
f362c762
MM
46812002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
4682
4683 * Makefile.in (distclean): Remove QMTest stuff.
4684 (QMTEST_PATH): New variable.
4685 (QMTESTFLAGS): Likewise.
4686 (QMTESTRUNFLAGS): Likewise.
4687 (QMTEST): Likewise.
4688 (QMTEST_GPP_TESTS): Likewise.
4689 (QMTEST_DIR): Likewise.
4690 (QMTEST_DIR/context): New target.
4691 (qmtest-g++): Likeise.
4692 (qmtest-gui): Likewise.
4693 (QMTEST_DIR/gpp-expected.qmr): Likewise.
4694
16861f33
AH
46952002-05-19 Aldy Hernandez <aldyh@redhat.com>
4696
2a1dc0d8
ZW
4697 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4698 an altivec register if TARGET_ALTIVEC.
16861f33 4699
2a1dc0d8
ZW
4700 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4701 to ALTIVEC_VECTOR_MODE.
4702 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4703 (rs6000_va_arg): Vectors may go in registers if they are not
4704 altivec vectors.
16861f33 4705
23459e15
KH
47062002-05-19 Kazu Hirata <kazu@cs.umass.edu>
4707
4708 * protoize.c: Fix formatting.
4709
174cc7d1
RH
47102002-05-19 Richard Henderson <rth@redhat.com>
4711
4712 * gensupport.c (init_include_reader): Merge into ...
4713 (process_include): ... here. Simplify composite path creation.
4714 Plug memory leaks. Fix file/line number tracking. Do not
4715 process_define_cond_exec. Return void.
4716 (process_rtx): Don't check process_include return value.
4717
918ed612
ZD
47182002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4719
4720 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4721 fields.
4722 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4723 traversing basic block chain.
4724 (create_basic_block_structure, create_basic_block): Declaration changed.
4725 (link_block, unlink_block): Declare.
4726 * cfg.c (entry_exit_blocks): Initialize new fields.
4727 (link_block, unlink_block): New.
4728 (expunge_block_nocompact): Unlink basic block.
4729 (dump_flow_info): Print prev_bb/next_bb fields.
4730 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4731 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4732 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4733 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4734 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4735 (verify_flow_info): Check that list agrees with numbering.
4736
e0322d5c
NB
47372002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
4738
4739 * c-common.c (preprocessing_asm): New macro.
4740 * c-lex.h (builtin_define, builtin_assert): Use pfile.
4741doc:
4742 * tm.texi: Update.
4743config/alpha:
4744 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4745 (CPP_SPEC): Simplify.
4746 (TARGET_CPU_CPP_BUILTINS): Update.
4747 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4748 (CPP_SPEC): Simplify.
4749 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4750 (TARGET_OS_CPP_BUILTINS): Update.
4751 * osf.h (CPP_XFLOAT_SPEC): Kill.
4752 (TARGET_OS_CPP_BUILTINS): Update.
4753 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4754 * osf5.h (CPP_XFLOAT_SPEC): Kill.
4755 * vms.h (CPP_SUBTARGET_SPEC): Kill.
4756 (TARGET_OS_CPP_BUILTINS): Update.
4757
121f5c2c
RH
47582002-05-19 Richard Henderson <rth@redhat.com>
4759
4760 * varasm.c (default_binds_local_p): Fix typo.
4761
651c5ed9
MM
47622002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
4763
4764 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4765 CONST_INT operand to the correct mode after adding 1 to it.
4766
bce0deb2
MM
47672002-05-19 Mark Mitchell <mark@codesourcery.com>
4768
4769 * config.gcc (powerpc-wrs-windiss*): New target.
4770
4aa74a4f
FS
47712002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4772
4773 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4774 (ashrdi3): Use it.
4775
a15135c9
MM
47762002-05-18 Mark Mitchell <mark@codesourcery.com>
4777
4778 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4779 alphasort.
4780 * config.in: Regenerated.
4781 * configure: Regenerated.
4782
47754fd5
RH
47832002-05-19 Richard Henderson <rth@redhat.com>
4784
4785 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4786 * target.h (struct gcc_target): Move boolean fields to the end.
4787 Add binds_local_p.
4788 * varasm.c (default_binds_local_p): New.
4789 * output.h: Declare it.
4790
4791 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4792 * config/cris/cris.c (cris_encode_section_info): Likewise.
4793 * config/i386/i386.c (i386_encode_section_info): Likewise.
4794 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4795 * config/sh/sh.c (sh_encode_section_info): Likewise.
4796
4797 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4798 (TARGET_BINDS_LOCAL_P): New.
4799
fc881338
RH
48002002-05-19 Richard Henderson <rth@redhat.com>
4801
4802 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4803 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4804 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4805
4806 * toplev.c (display_help): Kill -a -ax help.
4807
68bd6dd6 4808 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
4809 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4810 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4811 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4812 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4813
4814 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4815 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4816
4817 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4818 (ix86_output_function_block_profiler): Kill.
4819 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4820 (m68hc11_function_block_profiler): Kill.
4821 * config/m68hc11/m68hc11-protos.h: Update.
4822 * config/m88k/m88k.c (output_block_profiler): Kill.
4823 (output_function_block_profiler): Kill.
4824 * config/m88k/m88k-protos.h: Update.
4825
772c5265
RH
48262002-05-19 Richard Henderson <rth@redhat.com>
4827
4828 * system.h (STRIP_NAME_ENCODING): Poison it.
4829 * output.h (STRIP_NAME_ENCODING): Remove.
4830 (default_strip_name_encoding): Declare.
4831 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4832 * target.h (strip_name_encoding): New.
4833 * varasm.c (default_strip_name_encoding): New.
4834
4835 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4836 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4837 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4838 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4839 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4840 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4841 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4842 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4843 config/v850/v850.h: Use the hook, not the macro.
4844
4845 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4846 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4847 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4848 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4849 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4850 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 4851 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
4852 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4853 config/v850/v850.c, config/v850/v850.h:
4854 Move STRIP_NAME_ENCODING to out-of-line function and add
4855 TARGET_STRIP_NAME_ENCODING.
4856
4857 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4858 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4859 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4860 make function static.
4861
4862 * xcoffout.c: Include target.h
4863 * Makefile.in (xcoffout.o): Update.
4864
4865 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4866 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4867 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4868 reloc argument unused.
4869 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4870
4871 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4872 STRIP_NAME_ENCODING docs.
4873
8f9eb495
AJ
48742002-05-19 Andreas Jaeger <aj@suse.de>
4875
4876 * gengenrtl.c: Add prototype for excluded_rtx.
4877
4878 * real.h: Add prototype for exact_real_truncate.
4879
fb49053f
RH
48802002-05-18 Richard Henderson <rth@redhat.com>
4881
4882 * system.h (ENCODE_SECTION_INFO): Poison it.
4883 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4884 * target.h (encode_section_info): New.
4885 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4886 * hooks.c (hook_tree_int_void): New.
4887 * hooks.h: Declare it.
4888
4889 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4890 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4891 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4892 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4893 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4894 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4895 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4896 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4897 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4898 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4899 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4900 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4901 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4902 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4903 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4904 referencing existing function. Make function static.
4905
4906 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 4907 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
4908 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4909 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4910 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 4911 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
4912 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4913 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4914 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4915 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 4916 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
4917 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4918 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4919 Move ENCODE_SECTION_INFO to out-of-line function and add
4920 TARGET_ENCODE_SECTION_INFO.
4921
4922 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4923 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4924
4925 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4926 from SUBTARGET_*
4927 (switch_to_section): Replace in_rdata case with in_readonly_data.
4928
4929 * config/h8300/h8300.c (h8300_encode_label): Make static.
4930 * config/h8300/h8300-protos.h: Update.
4931
4932 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4933 from rs6000_encode_section_info; make static.
4934 (rs6000_xcoff_encode_section_info): New.
4935
4936 * config/v850/v850.c (v850_encode_data_area): Make static.
4937 * config/v850/v850-protos.h: Update.
4938
4939 * config/vax/vax.c: Include flags.h.
4940 (vms_select_section): Fix typo.
4941
4942 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4943 ENCODE_SECTION_INFO docs.
4944
9fe08fd0
RH
49452002-05-18 Richard Henderson <rth@redhat.com>
4946
4947 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4948 REGISTER_TARGET_PRAGMAS.
4949 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4950
410b770f
RH
4951 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4952
b64a1b53
RH
49532002-05-18 Richard Henderson <rth@redhat.com>
4954
4955 * system.h (SELECT_RTX_SECTION): Poison.
4956 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4957 * target.h (select_rtx_section): New.
4958 * varasm.c (output_constant_pool): Use it.
4959 (default_select_rtx_section, default_elf_select_rtx_section): New.
4960 * output.h: Declare them.
4961
4962 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4963 * config/darwin.c (machopic_select_rtx_section): ... here.
4964 * config/darwin-protos.h: Update.
4965
4966 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4967 * config/nextstep.c (machopic_select_rtx_section): ... here.
4968 (nextstep_select_section): Rename variable to avoid macro clash.
4969 * config/nextstep-protos.h: Update.
4970
4971 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4972 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4973 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 4974 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
4975 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4976 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 4977 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
4978 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4979 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4980 (SELECT_RTX_SECTION): Remove.
4981
4982 * config/darwin.h, config/elfos.h, config/nextstep.h,
4983 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4984 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4985 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4986 config/sparc/lynx.h, config/xtensa/xtensa.c
4987 (TARGET_ASM_SELECT_RTX_SECTION): New.
4988
4989 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4990 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4991 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4992 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4993 (ia64_aix_select_rtx_section): New.
4994 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4995 redefining.
4996 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 4997 Support ELF SHF_MERGE features.
b64a1b53
RH
4998 * config/mips/mips-protos.h: Update.
4999 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5000 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5001 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5002 make static, fall back to default_elf_select_rtx_section.
5003 * config/rs6000/rs6000-protos.h: Update.
5004 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5005 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5006 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5007 * config/romp/romp.c (romp_select_rtx_section): New.
5008 * config/s390/s390.c (s390_select_rtx_section): New.
5009 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
5010 declarations before target macro definition.
5011 (xtensa_emit_call): Use static buffer.
5012 (xtensa_select_rtx_section): New.
5013 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5014 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5015 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5016
5017 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5018 SELECT_RTX_SECTION docs.
5019
5020Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
5021
5022 * i386.md (movsi/movdi): Fix template.
5023 (sse2 patterns): Set attributes consistently.
5024
5025 * i386.md (pushqi2, ashrqi_*): Fix constraint.
5026
6835a09c
TM
50272002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
5028
5029 * optabs.c (complex_part_zero_p): New.
5030 * (expand_cmplxdiv_straight): Use it.
5031 * (expand_cmplxdiv_wide): Ditto.
5032 * (expand_binop): Ditto.
5033
d48bc59a
RH
50342002-05-18 Richard Henderson <rth@redhat.com>
5035
5036 * final.c (HAVE_READONLY_DATA_SECTION): New.
5037 (shorten_branches): Use it instead of ifdefs.
5038 * varasm.c (enum in_section): Add in_readonly_data.
5039 (text_section, data_section): Tidy.
5040 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5041
5042 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5043 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5044 (READONLY_DATA_SECTION): Don't undef.
5045
5046 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5047 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5048 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5049
5050 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5051 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5052 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5053 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5054
5055 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5056 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5057 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5058 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5059 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5060 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5061 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5062 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5063 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5064
5065 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5066 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5067 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5068 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5069 config/pa/pa64-hpux.h, config/sparc/litecoff.h
5070 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5071
5072 * config/elfos.h, config/netware.h, config/svr3.h,
5073 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5074 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5075 config/h8300/h8300.h, config/i386/i386-interix.h,
5076 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5077 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5078
5079 * config/elfos.h, config/netware.h, config/svr3.h,
5080 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5081 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5082 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5083 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5084
5085 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5086 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5087 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5088 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5089 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5090 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5091 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5092 config/rs6000/sysv4.h, config/v850/v850.h
5093 (EXTRA_SECTIONS): Remove in_const/in_rdata.
5094 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5095
5096 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5097 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5098 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5099 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5100 * config/alpha/alpha.c (alpha_start_function): Likewise.
5101 (alpha_write_linkage): Likewise.
5102 * config/m32r/m32r.c (m32r_select_section): Likewise.
5103 * config/m88k/m88k.c (m88k_select_section): Likewise.
5104 * config/mips/mips.c (mips_select_rtx_section): Likewise.
5105 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5106 (rs6000_elf_select_section): Likewise.
5107 * config/v850/v850.c (v850_select_section): Likewise.
5108
5109 * config/1750a/1750a.h, config/i860/sysv3.h
5110 (READONLY_DATA_SECTION_ASM_OP): New.
5111 READONLY_DATA_SECTION_ASM_OP.
5112 * config/i386/interix.c, config/i386/winnt.c
5113 (i386_pe_unique_section): Always use .rdata prefix.
5114 * config/pa/som.h (readonly_data): Always switch to read-only section.
5115 (READONLY_DATA_SECTION): Predicate on flag_pic.
5116 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5117 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5118 (READONLY_DATA_SECTION): Update.
5119
e964a556
JT
51202002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
5121
5122 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 5123 is used without -Wformat.
e964a556
JT
5124 * c-common.h (warn_format_zero_length): Declare extern.
5125 * c-decl.c (warn_options): Add "format-zero-length".
5126 * c-format.c (warn_format_zero_length): Declare.
5127 (set_Wformat): Set warn_format_zero_length for -Wformat.
5128 (check_format_info): Only warn about zero-length formats if
5129 warn_format_zero_length is true. Include the format type
5130 name in the warning message.
5131 * doc/invoke.texi: Document -Wformat-zero-length.
5132 * testsuite/gcc.dg/format/zero-length-1.c: New test.
5133
d92b4486
KH
51342002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5135
5136 * timevar.c: Fix formatting.
5137 * tlink.c: Likewise.
5138 * toplev.c: Likewise.
5139 * tree-dump.c: Likewise.
5140 * tree-inline.c: Likewise.
5141
43612ffb
NB
51422002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5143
5144 * cppinit.c (cpp_post_options): If preprocessed, turn off
5145 traditional. If traditional, turn off column numbers.
5146 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5147 * cpptrad.c (handle_newline): Update line_base.
5148 (skip_comment): Handle -Wcomment.
5149
f24a153a
ZW
51502002-05-17 Zack Weinberg <zack@codesourcery.com>
5151
5152 * cppinit.c (struct builtin): Remove unused fields.
5153 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5154 (operator_array): New - was second half of builtin_array.
5155 (init_builtins): Simplify loop over builtin_array/operator_array.
5156
12403335
NB
51572002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5158
5159 * defaults.h (UNIQUE_SECTION): Remove.
5160 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5161
1f8c3c5b
RH
51622002-05-17 Richard Henderson <rth@redhat.com>
5163
5164 * expr.c (init_expr_once): Don't use start/end_sequence.
5165 Use rtx_alloc instead of emit_insn.
5166 * toplev.c (lang_dependent_init): Run init_expr_once here ...
5167 (lang_independent_init): ... not here.
5168
4664f4c4
JT
51692002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5170
5171 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5172
93febe68
MM
51732002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
5174
5175 * config/avr/avr.c (avr_regs_to_save): New function. Also check
5176 for fixed registers, possibly used for global register variables.
5177 (initial_elimination_offset, avr_output_function_prologue,
5178 avr_output_function_epilogue): Move common code to avr_regs_to_save.
5179
004cb263
NB
51802002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5181
5182 * Makefile.in: Update for cpptrad.c.
5183 * cpphash.h (struct cpp_buffer): New members for buffer
5184 overlays.
5185 (struct cpp_reader): New members for traditional output.
5186 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5187 * cppinit.c (cpp_create_reader): Set trad_line.
5188 (cpp_destroy): Free trad_out_base if used.
5189 (cpp_read_main_file): Overlay an empty buffer if traditional.
5190 (cpp_finish_options): Don't do builtins.
5191 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5192 (cpp_handle_option): Handle it.
5193 * cpplex.c (continue_after_nul): New.
5194 (_cpp_lex_direct): Use handle_nul.
5195 * cpplib.h (struct cpp_options): New traditional option.
5196 * cpptrad.c: New file.
5197
bdcae02b
NB
51982002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5199
5200 * c-common.c (c_common_init_options): Use C89 for Objective-C,
5201 and set the options flag.
5202 * cppinit.c (lang_flags): Remove objc.
5203 (lang_defaults): Remove OBJC and OBJCXX.
5204 (set_lang): Update.
5205 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5206 (cpp_handle_option): Remove -+ and -lang-objc++.
5207 For ObjC, just set a flag.
5208 (print_help): Update.
5209 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5210
0fca60ab
RO
52112002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5212
5213 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5214 bootstrap with -mips3.
5215
dd3f0101
KH
52162002-05-17 Kazu Hirata <kazu@cs.umass.edu>
5217
5218 * final.c: Fix formatting.
5219 * fix-header.c: Likewise.
5220 * flow.c: Likewise.
5221 * fold-const.c: Likewise.
5222 * function.c: Likewise.
5223
5ca9299f
DM
52242002-05-17 David S. Miller <davem@redhat.com>
5225
5226 PR c/6689, PR optimization/6615
5227 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5228 and make it a pointer to rtx. Update comments.
5229 (update_equiv_regs): When scanning for equivalences, record
5230 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
5231 it while making the equiv replacements.
5232
508bc172
RO
52332002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5234
5235 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5236
5cd983a6
KK
52372002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
5238
5239 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5240 when encoding visibility into SYMBOL_REF_FLAG.
5241
ce0f3925
RS
52422002-05-17 Richard Sandiford <rsandifo@redhat.com>
5243
5244 * expr.c (force_operand): Fix reversed move.
5245
06809951
GP
52462002-05-17 Kurt Wall <kwall@kurtwerks.com>
5247
5248 * doc/install.texi (Testing): Mention two common DejaGnu warnings
5249 that can be ignored.
5250
52512002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5252
5253 * doc/install.texi (Final install): Recommend to install into a
5254 "clean" target directory.
5255
1d5d7a21
RH
52562002-05-17 Richard Henderson <rth@redhat.com>
5257
5258 * config/ia64/ia64.md: Use braced strings instead of quoted strings
5259 for code blocks. Tidy whitespace.
5260
ae46c4e0
RH
52612002-05-17 Richard Henderson <rth@redhat.com>
5262
5263 * hooks.c (hook_tree_bool_false): New.
5264 * hooks.h: Declare it.
5265 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5266 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5267 * target.h (select_section, unique_section): New.
5268 (in_small_data_p): New.
5269 * varasm.c (resolve_unique_section): Use hooks instead of macros.
5270 (variable_section, output_constant_def_contents): Likewise.
5271 (default_select_section, default_unique_section): New.
5272 (categorize_decl_for_section, default_elf_select_section): New.
5273 * output.h: Declare them.
5274
5275 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5276 (TARGET_ASM_SELECT_SECTION): New.
5277 (SELECT_SECTION): Move ...
5278 * config/darwin.c (machopic_select_section): ... here.
5279 * config/darwin-protos.h: Update.
5280
5281 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5282 (SELECT_SECTION): Move ...
5283 * config/nextstep.c (nextstep_select_section): ... here.
5284 * config/nextstep-protos.h: Update.
5285
5286 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5287 (TARGET_ASM_SELECT_SECTION): New.
5288 * config/svr3.h (SELECT_SECTION): Remove.
5289
5290 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5291 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5292 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5293 (alpha_encode_section_info): Use it.
5294 * config/alpha/alpha-protos.h: Update.
5295 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5296 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5297 (TARGET_ASM_SELECT_SECTION): New.
5298 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5299
5300 * config/arm/pe.h (UNIQUE_SECTION): Remove.
5301 (TARGET_ASM_UNIQUE_SECTION): New.
5302
5303 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5304 (avr_unique_section): Rename from unique_section; make static.
5305 * config/avr/avr-protos.h: Update.
5306 * config/avr/avr.h (UNIQUE_SECTION): Remove.
5307
5308 * config/c4x/c4x.h (SELECT_SECTION): Remove.
5309
5310 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5311 (TARGET_ASM_UNIQUE_SECTION): New.
5312 * config/i386/i386-interix.h: Likewise.
5313 * config/i386/win32.h: Likewise.
5314 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5315 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5316 * config/i386/sco5.h (SELECT_SECTION): Remove.
5317 (TARGET_ASM_SELECT_SECTION): New.
5318 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5319
5320 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5321 instead of SELECT_SECTION.
5322 * config/m68k/dpx2.h: Likewise.
5323 * config/rs6000/lynx.h: Likewise.
5324
5325 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5326 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5327 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5328 (ia64_in_small_data_p): New.
5329 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
5330 (ia64_aix_select_section, ia64_aix_unique_section): New.
5331 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5332 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5333
5334 * config/m32r/m32r.h (SELECT_SECTION): Remove.
5335 (TARGET_ASM_SELECT_SECTION): New.
5336 * config/m32r/m32r.c (m32r_select_section): Take align argument.
5337 * config/m32r/m32r-protos.h: Update.
5338
5339 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5340 (SELECT_SECTION): Move ...
5341 * config/m88k/m88k.c (m88k_select_section): ... here.
5342
5343 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5344 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5345 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5346 (mcore_unique_section): Make static.
5347 * config/mcore/mcore-protos.h: Update.
5348
5349 * config/mips/elf.h (UNIQUE_SECTION): Remove.
5350 (TARGET_ASM_UNIQUE_SECTION): New.
5351 * config/mips/elf64.h: Likewise.
5352 * config/mips/iris6gld.h: Likewise.
5353 * config/mips/linux.h: Likewise.
5354 * config/mips/mips-protos.h: Update.
5355 * config/mips/mips.c (mips_select_section): Add align argument.
5356 * config/mips/mips.h (SELECT_SECTION): Remove.
5357 (TARGET_ASM_SELECT_SECTION): New.
5358
5359 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5360 * config/mmix/mmix.c (mmix_select_section): Remove.
5361 (mmix_unique_section): Remove.
5362 * config/mmix/mmix-protos.h: Update.
5363
5364 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5365 (SELECT_SECTION): Move ...
5366 * config/pa/pa.c (pa_select_section): ... here.
5367 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5368
5369 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5370 from rs6000_select_section and make static.
5371 (rs6000_elf_unique_section): Similarly.
5372 (rs6000_xcoff_select_section): From xcoff.h.
5373 (rs6000_xcoff_unique_section): Likewise.
5374 * config/rs6000/rs6000-protos.h: Update.
5375 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5376 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5377 * config/rs6000/xcoff.h: Likewise.
5378
5379 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5380 (SELECT_SECTION): Move ...
5381 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5382
5383 * config/v850/v850.h (SELECT_SECTION): Move ...
5384 * config/v850/v850.c (v850_select_section): ... here.
5385 (TARGET_ASM_SELECT_SECTION): New.
5386
5387 * config/vax/vms.h (SELECT_SECTION): Move ...
5388 * config/vax/vax.c (vms_select_section): ... here.
5389 (TARGET_ASM_SELECT_SECTION): New.
5390
5391 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5392 for the target hooks.
5393
eaeb23a7
NC
53942002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
5395
5396 * config/arm/arm.c (emit_multi_reg_push): Do not set
5397 RTX_FRAME_RELATED_P on the SEQUENCE.
5398
a00fe19f
RH
53992002-05-16 Richard Henderson <rth@redhat.com>
5400
5401 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5402 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
5403
5ccff482
RH
54042002-05-16 Richard Henderson <rth@redhat.com>
5405
5406 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5407
068d7739
RH
5408 * config/ia64/ia64.c (saveable_obstack): Do not declare.
5409
0b17ab2f
RH
54102002-05-16 Richard Henderson <rth@redhat.com>
5411
5412 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5413 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5414 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5415 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5416 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5417 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5418 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5419 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5420 Revert "Basic block renumbering removal", and two followup patches.
5421
8ae86b3c
JT
54222002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5423
5424 * lcm.c (optimize_mode_switching): Revert previous change.
5425
4e9f27af
ZD
54262002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5427
5428 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5429 with only extant block numbers.
5430
3cdc1dbc
JT
54312002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5432
5433 * lcm.c (optimize_mode_switching): Fix typo.
5434
fbfb3b09
ZD
54352002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5436
5437 * flow.c (calculate_global_regs_live): Queue blocks in program order.
5438
b4b0fb02
RO
54392002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5440
5441 * doc/install.texi (Configuration): Document PWDCMD.
5442
63b827c5
DJ
54432002-05-16 Dale Johannesen <dalej@apple.com>
5444
5445 * combine.c (cant_combine_insn_p): Reenable combinations
5446 involving hard regs unless CLASS_LIKELY_SPILLED_P.
5447
748d29c1
NB
54482002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5449
5450 * c-common.c (cb_register_builtins): Handle more built-ins
5451 here rather than in gcc.c specs.
5452 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5453 (cpp_options): Pass -O flags even when only preprocessing.
5454 * toplev.c (set_fast_math_flags): New prototype.
5455 (fast_math_flags_set_p): New.
5456 (set_no_fast_math_flags): Remove.
5457 (decode_f_option): Update.
5458 * toplev.h (set_fast_math_flags): Update.
5459 (fast_math_flags_set_p): New.
5460 (set_no_fast_math_flags): Remove.
5461config:
5462 * c4x/c4x.c (c4x_override_options): Update.
5463
5279d739
ZW
54642002-05-16 Zack Weinberg <zack@codesourcery.com>
5465
5466 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5467 Default-define here.
5468 (builtin_define_with_value): Can now wrap the expansion in
5469 quotation marks if such is wanted.
a00fe19f 5470 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
5471 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5472 here.
5473 (c_common_init): Set options->stdc_0_in_system_headers.
5474 * c-lex.h: Update prototype of builtin_define_with_value.
5475 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5476 and REGISTER_PREFIX.
5477
5478 * cppinit.c (VERS, ULP, C, X): Kill.
5479 (builtin_array): Remove entries for __VERSION__,
5480 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5481 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
5482 a constant.
5483 (init_builtins): Kill off a bunch of now-dead code.
5484 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5485 -fno-leading-underscore.
5486 (cpp_handle_option): Remove code to set user_label_prefix.
5487 (cpp_post_options): Likewise.
5488
5489 * cpplib.h (struct cpp_options): Remove user_label_prefix.
5490 (stdc_0_in_system_headers): New.
5491 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5492 stdc_0_in_system_headers) too to decide the value of __STDC__.
5493
5494 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 5495 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
5496 (initialize_builtins): Don't define __REGISTER_PREFIX__
5497 or __USER_LABEL_PREFIX__.
5498 (install_value): Wrap compound statement in dummy loop so the
5499 macro works properly in an if statement.
5500
5501
62e6ca55
JJ
55022002-05-16 Janis Johnson <janis187@us.ibm.com>
5503
5504 * loop.h (struct loop_info): Add member has_prefetch.
5505 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5506 (prescan_loop): Initialize has_prefetch.
5507 (struct prefetch_info): Change prefetch_in_loop and
5508 prefetch_before_loop from bit fields to ints.
5509 (emit_prefetch_instructions): Several small fixes.
5510 (check_dbra_loop): Don't reverse loop that uses prefetch.
5511
1e6347d8
RO
55122002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5513
5514 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5515 * configure.in: Likewise.
5516 * fixinc/check.tpl: Likewise.
5517 * fixinc/fixinc.dgux: Likewise.
5518 * fixinc/fixinc.svr4: Likewise.
5519 * fixinc/fixinc.winnt: Likewise.
5520 * fixinc/fixincl.sh: Likewise.
5521 * fixproto: Likewise.
5522 * configure: Regenerate.
5523
355e4ec4
ZD
55242002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5525
5526 Basic block renumbering removal:
5527 * basic_block.h (struct basic_block_def): Renamed index to sindex,
5528 added prev_bb and next_bb fields.
5529 (n_basic_blocks): Renamed to num_basic_blocks.
5530 (last_basic_block): New, index of last basic block.
5531 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5532 traversing basic block chain.
5533 (BLOCK_NUM): index -> sindex.
5534 (create_basic_block_structure, create_basic_block): Declaration changed.
5535 (debug_num2bb): Declare.
5536 (expunge_block_nocompact): Declaration removed.
5537 (link_block, unlink_block, compact_blocks): Declare.
5538 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5539 * cfg.c (entry_exit_blocks): Initialize new fields.
5540 (clear_edges, alloc_block, expunge_block, cached_make_edge,
5541 redirect_edge_pred, dump_flow_info, dump_edge_info,
5542 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5543 free_aux_for_edges): Modified.
5544 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5545 (expunge_block_nocompact): Removed.
5546 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5547 find_unreachable_blocks, create_edge_list, print_edge_list,
5548 verify_edge_list, flow_edge_list_print, remove_fake_successors,
5549 remove_fake_edges, flow_reverse_top_sort_order_compute,
5550 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5551 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5552 flow_dfs_compute_reverse_execute): Modified.
5553 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5554 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5555 Modified.
5556 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5557 merge_blocks_move_predecessor_nojumps,
5558 merge_blocks_move_successor_nojumps, merge_blocks,
5559 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5560 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5561 * cfglayout.c (skip_insns_after_block, label_for_bb,
5562 record_effective_endpoints, scope_to_insns_finalize,
5563 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5564 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5565 cfg_layout_duplicate_bb): Modified.
5566 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5567 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5568 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5569 flow_loops_find, flow_loop_outside_edge_p): Modified.
5570 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5571 flow_delete_block, compute_bb_for_insn, split_block,
5572 try_redirect_by_replacing_jump, redirect_edge_and_branch,
5573 force_nonfallthru_and_redirect, tidy_fallthru_edge,
5574 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5575 commit_edge_insertions, commit_edge_insertions_watch_calls,
5576 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5577 purge_all_dead_edges): Modified.
5578 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5579 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5580 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5581 Modified.
5582 * conflict.c (conflict_graph_compute): Modified.
5583 * df.c (FOR_ALL_BBS): Removed.
5584 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5585 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5586 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5587 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5588 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5589 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5590 * final.c (compute_alignments, final_scan_insn): Modified.
5591 * flow.c (verify_local_live_at_start, update_life_info,
5592 update_life_info_in_dirty_blocks, free_basic_block_vars,
5593 delete_noop_moves, calculate_global_regs_live,
5594 initialize_uninitialized_subregs, allocate_bb_life_data,
5595 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5596 mark_used_reg, count_or_remove_death_notes): Modified.
5597 * function.c (thread_prologue_and_epilogue_insns): Modified.
5598 * gcse.c (struct null_pointer_info): Change typo of current_block
5599 to basic_block.
5600 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5601 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5602 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5603 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5604 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5605 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5606 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5607 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5608 pre_delete, one_pre_gcse_pass, compute_transpout,
5609 invalidate_nonnull_info, delete_null_pointer_checks_1,
5610 free_code_hoist_mem, compute_code_hoist_vbeinout,
5611 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5612 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5613 compute_store_table, build_store_vectors, insert_insn_start_bb,
5614 insert_store, replace_store_insn, free_store_memory, store_motion):
5615 Modified.
5616 * global.c (global_alloc, global_conflicts, mark_elimination,
5617 build_insn_chain): Modified.
5618 * graph.c (print_rtl_graph_with_bb): Modified.
5619 * haifa-sched.c (sched_init): Modified.
5620 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5621 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5622 if_convert): Modified.
5623 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5624 compute_insert_delete, pre_edge_lcm, compute_available,
5625 compute_farthest, compute_nearerout, compute_rev_insert_delete,
5626 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5627 Modified.
5628 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5629 * loop.c (loop_dump_aux): Modified.
5630 * predict.c (combine_predictions_for_insn, estimate_probability,
5631 last_basic_block_p, process_note_prediction, process_note_predictions,
5632 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5633 expensive_function_p, estimate_bb_frequencies,
5634 compute_function_frequency): Modified.
5635 * print-rtl.c (print_rtx): Modified.
5636 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5637 get_exec_counts, compute_branch_probabilities, compute_checksum,
5638 branch_prob, find_spanning_tree): Modified.
5639 * recog.c (split_all_insns, peephole2_optimize): Modified.
5640 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5641 convert_regs_1, convert_regs_2, convert_regs): Modified.
5642 * regclass.c (scan_one_insn, regclass): Modified.
5643 * regmove.c (mark_flags_life_zones, regmove_optimize,
5644 combine_stack_adjustments): Modified.
5645 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5646 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5647 * reorg.c (dbr_schedule): Modified.
5648 * resource.c (find_basic_block, init_resource_info): Modified.
5649 * sbitmap.c (sbitmap_intersection_of_succs,
5650 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5651 sbitmap_union_of_preds): Modified.
5652 * sched-deps.c (init_dependency_caches): Modified.
5653 * sched-ebb.c (schedule_ebbs): Modified.
5654 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5655 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5656 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5657 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5658 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5659 ssa_const_prop): Modified.
5660 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5661 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5662 * ssa.c (remove_phi_alternative, find_evaluations,
5663 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5664 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5665 make_regs_equivalent_over_bad_edges,
5666 make_equivalent_phi_alternatives_equival,
5667 compute_conservative_reg_partition,
5668 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5669 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5670 Modified.
5671
5a566bed
MM
56722002-05-16 Mark Mitchell <mark@codesourcery.com>
5673
5674 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5675
48f6efae
NC
56762002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
5677
5678 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5679 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5680 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5681 calling CONSTANT_POOL_ADDRESS_P.
5682 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5683 to decide whether to define __arm__ or __thumb.
355e4ec4 5684 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
5685 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5686
b166fadd
NB
56872002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5688
5689 * config/arc/arc.h (CPP_PREDEFINES): Remove.
5690 (CPP_SPEC): Update.
5691 (TARGET_CPU_CPP_BUILTINS): New.
5692
601328bb
NB
56932002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5694
5695 * cpphash.h (cpp_macro): Move here, and make expansion a union.
5696 * cppmacro.c (cpp_macro): Remove.
5697 (enter_macro_context, replace_args, warn_of_redefinition,
5698 _cpp_create_definition, cpp_macro_definition): Update.
5699
ff48be5c
JM
57002002-05-16 Jason Merrill <jason@redhat.com>
5701
5702 * config/mips/mips.c (mips_output_external): Don't do sdata
5703 optimization for a variable with DECL_COMDAT set.
5704
805c42ba
AH
57052002-05-15 Aldy Hernandez <aldyh@redhat.com>
5706
355e4ec4
ZD
5707 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5708 Cleanups for accepting modifiers on pointers.
5709 Fix predicate typos.
5710 Allow long pointers as well as int pointers.
805c42ba 5711
34fb9ba5
RH
57122002-05-15 Richard Henderson <rth@redhat.com>
5713
5714 * varasm.c (merge_weak): Remove special case for extern and common.
5715
62e118f5
MH
57162002-05-15 Matt Hiller <hiller@redhat.com>
5717
5718 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 5719 XFAILing.
62e118f5
MH
5720 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5721 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5722 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5723 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5724 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5725 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5726
fefac463
AH
57272002-05-15 Aldy Hernandez <aldyh@redhat.com>
5728
355e4ec4 5729 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 5730
5f004351
AH
57312002-05-15 Aldy Hernandez <aldyh@redhat.com>
5732
355e4ec4
ZD
5733 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5734 ("altivec_mfvscr"): Read from VSCR.
5735
5736 Add vscr sets for the following insns: altivec_vctuxs,
5737 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5738 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5739 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5740 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5741 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5742 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5743 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5744 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5745 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5746 altivec_vsum2sws, altivec_vsumsws.
5747
5748 * config/rs6000/rs6000.h: Add VSCR fixed register.
5749 (CALL_REALLY_USED_REGISTERS): Add vscr.
5750 (CALL_USED_REGISTERS): Same.
5751 (FIXED_REGISTERS): Same.
5752 (REG_ALLOC_ORDER): Same.
5753 (reg_class): Add VSCR_REGS.
5754 (REG_CLASS_NAMES): Same.
5755 (REG_CLASS_CONTENTS): Same.
5756 (VSCR_REGNO): New.
5757 (REGISTER_NAMES): Add vscr.
5758 (DEBUG_REGISTER_NAMES): Same.
5759 (ADDITIONAL_REGISTER_NAMES): Same.
5760 (FIRST_PSEUDO_REGISTER): Increment.
5761 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 5762
033afd11
RH
57632002-05-15 Jakub Jelinek <jakub@redhat.com>
5764
5765 * fold-const.c (fold): Fix a typo.
5766
57672002-05-15 Eric Botcazou <ebotcazou@multimania.com>
5768
5769 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5770 comparison against the highest or lowest integer value before
5771 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5772 transformation and that of an unsigned comparison against 0
5773 right after.
5774
14285ace
RH
57752002-05-15 Richard Henderson <rth@redhat.com>
5776
5777 * varasm.c (merge_weak): Error for any weakening after definition.
5778 Adjust weakening after use warning to catch more cases.
5779 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5780 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5781
194734e9
JH
5782Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5783
5784 * invoke.texi (-malign-double): Re-add lost warning.
5785
5786 * i386-protos.h (x86_output_mi_thunk): Declare.
5787 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5788 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5789
5790 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5791 when flag_asynchronous_unwind_tables is set.
5792
5793 * flags.h (flag_reorder_functions): Declare.
5794 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 5795 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
5796 * Makefile.in (predict.o): Add dependency on target.h and params.h
5797 * defaults.h (HOT_TEXT_SECTION_NAME,
5798 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5799 * predict.c (choose_function_section): New function.
5800 (estimate_bb_frequencies): Use it.
5801 * toplev.c (flag_reorder_functions): New global variable.
5802 (lang_independent_options): New.
5803 (parse_options_and_default_flags): Set.
5804 * varasm.c (assemble_start_function): Bypass functdion alignment
5805 for never executed functions.
5806 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5807 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5808 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5809 Document.
5810
5811 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
5812
5813 * predict.c: Inlude profile.h
5814 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5815 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5816 Use the information about maximal counter in the program.
5817
5818 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5819
5820 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5821 probably_never_executed_bb_p): New functions.
5822 * cfgcleanup.c (outgoing_edges_match): Use them.
5823 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5824 (maybe_hot_bb_p, probably_cold_bb_p,
5825 probably_never_executed_bb_p): New functions.
5826
5827 * function.h (function): Add new field function_frequency.
5828 * predict.c (compute_function_frequency): New function.
5829 (estimate_probability): Call it.
5830
61ad9a34
JJ
58312002-03-09 Jakub Jelinek <jakub@redhat.com>
5832
5833 PR optimization/5172, optimization/5200
5834 * gcse.c (gcse_main): Disable store_motion.
5835
a11eba95
ZW
58362002-05-14 Zack Weinberg <zack@codesourcery.com>
5837
5838 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5839 (c_common_nodes_and_builtins): Use it.
5840 (builtin_define_with_value): New function.
5841 (cb_register_builtins): Define __SIZE_TYPE__,
5842 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5843 using builtin_define_with_value. Use consistent notation when
5844 defining __GXX_WEAK__.
5845 (WCHAR_TYPE_SIZE): Don't redefine.
5846 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5847
5848 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5849 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5850 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5851 * tradcpp.c (initialize_builtins): Likewise.
5852 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5853
5854 * c-lex.h (builtin_define_with_value): Prototype.
5855 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5856 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5857 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5858
5859 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5860 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5861 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5862 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5863 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5864 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5865 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5866 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5867 to __SIZE_TYPE__ etc from all spec strings. When this makes
5868 extra specs empty, delete them.
5869
1c31ecf6
JDA
58702002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5871
5872 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5873 for PA8000 or generating dwarf2 call frame information.
5874 (output_call): Remove DO_FRAME_NOTES check from return pointer
5875 optimization.
5876 (following_call): Return 0 when scheduling for PA8000 or generating
5877 dwarf2 call frame information. Revise comment.
5878
ac9cfada
NB
58792002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5880
5881config/alpha:
5882 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5883 and __IEEE_FP_INEXACT as appropriate.
5884 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5885 (CPP_SPEC): Remove ieee defines.
5886 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5887
9b690711
RH
58882002-05-14 Richard Henderson <rth@redhat.com>
5889
5890 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5891 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5892
e6471be6
NB
58932002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5894
e6471be6
NB
5895 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5896 (CPP_SPEC): Update.
5897 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5898 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5899 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5900 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5901 (EXTRA_SPECS): Update.
5902 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5903 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5904 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5905 define TARGET_OS_CPP_BUILTINS if necessary.
5906
e5f5feea
NB
59072002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5908
5909 * gcc.c (cpp_options): Must pass -m* and -f* options
5910 to the front end even when only preprocessing.
5911 (cc1_options): Remove redundant -lang-c.
5912 * tradcpp.c (main): Ignore -m options.
5913objc:
5914 * lang-specs.h: Similarly.
5915
317638a8
VM
59162002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5917
5918 * genautomata.c (transform_3): Add code for transformation
5919 `(A,B,...)+C -> A+C,B,...'.
5920
4d604303
JH
5921Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5922
5923 * final.c (end_final): Do not output profile_arcs constructor, when
5924 no functions are instrumented.
5925
b18b06ed
JH
5926Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5927
5928 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5929
a12f97f0
GP
59302002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5931
5932 * doc/install.texi: Remove special markup originally required for
5933 HTML generation with texi2html.
5934
c1ae3eb4
AS
59352002-05-14 Andreas Schwab <schwab@suse.de>
5936
5937 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5938 SELECT_SECTION.
5939 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
5940
5941 * varasm.c (resolve_unique_section): Add third parameter
5942 flag_function_or_data_sections and use it instead of
5943 flag_function_sections.
5944 (assemble_start_function): Pass flag_function_sections.
5945 (asm_emit_uninitialised): Pass flag_data_sections.
5946 (assemble_variable): Likewise.
5947
8ee41eaf
RH
59482002-05-14 Richard Henderson <rth@redhat.com>
5949
5950 * config/i386/i386.md: Use define_constants for unspec numbers.
5951 * config/i386/i386.c: Likewise.
5952
e6471be6
NB
59532002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5954
5955 * doc/contrib.texi: Update my entry.
5956
c297b764
MM
59572002-05-13 Mark Mitchell <mark@codesourcery.com>
5958
5959 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5960 * fixinc/fixincl.x: Regenerated.
5961 * fixinc/tests/base/math.h: Update.
5962 * fixinc/tests/base/testing.h: Likewise.
5963
0b42c8f8
ZW
59642002-05-13 Zack Weinberg <zack@codesourcery.com>
5965
5966 * genattr.c (gen_attr): Don't emit a comma after the last
5967 enumerator.
5968
546c093e
RH
59692002-05-13 Richard Henderson <rth@redhat.com>
5970
5971 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5972 by non-local gotos.
5973 * recog.c (peephole2_optimize): Likewise.
5974
85be8c2d
AP
59752002-05-13 Andris Pavenis <pavenis@lanet.lv>
5976
5977 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5978 input to O_BINARY.
5979
765b8f90
JL
59802002-05-13 Jeffrey A Law (law@redhat.com)
5981
fe4b3c79
JL
5982 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5983 Update prototype and callers.
5984 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5985 the mem_set_list which reference the stack pointer, as do
5986 calls to constant functions as they may clobber outgoing
5987 argument space.
5988
16133d00
JL
5989 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5990
765b8f90
JL
5991 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5992 (ia32_multipass_dfa_lookahead): New function.
5993
63826d5b
NB
59942002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5995
5996 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5997 (translate_options): Remove 'V'.
5998 (process_command): Similarly.
5999doc:
6000 * invoke.texi: Remove documentation of 'V'.
6001
dcb41ced
UW
60022002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6003
6004 * config/s390/linux.h: Revert 2002-04-22 changes.
6005
8dfea428
SM
60062002-05-13 Scott Marks <SMarks@mobile-mind.com>
6007
6008 * config/fr30/fr30.md: Only allow splits of immediate loads
6009 if the destination is a register.
6010
12a41c22
NB
60112002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6012
6013 * Makefile.in (c-common.o, cppinit.o): Update.
6014 * c-common.c: Include except.h.
6015 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6016 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6017 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6018 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6019 CPP_PREDEFINES): Handle here.
6020config:
6021 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6022 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6023 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6024 TARGET_OS_CPP_BUILTINS.
6025 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6026 (CPP_SPEC, EXTRA_SPECS): Update.
6027 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6028 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6029 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6030 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6031 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6032doc:
6033 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6034 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6035
5692c7bc
ZW
60362002-05-12 Zack Weinberg <zack@codesourcery.com>
6037
6038 * emit-rtl.c (global_rtl): Update comment.
6039 (const_double_htab, const_double_htab_hash,
6040 const_double_htab_hash, lookup_const_double): New.
6041 (const_int_htab_hash, const_int_htab_eq): Remove const
6042 qualifiers, which cause tons of warnings with RTL checking on.
6043 (gen_rtx_CONST_DOUBLE): Deleted.
6044 (const_double_from_real_value): New function - bears some
6045 resemblance to the former immed_real_const_1.
6046 (immed_double_const): Moved here from varasm.c and
6047 simplified.
6048 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6049 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6050 (gen_rtx): Use immed_double_const.
6051 (init_emit_once): Initialize the const_double_htab. Use
6052 REAL_VALUE_FROM_INT where possible. Can now use
6053 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6054 * varasm.c (struct varasm_status): Remove x_const_double_chain.
6055 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6056 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6057 (init_varasm_status, mark_varasm_status): Don't touch
6058 x_const_double_chain.
6059
6060 * output.h: Delete prototype for clear_const_double_mem.
6061 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
6062 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
6063 const_double_from_real_value, not immed_real_const_1, and use
6064 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
6065 CONST_DOUBLE_ATOF.
6066 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6067 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6068 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6069 (gen_rtx_REG): Second arg is unsigned.
6070
6071 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6072 (excluded_rtx): New, return true for CONST_DOUBLE.
6073 (genmacro): Write nothing for excluded codes.
6074 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6075 * expr.c (expand_expr): Likewise.
6076 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6077 CONST_DOUBLE_CHAIN.
6078 * toplev.c (rest_of_compilation): Don't call
6079 clear_const_double_mem.
6080
6081 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6082 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6083 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6084 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6085 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6086 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6087 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6088 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6089
31397a7b
KG
60902002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6091
6092 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6093
1b70d38a
TT
60942002-05-12 Tom Tromey <tromey@redhat.com>
6095
6096 * tree.h (copy_node): Don't mention TREE_PERMANENT.
6097
9a5834ae
ZW
60982002-05-12 Zack Weinberg <zack@codesourcery.com>
6099
6100 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6101 (scan_comma_elt): New function. Accepts whitespace in comma lists.
6102 * gensupport.h: Prototype new routines.
6103 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
6104 use of printf.
6105 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6106 (next_comma_elt): Use scan_comma_elt.
6107
6108 * config/i386/i386.md: Use new attribute notation to break up
6109 long lines in define_attr forms.
6110
51286de6
RH
61112002-05-12 Richard Henderson <rth@redhat.com>
6112
6113 * expr.c (compress_float_constant): New.
6114 (emit_move_insn): Use it.
6115 (float_extend_from_mem): New.
6116 (init_expr_once): Initialize it.
6117 * real.c (exact_real_truncate): New.
6118
6119 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6120 dropped into memory; penalize for size.
6121 (RTX_COSTS): FLOAT_EXTEND is free.
6122 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6123 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6124
6412341e
RH
61252002-05-12 Richard Henderson <rth@redhat.com>
6126
6127 * profile.h (profile_info): Add missing extern to declaration.
6128 * profile.c (profile_info): Define it.
6129
12877f09
JDA
61302002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6131
6132 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6133 used for DImode and TImode.
6134
387f9e32
NB
61352002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
6136
6137 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6138 fake a newline.
6139
e1a0f69c
ZW
61402002-05-11 Zack Weinberg <zack@codesourcery.com>
6141
6142 * config/rs6000/rs6000.c (rs6000_default_long_calls,
6143 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6144 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6145 (rs6000_override_options): Handle -m(no-)longcall.
6146 (init_cumulative_args, output_mi_thunk): Check for both
6147 longcall and shortcall attributes on the function.
6148 (rs6000_attribute_table): Add "shortcall".
6149 (rs6000_handle_longcall_attribute): Update comment.
6150 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6151 altivec_expand_ternop_builtin): Add default clauses to switches
6152 to silence warnings.
6153
6154 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6155 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
6156 (TARGET_OPTIONS): Add longcall and no-longcall.
6157
6158 * config/rs6000/rs6000.md (call_nonlocal_sysv,
6159 call_value_nonlocal_sysv): Split by alternatives. One pair
6160 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6161 the call cookie. The other pair accepts only LR/CTR and has
6162 no restriction.
6163
6164 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6165 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6166 tmake_file.
6167 * config/rs6000/rs6000-c.c: New file.
6168 * config/rs6000/t-rs6000-c-rule: New file.
6169 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6170 Prototype rs6000_pragma_longcall.
6171
6172 * doc/extend.texi: Document shortcall attribute.
6173 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6174
9c64026d
JDA
61752002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6176
6177 * reorg.c (dbr_schedule): Remove unnecessary test.
6178
6c81a490
JH
6179Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
6180
6181 * i386.md (testsi to testqi spliters): New.
6182
6183 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
6184
6185 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6186
6187 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6188
6189 * basic-block.h: New flag EDGE_CAN_FALLTHRU
6190 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6191 that can be made fallthru.
6192
6193 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
6194
6195 * cfglayout.c (cleanup_unconditional_jumps): New static function.
6196 (cfg_layout_initialize): Use it.
4c476cf3 6197
e4447d94
MM
61982002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
6199
6200 * config/avr/avr.c (avr_mcu_types): Update supported devices.
6201 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6202 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6203
3a538a66
KH
62042002-05-11 Kazu Hirata <kazu@cs.umass.edu>
6205
6206 * dbxout.c: Fix formatting.
6207 * dependence.c: Likewise.
6208 * df.c: Likewise.
6209 * diagnostic.c: Likewise.
6210 * doloop.c: Likewise.
6211 * dominance.c: Likewise.
6212 * doschk.c: Likewise.
6213 * dwarf2asm.c: Likewise.
6214 * dwarf2out.c: Likewise.
6215 * dwarfout.c: Likewise.
6216
2292e8fc
RH
62172002-05-10 Richard Henderson <rth@redhat.com>
6218
6219 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
6220 Convert integers constants as needed. Replace "nwords" field with
6221 "sizeof_bb".
6222 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6223 * function.h: Fix typo in comment.
6224 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6225
dbfb1116
RS
62262002-05-10 Roger Sayle <roger@eyesopen.com>
6227
6228 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6229 into the equivalent (signed char)c > 0.
6230
79a497cd
JJ
62312002-05-10 Janis Johnson <janis187@us.ibm.com>
6232
6233 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6234 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6235 (struct prefetch_info): Fix spelling of member bytes_accessed.
6236 (emit_prefetch_instructions): Make dump messages more regular;
6237 restructure code to add more dump messages; use new macros for
6238 heuristics. (There are no code generation changes in any of this).
6239
6c45cb0d
DM
62402002-05-10 David S. Miller <davem@redhat.com>
6241
7440af14
DM
6242 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6243 (struct rtx_def): Update unchanging flag comment.
6244 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6245 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6246 to be handled to INSN too.
6247 (dbr_schedule): Likewise.
6248 * resource.c (next_insn_no_annul): Likewise.
6249
6c45cb0d
DM
6250 * cse.c (rtx_cost): Remove multiplication by power of 2 special
6251 casing.
6252
29f21e4f
GP
62532002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6254
6255 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6256 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6257 (possibly) work around broken /bin/sh.
6258
e4ba88da
RO
62592002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6260
6261 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6262 . as N64/N32 libgcc_s.so subdirs.
6263
4f4778ee
DM
62642002-05-10 David S. Miller <davem@redhat.com>
6265
6266 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
6267
6268 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6269 more accurately.
6270 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6271 comment.
6272 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6273 * doc/rtl.texi: Document these macros more accurately.
6274 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6275 JUMP_INSNs and CALL_INSNs.
6276 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6277 or INSN_FROM_TARGET_P if the code is appropriate.
6278
1a499b92
MM
62792002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6280
6281 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6282 before using SYMBOL_REF_FLAG (addr).
6283
6284 * config/avr/avr-protos.h (avr_io_address_p): Declare.
6285 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6286 Make non-static. Update all callers.
6287 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6288 New insns to clear/set/test a single bit in I/O address space.
6289
65212b66
KG
62902002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6291
6292 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6293
3df89291
NB
62942002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6295
6296 * Makefile.in: Update.
6297 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6298 builtin_define_std): New.
6299 (c_common_init): Register CPP builtins callback.
6300 * c-common.h (flag_iso, flag_undef): New.
6301 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6302 * c-lex.c: Don't include target.h.
6303 (cb_register_builtins): Move to c-common.c.
6304 (init_c_lex): Don't register hook here.
6305 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6306 (cpp_define, cpp_assert): Remove.
6307 * gcc.c (cc1_options): Pass -undef to front end.
6308 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6309 (TARGET_INITIALIZER): Update.
6310 * target.h (struct cpp_reader): Don't predeclare.
6311 (struct gcc_target): Remove cpp builtin hook.
6312 * tree.c (default_register_cpp_builtins): Remove.
6313doc:
6314 * tm.texi: Update.
6315
32fa4565
NB
63162002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6317
6318 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6319
23357c55
RO
63202002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6321
6322 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6323 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6324
5aa26af0
JJ
63252002-05-09 Jakub Jelinek <jakub@redhat.com>
6326
6327 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6328 * config/sparc/libgcc-sparc-glibc.ver: New file.
6329 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6330 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6331
2937267b
JJ
63322002-05-09 Jakub Jelinek <jakub@redhat.com>
6333
6334 PR target/6429
6335 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6336 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6337 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6338 base multilibs.
6339 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6340 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6341 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6342 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6343
086c0f96
RH
63442002-05-09 Richard Henderson <rth@redhat.com>
6345
6346 * config/ia64/ia64.md: Use define_constants for unspec numbers.
6347 * config/ia64/ia64.c: Likewise.
6348
a8b4881f
RS
63492002-05-09 Richard Sandiford <rsandifo@redhat.com>
6350
6351 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6352 (save_restore_insns): Likewise.
6353 (mips_expand_prologue, mips_expand_epilogue): Update callers.
6354 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6355
243e5500 6356Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 6357
af2728a4
JL
6358 * athlon.md, k6.md, pentium.md, ppro.md): New files.
6359 * i386.md: Move scheduling information into new files.
6360
890d52e8
JL
6361 * i386.md (type attribute): Add "rotate" for rotate insns.
6362 (rotate insns): Set type to "rotate".
6363 (various attributes and function units): Treat rotate like shift.
6364 (pent_pair attribute): Only rotates by one bit position are
6365 pairable.
6366 (sbb insns): Explicitly set pent_pair attribute on a couple
6367 that were missing it.
6368
f78ec36a
R
6369Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
6370
6371 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6372 make sure that buffer starts on odd word address.
6373 (sh_va_arg): Skip odd fp registers when reading a double precision
6374 value.
6375
ff431459
NB
63762002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6377
6378 * tree.h (preserve_data, object_permanent_p, type_precision):
6379 Remove.
6380
c3bf3e6e
NB
63812002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6382
6383 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6384 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6385doc:
6386 * cpp.texi: Update for removal of obsolete features.
6387
02263a8a
JH
6388Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
6389 Jeffrey A Law (law@redhat.com)
6390
6391 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
6392 the DFA interface for Pentium processors.
6393 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6394 (attr_pent_pair, ix86_pent_find_pair): Remove.
6395 (ix86_sched_reorder_pentium): Remove.
6396 (ix86_sched_reorder): Remove reordering for Pentium.
6397 * i386.md (Pentium scheduling): Rewrite using DFA description.
6398
3e638a90
JH
6399Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
6400
6401 * cfganal.c (can_fallthru): Fix fast path.
6402 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6403 with edges to the next block.
6404
b7c9bf28
JH
6405Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
6406 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
6407
6408 * final.c (end_final): Use C trees to output data structures for profiling.
6409
6410 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
6411 (profile.o): New dependency profile.h
6412 (final.o): New dependency profile.h
6413 * profile.h: New file. New global structure profile_info.
6414 * final.h (count_edges_instrumented_now): Declare.
6415 (current_function_cfg_checksum): Declare.
6416 (function_list): New structure.
6417 (functions_head, functions_tail): New static variables.
6418 (end_final): Emits more data, removed some -ax stuff.
6419 (final): Stores function names and chcksums.
6420 * gcov-io.h (__write_gcov_string): New function.
6421 (__read_gcov_string): New function.
6422 * gcov.c (read_profile): New function.
6423 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 6424 da_file.
5692c7bc
ZW
6425 (read_files): Removed da_file checking, it's done by read_profile now.
6426 * libgcc2.c (bb_function_info): New structure.
6427 (bb): New field in structure, removed some -ax stuff.
6428 (__bb_exit_func): Changed structure of da_file.
6429 * profile.c (count_edges_instrumented_now): New global variable.
6430 (current_function_cfg_checksum): New global variable.
6431 (max_counter_in_program): New global variable.
6432 (get_exec_counts): New function.
6433 (compute_checksum): New function.
6434 (instrument_edges): Sets count_edges_instrumented_now.
6435 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 6436 reading da_file.
5692c7bc
ZW
6437 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6438 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 6439 now.
5692c7bc 6440 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 6441 now.
5692c7bc 6442 * gcov.texi: Updated information about gcov file format.
b7c9bf28 6443
786de7eb
KH
64442002-05-09 Kazu Hirata <kazu@cs.umass.edu>
6445
6446 * sbitmap.c: Fix formatting.
6447 * scan.c: Likewise.
6448 * scan-decls.c: Likewise.
6449 * sched-deps.c: Likewise.
6450 * sched-ebb.c: Likewise.
6451 * sched-rgn.c: Likewise.
6452 * sched-vis.c: Likewise.
6453 * sdbout.c: Likewise.
6454 * sibcall.c: Likewise.
6455 * simplify-rtx.c: Likewise.
6456 * ssa.c: Likewise.
6457 * ssa-ccp.c: Likewise.
6458 * ssa-dce.c: Likewise.
6459 * stmt.c: Likewise.
6460 * stor-layout.c: Likewise.
6461 * stringpool.c: Likewise.
6462
b7764693
DM
64632002-05-09 David S. Miller <davem@redhat.com>
6464
6465 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6466
4e7d5d27
DM
64672002-05-07 David S. Miller <davem@redhat.com>
6468
6469 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6470 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6471 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6472 library implementation clobbers the output before the inputs
6473 are fully consumed, use stack temporary for the output.
6474
f979570e
JT
64752002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
6476
6477 * config/netbsd.h (CPP_SPEC): Remove.
6478 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6479 * config/i386/netbsd.h (CPP_SPEC): Define.
6480 * config/ns32k/netbsd.h (CPP_SPEC): Define.
6481 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6482 * config/sparc/netbsd.h (CPP_SPEC): Define.
6483 * config/vax/netbsd.h (CPP_SPEC): Define.
6484
a6a2274a
KH
64852002-05-08 Kazu Hirata <kazu@cs.umass.edu>
6486
6487 * read-rtl.c: Fix formatting.
6488 * real.c: Likewise.
6489 * recog.c: Likewise.
6490 * regclass.c: Likewise.
6491 * regmove.c: Likewise.
6492 * reg-stack.c: Likewise.
6493 * reload1.c: Likewise.
6494 * reload.c: Likewise.
6495 * resource.c: Likewise.
6496 * rtlanal.c: Likewise.
6497 * rtl.c: Likewise.
6498 * rtl-error.c: Likewise.
6499
461b48d5
JDA
65002002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6501
6502 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6503 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6504
95d075ff
BS
65052002-05-08 Bernd Schmidt <bernds@redhat.com>
6506
6507 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6508 use __SSE2__ macro instead.
6509 * config/i386/xmmintrin.h: Likewise.
6510
2d4cc6a7
JJ
65112002-05-08 Janis Johnson <janis187@us.ibm.com>
6512
6513 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6514 and use it in all invocations of these macros. Clean up comments.
6515 * rtl.c (rtl_check_failed_flag): Add an argument for the name
6516 of the flag access macro whose check failed.
6517 * doc/rtl.texi (Flags): Document additional flag uses.
6518
3f8ffc7c
RS
65192002-05-08 Robert Spier <rspier@pobox.com>
6520 Neil Booth <neil@daikokuya.demon.co.uk>
6521
6522 PR preprocessor/6521
6523 * cppfiles.c (handle_missing_header): Don't do anything
6524 different for <> includes.
6525doc:
6526 * cppopts.texi: Update documentation for -MG.
6527
b9e2d17b
NB
65282002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
6529
6530 * cpplex.c (cpp_interpret_charconst): Truncate as well as
6531 sign-extend.
6532doc:
6533 * cpp.texi: Clarify multichar charconst valuation.
6534
8d8269fa
MM
65352002-05-08 Mark Mitchell <mark@codesourcery.com>
6536
6537 * doc/invoke.texi: Document -mwindiss option.
6538
29b91443
JM
65392002-05-08 Jason Merrill <jason@redhat.com>
6540
6541 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6542
6543 * dwarf2out.c (gen_type_die): Abort on broken recursion.
6544
6545 PR c++/6381
6546 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6547 REAL_CST.
6548
6c76b950
NC
65492002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
6550
6551 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6552 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 6553 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
6554 multilibs for the Thumb.
6555
f90bf7ca
MM
65562002-05-08 Mark Mitchell <mark@codesourcery.com>
6557
6558 PR c/6569.
6559 * varasm.c (mark_weak): New function.
6560 (merge_weak): Use it. Do not call declare_weak.
6561 (declare_weak): Use merge_weak.
6562
1e150f2c
JH
6563Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6564
6565 * cse.c (dead_libcall_p): Update counts.
6566 (delete_trivially_dead_insns): Update call of dead_libcall_p.
6567
969d70ca
JH
6568Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
6569
6570 * cfglayout.c (function_tail_eff_head): Rename to ...
6571 (function_footer): ... this one.
6572 (unlink_insn_chain): New functions.
6573 (label_for_bb): Only call block_label and emit debug message.
6574 (record_effective_endpoints): Actually unlink the headers and footers.
6575 (fixup_reorder_cahin): Re-insert the unlinked sequences.
6576 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6577 * cfglayout.h (struct reorder_block_def): New fields footer/header;
6578 remove eff_head/eff_end.
6579 * rtl.h (set_first_insn): Declare.
6580 * emit-rtl.c (set_first_insn): New function.
6581
6582 * cfglayout.c (fixup_reorder_chain): Dump duplicated
6583 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6584 cfg_layout_duplicate_bb): New global function.
6585 (duplicate_insn_chain): New static function.
6586 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6587 cfg_layout_duplicate_bb): Declare.
6588 (struct reorder_block_def): Add "original" field.
6589 * emit-rtl.c (emit_copy_of_insn_after): New function.
6590 * rtl.h (emit_copy_of_insn_after): Declare.
6591
6592 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6593 (fixup_reorder_chain): properly handle edges to exit block.
6594
6595Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6596 Jan Hubicka <jh@suse.cz>
6597
6598 * basic-block.h (note_prediction_to_br_prob): declare.
6599 * c-semantics.c: Inlucde predit.h
6600 (expand_stmt): predict GOTO_STMT as not taken.
6601 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6602 (cleanup_cfg): Do not free tail_recursion_list.
6603 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6604 (flow_delete_block): Kill predictions past end of basic block.
6605 * output.h (delete_unreachable_blocks): Declare.
6606 * predict.c (predicted_by_p, process_note_predictions,
6607 process_note_prediction, last_block_p): New function.
6608 (estimate_probability): Bypass loop on PRED_CONTINUE;
6609 do not handle noreturn heuristics; kill PRED_RETURN; add
6610 PRED_EARLY_RETURN.
6611 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6612 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6613 * predict.h (IS_TAKEN): New constant.
6614 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6615 * rtl.c (NOTE_INSN_PREDICTION): New.
6616 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6617 New macro.
6618 (insn_note): add NOTE_INSN_PREDICTION.
6619 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6620 CFG; free tail_recursion_label_list.
6621 * stmt.c: Include predict.h;
6622 (return_prediction): New.
6623 (expand_value_return): Use it.
6624 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6625
41f8d041
RS
66262002-05-08 Richard Sandiford <rsandifo@redhat.com>
6627
6628 * config/mips/mips.md: Name the unspecs with define_constant.
6629 (*HILO_delay): Rename to 'hilo_delay' (no star).
6630 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6631 (reload_outdi, reload_outsi): Likewise.
6632
9cabb1d8
KH
66332002-05-07 Kazu Hirata <kazu@cs.umass.edu>
6634
6635 * toplev.c: Fix formatting.
6636
4c76f856
JJ
66372002-05-07 Janis Johnson <janis187@us.ibm.com>
6638
6639 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6640 * configure.in (ac_rtlflag_checking): New.
6641 * doc/install.texi (--enable-checking): Document RTL flag checking.
6642
44a147ad
NB
66432002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6644
6645 * c-common.c (c_common_init): Set options->unsigned_wchar.
6646 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6647 group target dependencies.
6648 (init_builtins, cpp_handle_option): Update.
6649 * cpplex.c (cpp_interpret_charconst): Update.
6650 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6651 signed_char to unsigned_char, group target dependencies.
6652 * defaults.h (WCHAR_UNSIGNED): Remove.
6653 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6654config:
6655 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6656 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6657 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6658 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6659 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6660doc:
6661 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6662
cace4f93
MM
66632002-05-07 Mark Mitchell <mark@codesourcery.com>
6664
6665 * fixinc/inclhack.def (windiss_math1): New fix.
6666 (windiss_math2): Likewise.
6667 (windiss_valist): Likewise.
6668 * fixinc/fixincl.x: Regenerated.
6669
e2ff6cee
AJ
66702002-05-07 Andreas Jaeger <aj@suse.de>
6671
6672 * genautomata.c (output_internal_min_issue_delay_func): Add
6673 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6674 (output_internal_trans_func): Likewise.
6675
bdad4be5
JL
6676Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
6677
6678 * pa.c (hppa_profile_hook): Use force_reg to get the address
6679 of the profile hook into an appropriate pseudo register.
6680
a1ffecd9
MM
66812002-05-07 Mark Mitchell <mark@codesourcery.com>
6682
6683 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6684 (LINK_START_SPEC): Handle it.
6685 (LINK_OS_SPEC): Likewise.
6686 (CPP_SPEC): Likewise.
6687 (STARTFILE_SPEC): Likewise.
6688 (LIB_SPEC): Likewise.
6689 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
6690 all platforms.
6691 (CRTSAVRES_DEFAULT_SPEC): New macro.
6692 (LIB_WINDISS_SPEC): New macro.
6693 (CPP_OS_WINDISS_SPEC): Likewise.
6694 (STARTFILE_WINDISS_SPEC): Likewise.
6695 (ENDFILE_WINDISS_SPEC): Likewise.
6696 (LINK_START_WINDISS_SPEC): Likewise.
6697 (LINK_OS_WINDISS_SPEC): Likewise.
6698 * config/rs6000/windiss.h: New file.
e2ff6cee 6699
df966bff
AH
67002002-05-07 Aldy Hernandez <aldyh@redhat.com>
6701
a5c76ee6 6702 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 6703
db84f1bd
DM
67042002-05-06 David S. Miller <davem@redhat.com>
6705
6706 * config/sparc/sparc.md (shift insns): Do not mask off
6707 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6708 take care of it.
6709
818c0c94
RH
67102002-05-06 Richard Henderson <rth@redhat.com>
6711
6712 PR c++/6212
6713 * expr.c (highest_pow2_factor_for_type): New.
6714 (expand_assignment): Use it.
6715
61e0b50f
AH
67162002-05-06 Aldy Hernandez <aldyh@redhat.com>
6717
818c0c94
RH
6718 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6719 unspec_volatile.
6720 ("altivec_mfvscr"): Same.
61e0b50f 6721
5a63e069
JJ
67222002-05-06 Janis Johnson <janis187@us.ibm.com>
6723
6724 * rtl.h (struct rtx_def): Update comments.
6725 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
6726 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
6727 RTL_FLAG_CHECK macros with list of expected RTL codes.
6728 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6729 (rtl_check_failed_flag): New.
6730 * reload1.c (reload): Use REG macro before changing rtx to MEM.
6731 (reload_cse_noop_set_p): Check rtx code before using access macro.
6732 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6733 before using access macro.
6734
4afe3952
JJ
67352002-05-06 Janis Johnson <janis187@us.ibm.com>
6736
6737 * doc/rtl.texi (Flags): Update to reflect current usage.
6738
1f77b5da
RS
67392002-05-06 Roger Sayle <roger@eyesopen.com>
6740
6741 PR opt/3995
6742 * fold-const.c (sign_bit_p): New function.
6743 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 6744 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
6745 Reapply fold when converting (A & C) == C into (A & C) != 0.
6746 (fold_binary_op_with_conditional_arg): Fix typo in comment.
6747
a5a49440
NB
67482002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6749
6750 * c-common.c (warn_multichar): New.
6751 (c_common_init): Set CPP's warn_multichar.
6752 * c-common.h (warn_multichar): New.
6753 * c-decl.c (warn_multichar): Remove.
6754 * c-lex.c (lex_charconst): Update.
6755 * c-tree.h (warn_multichar): Remove.
6756 * cppexp.c (eval_token): Sign-extend charconst value.
6757 * cppinit.c (cpp_create_reader): Set warn_multichar.
6758 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6759 each character. Update prototype. Sign-extend the result.
6760 * cpplib.h: Fix conditions.
6761 (struct cpp_options): Add new warning flag.
6762 (cpp_interpret_charconst): Update prototype.
6763doc:
6764 * cpp.texi: Update documentation.
6765
83e0be55
VM
67662002-05-06 Vladimir Makarov <vmakarov@redhat.com>
6767
6768 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6769 Fix typo in usage of allof instead of unit.
6770
688ec718
RH
67712002-05-06 Richard Henderson <rth@redhat.com>
6772
6773 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6774 and any jump or call for IN.
6775
f6536266
BS
67762002-05-06 Bernd Schmidt <bernds@redhat.com>
6777
e2ff6cee 6778 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
6779 -msse2.
6780 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 6781
0316d49b
RS
67822002-05-06 Roger Sayle <roger@eyesopen.com>
6783
6784 * fold-const.c (lshift-double): Cast the high word to an unsigned
6785 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6786 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6787 avoid compiler warning. (fold): Remove redundant code from
6788 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6789
5d50fab3
JL
67902002-05-06 Jeff Law <law@redhat.com>
6791
6792 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6793 * pa.c (pa_adjust_cost): Remove all true dependency cost
6794 adjustments. Also remove support for non-DFA scheduling.
6795 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6796 to adjust true dependency costs. Update various comments.
6797 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6798 FP ALU & MPY units into a single unit.
6799
a17a104c
CM
68002002-05-06 Catherine Moore <clm@redhat.com>
6801
6802 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 6803 to count all of the registers that will be saved.
a17a104c 6804
7799175f
JH
6805Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6806
6807 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6808
0ac941a0
DM
68092002-05-06 David S. Miller <davem@redhat.com>
6810
6811 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6812 allow result to overlap input operands in memory.
6813
95ff5d3f
NB
68142002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6815
6816doc:
6817 * cpp.texi: Update multichar charconst docs.
6818
639e8b0c
NB
68192002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6820
6821 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6822 character. Don't ignore excess characters. Treat
6823 multicharacter character constants as signed.
6824 (cpp_parse_escape): Clarify diagnostic.
6825
84ea5bc1
JJ
68262002-05-05 Jakub Jelinek <jakub@redhat.com>
6827
6828 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6829 use add instead of shift.
6830 (ashldi3_sp64): Likewise.
6831 (ashlsi3_const1, ashldi3_const1): Remove.
6832 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6833 * config/sparc/sparc.c (const1_operand): New.
6834
40cd22f2
JT
68352002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6838
cac01076
JJ
68392002-05-05 Jakub Jelinek <jakub@redhat.com>
6840
6841 PR target/6561
6842 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6843
98791e3a
RH
68442002-05-05 Richard Henderson <rth@redhat.com>
6845
6846 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6847 memory latency adjustments.
6848 (alpha_variable_issue): Remove.
6849 (alpha_use_dfa_pipeline_interface): New.
6850 (alpha_multipass_dfa_lookahead): New.
6851 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6852 include new dfa scheduling.
6853 (attr type): Add none.
6854 (blockage): Use it.
6855 * config/alpha/ev4.md: New.
6856 * config/alpha/ev5.md: New.
6857 * config/alpha/ev6.md: New.
6858
309527ce
DM
68592002-05-05 David S. Miller <davem@redhat.com>
6860
6861 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6862
68252e27
KH
68632002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6864
6865 * cse.c: Fix formatting.
6866 * emit-rtl.c: Likewise.
6867
30cc9d00
VM
68682002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6869
6870 * genautomata.c (initiate_states): Add additional guard to
6871 initialize `units_array'.
6872
deb09eff
VM
68732002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6874
6875 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6876 process_unit_to_form_the_same_automaton_unit_lists,
6877 form_the_same_automaton_unit_lists
6878 check_unit_distributions_to_automata): New prototypes and
6879 functions.
6880 (check_automata): Rename it into `check_automata_insn_issues'.
6881 (unit_decl): New fields `the_same_automaton_unit' and
6882 `the_same_automaton_message_reported_p'.
6883 (unit_decl_t): New typedef.
6884 (the_same_automaton_lists): New gloval variable.
6885 (unit_regexp, unit_set_el, units_array, units_cmp,
6886 output_get_cpu_unit_code_func): Use the typedef.
6887 (evaluate_max_reserv_cycles): Increment
6888 `description->max_insn_reserv_cycles'.
6889 (initiate_states): Don't increment `max_cycles_num'.
6890 (transform_insn_regexps): Move code around transformation of
6891 regexps from `generate'.
6892 (generate): Remove call of `transform_insn_regexps'.
6893 (expand_automata): Call `transform_insn_regexps' and
6894 `check_unit_distributions_to_automata'. Check errors before
6895 `generate'.
6896
6897 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6898 automaton `ultrasparc3_1'.
e2ff6cee 6899
2443d4e1
NB
69002002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6901
6902 * c-common.c (c_common_init): Set up CPP arithmetic.
6903 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6904 something reasonable for the host.
6905 (sanity_checks): Add checks.
6906 (cpp_read_main_file): Call sanity_checks() from here...
6907 (cpp_post_options): ... not here.
6908 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6909 * cpplib.h (struct cpp_options): New member int_precision.
6910
791a949f
FS
69112002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6912
6913 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6914
091fb516
DM
69152002-05-04 David S. Miller <davem@redhat.com>
6916
f60ebeb7
DM
6917 * config/sparc/linux.h, config/sparc/linux64.h
6918 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6919
214c6394
DM
6920 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6921 more RTX codes.
6922 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6923
091fb516
DM
6924 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6925 of SETs.
6926
f2fdc802
TJ
69272002-05-05 Tim Josling <tej@melbpc.org.au>
6928
e2ff6cee 6929 * treelang; New directory for new sample language treelang.
f2fdc802 6930
3d90d290
NB
69312002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6932
6933 * Makefile.in (c-lex.o): Update.
6934 * c-lex.c: Include target.h.
6935 (cb_register_builtins): New.
6936 (init_c_lex): Set builtins callback.
6937 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6938 * cppinit.c (init_builtins): Use callback, including for
6939 GXX_WEAK.
6940 * cpplib.h (struct cpp_callbacks): New member.
6941 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6942 (TARGET_INITIALIZER): Update.
6943 * target.h (struct gcc_target): New hook.
6944 * tree.c (default_register_cpp_builtins): New.
6945 * tree.h (default_register_cpp_builtins): New.
6946doc:
6947 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6948
625458d0
NB
69492002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6950
6951 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6952 (cpp_post_options): Move sanity checks to...
6953 (sanity_checks): New.
6954 * cpplex.c (maybe_read_ucs): Fix prototype.
6955 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6956 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6957 if necessary.
6958
916b60b7
BS
69592002-05-04 Bernd Schmidt <bernds@redhat.com>
6960
6961 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6962 builtins. Use V2DI patterns instead of TI for logical operations.
6963 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6964 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6965 (ix86_expand_builtins): Change the pattern used for movntdq.
6966 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6967 sse2_nandv2di3): New patterns.
6968 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6969 on operands.
6970 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6971 (cvtdq2pd): Correct mode on operand 1.
6972 (sse2_umulsidi3): Describe without unspec.
6973 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6974 machine modes.
6975 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6976 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6977 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6978 ashlv4si3, ashlv2di3): Use SImode for shift count.
6979 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6980 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6981 New patterns.
6982 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6983 New typedefs.
6984 (__m128i, __m128d): New macros.
6985 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6986 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6987 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6988 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6989 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 6990 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
6991 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6992 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 6993 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
6994 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6995 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6996 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6997 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6998 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6999 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7000 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7001 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7002 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7003 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7004 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7005 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7006 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7007 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7008 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7009 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7010 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7011 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7012 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7013 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7014 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7015 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7016 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7017 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7018 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7019 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7020 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7021 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7022 functions.
e2ff6cee 7023 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
7024 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7025
c26fbbca
KH
70262002-05-04 Kazu Hirata <kazu@cs.umass.edu>
7027
7028 * dwarf2out.c: Fix formatting.
7029 * varasm.c: Likewise.
7030
0387639b
DE
70312002-05-04 David Edelsohn <edelsohn@gnu.org>
7032
7033 PR c/6543
7034 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7035 clobber and use result as temporary value.
7036
8a28dbcc
JH
7037Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7038
7039 * expr.c (force_operand): Use expand_simple_* to handle more
7040 cases.
7041
4268e8bb
NB
70422002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7043
7044 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7045 and sign-extension.
7046 (lex_charconst): Update for change in prototype of
7047 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
7048 appropriately.
7049 * cpphash.h (BITS_PER_CPPCHAR_T): New.
7050 * cppinit.c (cpp_create_reader): Initialize them for no
7051 change in semantics.
7052 (cpp_post_options): Add sanity checks.
7053 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7054 and truncation issues. Calculate in type cppchar_t.
7055 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7056 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
7057 run-time dependent precision correctly. Return whether the
7058 result is signed or not.
7059 * cpplib.c (dequote_string): Use cppchar_t; update.
7060 * cpplib.h (cppchar_signed_t): New.
7061 struct cpp_options): New precision members.
7062 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 7063 * cppexp.c (eval_token): Update.
4268e8bb 7064
af54350e
DM
70652002-05-03 David S. Miller <davem@redhat.com>
7066
2ce04b6b
DM
7067 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7068 * config/sparc/sparc.c (sparc_rtx_costs): New function
7069 implementing RTX_COSTS and CONST_COSTS.
7070 * config/sparc/sparc.h (CONST_COSTS): Delete.
7071 (RTX_COSTS_CASES): Define.
7072 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7073 the work.
7074
a1d9bd0c
DM
7075 * config/sparc/sparc.md (DFA schedulers): Split out...
7076 * config/sparc/cypress.md, config/sparc/hypersparc.md,
7077 config/sparc/sparclet.md, config/sparc/supersparc.md,
7078 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7079
e87bb82e
DM
7080 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7081 checks on it, always defined for Sparc.
7082
af54350e
DM
7083 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7084 Tweak, and add more detailed comments.
7085
935bfb44
ZW
70862002-05-03 Zack Weinberg <zack@codesourcery.com>
7087
7088 * Re-apply patch accidentally reverted with
7089 DFA scheduler merge: remove all rules and variables to slurp
7090 source files out of libiberty and rebuild them with HOST_CC.
7091 ($(HOST_PREFIX_1)varray.o): New rule.
7092 (genattrtab rule): Word wrap.
7093
fa7a0712
JT
70942002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7095
7096 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7097 (CPP_SUBTARGET_SPEC): Define.
7098 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7099 cpp_subtarget specs.
7100 (CPP_SPEC): Redefine to include %(cpp_subtarget).
7101
14c93978
DM
71022002-05-03 David S. Miller <davem@redhat.com>
7103
7104 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7105 * target.h (struct gcc_target): Delete cycle_display member.
7106
14d118d6
DM
7107 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7108 (rtx_needs_barrier): Delete reference to cycle_display unspec.
7109 (ia64_sched_reorder2): Mention need for cycle display handling
7110 once such notes exist.
935bfb44 7111
b3ae1ccd
RH
71122002-05-03 Richard Henderson <rth@redhat.com>
7113
7114 * real.c (etoasc): Strip most trailing zeros for clarity.
7115 * sched-vis.c: Include real.h.
7116 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7117 * Makefile.in (sched-vis.o): Add real.h.
7118
8f39865a
DM
71192002-05-03 David S. Miller <davem@redhat.com>
7120
7121 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7122 no longer needed.
7123
b44140e7
AH
71242002-05-03 Aldy Hernandez <aldyh@redhat.com>
7125
935bfb44
ZW
7126 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7127 when we get an out of range literal.
7128 (altivec_expand_ternop_builtin): Same.
7129 (altivec_expand_unop_builtin): Same.
7130 (altivec_expand_builtin): Same, for dss.
7131 (altivec_expand_builtin): Use trees instead of rtl when
7132 determining literal argument validity.
b44140e7 7133
aaaed752
DM
71342002-05-03 David S. Miller <davem@redhat.com>
7135
7136 Delete cycle display scheduling hook.
7137 * config/ia64/ia64.c (ia64_cycle_display,
7138 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7139 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7140 and use emit_insn_before instead of ia64_emit_insn_before.
7141 * config/ia64/ia64.md (unspec usage): Delete cycle display.
7142 (cycle_display): Delete insn pattern.
7143 * config/sparc/sparc.md (unspec usage): Delete cycle display.
7144 (cycle_display): Delete insn pattern.
7145 * config/sparc/sparc.c (sparc_cycle_display,
7146 TARGET_SCHED_CYCLE_DISPLAY): Delete.
7147 * doc/md.texi (cycle_display): Don't mention.
7148 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 7149
b37c2614
RH
71502002-05-03 Richard Henderson <rth@redhat.com>
7151
7152 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7153 * recog.h: Declare them.
7154
7155 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7156 * config/sparc/sparc.md: Use store_data_bypass_p instead.
7157 * config/sparc/sparc-protos.h: Update.
935bfb44 7158
e1c1132e
JT
71592002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7160
7161 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7162 -D__arch64__. Add -D_LP64.
7163 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7164 from sparc.h.
7165 (CPP_ARCH64_SPEC): Likewise.
7166 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7167 (NO_BUILTIN_SIZE_TYPE): Undef.
7168
0b2fb0d7
VM
71692002-05-03 Vladimir Makarov <vmakarov@redhat.com>
7170
7171 * genautomata.c (min_issue_delay_pass_states): Change return type
7172 in the prototype.
7173 (min_issue_delay_pass_states): Change the algorithm.
7174 (min_issue_delay): Set up min_insn_issue_delay for the state.
7175 (output_min_issue_delay_table): Interchange the nested loops and
7176 and initiate min_insn_issue_delay for states.
935bfb44 7177
3d4ce12a
JH
7178Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
7179
7180 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
7181 jump is simplejump.
7182
7183Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
7184
7185 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
7186 sequence.
7187
b5482208
RH
71882002-05-03 Richard Henderson <rth@redhat.com>
7189
7190 PR opt/6534
7191 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7192 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7193 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7194 code before JUMP, not EARLIEST.
7195
5a3085c5
JM
71962002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
7197
7198 * c-format.c (check_format_info_main): Don't check for presence of
7199 parameter for * width until after operand number has been read,
7200 and only check for it if format parameters are available.
7201 Fixes PR c/6547.
7202
40039424
JT
72032002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7204
7205 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7206 (LINK_SPEC): Undef before defining.
7207
8157303b
JJ
72082002-05-03 Jakub Jelinek <jakub@redhat.com>
7209
7210 PR preprocessor/6489
7211 * tradcpp.c (fixup_newlines): New.
7212 (main, finclude): Use it.
7213
66319f5c
RS
72142002-05-03 Richard Sandiford <rsandifo@redhat.com>
7215
7216 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7217 * config/mips/mips.c (mips_unique_section): Strip encoding from
7218 decl name.
7219
ce8076ad
JJ
72202002-05-03 Jakub Jelinek <jakub@redhat.com>
7221
7222 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7223 mode.
7224
975c6e4e
RO
72252002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7226
7227 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7228 (Specific): Removed buildstats references.
7229 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7230 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7231 Accomodate Solaris versions beyond 8.
7232 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7233 (Specific, *-*-solaris2.8): Removed, obsolete.
7234
d70e94ec
JJ
72352002-05-03 Jakub Jelinek <jakub@redhat.com>
7236
7237 PR target/6542
7238 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7239 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7240 fill leaf_reg_remap with identity.
7241 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7242
6b148bd9
KH
72432002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7244
7245 * config/h8300/crti.asm: Remove trailing spaces.
7246 * config/h8300/h8300.c: Likewise.
7247 * config/h8300/lib1funcs.asm: Likewise.
7248
609688f3
JM
72492002-05-02 Jason Merrill <jason@redhat.com>
7250
7251 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7252 * c-decl.c (c_init_decl_processing): Use it.
7253 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7254 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7255 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7256
3b03c671
KH
72572002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7258
7259 * regrename.c: Fix formatting.
7260 * tree.c: Likewise.
7261
3b4961bd
JH
7262Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7263
7264 * i386.md (attribute memory): Handle compares properly.
7265
19cba4a0
JH
7266Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
7267
3b4961bd 7268 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
7269 to none.
7270
797a6ac1
KH
72712002-05-02 Kazu Hirata <kazu@cs.umass.edu>
7272
7273 * function.c: Fix formatting.
7274
6d0de005
JH
72752002-05-02 Jan Hubicka <jh@suse.cz>
7276
7277 * haifa-sched.c (schedule_insn): Print table of instructions and
7278 reservations.
7279 (sched_block): Do not print ready list at verbosity level 1.
7280 * sched-vis.c (print_insn): Make global.
7281 * sched-ebb.c (ebb_print_insn): Rename from...
7282 (print_insn): ... this one.
7283 * sched-int.h (print_insn): Declare
7284
0bfb9a69
RH
72852002-05-02 Richard Henderson <rth@redhat.com>
7286
7287 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7288 emitted by cycle_display.
7289
6b976d99
LR
72902002-05-02 Loren J. Rittle <ljrittle@acm.org>
7291
7292 * doc/install.texi (*-*-freebsd*): Update to latest status.
7293
0a295052
JJ
72942002-05-02 Jakub Jelinek <jakub@redhat.com>
7295
7296 PR target/6540
7297 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7298 * config/float-sparc.h: Assume 128-bit long double if
7299 __LONG_DOUBLE_128__ is defined.
7300
842d5d6c
VM
73012002-05-02 Vladimir Makarov <vmakarov@redhat.com>
7302
7303 * genattrtab.c (write_function_unit_info): Add a dummy element
7304 when num_units == 0.
7305
3d7a6309
HB
73062002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7307
7308 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7309 TYPE_MODE (double_type_node) instead of DFmode.
7310
1b6763cf
JH
7311Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
7312
7313 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7314 jumps post reload.
7315 * toplev.c (rest_of_compilation): Revert Richard's patch.
7316
b303008e
JDA
73172001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7318
7319 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7320
6ed7412a
CM
73212002-05-02 Catherine Moore <clm@redhat.com>
7322
7323 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7324
e0a2f705
KH
73252002-05-02 Kazu Hirata <kazu@hxi.com>
7326
b32d6163 7327 * combine.c: Fix comment typos.
e0a2f705
KH
7328 * expr.c: Likewise.
7329 * genautomata.c: Likewise.
7330 * stmt.c: Likewise.
7331 * tree.h: Likewise.
7332
38e23049
JM
73332002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
7334
7335 * doc/install.texi: State GNAT version requirements.
7336
40f4a97d
NC
73372002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
7338
7339 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7340 of the frame pointer or arg pointer register which strict register
7341 checking is not enabled.
7342
0d6d6892
AH
73432002-05-02 Aldy Hernandez <aldyh@redhat.com>
7344
b5482208 7345 * gcc.dg/altivec-8.c: New.
0d6d6892 7346
b5482208
RH
7347 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7348 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 7349
abaa8559
BK
73502002-05-01 Bruce Korb <bkorb@gnu.org>
7351
7352 * fixinc/check.tpl(set-writable): make sure the function exists first
7353 * fixinc/inclhack.def(alpha_assert): fix test_text
7354 * fixinc/tests/base/assert.h: add in missing result
7355
ecab2143
JL
73562002-05-01 Jeff Law <law@redhat.com>
7357
7358 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7359 'T' constraint.
7360
ea619b46
JB
73612002-05-01 Joel Brobecker <brobecker@gnat.com>
7362
7363 * dbxout.c (dbxout_type): Emit size information for range types,
7364 as well, but only when using GDB extensions.
7365
c72931a6
RH
73662002-05-01 Richard Henderson <rth@redhat.com>
7367
7368 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7369 target-independent gnu binutils date test.
7370
2150ad33
RH
73712002-05-01 Richard Henderson <rth@redhat.com>
7372
7373 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7374 info before expunging the block.
7375
1651cc96
JJ
73762002-05-01 Jakub Jelinek <jakub@redhat.com>
7377
7378 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7379 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
7380 -M -or -MM is in effect.
7381
8998d5bf
ZW
73822002-05-01 Zack Weinberg <zack@codesourcery.com>
7383
7384 * config.gcc: Correct test of --enable-obsolete. Obsolete all
7385 A29k configurations.
7386 * doc/install.texi: Update to match.
7387
a81eed10
FS
73882002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7389
7390 PR bootstrap/6514
7391 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7392 for duplicates. Always loop over whole list.
7393
8d53318f
RK
7394Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7395
7396 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7397
4109b118
JS
73982002-05-01 Joel Sherrill <joel@OARcorp.com>
7399
7400 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7401 support routines.
7402
c4a9c570
JS
74032002-05-01 Joel Sherrill <joel@OARcorp.com>
7404
7405 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7406
ea112fc4
DE
74072002-05-01 David Edelsohn <edelsohn@gnu.org>
7408
7409 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7410 (nabs_nopower): Same.
7411 (floatdisf2): New pattern.
7412 (absdi2): Convert to define_insn_and_split.
7413 (nabsdi2): Same.
7414 (trunctfsf2): Same.
7415 (floatditf2): Same.
7416 (floatsitf2): Same.
7417 (fix_trunctfdi2): Same.
7418 (fix_trunctfsi2): Same.
7419
dda78254
JM
74202002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
7421
7422 * doc/install.texi: Update Texinfo version requirement
7423 documentation.
7424
26aeede4
JJ
74252002-05-01 Jakub Jelinek <jakub@redhat.com>
7426
7427 PR target/6512, PR target/5628
7428 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7429 when memory is not aligned.
7430 (movdf_insn_v9only_vis): Likewise.
7431 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7432 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7433 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7434
9b7bc465
AH
74352002-05-01 Aldy Hernandez <aldyh@redhat.com>
7436
8998d5bf 7437 * gcc.dg/altivec-7.c: New.
9b7bc465 7438
8998d5bf 7439 * config/rs6000/altivec.h: Cleanup.
9b7bc465 7440
08b57fb3
AH
74412002-04-30 Aldy Hernandez <aldyh@redhat.com>
7442
8998d5bf
ZW
7443 * doc/invoke.texi (Option Summary): Add -mvrsave=.
7444 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 7445
8998d5bf
ZW
7446 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7447 (rs6000_altivec_vrsave_string): Same.
7448 (rs6000_override_options): Call rs6000_parse_vrsave_option.
7449 (rs6000_parse_vrsave_option): New.
7450 (rs6000_stack_info): Only generate vrsave instructions when
7451 TARGET_ALTIVEC_VRSAVE.
08b57fb3 7452
8998d5bf
ZW
7453 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7454 (rs6000_altivec_vrsave_string): Define extern.
7455 (rs6000_altivec_vrsave): Same.
7456 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 7457
8e8c38cd
RH
74582002-04-30 Richard Henderson <rth@redhat.com>
7459
7460 PR opt/6516
7461 * toplev.c (rest_of_compilation): Don't run cross-jump before
7462 bb-reorder.
7463
4be9e9cb
TR
74642002-04-30 Tom Rix <trix@redhat.com>
7465
8998d5bf 7466 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
7467 check which_alternative.
7468
1eeeb6a4
KH
74692002-04-30 Kazu Hirata <kazu@hxi.com>
7470
7471 * cpplex.c: Fix comment formatting.
7472 * function.c: Likewise.
7473 * integrate.c: Likewise.
7474 * regrename.c: Likewise.
7475 * sibcall.c: Likewise.
7476 * simplify-rtx.c: Likewise.
7477 * tree-inline.c: Likewise.
7478
ed9d6ff9
JDA
74792002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7480
7481 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7482 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7483 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7484 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7485 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7486 * pa/x-ada: New file. Define ADA_CFLAGS.
7487
1f2641b6
HPN
74882002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
7489
7490 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7491 from MMIX_LAST_REGISTER_FILE_REGNUM.
7492 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7493 (struct machine_function): New member highest_saved_stack_register
7494 previously static variable in mmix.c.
7495 (MACHINE_DEPENDENT_REORG): Define.
7496 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7497 (MMIX_OUTPUT_REGNO): New.
7498 (mmix_target_asm_function_prologue): Move calculation of last used
7499 saved-stack-register into...
7500 (mmix_machine_dependent_reorg): New function. Update to also handle
7501 !TARGET_ABI_GNU.
7502 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7503 register names, simplify somewhat by new variable regno.
7504 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
7505 register.
7506 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7507 emitting register names.
7508 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7509 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7510 Remove fixed FIXME.
7511 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7512 Declare.
7513
7514 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7515
73985940
RH
75162002-04-30 Richard Henderson <rth@redhat.com>
7517
7518 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7519 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7520 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7521 emit_tfmode_cvt): New.
7522 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7523 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7524 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7525 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7526 * config/sparc/sparc-protos.h: Update.
7527
2b46bc67
JJ
75282002-04-30 Janis Johnson <janis187@us.ibm.com>
7529
7530 * install.texi (Final install): Add to the list of info to include
7531 in a report of a successful bootstrap, and add link to 3.1 list.
7532
3d34cd91
JH
7533Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
7534
7535 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7536 (mode): Add vector modes
7537 (i387): Kill attribute.
7538 (unit): New attribute.
7539 (length_immediate): Grok new types.
7540 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7541 (modrm): Use "unit".
7542 (memory): Handle MMX/SSE properly.
7543 (scheduling descriptions): Kill uses of fop1.
7544 (sse, mmx, fp patterns): Set type and mode properly.
7545
243e5500 7546Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 7547
30482eb0
JL
7548 * pa.c (override_options): Default to PA8000 scheduling.
7549 * doc/invoke.texi (HP-PA options): Mention newly added 7300
7550 scheduling parameter.
7551
3193c415
JL
7552 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7553 handling of double precision multiplies.
7554
7555 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7556 fpdiv and fpsqrt instructions.
7557 (7200 & 7300 scheduling): Fix typo in handling of
7558 store-load and store-store penalties.
7559
c0a34cb7
GP
75602002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7561
7562 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7563 mips. Add two missing commas.
7564
8bce0628
PC
75652002-04-30 Paolo Carlini <pcarlini@unitus.it>
7566
7567 * doc/contrib.texi (Contributors): Update Paolo Carlini's
7568 and Benjamin Kosnik's entries.
7569
84643cbf
DM
75702002-04-29 David S. Miller <davem@redhat.com>
7571
7572 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7573 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7574 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7575 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7576
da6886f6
FS
75772002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7578
7579 * combine.c (find_split_point): Use gen_int_mode.
7580
fae15c93
VM
75812002-04-29 Vladimir Makarov <vmakarov@redhat.com>
7582
7583 Merging code from dfa-branch:
8998d5bf 7584
fae15c93
VM
7585 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
7586
7587 * genautomata.c (output_reserv_sets): Fix typo.
7588
7589 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
7590
7591 * genautomata.c (output_reserv_sets): Remove
7592 next_cycle_output_flag.
7593
7594 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
7595
8998d5bf
ZW
7596 * sched-rgn.c (init_ready_list): Make the DFA code handle
7597 USE/CLOBBER insns in the same way as the traditional
7598 scheduler.
7599 (new_ready): Similarly..
fae15c93
VM
7600
7601 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
7602
7603 * haifa-sched.c (schedule_block): Change the DFA state only after
7604 issuing insn.
7605
7606 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
7607
7608 * pa.c (hppa_use_dfa_pipeline_interface): New function.
7609 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7610 (override_options): Add PA7300 scheduling support.
7611 (pa_adjust_cost): Update various comments. Properly
7612 handle anti and output dependencies when using the
7613 DFA scheduler.
7614 (pa_issue_rate): Add PA7300 scheduling support.
7615 (pa_can_combine_p): Call extract_insn before calling
7616 constrain_operands (taken from mainline tree).
7617 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7618 * pa.md (cpu attr): Add 7300. Rewrite pipeline
7619 descriptions using DFA descriptions. Add PA7300
7620 scheduling support.
7621
7622 2002-03-30 David S. Miller <davem@redhat.com>
7623
7624 Add UltraSPARC-III DFA scheduling support.
7625 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7626 Update FP conditional move on register insn patterns to use it, as
7627 appropriate.
7628 (define_attr cpu): Add ultrasparc3.
7629 (define_attr us3load_type): New, update integer load patterns to
7630 set it, as appropriate.
7631 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7632 (rest): Add UltraSPARC3 scheduling description.
7633 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7634 (PROCESSOR_ULTRASPARC3): New.
7635 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7636 ({ASM,CPP}_CPU_SPEC): Likewise.
7637 (REGISTER_MOVE_COST): Likewise.
7638 (RTX_COSTS): Likewise.
7639 * config/sparc/sparc.c (sparc_override_options,
7640 sparc_initialize_trampoline, sparc64_initialize_trampoline,
7641 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7642 sparc_issue_rate): Likewise.
7643 * config/sparc/sol2.h: Likewise.
7644 * config/sparc/sol2-sld-64.h: Likewise.
7645 * config/sparc/linux64.h: Likewise.
8998d5bf 7646
fae15c93
VM
7647 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
7648
7649 * doc/md.texi: Add comments about usage the latency time for the
7650 different dependencies and about case when two or more conditions
7651 in different define_insn_reservations returns TRUE for an insn.
7652
7653 * doc/md.texi: Add reference for automaton based pipeline
7654 description.
8998d5bf 7655
fae15c93
VM
7656 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
7657
7658 * doc/passes.texi: Add missed information about genattrtab.
7659
7660 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
7661
7662 * genautomata.c (output_automata_list_transition_code): Check
7663 automata_list on NULL.
7664
7665 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
7666
7667 * genautomata.c (output_insn_code_cases,
7668 output_automata_list_min_issue_delay_code,
7669 output_automata_list_transition_code,
7670 output_automata_list_state_alts_code): Comment the functions.
7671
7672 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
7673
7674 * genautomata.c (automata_list_el_t): New typedef.
7675 (get_free_automata_list_el,free_automata_list_el,
7676 free_automata_list, automata_list_hash, automata_list_eq_p,
7677 initiate_automata_lists, automata_list_start, automata_list_add,
7678 automata_list_finish, finish_automata_lists,
7679 output_insn_code_cases, output_automata_list_min_issue_delay_code,
7680 output_automata_list_transition_code,
7681 output_automata_list_state_alts_code, add_automaton_state,
7682 form_important_insn_automata_lists): New functions and prototypes.
7683 (insn_reserv_decl): Add members important_automata_list and
7684 processed_p.
7685 (ainsn): Add members important_p.
7686 (automata_list_el): New structure.
7687 (first_free_automata_list_el, current_automata_list,
7688 automata_list_table): New global variables.
7689 (create_ainsns): Initiate member important_p.
7690 (output_internal_min_issue_delay_func): Generate the switch and
7691 call output_insn_code_cases.
7692 (output_internal_trans_func, output_internal_state_alts_func):
7693 Ditto.
7694 (generate): Call initiate_automata_lists.
7695 (automaton_states): New global variable.
7696 (expand_automata): Call form_important_insn_automata_lists.
7697 (write_automata): Call finish_automata_lists.
8998d5bf 7698
fae15c93
VM
7699 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
7700
7701 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 7702 cpu units in the sets belong the same automaton.
fae15c93
VM
7703
7704 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7705 about that cpu units in the sets belong the same automaton.
7706
7707 * doc/md.texi: Ditto.
8998d5bf 7708
2799d721
VM
7709 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
7710 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 7711
fae15c93
VM
7712 * config/sh/sh.c (sh_use_dfa_interface): New function.
7713
7714 (sh_issue_rate): New Function.
7715 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7716 TARGET_SCHED_ISSUE_RATE: define.
7717
7718 * config/sh/sh.md: Add DFA based pipeline description for SH4.
7719
8998d5bf
ZW
7720 (define_attr insn_class): New attribute used for DFA
7721 scheduling.
fae15c93
VM
7722 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7723 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7724 cmpeqdi_t): Likewise.
7725
7726 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 7727 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
7728 ex_group.
7729 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 7730
fae15c93
VM
7731 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7732
7733 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7734 break.
7735
7736 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7737
7738 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7739 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7740 necessary.
7741 (output_dfa_start_func): Initiate new variable insn_codes_length,
7742 (write_automata): Output definition of the new variable.
8998d5bf 7743
fae15c93
VM
7744 2001-10-02 David S. Miller <davem@redhat.com>
7745
7746 * haifa-sched.c (advance_one_cycle): New function.
7747 (schedule_block): Use it.
7748 (queue_to_ready): Use it, and also make sure to advance the DFA
7749 state on all stall cycles, not just those where insn_queue links
7750 are found.
7751
7752 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
7753
7754 * haifa-sched.c (max_issue): Remove last_p argument. Only return
7755 non-zero if the highest-priority instruction could be scheduled.
7756 (choose_ready): Remove last argument from max_issue call.
7757
7758 2001-09-28 David S. Miller <davem@redhat.com>
7759
7760 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7761 ultrasparc and 3 for other multi-issue sparcs.
7762
7763 2001-09-27 David S. Miller <davem@redhat.com>
7764
7765 * config/sparc/sparc.md (cycle_display): New pattern.
7766 * config/sparc/sparc.c (sparc_cycle_display): New.
7767 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7768
7769 2001-09-25 David S. Miller <davem@redhat.com>
7770
7771 Convert all of Sparc scheduling to DFA
7772 * config/sparc/sparc.md: Kill all define_function_unit
7773 directives and replace with DFA equivalent.
7774 * config/sparc/sparc.c (ultrasparc_adjust_cost,
7775 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7776 ultra_fpmode_conflict_exists, ultra_find_type,
7777 ultra_build_types_avail, ultra_flush_pipeline,
7778 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7779 ultrasparc_variable_issue, ultrasparc_sched_init,
7780 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7781 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7782 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7783 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7784 ultrasparc_store_bypass_p): New.
7785 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7786 Declare.
7787
7788 2001-09-24 David S. Miller <davem@redhat.com>
7789
7790 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7791 ready->vec[foo] not ready[foo].
7792
7793 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7794
7795 * doc/md.texi: Correct examples for define_insn_reservations
7796 `mult' and `div'.
7797
7798 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7799
7800 * genautomata.c (create_automata): Print message about creation of
7801 each automaton.
7802 (generate): Remove printing meease about creation of
7803 automata.
7804
7805 2001-09-05 David S. Miller <davem@redhat.com>
7806
7807 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7808 * config/sparc/linux64.h: Likewise.
7809
7810 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
7811
7812 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7813 schedule_block, sched_init, sched_finish): Add missed calls of
7814 use_dfa_pipeline_interface.
7815
7816 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7817 Ditto.
7818
7819 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 7820
fae15c93
VM
7821 2001-08-27 Richard Henderson <rth@redhat.com>
7822
7823 * genattr.c (main): Emit state_t even when not doing scheduling.
7824
7825 2001-08-27 Richard Henderson <rth@redhat.com>
7826
7827 * genautomata.c (expand_automata): Always create a description.
7828
7829 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7830
8998d5bf 7831 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
7832 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7833 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7834 RTL constructions.
7835
7836 * genattr.c (main): New variable num_insn_reservations. Increase
7837 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7838 pipeline hazard recognizer interface.
7839
7840 * genattrtab.h: New file.
7841
7842 * genattrtab.c: Include genattrtab.h.
7843 (attr_printf, check_attr_test, make_internal_attr,
7844 make_numeric_value): Move protypes into genattrtab.h. Define them
7845 as external.
7846 (num_dfa_decls): New global variable.
7847 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7848 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7849 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7850 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7851
7852 * genautomata.c: New file.
7853
7854 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7855
8998d5bf 7856 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
7857 automaton pipeline interface.
7858 (haifa_insn_data): Add comments for members blockage and units.
7859
7860 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7861 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7862 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7863 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7864 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7865 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7866 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7867 macros.
7868 (TARGET_SCHED): Use the new macros.
7869
7870 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7871 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7872 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7873 dfa_bubble): New members in gcc_target.sched.
7874
8998d5bf 7875 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
7876 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7877 (insn_queue): Redefine it as pointer to array.
7878 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7879 INSN_QUEUE_SIZE.
7880 (max_insn_queue_index_macro_value): New variable.
7881 (curr_state, dfa_state_size, ready_try): New varaibles for
7882 automaton interface.
7883 (ready_element, ready_remove, max_issue): New function prototypes
7884 for automaton interface.
7885 (choose_ready): New function prototype.
7886 (insn_unit, blockage_range): Add comments.
7887 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7888 FUNCTION_UNITS_SIZE == 0.
7889 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7890 actual_hazard, potential_hazard): Add comments.
7891 (insn_cost): Use cost -1 as undefined value. Remove
7892 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7893 pipeline interface.
7894 (ready_element, ready_remove): New functions for automaton
7895 interface.
7896 (schedule_insn): Add new code for automaton pipeline interface.
7897 (queue_to_ready): Add new code for automaton pipeline interface.
7898 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7899 (debug_ready_list): Print newline when the queue is empty.
7900 (max_issue): New function for automaton pipeline interface.
7901 (choose_ready): New function.
7902 (schedule_block): Add new code for automaton pipeline interface.
7903 Print ready list before scheduling each insn.
7904 (sched_init): Add new code for automaton pipeline interface.
7905 Initiate insn cost by -1.
7906 (sched_finish): Free the current automaton state and finalize
7907 automaton pipeline interface.
7908
7909 * sched-rgn.c: Include target.h.
7910 (init_ready_list, new_ready, debug_dependencies): Add new code for
7911 automaton pipeline interface.
7912
7913 * sched-vis.c: Include target.h.
7914 (get_visual_tbl_length): Add code for automaton interface.
7915 (target_units, print_block_visualization): Add comments.
7916
8998d5bf 7917 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
7918 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7919 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7920 (getruntime.o, genautomata.o): New entries.
7921 (genattrtab.o): Add new dependency file genattrtab.h.
7922 (genattrtab): Add new dependencies. Link it with `libm.a'.
7923 (getruntime.o, hashtab.o): New entries for canadian cross.
7924
7925 * doc/md.texi: Description of automaton based model.
7926
7927 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7928 Add comments.
7929 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7930 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7931 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7932 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7933 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7934 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7935 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7936 hook descriptions.
7937 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7938 MAX_DFA_ISSUE_RATE): New macro descriptions.
7939
7940 * doc/contrib.texi: Add dfa based scheduler contribution.
7941
7942 * doc/gcc.texi: Add more information about genattrtab.
7943
a2ff290c
RK
7944Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7945
7946 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7947 adjust_address_nv call.
7948
f97903cc
JJ
79492002-04-29 Janis Johnson <janis187@us.ibm.com>
7950
7951 * doc/install.texi (Testing): Provide additional information, and
7952 a stronger encouragement, for running the testsuites.
7953
f41a6bf1
DD
79542002-04-29 DJ Delorie <dj@redhat.com>
7955
7956 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7957 given in upper case.
7958
d8af0868
RO
79592002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7960
7961 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7962 Solaris 2 <widec.h> if missing.
7963 * fixinc/fixincl.x: Regenerate.
7964 * fixinc/tests/base/widec.h: New file.
7965
1034407f
NC
79662002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7967
7968 * toplev.c (f_options): Add "profile" switch so that
7969 -fno-profile can be used to disable -p.
7970
fbe5eb6d
BS
79712002-04-29 Bernd Schmidt <bernds@redhat.com>
7972
7973 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7974 UV2DImode.
7975 * tree.c (build_common_tree_nodes_2): Likewise.
7976 * tree.h (enum tree_index): Likewise.
7977 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7978
7979 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7980 entries.
7981 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7982 (ix86_expand_builtin): Add support for SSE2 builtins.
7983 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7984 (VALID_SSE_REG_MODE): Use it.
7985 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7986 (enum ix86_builtins): Add SSE2 builtins.
7987 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7988 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7989 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7990 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7991 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7992 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7993 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7994 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7995 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7996 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7997 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7998 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7999 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8000 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8001 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8002 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8003 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8004 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8005 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8006 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8007 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8008 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8009 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8010 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8011 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8012 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8013 lfence_insn): New patterns.
8014 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8015 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8016
44aefada
JH
8017Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
8018
8019 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8020
d5482cdc
GP
80212002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8022
8023 * doc/contrib.texi (Contributors): Add Paolo Carlini and
8024 Janis Johnson.
8025 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8026 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8027 and CPU instead of cpu.
8028
2c4b77f3
JH
8029Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8030
8031 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8032 variables.
8033 (lang_independent_options): Add -fif-conversion, -fif-conversion2
8034 (rest_of_compilation): Do if conversion only when asked for.
8035 (parse_options_and_default_flags): Set new variables to 1 for -O1
8036 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8037
3de72741
JH
8038Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8039
8040 * i386.c (dbx64_register_map): Fix typo.
8041
8aa18a7d
JH
8042Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8043
8044 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8045 real_one_half, real_bb_freq_max): New static variables.
8046 (debug_profile_bbauxs): Kill.
8047 (process_note_predictions): Kill unused variable.
8048 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8049 volatile double.
8050 (propagate_freq): Use REAL_ARITHMETICS.
8051 (estimate_bb_frequencies): Likevise; init new static variables.
8052 * Makefile.in (predict.o): Add dependency on real.h
8053
1bbad4c6
DM
80542002-04-28 David S. Miller <davem@redhat.com>
8055
8056 PR target/6500
8057 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8058 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
8059 several {reads,writes} instead.
8060 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8061 Define.
8062
3ef3f384
DM
80632002-04-27 David S. Miller <davem@redhat.com>
8064
8065 PR target/6494
8066 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8067 of the stack bias.
8068
8069 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8070 including signal.h and sys/ucontext.h, not needed.
8071
ec493bcb
HPN
80722002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
8073
8074 * varasm.c (output_constant_def): Correct test for not calling
8075 ENCODE_SECTION_INFO for INTEGER_CST.
8076
60284a59
NB
80772002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
8078
8079 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8080 keep most cases as function eval_token.
8081 (eval_token): New function.
8082 (_cpp_parse_expr): Read token here for improved diagnostics.
8083 Don't use op_as_text. Detect bad ':' here.
8084 (reduce): Don't detect bad ':' here.
8085 (op_as_text): Remove.
8086 * cpphash.h (_cpp_test_assertion): Change prototype.
8087 * cpplib.c (_cpp_test_assertion): Change prototype.
8088
349a4b40
RH
80892002-04-28 Richard Henderson <rth@redhat.com>
8090
8091 PR c/5154
8998d5bf 8092 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
8093 (ggc_mark_rtx_children): New.
8094
7a03f82f
JJ
80952002-04-28 Jakub Jelinek <jakub@redhat.com>
8096
8097 PR target/6496
8098 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8099 after call peepholes for UltraSPARC.
8100 (call + jump 64-bit peepholes): Remove.
8101
80103f96
FS
81022002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8103
8104 PR c/6497
8105 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8106 result as temporary value.
8107
06990986
JJ
81082002-04-28 Jakub Jelinek <jakub@redhat.com>
8109
8110 PR c++/6396
8111 * toplev.c (rest_of_compilation): Only run regrename and copy
8112 propagation if optimizing.
8113
a20fd5ac
JJ
81142002-04-28 Jakub Jelinek <jakub@redhat.com>
8115
8116 PR optimization/6475
8117 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8118 register of REGNO_DECL (i).
8119 * Makefile.in (reload1.o): Add $(TREE_H).
8120
87ed109f
NB
81212002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
8122
8123 * cppexp.c (lex): Update to use state.skip_eval.
8124 (struct op): Remove prio and flags members.
8125 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8126 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8127 (LEFT_ASSOC): New macro.
8128 (optab): New table of operator priorities and flags.
8129 (SHIFT): Update.
8130 (_cpp_parse_expr): Clean up logic. Return bool. Use a
8131 malloc-ed parser stack.
8132 (reduce): New; reduce the operator stack.
8133 (_cpp_expand_op_stack): Expand the operator stack as necessary.
8134 * cpphash.h (struct op): Predeclare.
8135 (struct cpp_reader): New members op_stack, op_limit.
8136 (struct lexer_state): New member skip_eval.
8137 (_cpp_parse_expr): Update.
8138 (_cpp_expand_op_stack): New.
8139 * cpplib.c (do_if): Update.
8140 * cppinit.c (cpp_create_reader): Create op stack.
8141 (cpp_destroy): And destroy it.
8142 * cpplib.h (CPP_LAST_CPP_OP): Correct.
8143 (TTYPE_TABLE): Correct.
8144
45806a3f
FS
81452002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8146
8147 PR c/6343
8148 * c-decl.c (duplicate_decls): Call merge_weak.
8149 * c-pragma.c (apply_pragma_weak): Warn about misuse.
8150 * output.h (merge_weak): Prototype merge_weak.
8151 * varasm.c (merge_weak): New function.
8152 (declare_weak): Make sure we don't give an error on VAR_DECLs.
8153 Mark RTL with SYMBOL_REF_WEAK.
8154
a6227154
KG
81552002-04-27 Kurt Garloff <garloff@suse.de>
8156
8157 * tree-inline.c (inlinable_function_p): Improve heuristics
8158 by using a smoother function to cut down allowable inlinable size.
8159 * param.def: Add parameters max-inline-insns-single,
8160 max-inline-slope, min-inline-insns that determine the exact
8161 shape of the above function.
8162 * param.h: Likewise.
8163
94a50397
RH
81642002-04-26 Richard Henderson <rth@redhat.com>
8165
8166 * c-parse.in (malloced_yyss, malloced_yyvs): New.
8167 (yyoverflow): Re-add. Set them.
8168 (free_parser_stacks): New.
8169 * c-common.h: Declare it.
8170 * c-lex.c (c_common_parse_file): Call it.
8171
9c0a0632
RH
81722002-04-26 Richard Henderson <rth@redhat.com>
8173
8174 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8175 for fallthru search.
8176
b875d2ee
EC
81772002-04-26 Eric Christopher <echristo@redhat.com>
8178
8179 PR optimization/3700
8180 * config/mips/mips.c (mips_issue_rate): Define. New function.
8181 (TARGET_SCHED_ISSUE_RATE): Use.
8182
1db828df
DM
81832002-04-25 David S. Miller <davem@redhat.com>
8184
8185 PR target/6422
8186 * reorg.c (optimize_skip): Do not allow exception causing
8187 instructions to be considered for delay slots.
8188 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8189 (relax_delay_slots): Do not try to consider exception causing
8190 instructions as redundant.
8191
ae5d234e
RH
81922002-04-26 Richard Henderson <rth@redhat.com>
8193
8194 PR c/5225
8195 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8196
7d793e9b
MM
81972002-04-26 Mark Mitchell <mark@codesourcery.com>
8198
8199 PR bootstrap/6445
8200 * config/i386/i386.md (untyped_call): Return the value in a float
8201 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8202 TARGET_80387.
8203
b13ab42c
AO
82042002-04-26 Alexandre Oliva <aoliva@redhat.com>
8205
8206 * tree.c (tree_int_cst_lt): Compare constants whose types differ
8207 in unsigned-ness correctly.
8208
5e56f909
JDA
82092002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8210
8211 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8212 portable runtime model.
8213
bde3c0c0
RH
82142002-04-26 Richard Henderson <rth@redhat.com>
8215
a6227154 8216 * c-parse.in (yyoverflow): Revert.
bde3c0c0 8217
5276df18
DE
82182002-04-26 David Edelsohn <edelsohn@gnu.org>
8219 Richard Henderson <rth@redhat.com>
8220
8221 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8222 result as temporary value.
8223
b84a3874
RH
82242002-04-26 Richard Henderson <rth@redhat.com>
8225
8226 PR c/3581
8227 * c-common.c (fix_string_type): Split out of ...
8228 (combine_strings): ... here. Take a varray, not a tree list.
8229 (c_expand_builtin_printf): Use fix_string_type.
8230 * c-common.h: Update decls.
8231 * c-parse.in (string): Remove. Update all uses to use STRING
8232 instead, and not call combine_strings.
8233 (yylexstring): New.
8234 (_yylex): Use it.
8235 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8236 (build_asm_stmt): Likewise.
8237 * objc/objc-act.c (my_build_string): Use fix_string_type.
8238 (build_objc_string_object): Build varray for combine_strings.
8239
d8ae8cd4
BT
82402002-04-26 Bo Thorsen <bo@suse.co.uk>
8241
8242 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8243 x86-64.
8244
f8b954fc
NB
82452002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
8246
8247 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8248 (HAVE_NO_R_OPERAND): Remove.
8249 (HAVE_VALUE): Remove.
8250 (op_to_prio): Update.
8251 (UNARY): Don't alter flags.
8252 (_cpp_parse_expr): want_value used to indicate whether
8253 a number or unary operator is expected next. Distinguish
8254 unary and binary +/-.
8255 (op_as_text): Update for unary operators.
8256
6052bef0
RH
82572002-04-25 Richard Henderson <rth@redhat.com>
8258
8259 PR c/2161
8260 * c-parse.in (yyoverflow): New.
8261
5c5b2283
RH
82622002-04-25 Richard Henderson <rth@redhat.com>
8263
8264 PR c/2098
8265 * c-common.c (shorten_compare): Simplfy conditions leading to
8266 the generation of a warning.
8267
28ce94d4
RH
82682002-04-25 Richard Henderson <rth@redhat.com>
8269
8270 PR c/2035
8271 * expmed.c (extract_bit_field): Fall through to generic code rather
8272 than aborting on subreg special case.
8273
6bfd0c63
DM
82742002-04-25 David S. Miller <davem@redhat.com>
8275
8276 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8277 for DECL being NULL.
8278
7a430e3b
SC
82792002-04-25 Steve Christiansen <smc@us.ibm.com>
8280
8281 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8282
45c42d7d
EB
82832002-04-25 Eric Botcazou <ebotcazou@multimania.com>
8284
8285 * c-decl.c (grokdeclarator): Remove outdated ??? note
8286 on invalid declaration of flexible array members.
8287
eb7715a4
RH
82882002-04-25 Richard Henderson <rth@redhat.com>
8289
8290 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8291
cf5ee720
UW
82922002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8293
8294 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8295 needed by the compiler, even if they are used as global regs.
8296
d604bca3
MH
82972002-04-25 Matt Hiller <hiller@redhat.com>
8298
8299 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8300 functions.
8301 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8302 of the corresponding functions.
8303 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8304 New prototypes.
b875d2ee 8305
d604bca3
MH
83062002-04-25 Matt Hiller <hiller@redhat.com>
8307
8308 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8309
8310 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8311 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8312 registers, adjust comment accordingly.
8313 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8314 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8315 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8316 for coprocessor registers.
8317 (ADDITIONAL_REGISTER_NAMES): Include
8318 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 8319
d604bca3
MH
8320 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8321 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8322 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8323 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8324 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8325
8326 (mips_char_to_class): Adjust comment to include coprocessor
8327 constraint letters.
8328
8329 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8330 New functions.
8331 (mips_reg_names, mips_regno_to_class): Include coprocessor
8332 information.
8333 (mips_sw_reg_names): Ditto, make non-static.
8334 (mips_move_1word): Handle moves to and from coprocessor registers.
8335 (mips_move_2words): Handle moves to and from coprocessor
8336 registers.
8337 (mips_class_max_nregs, mips_register_move_cost): Handle
8338 coprocessor register classes.
8339 (override_options): Initialize mips_char_to_class and
8340 mips_hard_regno_mode_ok properly for coprocessor registers.
8341
8342 * config/mips/mips.md (movdi_internal, movdi_internal2,
8343 movsi_internal1, movsi_internal2): Add constraint-sets for
8344 coprocessor registers.
8345 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8346 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8347 isn't mips.
8348 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8349 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8350 isn't mips.
8351 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8352 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8353 isn't mips.
8354 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8355 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8356 isn't mips.
b875d2ee 8357
d604bca3
MH
8358 * doc/tm.texi: Document feature.
8359
b9a26d09
NB
83602002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8361
8362 * integrate.c (function_attribute_inlinable_p): Simplify.
8363 Check the table pointer is not NULL.
8364
ab5973b7
SB
83652002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
8366
8367 * doc/c-tree.texi: Fix typo in introduction.
8368
ff45c01e
NB
83692002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8370
8371 * c-common.h (c_common_parse_file): Update.
8372 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8373 * c-lex.c (YYDEBUG): Get from c-lex.h.
8374 (c_common_parse_file): Update.
8375 * c-lex.h (YYDEBUG, yydebug): New.
8376 * c-parse.in (YYDEBUG): Get from c-lex.h.
8377 (c_set_yydebug): Remove.
8378 * c-tree.h (c_set_yydebug): Remove.
8379 * langhooks-def.h (lhd_do_nothing_i): New.
8380 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8381 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8382 * langhooks.c (lhd_do_nothing_i): New.
8383 (lhd_set_yydebug): Remove.
8384 * langhooks.h (struct lang_hooks): Update.
8385 * toplev.c (set_yydebug): New.
8386 (compile_file): Update call to parse_file hook.
8387 (decode_d_option): Update.
8388objc:
8389 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8390
fcae219a
R
8391Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
8392
8393 * loop.c (load_mems): Don't change the interface of called functions.
8394
8395 * calls.c (expand_call): Take current_function_pretend_args_size
8396 into account when setting argblock for sibcalls.
8397
d0fea45a
MH
83982002-04-24 Matt Hiller <hiller@redhat.com>
8399
8400 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8401 * c-lex.c: Ditto.
8402
8403 * cpplex.c (skip_line_comment): Process comment one multibyte
8404 character at a time rather than one char at a time, if
8405 appropriate.
8406 (parse_string): Process string one multibyte character at a time
8407 rather than one char at a time, if appropriate.
8408 * c-lex.c (lex_string): Lex and copy multibyte strings
8409 appropriately.
8410 * cpplib.h (cppchar_t): Change to unsigned.
8411
2d1b5436
RH
84122002-04-24 Richard Henderson <rth@redhat.com>
8413
8414 PR c/3467
8415 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8416 for c99.
8417
5e039e6b
R
8418Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
8419
8420 * sh.c (sh_va_arg): If argument was passed by reference,
8421 dereference the pointer.
309d8365
R
8422
8423 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
8424
8425 * sh.md (divsi3_i4_media): Use match_operand for input values
8426 rather than hard registers.
8427 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8428 unnecessarily through hard registers. Keep copies of pseudo
8429 registers outside of the libcall sequence.
8430
8431 * sh.md (casesi_shift_media): Add modes.
b700634a
R
8432
8433 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8434 values in memory.
8435
349ae713
NB
84362002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
8437
8438 * attribs.c (c_common_attribute_table): Move table and handlers
8439 to c-common.c.
8440 (format_attribute_table, lang_attribute_table,
8441 lang_attribute_common): Remove.
8442 (init_attributes): Replace NULL pointers with pointers to the
8443 empty table.
8444 (handle_packed_attribute, handle_nocommon_attribute,
8445 handle_common_attribute, handle_noreturn_attribute,
8446 handle_noinline_attribute, handle_always_inline_attribute,
8447 handle_used_attribute, handle_unused_attribute,
8448 handle_const_attribute, handle_transparent_union_attribute,
8449 handle_constructor_attribute, handle_destructor_attribute,
8450 handle_mode_attribute, handle_section_attribute,
8451 handle_aligned_attribute, handle_weak_attribute,
8452 handle_alias_attribute, handle_visibility_attribute,
8453 handle_no_instrument_function_attribute, handle_malloc_attribute,
8454 handle_no_limit_stack_attribute, handle_pure_attribute,
8455 handle_deprecated_attribute, handle_vector_size_attribute,
8456 vector_size_helper): Move to c-common.c.
8457 * c-common.c (c_common_attribute_table,
8458 handle_packed_attribute, handle_nocommon_attribute,
8459 handle_common_attribute, handle_noreturn_attribute,
8460 handle_noinline_attribute, handle_always_inline_attribute,
8461 handle_used_attribute, handle_unused_attribute,
8462 handle_const_attribute, handle_transparent_union_attribute,
8463 handle_constructor_attribute, handle_destructor_attribute,
8464 handle_mode_attribute, handle_section_attribute,
8465 handle_aligned_attribute, handle_weak_attribute,
8466 handle_alias_attribute, handle_visibility_attribute,
8467 handle_no_instrument_function_attribute, handle_malloc_attribute,
8468 handle_no_limit_stack_attribute, handle_pure_attribute,
8469 handle_deprecated_attribute, handle_vector_size_attribute,
8470 vector_size_helper): Move from attribs.c.
8471 * c-common.h (c_common_attribute_table,
8472 c_common_format_attribute_table): New.
8473 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8474 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8475 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8476 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8477 (LANG_HOOKS_INITIALIZER): Update.
8478 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8479 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8480 * target.h: Update comment.
8481 * tree.c (default_target_attribute_table): Remove.
8482 * tree.h (default_target_attribute_table, format_attribute_table,
8483 lang_attribute_table, lang_attribute_common): Remove.
8484objc:
8485 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8486 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8487
84f0ace0
JM
84882002-04-24 Jason Merrill <jason@redhat.com>
8489
8490 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8491 * dwarf2out.c (dwarf_attr_name): Support it.
8492 (gen_array_type_die): Emit it.
8493 (lookup_type_die): No special handling for VECTOR_TYPE.
8494 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8495
120eaf28
RH
84962002-04-24 Richard Henderson <rth@redhat.com>
8497
8498 * config/mips/mips.md (movdi_usd): Renumber.
8499
e732178c
DM
85002002-04-24 David S. Miller <davem@redhat.com>
8501
8502 PR target/6420
8503 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8504 32-bit Sparc and current_function_returns_struct is true.
8505
e879eb2f
JH
8506Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8507
8508 * loop.c (canonicalize_condition): Use gen_int_mode.
8509
4287a893
AH
85102002-04-24 Aldy Hernandez <aldyh@redhat.com>
8511
8512 * config/rs6000/altivec.h: Cleanup file. Add non individual
8513 variants.
8514 (vec_vaddubm): New.
8515 (vec_vadduhm): New.
8516 (vec_vadduwm): New.
8517 (vec_vaddfp): New.
8518 (vec_vaddcuw): New.
8519 (vec_vaddubs): New.
8520 (vec_vaddsbs): New.
8521 (vec_vadduhs): New.
8522 (vec_vadduws): New.
8523 (vec_vaddsws): New.
8524 (vec_vand): New.
8525 (vec_vandc): New.
8526 (vec_vavgub): New.
8527 (vec_vavgsb): New.
8528 (vec_vavguh): New.
8529 (vec_vavgsh): New.
8530 (vec_vavguw): New.
8531 (vec_vavgsw): New.
8532 (vec_vrfip): New.
8533 (vec_vcmpbfp): New.
8534 (vec_vcmpequb): New.
8535 (vec_vcmpequh): New.
8536 (vec_vcmpequw): New.
8537 (vec_vcmpeqfp): New.
8538 (vec_vcmpgefp): New.
8539 (vec_vcmpgtub): New.
8540 (vec_vcmpgtsb): New.
8541 (vec_vcmpgtuh): New.
8542 (vec_vcmpgtsh): New.
8543 (vec_vcmpgtuw): New.
8544 (vec_vcmpgtsw): New.
8545 (vec_vcmpgtfp): New.
8546 (vec_vcmpgefp): New.
8547 (vec_vcfux): New.
8548 (vec_vcfsx): New.
8549 (vec_vctsxs): New.
8550 (vec_vctuxs): New.
8551 (vec_vexptefp): New.
8552 (vec_vrfim): New.
8553 (vec_lvx): New.
8554 (vec_lvebx): New.
8555 (vec_lvehx): New.
8556 (vec_lde): Add vector float variant.
8557 (vec_lvewx): New.
8558 (vec_lvxl): New.
8559 (vec_vlogefp): New.
8560 (vec_vmaddfp): New.
8561 (vec_vmhaddshs): New.
8562 (vec_vmaxub): New.
8563 (vec_vmaxsb): New.
8564 (vec_vmaxuh): New.
8565 (vec_vmaxsh): New.
8566 (vec_vmaxuw): New.
8567 (vec_vmaxsw): New.
8568 (vec_vmaxsw): New.
8569 (vec_vmaxfp): New.
8570 (vec_vmrghb): New.
8571 (vec_vmrghh): New.
8572 (vec_vmrghw): New.
8573 (vec_vmrglb): New.
8574 (vec_vmrglh): New.
8575 (vec_vmrglw): New.
8576 (vec_vminub): New.
8577 (vec_vminsb): New.
8578 (vec_vminuh): New.
8579 (vec_vminsh): New.
8580 (vec_vminuw): New.
8581 (vec_vminsw): New.
8582 (vec_vminfp): New.
8583 (vec_vmladduhm): New.
8584 (vec_vmhraddshs): New.
8585 (vec_msumubm): New.
8586 (vec_vmsummbm): New.
8587 (vec_vmsumuhm): New.
8588 (vec_vmsumshm): New.
8589 (vec_vmsumuhs): New.
8590 (vec_vmsumshs): New.
8591 (vec_vmuleub): New.
8592 (vec_vmulesb): New.
8593 (vec_vmuleuh): New.
8594 (vec_vmulesh): New.
8595 (vec_vmuloub): New.
8596 (vec_mulosb): New.
8597 (vec_vmulouh): New.
8598 (vec_vmulosh): New.
8599 (vec_vnmsubfp): New.
8600 (vec_vnor): New.
8601 (vec_vor): New.
8602 (vec_vpkuhum): New.
8603 (vec_vpkuwum): New.
8604 (vec_vpkpx): New.
8605 (vec_vpkuhus): New.
8606 (vec_vpkshss): New.
8607 (vec_vpkuwus): New.
8608 (vec_vpkswss): New.
8609 (vec_vpkshus): New.
8610 (vec_vpkswus): New.
8611 (vec_vperm): New.
8612 (vec_vrefp): New.
8613 (vec_vrlb): New.
8614 (vec_vrlh): New.
8615 (vec_vrlw): New.
8616 (vec_vrfin): New.
8617 (vec_vrsqrtefp): New.
8618 (vec_vsel): New.
8619 (vec_vslb): New.
8620 (vec_vslh): New.
8621 (vec_vslw): New.
8622 (vec_vsldoi): New.
8623 (vec_vsl): New.
8624 (vec_vslo): New.
8625 (vec_vspltb): New.
8626 (vec_vsplth): New.
8627 (vec_vspltw): New.
8628 (vec_vspltisb): New.
8629 (vec_vspltish): New.
8630 (vec_vspltisw): New.
8631 (vec_vsrb): New.
8632 (vec_vsrh): New.
8633 (vec_vsrw): New.
8634 (vec_vsrab): New.
8635 (vec_vsrah): New.
8636 (vec_vsraw): New.
8637 (vec_vsr): New.
8638 (vec_vsro): New.
8639 (vec_stvx): New.
8640 (vec_stvebx): New.
8641 (vec_stvehx): New.
8642 (vec_stvewx): New.
8643 (vec_stvxl): New.
8644 (vec_vsububm): New.
8645 (vec_vsubuhm): New.
8646 (vec_vsubuwm): New.
8647 (vec_vsubfp): New.
8648 (vec_vsubcuw): New.
8649 (vec_vsububs): New.
8650 (vec_vsubsbs): New.
8651 (vec_vsubuhs): New.
8652 (vec_vsubshs): New.
8653 (vec_vsubuws): New.
8654 (vec_vsubsws): New.
8655 (vec_vsum4ubs): New.
8656 (vec_vsum4sbs): New.
8657 (vec_vsum4shs): New.
8658 (vec_vsum2sws): New.
8659 (vec_vsumsws): New.
8660 (vec_vrfiz): New.
8661 (vec_vupkhsb): New.
8662 (vec_vupkhpx): New.
8663 (vec_vupkhsh): New.
8664 (vec_vupklsb): New.
8665 (vec_vupklpx): New.
8666 (vec_vupklsh): New.
8667 (vec_vxor): New.
8668
cff27795
EB
86692002-04-23 Eric Botcazou <ebotcazou@multimania.com>
8670
8671 PR c/5430
8672 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8673 added literals from substracted literals.
8674 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8675 (fold) [associate]: Preserve MINUS_EXPR if needed.
8676
952bca84
ZW
86772002-04-23 Zack Weinberg <zack@codesourcery.com>
8678
8679 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8680 are obsoleted.
8681
50cb2154
TT
86822002-04-23 Tom Tromey <tromey@redhat.com>
8683
8684 * gcc.c: Added --resource. For PR java/6314.
8685
271f61fb
DB
86862002-04-23 David O'Brien <obrien@FreeBSD.org>
8687
9566d1e9 8688 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
8689 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8690 these libraries.
8691
bdabbc80
DB
86922002-04-23 David O'Brien <obrien@FreeBSD.org>
8693
8694 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8695
74411039
JH
8696Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8697
8698 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8699 workaround.
8700 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8701 (ix86_expand_clrstr): Fix typo.
8702 * loop.c (gen_load_of_final_value): New.
8703 (loop_givs_rescan, strength_reduce, check_dbra_loop):
8704 Use it.
8705
1a887f86
RS
87062002-04-23 Roger Sayle <roger@eyesopen.com>
8707
8708 * builtins.c (builtin_memset_gen_str): New function.
8709 (expand_builtin_memset): Optimize the case of constant length, but
8710 unknown value.
8711
8d3441e0
AH
87122002-04-23 Aldy Hernandez <aldyh@redhat.com>
8713
cff27795
EB
8714 * config/rs6000/altivec.h (vec_step): Remove extraneous
8715 parentheses.
8716 (vec_ctu): Cast return.
8d3441e0 8717
f6f315fe
AM
87182002-04-23 Alan Modra <amodra@bigpond.net.au>
8719
8720 PR target/6413
8721 * function.h: (struct function): Add profile_label_no field.
8722 (current_function_profile_label_no): Define.
8723 * function.c: (profile_label_no): New static var.
8724 (expand_function_start): Increment it, and copy to
8725 current_function_profile_label_no.
8726 * output.h (profile_label_no): Delete.
8727 * final.c (profile_label_no): Delete.
8728 (profile_function): Use current_function_profile_label_no.
8729 (final_end_function): Don't increment profile_label_no here.
8730 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8731 profile_label_no with current_function_profile_label_no.
8732 * config/pa/pa.c (current_function_number): Delete.
8733 (pa_output_function_prologue): Don't output profile label here.
8734 (hppa_profile_hook): Use label_no param rather than
8735 current_function_number.
8736 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8737 * config/pa/pa.h: .. here.
8738 (FUNCTION_PROFILER): Output profile label here.
8739
d239cdc0
EC
87402002-04-22 Eric Christopher <echristo@redhat.com>
8741
8742 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8743 patch of 2002-04-09 due to binutils issues.
8744 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8745
04428ad4
AH
87462002-04-22 Aldy Hernandez <aldyh@redhat.com>
8747
cff27795
EB
8748 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8749 constraint to 'o' for m=r and r=m alternatives.
8750 ("*movv8hi_internal1"): Same.
8751 ("*movv16qi_internal1"): Same.
8752 ("*movv4sf_internal1"): Same.
04428ad4 8753
2adc7f12
JJ
87542002-04-22 Janis Johnson <janis187@us.ibm.com>
8755
8756 * rtl.h (RTX_FLAG): New macro.
8757 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8758 * final.c (alter_subreg): Use macro to access rtx flag.
8759 * integrate.c (copy_rtx_and_substitute): Use new access macro.
8760 * print-rtl.c (print_rtx): Use new access macro.
8761
8762 * cse.c (insert): Check rtx code before accessing flag.
8763
8764 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8765 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8766 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8767 convert_const_symbol_ref, make_canonical, make_alternative_compare,
8768 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8769 simplify_test_exp, optimize_attrs, simplify_by_exploding,
8770 find_and_mark_used_attributes, unmark_used_attributes,
8771 add_values_to_cover, simplify_with_current_value,
8772 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8773 copy_rtx_unchanging, main): Use new access macros.
8774
b7c89afe
TR
87752002-04-22 Tom Rix <trix@redhat.com>
8776
8777 * expmed.c (init_expmed): Generate shifted constant once.
8778
9340544b
ZW
87792002-04-22 Zack Weinberg <zack@codesourcery.com>
8780
8781 * c-lex.c (lex_charconst): Call convert to get constant in
8782 proper type; don't just smash the type field.
8783 Fixes PR c/6300.
8784
8785 * config.gcc: Add list of obsolete configurations. Disallow
8786 building these without --enable-obsolete.
8787 * doc/install.texi: Document --enable-obsolete and obsoletion
8788 policy. Mention obsoletion of individual targets in
8789 appropriate places.
8790
f942d7a5
RH
87912002-04-22 Richard Henderson <rth@redhat.com>
8792
8793 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8794
87952002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
8796
8797 PR f/6138.
8798 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8799 (walk_fixup_memory_subreg): Likewise.
8800 (fixup_var_refs_insn): Adjust accordingly.
8801 (fixup_var_refs_1): Likewise.
8802
232b0b45
UW
88032002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8804
8805 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8806 LIBPATH_ARCH64_SPEC): Define.
8807 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8808 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8809 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8810 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8811
1b61552b
JS
88122002-04-22 Joel Sherrill <joel@OARcorp.com>
8813
8814 * gthr-rtems.h: Correct prototypes to remove warnings.
8815
0fe854a7
RH
88162002-04-22 Richard Henderson <rth@redhat.com>
8817
8818 PR c/6344
8819 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8820
8821 * gcse.c (free_insn_expr_list_list): New.
8822 (clear_modify_mem_tables): Use it. Fix bit set usage.
8823 (canon_list_insert): Use EXPR_LISTs for expressions.
8824 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8825
af0d16cd
NB
88262002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8827
8828 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8829 file change and include code to _cpp_pop_buffer.
8830 * cpphash.h (struct pending_option): Predeclare.
8831 (struct cpp_reader): New member next_include_file.
8832 (_cpp_pop_file_buffer): Update.
8833 (_cpp_push_next_buffer): Update, rename.
8834 * cppinit.c (cpp_destroy): Free include chain and pending here.
8835 (cpp_finish_options): Simplify.
8836 (_cpp_push_next_buffer): Rename and clean up.
8837 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8838 Clarify.
8839 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8840
0d918572
AH
88412002-04-22 Aldy Hernandez <aldyh@redhat.com>
8842
0fe854a7
RH
8843 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8844 being vector signed int.
8845 (vec_andc): Same.
8846 (vec_xor): Add variant for both args being vector signed char.
8847 Remove redundant variant.
8848 (vec_andc): Same.
0d918572 8849
77e2c290
DM
88502002-04-21 David S. Miller <davem@redhat.com>
8851
8852 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8853 compare mode in output RTL.
8854
ee2ca2a2
DE
88552002-04-22 David Edelsohn <edelsohn@gnu.org>
8856
8857 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8858 style and formatting of previous patch.
8859
894bdff6
AM
88602002-04-22 Alan Modra <amodra@bigpond.net.au>
8861
8862 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8863 flag_pic for ABI_AIX.
8864
562a5c27
NB
88652002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8866
8867 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8868 * cppfiles.c (read_include_file): Similarly.
8869 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8870 uxstrdup ustrchr, ufputs): Similarly.
8871 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8872 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8873 cpp_ideq, parse_identifier, parse_number): Similarly.
8874 * cpplib.c (struct directive, dequote_string, D, run_directive,
8875 cpp_push_buffer): Similarly.
8876 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8877 _cpp_create_definition, check_trad_stringification,
8878 cpp_macro_definition): Similarly.
8879
9ac3b1be
NB
88802002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8881
8882 * cppmacro.c (funlike_invocation_p): Don't step back
8883 over CPP_EOF.
8884
9dda4cc8
DE
88852002-04-21 David Edelsohn <edelsohn@gnu.org>
8886
8887 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8888 labelno.
8889
20764052
JM
88902002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8891
8892 * doc/invoke.texi: Remove Chill references.
8893 * doc/gcc.texi: Update last modified date.
8894
26b29884
KH
88952002-04-20 Kazu Hirata <kazu@hxi.com>
8896
8897 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8898 push and pop. Replace add.l with add.w.
8899
59184677
TM
89002002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8901
8902 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8903 multiply instructions for H8/300H case.
8904
b1113e0a
TM
89052002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8906
8907 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8908 Bum three instructions from each routine.
8909
b03e38e1
NB
89102002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8911
8912 * Makefile.in: Update.
8913 * decl.c (push_c_function_context, pop_c_function_context,
8914 mark_c_function_context): Rename for consistency.
8915 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8916 * c-tree.h (push_c_function_context, pop_c_function_context,
8917 mark_c_function_context): Rename for consistency.
8918 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8919 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8920 * function.c (init_lang_status, save_lang_status,
8921 restore_lang_status, mark_lang_status, free_lang_status):
8922 Move to langhooks.h.
8923 (push_function_context_to, pop_function_context_from,
8924 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8925 Update.
8926 * function.h (init_lang_status, save_lang_status,
8927 restore_lang_status, mark_lang_status, free_lang_status):
8928 Move to langhooks.h.
8929 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8930 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8931 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8932 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8933 (LANG_HOOKS_INITIALIZER): Update.
8934 (lhd_do_nothing_f): New.
8935 * langhooks.h (struct lang_hooks_for_functions): New.
8936 (struct lang_hooks): New hooks.
8937 * langhooks.c (lhd_do_nothing_f): New.
8938objc:
8939 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8940 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8941
db430d26
DM
89422002-04-19 David S. Miller <davem@redhat.com>
8943
8944 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8945 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8946
0f2a3457
JJ
89472002-04-19 Jakub Jelinek <jakub@redhat.com>
8948
8949 PR optimization/3756
8950 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8951 x = ((int) y < 0) ? cst1 : cst2.
8952
ce5e43d0
JJ
89532002-04-19 Jakub Jelinek <jakub@redhat.com>
8954
8955 PR c/6358
8956 * function.c: Reapply patch for c/6358.
8957 (expand_function_end): Copy decl_rtl's mode, not
8958 current_function_return_rtx mode.
8959
89602002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
8961
8962 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8963 targets.
8964
40e7f8ea
TT
89652002-04-19 Tom Tromey <tromey@redhat.com>
8966
8967 * doc/install.texi (Specific): Update status of Solaris 2.8.
8968 For PR libgcj/6158.
8969
62a12b27
AS
89702002-04-19 Andreas Schwab <schwab@suse.de>
8971
8972 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8973 (PUT_REAL): Restore old definition.
8974
1405141b
DN
89752002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8976 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8977
8978 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8979 binutils 2.11.2 and higher generate smaller binaries than Sun's
8980 native tools.
8981
303a3927
MM
89822002-04-19 Mark Mitchell <mark@codesourcery.com>
8983
8984 PR c++/6352
8985 * toplev.c (rest_of_compilation): Do not defer functions for which
8986 TREE_SYMBOL_REFERENCED has already been set.
8987
de80110b
JH
8988Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8989
8990 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8991 alternative.
8992
ab393bf1
NB
89932002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8994
8995 * builtins.c: Include langhooks.h.
8996 (lang_type_promotes_to): Remove.
8997 (expand_builtin_va_arg): Use new hook.
8998 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8999 (simple_type_promotes_to): Move to c-typeck.c.
9000 * c-common.h (simple_type_promotes_to): Remove.
9001 * c-decl.c (duplicate_decls, grokdeclarator): Update.
9002 * c-format.c: Include langhooks.h.
9003 (check_format_types): Update.
9004 * c-tree.h (c_type_promotes_to): New.
9005 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9006 (type_lists_compatible_p): Update.
9007 * langhooks-def.h (lhd_type_promotes_to): New.
9008 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9009 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9010 * langhooks.c (lhd_type_promotes_to): New.
9011 * langhooks.h (struct lang_hooks_for_types): New hook.
9012 * tree.h (lang_type_promotes_to): Remove.
9013objc:
9014 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9015
0cd3301b
RH
90162002-04-18 Richard Henderson <rth@redhat.com>
9017
58533fa2 9018 * function.c: Revert patch for c/6358.
0cd3301b
RH
9019
90202002-04-18 Richard Henderson <rth@redhat.com>
9021
58533fa2
RH
9022 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9023 blocks. Handle multiple references to the TRAP block. Handle
9024 non-adjacent THEN and OTHER blocks.
0cd3301b 9025
58533fa2
RH
90262002-04-18 Richard Henderson <rth@redhat.com>
9027
9028 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9029 crash with no type for by-mode libcalls.
9030
9031 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 9032
57174693
BW
90332002-04-18 Bob Wilson <bob.wilson@acm.org>
9034
9035 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9036 __xtensa_nonlocal_goto): Use a syscall instructions to flush
9037 the register windows.
9038
46468cd9
ZW
90392002-04-18 Zack Weinberg <zack@codesourcery.com>
9040
9041 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9042 appropriate. Document need for extended precision even when
9043 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
9044 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
9045 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
9046 instead of relying on later syntax error when REAL_WIDTH > 5.
9047 * real.c: Define NE based only on whether or not we have a
9048 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9049 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
9050 define GET_REAL and PUT_REAL as simple memcpy operations; no
9051 need to byteswap or round.
9052 Use #error instead of #ifdef-ing out the entire file, for
9053 prompt error detection.
9054
9055 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9056
2f82dbf8
DM
90572002-04-18 David S. Miller <davem@redhat.com>
9058
9059 * config/sparc/sparc.h (BRANCH_COST): Define.
9060
9061 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9062 does it.
9063
566576e7
HPN
90642002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9065
9066 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9067 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9068 propagate_block calls after relaxation loop using new variable
9069 stabilized_prop_flags.
9070
51dcde6f
RH
90712002-04-18 Richard Henderson <rth@redhat.com>
9072
9073 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9074 (ia64_va_arg): Expect variable sized types by reference.
9075 * config/ia64/ia64-protos.h: Update.
46468cd9 9076 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
9077 ia64_function_arg_pass_by_reference.
9078
26406018
RH
90792002-04-18 Richard Henderson <rth@redhat.com>
9080
46468cd9
ZW
9081 * ifcvt.c: Include except.h.
9082 (block_has_only_trap): Break out from find_cond_trap.
9083 (find_cond_trap): Use it. Always delete the trap block.
9084 (merge_if_block): Allow then block null. Be less simplistic about
9085 what insns can end a block.
9086 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 9087
26406018
RH
9088 * config/ia64/ia64.md (trap, conditional_trap): New.
9089
a3acf46d
JJ
90902002-04-18 Jakub Jelinek <jakub@redhat.com>
9091
9092 PR c/6358
9093 * function.c (assign_parms): Assign hard current_function_return_rtx
9094 register here...
9095 (expand_function_end): ...not here.
9096
7a228918
NB
90972002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
9098
9099 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9100 * c-tree.h (c_incomplete_type_error): New.
9101 * c-typeck.c (require_complete_type, build_component_ref): Update.
9102 (incomplete_type_error): Rename.
9103 * langhooks-def.h (lhd_incomplete_type_error): New.
9104 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9105 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9106 * langhooks.c (lhd_incomplete_type_error): New.
9107 * langhooks.h (struct lang_hooks_for_types): New hook.
9108 * tree.c (size_in_bytes): Use new hook.
9109 * tree.h (incomplete_type_error): Remove.
9110objc:
9111 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9112
f18664c1
ZW
91132002-04-18 Zack Weinberg <zack@codesourcery.com>
9114
9115 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9116 TARGET_FLOAT_FORMAT blocks.
9117
8ecab453
GP
91182002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9119
9120 * doc/install.texi (Downloading the source): Do not mention Chill
9121 any longer, but mention Ada.
9122 (Configuration): Do not mention Chill any longer.
9123
528d8489
HPN
91242002-04-18 Hans-Peter Nilsson <hp@axis.com>
9125
9126 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9127
91da27c5
JH
9128Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
9129
9130 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9131 in last patch.
9132
a32db605
JJ
91332002-04-18 Jakub Jelinek <jakub@redhat.com>
9134
9135 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9136 instead of unsigned_type.
9137
5a28d8cc
JH
9138Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
9139
9140 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9141 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9142 later.
9143
3d980b9f
BS
91442002-04-18 Bernd Schmidt <bernds@redhat.com>
9145
9146 * attribs.c (vector_type_node_list): New static variable.
9147 (handle_vector_size_attribute): Use it to avoid generating a
9148 new type node each time we are called.
9149
2e676d78
BS
9150 * combine.c (subst): Avoid trying to make a vector mode subreg of
9151 an integer constant.
9152 (gen_lowpart_for_combine): Likewise.
46468cd9 9153
58c2956c
RS
91542002-04-18 Roger Sayle <roger@eyesopen.com>
9155 Jakub Jelinek <jakub@redhat.com>
9156
9157 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9158 for integer constant c (if x has unsigned type or sign bit is not
9159 set in c). This folds the zero/sign extension into the bit-wise and
9160 operation.
9161
692efa8e
JJ
91622002-04-18 Jakub Jelinek <jakub@redhat.com>
9163
9164 PR middle-end/6205
9165 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9166 otherwise xorps.
9167
1372d4ce
NY
91682002-04-17 NIIBE Yutaka <gniibe@m17n.org>
9169
9170 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9171
169ce44d
NC
91722002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
9173
9174 * gcc.c (read_specs): Detect and fail if an attempt is made to
9175 rename a spec string to an already existing string.
9176
b30d2115
UW
91772002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9178
9179 * config/s390/s390.c (legitimize_pic_address): Do not generate
9180 illegal address constant without CONST.
9181
d6964c30
KG
91822002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9183
9184 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9185 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9186
7c82a1ed
UW
91872002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9188
9189 PR optimization/6305
9190 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9191 to make sure previous reloads are taken into account. Generate
9192 better code if one operand is an in-range immediate constant.
9193
58db9d1a
AH
91942002-04-16 Andrew Haley <aph@cambridge.redhat.com>
9195
9196 * doc/install.texi (Building): libgcj requires GNU make.
9197
2a732575
JJ
91982002-04-17 Jakub Jelinek <jakub@redhat.com>
9199
9200 PR bootstrap/6315
9201 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9202 even if hard quad and register is not floating.
9203 (movtf reg<-mem split): Disallow splitting if hard quad and
9204 register is floating.
9205 (movtf mem<-reg split): Likewise.
9206 * config/sparc/sparc.c (fp_register_operand): New predicate.
9207 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9208
75a65e46
ZW
92092002-04-17 Zack Weinberg <zack@codesourcery.com>
9210
9211 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9212 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9213 (unprotoize.o): Ditto. Build from protoize.c. Define
9214 UNPROTOIZE on command line.
9215 * protoize.c: Include cppdefault.h. Delete include_defaults.
9216 (in_system_include_dir): Use cpp_include_defaults (defined in
9217 cppdefault.o).
9218 * unprotoize.c: Delete file.
9219
650f0e97
AH
92202002-04-17 Aldy Hernandez <aldyh@redhat.com>
9221
46468cd9
ZW
9222 * config/rs6000/altivec.h (vec_ld): Add array variants.
9223 (vec_lde): Same.
9224 (vec_ldl): Same.
650f0e97 9225
71a0ab0c 92262002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 9227 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 9228
46468cd9
ZW
9229 * config/rs6000/altivec.h: Define __ALTIVEC__.
9230 (bool): New.
9231 (__pixel): New.
9232 (pixel): New.
9233 (vec_cfux): New.
9234 (vec_vmaddfp): New.
9235 (vec_vsldoi): New.
9236 Add parentheses to all macro arguments.
71a0ab0c 9237
ff2c46ac
RH
92382002-04-16 Richard Henderson <rth@redhat.com>
9239
9240 PR c++/6320
9241 * except.c (remove_eh_handler): Insert inner regions at beginning
9242 of sibling chain. Refactor expressions.
9243
f1ba94dd
RH
92442002-04-16 Richard Henderson <rth@redhat.com>
9245
f0871dfe
RH
9246 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9247 * config/sparc/sol2-gas-bi.h: New file.
9248 * config.gcc (sparc*-solaris): Add it as needed.
9249 * configure.in (AS_SPARC64_FLAG): Remove check.
9250 * config.in, configure: Regenerate.
9251
9252 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9253
92542002-04-16 Richard Henderson <rth@redhat.com>
9255
9256 * config/mips/mips.c (override_options): Don't override N32 for
9257 a 64-bit ISA.
409d3c60 9258
f1ba94dd
RH
9259 PR 6202
9260 * config/mips/mips.md (can_delay): Split out of existing define_delays.
9261 (HILO_delay): Set can_delay false.
9262
178c3eff
DJ
92632002-04-16 Dale Johannesen <dalej@apple.com>
9264
9265 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9266 instruction addresses.
9267 (rs6000_output_function_epilogue): Likewise.
9268
7d6f6369
PC
92692002-04-16 Paolo Carlini <pcarlini@unitus.it>
9270
9271 * c-parse.in (poplevel, compstmt_start,
9272 compstmt_primary_start): Add ending ';', in accordance
9273 with POSIX.
9274
8947df0c
RH
92752002-04-16 Richard Henderson <rth@redhat.com>
9276
9277 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9278 Adjust tm_file order to get TARGET_DEFAULT set properly.
9279 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9280 * doc/install.texi (sparc-solaris): Update.
9281
3148ad6d
DJ
92822002-04-16 Dale Johannesen <dalej@apple.com>
9283
9284 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9285 comparison operands do not match each other or if modes of
9286 conditions do not match result.
9287
014cb9b6 92882002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 9289
014cb9b6
HP
9290 PR target/6305
9291 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 9292 multiword register.
562a69be 9293
014cb9b6 92942002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 9295
8947df0c 9296 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 9297
a9772b60
JJ
92982002-04-16 Jakub Jelinek <jakub@redhat.com>
9299
9300 PR middle-end/6279
9301 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9302
9303 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9304
861829ed
RH
93052002-04-15 Richard Henderson <rth@redhat.com>
9306
9307 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9308 call_really_used_regs too.
9309
bcf2fe9c
RH
93102002-04-15 Richard Henderson <rth@redhat.com>
9311
9312 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9313
629111c7
DM
93142002-04-15 David S. Miller <davem@redhat.com>
9315
9316 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9317 as being CLOBBERed.
9318
98ef3137
JJ
93192002-04-16 Jakub Jelinek <jakub@redhat.com>
9320
9321 PR c/6290
9322 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9323 CONST_VECTOR is { 0, ... 0 }.
9324
0aa911c5
LR
93252002-04-15 Loren J. Rittle <ljrittle@acm.org>
9326
9327 * doc/install.texi (Installing GCC: Configuration): Clarify
9328 the only supported ways to configure gcc.
9329
83248d49 93302002-04-15 Roland McGrath <roland@frob.com>
46468cd9 9331
83248d49
RM
9332 * config.gcc (alpha*-*-gnu*): New target configuration.
9333 * config/alpha/gnu.h: New file for it.
9334 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9335
b2123dc0
MM
93362002-04-16 Mark Mitchell <mark@codesourcery.com>
9337
9338 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9339 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9340 * tree.h (expand_start_stmt_expr): Update prototype.
9341 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9342 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9343 on the STMT_EXPR created for the inline function.
46468cd9 9344
8fe2d853
RH
93452002-04-15 Richard Henderson <rth@redhat.com>
9346
9347 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9348 config/i386/linux-aout.h, config/i386/linux-oldld.h,
9349 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9350 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9351 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9352 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9353 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9354 Define __gnu_linux__, not gnu_linux.
9355 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9356
07cdae91
MM
93572002-04-15 Mark Mitchell <mark@codesourcery.com>
9358
9359 Remove Chill front end.
9360 * gcc.c (default_compilers): Remove Chill entries.
9361 * ch: Remove directory.
9362 * doc/frontends.texi: Remove information about Chill.
9363 * doc/sourcebuild.texi: Likewise.
9364 * doc/standards.texi: Likewise.
9365
41823c5e
DR
93662002-04-15 Douglas B Rupp <rupp@gnat.com>
9367
9368 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9369 (LONGLONG_STANDALONE): Define.
9370
eb29ddb6
DM
93712002-04-15 David S. Miller <davem@redhat.com>
9372
9373 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9374 Call emit_library_call with LCT_NORMAL.
9375 (sparc_initialize_trampoline): Use LCT_foo instead of
9376 magic constant in emit_library_call invocations.
9377 (sparc64_initialize_trampoline): Likewise.
9378 (sparc_profile_hook): Likewise.
9379 * config/sparc/sparc.md: Likewise.
9380
9381 * config/sparc/sparc.c (sparc_extra_constraint_check):
9382 Fix type of argument 'c'.
9383 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9384 Likewise.
9385
bd6bec6b
GDR
93862002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9387
9388 * diagnostic.h (output_buffer_state): Redefine.
9389 (output_format_decoder): New macro.
9390 (output_prefixing_rule): Likewise.
9391 (output_line_cutoff): Likewise.
9392 (diagnostic_format_decoder): Adjust.
9393 (diagnostic_prefixing_rule): Likewise.
9394 (diagnostic_line_cutoff): Likewise.
9395 (diagnostic_state): Likewise.
9396 (diagnostic_kind_count): Likewise.
9397 (diagnostic_buffer): Now a macro.
9398
9399 * diagnostic.c (diagnostic_buffer): Remove definition.
9400 (output_is_line_wrapping): Adjust.
9401 (set_real_maximum_length): Likewise.
9402 (output_set_maximum_length): Likewise.
9403 (init_output_buffer): Likewise.
9404 (lhd_print_error_function): Likewise.
9405 (output_do_verbatim): Likewise.
9406
ebef4e8c
NB
94072002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
9408
9409 * cpperror.c (print_location): Don't print include chain
9410 if line == 0.
9411 (cpp_begin_message): Update to use DL_ macros.
9412 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9413 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9414 cpp_notice, cpp_notice_from_errno): Remove.
9415 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9416 level.
9417 (cpp_errno): New.
9418 * cppexp.c (CPP_ICE): Remove.
9419 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9420 lex, integer_overflow, _cpp_parse_expr): Update.
9421 * cppfiles.c (read_include_file, find_include_file,
9422 handle_missing_header, _cpp_read_file, remap_filename): Update.
9423 * cpphash.h (enum error_type): Remove.
9424 (_cpp_begin_message): Update.
9425 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9426 cpp_handle_option, cpp_post_options): Update.
9427 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9428 skip_whitespace, parse_identifier, parse_slow, parse_string,
9429 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9430 cpp_interpret_charconst): Update.
9431 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9432 lex_macro_node, do_undef, glue_header_name, parse_include,
9433 do_include_common, read_flag, do_line, do_linemarker, do_ident,
9434 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9435 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9436 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9437 _cpp_pop_buffer, do_diagnostic): Update.
9438 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9439 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9440 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9441 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9442 cpp_notice, cpp_notice_from_errno): Remove.
9443 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9444 level.
9445 (cpp_errno): New.
9446 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9447 collect_args, enter_macro_context, save_parameter, parse_params,
9448 _cpp_create_definition, check_trad_stringification,
9449 cpp_macro_definition): Update.
9450 * cppmain.c (cpp_preprocess_file): Update.
9451 * fix-header.c (read_scan_file): Update.
9452
c19a3859
AS
94532002-04-14 Andreas Schwab <schwab@suse.de>
9454
9455 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9456
10fdbed6
JD
94572002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9458
9459 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9460
77660a9a
MM
94612002-04-13 Mark Mitchell <mark@codesourcery.com>
9462
9463 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9464 not gnu_hurd.
9465
e0ff1ded
HPN
94662002-04-13 Hans-Peter Nilsson <hp@axis.com>
9467
9468 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9469
2341c7ea
JS
94702002-04-13 Joel Sherrill <joel@OARcorp.com>
9471
9472 * config/sparc/t-elf: Enable v8 multilibs. Impacts
9473 sparc-elf and sparc-rtems targets.
9474
d29350c0
MM
94752002-04-13 Mark Mitchell <mark@codesourcery.com>
9476
9477 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9478 defined, and __gnu_hurd__ wherever __GNU__ is defined.
9479 * arm/linux-elf.h: Likewise.
9480 * cris/aout.h: Likewise.
9481 * cris/linux.h: Likewise.
9482 * i370/linux.h: Likewise.
9483 * i386/gnu.h: Likewise.
9484 * i386/linux-aout.h: Likewise.
9485 * i386/linux-oldld.h: Likewise.
9486 * i386/linux.h: Likewise.
9487 * i386/linux64.h: Likewise.
9488 * ia64/linux.h: Likewise.
9489 * m68k/linux-aout.h: Likewise.
9490 * m68k/linux.h: Likewise.
9491 * mips/linux.h: Likewise.
9492 * pa/pa-linux.h: Likewise.
9493 * pj/linux.h: Likewise.
9494 * rs6000/sysv4.h: Likewise.
9495 * s390/linux.h: Likewise.
9496 * sh/linux.h: Likewise.
9497 * sparc/linux-aout.h: Likewise.
9498 * sparc/linux.h: Likewise.
9499 * sparc/linux64.h: Likewise.
9500 * xtensa/linux.h: Likewise.
9501
fc552851
RS
95022002-04-13 Richard Sandiford <rsandifo@redhat.com>
9503
9504 * stmt.c (check_unique_operand_names): Expect operand names to
9505 be strings rather than identifiers. Use simple_cst_equal to
9506 compare them.
9507 (resolve_operand_name_1): Make same identifier to string change here.
9508 * c-parse.in (asm_operand): Convert a named operand into a string.
9509 * cp/parse.y (asm_operand): Likewise.
9510
1d405c5e
AS
95112002-04-13 Andreas Schwab <schwab@suse.de>
9512
9513 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9514
c740732f
MM
95152002-04-12 Mark Mitchell <mark@codesourcery.com>
9516
9517 Revert these changes:
9518
9519 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9520
9521 PR c++/5571
9522 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9523
3fc602a0
RH
95242002-04-12 Richard Henderson <rth@redhat.com>
9525
9526 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9527 (sparc*-*-solaris): Clean up header files.
9528 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9529 and plan on generating 64-bit code.
9530 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9531 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9532 * config/sparc/sol2-sld-64.h: Rename ...
9533 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
9534 for AS_SPARC64_FLAG not defined.
9535 * config/sparc/sol2-gld-bi.h: New.
9536 * config/sparc/sol2-sld.h: Remove.
9537 * config/sparc/sol26-sld.h: New.
9538 * config/sparc/sol2.h: Tidy comments.
9539 * doc/install.texi: Document sparc-solaris configury changes.
9540
2f15e255
RH
95412002-04-12 Richard Henderson <rth@redhat.com>
9542
9543 * recog.c (offsettable_address_p): Match the logic in adjust_address.
9544
9545 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9546 in 64-bit mode only. Use only for 32-bit or MEDLOW.
9547
cc8475cb
RO
95482002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9549
9550 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9551
6f133a4a
JL
9552Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
9553
ef1b8858 9554 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
9555 constrain_operands.
9556
1329e600
DR
95572002-04-12 Douglas B Rupp <rupp@gnat.com>
9558
9559 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9560 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9561 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 9562 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
9563 * config/i386/t-interix (USER_H): Remove.
9564
0339d239
DD
95652002-04-12 DJ Delorie <dj@redhat.com>
9566
9567 * integrate.c (compare_blocks): Make comparisons safe for when
9568 sizeof(int) < sizeof(char *).
9569 (find_block): Likewise.
9570
cc4d5fec
JH
95712002-04-12 Jan Hubicka <jh@suse.cz>
9572 David Edelsohn <edelsohn@gnu.org>
9573
9574 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9575 registers.
9576 (symbol_ref_operand): New.
9577 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9578 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9579
93215a1b
AS
95802002-04-12 Andreas Schwab <schwab@suse.de>
9581
9582 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9583 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9584 overrides the definition in config/svr4.h.
46468cd9 9585
1d80248e
EN
95862002-04-12 Eric Norum <eric.norum@usask.ca>
9587
9588 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9589 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9590 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9591 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9592 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9593 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9594 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9595 definitions to config/rtems.h and make the targets more similar.
9596
fa1591cb
RK
9597Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9598
fa06ab5c
RK
9599 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9600 POINTERS_EXTEND_UNSIGNED.
9601 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9602 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9603
fa1591cb
RK
9604 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9605 not specified.
9606
12e85a0e
R
9607Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9608
9609 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9610 depends on TARGET_SHMEDIA, not TARGET_SH5.
9611
1ab3e58a
HPN
96122002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
9613
9614 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9615 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9616
18778292
R
9617Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
9618
9619 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9620 no r0 clobber.
9621
9002507c
AS
96222002-04-12 Andreas Schwab <schwab@suse.de>
9623
9624 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9625
9be40833
RH
96262002-04-12 Richard Henderson <rth@redhat.com>
9627
9628 PR bootstrap/4191
9629 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9630
9631 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9632 modes spanning multiple hard regs.
46468cd9 9633
9be40833
RH
9634 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9635
3d9268b6
JDA
96362002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9637
9638 * pa.c (pa_output_function_prologue): Don't accumulate the total
9639 number of code bytes when using TARGET_64BIT, or gas, SOM and not
9640 the portable runtime.
9641 (output_deferred_plabels): Handle 64bit plabels.
9642 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9643 generating pic code using the GAS assembler for object formats that
9644 are not SOM (ie., ELF32 and ELF64).
9645 (output_millicode_call): Check attribute type if attribute length is 28.
9646 Likewise use $PIC_pcrel$0. Only call get_attr_length and
9647 dbr_sequence_length once.
9648 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9649 dbr_sequence_length once.
9650 * pa.h (TARGET_SOM): Define if not defined.
9651 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9652 with GAS and not SOM.
9653 (jump, call_internal_reg, call_value_internal_reg): Likewise.
9654 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
9655
d360fd18
DB
96562002-04-11 David O'Brien <obrien@FreeBSD.org>
9657
9658 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9659 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9660 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9661 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9662 elfos.h and dbxelf.h values are fine now.
9663 * config/i386/freebsd.h, config/alpha/freebsd.h
9664 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9665
5b8fcab6
DB
96662002-04-11 David O'Brien <obrien@FreeBSD.org>
9667
9668 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9669 or set Acpu or Amachine. Reformat.
9670 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9671 define.
9672 (LINK_SPEC): Do not need to undef.
9673 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9674 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9675 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9676 define.
9677 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9678 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9679 (LINK_SPEC): Do not need to undef.
9680 (DONT_USE_BUILTIN_SETJMP): Do not define.
9681 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9682 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
9683 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9684 Remove trailing spaces.
9685 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9686 __ELF__, or set Acpu or Amachine. Reformat.
9687 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9688 define.
9689
fee42cc1
DB
96902002-04-11 David O'Brien <obrien@FreeBSD.org>
9691
9692 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9693 all other *-*-freebsd* targets.
9694
77a403e4
RH
96952002-04-11 Richard Henderson <rth@redhat.com>
9696
9697 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9698
cf0005c6
DB
96992002-04-11 David O'Brien <obrien@FreeBSD.org>
9700
9701 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9702 Include {cpu}/{cpu}.h thru tm_file.
9703 (alpha*-*-linux*ecoff): Remove target.
9704 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9705 (LINK_SPEC): Remove, is not OS independent.
9706 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9707 (LINK_SPEC): Do not need to #undef any longer.
9708 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9709 any longer.
9710 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9711 __ELF__.
9712 (LINK_SPEC): Moved here from alpha/elf.h.
9713 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9714 SUB_CPP_PREDEFINES.
9715 * config/alpha/linux-ecoff.h: Remove.
9716 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9717 (CPP_SPEC): Define _POSIX_SOURCE as needed.
9718 (CPP_SUBTARGET_SPEC): Do not define.
9719 (LINK_SPEC): Do not need to #undef any longer.
9720 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9721 * config/alpha/vms.h: Likewise.
9722
9be40833 97232002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
9724
9725 * doc/extend.texi: Remove old claim that typedefs cannot have
9726 an alignment attribute.
9727
010f87c4
JJ
97282002-04-11 Jakub Jelinek <jakub@redhat.com>
9729
9730 PR optimization/6177
9731 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9732 bitpos is 0 and bitsize CONCAT size.
9733
578fc63d
JJ
97342002-04-11 Jakub Jelinek <jakub@redhat.com>
9735
9736 PR c/6223
9737 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9738
bf9b85ce
DB
97392002-04-10 David O'Brien <obrien@FreeBSD.org>
9740
9741 * config/alpha/freebsd.h: Minor reformatting.
9742 (CPP_SPEC): Define ELF and add cpp_subtarget.
9743 (ASM_SPEC): No longer needed.
9744
7425707d
RH
97452002-04-11 Richard Henderson <rth@redhat.com>
9746
9747 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9748 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
9749 (dimode mem/zero splitter): New.
9750
1a05e874
HPN
97512002-04-11 Hans-Peter Nilsson <hp@axis.com>
9752
9753 * config/cris/cris.c (cris_override_options): Tweak error message
9754 for PIC not implemented.
9755
9756 * config/cris/cris.h: Tweak comments related to parameter-passing.
9757
9758 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9759
6f3d0447
RH
97602002-04-10 Richard Henderson <rth@redhat.com>
9761
9762 * except.c (add_ehl_entry): Allow duplicates after landing pad
9763 creation.
9764
174bf2b1
DE
97652002-04-10 David Edelsohn <edelsohn@gnu.org>
9766
9767 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9768
03f10472
TM
97692002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
9770
9771 * c-decl.c (c_init_decl_processing): Move generation of
9772 decls for g77_integer_type_node and friends from here ...
9773 * c-common.c (c_common_nodes_and_builtins): ... to here.
9774
2f460a0a
UW
97752002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9776
9777 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9778 is only used as frame pointer when frame_pointer_needed is true.
9779
0be5cf85
RE
97802002-04-10 Richard Earnshaw <rearnsha@arm.com>
9781
9782 PR target/817
9783 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9784 for the fact that the pool entry uses two words.
9785 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9786 1k bytes.
9787 (movdf_soft_insn): Similarly.
9788 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9789 for the fact that the pool entry uses three words.
9790
bf6d4777
RS
97912002-04-10 Richard Sandiford <rsandifo@redhat.com>
9792
9793 * config/mips/mips.c (mips_va_arg): When using the struct version
9794 of the EABI va_list, allow arguments in the register save area to
9795 take up less room than a stack argument.
9796
c2e9dc85
RH
97972002-04-10 Richard Henderson <rth@redhat.com>
9798
9799 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9800 if EXPAND_INITIALIZER.
9801
bc8e8e97
RH
98022002-04-09 Richard Henderson <rth@redhat.com>
9803
9804 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9805 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9806
a6a063b8
AM
98072002-04-10 Alan Modra <amodra@bigpond.net.au>
9808
9809 PR optimization/6233
9810 * rtlanal.c (pure_call_p): New function.
9811 * rtl.h (pure_call_p): Declare.
9812 * loop.c (prescan_loop): Use it to set has_nonconst_call.
9813 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9814
7b2e1077
EC
98152002-04-09 Eric Christopher <echristo@redhat.com>
9816
9817 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9818 information to .comm directive.
9819
d8a50944
RH
98202002-04-09 Richard Henderson <rth@redhat.com>
9821
9822 PR c/5078
9823 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9824
6a58eee9
RH
98252002-04-09 Richard Henderson <rth@redhat.com>
9826
9827 * basic-block.h (flow_delete_block_noexpunge): Declare.
9828 (expunge_block_nocompact): Declare.
9829 * cfg.c (expunge_block_nocompact): Split out from ...
9830 (expunge_block): ... here.
9831 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9832 (flow_delete_block_noexpunge): Split out from ...
9833 (flow_delete_block): ... here.
9834 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9835 removing dead blocks.
9836 * except.c (exception_handler_labels): Remove.
9837 (exception_handler_label_map): New.
9838 (struct eh_region): Add aka member.
9839 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9840 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9841 (for_each_eh_label, for_each_eh_label_1): New.
9842 (init_eh): Register exception_handler_label_map.
9843 (free_eh_status): Use free_region.
9844 (find_exception_handler_labels): Use the map, not the list.
9845 (remove_exception_handler_label): Likewise.
9846 (maybe_remove_eh_handler): Likewise.
9847 (remove_eh_handler): Use the region aka bitmap.
9848 * except.h (exception_handler_labels): Remove.
9849 (for_each_eh_label): Declare.
9850 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9851 * loop.c (invalidate_loops_containing_label): New.
9852 (find_and_verify_loops): Use it. Use for_each_eh_label.
9853 * sched-rgn.c (is_cfg_nonregular): Use
9854 current_function_has_exception_handlers.
9855
b47374fa
RH
98562002-04-09 Richard Henderson <rth@redhat.com>
9857
9858 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9859 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9860 Do not return changed status.
9861 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9862 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9863 New functions that do return changed status.
9864 * sbitmap.h: Update decls.
9865 * gcse.c, lcm.c: Use _cg functions as needed.
9866
1951818c
R
9867Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9868
9869 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9870 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9871 * config/sh/embed_bb.c: New file.
9872 * config/sh/embed-elf.h: New file.
9873 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9874 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9875 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9876 __PTRDIFF_TYPE__ .
9877 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9878 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9879 Add subtarget_asm_endian_spec.
9880 (ASM_SPEC): Use subtarget_asm_endian_spec.
9881 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9882 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9883 (WCHAR_UNSIGNED): Define.
9884 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9885 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9886 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9887 Fix value.
9888 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9889 (sh_adjust_cost): Likewise.
9890 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9891 __PTRDIFF_TYPE__ .
9892 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9893 (WCHAR_TYPE_SIZE): Likewise.
9894 (ASM_SPEC): Use subtarget_asm_endian_spec.
9895 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9896 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9897 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9898 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9899 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9900 (USER_LABEL_PREFIX): Don't #undef /#define .
9901 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9902 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9903 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9904 (ASM_SPEC): Likewise.
9905 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9906 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9907 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9908 (LIB2FUNCS_EXTRA): Define.
9909 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9910 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9911 (LIB1ASMFUNCS_CACHE): Define.
9912 (LIB2FUNCS_EXTRA): Redefine empty.
9913
34295799
RH
99142002-04-08 Richard Henderson <rth@redhat.com>
9915
9916 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9917
e8766a39
SC
99182002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9919
9920 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9921 and optimize for size.
9922 (__do_global_ctors): Fix pointer comparison.
9923 (__do_global_dtors): Likewise.
9924
f451b552
DM
99252002-04-09 David S. Miller <davem@redhat.com>
9926
9927 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9928 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9929 allow reloading pseudos.
9930 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9931 * config/sparc/sparc-protos.h: Declare it.
9932
9933 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9934 unsigned comparison warning.
9935 (output_restore_regs): Mark leaf_function as unused.
9936
1ce7f3c2
RK
9937Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9938
9939 * expr.c (is_aligning_offset): New function.
9940 (expand_expr, case COMPONENT_EXPR): Call it.
9941
7a31a340
DM
99422002-04-08 David S. Miller <davem@redhat.com>
9943
9944 PR target/6082
9945 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9946
9947 Make init_priority work on Sparc when using GNU ld.
9948 * config/sparc/linux.h, config/sparc/linux64.h,
9949 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9950 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9951 * config/sparc/sol2-gld.h: New file to do the same.
9952 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9953 sparc/sol2-gld.h to tm_file.
9954
9955 PR optimization/4328
9956 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9957 * doc/md.texi: Document it.
9958 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9959 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9960 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9961 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9962 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9963
11579f33
AJ
99642002-04-08 Andreas Jaeger <aj@suse.de>
9965
9966 * stmt.c (expand_asm_operands): Revert last patch from Richard
9967 Henderson.
9968
b57215d9
GP
99692002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9970
9971 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9972 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9973
99742002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9975
9976 * doc/contrib.texi (Contributors): Add David O'Brien.
9977
534d0cc0
AM
99782002-04-08 Alan Modra <amodra@bigpond.net.au>
9979
9980 * configure.in (auto-build.h): Use target_alias and build_alias
9981 when running configure.
9982 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9983 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9984 * configure: Regenerate.
9985
19fe522a
DM
99862002-04-07 David S. Miller <davem@redhat.com>
9987
9988 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9989
bf2d0b8e
JDA
99902002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9991
9992 PR 5933
9993 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9994 generating 32-bit pic code.
9995
477cdac7
JT
99962002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9997
9998 * cppinit.c (cpp_create_reader): Initialize
9999 discard_comments_in_macro_exp.
10000 (COMMAND_LINE_OPTIONS): Add "-CC" option.
10001 (cpp_handle_option): Handle "-CC" option.
10002 * cpplex.c (save_comment): If saving a C++ comment in
10003 a directive, convert it to a C comment.
10004 (_cpp_lex_direct): Pass second comment start character to
10005 save_comment to indicate comment type.
10006 * cpplib.c (_cpp_handle_directive): If processing
10007 a "#define" directive and discard_comments_in_macro_exp
10008 is false, re-enable saving of comments.
10009 (lex_macro_node): If discard_comments_in_macro_exp is false,
10010 discard any comments before the macro identifier.
10011 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10012 member.
10013 * cppmacro.c (cpp_get_token): If expanding a macro while
10014 processing a directive, discard any comments we might encounter.
10015 (parse_params): If discard_comments_in_macro_exp is false,
10016 ignore comments in the macro parameter list.
10017 * gcc.c (cpp_unique_options): Add "-CC" option.
10018 (option_map): Map "--comments-in-macros" to "-CC".
10019 * doc/cppopts.texi: Document "-CC" option.
10020 * f/lang-specs.h: Add "-CC" option.
10021 * testsuite/gcc.dg/cpp/maccom1.c: New test.
10022 * testsuite/gcc.dg/cpp/maccom2.c: New test.
10023 * testsuite/gcc.dg/cpp/maccom3.c: New test.
10024 * testsuite/gcc.dg/cpp/maccom4.c: New test.
10025 * testsuite/gcc.dg/cpp/maccom5.c: New test.
10026 * testsuite/gcc.dg/cpp/maccom6.c: New test.
10027
f1526122
JDA
100282002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
10029
10030 PR middle-end/6180
10031 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10032
b1896e61
MM
100332002-04-06 Mark Mitchell <mark@codesourcery.com>
10034
0154eaa8
MM
10035 PR c++/5571
10036 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10037
b1896e61
MM
10038 PR opt/5120
10039 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10040 RTX_UNCHANGING_P for the functions arguments when a tail call
10041 is made.
10042
b0148884
JM
100432002-04-06 Jason Merrill <jason@redhat.com>
10044
10045 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10046 (parse_options_and_default_flags): Set them appropriately.
10047 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10048
392fc5b0
HPN
100492002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
10050
10051 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10052 here.
10053
10054 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10055 semicolon.
10056
10057 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10058 types come in by-reference. Fix typo in comment.
10059
2d69e3cb
DM
100602002-04-05 David S. Miller <davem@redhat.com>
10061
10062 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10063 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10064 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10065 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10066
100672002-04-05 David S. Miller <davem@redhat.com>
10068
10069 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10070 are not going to emit return instructions, emit at least a nop
10071 for the sake of sane backtraces.
10072
5f9fb0e3
RH
100732002-04-05 Richard Henderson <rth@redhat.com>
10074
10075 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10076
49f37a0d
JJ
100772002-04-05 Jakub Jeilnek <jakub@redhat.com>
10078
10079 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10080
974a3101
AO
100812002-04-05 Alexandre Oliva <aoliva@redhat.com>
10082
10083 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10084 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10085 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10086
2e04a694
AS
100872002-04-05 Andreas Schwab <schwab@suse.de>
10088
a40179bd 10089 * c-convert.c: Include c-common.h.
2e04a694
AS
10090 * Makefile.in (c-convert.o): Updated.
10091
1f785b7c
JJ
100922002-04-05 Jakub Jelinek <jakub@redhat.com>
10093
10094 * mklibgcc.in: Use separate libgcc.map for each multilib.
10095 * Makefile.in (distclean): Don't remove libgcc.map here.
10096
4d2fb38b
JJ
100972002-04-05 Jakub Jelinek <jakub@redhat.com>
10098
10099 * Makefile.in (s-mlib): Handle --disable-multilib by separate
10100 genmultilib invocation.
10101
bb63e5a0
RS
101022002-04-04 Richard Sandiford <rsandifo@redhat.com>
10103
10104 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10105 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
10106 to num_gprs for symmetry.
10107 * config/mips/mips.c: Adjust accordingly.
10108
8ab80eaa
NB
101092002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10110
10111 * c-common.c (truthvalue_conversion): Rename, update.
10112 * c-common.h (c_common_truthvalue_conversion): New.
10113 * c-convert.c (convert): Update.
10114 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10115 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10116 * c-typeck.c (build_binary_op, build_unary_op,
10117 build_conditional_expr): Update.
10118 * fold-const.c (constant_boolean_node, fold): Use langhook.
10119 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10120 * langhooks.h (struct lang_hooks): New hook.
10121 * stmt.c (expand_decl_cleanup): Use langhook.
10122 * tree.h (truthvalue_conversion): Remove.
10123objc:
10124 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10125
a2e9374a
AM
101262002-04-05 Alan Modra <amodra@bigpond.net.au>
10127
10128 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10129 Add rules to make null object file.
10130
64d08263
JB
101312002-04-04 Jim Blandy <jimb@redhat.com>
10132
10133 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10134 macro formal parameter names.
10135
aa7634dd
DM
101362002-04-04 David S. Miller <davem@redhat.com>
10137
10138 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10139
ecc114f7
RH
101402002-04-04 Richard Henderson <rth@redhat.com>
10141
10142 PR middle-end/5099
10143 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10144 Support copies into and out of memory. Don't accept allows_reg
10145 and allows_mem as gospel.
10146
c4484b8f
RH
101472002-04-04 Richard Henderson <rth@redhat.com>
10148
10149 PR opt/6165
10150 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10151 (write_dependence_p): Likewise.
10152
39002160
RH
101532002-04-04 Richard Henderson <rth@redhat.com>
10154
10155 * predict.c (estimate_bb_frequencies): Do frequency calculation
10156 with a volatile temporary.
10157
f53ebe71
UW
101582002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
10159
10160 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10161
15e0ecab
JJ
101622002-04-04 Jakub Jelinek <jakub@redhat.com>
10163
10164 PR c++/6119
10165 * final.c (final_start_function): Don't bump profile_label_no here...
10166 (final_end_function): ...but here.
10167
ffd386b0
JJ
101682002-04-04 Jakub Jelinek <jakub@redhat.com>
10169
10170 * config/sparc/sparc.md (pic): New attribute.
10171 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10172 into stack slots.
10173 (split after do_builtin_setjmp_setup): New.
10174
8b156b3e
JJ
101752002-04-04 Jakub Jelinek <jakub@redhat.com>
10176
10177 PR fortran/6106
10178 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10179 change.
10180
014c0998
JJ
101812002-04-04 Jakub Jelinek <jakub@redhat.com>
10182
10183 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10184 UNITS_PER_WORD for zero sized aggregates.
10185
4d8611d9
DM
101862002-04-03 David S. Miller <davem@redhat.com>
10187
10188 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10189 one-character spec for this, just use %(link_gcc_c_sequence).
10190
b03ad99d
DM
101912002-04-03 David S. Miller <davem@redhat.com>
10192
10193 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10194 handling.
10195
823fbbce
JDA
101962002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10197
10198 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10199 (DWARF_FRAME_RETURN_COLUMN): Move.
10200 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10201 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10202 * pa.c (except.h, predict.h): Include.
10203 (FRP): Delete.
10204 (store_reg_modify, set_reg_plus_d): Revise prototypes.
10205 (output_ascii): Add cast.
10206 (store_reg_modify): Revise to add frame notes.
10207 (set_reg_plus_d): Likewise.
10208 (compute_frame_size): Include space for eh data registers in frame if
10209 the current function calls eh_return.
10210 (hppa_expand_prologue): Ensure register %r2 is saved if the current
10211 function calls eh_return. Save eh data registers if the current
10212 function calls eh_return. Fix code to add frame notes. Emit
10213 blockage to prevent insns with frame notes being scheduled in the
10214 delay slot of calls.
10215 (hppa_expand_epilogue): Restore eh data registers and do final stack
10216 adjustment if the current function calls eh_return. Don't add frame
10217 notes.
10218 (output_call): Revise for change in length of call insn. Don't do
10219 return pointer adjustment for an unconditional jump in the delay slot
10220 of a call when using frame notes.
10221 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10222 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10223 (ARG_POINTER_CFA_OFFSET): Define.
10224 * pa.md (return_external_pic): New pattern.
10225 (prologue): Correct formatting. Use return_external_pic if current
10226 function calls eh_return.
10227 (call_internal_symref, call_value_internal_symref,
10228 sibcall_internal_symref, sibcall_value_internal_symref): Change default
10229 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10230 respectively.
10231 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10232
10233 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10234 list of targets to check using "nop" insn.
10235 * configure: Rebuilt.
10236
4078e224
AM
102372002-04-04 Alan Modra <amodra@bigpond.net.au>
10238
10239 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10240
bbd7687d
DM
102412002-04-03 David S. Miller <davem@redhat.com>
10242
10243 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10244 library sequence passed to the linker.
10245 (LINK_COMMAND_SPEC): Use it.
10246 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10247 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10248 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10249
659e5a7a
JM
102502002-04-03 Jason Merrill <jason@redhat.com>
10251
10252 * except.c (struct eh_status): Remove protect_list.
10253 (begin_protect_partials, end_protect_partials): Remove.
10254 (add_partial_entry): Remove.
10255 * except.h: Remove prototypes.
10256
10257 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10258 expand_decl_cleanup_eh.
10259
10260 PR c++/5636
10261 * tree.h (CLEANUP_EH_ONLY): New macro.
10262 * stmt.c (expand_decl_cleanup_eh): New fn.
10263 (expand_cleanups): Check CLEANUP_EH_ONLY.
10264 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10265 Use expand_decl_cleanup_eh.
10266 (expand_stmt): Adjust.
10267 * c-common.h: Adjust prototype.
10268
053d3344
HPN
102692002-04-04 Hans-Peter Nilsson <hp@axis.com>
10270
10271 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10272 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10273 (cris_target_asm_function_epilogue): Ditto.
10274 (cris_initial_frame_pointer_offset): Ditto.
10275 (cris_simple_epilogue): Ditto.
10276 (cris_expand_builtin_va_arg): Variable-size types come in
10277 by-reference.
10278
61ab5260
DM
102792002-04-03 David S. Miller <davem@redhat.com>
10280
10281 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10282 little-endian.
10283 (set_fast_math): Correct 'fsr' type.
10284
ef4f94ac
RH
102852002-04-03 Richard Henderson <rth@redhat.com>
10286
36c2272c 10287 PR opt/3569
ef4f94ac
RH
10288 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10289 * toplev.c (check_global_declarations): Use it.
10290 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10291 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10292 (LANG_HOOKS_DECLS): Add it.
10293 * langhooks.c (lhd_warn_unused_global_decl): New.
10294 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10295 * c-objc-common.c (c_warn_unused_global_decl): New.
10296 * c-tree.h (c_warn_unused_global_decl): Declare.
10297 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10298
599bba86
NB
102992002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
10300
10301 * langhooks-def.h (lhd_set_decl_assembler_name,
10302 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10303 (LANG_HOOKS_INITIALIZER): Update.
10304 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10305 * langhooks.h (struct lang_hooks): New hook.
10306 * tree.c (set_decl_assembler_name): Move to langhooks.c.
10307 (lang_set_decl_assembler_name): Remove.
10308 (init_obstacks): Don't set hook.
10309 (decl_assembler_name): New function.
10310 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10311 (decl_assembler_name): New.
10312 (lang_set_decl_assembler_name): Remove.
10313
cf7b8b0d
JJ
103142002-04-03 Jakub Jelinek <jakub@redhat.com>
10315
10316 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10317 works properly with .hidden symbols.
10318 * configure: Rebuilt.
10319 * config.in: Rebuilt.
10320 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10321 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10322 properly with .hidden symbols.
10323
faf6db38
JJ
103242002-04-03 Jakub Jelinek <jakub@redhat.com>
10325
10326 PR middle-end/6102
10327 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10328 USE argument.
10329
68c17f30
RH
103302002-04-03 Richard Henderson <rth@redhat.com>
10331
10332 PR opt/4120
10333 * sched-rgn.c (sets_likely_spilled): New.
10334 (sets_likely_spilled_1): New.
10335 (add_branch_dependences): Use it.
10336
6584b4aa
RH
103372002-04-02 Richard Henderson <rth@redhat.com>
10338
10339 PR opt/4311
10340 * loop.h (LOOP_FIRST_PASS): New.
10341 * loop.c (strength_reduce): Mind it when deciding to unroll.
10342 * toplev.c (rest_of_compilation): Set it.
10343
0acf409f
DM
103442002-04-02 David S. Miller <davem@redhat.com>
10345
10346 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10347 mems_ok_for_ldd_peep when the order of the loads being examined
10348 is reversed.
10349 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10350 existing comment to increase comprehension of this situation.
10351
85654444
ZW
103522002-04-02 Zack Weinberg <zack@codesourcery.com>
10353
10354 * config/sh/sh.md: Don't use union real_extract.
10355
543828ca
RH
103562002-04-02 Richard Henderson <rth@redhat.com>
10357
10358 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10359
39ed301b
DB
103602002-04-02 David O'Brien <obrien@FreeBSD.org>
10361
10362 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10363 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10364 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10365 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10366 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10367 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10368 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10369 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10370 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10371 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10372 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10373 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10374 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10375 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10376 Include as many configury headers via tm_file as possible. This
10377 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10378 * config/openbsd-oldgas.h: New file.
10379 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10380 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10381 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10382 config/i386/i386-coff.h, config/i386/i386-interix.h,
10383 config/i386/iscdbx.h, config/i386/linux-aout.h,
10384 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10385 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10386 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10387 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10388 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10389 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10390 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10391 config/i386/vxi386.h: Do not directly include configury headers.
10392 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10393 Directly include configury headers that are no longer automatically
10394 included by the above headers.
10395 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10396 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10397 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10398 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10399 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10400 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10401 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10402 (TARGET_VERSION): Define.
10403 * config/i386/beos-elf.h, config/i386/freebsd.h,
10404 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10405 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10406 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10407 config/i386/sco5.h, config/i386/sysv4.h
10408 (TARGET_VERSION): Do not need to protect.
10409 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10410 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10411 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10412 config/i386/i386-interix.h, config/i386/linux-aout.h,
10413 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10414 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10415 (YES_UNDERSCORES): Do not define - not needed.
10416 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10417 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10418 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10419 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10420 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10421 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10422 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10423 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10424
9432c136
EB
104252002-04-02 Eric Botcazou <ebotcazou@multimania.com>
10426 Richard Henderson <rth@redhat.com>
10427
10428 PR c/5484
10429 * function.c (assign_temp): Accept either type or decl argument.
10430 Detect variables whose size is too large to fit into an integer.
10431 * stmt.c (expand_decl): Pass the decl, not the type.
10432
058b1275
DB
104332002-04-02 David O'Brien <obrien@FreeBSD.org>
10434
10435 * protoize.c: Match include directory usage with cppdefault.c.
10436
5add6d1a 104372002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 10438 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
10439
10440 * combine.c (simplify_comparison): Avoid narrowing a comparison
10441 with a paradoxical subreg when doing so would drop signficant bits.
10442
1e533e4b
SE
104432002-04-02 Steve Ellcey <sje@cup.hp.com>
10444
10445 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10446 if POINTERS_EXTEND_UNSIGNED is defined.
10447
7a145e92
RH
104482002-04-02 Richard Henderson <rth@redhat.com>
10449
10450 PR opt/3967
10451 * local-alloc.c (contains_replace_regs): LO_SUM may contain
10452 replace regs.
10453
3a079822
RH
104542002-04-02 Richard Henderson <rth@redhat.com>
10455
10456 * doc/standards.texi: Document required freestanding libc entry points.
10457
c94ccb87
AM
104582002-04-02 Alan Modra <amodra@bigpond.net.au>
10459
10460 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10461 associated splitter. Remove MQ constraint.
10462 (ctrdi_internal4): Correct CCmode clobber.
10463
fe660a1a
JDA
104642002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10465
10466 * milli64.S ($$dyncall): New function.
10467 * t-linux (LIB1ASMFUNCS): Revise module list.
10468 (LIB1ASMSRC): Use pa/milli64.S.
10469
eadc0202
RH
104702002-04-02 Richard Henderson <rth@redhat.com>
10471
10472 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10473 rename solaris_sys_varargs_h.
10474
a1471322
RK
10475Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10476
10477 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10478 the same mode as its component.
10479
c8b94768
RH
104802002-04-02 Richard Henderson <rth@redhat.com>
10481
10482 PR opt/190
10483 * final.c (this_is_asm_operands): Export.
10484 * output.h (this_is_asm_operands): Declare.
10485 * config/i386/i386.c (print_operand): Error odd asm operands.
10486
161eb4fc
RH
104872002-04-02 Richard Henderson <rth@redhat.com>
10488
10489 PR opt/420
10490 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10491
b88a94c6
RH
104922002-04-01 Richard Henderson <rth@redhat.com>
10493
10494 PR target/1538
10495 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10496 * fixinc/fixincl.x: Rebuild.
10497
72e32876
RH
104982002-04-01 Richard Henderson <rth@redhat.com>
10499
10500 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10501 (atomic_alloc, atomic_free): New.
10502 (SIZE, MASK_FOR, PTR_IN): New.
10503 (emergency_reg_state, emergency_reg_state_free): New.
10504 (emergency_labeled_state, emergency_labeled_state_free): New.
10505 (reg_state_alloced, labeled_state_alloced): New.
10506 (alloc_reg_state, free_reg_state): New.
10507 (alloc_label_state, free_label_state, free_label_states): New.
10508 (push, pop, dup_state_stack, free_state_stack): Use them.
10509 (desc_label_state): Likewise.
10510 (uw_frame_state_for): Free label states and state stack.
10511 (uw_update_reg_address): Eliminate warnings.
10512
84d76074
VM
105132002-04-01 Vladimir Makarov <vmakarov@redhat.com>
10514
10515 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 10516 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 10517
dffd7eb6
NB
105182002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10519
10520 * c-decl.c (grokdeclarator): Update.
10521 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10522 * c-tree.h (c_mark_addressable): New.
10523 * c-typeck.c (default_function_array_conversion, build_unary_op,
10524 build_array_ref, convert_for_assignment): Update.
10525 (mark_addressable): Rename.
10526 * calls.c (try_to_integrate, expand_call): Use langhook.
10527 * expr.c (expand_expr): Use langhook.
10528 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10529 * langhooks.h (struct lang_hooks): New hook.
10530 * stmt.c (expand_asm_operands): Use langhook.
10531 * tree.h (mark_addressable): Remove.
10532objc:
10533 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10534
544ef5b5
BW
105352002-04-01 Bob Wilson <bob.wilson@acm.org>
10536
9be40833
RH
10537 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10538 in previous change.
544ef5b5 10539
bcf88f9b
BW
105402002-04-01 Bob Wilson <bob.wilson@acm.org>
10541
10542 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10543 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10544
ceef8ce4
NB
105452002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10546
10547 * c-common.c (unsigned_conversion_warning, convert_and_check,
10548 unsigned_type, signed_type, shorten_compare,
10549 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10550 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10551 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10552 New.
10553 * c-decl.c (grokdeclarator): Update.
10554 * c-format.c (check_format_types): Update.
10555 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10556 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10557 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10558 * convert.c (convert_to_integer): Use new hooks.
10559 * expmed.c (make_tree): Use new hooks.
10560 * expr.c (store_expr): Use new hooks.
10561 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10562 all_ones_mask_p, unextend, fold): Use new hooks.
10563 * langhooks.h (struct lang_hooks_for_types): New hooks.
10564 * tree.h (signed_or_unsigned_type, signed_type,
10565 unsigned_type): Remove.
10566objc:
10567 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10568 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10569
1d9ad0e0
RH
105702002-03-31 Richard Henderson <rth@redhat.com>
10571
10572 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10573 (desc_frgr_mem): Fix reference to f16-f31.
10574
d544bc39
KG
105752002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10576
10577 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10578 RTVEC_ELT): Const-ify.
d8750784
KG
10579 * varray.h (VARRAY_CHECK): Const-ify.
10580 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10581 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 10582
b18101c7
NB
105832002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10584
10585 * diagnostic.c: Include langhooks-def.h.
10586 * Makefile.in (diagnostic.o): Update.
10587
48a7a235
NB
105882002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10589
10590 * c-common.c (c_unsafe_for_reeval): Rename.
10591 * c-common.h (c_unsafe_for_reeval): Rename.
10592 * c-decl.c (finish_incomplete_decl): Rename.
10593 (c_init_decl_processing): Don't set langhook.
10594 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10595 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10596 * c-objc-common.c (c_objc_common_init): Don't set langhook.
10597 * c-tree.h (finish_incomplete_decl): Rename.
10598 * langhooks-def.h (lhd_unsafe_for_reeval): New.
10599 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10600 (LANG_HOOKS_INITIALIZER): Update.
10601 * langhooks.c (lhd_unsafe_For_reeval): New.
10602 * langhooks.h (struct langhooks): New hooks.
10603 * toplev.c (incomplete_decl_finalize_hook): Remove.
10604 (wrapup_global_declarations): Update.
10605 * tree.c (lang_unsafe_for_reeval): Remove.
10606 (unsafe_for_reeval): Update.
10607 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10608 Remove.
10609objc:
10610 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10611 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10612
7cb32822
NB
106132002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10614
10615 * diagnostic.c (print_error_function): Remove.
10616 (default_print_error_function): Rename.
10617 (report_error_function): Update.
10618 * diagnostic.h (print_error_function): Remove.
10619 (default_print_error_function): Remove.
10620 * langhooks-def.h (struct diagnostic_context): Predeclare.
10621 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10622 (LANG_HOOKS_INITIALIZER): Update.
10623 * langhooks.h (struct diagnostic context): Predeclare.
10624 (struct lang_hooks): New hook.
10625
1db02437
FS
106262002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10627
10628 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10629 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10630 !flag_pic.
10631 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10632 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10633 of PIC_OFFSET_TABLE_REGNUM thruout.
10634 * config/rs6000/rs6000.md: Likewise.
10635 * config/rs6000/darwin.h: Likewise.
10636
3bf1e984
RK
10637Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10638
10639 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10640 unsigned HOST_WIDE_INT, not unsigned int.
10641
0864c526
JJ
106422002-03-31 Jakub Jelinek <jakub@redhat.com>
10643
10644 PR middle-end/6096, middle-end/6098, middle-end/6099
10645 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10646 CODE_LABELs.
10647 (fill_slots_from_thread): Likewise.
10648
105b2084
JJ
106492002-03-31 Jakub Jelinek <jakub@redhat.com>
10650
10651 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10652 floating fields in float regs.
10653 (function_arg_record_value_2): Likewise.
10654
db08fddf
HPN
106552002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10656
10657 * config/mmix/mmix.md (define_constants): Remove misleading
10658 FIXME. Add MMIX_fp_rO_OFFSET.
10659 ("nonlocal_goto_receiver"): Don't have stack-frame address of
10660 saved rO as part of the pattern. Remove FIXME.
10661 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
10662 here, at output-time.
10663
4f31cce8
JJ
106642002-03-31 Jakub Jelinek <jakub@redhat.com>
10665
10666 PR middle-end/6100
10667 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10668 REG_BR_PRED.
10669 (output_v9branch): Likewise.
10670
ba2b7435
AO
106712002-03-31 Alexandre Oliva <aoliva@redhat.com>
10672
10673 * gcc.c: Revert previous patch for now.
10674 * config/i386/djgpp.h: Likewise.
10675
aa66aa5f 106762002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
10677
10678 * config/mmix/crti.asm (_init): Register _fini with atexit.
10679 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10680
41ba8a20
RH
106812002-03-31 Richard Henderson <rth@redhat.com>
10682
10683 PR target/3997
10684 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10685 (ASM_OUTPUT_DEF_FROM_DECLS): New.
10686
adc186ef
RH
106872002-03-31 Richard Henderson <rth@redhat.com>
10688
10689 * libgcc2.c (__bb_exit_func): Make static.
10690
9be40833 10691 * config/alpha/alpha.md (trap): New.
a7648399 10692
9602f5a0
RH
106932002-03-31 Richard Henderson <rth@redhat.com>
10694
10695 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10696 promoted argument types; build trap.
10697 (expand_builtin_trap): New.
10698 (expand_builtin): Use it.
10699 * stmt.c (expand_nl_goto_receivers): Likewise.
10700 * expr.h (expand_builtin_trap): Declare.
10701 * libfuncs.h (LTI_abort, abort_libfunc): New.
10702 * optabs.c (init_optabs): Init abort_libfunc.
10703
1a0a7539
AO
107042002-03-31 Alexandre Oliva <aoliva@redhat.com>
10705
10706 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10707 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 10708 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
10709 shared_name in the second copy.
10710 (init_spec): Test for duplicate
10711 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10712
b5de1a27
DM
107132002-03-30 David S. Miller <davem@redhat.com>
10714
10715 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10716 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10717
78414d74 107182002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 10719 Richard Henderson <rth@redhat.com>
78414d74 10720
9be40833
RH
10721 * regmove.c (combine_stack_adjustments_for_block): Avoid
10722 emitting a stack adjustment of zero bytes. Let delete_insn
10723 update bb->head.
78414d74 10724
33074e5f
RH
107252002-03-30 Richard Henderson <rth@redhat.com>
10726
10727 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10728 (sparc_emitting_epilogue): New.
10729 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10730 * config/sparc/sparc-protos.h: Update.
10731 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10732 (TARGET_SWITCHES): Update.
10733 * config/sparc/sparc.md (return): Remove.
10734 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10735 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10736 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10737 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10738 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10739 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10740 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10741 Remove MASK_EPILOGUE.
10742 * doc/invoke.texi: Update.
10743
606cc056
DB
107442002-03-30 Daniel Berlin <dan@dberlin.org>
10745
10746 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10747 CPP will start the file for us.
7b2e1077 10748
bdbe5b8d
RH
107492002-03-30 Richard Henderson <rth@redhat.com>
10750
10751 PR target/5446
10752 * config/ia64/ia64.c (group_barrier_needed_p): Special case
10753 prologue_allocate_stack.
10754 (ia64_single_set): Use insn codes for recognition of special
10755 cases, not rtl matching.
10756 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10757
4ab95d82
JH
10758Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
10759
10760 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10761
89a8b315
RH
107622002-03-30 Richard Henderson <rth@redhat.com>
10763
10764 PR target/6032
10765 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10766 or -fomit-frame-pointer with profiling.
10767 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10768 (FUNCTION_PROFILER): Do nothing.
10769 (PROFILE_HOOK): New.
10770 * config/sparc/sparc.c (sparc_override_options): Don't check
10771 code models for profiling.
10772 (sparc_function_profiler): Remove.
10773 (sparc_profile_hook): New.
10774 * config/sparc/sparc-protos.h: Update.
10775
30984c57
JJ
107762002-03-30 Jakub Jelinek <jakub@redhat.com>
10777
10778 PR optimization/6086
10779 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10780 of SUBREG of volatile MEM or because the MEM was mode dependent,
10781 return CLOBBER instead of unmodified SUBREG.
10782
1540f9eb
JH
10783Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10784
89a8b315
RH
10785 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10786 when not optimizing.
1540f9eb
JH
10787
10788 * toplev.c (rest_of_compilation): Cann mark_constant_function
10789 only when optimizing.
10790
89a8b315
RH
10791 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10792 are NULL.
1540f9eb
JH
10793
10794 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10795 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10796 (try_optimize_cfg): clear all AUX fields.
10797
10798 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10799 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10800 (ix86_address_cost): Be prepared for SUBREGed registers.
10801 (legitimate_address_p): Accept SUBREGed registers.
10802
70d95bac
RH
108032002-03-29 Richard Henderson <rth@redhat.com>
10804
10805 PR target/5672
10806 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10807
d3294cd9
FS
108082002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10809
10810 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10811 for aggregate and TFmode types.
10812
a106c875
HPN
108132002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10814
10815 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10816
7d7a5d6f
RH
108172002-03-29 Richard Henderson <rth@redhat.com>
10818
6e2d670b 10819 PR target/5886
7d7a5d6f
RH
10820 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10821 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10822
30c99a84
RH
108232002-03-29 Richard Henderson <rth@redhat.com>
10824
6e2d670b 10825 PR target/6041
30c99a84
RH
10826 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10827 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10828 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10829 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10830 conditional.
10831 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10832
02a566dc
DJ
108332002-03-29 Dale Johannesen <dalej@apple.com>
10834
10835 * loop.c (combine_movables): Do allow combination of pseudos.
10836
bc3a44db
LR
108372002-03-29 Loren J. Rittle <ljrittle@acm.org>
10838
10839 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10840 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10841 No functional change except ...
10842 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10843 * doc/install.texi (*-*-freebsd*): Document port configuration.
10844
b0c48229
NB
108452002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10846
10847 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10848 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10849 Use new hooks.
10850 * builtin-types.def (BT_PTRMODE): Update.
10851 * c-common.c (type_for_size): Rename c_common_type_for_size.
10852 (type_for_mode): Similarly.
10853 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10854 Use new hook.
10855 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10856 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10857 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10858 Redefine.
10859 * c-typeck.c (common_type, comptypes, default_conversion):
10860 Use new hooks.
10861 * calls.c: Include langhooks.h.
10862 (emit_library_call_value_1): Use new hooks. Avoid redundant
10863 calls.
10864 * convert.c: Include langhooks.h
10865 (convert_to_pointer, convert_to_integer): Use new hooks.
10866 * except.c (init_eh): Similarly.
10867 * expmed.c: Include langhooks.h.
10868 (expand_mult_add): Use new hooks.
10869 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10870 try_casesi): Similarly.
10871 * fold-const.c (optimize_bit_field_compare, make_range,
10872 decode_field_reference, fold_truthop, fold): Similarly.
10873 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10874 put_var_into_stack): Similarly.
10875 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10876 LANG_HOOKS_TYPE_FOR_SIZE): New.
10877 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10878 * langhooks.h (lang_hooks_for_types): New hooks.
10879 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10880 * tree.c (get_unwidened, get_narrower): Similarly.
10881 * tree.h (type_for_mode, type_for_size): Remove.
10882 * varasm.c (force_const_mem): Use new hooks.
10883 * utils2.c (nonbinary_modular_operation): Update.
10884objc:
10885 * objc-act.c (handle_impent): Update.
10886 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10887 Redefine.
10888
e206a74f
SE
108892002-03-29 Steve Ellcey <sje@cup.hp.com>
10890
10891 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10892 * config/ia64/ia64.c (basereg_operand): New.
10893 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10894 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10895
7d9b6378
HPN
108962002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10897
10898 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10899 unwind information when frame_pointer_needed.
10900 (mmix_assemble_integer): Tweak wording in comment.
10901
f1e639b1
NB
109022002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10903
10904 * Makefile.in (except.o): Update.
10905 * except.c: Include langhooks.h.
10906 (init_eh): Use langhook.
10907 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10908 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10909 (LANG_HOOKS_INITIALIZER): Update.
10910 * langhooks.h (lang_hooks_for_types): New.
10911 (struct lang_hooks): Add it.
10912 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10913 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10914config:
10915 * alpha/alpha.c: Include langhooks.h.
10916 (alpha_build_va_list): Use langhook.
10917 * d30v/d30v.c: Include langhooks.h.
10918 (d30v_build_va_list): Use langhook.
10919 * i386/i386.c: Include langhooks.h.
10920 (ix86_build_va_list): Use langhook.
10921 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10922 * s390/s390.c: Include langhooks.h.
10923 (s390_build_va_list): Use langhook.
10924 * stormy16/stormy16.c: Include langhooks.h.
10925 (stormy16_build_va_list): Use langhook.
10926
f17f9332
JJ
109272002-03-29 Jakub Jelinek <jakub@redhat.com>
10928
10929 PR c++/5964
10930 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10931 attributes.
10932 (length): Compute variable length for branches/calls/jumps here.
10933 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10934 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10935 define branch_type attribute.
10936 (divsi3_sp32): Maximum length is 6 not 7.
10937 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10938 call_address_untyped_struct_value_sp32,
10939 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10940 * config/sparc/sparc.c (empty_delay_slot): New function.
10941 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10942 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10943
0a0440c9
JJ
109442002-03-29 Jakub Jelinek <jakub@redhat.com>
10945
10946 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10947 nonzero_bits if not needed.
10948 (nonzero_bits) [XOR]: Likewise.
10949 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10950 reg_last_set_mode and mode are both MODE_INT, but not equal.
10951 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10952 in nonzero_bits_mode for MODE_INT modes.
10953
c9045f47
RH
109542002-03-28 Richard Henderson <rth@redhat.com>
10955
10956 PR target/5715
10957 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10958 to GAS. Correct drift between alternatives.
10959
f8ed1958
RH
109602002-03-28 Richard Henderson <rth@redhat.com>
10961
10962 PR target/6087
10963 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10964
54e20385
LR
109652002-03-28 Alexandre Oliva <aoliva@redhat.com>
10966
10967 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10968 emulation to the linker.
10969
109702002-03-28 Loren J. Rittle <ljrittle@acm.org>
10971
10972 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10973 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10974
8bc52806
JL
10975Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10976
10977 * combine.c (simplify_and_const_int): Make sure to apply mask
10978 when force_to_mode returns a constant integer. PR3311.
10979
279dccc5
JDA
109802002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10981
10982 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10983
62aaa62c
GP
109842002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10985
10986 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10987 and Objective-C Dialect Options.
10988
b8de5050
RH
109892002-03-28 Richard Henderson <rth@redhat.com>
10990
10991 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10992 comparison should be done vs !=0 not >0 return code. Tidy cases.
10993
619708cc
RH
109942002-03-28 Richard Henderson <rth@redhat.com>
10995
10996 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10997 on to c_expand_body.
10998 * c-tree.h (finish_function): Update decl.
10999 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11000
b1d874d7
JH
11001Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
11002
11003 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11004
f5eb5fd0
JH
11005Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
11006
11007 * rtlanal.c: Include flags.h
11008 (may_trap_p): Do not mark FP operations if trapping
11009 if !flag_trapping_math
11010 * Makefile.in (rtlanal.o): Add dependency on flag.h
11011 * ifcvt.c (noce_operand_ok): Avoid the lameness.
11012
81b4c798
ZW
110132002-03-27 Zack Weinberg <zack@codesourcery.com>
11014
11015 * mips.md: Use dconst1, not 1.0, as first argument of
11016 REAL_VALUE_LDEXP. Don't use union real_extract.
11017
55a2ea2a
AM
110182002-03-28 Alan Modra <amodra@bigpond.net.au>
11019
11020 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11021 rather than $target. Heed program_prefix and
11022 program_transform_name. Search for gas in cross-compiler case too.
11023 "test -x" rather than "test -f".
11024 (gcc_cv_ld): Likewise.
11025 (gcc_cv_nm): Heed program_prefix and program_transform_name.
11026 (gcc_cv_objdump): Likewise.
11027 * configure: Regenerate.
11028
7ffb4fd2
NB
110292002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11030
11031 * Makefile.in (attribs.o): Update.
11032 * attribs.c: Include langhooks.h.
11033 (decl_attributes): Use langhook.
11034 * c-decl.c (insert_default_attributes): Rename.
11035 * c-tree.h (c_insert_default_attributes): New.
11036 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11037 (LANG_HOOKS_INITIALIZER): Update.
11038 * langhooks.h (struct lang_hooks): New hook.
11039 * tree.h (insert_default_attributes): Remove.
11040objc:
11041 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11042
e4dbaed5
AS
110432002-03-27 Andreas Schwab <schwab@suse.de>
11044
11045 * config/i386/i386.c (classify_argument): Also check for
11046 QUAL_UNION_TYPE.
11047
18b467f1
RO
110482002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11049
11050 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11051 any more.
11052
d337d653
JH
11053Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
11054
11055 * i960.md (ret): Set PC.
11056 (nonlocal_goto): Fix expander.
11057 * builtins.c (epxand_builin_longjmp): Check that we've emitted
11058 some jump or call.
11059
218aa620
JH
11060Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
11061
11062 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11063 of libcall regions.
11064
e27a4eaf
ZD
11065Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11066
11067 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11068 assigning to BLOCK_FOR_INSN directly.
11069
8a12f34c
JH
11070Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
11071
11072 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11073
c9d892a8
NB
110742002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11075
11076 * c-common.c (c_expand_expr): Fix prototype.
11077 * c-common.h (c_expand_expr): Always declare, update.
11078 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11079 * c-objc-common.c (c_objc_common_init): No global hook.
11080 * expr.c (expand_expr): Use langhook.
11081 * expr.h (enum expand_modifier): Conditionally declare.
11082 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11083 (LANG_HOOKS_INITIALIZER): Update.
11084 * langhooks.c (lhd_expand_expr): New.
11085 * langhooks.h (struct lang_hooks): New hook.
11086 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11087 (lang_independent_init): Don't default hook.
11088objc:
11089 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11090
6dad5a56
RH
110912002-03-27 Richard Henderson <rth@redhat.com>
11092
11093 PR target/6054
11094 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11095 TARGET_CONST_GP. Simplify conditions.
11096
59f96879
RH
110972002-03-27 Richard Henderson <rth@redhat.com>
11098
11099 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11100 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11101 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11102
f3f1190d
DS
111032002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
11104
11105 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11106 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11107 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11108 Remove unnecessary masks.
11109 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11110 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11111 -mwindows, -mdll switches and their negations.
11112
31c816cf
NB
111132002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11114
11115 * gcc-common.c (lang_mark_false_label_stack): Remove.
11116 * ggc.h (lang_mark_false_label_stack): Similarly.
11117
7b2e1077 111182002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
11119
11120 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11121
11122 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11123 or __rtems_ is defined.
11124
1ef9531b
RH
111252002-03-26 Richard Henderson <rth@redhat.com>
11126
11127 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11128 if a non-trivial load was emitted.
11129 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
11130 in high+extra+low case.
11131
300d4093
RH
111322002-03-26 Richard Henderson <rth@redhat.com>
11133
11134 * config.gcc (sparc*-solaris): Use float_format=sparc.
11135
b3689904
RH
111362002-03-26 Richard Henderson <rth@redhat.com>
11137
11138 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11139 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11140 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11141 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11142 (WINT_TYPE_SIZE): Fix at 32.
11143
1eefb6c1
RH
111442002-03-26 Richard Henderson <rth@redhat.com>
11145
11146 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11147 until after eh landing pad generation.
11148 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11149 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11150
361ea006
RH
111512002-03-26 Richard Henderson <rth@redhat.com>
11152
11153 * expr.h (ADD_PARM_SIZE): One more convert for INC.
11154
1de38a88
PE
111552002-03-26 Phil Edwards <pme@gcc.gnu.org>
11156
11157 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
11158 and warning switches.
11159 (cc1_options): Likewise.
11160
d7e60e95 111612002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 11162
d7e60e95
HB
11163 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11164 Restore more of the signal context. Set no_reg_stack_frame.
11165 * config/ia64/unwind-ia64.c (unw_state_record):
11166 Add no_reg_stack_frame, comments.
11167 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11168 (uw_update_context): Adjust bsp when unwinding from leaf,
11169 but not signal frame.
11170
7032923b
DE
111712002-03-26 David Edelsohn <edelsohn@gnu.org>
11172
11173 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11174
8be56275
BW
111752002-03-26 Bob Wilson <bob.wilson@acm.org>
11176
11177 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11178
56fbb855
RE
111792002-03-26 Richard Earnshaw <rearnsha@arm.com>
11180
11181 PR target/5621
11182 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11183 "Add a pool_range attribute", which was lost during the ARM/Thumb
11184 merge.
11185
3437320b
BW
111862002-03-26 Bob Wilson <bob.wilson@acm.org>
11187
11188 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11189 a register into the MAC16 accumulator.
11190
173028e5
AC
111912002-03-26 Andrew Cagney <ac131313@redhat.com>
11192
11193 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11194 (Warning Options): Document -Wswitch-enum.
11195 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
11196 -Wswitch.
11197 (warn_switch_enum): Define variables.
11198 * flags.h (warn_switch_enum): Declare variables.
11199 * stmt.c (expand_end_case_type): When warn_switch_enum /
11200 -Wswitch-enum, perform switch checks.
11201 Fix PR c/5044.
7b2e1077 11202
e14365a7
RE
112032002-03-26 Richard Earnshaw <rearnsha@arm.com>
11204
11205 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11206 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11207 (reload_muladdsi_compare0_scratch): Delete.
11208
46fc709d
LR
112092002-03-26 Loren J. Rittle <ljrittle@acm.org>
11210
11211 * doc/install.texi (*-*-freebsd*): Update.
11212
f36dea3c
RH
112132002-03-26 Richard Henderson <rth@redhat.com>
11214
8e5fe23f
RH
11215 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11216 (SUB_PARM_SIZE): Cast DEC to ssizetype.
11217
11218 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11219 types from the normal argument frame.
11220
f36dea3c
RH
11221 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11222 variable sized objects by reference.
11223 (sparc_va_arg): Receive them by reference too.
11224
1447dc69
HP
112252002-03-26 Hartmut Penner <hpenner@de.ibm.com>
11226
11227 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 11228 code to not restoring global registers.
1447dc69 11229
4f0ade92
NB
112302002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11231
11232 * Makefile.in (ggc-common.o): Update.
11233 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11234 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11235 * c-tree.h (c_mark_tree): New.
11236 * ggc-common.c: Include langhooks.h.
11237 (gcc_mark_trees): Use new langhook.
11238 * ggc-callbacks.c: Delete file.
11239 * ggc.h (lang_mark_tree): Remove.
11240 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11241 (LANG_HOOKS_INITIALIZER): Update.
11242 * langhooks.h (struct lang_hooks): New hook.
11243objc:
11244 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11245
caba570b
ZW
112462002-03-25 Zack Weinberg <zack@codesourcery.com>
11247
11248 * doc/cpp.texi: Exclude entire Top node from printed manual.
11249 Move option index after directive index. Insert page breaks
11250 before GFDL and concept index. Index environment variables
11251 with command line options.
11252 * doc/cppenv.texi: Use @vtable for environment variable list.
11253 Add paragraph explaining semantics of empty elements in path
11254 variables. Exclude a cross-reference to Fishkill from the
11255 manpage. Remove an unnecessary cross-reference of the entry
11256 right above the referer. Don't use @anchor in text that goes
11257 into manpage.
11258 * doc/cppopts.texi: Cross-reference the environment variables
11259 section, not the specific environment variable, for consistency.
11260
6b2e80b7
RH
112612002-03-25 Richard Henderson <rth@redhat.com>
11262
11263 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11264 anywhere in the block. Don't refer to insns that have been
11265 removed from the chain. Iterate backward through the new insns.
11266 Don't refer to edges that have been removed.
11267
67e469d7
AM
112682002-03-26 Alan Modra <amodra@bigpond.net.au>
11269
11270 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11271 test for overflow of constant.
11272
f2356393
RE
112732002-03-25 Richard Earnshaw <rearnsha@arm.com>
11274
11275 PR target/2623
11276 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11277 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11278 these patterns on arm_archv4.
11279
355426ab
DS
112802002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
11281
11282 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11283 int".
11284
15e5ad76
ZW
112852002-03-25 Zack Weinberg <zack@codesourcery.com>
11286
11287 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
11288 float_handled, float_handler, float_signal, set_float_handler,
11289 and do_float_handler. Set handler for SIGFPE to crash_signal.
11290 * toplev.h: Don't prototype do_float_handler.
11291
11292 * c-lex.c: Fold parse_float into lex_number. Make warning
11293 about portability of hex float constants more informative, and
11294 don't issue it on top of a syntax error.
11295 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11296 their callers.
11297 * real.h: Define REAL_VALUE_ABS here...
11298 * simplify-rtx.c: ... not here. Fold check_fold_consts,
11299 simplify_unary_real, simplify_binary_real, and
11300 simplify_binary_is2orm1 into their callers.
11301 * tree.c: Fold build_real_from_int_cst_1 into caller.
11302
11303 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11304
11305 * tsystem.h: Include float.h here...
11306 * libgcc2.c: ... not here.
11307
56ae9405
NC
113082002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
11309
11310 Fixes for: PR bootstrap/3591, target/5676
11311 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11312 defined. Do not disable exceptions or rtti.
11313 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11314 mcore.h. Disable exceptions and rtti, since they are not
11315 supported by EPOC.
11316
c88770e9
NB
113172002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11318
11319 * c-decl.c (maybe_build_cleanup): Remove.
11320 * expr.c (expand_expr): Use langhook.
11321 * langhooks-def.h (lhd_return_null_tree,
11322 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11323 (LANGHOOKS_INITIALIZER): Update.
11324 * langhooks.c (lhd_return_null_tree): New.
11325 * langhooks.h (struct lang_hooks): New hook.
11326 * tree-inline.c (initialize_inlined_parameters): Use langhook.
11327 * tree.h (maybe_build_cleanup): Remove.
11328
2ed1f154
JJ
113292002-03-25 Jakub Jelinek <jakub@redhat.com>
11330
11331 * regrename.c (build_def_use): Move recog_memoized
11332 before extract_insn.
11333
6ddae612
JJ
113342002-03-25 Jakub Jelinek <jakub@redhat.com>
11335
11336 PR target/6043
11337 * expr.c (emit_group_store): Handle storing into CONCAT.
11338
ea475b23
JJ
113392002-03-25 Jakub Jelinek <jakub@redhat.com>
11340
11341 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11342 corresponding MATCH_DUP.
11343
e7d482b9
RH
113442002-03-24 Richard Henderson <rth@redhat.com>
11345
cd39fc13
RH
11346 * unroll.c (unroll_loop): Zero label_map.
11347
e7d482b9
RH
11348 * gcse.c: Include except.h.
11349 * Makefile.in (gcse.o): Update.
11350
1bd6476f
RH
113512002-03-24 Richard Henderson <rth@redhat.com>
11352
11353 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11354 Do resolve_unique_section before shared data clause.
11355
2e6c150a
RH
113562002-03-24 Richard Henderson <rth@redhat.com>
11357
11358 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11359
b29afcf8
RH
113602002-03-24 Richard Henderson <rth@redhat.com>
11361
15e5ad76 11362 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
11363 generated in the middle of a block. Do global life update if
11364 zapped EH edges.
11365
05ed1296
RH
113662002-03-24 Richard Henderson <rth@redhat.com>
11367
11368 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11369
3ddbb8a9
NB
113702002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11371
11372 preprocessor/3951
15e5ad76 11373 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
11374 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11375 (init_dependency_output): Don't make no_output decision here.
11376
740b77b6
AC
113772002-03-24 Andrew Cagney <ac131313@redhat.com>
11378
11379 * stmt.c (check_for_full_enumeration_handling): Remove tests of
11380 warn_switch. Update description.
11381 (expand_end_case_type): Call check_for_full_enumeration_handling
11382 when warn_switch.
11383
7590cfd0
SC
113842002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11385
11386 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11387 (m68hc11_split_move): Call it to see if the source and destination
11388 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 11389 source an offsetable memory operand and generate an add.
7590cfd0 11390
2e3d3481
SC
113912002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11392
11393 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11394 register for operand 2.
11395 ("*subsi3_zero_extendqi"): Likewise.
11396 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11397 bits so that it is compatible with a pop.
11398 ("*andhi3_gen"): Likewise.
11399 ("xorhi3"): Likewise.
11400
2784528c
NB
114012002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11402
11403 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11404 -pedantic here...
11405 (cpp_post_options): ... not here.
11406
aaf93206
NB
114072002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11408 Aldy Hernandez <aldyh@redhat.com>
11409
11410 Removal of separate preprocessor cpp0.
11411
11412 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11413 cpp0, install-common): Update.
11414 * c-common.c (flag_preprocess_only): New.
11415 (c_common_init): Preprocess for -E.
11416 * c-common.h (flag_preprocess_only): New.
11417 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11418 * c-objc-common.c (c_init_decl_processing): Exit quickly
11419 for NULL return from c_common_init.
11420 * cpplib.h (cpp_preprocess_file): New.
11421 * cppmain.c (main, general_init, pfile, progname): Remove.
11422 (do_preprocessing): Rename cpp_preprocess_file, don't call
11423 cpp_finish. Don't close stdout here.
11424 (setup_callbacks): Update prototype.
11425 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11426 Update.
11427 * tradcpp.c (main): Ignore -quiet.
11428objc:
11429 * lang-specs.h (default_compilers): Preprocess with cc1obj.
11430
c6e6f5c1
RH
114312002-03-24 Richard Henderson <rth@redhat.com>
11432
11433 PR optimization/5742
11434 * machmode.def: Add inner mode field to complex modes.
11435 * config/mips/mips.c (mips_function_value): Always define. Add
11436 new argument to handle libcalls.
11437 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11438 (FUNCTION_VALUE): Likewise.
11439 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11440 * config/mips/mips-protos.h: Update.
11441
d88e57d1
RH
114422002-03-23 Richard Henderson <rth@redhat.com>
11443
11444 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11445 * config/sparc/sparc-protos.h: Update.
11446 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11447
6dfaf9ba
RH
114482002-03-23 Richard Henderson <rth@redhat.com>
11449
11450 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11451 _start or _init begins the text segment.
11452
0c769cf8
DE
114532002-03-23 David Edelsohn <edelsohn@gnu.org>
11454
11455 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
11456 not HOST_WIDEST_INT.
11457 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11458
64e92a26
RE
114592002-03-23 Richard Earnshaw <rearnsha@arm.com>
11460
11461 PR java/5489
11462 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11463 operand argument to output_return_instruction.
15e5ad76 11464 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
11465 const_true_rtx then just return.
11466 (arm_print_operand, case 'D'): If the operand is const_true_rtx
11467 then abort.
11468
d6961341
AC
114692002-03-23 Andrew Cagney <ac131313@redhat.com>
11470
11471 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11472 (Warning Options): Document -Wswitch-default.
11473 * toplev.c (W_options): Add -Wswitch-default. Update comment on
11474 -Wswitch.
11475 (warn_switch_default): Define variable.
11476 (warn_switch): Update comment.
11477 * flags.h (warn_switch_default): Declare variable.
11478 (warn_switch): Update comment.
11479 * stmt.c (expand_end_case): Check for and, when
11480 warn_switch_no_default, warn of a missing default case.
15e5ad76 11481
d4c5ac1f
AM
114822002-03-23 Alan Modra <amodra@bigpond.net.au>
11483
bbaa9790
AM
11484 * real.h (N): Special case 128 bit doubles.
11485
d4c5ac1f
AM
11486 * combine.c (simplify_comparison): When widening modes, ignore
11487 sign extension on CONST_INTs.
11488
84bf8c2c
BW
114892002-03-22 Bob Wilson <bob.wilson@acm.org>
11490
11491 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11492 passed to adjust_address. Fix comment formatting.
11493
11494
b216cd4a
ZW
114952002-03-22 Zack Weinberg <zack@codesourcery.com>
11496
11497 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11498 Always make REAL_VALUE_TYPE a struct containing an array of
11499 HOST_WIDE_INT, not a double. Tidy up the code deciding how
11500 big it is. Don't declare or use union real_extract.
11501
11502 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11503 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11504 (print_operand), config/arm/arm.c (output_move_double),
11505 config/arm/arm.md (consttable_4, consttable_8),
11506 config/romp/romp.c (output_fpops), config/s390/s390.h
11507 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11508 (xtensa_output_literal): Don't use union real_extract.
11509
11510 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11511 (sfmode_constant_to_ulong), config/ns32k/merlin.h
11512 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11513 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11514 (PRINT_OPERAND): Don't use local version of union
11515 real_extract.
11516
11517 * config/convex/convex.c (check_float_value), config/vax/vax.c
11518 (vax_float_literal), config/m88k/m88k.md (divdf3),
11519 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11520 config/pdp11/pdp11.c (output_move_quad): Don't do host
11521 arithmetic on target floating point quantities.
11522
11523 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11524 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11525
11526 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11527 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11528
11529 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11530 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11531 INFINITY.
11532 * print-rtl.c (print_rtx): Disable code which needs
11533 floating-point emulator.
11534 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11535 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11536 depending on HOST_FLOAT_FORMAT to be defined properly.
11537
11538 * config/1750a/1750a.c (get_double, float_label): Delete.
11539 (print_operand): Delete huge commented-out chunk. Use
11540 REAL_VALUE_TO_DECIMAL.
11541 * config/1750a/1750a-protos.h: Delete prototypes of deleted
11542 functions.
11543 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11544 IEEE_FLOAT_FORMAT.
11545 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11546 Use REAL_VALUE_TO_DECIMAL as ELF version does.
11547 * config/m88k/m88k.c (real_power_of_2_operand,
11548 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11549 real_extract out of the union; run the input through
11550 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11551 from that into the union.
11552 * config/pdp11/pdp11.c (output_move_double): Rearrange
11553 parentheses to make automatic indenter happy.
11554
11555 * doc/tm.texi (Cross-compilation): Rename node to "Floating
11556 Point" and rewrite to describe current situation. Also adjust
11557 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11558 match code.
11559 * doc/rtl.texi: Adjust cross reference.
11560
a8cacfd2
BW
115612002-03-22 Bob Wilson <bob.wilson@acm.org>
11562
11563 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11564 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11565 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11566 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11567 prevent use of sp as a reload register.
11568 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11569 non_acc_reg_operand.
11570 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11571 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11572 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11573 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11574
d4e6133f
NB
115752002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11576
b216cd4a
ZW
11577 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11578 * cpplex.c (unterminated): Delete.
11579 (parse_string): No string literal may extend over multiple
11580 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
11581 * cppmain.c (scan_translation_unit): Strings are single-line.
11582
b216cd4a 11583 * doc/cpp.texi: Update to match.
d4e6133f 11584
65e6c005
JJ
115852002-03-22 Jakub Jelinek <jakub@redhat.com>
11586
11587 PR optimization/5854
11588 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11589 Shut up warnings.
11590 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11591 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11592 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11593 const0 if scratch register was not allocated.
11594 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11595 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11596 with GEN_INT (...).
11597 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11598 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11599 with GEN_INT (...) everywhere. Remove constraints in define_split
11600 patterns.
11601 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11602 require scratch register for setting 0 into regs/non-pushable memory.
11603
7f48c9e1
AO
116042002-03-22 Alexandre Oliva <aoliva@redhat.com>
11605
11606 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11607 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11608
909de5da
PE
116092002-03-22 Phil Edwards <pme@gcc.gnu.org>
11610
11611 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
11612 * cppinit.c (cpp_create_reader): On by default.
11613 (cpp_handle_option): Handle -W[no-]endif-labels.
11614 (cpp_post_options): Also enable if -pedantic.
11615 * cpplib.c (do_else): Use it.
11616 (do_endif): Likewise.
11617 * doc/cppopts.texi: Document new option.
11618 * doc/invoke.texi: Document new option.
11619
d8bf17f9
LB
116202002-03-22 Lars Brinkhoff <lars@nocrew.org>
11621
11622 * config/i386/i386.c, config/i386/i386.md: Change all occurences
11623 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11624
70e0ccd0
AO
116252002-03-22 Alexandre Oliva <aoliva@redhat.com>
11626
11627 * flow.c (calculate_global_regs_live): Clear aux fields of
11628 ENTRY and EXIT.
11629
68882f0f
JJ
116302002-03-22 Jakub Jelinek <jakub@redhat.com>
11631
11632 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11633 REG or MEM subregs, pass rtx * instead of rtx to it.
11634 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11635 rtx * instead of rtx to alter_subreg.
11636 * config/m32r/m32r.c (gen_split_move_double): Likewise.
11637 * config/pj/pj.c (pj_output_rval): Likewise.
11638
648fe28b
RH
116392002-03-22 Richard Henderson <rth@redhat.com>
11640
11641 PR target/3177
11642 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11643 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11644 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11645 (ia64_expand_prologue): Look at int_regs, not words, for number
11646 of incomming int regs.
11647
e8dcd824
AM
116482002-03-22 Andrew MacLeod <amacleod@redhat.com>
11649
11650 * expr.c (expand_expr): A RESULT_DECL is part of a call.
11651
96327cdc
JH
11652Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
11653
11654 * toplev.c (flag_loop_optimize, flag_crossjumping):
11655 New static variables.
11656 (rest_of_compilation): Conditionalize crossjumping and
11657 loop optimizer.
11658 (parse_options_and_default_flags): Default loop_optimize and
11659 crossjumping.
11660 (lang_independent_options): Add -fcrossjumping and -floop-optimize
11661 * invoke.texi (crossjumping, loop-optimize): Document.
11662
bc185257
RS
116632002-03-22 Richard Sandiford <rsandifo@redhat.com>
11664
11665 * real.c (eiisneg): Move outside #ifdef NANS.
11666
0a2ed1f1
JH
11667Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
11668
11669 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11670 frequencies match; avoid match on different loop depths.
11671 (try_crossjump_to_bb): Kill tests that no longer brings time
11672 savings.
11673 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11674 updating code.
11675 (split_edge): Likewise.
11676
11677 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11678 variable.
11679
11680 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11681 * cfgrtl.c: Include insn-config.h
11682 (split_block) Dirtify block in presence of conditional execution
11683
4d72536e
RS
116842002-03-22 Richard Sandiford <rsandifo@redhat.com>
11685
11686 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11687 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11688 (function_arg): Constify CUMULATIVE_ARGS.
11689 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11690 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11691 (UNITS_PER_DOUBLE): New macro.
11692 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
11693 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
11694 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
11695 fp_regs and stack_words.
11696 (EABI_FLOAT_VARARGS_P): New macro.
11697 * config/mips/mips.c (struct mips_arg_info): New.
11698 (mips_arg_info): New function.
11699 (function_arg_advance): Use it. Add adjustment instructions here
11700 rather than in function_arg.
11701 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
11702 for VOIDmode at the beginning of the function.
11703 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
11704 (function_arg_pass_by_reference): Likewise.
11705 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11706 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11707 (mips_va_start): Likewise. Use the new stack_words field of
11708 CUMULATIVE_ARGS to set up overflow area. Reformat.
11709 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
11710 doubles and other types, aligning the overflow pointer for non-doubles
11711 too. Remove some code duplication. Replace hard-coded constants.
11712
e6f884cd
RS
117132002-03-22 Richard Sandiford <rsandifo@redhat.com>
11714
11715 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11716 (CLASS_UNITS): Undefine.
11717 (CLASS_MAX_NREGS): Use FP_INC.
11718 * config/mips/mips.c (compute_frame_size): Likewise.
11719 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11720
10cf9bde
NB
117212002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11722
11723 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11724 prototype, and handle lexing numbers and identifiers.
11725 (parse_identifier): Update to new form of parse_slow.
11726 (parse_number): Fast path only, use parse_slow otherwise.
11727 (_cpp_lex_direct): Update calls to parse_number.
11728
fbc2782e
DD
117292002-03-21 DJ Delorie <dj@redhat.com>
11730
11731 * bb-reorder.c (make_reorder_chain_1): Protect against
11732 when redundant edges are omitted.
11733 * predict.c (dump_prediction): Likewise.
11734
fba39eaf
RH
117352002-03-21 Richard Henderson <rth@redhat.com>
11736
11737 PR target/5996
11738 * fixinc/inclhack.def (solaris_stdio_tag): New.
11739 * fixinc/fixincl.x: Regenerate.
11740
eba80994
EB
117412002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11742
11743 PR c/5597
11744 * c-typeck.c (process_init_element): Flag non-static
11745 initialization of a flexible array member as illegal.
11746
2a78758b
AM
117472002-03-22 Alan Modra <amodra@bigpond.net.au>
11748
11749 * config/rs6000/t-linux64: New.
11750 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11751 t-ppccomm. Use t-rs6000 and t-linux64.
11752 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
11753 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11754 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11755 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 11756
2cb921f4
AH
117572002-03-21 Aldy Hernandez <aldyh@redhat.com>
11758
eba80994
EB
11759 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11760 flag_really_no_inline instead of optimize == 0.
2cb921f4 11761
eba80994 11762 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 11763
eba80994 11764 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 11765
eba80994 11766 * flags.h (flag_really_no_inline): New.
2cb921f4 11767
659e5a7a 11768 * c-common.c (c_common_post_options): Initialize
eba80994 11769 flag_really_no_inline.
2cb921f4 11770
eba80994 11771 * toplev.c (flag_really_no_inline): New.
2cb921f4 11772
239b8b9d
JJ
117732002-03-21 Jakub Jelinek <jakub@redhat.com>
11774
11775 * config/avr/avr.md (length): Fix length computation for
11776 conditional branches.
11777
43577e6b
NB
117782002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11779
11780 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11781 sdbout.o, profile.o): Update.
11782 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11783 langhook.
11784 * c-common.h (gettags): Move here from tree.h.
11785 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11786 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11787 * dbxout.c (dbxout_init): Use getdecls langhook.
11788 * expr.c (expand_expr): Use insert_block langhook.
11789 * fold-const.c: Include langhooks.h.
11790 (fold_range_test, fold_binary_op_with_conditional_arg,
11791 fold): Use global_bindings_p langhook.
11792 * integrate.c (expand_inline_function): Use insert_block langhook.
11793 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11794 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11795 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11796 LANG_HOOKS_GETDECLS): New.
11797 (LANG_HOOKS_INITIALIZER): Update.
11798 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11799 langhook.
11800 * langhooks.h (struct lang_hooks_for_decls): New.
11801 (struct lang_hooks): Update.
11802 * profile.c: Include langhooks.h.
11803 (output_func_start_profiler): Use new langhooks.
11804 * sdbout.c: Include langhooks.h.
11805 (sdbout_init, sdbout_finish): Use getdecls langhook.
11806 * stmt.c: Include langhooks.h.
11807 (expand_fixup, fixup_gotos): Use new langhooks.
11808 * stor-layout.c: Include langhooks.h.
11809 (variable_size): Use global_bindings_p langhook.
11810 * toplev.c (compile_file): Use getdecls langhook.
11811 * tree-inline.c (remap_block): Use insert_block langhook.
11812 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11813 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11814
5b19b10c
RH
118152002-03-21 Richard Henderson <rth@redhat.com>
11816
11817 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11818 constants in .data when -fpic.
11819
e05af335
GP
118202002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11821
11822 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11823 where appropriate.
11824
60ffc997
TT
118252002-03-21 Tom Tromey <tromey@redhat.com>
11826
11827 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11828
75897075
RK
11829Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11830
a73afd69 11831 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 11832
75897075
RK
11833 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11834
312687cf
EB
118352002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11836 Richard Henderson <rth@redhat.com>
11837
11838 PR c/5354
11839 * c-common.c (c_expand_expr): Preserve result of a statement
11840 expression if needed.
11841
f0e1f482
JJ
118422002-03-21 Jakub Jelinek <jakub@redhat.com>
11843
11844 PR bootstrap/4195
11845 * genrecog.c (maybe_both_true_mode): Remove.
11846 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11847 * machmode.def (Pmode): Likewise.
11848
c14b9960
JW
11849Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11850
11851 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11852 (nonlocal_mentioned_p_1): New function.
11853 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11854 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11855 (mark_constant_function): Recognize pure functions.
11856 * rtl.h (global_reg_mentioned_p): New prototype.
11857 * rtlanal.c (global_reg_mentioned_p,
11858 global_reg_mentioned_p_1): New function.
11859
aaa4d130
RO
118602002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11861
11862 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11863 UNIX assert.h.
11864 * fixinc/fixincl.x: Regenerate.
11865
e5c4bd1b
JM
118662002-03-20 Jason Merrill <jason@redhat.com>
11867
11868 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11869
852b81bb
MM
118702002-03-20 Michael Meissner <meissner@redhat.com>
11871
11872 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11873 -fstrict-aliasing.
11874
86d8c251
BW
118752002-03-20 Bob Wilson <bob.wilson@acm.org>
11876
11877 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11878 ".literal_position" directive before the constant pool.
11879
0a39c350
GP
118802002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11881
11882 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11883 Add Craig Rodrigues.
11884 Add Brad Lucier to testers.
11885
71a83373
JJ
118862002-03-20 Jakub Jelinek <jakub@redhat.com>
11887
11888 PR target/4792
11889 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11890 to if_then_else.
11891 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11892 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11893 instead of insn_extract.
11894
a29b099d
JJ
118952002-03-20 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR bootstrap/4192
71a83373 11898 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
11899
11900 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11901 stmt if some case has been output.
11902
048b1c95
JJ
119032002-03-20 Jakub Jelinek <jakub@redhat.com>
11904
11905 PR c/5972
11906 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11907 movsfcc_1, movdfcc_1): Add %O2.
11908 * config/i386/i386.c (print_operand): Handle %ON.
11909 Print . before float condition codes in Sun as cmov syntax.
11910 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11911 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11912 no longer true.
11913
f4864588
PB
119142002-03-20 Philip Blundell <pb@nexus.co.uk>
11915
11916 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11917 return instruction if PC was popped.
11918
3a307de4
BW
119192002-03-20 Bob Wilson <bob.wilson@acm.org>
11920
11921 * config/xtensa/xtensa.md: Remove unused type attributes.
11922 (adddi_carry, subddi_carry): Change type attribute to "multi".
11923
048b1c95 119242002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
11925
11926 PR optimization/5999, middle-end/5731
11927 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11928 multiplications by reciprocals.
11929
7afff7cf
NB
119302002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11931
11932 * Makefile.in: Update.
11933 * c-common.c: Include langhooks.h.
11934 (inline_forbidden_p): Use new hook.
11935 * diagnostic.c: Include langhooks.h.
11936 (format_with_decl, announce_function,
11937 default_print_error_function): Use new hook.
11938 * dwarf2out.c (dwarf2_name): Use new hook.
11939 * function.c: Include langhooks.h.
11940 (init_function_start): Use new hook.
11941 * langhooks-def.h (lhd_decl_printable_name): New.
11942 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11943 (LANGHOOKS_INITIALIZER): Update.
11944 * langhooks.c (lhd_decl_printable_name): New.
11945 * langhooks.h (struct lang_hooks): New hook.
11946 * toplev.c (decl_name, decl_printable_name): Remove.
11947 (open_dump_file): Use new hook.
11948 (process_options): Remove old hook.
11949 * tree.h (decl_printable_name): Remove.
11950objc:
11951 * objc-act.c (objc_init): Remove old hook.
11952 (objc_printable_name): Export.
11953 * objc-act.h (objc_printable_name): New.
11954 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11955
f78ce0b7
JB
119562002-03-19 Jim Blandy <jimb@redhat.com>
11957
11958 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11959 the start_source_file debug hook, not the current line number.
11960
15b5aef3
RH
119612002-03-19 Richard Henderson <rth@redhat.com>
11962
11963 * flow.c (EH_USES): Provide default.
11964 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11965 * doc/tm.texi (EH_USES): New.
11966
11967 * config/ia64/ia64.c (ia64_eh_uses): New.
11968 * config/ia64/ia64-protos.h: Update.
11969 * config/ia64/ia64.h (EH_USES): New.
11970
02a7a3fd
RH
119712002-03-19 Richard Henderson <rth@redhat.com>
11972
11973 * varasm.c (output_constant_def): Fix stupid typo.
11974
93f82d60
RH
119752002-03-19 Richard Henderson <rth@redhat.com>
11976
2842be05 11977 PR 5879
93f82d60
RH
11978 * except.c (current_function_has_exception_handlers): New.
11979 * except.h: Declare it.
11980 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11981 Combine tests that disable all sibcalls for the function.
11982
ed4fbfa0
OH
119832002-03-19 Olivier Hainque <hainque@act-europe.fr>
11984
11985 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11986 for INTEGER_CST.
11987
ebf0e888
RH
119882002-03-19 Richard Henderson <rth@redhat.com>
11989
1e82682b 11990 PR 5977, 5991
ebf0e888
RH
11991 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11992 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11993
e37b38d7
JB
119942002-03-19 Jim Blandy <jimb@redhat.com>
11995
11996 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11997 name, even if the replacement list contains no tokens, as required
11998 by Dwarf.
11999
2a4ea326
JM
120002002-03-19 Jason Merrill <jason@redhat.com>
12001
f9d09ae5
JM
12002 * varasm.c (globalize_decl): Get the name from the RTL, not
12003 DECL_ASSEMBLER_NAME.
12004
2a4ea326
JM
12005 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12006
99b96edb
BW
120072002-03-19 Bob Wilson <bob.wilson@acm.org>
12008
12009 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12010 subdi_carry): Define.
12011
3774b567
DE
120122002-03-19 David Edelsohn <edelsohn@gnu.org>
12013
12014 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12015 about -fpic/-fPIC if extra_warnings set.
12016
21ef78aa
DE
120172002-03-19 David Edelsohn <edelsohn@gnu.org>
12018
12019 * expr.c (expand_expr): Sign-extend CONST_INT generated from
12020 TREE_STRING_POINTER.
0c2fdcdf 12021 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 12022
91d4b3fd
RK
12023Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12024
12025 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12026 in favor of SP if FRAME_POINTER_REQUIRED is false.
12027
2496c7bd
LB
120282002-03-19 Lars Brinkhoff <lars@nocrew.org>
12029
12030 * emit-rtl.c (gen_int_mode): New function.
12031 * rtl.h: Prototype for it.
12032 * combine.c (make_extraction, simplify_comparison), expmed.c
12033 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12034 (convert_modes, store_field), optabs.c (expand_fix),
12035 simplify-rtx.c (neg_const_int, simplify_unary_real),
12036
12037 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12038 Use it instead of GEN_INT (trunc_int_for_mode (...)).
12039
f735a153
JJ
120402002-03-19 Jakub Jelinek <jakub@redhat.com>
12041
12042 PR c/5656
12043 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12044 convert_parm_for_inlining.
12045 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12046 Define.
12047 * langhooks-def.h: Likewise.
12048 * objc/objc-lang.c: Likewise.
12049 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12050 function.
12051 * tree-inline.c (initialize_inlined_parameters):
12052 Call convert_parm_for_inlining lang hook if needed.
12053 * c-typeck.c (c_convert_parm_for_inlining): New function.
12054 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12055
1929c971
MM
120562002-03-18 Mark Mitchell <mark@codesourcery.com>
12057
b216cd4a 12058 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
12059 can be destroyed after expanding the argument.
12060 (expand_call): Likewise.
12061
c79ca0ac
EC
120622002-03-15 Eric Christopher <echristo@redhat.com>
12063
12064 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12065 Fix register preference on last change.
12066 * config/mips/mips.c (mips_return_in_memory): New function.
12067 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12068 * config/mips/mips-protos.h: Declare.
12069 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12070 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12071
07e2e444
AO
120722002-03-18 Alexandre Oliva <aoliva@redhat.com>
12073
1bfbbbcf
AO
12074 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12075 a register too.
12076 (anddi3, iorsi3): Likewise.
12077
c066429e
AO
12078 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12079 use %gprel for symbols that are going to be placed in linkonce
12080 sections.
12081
07e2e444
AO
12082 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12083 RETURN_ADDRESS_POINTER_REGNUM to $ra.
12084 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12085 not needed. Disregard leaf_function_p().
12086 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12087 mips16 frame pointer.
12088 * config/mips/mips.md (store ra): Only to small SP offsets.
12089 2001-08-22 Graham Stott <grahams@redhat.com>
12090 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12091 return a REG rtx for the return address register.
12092
eb8e00ea
BW
120932002-03-18 Bob Wilson <bob.wilson@acm.org>
12094
12095 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12096 constant-pool addresses as "mode-dependent".
12097 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12098
cbb92744
JJ
120992002-03-18 Jakub Jelinek <jakub@redhat.com>
12100
12101 PR target/5740
12102 * expr.c (emit_group_load): Use extract_bit_field if
12103 needed for CONCAT arguments.
12104
657d9449
RE
121052002-03-18 Richard Earnshaw <rearnsha@arm.com>
12106
91f3a802 12107 PR target/4863
657d9449
RE
12108 * arm.md (tablejump): Make this a define_expand. For PIC add the
12109 offset to the base of the table.
12110 (thumb_tablejump): Matcher for Thumb tablejump insn.
12111 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12112 as the difference of two labels.
12113 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12114 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12115 tables in the code.
12116 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12117 * arm.c (get_jump_table_size): If the table is not in the text
12118 section, return zero.
c79ca0ac 12119
5d5603e2
BS
121202002-03-18 Bernd Schmidt <bernds@redhat.com>
12121
12122 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12123 of gen_rtx_SUBREG.
12124 (arm_reload_out_hi): Use gen_lowpart instead of
12125 gen_rtx_SUBREG to access QImode components.
12126 * config/arm/arm.md: Disable zero_extend split for QImode
12127 subregs in BIG_ENDIAN mode.
12128 (storehi_bigend): Match use of least significant byte.
12129 (storeinthi): Remove extraneous SUBREG.
66c17b64 12130 Add missing construction of operands[2].
5d5603e2
BS
12131 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12132 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12133 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12134
df15fbc7
AH
121352002-03-18 Aldy Hernandez <aldyh@redhat.com>
12136
2496c7bd
LB
12137 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12138 any_operand.
df15fbc7 12139
b83b7fa3
RH
121402002-03-17 Richard Henderson <rth@redhat.com>
12141
12142 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12143 explicitly.
12144
6f7c00fe
HPN
121452002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12146
12147 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12148 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12149
155038f2
KG
121502002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12151
720d42fa
KG
12152 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12153
155038f2
KG
12154 * predict.c (estimate_bb_frequencies): Delete unused variables.
12155
e6542f4e
RH
121562002-03-17 Richard Henderson <rth@redhat.com>
12157
12158 * config/ia64/ia64.c (ia64_attribute_table): Move before
12159 targetm definition. Make static.
12160
52dabb6c
NB
121612002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12162
12163 * c-common.h (yyparse, c_common_parse_file): New.
12164 * c-lang.c: Include c-common.h.
12165 (LANG_HOOKS_PARSE_FILE): Redefine.
12166 * c-lex.c: Include c-common.h.
12167 (yyparse): Rename c_common_parse_file. Call yyparse.
12168 * c-parse.in (yyparse): Remove macro.
12169 * c-tree.h (yyparse_1): Remove.
12170 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12171 (LANG_HOOKS_INITIALIZER): Update.
12172 * langhooks.h (struct lang_hoooks): New hook parse_file.
12173 * toplev.c (compile_file): Use parse_file hook.
12174 * tree.h (yyparse): Remove.
e6542f4e 12175 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 12176
b5ffe606
HPN
121772002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12178
ba82f58b
HPN
12179 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12180 float_truncate, not fix.
12181 ("*truncdfsf2_real"): Ditto.
12182 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12183
b5ffe606
HPN
12184 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12185
c8d1b2b7
AO
121862002-03-16 Alexandre Oliva <aoliva@redhat.com>
12187
cfb773f9
AO
12188 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12189 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
12190 where appropriate. Make the second reference to
12191 leaf_function_p a function call, as intended. Reindented.
12192
4dffef52
AO
12193 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12194 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12195
4f5bd6d7
AO
12196 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12197 add register to non-constant into sp.
12198
c8d1b2b7
AO
12199 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12200 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12201 (mips16_gp_pseudo_rtx): Lose.
12202 (INIT_EXPANDERS): Deleted.
12203 * config/mips/mips.c (mips_init_machine_status): New.
12204 (mips_free_machine_status): New.
12205 (mips_mark_machine_status): New.
12206 (override_options): Set them.
12207 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12208 (struct machine_function): ... new. Replaced all references.
12209 (mips_add_gc_roots): Don't mark them.
12210 (embedded_pic_fnaddr_reg): New, extracted from...
12211 (embedded_pic_offset): ... here.
12212 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12213 (movsi): Likewise.
12214
b3124fac
NB
122152002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12216
12217 * cppinit.c: Revert -MD removal.
12218
121449b6
SC
122192002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12220
12221 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12222 soft registers by default for 68HC12.
12223 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12224 when compiling with -fomit-frame-pointer.
12225 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12226 (expand_epilogue): Likewise.
12227 (m68hc11_gen_rotate): Use exg when rotating by 8.
12228
840e2ff1
SC
122292002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12230
12231 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12232 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12233 (splits): Remove unused add splits.
12234 ("*addhi3_68hc12"): Tune constraints.
12235 ("addhi_sp"): Try to use X instead of Y in all cases and if the
12236 constant fits in 8-bits and D is dead use abx/aby instructions.
12237 ("*addhi3"): Remove extern declaration of ix_reg.
12238 ("*subsi3"): Optimize and provide new split.
12239 ("subhi3"): Cleanup.
12240 ("*subhi3_sp"): Avoid saving X if we know it is dead.
12241 (arith splits): For 68hc12 save the address register on the stack
12242 and do the arithmetic operation with a pop.
12243
3c9a5efe
SC
122442002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12245
12246 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12247 allocating QImode in address registers.
12248 ("*movqi_m68hc11"): Likewise.
12249
e41f3392
JH
12250Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
12251
12252 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12253
576786b0
NB
122542002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12255
12256 * cppinit.c (print_help): Display -MD and -MMD.
12257 Don't display usage string. Update assertion syntax and
12258 typo.
12259 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12260 (cpp_handle_option): Update.
12261
1ac458d4
CD
122622002-03-15 Chris Demetriou <cgd@broadcom.com>
12263
12264 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12265 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12266 and define it so that regardless of target CPU size,
12267 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12268 of "int" rather than "long."
12269
1fcd592b
RH
122702002-03-15 Richard Henderson <rth@redhat.com>
12271
12272 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12273 size as a tree.
12274
a0df6910
SC
122752002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12276
12277 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12278 ("tstqi" split): Avoid using memory for tstqi on address register.
12279 (splits): Remove constraints.
12280 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12281 ("cmpdf", "cmpsf"): Remove since not used.
12282 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12283 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12284
015a2e59
SC
122852002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12286
12287 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12288 ("neghi2"): Tighten constraints.
12289 ("one_cmplsi2"): Optimize and simplify split.
12290 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12291
cd28557c
SC
122922002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12293
12294 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12295 and split of AND operation to clear the upper bits.
12296 ("*logicalsi3_zextqi"): Likewise.
12297 ("*logicallhi3_zexthi_ashift8"): Likewise.
12298 ("*logicalsi3_silshr16"): Likewise.
12299 ("logicalsi3_silshl16"): Likewise.
12300 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12301
932657df
SC
123022002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12303
12304 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12305 (m68hc11_indirect_p): New function.
12306 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12307 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12308 TARGET_M6812.
12309 (asm_print_register): Likewise.
12310 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12311 (m68hc11_indirect_p): Declare.
12312 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12313 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12314 (TARGET_SWITCHES): New option -mrelax.
12315 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12316 destination.
12317 ("iorsi3", "xorsi3"): Likewise.
12318 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12319 ("*andhi3_mem"): New to handle destination in memory with bclr
12320 and a scratch register.
12321 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12322 ("*andhi3_const"): New when operand2 is constant.
12323 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12324 ("*andhi3_gen"): Cleanup of the old "andhi3".
12325 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12326 ("xorqi3"): Update constraints.
12327
fdffea1a
SC
123282002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12329
12330 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12331 for reg_equiv_memory_loc when the operand is a register that does
12332 not get a hard register (stack location).
12333 (tst_operand): After reload, accept all memory operand.
12334 (symbolic_memory_operand): Fix detection of symbolic references.
12335 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12336 accept symbols and any constant.
12337
6272bc68
SC
123382002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12339
12340 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12341 note on the insn that sets the soft frame register.
12342 (must_parenthesize): ix and iy are also reserved names.
12343 (print_operand_address): One more place where parenthesis are required
12344 to avoid confusion with register names.
12345 (m68hc11_gen_movhi): Allow push of stack pointer.
12346 (m68hc11_check_z_replacement): Fix handling of parallel with a
12347 clobber.
12348 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12349 the replacement register is.
12350 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12351 and D8_REGS classes.
12352 (MODES_TIEABLE_P): All modes are tieable except QImode.
12353
1d2d9def
SC
123542002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12355
12356 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12357 (___subdi3): Likewise.
12358 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12359 (__map_data_section): Optimize 68hc11 case.
12360
a0ccf503
SC
123612002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12362
12363 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12364 than a shift to avoid adding a register with itself.
12365 (m68hc11_memory_move_cost): Take into account NO_REGS.
12366 (m68hc11_register_move_cost): Update and use memory move cost
12367 for soft registers.
12368 (m68hc11_address_cost): Make cost of valid offset not 0 so that
12369 it gives more opportunities to cse to optimize.
12370 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12371 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12372
6e4ae815
MM
123732002-03-15 Mark Mitchell <mark@codesourcery.com>
12374
12375 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12376 * c-common.def (CLEANUP_STMT): New tree node.
12377 * c-common.h (CLEANUP_DECL): New macro.
12378 (CLEANUP_EXPR): Likewise.
12379 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12380 * expr.c (expand_expr): Tidy.
12381 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12382 * tree-inline.c (initialize_inlined_parameters): Clean up
12383 new local variables.
12384
a42519be
JJ
123852002-03-15 Jakub Jelinek <jakub@redhat.com>
12386
12387 PR bootstrap/4128
12388 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12389 before movrXX only, use reg_overlap_mentioned_p.
12390 Only special case NE if just one insn can be generated.
12391
15409448
JM
123922002-03-15 Jason Merrill <jason@redhat.com>
12393
12394 * varasm.c (assemble_variable): Call resolve_unique_section before
12395 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
12396 of error_mark_node.
12397
3a4edb44
RE
123982002-03-15 Richard Earnshaw <rearnsha@arm.com>
12399
12400 PR target/5170
12401 * arm.md (split pattern for thumb shiftable immediates): Add comment
12402 explaining non-obvious test.
12403
32defa36
RE
124042002-03-15 Richard Earnshaw <rearnsha@arm.com>
12405
12406 PR target/5712
12407 * arm.md (movaddr, movaddr_insn): Delete.
12408
5cc90635
JM
124092002-03-15 Jason Merrill <jason@redhat.com>
12410
12411 * toplev.c (wrapup_global_declarations): Clarify variable handling.
12412 -fkeep-static-consts doesn't apply to comdats.
12413
ecb0eece
RH
124142002-03-14 Richard Henderson <rth@redhat.com>
12415
12416 * c-decl.c: Include c-pragma.h.
12417 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12418 (finish_function): Tidy.
12419 * c-pragma.c: Include c-common.h.
12420 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12421 (handle_pragma_weak): Use them.
12422 (init_pragma): Register pending_weaks.
12423 * c-pragma.h (maybe_apply_pragma_weak): Declare.
12424 * print-tree.c (print_node): Print DECL_WEAK.
12425 * varasm.c (mark_weak_decls): Remove.
12426 (remove_from_pending_weak_list): Remove.
12427 (add_weak): Remove.
12428 (asm_emit_uninitialised): Call globalize_decl for weak commons.
12429 (weak_decls): Make a tree_list.
12430 (declare_weak): Cons weak_decls directly.
12431 (globalize_decl): Remove weak_decls elements directly.
12432 (weak_finish): Simplify weak_decls walk. Don't weaken unused
12433 symbols. Don't pretend to handle aliases.
12434 (init_varasm_once): Update weak_decls registry.
12435 * Makefile.in: Update dependencies.
12436
98d2b17e
RH
124372002-03-14 Richard Henderson <rth@redhat.com>
12438
12439 PR target/5312
12440 * config/ia64/ia64.c: Include tm_p.h last.
12441 (gen_nop_type): Remove duplicate definition.
12442 (cycle_end_fill_slots): Set sched_data for second L slot.
12443 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12444 (nop_cycles_until): Fix typos.
12445
f2f4927e
JJ
124462002-03-15 Jakub Jelinek <jakub@redhat.com>
12447
12448 PR optimization/5891
12449 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12450
5025a549
DM
124512002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12452
12453 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12454 descriptors correctly.
12455
03e9dbc9
MM
124562002-03-14 Michael Meissner <meissner@redhat.com>
12457
12458 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12459 100, allowing MAX_UNROLLED_INSNS to be overridden.
12460
12461 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12462 --param.
12463
12464 * unroll.c (params.h): Include.
12465 (MAX_UNROLLED_INSNS): Delete, now in params.h.
12466
12467 * doc/invoke.texi (--param max-unroll-insns): Document.
12468
12469 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12470
12249385
RE
124712002-03-14 Richard Earnshaw <rearnsha@arm.com>
12472
12473 * arm.md: Fix warnings about constraints in peepholes and splits.
12474
f0cce04a
ZW
124752002-03-14 Zack Weinberg <zack@codesourcery.com>
12476
12477 * cpphash.h (struct lexer_state): Remove line_extension member.
12478 * cpplib.c (dequote_string, do_linemarker): New functions.
12479 (linemarker_dir): New data object.
12480 (DIRECTIVE_TABLE): No longer need to interpret #line in
12481 preprocessed source. Delete obsolete comment about return
12482 values of handlers.
12483 (end_directive, directive_diagnostics, _cpp_handle_directive):
12484 Don't muck with line_extension.
12485 (directive_diagnostics): No need to issue warnings for
12486 linemarkers here.
12487 (_cpp_handle_directive): Issue warnings for linemarkers here,
12488 when appropriate. Dispatch linemarkers to do_linemarker, not
12489 do_line.
12490 (do_line): Code to handle linemarkers split out to do_linemarker.
12491 Convert escape sequences in filename argument, both places.
12492
12493 * cppmacro.c (quote_string): Rename cpp_quote_string and
12494 export. All callers changed.
12495 * cpplib.h (cpp_quote_string): Prototype.
12496 * cppmain.c (print_line): Call cpp_quote_string on to_file
12497 before printing it.
12498
12499 * doc/cpp.texi: Document that escapes are now interpreted in
12500 #line and in linemarkers, and that non-printing characters are
12501 converted to octal escapes when linemarkers are generated.
12502
12503Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
12504
12505 * emit-rtl.c (try_split): Use delete_insns.
12506 * recog.c (split_all_insns): Fix terminating condition.
12507
c882c7ac
RE
125082002-03-14 Richard Earnshaw <rearnsha@arm.com>
12509 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12510
12511 PR target/5828
12512 * arm.c (arm_output_epilogue): Fix floating-point register save
12513 adjustment when using a frame pointer.
12514
3f26edaa
RS
125152002-03-14 Richard Sandiford <rsandifo@redhat.com>
12516
12517 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12518 * config/mips/mips.c (compute_frame_size): Retrofit them here.
12519 (save_restore_insns, mips_expand_epilogue): And here.
12520 (build_mips16_call_stub): And here.
12521 (mips_function_value): Use the new macros to decide whether a single
12522 or complex float can be returned in floating-point registers. Return
12523 a parallel rtx in the complex case.
12524
1e3881c2
JH
12525Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
12526
12527 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12528 call after liveness analysis.
12529
12530 * recog.c (split_insn): Use delete_insn_and_edges.
12531
12532 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12533 instructions to have branch prediction notes.
12534 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12535
200ef634
GK
125362002-03-14 Geoffrey Keating <geoffk@redhat.com>
12537
12538 * configure.in: Don't pass -Wno-long-long to a ADA compiler
12539 that doesn't support it.
12540 * configure: Regenerate.
12541
0b82d204
JJ
125422002-03-13 Jakub Jelinek <jakub@redhat.com>
12543
12544 PR target/5626
12545 * config/sparc/sparc.md (normal_branch, inverted_branch,
12546 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12547 inverted_fp_branch): Adjust calls to output_cbranch.
12548 Set length attribute.
12549 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12550 output_v9branch. Set length attribute.
12551 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12552 predicates.
12553 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12554 (output_cbranch): Likewise. Handle far branches.
12555 (output_v9branch): Handle far branches.
12556 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12557 Adjust prototypes.
12558 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12559 noov_compare64_op predicates.
12560
7a8de19b
JM
125612002-03-13 Jason Merrill <jason@redhat.com>
12562
12563 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12564 into the function and constify it.
12565 * gthr-dce.h, gthr-solaris.h: Likewise.
12566
2a55fd42
DE
125672002-03-13 David Edelsohn <edelsohn@gnu.org>
12568
12569 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12570 * config/rs6000/rs6000.c (rs6000_va_arg): Use
12571 std_expand_builtin_va_arg if not ABI_V4.
12572
19c5b1cf
JM
125732002-03-13 Jason Merrill <jason@redhat.com>
12574
12575 * varasm.c (globalize_decl): New fn.
12576 (assemble_start_function): Use it.
12577 (asm_emit_uninitialized): Use it.
12578 (assemble_alias): Use it.
12579 (assemble_variable): Use it.
12580
2a15f5e1
HPN
125812002-03-13 Hans-Peter Nilsson <hp@axis.com>
12582
12583 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 12584 2002-03-12 internal visibility change.
2a15f5e1
HPN
12585 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12586 visibility into SYMBOL_REF_FLAG.
12587
c0a3eeac
UW
125882002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
12589
12590 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12591 VOIDmode operand. Add compile-time optimization for constant results.
12592
a1652cee
JM
125932002-03-12 Jason Merrill <jason@redhat.com>
12594
12595 * c-typeck.c (convert_for_assignment): Don't allow conversions
12596 between pointers and references. Only allow lvalues to convert to
12597 reference.
12598
c52a375d
HP
125992002-03-13 Hartmut Penner <hpenner@de.ibm.com>
12600
f0cce04a
ZW
12601 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12602 before prologue, to avoid scheduling problems.
c52a375d 12603
e387e99b
JJ
126042002-03-13 Jakub Jelinek <jakub@redhat.com>
12605
12606 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12607 (ELIMINABLE_REGS): Add sfp->sp.
12608 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12609
126102002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
12611
12612 PR optimization/5892
12613 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12614
4061c1a3
JJ
126152002-03-13 Jakub Jelinek <jakub@redhat.com>
12616
12617 * loop.c (basic_induction_var): Don't call convert_modes if mode
12618 classes are different.
12619
5b43fed1
RH
126202002-03-12 Richard Henderson <rth@redhat.com>
12621
9f53e965
RH
12622 PR optimization/5901
12623 * function.c (reposition_prologue_and_epilogue_notes): Position
12624 the markers after/before the last/first insn not deleted.
12625
126262002-03-12 Richard Henderson <rth@redhat.com>
12627
12628 PR optimization/5878
5b43fed1
RH
12629 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12630 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12631 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12632
12633 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12634 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12635 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12636
12637 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12638 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12639 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12640 also. Don't set it if not flag_pic.
12641 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12642 to be INVALID_REGNUM when not used.
12643
4e9bb42b
AH
126442002-03-13 Aldy Hernandez <aldyh@redhat.com>
12645
5b43fed1
RH
12646 * expmed.c (store_bit_field): Reset alias set for memory.
12647 (extract_bit_field): Same.
4e9bb42b 12648
2f9834e8
KG
126492002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12650
12651 * c-common.c (c_tree_code_type, c_tree_code_length,
12652 c_tree_code_name, add_c_tree_codes): Delete.
12653 * c-common.h (add_c_tree_codes): Delete.
12654 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12655 Define.
12656 * c-objc-common.c (c_objc_common_init): Don't call
12657 add_c_tree_codes, instead set lang_unsafe_for_reeval.
12658 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12659 objc_tree_code_name, add_objc_tree_codes): Delete.
12660 (objc_init): Don't call add_objc_tree_codes.
12661 * objc/objc-lang.c (tree_code_type, tree_code_length,
12662 tree_code_name): Define.
12663 * toplev.c (lang_independent_init): Don't set
12664 tree_code_length[IDENTIFIER_NODE].
12665 * tree.c (tree_code_type, tree_code_length, tree_code_name):
12666 Delete definitions, moved to language front-ends.
12667 * tree.def (IDENTIFIER_NODE): Hardwire the length.
12668 * tree.h (tree_code_type, tree_code_length, tree_code_name):
12669 Const-ify.
12670 (tree_code_length): Change type to unsigned char.
12671
36ad2436
RH
126722002-03-12 Richard Henderson <rth@redhat.com>
12673
12674 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12675 internal visibility change.
12676
0ae02efa
BW
126772002-03-12 Bob Wilson <bob.wilson@acm.org>
12678
12679 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12680 validize_mem() instead of change_address to avoid clobbering
12681 memory attributes.
12682
35bb2bee
NB
126832002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
12684
12685 * c-lex.h (position_after_whitespace): Remove.
12686
62ae2529
JJ
126872002-03-12 Jakub Jelinek <jakub@redhat.com>
12688
12689 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12690 (lex_string): Use unsigned char pointers.
12691
6a45951f
UW
126922002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12693
12694 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12695 is not a valid memory_operand.
12696
e2fb85da
BW
126972002-03-12 Bob Wilson <bob.wilson@acm.org>
12698
12699 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12700 * config/xtensa/lib1funcs.asm: Fix copyright to include
12701 special case for libgcc files.
12702 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12703 (__divsi3): Likewise.
12704 (__umodsi3): Likewise.
12705 (__modsi3): Likewise.
12706 * config/xtensa/lib2funcs.S: Fix copyright to include
12707 special case for libgcc files.
12708
5b8619f8
TR
127092002-03-12 Tom Rix <trix@redhat.com>
12710
12711 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 12712 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
12713 (ignore_library): Same.
12714
089c8f97
BW
127152002-03-12 Bob Wilson <bob.wilson@acm.org>
12716
12717 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12718
958c70ff
BW
127192002-03-12 Bob Wilson <bob.wilson@acm.org>
12720
12721 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12722 to function_section before writing out the constant pool.
12723
a65c591c
DE
127242002-03-12 David Edelsohn <edelsohn@gnu.org>
12725
12726 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12727 zero_constant.
12728 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12729
127302002-03-12 Alan Modra <amodra@bigpond.net.au>
12731
12732 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12733 (adddi3): Likewise.
12734 (movdf): Likewise.
12735 (movdi): Likewise.
12736 (cmpsi splitter): Likewise.
12737 (modsi3): Fail if <= 0.
12738 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12739 redundant test when HOST_BITS_PER_WIDE_INT != 32.
12740 (reg_or_sub_cint64_operand): Likewise.
12741 (num_insns_constant_wide): Optimize sign extension.
12742 (rs6000_legitimize_address): Likewise.
12743
17720332
AM
127442002-03-12 Andrew MacLeod <amacleod@redhat.com>
12745
12746 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12747 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12748
cd49f073
AM
127492002-03-12 Andrew MacLeod <amacleod@redhat.com>
12750
12751 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12752 address calculation.
12753
6a4e49c1
UW
127542002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12755
12756 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12757 scratch register to DImode / TImode.
12758 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12759 register used does not overlap the target.
12760
54b6670a
KG
127612002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12762
12763 * Makefile.in (debug.o): Depend on debug.h.
12764 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12765 * debug.c (do_nothing_debug_hooks): Likewise.
12766 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12767 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12768 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12769 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12770 * dwarfout.c (dwarf_debug_hooks): Likewise.
12771 * integrate.c (output_inline_function): Likewise.
12772 * objc/objc-act.c (synth_module_prologue): Likewise.
12773 * sdbout.c (sdb_debug_hooks): Likewise.
12774 * toplev.c (debug_hooks): Likewise.
12775 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12776
2465bf76
KG
127772002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12778
12779 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12780 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12781 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12782 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12783 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12784 * defaults.h (POINTER_SIZE): Define.
12785 * doc/tm.texi (POINTER_SIZE): Document default.
12786
53f3e9ca
KG
127872002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12788
12789 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12790
44d3eb5b
RH
127912002-03-11 Richard Henderson <rth@redhat.com>
12792
12793 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12794 if rebuild_label_notes_after_reload.
12795
4a085d2e
HPN
127962002-03-12 Hans-Peter Nilsson <hp@axis.com>
12797
12798 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12799 emit pic register load if "internal" visibility.
12800 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12801 (cris_expand_builtin_va_arg): Do all computations on trees.
12802
bc204393
RH
128032002-03-11 Richard Henderson <rth@redhat.com>
12804
12805 * rtlanal.c: Include recog.h.
12806 (keep_with_call_p): Fix thinko.
12807 * Makefile.in (rtlanal.o): Update dependencies.
12808
6b8b9d7b
CM
128092002-03-11 Chris Meyer <cmeyer@gatan.com>
12810
12811 * genflags.c (gen_insn): Use IS_VSPACE.
12812 * genoutput.c (output_insn_data): Likewise.
12813 (process_template): Likewise.
12814
6c40858f
RH
128152002-03-11 Richard Henderson <rth@redhat.com>
12816
12817 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12818
40adaa27
NB
128192002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12820
12821 * Makefile.in: Update.
6c40858f 12822 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 12823 Update documentation.
6c40858f
RH
12824 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12825 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 12826
049b03f4
ZW
128272002-03-11 Zack Weinberg <zack@codesourcery.com>
12828
12829 * Makefile.in: Give texi2pod its input file as a command line
12830 argument, not on stdin.
12831
61eece67
DN
128322002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12833 Daniel Berlin <dan@dberlin.org>
12834
12835 C++ alias analysis improvement.
f0cce04a 12836 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
12837 classes too.
12838
a65c591c
DE
128392002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12840
ff080aba
UW
12841 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12842
1682dbb1
DR
128432002-03-11 Douglas B Rupp <rupp@gnat.com>
12844
fa2d765a
DR
12845 * toplev.c (vms_fopen): Remove, not needed.
12846
6f1fd286
DR
12847 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12848
b230e057
DR
12849 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12850
cb9a8e97
DR
12851 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12852 for FP, already done later.
12853
1682dbb1
DR
12854 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12855 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12856
3fcaac1d
RS
128572002-03-11 Richard Sandiford <rsandifo@redhat.com>
12858
12859 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12860 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12861 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12862 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12863 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12864 (ediv, emul, eldexp, esqrt): Likewise.
12865 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12866 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12867 (saturate): New function.
12868 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12869 (make_nan): Use a saturation value instead of a NaN if
12870 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12871 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12872 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12873 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12874 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12875 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12876 !ROUND_TOWARDS_ZERO.
12877 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12878 (ROUND_TOWARDS_ZERO): Document.
12879
d25558be
AJ
128802002-03-11 Andreas Jaeger <aj@suse.de>
12881
12882 * cfg.c (dump_flow_info): Remove unused variable.
12883
c71f9ae7
HPN
128842002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12885
12886 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12887 computations on trees.
12888
561c9153
RH
128892002-03-10 Richard Henderson <rth@redhat.com>
12890
932b4e3e 12891 PR 5693:
561c9153
RH
12892 * reload.c (copy_replacements_1): New.
12893 (copy_replacements): Use it to recurse through the rtx.
12894
26b738be
RH
128952002-03-10 Richard Henderson <rth@redhat.com>
12896
12897 * loop.c (strength_reduce): Compute number of iterations as
12898 unsigned HOST_WIDE_INT.
12899
8d8a083e
RH
129002002-03-10 Richard Henderson <rth@redhat.com>
12901
12902 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12903 to move away from the end of the block.
12904
32810ba3
NB
129052002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12906
12907 PR preprocessor/5899
12908 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 12909
2b03d201
KG
129102002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12911
f90c544c
KG
12912 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12913
2b03d201
KG
12914 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12915
3ec1b4cb
HPN
129162002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12917
12918 * config/mmix/mmix.c: Improve comments.
12919 (mmix_target_asm_function_prologue): Drop variable
12920 empty_stack_frame. Don't allocate unused slot above fp.
12921 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12922 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12923 brace in first column.
12924 (enum reg_class): Ditto.
12925 (FIRST_PARM_OFFSET): Now 0.
12926 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12927
27e486c5
KG
129282002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12929
12930 * combine.c (make_extraction): Fix error in last change.
12931
0139adca
KG
129322002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12933
12934 * c4x.c (c4x_fp_reglist): Const-ify.
12935 * cris.c (cris_print_operand): Likewise.
12936 * i386.c (ix86_va_arg): Likewise.
12937 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12938 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12939 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12940 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12941 * mcore.h (regno_reg_class): Likewise.
12942 * mips.c (gen_int_relational): Likewise.
12943 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12944 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 12945 * pdp11.c (move_costs): Likewise.
0139adca
KG
12946 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12947 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12948 Likewise.
12949 * s390.h (regclass_map): Likewise.
12950 * sh.c (shift_amounts): Likewise.
a4334c36 12951 * sh.md (rotlsi3): Likewise.
0139adca 12952
889b90a1
GK
129532002-03-09 Geoffrey Keating <geoffk@redhat.com>
12954
12955 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12956 (ne0+5): Use new clobber to generate proper shift pattern.
12957 Patch by Michael Matz <matz@kde.org>.
12958
2877e0ae
AS
129592002-03-09 Andreas Schwab <schwab@suse.de>
12960
12961 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12962
79b51cd7
GK
129632002-03-09 Geoffrey Keating <geoffk@redhat.com>
12964
12965 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12966
e0f1be5c
JJ
129672002-03-09 Jakub Jelinek <jakub@redhat.com>
12968
12969 PR middle-end/5877
12970 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12971 even for non-representable constants.
12972
0a7ec763
RK
12973Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12974
93fe8e92
RK
12975 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12976 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12977 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12978 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12979 (pop_function_context): Compute MAY_SHARE parameter for
12980 fixup_var_refs.
12981 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12982 (gen_mem_addressof): Call fixup_var_refs with new parm.
12983
0a7ec763
RK
12984 * combine.c (make_extraction): Don't make extension of CONST_INT.
12985
a85cd407
AO
129862002-03-09 Alexandre Oliva <aoliva@redhat.com>
12987
9445b814
AO
12988 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12989 in o32 and o64 ABIs.
12990 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12991 but getting fixed-size structs passed in registers regardless of
12992 padding in o32 and o64 ABIs.
12993
a85cd407
AO
12994 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12995 offset before loading address of argument passed by transparent
12996 reference.
12997
c51fbe40
JDA
129982002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12999
13000 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13001
918e70dd
AO
130022002-03-09 Alexandre Oliva <aoliva@redhat.com>
13003
13004 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13005 marker such that registers after it are saved.
13006
3070dd00
KG
130072002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13008
13009 * sparc.c (arith_4096_operand): Fix error in last change.
13010
e25d11b0
AO
130112002-03-08 Alexandre Oliva <aoliva@redhat.com>
13012
13013 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13014 defaults for MEABI.
13015
41daaf0e
AH
130162002-03-08 Aldy Hernandez <aldyh@redhat.com>
13017
5b43fed1
RH
13018 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13019 vectors.
41daaf0e 13020
fa139b00
AH
130212002-03-08 Aldy Hernandez <aldyh@redhat.com>
13022
5b43fed1 13023 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 13024
c51d95ec
JH
13025Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
13026
13027 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13028 removed; fix return value.
13029 * combine.c (combine_instructions): Dirtify blocks where we failed to
13030 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13031 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13032
3b25fbfe
KG
130332002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13034
13035 * gcse.c (insert_insn_end_bb): Fix typo in last change.
13036
189ae0f4
JH
13037Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
13038
13039 * recog.c (peephole2_optimize): Re-distribute EH edges.
13040
24965e7a
NB
130412002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
13042
13043 * expr.c (expand_expr): Use unsave lang hook.
13044 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13045 (LANG_HOOKS_INITIALIZER): Update.
13046 * langhooks.h (struct lang_hooks): New hook unsave.
13047 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13048 (unsave_expr_1): Remove unused lang_unsave_expr_now.
13049 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
13050 (unsave_expr_now): Remove.
13051 * tree.h (unsave_expr_now, lang_unsave,
13052 lang_unsave_expr_now): Remove.
13053 (lhd_unsave): New.
13054
1e4e95d6
AJ
130552002-03-08 Andreas Jaeger <aj@suse.de>
13056
13057 * flow.c (propagate_block_delete_insn): Remove unused variable.
13058
054ef905
KH
130592002-03-08 Kazu Hirata <kazu@hxi.com>
13060
13061 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13062 insn length for memory load/store.
13063
5304400d 130642002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 13065
5304400d
CR
13066 * doc/install.texi (--with-libiconv-prefix): Document.
13067
81034129
MB
130682002-03-08 Michael Y. Brukman <myb2@cornell.edu>
13069
13070 * doc/sourcebuild.texi: Fix typo.
13071
71db7d03
JJ
130722002-03-08 Jakub Jelinek <jakub@redhat.com>
13073
13074 PR c/3711
13075 * builtins.c (std_expand_builtin_va_arg): Do all computations on
13076 trees.
13077
127c1ba5
RK
13078Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13079
13080 * rtl.c (copy_most_rtx): Move from here ...
13081 * emit-rtl.c (copy_most_rtx): ... to here.
13082
8a13c092
AO
130832002-03-08 Alexandre Oliva <aoliva@redhat.com>
13084
5faae4f7
AO
13085 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13086 SUBTARGET_CPP_SIZE_SPEC.
13087 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13088
8a13c092
AO
13089 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13090
4ec59de2
MH
130912002-03-07 Matt Hiller <hiller@redhat.com>
13092
13093 * gensupport.c (first_dir_md_include): Renamed from include;
13094 change all references.
13095 (last_dir_md_include): Renamed from last_include; change all
13096 references.
13097 (init_md_reader): Unconditionally initialize base_dir whether or
13098 not filename is a relative path.
13099
12f61e77
AO
131002002-03-07 Alexandre Oliva <aoliva@redhat.com>
13101
95356058
AO
13102 * config/fp-bit.c (_unord_f2): Compile it in even if
13103 US_SOFTWARE_GOFAST is enabled.
13104
12f61e77
AO
13105 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13106 NULL_RTX. Set all HFmode operations as NULL_RTX.
13107 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13108 NULL_RTX, try reversing the comparison and the operands.
13109
6d7a1c4c
UW
131102002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13111
13112 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13113 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13114 and MATCH_OP_DUP.
13115
66d54344
JH
13116Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
13117
13118 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13119
068473ec
JH
13120Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13121
13122 * basic-block.h (fixup_abnormal_edges): Declare.
13123 * reload1.c (fixup_abnormal_edges): New function.
13124 * reg-stack.c (convert_regs): Use it.
13125
13126 * gcse.c (insert_insn_end_bb): Handle trapping insns.
13127
13128 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13129
71925bc0
RS
131302002-03-07 Richard Sandiford <rsandifo@redhat.com>
13131
13132 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13133 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13134 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13135 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13136 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13137 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13138 unless x and y could be infinite.
13139 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13140 Check that the common type of both arguments is a real, even for
13141 targets without unordered comparisons. Allow an integer argument
13142 to be compared against a real.
13143 (expand_tree_builtin): Use expand_unordered_cmp.
13144 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13145 * cse.c (fold_rtx): Likewise. Fix indentation.
13146 * fold-const.c (fold_real_zero_addition_p): New.
13147 (fold): Use it, and the new HONOR_... macros.
13148 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13149 * jump.c (reversed_comparison_code_parts): After searching for
13150 the true comparison mode, use HONOR_NANS to decide whether it
13151 can be safely reversed.
13152 (reverse_condition_maybe_unordered): Remove IEEE check.
13153 * simplify-rtx.c (simplify_binary_operation): Use the new macros
13154 to decide which simplifications are valid. Allow the following
13155 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13156 and (a - -b) to (a + b).
13157 (simplify_relational_operation): Use HONOR_NANS.
13158 * doc/tm.texi: Document the MODE_HAS_... macros.
13159
145d3bf2
RE
131602002-03-07 Richard Earnshaw <rearnsha@arm.com>
13161
13162 * combine.c (simplify_comparison): If simplifying a logical shift
13163 right and compare with constant, force the comparison to unsigned.
13164
76a773f3
AH
131652002-03-07 Aldy Hernandez <aldyh@redhat.com>
13166
5b43fed1 13167 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 13168
5b43fed1
RH
13169 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13170 -mabi=no-altivec
13171 (alt_reg_names): Remove % for vrsave.
76a773f3 13172
ab55f58c
RH
131732002-03-06 Richard Henderson <rth@redhat.com>
13174
5ddec02e 13175 PR optimization/5844
ab55f58c
RH
13176 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
13177 if used indicates we've already emitted one copy of an operand.
13178 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13179 (gen_split): Supply a non-null used.
13180
e16e3291
UW
131812002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13182
5b43fed1 13183 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 13184
1e4e95d6 13185 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
13186 but simply fail if the expression is too complex to simplify.
13187 (simplify_gen_binary): Handle simplify_plus_minus failures.
13188
2ca6672b
JH
13189Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
13190
13191 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13192 consistently call delete_trivially_dead_insns after CSE and GCSE;
13193 fix DFI_life dumping; do jump threading after liveness; do crossjumping
13194 after liveness2; update comment in last crossjumping.
13195 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13196
31d0dd4f
JL
13197Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
13198
d094b0b3
JL
13199 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13200 after completing fast dead code elimination.
13201
31d0dd4f
JL
13202 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13203 COMPARE operator.
1e4e95d6 13204
f2b958b1
PE
132052002-03-06 Phil Edwards <pme@gcc.gnu.org>
13206
13207 * version.c: Fix misplaced leading blanks on first line.
13208
a2877a09
JH
13209Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
13210
13211 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13212
fe477d8b
JH
13213Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
13214
13215 * cfgcleanup.c (mentions_nonequal_regs): New function.
13216 (thread_jump): Use it.
13217 * toplev.c (rest_of_compilation): Run jump threading after
13218 liveness.
13219
2041cde4
JJ
132202002-03-06 Jakub Jelinek <jakub@redhat.com>
13221
13222 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13223 patch.
13224
82d68d46
JH
13225Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
13226
13227 * predict.c (estimate_bb_frequencies): Do not reload the
13228 frequencies from notes.
13229
3dec4024
JH
13230Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
13231
13232 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13233 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13234
13235 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13236 delete_noop_moves): Return indeger.
13237 * flow.c (ndead): New variable.
13238 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13239 BB argument; update callers.
13240 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13241 (life_analysis): Do not call purge_all_dead_edges.
13242 (update_life_info): Return number of deleted insns; print statistics.
13243 (update_life_info_in_dirty_blocks): likewise.
13244 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13245 return number of insns deleted.
13246
13247 * cse.c: Include timevar.h
13248 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13249 iterate until stabilizes; print statistics; return number of killed
13250 insns.
13251 * Makefile.in: (cse.o): Add timevar.h dependency
13252 * rtl.h (delete_trivially_dead_insns): New.
13253 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13254 * toplev.c (rest_of_compilation): Update callers.
13255
13256 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13257 (try_optimize_cfg): Do not update liveness.
13258 (cleanup-cfg): Loop until try_optimize_cfg and dead code
13259 removal stabilizes; use delete_trivially_dead_insns.
13260
13261 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13262
c7544dd8
ZW
132632002-03-05 Zack Weinberg <zack@codesourcery.com>
13264
13265 * cppmain.c (setup_callbacks): Disable #pragma and #ident
13266 callbacks when processing assembly language.
13267
50b424a9
JDA
132682002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13269
13270 * pa.h (ASM_FILE_END): Define.
13271 * som.h (ASM_FILE_END): Delete.
13272
13273 * pa.c (function_arg): Don't pass floats in general registers in
13274 indirect calls if TARGET_ELF32.
13275
6185f217
RH
132762002-03-05 Richard Henderson <rth@redhat.com>
13277
13278 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13279
3020a4b2
DS
132802002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
13281
13282 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13283
65649daa
JJ
132842002-03-05 Jakub Jelinek <jakub@redhat.com>
13285
13286 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13287 -r command line. Don't hide any symbols if not building
13288 shared libgcc.
13289
5a1a3e5e
JH
13290Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
13291
13292 * cfg.c (dump_flow_info): Warn about profile mismatches.
13293 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13294 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13295
170c56da
JJ
132962002-03-05 Jakub Jelinek <jakub@redhat.com>
13297
13298 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13299 wide volatile memory by parts.
13300
6d051694
JJ
133012002-03-05 Jakub Jelinek <jakub@redhat.com>
13302
13303 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13304 is NULL.
13305
28bcfd4d
RH
133062002-03-05 Richard Henderson <rth@redhat.com>
13307
5b43fed1 13308 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 13309
75227a33
GK
133102002-03-04 Geoffrey Keating <geoffk@redhat.com>
13311
13312 * toplev.c (documented_lang_options): Document more
13313 language-specific options.
13314 * doc/invoke.texi (Warning Options): Correct documentation for
13315 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13316 * c-decl.c (c_decode_option): Use a table to handle warning options.
13317
4f1aac42
HPN
133182002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
13319
13320 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13321 parameter to mmix_encode_section_info.
13322 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13323 relocatably. Always produce ELF, not mmo if linking relocatably.
13324 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13325 first is non-zero, don't add symbol prefix.
13326 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13327 prototype accordingly.
13328
12345543
KW
133292002-03-04 Krister Walfridsson <cato@df.lth.se>
13330
13331 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13332
8e97db8f
JM
133332002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
13334
13335 * configure.in: Increase required makeinfo version to 4.1.
13336 * configure: Regenerate.
13337
06487868
GK
133382002-03-04 Geoffrey Keating <geoffk@redhat.com>
13339
13340 * .cvsignore: Remove *.info* and genrtl*; these files are generated
13341 elsewhere now.
13342
cff42170
JM
133432002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
13344
13345 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13346 * doc/invoke.texi: Fix @math uses.
13347
974a7f56
JH
13348Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13349
13350 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13351 removal
13352
3b7d0e98
AH
133532002-03-03 Aldy Hernandez <aldyh@redhat.com>
13354
5b43fed1
RH
13355 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13356 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 13357
5b43fed1 13358 * config/rs6000/t-ppcendian: New.
3b7d0e98 13359
65f2f288
HB
133602002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13361
13362 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13363 nonimmediate_src_operand and nonimmediate_lsrc_operand to
13364 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13365
8ce0a8a5
RH
133662002-03-03 Richard Henderson <rth@redhat.com>
13367
13368 * toplev.c (rest_of_decl_compilation): Revert last two changes.
13369
ba31d94e
ZW
133702002-03-03 Zack Weinberg <zack@codesourcery.com>
13371
13372 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13373 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13374 tree.c, config/m68k/m68k.c:
13375 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13376 REAL_ARITHMETIC blocks unconditional. Delete some further
13377 #ifdef blocks predicated on REAL_ARITHMETIC.
13378 * flags.h, toplev.c: Delete remaining references to
13379 flag_pretend_float.
13380
13381 * doc/invoke.texi: Remove documentation of -fpretend-float.
13382 * doc/tm.texi: Describe the various REAL_* macros as provided by
13383 real.h, not by the target configuration files.
13384
13385 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13386 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13387 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13388 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13389 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13390 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13391 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13392 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13393 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13394 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13395 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13396 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13397 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13398 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13399 config/xtensa/xtensa.h:
13400 Do not define, undefine, or mention in comments any of
13401 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13402 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13403 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13404 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13405 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13406 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13407 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13408 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13409 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13410
9a571cfd
KG
134112002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13412
e81dd381
KG
13413 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13414 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13415 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13416 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13417 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13418 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13419 Delete.
13420 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 13421 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 13422
9a571cfd
KG
13423 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13424 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13425 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13426
ca7558fc
KG
134272002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13428
13429 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13430 lieu of explicit sizeof/sizeof.
13431 * i386.c (override_options, ix86_init_mmx_sse_builtins,
13432 ix86_expand_builtin): Likewise.
13433 * mips.c (mips_add_gc_roots): Likewise.
13434 * mmix.c (mmix_output_condition): Likewise.
13435 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13436 altivec_init_builtins): Likewise.
13437 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13438 * cppexp.c (Nsuff, parse_number): Likewise.
13439 * cppinit.c (builtin_array_end): Likewise.
13440 * gcc.c (n_default_compilers, process_command): Likewise.
13441 * genpreds.c (output_predicate_decls): Likewise.
13442 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13443 * lcm.c (N_ENTITIES): Likewise.
13444 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 13445
41c78c88
RH
134462002-03-03 Richard Henderson <rth@redhat.com>
13447
13448 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13449 for types or labels.
13450
9e9b71e6
RH
134512002-03-03 Richard Henderson <rth@redhat.com>
13452
13453 * c-decl.c (start_decl): Initialized variables are not common.
13454
c26a6db8
PB
134552002-03-02 Per Bothner <per@bothner.com>
13456
13457 * gcc.c (option_map): Suport new --bootclasspath option.
13458 --CLASSPATH is now just an alias for --classpath.
13459
9e8aab55
RH
134602002-03-02 Richard Henderson <rth@redhat.com>
13461
13462 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13463 load if "internal" visibility.
13464 * doc/extend.texi: Document visibility meanings.
13465
b3bbd220
RH
134662002-03-02 Richard Henderson <rth@redhat.com>
13467
13468 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13469 to functions as well.
13470
b14707c3
RH
134712002-03-02 Richard Henderson <rth@redhat.com>
13472
13473 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13474 (handle_visibility_attribute): Don't call assemble_visibility.
13475 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13476 without asmspec. Invoke assemble_alias when needed.
13477 * varasm.c (maybe_assemble_visibility): New.
13478 (assemble_start_function, assemble_variable, assemble_alias): Use it.
13479
b2003250
RH
134802002-03-02 Richard Henderson <rth@redhat.com>
13481
13482 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13483 invoke ENCODE_SECTION_INFO with first call flag.
13484
13485 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13486 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 13487 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
13488 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13489 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13490 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13491 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13492 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13493 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13494 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13495 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13496 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
13497 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13498 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
13499 config/mcore/mcore-protos.h, config/mcore/mcore.c,
13500 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13501 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 13502 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
13503 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13504 config/sh/sh.h, config/sparc/sparc.h,
13505 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13506 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13507 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13508 FIRST argument. As needed, examine it and do nothing.
13509
ba31d94e 13510 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
13511 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13512 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13513
13514 * config/arm/t-pe (pe.o): Add dependencies.
13515
5c60f03d
KG
135162002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13517
13518 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13519 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13520 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13521 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13522 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13523 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13524 * defaults.h (BITS_PER_UNIT): Define.
13525 * doc/tm.texi (BITS_PER_UNIT): Document default value.
13526
86855e8c
KH
135272002-03-02 Kazu Hirata <kazu@hxi.com>
13528
13529 * config/h8300/h8300-protos.h: Add a prototype for
13530 compute_a_shift_length.
13531 * config/h8300/h8300.c (h8300_asm_insn_count): New.
13532 (compute_a_shift_length): Likewise.
13533 (h8300_adjust_insn_length): Do not adjust insn length of shift
13534 insns.
13535 * config/h8300/h8300.md (anonymous shift patterns): Use
13536 compute_a_shift_length.
13537
f6041ed8
RK
13538Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13539
35aa3c1c
RK
13540 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13541 trunc_int_for_mode.
13542
f6041ed8
RK
13543 * emit-rtl.c (offset_address): Call update_temp_slot_address.
13544
27b41650
KG
135452002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13546
13547 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13548 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13549 * flags.h (flag_zero_initialized_in_bss): Declare.
13550 * toplev.c (flag_zero_initialized_in_bss): New flag.
13551 (lang_independent_options): Add flag_zero_initialized_in_bss.
13552 * tree.c (initializer_zerop): New function.
13553 * tree.h (initializer_zerop): Declare.
13554 * varasm.c (assemble_variable): If we can emit bss, put zero
13555 initializers in the bss section.
13556
ca734b39
AM
135572002-03-02 Alan Modra <amodra@bigpond.net.au>
13558
13559 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13560 like more than one symbol per .weak directive.
13561
49b72306
RH
135622002-03-01 Richard Henderson <rth@redhat.com>
13563
13564 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13565 adjust argument_pointer by pretend_args_size.
13566 (ia64_va_start): Adjust va_start address by -pretend_args_size.
13567
fbf0fe41
KH
135682002-03-01 Kazu Hirata <kazu@hxi.com>
13569
13570 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13571
0010687d
JH
13572Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
13573
13574 * toplev.c (rest_of_compilation): Delete dead jumptables before
13575 loop.
13576 * flow.c (delete_dead_jumptables): Make global.
13577 * rtl.h (delete_dead_jumptables): Declare.
13578
9429c84c
DE
135792002-03-01 David Edelsohn <edelsohn@gnu.org>
13580
13581 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13582 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 13583 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 13584
f0b6f9a6
KH
135852002-03-01 Kazu Hirata <kazu@hxi.com>
13586
13587 * config/h8300/h8300-protos.h: Fix formatting.
13588 * config/h8300/h8300.c: Likewise.
13589 * config/h8300/h8300.h: Likewise.
13590
bc8db8a1
KH
135912002-03-01 Kazu Hirata <kazu@hxi.com>
13592
13593 * config/h8300/h8300.c (print_operand): Support 16-bit
13594 constant addresses.
13595 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13596
32b069d3
RH
135972002-02-28 Richard Henderson <rth@redhat.com>
13598
13599 * expmed.c (store_bit_field): Prevent generation of CONCATs;
13600 pun complex values as integers; use gen_lowpart instead of
13601 gen_rtx_SUBREG.
13602 (extract_bit_field): Likewise.
13603
79c4e63f
AM
136042002-03-01 Alan Modra <amodra@bigpond.net.au>
13605 David Edelsohn <edelsohn@gnu.org>
13606
13607 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13608 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13609 (SUPPORTS_WEAK): Likewise.
13610 * output.h (add_weak): Add tree param.
13611 * varasm.c (add_weak): Likewise. Save decl.
13612 (struct weak_syms): Add decl field.
13613 (mark_weak_decls): New function.
13614 (init_varasm_once): ggc_add_root mark_weak_decls.
13615 (assemble_start_function): Use ASM_WEAKEN_DECL.
13616 (assemble_variable): Likewise.
13617 (assemble_alias): Likewise.
13618 (declare_weak): Pass decl to add_weak.
13619 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13620 (remove_from_pending_weak_list): Declare and define for
13621 ASM_WEAKEN_DECL.
13622 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13623 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13624 * defaults.h (SUPPORTS_WEAK): Likewise.
13625 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13626 .weak for code sym. Do emit .size for descriptor sym.
13627 (ASM_DECLARE_FUNCTION_SIZE): Define.
13628 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13629 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
13630 .lglobl unless TARGET_XCOFF. Formatting fixes.
13631 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13632 .weak for code sym.
13633 (HANDLE_PRAGMA_WEAK): Remove.
13634 (ASM_WEAKEN_LABEL): Remove.
13635 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13636
6f30f1f1
JM
136372002-03-01 Jason Merrill <jason@redhat.com>
13638
13639 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13640 (TARGET_EXPR_CLEANUP): New macro.
13641
7879b81e
SE
136422002-02-28 Steve Ellcey <sje@cup.hp.com>
13643
13644 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13645 to take ptr_extend into account as third type of extension.
13646 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13647 fields used by SUBREG_PROMOTED_UNSIGNED_P.
13648 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13649 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13650 * calls.c (precompute_arguments): Use new macro.
13651 (expand_call): Ditto.
13652 * combine.c (nonzero_bits): Ditto.
13653 (record_promoted_value): Ditto.
13654 * expr.c (store_expr): Ditto.
13655 (expand_expr): Ditto.
13656 * function.c (assign_parms): Ditto.
13657
42d579d8
AO
136582002-02-28 Alexandre Oliva <aoliva@redhat.com>
13659
13660 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13661 override -shared and -shared-libgcc.
13662
e0054185
DB
136632002-02-28 David O'Brien <obrien@FreeBSD.org>
13664
13665 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13666 of "ultrasparc".
13667 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
13668 to be broken.
13669
abda4f1c
RH
136702002-02-28 Richard Henderson <rth@redhat.com>
13671
13672 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13673 4 cycle latency from MM producers.
13674 (ia64_internal_sched_reorder): Likewise with pipeline flush.
13675
c0f08649
JJ
136762002-02-28 Jakub Jelinek <jakub@redhat.com>
13677
13678 * mklibgcc.in: Don't use GNU make extension.
13679
f79f2651
NB
136802002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13681
13682 * c-parse.in (STATIC): New terminal.
13683 (scspec): New non-terminal. Update productions accordingly.
13684 (program): Remove bogus ifc / end ifc.
13685 (array_declarator): Simplify production using STATIC.
13686
001e3fee
JM
136872002-02-28 Jim Meyering <meyering@lucent.com>
13688
13689 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13690 \a still means TARGET_BELL.
13691
89076bb3
RH
136922002-02-28 Richard Henderson <rth@redhat.com>
13693
13694 * haifa-sched.c (sched_emit_insn): New.
13695 (schedule_block): Use last_scheduled_insn to track last insn.
13696 * sched-int.h (sched_emit_insn): Prototype.
13697 * config/ia64/ia64.c (last_issued): Remove.
13698 (ia64_variable_issue): Don't set it.
13699 (nop_cycles_until): Use sched_emit_insn.
13700
e3aaacf4
AM
137012002-02-28 Andrew MacLeod <amacleod@redhat.com>
13702
13703 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13704 extended constants.
13705
7f473594
KH
137062002-02-28 Kazu Hirata <kazu@hxi.com>
13707
13708 * config/h8300/h8300.c: Fix formatting.
13709 * config/h8300/h8300.h: Likewise.
13710
b96c434c
MM
137112002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
13712
13713 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13714 which may overwrite the high byte of the frame pointer.
13715
9b420a6a
BT
137162002-02-28 Bo Thorsen <bo@suse.de>
13717
13718 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13719 (STARTFILE_SPEC): Add 64 bit files.
13720 (ENDFILE_SPEC): Likewise.
13721
6f30f1f1 137222002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
13723
13724 * c-decl.c (finish_function): Only warn about missing return
13725 statement with -Wreturn-type.
13726
70da1d03
JH
13727Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
13728
13729 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13730
13731 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13732 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13733
38c1593d
JH
13734Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
13735
13736 * basic-block.h (BB_REACHABLE): Renumber.
13737 (BB_DIRTY, BB_NEW): New flags.
13738 (clear_bb_flags): Declare.
13739 (update_life_info_in_dirty_blocks): Declare.
13740 * cfg.c (clear_bb_flags): New function.
13741 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13742 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13743 reorder_insns, emit_insn_after): Mark block as dirty.
13744 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13745 (update_life_info_in_dirty_blocks): New function.
13746 * recog.c (apply_change_group): Dirtify block.
13747
13748 * cse.c (cse_insn): Reorder emitting of jump insn to keep
13749 cfg consistent.
13750 * gcse.c (delete_null_pointer_checks): Likewise.
13751
13752 * toplev.c (dump_file_index): Move cse2 after bp,
13753 add DFI_null
13754 (dump_file_info): Similary.
13755 (rest_of_compilation): Avoid most of CFG rebuilds;
13756 do first if converision after null pointer checks, do cse2
13757 after branch prediction; avoid full liveness rebuild after
13758 initializing subregs.
13759 * invoke.texi (-d options): Document -du, renumber.
13760
13761 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13762 (notice_new_block): Do not set BB_UPDATE_LIFE.
13763 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13764 merge_blocks_move_successor_nojumps, merge_blocks,
13765 try_crossjump_to_edge): Likewise.
13766 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13767 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13768 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13769 (merge_of_block): Do not use life_data_ok.
13770 (find_if_case_1): Do not use SET_UPDATE_LIFE.
13771 (if_convert): Use BB_DIRTY mechanizm to update life.
13772 * lcm.c (optimize_mode_switching): Update
13773 update_life_info_in_dirty_blocks
13774
63e1b1c4
NB
137752002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13776
13777 * Makefile.in (integrate.o): Update.
13778 * c-decl.c (copy_lang_decl): Rename.
13779 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13780 * integrate.c: Include langhooks.h.
13781 (copy_decl_for_inlining): Update to use langhook.
13782 * langhooks-def.h (lhd_do_nothing_t,
13783 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13784 (LANG_HOOKS_INITIALIZER): Update.
13785 * langhooks.c (lhd_do_nothing_t): New.
13786 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13787 * tree.h (copy_lang_decl): Remove.
13788objc:
13789 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13790
f472fa29
AM
137912002-02-27 Andrew MacLeod <amacleod@redhat.com>
13792
ba31d94e 13793 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
13794 POST_DEC, and POST_MODIFY.
13795
273cf2e4
ZW
137962002-02-27 Zack Weinberg <zack@codesourcery.com>
13797
13798 * c-typeck.c (digest_init): Remove unused parameter; all
13799 callers changed.
13800
4e07d762
GK
138012002-02-27 Geoffrey Keating <geoffk@redhat.com>
13802
13803 * expmed.c (expand_shift): Correctly test for low part of a
13804 subreg.
13805
6bc627b3
UW
138062002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13807
13808 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13809 insn UIDs with insn addresses.
13810
f458d1d5
ZW
138112002-02-27 Zack Weinberg <zack@codesourcery.com>
13812
13813 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13814 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13815 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13816 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13817 gcc.c, toplev.c: Delete code implementing -traditional mode.
13818
13819 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13820 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13821 Document removal of -traditional mode for compilation, and
13822 remove documentation only relevant to that mode.
13823
13824 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13825 config/convex/convex.h, config/d30v/d30v.h,
13826 config/i386/dgux.h, config/i386/osf1elf.h,
13827 config/i386/osfelf.h, config/i386/osfrose.h,
13828 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13829 config/m68k/hp310.h, config/m88k/dgux.h,
13830 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13831 config/m88k/m88k.h, config/m88k/openbsd.h,
13832 config/mips/abi64.h, config/mips/osfrose.h,
13833 config/mips/svr4-5.h, config/mips/svr4-t.h,
13834 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13835 config/stormy16/stormy16.h: Remove all references to
13836 -traditional from target specs. Delete all mention of the
13837 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13838 delete a couple of commented-out definitions of
13839 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13840 to -traditional.
13841
13842 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13843 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13844
e0b3a8ff
ZW
138452002-02-27 Zack Weinberg <zack@codesourcery.com>
13846
13847 * mklibgcc.in: Don't use \n in a line subject to
13848 interpretation by echo.
13849
5c6a85b7
GS
138502002-02-27 Graham Stott <grahams@redhat.com>
13851
72b05af1
GS
13852 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13853 Constify NAME.
13854
7d104885
GS
13855 * loop.c (prescan_loop): Handle PARALLEL.
13856
8ed805d2
GS
13857 * unroll.c (loop_iterations): Return 0 if the add_val for
13858 a BIV is REG.
13859
fd478a0a
GS
13860 * final.c (output_operand_lossage): Constify PFX_STR.
13861
5c6a85b7
GS
13862 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13863
cd98ad03
JH
13864Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13865
13866 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13867 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13868
639ae55b
JH
13869Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13870
13871 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13872
e808ec9c
NB
138732002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13874
13875 * cpplex.c (_cpp_lex_token): Handle directives in macro
13876 arguments.
13877 * cpplib.c (_cpp_handle_directive): Save and restore state
13878 if parsing macro args when entering a directive.
13879 * cppmacro.c (collect_args): No need to handle directives
13880 in macro arguments.
13881 (enter_macro_context, replace_args): Use the original macro
13882 definition in case it was redefined whilst collecting arguments.
13883doc:
13884 * cpp.texi: Update.
13885
f585a356
DE
138862002-02-26 David Edelsohn <edelsohn@gnu.org>
13887
13888 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13889 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13890 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13891 method on AIX.
13892 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13893 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13894 (load_toc_v4_PIC_2): Same.
13895
138962002-02-26 Alan Modra <amodra@bigpond.net.au>
13897
13898 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13899
d699058e
RH
139002002-02-26 Richard Henderson <rth@redhat.com>
13901
13902 * config/alpha/alpha.md (ashldi_se): Re-enable.
13903
eadccfbb
RH
139042002-02-26 Richard Henderson <rth@redhat.com>
13905
13906 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13907 MODULE_LOCAL_P; improve commentary.
13908
7080ada1
ZW
139092002-02-26 Zack Weinberg <zack@codesourcery.com>
13910
13911 * doc/cpp.texi: Clarify documentation of relationship between
13912 #line and #include.
13913
b42cff6b
KH
139142002-02-26 Kazu Hirata <kazu@hxi.com>
13915
13916 * config/h8300/h8300-protos.h: Update the prototype for
13917 compute_logical_op_length. Add the prototype for
13918 compute_logical_op_cc.
13919 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13920 code from operands.
13921 (compute_logical_op_cc): New.
13922 * config/h8300/h8300.md: Combine all the logical op patterns
13923 in HImode and SImode. Use compute_logical_op_cc.
13924
831c4e87
KC
139252002-02-26 Kelley Cook <kelleycook@comcast.net>
13926
13927 * config/i386/i386.c (print_operand): Don't append ATT-style
13928 length suffixs to x87 opcodes when in Intel mode.
13929
ff88fe10
RS
139302002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13931
13932 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13933 (init_emit_once): Update calls.
13934 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13935 (init_syntax_once): Prototype.
13936
d4108589
JDA
139372002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13938
13939 * pa-linux.h (LIB_SPEC): Update definition.
13940 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13941
e013f3c7
RH
139422002-02-26 Richard Henderson <rth@redhat.com>
13943
13944 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13945 if we emitted a stop bit.
13946
9e944a16
JJ
139472002-02-26 Jakub Jelinek <jakub@redhat.com>
13948
13949 * configure.in (libgcc_visibility): Substitute.
13950 * configure: Rebuilt.
13951 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13952 defined symbols .hidden.
13953
47bd70b5
JJ
139542002-02-26 Jakub Jelinek <jakub@redhat.com>
13955
13956 * attribs.c (c_common_attribute_table): Add visibility.
13957 (handle_visibility_attribute): New function.
13958 * varasm.c (assemble_visibility): New function.
13959 * output.h (assemble_visibility): Add prototype.
13960 * tree.h (MODULE_LOCAL_P): Define.
13961 * crtstuff.c (__dso_handle): Use visibility attribute.
13962 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13963 for MODULE_LOCAL_P symbols too.
13964 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13965 MODULE_LOCAL_P symbols the same way as local symbols.
13966 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13967 into .sdata/.sbss by the user.
13968 * doc/extend.texi (Function Attributes): Document visibility
13969 attribute.
13970
6d73371a
JJ
139712002-02-26 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR debug/5770
13974 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13975 STRING_CST initializer spanning the whole variable without
13976 embedded zeros.
13977 If expand_expr returned MEM, don't use it.
13978
06e224f7
AO
139792002-02-26 Alexandre Oliva <aoliva@redhat.com>
13980
13981 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13982 generate a die for the lexical block.
13983
40367e2d
KH
139842002-02-26 Kazu Hirata <kazu@hxi.com>
13985
13986 * config/h8300/h8300-protos.h: Add a prototype for
13987 compute_logical_op_length.
13988 * config/h8300/h8300.c (compute_logical_op_length): New.
13989 * config/h8300/h8300.md (anonymous logical patterns): Use
13990 compute_logical_op_length for length.
13991
0e98f924
AH
139922002-02-26 Aldy Hernandez <aldyh@redhat.com>
13993
831c4e87
KC
13994 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13995 for vectors.
13996 (gen_type_die): Same.
0e98f924 13997
831c4e87 13998 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 13999
a50cfd52
DE
140002002-02-26 Daniel Egger <degger@fhm.edu>
14001
831c4e87
KC
14002 * config/rs6000/rs6000.md: Swap define_insn attributes to
14003 fix incorrect generation of merge high instructions instead
14004 of merge low.
a50cfd52 14005
b7997284
AH
140062002-02-26 Aldy Hernandez <aldyh@redhat.com>
14007
831c4e87
KC
14008 * c-typeck.c (really_start_incremental_init): Use
14009 bitsize_zero_node for vectors.
b7997284 14010
376aec5d
AH
140112002-02-26 Aldy Hernandez <aldyh@redhat.com>
14012
831c4e87
KC
14013 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14014 ("*set_vrsave_internal"): Same.
376aec5d 14015
3b40e71b
RH
140162002-02-25 Richard Henderson <rth@redhat.com>
14017
14018 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14019 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
14020
232b8f52
JJ
140212002-02-25 Jakub Jelinek <jakub@redhat.com>
14022
14023 PR target/5755
14024 * config/i386/i386.c (ix86_return_pops_args): Only pop
14025 fake structure return argument if it was passed on the stack.
14026
67282790
JM
140272002-02-25 Jason Merrill <jason@redhat.com>
14028
14029 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14030 RESULT_DECL.
14031
5c181756
AO
140322002-02-25 Alexandre Oliva <aoliva@redhat.com>
14033
14034 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14035 link with shared_name only.
14036 * doc/invoke.texi (Link Options): Document new behavior.
14037
6786d201
AH
140382002-02-25 Aldy Hernandez <aldyh@redhat.com>
14039
831c4e87 14040 * c-typeck.c (push_init_level): Handle vectors.
6786d201 14041
7d6040e8
AO
140422002-02-25 Alexandre Oliva <aoliva@redhat.com>
14043
14044 * config/sparc/sparc.c (const64_high_operand): Zero-extend
14045 operands of SPARC_SETHI_P.
14046 (input_operand): Likewise.
14047 (sparc_emit_set_const32): Likewise.
14048 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14049 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14050 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
14051 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14052 (movdi_insn_sp64_vis): Likewise.
14053 (movdi split, movdf split): Use SETHI32.
14054 * doc/md.texi: Document SPARC constraints L, M and N.
14055
b188f760
AH
140562002-02-25 Aldy Hernandez <aldyh@redhat.com>
14057
831c4e87
KC
14058 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14059 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 14060
831c4e87
KC
14061 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14062 gen_get_vrsave_internal.
b188f760 14063
8041889f
RK
14064Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14065
14066 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14067
a47ed310
NB
140682002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
14069
14070 * cpplex.c (cpp_interpret_charconst): Get signedness or
14071 otherwise of wide character constants correct.
14072 * cppexp.c (lex): Get signedness of wide charconsts correct.
14073
cb8f73be
RK
14074Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14075
14076 * optabs.c (widen_operand): Only call convert_modes for
14077 promoted SUBREG if signedness matches.
14078 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14079
2450e0b8
NB
140802002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14081
14082 * cpplib.c (glue_header_name): Use local buffer to build up
14083 header name.
14084
70b6aaed
NB
140852002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14086
14087 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14088
6be580c7
KH
140892002-02-23 Kazu Hirata <kazu@hxi.com>
14090
14091 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14092 H8/300[HS] separately.
14093 * config/h8300/h8300.md: Remove the early clobber constraint
14094 from bit field patterns.
14095
35dad9f1
KH
140962002-02-23 Kazu Hirata <kazu@hxi.com>
14097
14098 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14099 register_operand.
14100 (mulhisi3): Likewise.
14101 (umulqisi3): Likewise.
14102 (umulhisi3): Likewise.
14103
ab8e2228
NB
141042002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14105
14106 * cppinit.c (output_deps): Correct test for stdout output.
14107 (init_dependency_output): Cure warning.
14108
ac6f8a15
RK
14109Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14110
14111 * expr.c (store_expr): When converting expression to promoted
14112 equivalent type, allow using SUBREG_REG of TARGET as the target
14113 of the expansion of EXP.
14114 * loop.c (basic_induction_var, case SUBREG): Always look inside.
14115 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14116 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14117 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14118 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14119
f282ffb3
JM
141202002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
14121
14122 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14123 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14124 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14125
44c5edc0
JJ
141262002-02-23 Jakub Jelinek <jakub@redhat.com>
14127
14128 PR optimization/5747
14129 * loop.c (scan_loop): Update reg info if move_movables created new
14130 pseudos.
14131
f98e43c0
DE
141322002-02-23 David Edelsohn <edelsohn@gnu.org>
14133
14134 * gcc.c (init_gcc_spec): Revert last change.
14135
e72247f4
DE
141362002-02-23 David Edelsohn <edelsohn@gnu.org>
14137
14138 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14139 gpc_reg_operand constraint.
14140
141412002-02-23 Alan Modra <amodra@bigpond.net.au>
14142
14143 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14144 Simplify comparison of `low'.
14145 (add_operand): Fix formatting.
14146 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 14147 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
14148 (rs6000_stack_info): Remove redundant test setting push_p.
14149 (output_toc): Fix formatting.
14150 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14151 cc_reg_not_cr0_operand constraint.
14152 (booldi3, boolcdi3 splitters): Same.
14153
a5c30531
AH
141542002-02-23 Aldy Hernandez <aldyh@redhat.com>
14155
831c4e87 14156 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 14157
43710f9f
DE
141582002-02-22 David Edelsohn <edelsohn@gnu.org>
14159
14160 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14161 gcc invoked with -shared-libgcc.
14162
3256b817
JJ
141632002-02-22 Jakub Jelinek <jakub@redhat.com>
14164
14165 PR c++/5748
14166 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14167 decl if any of elements was TREE_USED.
14168
9e0625a3
AO
141692002-02-22 Alexandre Oliva <aoliva@redhat.com>
14170
14171 * config/sparc/sol2.h: Don't include sys/mman.h.
14172 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14173 (arith_4096_operand): Don't throw high bits away.
14174 (const64_operand): Take sign extension of CONST_INTs into account.
14175 (const64_high_operand, sparc_emit_set_const32): Likewise.
14176 (GEN_HIGHINT64): Likewise.
14177 (sparc_emit_set_const64_quick1): Likewise.
14178 (const64_is_2insns): Likewise.
14179 (print_operand): Use trunc_int_for_mode for sign extension.
14180 * config/sparc/sparc.h (SMALL_INT32): Likewise.
14181 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14182 chars. Assume CONST_INT is already properly sign-extended.
14183 (movdi split): Sign-extend each SImode part.
14184 (andsi3 split): Don't mask high bits off, so that result
14185 remains properly sign-extend.
14186 (iorsi3 split): Likewise.
14187 (xorsi3 split): Likewise.
14188
54fec3d5
RS
141892002-02-22 Richard Sandiford <rsandifo@redhat.com>
14190
14191 * fold-const.c (fold): Fix typo in comments.
14192
667ada9b
DN
141932002-02-21 Diego Novillo <dnovillo@redhat.com>
14194
14195 * Makefile.in (langhooks.o): Update dependencies.
14196
29ac78d5
DN
141972002-02-21 Diego Novillo <dnovillo@redhat.com>
14198
14199 * langhooks.c: Include flags.h.
14200
6aa77e6c
AH
142012002-02-21 Aldy Hernandez <aldyh@redhat.com>
14202
14203 * testsuite/gcc.dg/attr-alwaysinline.c: New.
14204
14205 * c-common.c (c_common_post_options): Set inline trees by
14206 default.
14207
14208 * doc/extend.texi (Function Attributes): Document always_inline
14209 attribute.
14210 Update documentation about inlining when not optimizing.
14211
14212 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14213
14214 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14215 unless DECL_ALWAYS_INLINE.
14216
14217 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14218 unless DECL_ALWAYS_INLINE.
14219 (c_disregard_inline_limits): Disregard if always_inline set.
14220
14221 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14222 Disregard if always_inline set.
14223 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14224 unless DECL_ALWAYS_INLINE.
14225
14226 * attribs.c (handle_always_inline_attribute): New.
14227 (c_common_attribute_table): Add always_inline.
14228
14229 * config/rs6000/altivec.h: Add prototypes for builtins
14230 requiring the always_inline attribute.
14231
c410d49e
EC
142322002-02-21 Eric Christopher <echristo@redhat.com>
14233
14234 * expmed.c (store_bit_field): Try to simplify the subreg
14235 before generating a new one when when the mode size of
14236 value is less than maxmode.
14237
e3c8ea67
RH
142382002-02-21 Richard Henderson <rth@redhat.com>
14239
14240 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14241 than gen_rtx_PLUS to form the sum.
14242 * explow.c (force_reg): Rearrange to not allocate new pseudo
14243 when force_operand returns a register.
14244 * expr.c (expand_assignment): Allow offset_rtx expansion to
14245 return a sum. Do not force addresses into registers.
14246 (expand_expr): Likewise.
14247 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14248 to canonicalize arithmetic that didn't simpify.
14249 (simplify_plus_minus): New argument force; update
14250 all callers. Don't split CONST unless we can do something with it,
14251 and wouldn't lose the constness of the operands.
14252
14253 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14254 that we generated earlier.
14255
c1a046e5
TT
142562002-02-21 Tom Tromey <tromey@redhat.com>
14257
14258 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14259 (output_line_info): Use constant `1', with a long explanatory
14260 comment.
14261 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14262
31fbaad4
R
14263Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
14264
14265 * jump.c (redirect_jump): If old label has no UID, don't try to
14266 delete it.
14267
a7f52356
R
14268Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
14269
14270 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14271 If input is constant, do shifts at compile time.
14272
924fcc4e
JM
142732002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
14274
14275 * doc/extend.texi: Fix some more overfull hboxes.
14276
e5a20888
JJ
142772002-02-21 Jakub Jelinek <jakub@redhat.com>
14278
14279 PR optimization/4994
14280 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14281 register moves.
14282
142832002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
14284
14285 PR c++/4574
14286 * expr.h (expand_and): Add mode argument.
14287 * expmed.c (expand_and): Add mode argument.
14288 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14289 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14290 * except.c (expand_builtin_extract_return_addr): Likewise.
14291 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14292 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14293 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14294 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14295 * config/c4x/c4x.md: Use GEN_INT (x) instead of
14296 gen_rtx (CONST_INT, VOIDmode, x).
14297
7133e992
JJ
142982002-02-21 Jakub Jelinek <jakub@redhat.com>
14299
14300 PR c/4697:
14301 * stmt.c (warn_if_unused_value): Move side effects test once more.
14302
e2ec05a6
TG
143032002-02-20 Torbjorn Granlund <tege@swox.com>
14304
14305 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 14306 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 14307
9dd791c8
AO
14308Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
14309
14310 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14311 SUBREG or ZERO_EXTEND.
14312
7ab56274
R
14313Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
14314
14315 * sh.h (current_function_anonymous_args): Remove.
14316 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14317 of current_function_varargs and current_function_stdarg is set.
14318 * sh.c (sh_expand_prologue): Check current_function_varargs /
14319 current_function_stdarg / TARGET_SH5 instead of
14320 current_function_anonymous_args.
14321
14322 * sh64.h (TARGET_VERSION): Define.
14323
b1765bde
DE
143242002-02-20 David Edelsohn <edelsohn@gnu.org>
14325
14326 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14327 VRSAVE_REGNO on TARGET_ALTIVEC.
14328
143292002-02-20 Alan Modra <amodra@bigpond.net.au>
14330
14331 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14332 bits of SImode const_int.
14333 (includes_rshift_p): Likewise.
14334 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 14335 mode.
b1765bde
DE
14336 (rs6000_output_function_epilogue): Pad traceback table to word.
14337 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14338 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14339 mask64_operand with correct mode.
b1765bde
DE
14340 (FUNCTION_ARG_REGNO_P): Correct parentheses.
14341
149d6f9e
JJ
143422002-02-20 Jakub Jelinek <jakub@redhat.com>
14343
14344 PR debug/4461
14345 * varasm.c (get_pool_constant_mark): New.
14346 * rtl.h (get_pool_constant_mark): Add prototype.
14347 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14348 be represented if it has not been output.
14349
4161da12
AO
143502002-02-20 Alexandre Oliva <aoliva@redhat.com>
14351
14352 * combine.c (do_SUBST): Sanity check substitutions of
14353 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14354 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14355 CONST_INT into its operand.
14356 (known_cond): Likewise, for ZERO_EXTEND.
14357 * simplify-rtx.c (simplify_unary_operation): Fix condition to
14358 allow for simplification of wide modes. Reject CONST_INTs in
14359 ZERO_EXTEND when their actual mode is not given.
14360
3704ef74
AO
143612002-02-20 Alexandre Oliva <aoliva@redhat.com>
14362
14363 * c-decl.c (pushdecl): If no global declaration is found for an
14364 extern declaration in block scope, try a limbo one.
14365
7552da58
JJ
143662002-02-20 Jakub Jelinek <jakub@redhat.com>
14367
14368 PR c++/4401
14369 * c-common.c (pointer_int_sum): Moved from...
14370 * c-typeck.c (pointer_int_sum): ...here.
14371 * c-common.h (pointer_int_sum): Add prototype.
14372
00fae85d
JJ
143732002-02-20 Jakub Jelinek <jakub@redhat.com>
14374
14375 PR c++/5713
14376 * c-decl.c (duplicate_decls): Return 0 if issued error about
14377 redeclaration.
14378
4636c87e
JJ
143792002-02-20 Roger Sayle <roger@eyesopen.com>
14380 Jakub Jelinek <jakub@redhat.com>
14381
14382 PR c/4389
14383 * tree.c (host_integerp): Ensure that the constant integer is
14384 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14385 when pos is zero or non-zero respectively. Clarify comment.
14386 * c-format.c (check_format_info_recurse): Fix host_integerp
14387 usage; the pos argument should be zero when assigning to a
14388 signed HOST_WIDE_INT.
14389
59bef189
RH
143902002-02-20 Richard Henderson <rth@redhat.com>
14391
14392 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14393 of the operand, rather than assuming TImode.
14394 (ix86_expand_binop_builtin): Cope with commutative patterns
14395 using nonimmediate_operand for both operands.
14396 (ix86_expand_timode_binop_builtin): Likewise.
14397 (ix86_expand_store_builtin): Validate operand 1.
14398 (ix86_expand_unop1_builtin): Likewise.
14399
9338ffe6 144002002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 14401
9338ffe6
PB
14402 PR 5705
14403 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14404
f322b423
RH
144052002-02-20 Richard Henderson <rth@redhat.com>
14406
14407 PR c/5615
14408 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14409
d94084f7
TT
144102002-02-20 Tom Tromey <tromey@redhat.com>
14411
14412 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14413 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14414 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14415 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14416 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14417 unconditionally.
14418
37fa124a
AM
14419Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14420
14421 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14422 for (const_int 0) in X not just INTVAL.
14423
6e5bb5ad
JM
144242002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
14425
14426 * doc/extend.texi: Avoid or reduce overfull hboxes.
14427
420e7dfa
DN
144282002-02-20 Diego Novillo <dnovillo@redhat.com>
14429
14430 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14431 operations if the field does not start at a mode boundary.
14432
1b7a2af6
JS
144332001-02-20 Joel Sherrill <joel@OARcorp.com>
14434
14435 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14436 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14437 Also done for -Acpu and -Amachine.
14438
56cd5b95
NB
144392002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
14440
14441 * cppinit.c (init_dependency_output): Take deps output file
14442 from -o if none given with -MF. Suppress normal output.
c410d49e 14443 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
14444 * doc/cpp.texi, doc/invoke.texi: Update.
14445
042cdf71
ZW
144462002-02-19 Zack Weinberg <zack@codesourcery.com>
14447
14448 * toplev.c (output_quoted_string): Write unprintable
14449 characters with octal escapes.
14450
c1f11548
DE
144512002-02-19 David Edelsohn <edelsohn@gnu.org>
14452
14453 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14454 really_call_used[VRSAVE_REGNO] if not Altivec.
14455
144562002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 14457
c1f11548
DE
14458 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14459 MODE_MASK.
14460 (constant_pool_expr_1): Fix formatting.
14461 (rs6000_legitimize_reload_address): Likewise.
14462
c964d90e
RK
14463Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14464
14465 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14466 now that we have one.
14467
ae34ac46
ZW
144682002-02-19 Zack Weinberg <zack@codesourcery.com>
14469
14470 * tree.h (struct tree_common): Remove aux. Add unused_0 at
14471 end of first block of bitfields (which was only seven bits);
14472 rename dummy to unused_1; remove comment which is no longer true.
14473
293c28ee
GS
144742002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14475
14476 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14477
7b8781c8
PB
144782002-02-19 Philip Blundell <pb@nexus.co.uk>
14479
0cb6c58d 14480 PR 5399
7b8781c8
PB
14481 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14482 if generating PIC.
14483
14484 PR 5054
14485 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14486 arm_is_longcall_p rather than inspecting call-type cookie
14487 directly.
14488 (call_value_insn) [TARGET_THUMB]: Likewise.
14489
5c464583
GS
144902002-02-19 Graham Stott <grahams@redhat.com>
14491
14492 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14493
71c061e6
DE
144942002-02-19 David Edelsohn <edelsohn@gnu.org>
14495
14496 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14497 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 14498 (FP_SAVE_INLINE): Delete.
71c061e6
DE
14499
14500 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14501 * config/rs6000/eabi.asm: Remove ABI save restore routines.
14502 * config/rs6000/t-ppccomm: Build crtsavres.o.
14503 * config/rs6000/crtsavres.asm: New file.
14504
3a7731fd
PB
145052002-02-19 Philip Blundell <philb@gnu.org>
14506
14507 * config/arm/arm.c (use_return_insn): Don't reject interrupt
14508 functions.
14509 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14510 (output_return_instruction): Allow interrupt functions to return with
14511 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
14512 (arm_expand_prologue): Subtract 4 before stacking LR in an
14513 interrupt function.
14514
14f583b8
PB
145152002-02-19 Philip Blundell <pb@nexus.co.uk>
14516
14517 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14518 decl, not just FUNCTION_DECL.
14519 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14520 (arm_assemble_integer): Likewise.
14521 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14522 marked local.
c410d49e 14523
4cb7482c
MG
145242002-02-19 matthew green <mrg@eterna.com.au>
14525
14526 * config.gcc (sparc-*-netbsdelf*): Enable target.
14527 (sparc64-*-netbsd*): New target.
14528 * config/sparc/netbsd-elf.h: New file.
14529 * config/sparc/t-netbsd64: New file.
14530
2df3a718
GS
145312002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14532
14533 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14534
77f6c1eb
RS
145352002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
14536
14537 * doc/invoke.texi: explicitly list the style guidelines that
14538 -Weffc++ checks for.
14539
fd973d56
JH
14540Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
14541
14542 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14543
30518e45
NB
145442002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
14545
14546 PR other/5718
14547 * gcc.c (cpp_unique_options): Treat -o as indicating object file
14548 only if not -E. If -E, pass -o through to the preprocessor.
14549
39ea5704
KH
145502002-02-19 Kazu Hirata <kazu@hxi.com>
14551
14552 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14553 register number with an appropriate macro.
14554
7355dba7
BM
145552002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14556
14557 * doc/rtl.texi (Constants): Close @code tag.
14558
91c8aa9e
AH
145592002-02-19 Aldy Hernandez <aldyh@redhat.com>
14560
14561 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14562 ("mmx_uavgv4hi3"): Same.
14563 ("pmulhrwv4hi3"): Same.
14564
14565 * tree-inline.c (walk_tree): Handle vectors.
14566
14567 * c-common.c (constant_expression_warning): Handle vectors.
14568 (overflow_warning): Same.
14569
14570 * sched-deps.c (sched_analyze_2): Handle vectors.
14571
14572 * rtlanal.c (rtx_unstable_p): Handle vectors.
14573 (rtx_varies_p): Same.
14574 (count_occurrences): Same.
14575 (regs_set_between_p): Same.
14576 (modified_between_p): Same.
14577 (modified_in_p): Same.
14578 (volatile_insn_p): Same.
14579 (volatile_refs_p): Same.
14580 (side_effects_p): Same.
14581 (may_trap_p): Same.
14582 (inequality_comparisons_p): Same.
14583 (replace_regs): Same.
14584 (computed_jump_p_1): Same.
14585
14586 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14587 argument.
14588 (inner_mode_array): New.
14589 (copy_rtx): Handle vectors.
14590 (copy_most_rtx): Same.
14591 (rtx_equal_p): Same.
14592 (get_mode_alignment): Adjust for vectors.
14593
14594 * resource.c (mark_referenced_resources): Handle vectors.
14595 (mark_set_resources): Same.
14596
14597 * reload1.c (eliminate_regs): Handle vectors.
14598 (elimination_effects): Same.
14599 (scan_paradoxical_subregs): Same.
14600
14601 * reload.c (subst_reg_equivs): Handle vectors.
14602
14603 * regrename.c (scan_rtx): Handle vectors.
14604
14605 * regclass.c (reg_scan_mark_refs): Handle vectors.
14606
14607 * recog.c (find_single_use_1): Handle vectors.
14608
14609 * local-alloc.c (equiv_init_varies_p): Handle vectors.
14610 (contains_replace_regs): Same.
14611 (memref_referenced_p): Same.
14612
14613 * integrate.c (copy_rtx_and_substitute): Handle vectors.
14614 (subst_constants): Same.
14615
14616 * genattrtab.c (attr_copy_rtx): Handle vectors.
14617 (encode_units_mask): Same.
14618 (clear_struct_flag): Same.
14619 (count_sub_rtxs): Same.
14620
14621 * gcse.c (want_to_gcse_p): Handle vectors.
14622 (oprs_unchanged_p): Same.
14623 (hash_expr_1): Same.
14624 (oprs_not_set_p): Same.
14625 (expr_killed_p): Same.
14626 (compute_transp): Same.
14627 (store_ops_ok): Same.
14628
14629 * function.c (purge_addressof_1): Do not allow paradoxical subregs
14630 of vectors.
14631 (fixup_var_refs_1): Same.
14632 (instantiate_virtual_regs_1): Same.
14633
14634 * fold-const.c (operand_equal_p): Handle vectors.
14635 (fold): Same.
14636 (rtl_expr_nonnegative_p): Same.
14637
14638 * flow.c (mark_used_regs): Handle vectors.
14639
14640 * df.c (df_uses_record): Handle vectors.
14641
14642 * cselib.c (cselib_subst_to_values): Handle vectors.
14643 (cselib_mem_conflict_p): Same.
14644 (hash_rtx): Same.
14645
14646 * cse.c (canon_reg): Handle vectors.
14647 (fold_rt): Same.
14648 (cse_process_notes): Same.
14649 (count_reg_usage): Same.
14650 (canon_hash): Same.
14651
14652 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14653
14654 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14655
14656 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14657 (gen_rtx): Handle CONST_VECTOR.
14658 (gen_const_vector_0): New.
14659 (copy_rtx_if_shared): CONST_VECTORs can be shared.
14660 (reset_used_flags): Same.
14661 (copy_insn_1): Same.
14662 (initializer_constant_valid_p): Handle VECTOR_CST.
14663
14664 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14665
14666 * doc/rtl.texi (Constants): Document const_vector.
14667 (CONST0_RTX): Update for vectors.
14668 (RTL sharing): Same.
14669
14670 * print-tree.c (print_node): Add case for VECTOR_CST.
14671
14672 * tree.h (TREE_VECTOR_CST_ELTS): New.
14673 (struct tree_vector): New.
14674 (union tree_node): Add vector node.
14675 (build_vector): Add prototype.
14676
14677 * tree.def (VECTOR_CST): New.
14678
14679 * tree.c (build_vector): New.
14680
14681 * expmed.c (make_tree): Handle CONST_VECTOR.
14682
14683 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14684 (CONST_VECTOR_ELT): New.
14685 (CONST_VECTOR_NUNITS): New.
14686
14687 * machmode.h (GET_MODE_INNER): New.
14688 (DEF_MACHMODE): Accept 8th arg.
14689
14690 * machmode.def: Add 8th argument for vector inner mode.
14691 Add inner vector modes for vectors.
14692
14693 * rtl.def (VEC_CONST): Remove.
14694 (CONST_VECTOR): New.
14695
14696 * expr.c (clear_storage): Allow vectors.
14697 (is_zeros_p): Handle VECTOR_CST.
14698
14699 * varasm.c (output_constant_pool): Handle vectors.
14700 (rtx_const): Add veclo and vechi fields.
14701 (kind): Add RTX_VECTOR.
14702 (decode_rtx_const): Add case for vector.
14703
14704 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 14705
91c8aa9e
AH
14706 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14707 constants. Force easy vector constants into memory.
14708 (easy_vector_constant): New.
14709 (emit_easy_vector_constant): New.
14710 (rs6000_legitimize_reload_address): Do not generate bad reloads on
14711 darwin.
14712
14713 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14714 instruction does.
14715 ("altivec_lvxl"): Same.
14716 (altivec_lvebx): Same.
14717 (altivec_lvehx): Same.
14718 (altivec_lvewx): Same.
14719 ("*movv4si_const0"): New.
14720 ("*movv4sf_const0"): New.
14721 ("*movv8hi_const0"): New.
14722 ("*movv16qi_const0"): New.
14723
d4d6d0ce
KH
147242002-02-18 Kazu Hirata <kazu@hxi.com>
14725
14726 * config/h8300/h8300.c (notice_update_cc): Use
14727 cc_status.value2.
14728
4915d3aa
KH
147292002-02-18 Kazu Hirata <kazu@hxi.com>
14730
14731 * config/h8300/h8300.md (divmod patterns): Change the
14732 constraints for operands[1] to register_operand.
14733
82be00ee
KH
147342002-02-18 Kazu Hirata <kazu@hxi.com>
14735
14736 * config/h8300/h8300-protos.h: Remove the prototype for
14737 p_operand.
14738 * config/h8300/h8300.c (p_operand): Remove.
14739 * config/h8300/h8300.md: Replace p_operand with
14740 const_int_operand.
14741
1768c26f
PB
147422002-02-18 Philip Blundell <pb@nexus.co.uk>
14743
14744 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14745 comment.
14746 (output_return_instruction): Allow use of LDR to unstack
14747 return addresss even for interrupt handlers or when
14748 interworking. If compiling for ARMv5, use interworking-safe
14749 return instructions by default. Remove duplicated code and
14750 lengthy "strcat" sequences.
14751
ccd84f51
FS
147522002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14753
14754 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14755 (LINK_EH_SPEC): Define.
14756 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14757
2c153108
UW
147582002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
14759
14760 * config/s390/s390.c (s390_emit_prologue): Do not set the
14761 frame_related flag for call-clobbered registers.
14762
e95d6b23
JH
14763Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
14764
14765 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14766 (construct_container): Fix handling of SSE operands.
14767 (ix86_expand_builtin): Fix handling of 64bit pointers.
14768 (mmx_maskmovq_rex): New pattern.
14769
c43a12b5
JH
14770Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
14771
14772 * regrename.c (kill_set_value): Handle subregs properly.
14773
aeb85a15
DB
147742002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14775
14776 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 14777 from objc_class_name.
aeb85a15 14778
a615ca3e
RH
147792002-02-17 Richard Henderson <rth@redhat.com>
14780
14781 * config/alpha/alpha.c (some_small_symbolic_operand,
14782 some_small_symbolic_operand_1, split_small_symbolic_operand,
14783 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14784 Handle small SYMBOL_REFs anywhere, not just inside memories.
14785 * config/alpha/alpha-protos.h: Update.
14786 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14787 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14788
ddb28441
RM
147892002-02-17 Roland McGrath <roland@frob.com>
14790
14791 * config.gcc (powerpc-*-gnu-gnualtivec*,
14792 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14793 * config/rs6000/gnu.h: New file.
14794 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14795 Grok "gnu" in rs6000_abi_name.
14796 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14797 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14798 Grok -mcall-gnu analogous to -mcall-linux et al.
14799 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14800 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14801 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14802
f6f8ada3
JJ
148032002-02-17 Jakub Jelinek <jakub@redhat.com>
14804
14805 PR c/3444:
14806 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14807 shortening.
14808
e16b32fc
PT
148092002-02-17 Philipp Thomas <pthomas@suse.de>
14810
14811 * config/cris/cris.h: Undefine STARTFILE_SPEC and
14812 ENDFILE_SPEC before (re)defining them.
14813
f9477efd
KH
148142002-02-17 Kazu Hirata <kazu@hxi.com>
14815
14816 * config/h8300/h8300.c: Fix formatting.
14817 * config/h8300/h8300.h: Likewise.
14818
404ae494
PT
148192002-02-17 Philipp Thomas <pthomas@suse.de>
14820
14821 * doc/tm.texi: Explain why empty strings should not be
14822 marked for translation.
14823
a52453cc
PT
148242002-02-17 Philipp Thomas <pthomas@suse.de>
14825
14826 * final.c (output_operand_lossage): Changed to accept
14827 printf style arguments. Change calls where necessary.
14828 * output.h (output_operand_lossage): Change declaration
14829 accordingly. Update copyright.
14830 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14831 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14832 Update copyright date where necessary.
c410d49e 14833
a52453cc
PT
14834 * config/i386/i386.c (print_operand): Likewise. Remove use of
14835 sprintf.
14836
14837 * config/cris/cris.c (cris_operand_lossage): Likewise.
14838 Rename parameter so that exgettext recognizes it as
14839 translatable message.
14840 (LOSE_AND_RETURN): Rename parameter to msgid.
14841
1c11abc4
KH
148422002-02-17 Kazu Hirata <kazu@hxi.com>
14843
14844 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14845 hard coded register number with an appropriate macro.
14846 (HARD_REGNO_MODE_OK): Likewise.
14847 (ARG_POINTER_REGNUM): Likewise.
14848 (STATIC_CHAIN_REGNUM): Likewise.
14849 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14850 * config/h8300/h8300.md (define_constants): Define more
14851 register numbers.
14852
a5d17ff3
PT
148532002-02-17 Philipp Thomas <pthomas@suse.de>
14854
14855 * config/i386/i386.h: Don't mark empty strings for translation.
14856
1a7289c4
L
148572002-02-16 H.J. Lu <hjl@gnu.org>
14858
14859 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14860
afb58288
ZW
148612002-02-16 Zack Weinberg <zack@codesourcery.com>
14862
14863 * cppinit.c (merge_include_chains): Check for brack being
14864 NULL before attempting to merge it with qtail.
14865
d2af4dbd
AC
148662002-02-16 Andrew Cagney <ac131313@redhat.com>
14867
14868 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14869 DBX_DEBUG.
14870
2e1ed1e3
JDA
148712002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14872
14873 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14874
604c75b2
JDA
148752002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14876
14877 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14878 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14879 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14880
1a42b072
RK
14881Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14882
7303604f 14883 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
14884 now only if !TARGET_FIX.
14885 (*movsi_nt_vms_fix): New pattern.
14886
c2ea1ac6
DR
148872002-02-16 Douglas B Rupp <rupp@gnat.com>
14888
14889 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14890 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14891 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14892 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14893 (alpha_start_function, alpha_expand_epilogue): Likewise.
14894 (unicosmk_gen_dsib): Likewise.
14895
725e58b1
RK
14896Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14897
14898 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14899
13e58269
UW
149002002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14901
c410d49e 14902 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
14903 check_and_change_labels, s390_final_chunkify): Delete.
14904 (s390_split_branches, s390_chunkify_pool): New functions.
14905 (s390_function_prologue): Call them.
c410d49e 14906
13e58269
UW
14907 * config/s390/s390.h (S390_REL_MAX): Delete.
14908 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14909
c410d49e 14910 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
14911 attribute calculation.
14912
14913
34d1b01d
DE
149142002-02-15 David Edelsohn <edelsohn@gnu.org>
14915
14916 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14917 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14918
be5cc51a
JDA
149192002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14920
14921 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14922 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14923 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14924
ee96ce90
RS
149252002-02-15 Richard Sandiford <rsandifo@redhat.com>
14926
14927 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14928
05fa709d
RS
149292002-02-15 Richard Sandiford <rsandifo@redhat.com>
14930
14931 * reload.c (find_dummy_reload): Check that an output register
14932 is valid for its mode.
14933
4606272b
AO
149342002-02-14 Alexandre Oliva <aoliva@redhat.com>
14935
9a360704
AO
14936 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14937 to simplify it.
14938
4606272b
AO
14939 * function.c (assign_parms): Demote promoted argument passed by
14940 transparent reference.
14941
e62d89a1
JS
149422001-02-14 Joel Sherrill <joel@OARcorp.com>
14943
14944 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14945 -Acpu() and -Amachine() to eliminate warnings.
14946
6c4cf695
UW
149472002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14948
14949 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14950
037f11ef
KH
149512002-02-14 Kazu Hirata <kazu@hxi.com>
14952
14953 * config/h8300/h8300-protos.h: Update the prototype for
14954 const_costs.
14955 * config/h8300/h8300.c (const_costs): Treat SET as a little
14956 more expensive operation.
14957 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14958 reference to const_costs.
14959
fdc76b09
HPN
149602002-02-14 Hans-Peter Nilsson <hp@axis.com>
14961
14962 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14963
d76e6800
JJ
149642002-02-14 Jakub Jelinek <jakub@redhat.com>
14965
14966 PR c/5503:
14967 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14968 use arguments from newtype.
14969
5ae590d7
EC
149702002-02-13 Eric Christopher <echristo@redhat.com>
14971
14972 * config/mips/mips.c (override_options): Add check for march/mipsX
14973 on the same command line. Fix error message in cpu processing.
14974 Remove architecture and ISA checks.
14975
b8513691
AH
149762002-02-14 Aldy Hernandez <aldyh@redhat.com>
14977
831c4e87 14978 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 14979
831c4e87 14980 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 14981
78c875e8
AH
149822002-02-14 Aldy Hernandez <aldyh@redhat.com>
14983
831c4e87
KC
14984 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14985 alternatives.
14986 ("*movv8hi_internal1"): Same.
14987 ("*movv16qi_internal1"): Same.
14988 ("*movv4sf_internal1"): Same.
78c875e8 14989
831c4e87
KC
14990 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14991 not push_reload for altivec modes.
78c875e8 14992
d76e6800 149932002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
14994
14995 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14996 all RTEMS targets including removal of #includes from config/*/rtems*.h
14997 file and adding them to tm_file setting. Added xm_defines=POSIX to
14998 many targets.
14999 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15000 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15001 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15002 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15003 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15004 config/m68k/rtemself.h: Ditto.
15005 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15006 config/mips/rtems64.h: Ditto.
15007 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15008 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15009 Ditto.
15010 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15011 config/sparc/rtemself.h: Ditto.
15012 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15013 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15014 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15015 more like arm-elf.
15016 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15017 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15018 target made more similar to i386-elf.
15019 * config/i386/t-rtems-i386: Added soft float support and multilibs.
15020 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15021 be similar to config/m68k/t-m68kelf.
15022 * gthr-rtems.h: Encapsulate with extern "C" for C++.
15023
8686336f
JH
15024Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
15025
15026 * regmove.c (kill_value): Handle subregs.
15027
558740bf
JH
15028Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
15029
15030 * i386.md (mul patterns): Allow memory operand to be first;
15031 add expanders where needed; fix constraints.
15032 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15033 Allow memory operand to be the first.
15034
15035 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15036 operands.
15037
21117a17
JJ
150382002-02-13 Jakub Jelinek <jakub@redhat.com>
15039
15040 PR c/5681:
15041 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15042 GET_MODE (x).
15043
ec65b2e3
JJ
150442002-02-13 Jakub Jelinek <jakub@redhat.com>
15045
15046 PR optimization/5547:
15047 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15048 all valid IA-32 address modes involving non-scaled %ebx and
15049 GOT/GOTOFF as displacement.
15050
ce50cae8
UW
150512002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
15052
15053 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15054 after emitting ltorg insns.
15055
15056 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15057 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15058 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15059 *abssf2): Fix "op_type" attribute.
15060
09eb789b
DR
150612002-02-13 Douglas B Rupp <rupp@gnat.com>
15062
2dbe67bb
DR
15063 * mkconfig.sh: Avoid using a subshell redirect.
15064 ($output.T): Change to $(output)T.
15065 (ENABLE_NLS): Remove unneeded undef.
15066
ea5b9a1f
DR
15067 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15068 * config/alpha/x-vms (libsubdir): Define.
15069
3deb00ce
DR
15070 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15071 register frame procedures. Optimize retrieving context.
15072
09eb789b
DR
15073 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15074 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15075 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15076
1abade85
RK
15077Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15078
15079 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15080 Make same change as for find_base_value.
15081
c283e63f
KH
150822002-02-13 Kazu Hirata <kazu@hxi.com>
15083
15084 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15085 of QImode and SImode.
15086
86039100
KH
150872002-02-13 Kazu Hirata <kazu@hxi.com>
15088
15089 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15090 length computation of movsi.
15091 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15092
e1429da0
KH
150932002-02-13 Kazu Hirata <kazu@hxi.com>
15094
15095 * config/h8300/h8300.md (subqi3): Tighten the predicate for
15096 operands[2] to register_operand.
15097
aebfea10
JH
15098Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
15099
15100 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15101
0ec4e2a8
AH
151022002-02-12 Aldy Hernandez <aldyh@redhat.com>
15103
831c4e87
KC
15104 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15105 for altivec_lvx* and altivec_stvx*.
15106 ("*movv4si_internal"): Add constraint for loading from GPRs.
15107 ("*movv8hi_internal1"): Same.
15108 ("*movv16qi_internal1"): Same.
15109 ("*movv4sf_internal1"): Same.
0ec4e2a8 15110
831c4e87 15111 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 15112
831c4e87
KC
15113 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15114 altivec_register_operand.
0ec4e2a8 15115
b007569d
HPN
151162002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
15117
15118 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15119 handle SYMBOL_REF.
15120
e6834654
SS
151212002-02-13 Stan Shebs <shebs@apple.com>
15122
831c4e87
KC
15123 * c-typeck.c (digest_init): Handle vectors.
15124 (really_start_incremental_init): Same.
15125 (pop_init_level): Same.
15126 (process_init_element): Same.
e6834654 15127
831c4e87 15128 * varasm.c (output_constant): Same.
e6834654 15129
831c4e87
KC
15130 * expr.c (clear_storage): Same.
15131 (store_constructor): Same.
e6834654 15132
d9b3eb63
EC
151332002-02-12 Eric Christopher <echristo@redhat.com>
15134
15135 * explow.c (hard_function_value): Add comment explaining
15136 signed/unsigned comparison.
15137
56d44285
JJ
151382002-02-12 Jakub Jelinek <jakub@redhat.com>
15139
15140 * jump.c (never_reached_warning): Add finish argument.
15141 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15142 real insn after end.
15143 * rtl.h (never_reached_warning): Adjust prototype.
15144 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15145 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15146 never_reached_warning.
15147
fc209487
GS
151482002-02-12 Graham Stott <grahams@redhat.com>
15149
15150 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15151
1e41e866
KH
151522002-02-12 Kazu Hirata <kazu@hxi.com>
15153
15154 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15155 logical shifts on H8/300.
15156 (shift_alg_si): Improve several shifts on H8/300.
15157 (get_shift_alg): Likewise.
15158
a36a47ad
GS
151592002-02-12 Graham Stott <grahams@redhat.com>
15160
15161 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15162
0aacc8ed
RK
15163Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15164
15165 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15166 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15167
a02ac966
HPN
151682002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
15169
15170 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15171 non-CONST_INT through default_assemble_integer.
15172 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15173 <case 8>: Abort for CONST_DOUBLE.
15174
d6e06ddc
JDA
151752002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15176
15177 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15178 is specified.
15179 * config/pa/pa-linux.h (LIB_SPEC): Delete.
15180 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15181
515342a8
AH
151822002-02-11 Andrew Haley <aph@cambridge.redhat.com>
15183
15184 * config/stormy16/stormy16.md (zero_extendqihi2): New.
15185
cddd8b72
AO
151862002-02-11 Alexandre Oliva <aoliva@redhat.com>
15187
66df7a98
AO
15188 * regrename.c (regrename_optimize): Don't accept a
15189 part-clobbered register if the replaced register is not part
15190 clobbered.
15191
841404cd
AO
15192 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15193 take padding into account when computing the argument value.
15194
1d1ade42
AO
15195 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15196
cddd8b72
AO
15197 * combine.c (try_combine): Apply substitutions in
15198 CALL_INSN_FUNCTION_USAGE too.
15199
5c665b88
AH
152002002-02-11 Aldy Hernandez <aldyh@redhat.com>
15201
77f6c1eb
RS
15202 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15203 __builtin_altivec_abs*.
15204 (bdesc_abs): New.
5c665b88 15205
77f6c1eb
RS
15206 * config/rs6000/rs6000.h (rs6000_builtins): Add
15207 ALTIVEC_BUILTIN_ABS*.
5c665b88 15208
77f6c1eb
RS
15209 * config/rs6000/altivec.h: Use const char for builtins expecting
15210 literals.
15211 (vec_abs): New versions for C and C++.
15212 (vec_abss): Same.
5c665b88 15213
3494f1b4
KH
152142002-02-10 Kazu Hirata <kazu@hxi.com>
15215
15216 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15217 using Pmode.
15218
72431aef
KH
152192002-02-10 Kazu Hirata <kazu@hxi.com>
15220
15221 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15222 constant definition from h8300.md.
15223 (FRAME_POINTER_REGNUM): Likewise.
15224 * config/h8300/h8300.md (define_constants): Add FP_REG.
15225
87e4ee91
KH
152262002-02-10 Kazu Hirata <kazu@hxi.com>
15227
15228 * config/h8300/h8300.c (print_operand): Remove redundant code.
15229
9c188705
KH
152302002-02-10 Kazu Hirata <kazu@hxi.com>
15231
15232 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15233 * config/h8300/h8300.c (byte_reg): Make it static.
15234
fba78abb
RH
152352002-02-10 Richard Henderson <rth@redhat.com>
15236
15237 PR c/5623
15238 * c-typeck.c (incomplete_type_error): Handle flexible array members.
15239
65739e62
RH
152402002-02-10 Richard Henderson <rth@redhat.com>
15241
15242 PR c++/5624
15243 * tree.c (append_random_chars): Don't abort if main_input_filename
15244 does not exist.
15245
247cb9df
HPN
152462002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
15247
15248 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15249
232bd029
KH
152502002-02-10 Kazu Hirata <kazu@hxi.com>
15251
65739e62 15252 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
15253 (pushhi1): Likewise.
15254
276ef573
JDA
152552002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
15256
15257 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15258 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15259
617e9ee5
DB
152602002-02-09 David O'Brien <obrien@FreeBSD.org>
15261
15262 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15263 remove MASK_VIS.
15264 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
15265
6dfa4005
KH
152662002-02-09 Kazu Hirata <kazu@hxi.com>
15267
15268 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15269 a half of an SImode register on H8/300.
15270
749e7b80
JH
15271Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
15272
15273 * i386.md (movdi_2): Add missing '!'.
15274
ca77d87c
KH
152752002-02-09 Kazu Hirata <kazu@hxi.com>
15276
15277 * config/h8300/h8300.h: Fix formatting. Remove commented-out
15278 definitions.
15279
16c96304
KH
152802002-02-09 Kazu Hirata <kazu@hxi.com>
15281
15282 * config/h8300/h8300.md (length): Correct the distance valid
15283 for the short branch.
15284
a364bc90
KH
152852002-02-09 Kazu Hirata <kazu@hxi.com>
15286
15287 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15288
e4ec2cac
AO
152892002-02-09 Alexandre Oliva <aoliva@redhat.com>
15290
a138247b
AO
15291 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15292 registers in SImode.
15293 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15294 part-clobbered.
15295
2b1fd83f
AO
15296 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15297 patch.
d9b3eb63 15298
fa5322fa
AO
15299 Contribute sh64-elf.
15300 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15301 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15302 (sh_cannot_modify_jumps_p): New function.
15303 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15304 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15305 (sh_ms_bitfield_layout_p): New function.
15306 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
15307 Zack Weinberg <zack@codesourcery.com>
15308 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15309 expand_simple_binop instead of expand_binop.
15310 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
15311 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15312 use of .quad and .uaquad.
15313 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15314 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15315 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15316 * config/sh/sh.md (movdi_const, movdi_const_32bit,
15317 movdi_const_16bit): Make sure all CONSTs have modes.
15318 (sym2PIC): Ditto, but by adjusting all callers.
15319 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15320 if the prologue calls the SHmedia argument decoder or register
15321 saver.
15322 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15323 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15324 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15325 (sh_expand_epilogue): Don't emit USE of return target register.
15326 (prepare_move_operands): Legitimize DImode PIC addresses.
15327 (sh_media_register_for_return): Skip tr0, used to initialize the
15328 PIC register.
15329 (sh_expand_prologue): Remove explicit USE of return register.
15330 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
15331 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
15332 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15333 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15334 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15335 EXTRA_CONSTRAINT_T.
15336 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15337 (MOVI_SHORI_BASE_OPERAND_P): New.
15338 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15339 (EXTRA_CONSTRAINT_T): Define in terms of them.
15340 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15341 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15342 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15343 alternatives supporting TARGET_REGS.
15344 (UNSPEC_GOTPLT): New constant.
15345 (movdi split): Move incrementing of LABEL_NUSES...
15346 (movdi_const, movdi_const_32bit): Here. Use
15347 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15348 (movdi_const_16bit): New.
15349 (call, call_value) [flag_pic]: Use GOTPLT.
15350 (call_pop, call_value_pop): New expands.
15351 (call_pop_compact, call_pop_rettramp): New insns.
15352 (call_value_pop_compact, call_value_pop_rettramp): New insns.
15353 (sibcall) [flag_pic]: Use GOT.
15354 (builtint_setjmp_receiver): Remove bogus, unused expand.
15355 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15356 (*pt, *ptb, ptrel): New insns.
15357 (sym2GOT): Handle DImode GOT.
15358 (sym2GOTPLT, symGOTPLT2reg): New expands.
15359 (sym2PIC): New expand.
15360 (shcompact_return_tramp): Use GOTPLT to return trampoline.
15361 (shcompact_return_tramp_i): Use return register explicitly.
15362 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15363 disable flag_reorder_blocks.
15364 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15365 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15366 clobbers, for clarity.
15367 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15368 restoring of r0 in macl as MAYBE_DEAD.
15369 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
15370 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15371 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15372 alter_subreg all over.
15373 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15374 reload, instead of emitting instructions that would require
15375 reloading.
15376 (casesi_load_media): Add missing modes.
15377 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
15378 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15379 as used if the argument decoder is called.
15380 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15381 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15382 Pmode, then extend it to DImode if necessary.
15383 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15384 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15385 constants in FPU-enabled SHmedia, let them be loaded from memory.
15386 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15387 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15388 Adjust whitespace in assembly output templates.
15389 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15390 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15391 mode of if_then_else.
15392 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
15393 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15394 sh.h.
15395 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
15396 Joern Rennecke <amylaar@redhat.com>
15397 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15398 (SUBTARGET_CPP_PTR_SPEC): New.
15399 (SUBTARGET_CPP_SPEC): Remove.
15400 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15401 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15402 Fix typo in previous checkin.
15403 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
15404 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15405 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
15406 Alexandre Oliva <aoliva@redhat.com>
15407 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15408 what single FP register can hold for SHmedia target.
15409 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15410 Alexandre Oliva <aoliva@redhat.com>
15411 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15412 Do not split into SUBREG.
15413 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
15414 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15415 and added new functions as specified in SH5 ABI r9.
15416 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
15417 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15418 8-byte boundary.
15419 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
15420 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15421 gen_consttable_4 and gen_consttable_8. Emit multiple labels
15422 and consttable_window_ends.
15423 2001-06-03 Graham Stott <grahams@redhat,com>
15424 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15425 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
15426 * config/sh/sh.c (print_operand): Handle floating-point pair,
15427 vector and matrix registers.
15428 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15429 vector modes into account.
15430 * config/sh/sh.md (movv2sf): Split move between registers into
15431 movdf.
15432 (movv4sf, movv16sf): Introduce insns that get split only after
15433 reload.
15434 * config/sh/shmedia.h: Fix Copyright dates.
15435 * config/sh/ushmedia.h: Likewise. Move loop counter
15436 declarations into conditionals that uses them.
15437 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15438 loop boundary.
15439 * config/sh/sshmedia.h: Fix Copyright dates.
15440 (sh_media_PUTCFG): Fix constraints.
15441 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
15442 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15443 ptrmemfunc_vbit_in_delta for SH5.
15444 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
15445 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15446 * invoke.texi: Likewise.
15447 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
15448 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15449 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15450 GCC_pop_shmedia_regs_nofpu): New global symbols.
15451 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15452 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15453 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15454 compact function with nonlocal labels.
15455 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15456 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15457 (initial_elimination_offset): Account for their stack space.
15458 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15459 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15460 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15461 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15462 least one of the operands to be a register.
15463 (movv2sf): Likewise. Renamed to movv2sf_i.
15464 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15465 prepare_move_operands() before emitting SHmedia insns.
15466 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
15467 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15468 Don't save nor initialize r12. Don't mis-align the stack.
15469 Pad the code with a nop.
15470 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
15471 stack.
15472 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
15473 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15474 [__SHMEDIA__]: Implement.
15475 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
15476 * config/sh/sh.md: Set latency of `pt' closer to reality.
15477 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15478 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15479 Set move, load and store type attributes.
15480 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15481 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15482 profiling.
15483 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15484 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15485 * config/sh/sh.c (sh_media_register_for_return): New function.
15486 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15487 branch-target register.
15488 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15489 * config/sh/sh.md (return_media_i): Use any call-clobbered
15490 branch-target register.
15491 (return_media): If r18 wasn't copied in the prologue, copy it
15492 here.
15493 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15494 Clear class FP0_REGS.
15495 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15496 from elf.h.
15497 2001-03-08 DJ Delorie <dj@redhat.com>
15498 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15499 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
15500 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15501 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
15502 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15503 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
15504 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15505 return value correctly for call_cookie.
15506 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
15507 * config/sh/crt1.asm (start): Modified so as to call
15508 ___setup_argv_and_call_main.
15509 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
15510 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15511 SHmedia mode.
15512 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
15513 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15514 (STRIP_NAME_ENCODING): Use it.
15515 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
15516 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
15517 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15518 prepare_scc_operands().
15519 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15520 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15521 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
15522 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15523 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
15524 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15525 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15526 used in shcompact_incoming_args.
15527 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15528 change.
15529 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15530 mode.
15531 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15532 Adjust accordingly.
15533 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15534 Simplify. Adjust. Add sanity check.
15535 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15536 FPU_SINGLE_BIT.
15537 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15538 TARGET_SHCOMPACT.
15539 (udivsi3, divsi3): Use them.
15540 (force_mode_for_call): New insn.
15541 (call, call_value, sibcall_value): Emit it before SHcompact
15542 calls.
15543 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
15544 * config/sh/sh.md (call, call_value, sibcall): Make sure the
15545 call cookie is non-NULL before taking its value.
15546 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
15547 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15548 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
15549 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15550 block.
15551 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15552 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15553 temporary for stack adjusts. Use MACL and MACH to pass
15554 arguments to shcompact_incoming_args.
15555 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
15556 clobber r1.
15557 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15558 (nested_trampoline): Load static chain address into r1.
15559 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15560 2001-01-07 Alexandre Oliva <aoliva@redhat.com
15561 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15562 fp_arith_reg_operand().
15563 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
15564 * config/sh/sh.md (casesi): Sign-extend the first two operands,
15565 and use signed compares for them.
15566 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15567 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
15568 ones properly aligned.
15569 (find_barrier): Account for extra alignment needed for 8-byte wide
15570 constants.
15571 (machine_dependent_reorg): Require a label for the second 4-byte
15572 constant after an 8-byte one.
15573 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15574 change.
15575 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15576 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15577 last_float when switching float modes.
15578 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15579 auto-increment for general-purpose registers.
15580 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15581 result.
15582 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15583 for stack adjust.
15584 * config/sh/sh.c (sh_builtin_saveregs): Support using all
15585 registers for varargs.
15586 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
15587 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15588 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15589 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15590 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15591 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
15592 call_cookie accordingly.
15593 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15594 (SHCOMPACT_BYREF): Likewise.
15595 (SHCOMPACT_FORCE_ON_STACK): New macro.
15596 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15597 (sh_builtin_saveregs): Likewise.
15598 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15599 shcompact_incoming_args): Use new shift values. Support
15600 sequences of consecutive and non-consecutive pushes/pops.
15601 * config/sh/sh.md (return): Don't explicitly use PR_REG.
15602 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
15603 * config/sh/sh.h (TEXT_SECTION): Define.
15604 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15605 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15606 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15607 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15608 return values on FPU-enabled SHmedia.
15609 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15610 FPU-enabled SHmedia.
15611 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15612 value is returned in a non-FP reg and is not returned by
15613 reference.
15614 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15615 jump_ind.
15616 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
15617 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15618 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15619 quad-aligned to be passed by callee-copy reference.
15620 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
15621 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15622 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15623 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
15624 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15625 copying low-numbered FP regs to r7 and r8.
15626 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15627 FP regs to general-purpose regs only if the copy was passed on the
15628 stack.
15629 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15630 copying FP reg to r9.
15631 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15632 copy FP regs to general-purpose regs only in outgoing calls.
15633 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 15634 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
15635 HOST_WIDE_INT.
15636 * config/sh/sh.h (struct sh_args): Document all fields.
15637 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15638 passed partially on the stack should not consider making
15639 sibcalls.
15640 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15641 stack_regs only for incoming calls. When passing FP args,
15642 make sure there are FP regs available before modifying
15643 call_cookie.
15644 (SHCOMPACT_BYREF): Pass double args in general-purpose
15645 registers by reference.
15646 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
15647 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15648 attempt to generate sibcalls if the caller got any arguments
15649 by reference.
15650 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15651 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15652 to 8-byte boundaries.
15653 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15654 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15655 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15656 stored in the stack.
15657 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15658 for the offsets to have the ISA bit set.
15659 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
15660 invocation. Use beq instead of bgt to mark end of sequence of
15661 loads.
15662 (shcompact_incoming_args): Fix store of r2. Use beq instead of
15663 bgt to mark end of sequence of stores.
15664 * config/sh/sh.c (arith_operand): Don't check whether
15665 CONST_OK_FOR_J for now.
15666 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15667 instead of long for conversion.
15668 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
15669 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15670 before passing it to fprintf.
15671 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
15672 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15673 Call set_fpscr before reading/writing SR.
15674 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15675 Call set_fpscr.
15676 * config/sh/lib1funcs.asm: Add `.align 2' directives before
15677 SHmedia code.
15678 (FMOVD_WORKS): Define on SH5 with FPU.
15679 (set_fpscr): Define on SH5. Remove separate _fpscr_values
15680 setting.
15681 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15682 _fpscr_values.
15683 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
15684 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15685 address.
15686 (ia_main_table): Ditto.
15687 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
15688 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15689 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15690 the definitions from sh.h.
15691 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15692 TARGET_SH5.
15693 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15694 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15695 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15696 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
15697 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15698 Increment LABEL_NUSES.
d9b3eb63 15699
fa5322fa
AO
15700 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15701 TARGET_SH5.
15702 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15703 defined.
15704 * config/sh/elf.h (SIZE_TYPE): Likewise.
15705 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15706 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15707 shcompact_incoming_args): Load switch table addresses using
15708 datalabel.
15709 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15710 (NO_BUILTIN_SIZE_TYPE): Define.
15711 (SIZE_TYPE): Don't define.
15712 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15713 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15714 definition of __SH5__=32 for -m5-compact-nofpu.
15715 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15716 ADDR_DIFF_VEC.
15717 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
15718 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15719 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
15720 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15721 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15722 (INSN_LENGTH_ALIGNMENT): Likewise.
15723 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15724 * config/sh/sh.md (call, call_value, sibcall): Simplify
15725 copying of non-branch-target register.
15726 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 15727 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
15728 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15729 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15730 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15731 floating-point values as structs.
15732 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15733 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15734 general-purpose register.
15735 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15736 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15737 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15738 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15739 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15740 (ENCODE_SECTION_INFO): Enclose variables and constants in
15741 DATALABEL unspecs.
15742 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15743 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15744 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15745 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15746 only for LABEL_REFs. For SYMBOL_REFs, prepend
15747 SH_DATALABEL_ENCODING to the symbol name.
15748 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15749 convert_mode().
15750 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15751 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15752 UNSPEC_DATALABEL.
15753 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15754 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15755 (DATALABEL_REF_P): Don't require CONST.
15756 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15757 REL label.
15758 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
15759 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15760 right.
15761 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15762 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15763 Use shallow_copy_rtx and PUT_MODE to change the mode of
15764 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15765 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15766 on SHmedia using GENERAL_REGs.
15767 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15768 bltu_media_i): Fix reversion of conditions.
15769 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15770 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15771 * config/sh/sh.c (output_far_jump): Save r13 in macl.
15772 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
15773 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15774 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
15775 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15776 (GCC_nested_trampoline): Likewise.
15777 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15778 * config/sh/sh.c (gen_datalabel_ref): Define.
15779 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15780 (INITIALIZE_TRAMPOLINE): Likewise.
15781 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15782 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15783 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15784 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15785 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15786 (ic_invalidate): Adjust for SH5.
15787 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15788 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15789 _nested_trampoline.
15790 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15791 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15792 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15793 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15794 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15795 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15796 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15797 * config/sh/sh.c (target_reg_operand): Match only target-branch
15798 registers and pseudos that aren't virtual registers.
15799 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15800 Copy operands that don't match target_reg_operand to pseudos.
15801 (call_media, call_value_media, sibcall_media): Use
15802 target_reg_operand instead of target_operand.
15803 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 15804 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
15805 * config/sh/sh.c (target_reg_operand): Match hardware registers
15806 other than branch-target registers.
15807 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15808 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15809 (fpscr_values) [SH5 == 32]: Define.
15810 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15811 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15812 Handle function addresses coming in SUBREGs.
15813 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
15814 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15815 shcompact_return_trampoline): Use datalabel where appropriate.
15816 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15817 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15818 general-purpose register to copy one branch-target register to
15819 another.
15820 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15821 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15822 SYMBOL_REFs with VOIDmode.
15823 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15824 bltu_media_i): New insns.
15825 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15826 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15827 (INIT_CUMULATIVE_ARGS): Likewise.
15828 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15829 * machmode.def (V16SFmode): New mode.
15830 * c-common.c (type_for_mode): Support V2SF and V16SF.
15831 * tree.c (build_common_tree_nodes_2): Likewise.
15832 * tree.h (tree_index): Likewise.
15833 * calls.c (emit_call_1): Take args_so_far. Adjust all
15834 callers. Introduce CALL_POPS_ARGS.
15835 * tm.texi (CALL_POPS_ARGS): Document.
15836 * config/sh/crt1.asm: Implement in SHmedia mode.
15837 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15838 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15839 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15840 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15841 Implement divsi and udivsi in SHmedia mode. Introduce
15842 SHcompact trampolines.
15843 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15844 only in SHmedia64.
15845 (regno_reg_class): Rewrite.
15846 (fp_reg_names): Remove.
15847 (sh_register_names, sh_additional_register_names): New.
15848 (print_operand): Added `u'. Support SUBREGs in addresses.
15849 Add parentheses around shifted CONSTs.
15850 (output_file_start): Output .mode and .abi directives.
15851 (shiftcosts, addsubcosts, multcosts): Adjust.
15852 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15853 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15854 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15855 bytes, not registers. Take into account the need for the
15856 SHcompact incoming args trampoline. Adjust all callers.
15857 (sh_expand_prologue): Take stack_regs into account. Call
15858 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15859 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15860 stack aligned as per SH5 ABI.
15861 (sh_builtin_saveregs): Support SH5 ABI.
15862 (sh_build_va_list, sh_va_start): Likewise.
15863 (initial_elimination_offset): Take alignment into account.
15864 Compute location of PR according to the SH5 stack frame.
15865 (arith_reg_operand): Reject branch-target registers.
15866 (shmedia_6bit_operand): New.
15867 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15868 (target_reg_operand): Match DImode only. Accept SUBREGs.
15869 (target_operand): New.
15870 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15871 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15872 SIBCALL_REGS for SHmedia.
15873 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15874 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15875 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15876 (TARGET_SWITCHES): New SH5 flags.
15877 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15878 VALID_REGISTER_P to disable unsupported registers.
15879 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15880 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15881 (FUNCTION_ARG_PADDING): Define.
15882 (FASTEST_ALIGNMENT): Adjust.
15883 (SH_REGISTER_NAMES_INITIALIZER): New.
15884 (sh_register_names): Declare.
15885 (DEBUG_REGISTER_NAMES): Define.
15886 (REGISTER_NAMES): Define based on sh_register_names.
15887 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15888 (sh_additional_register_names): Declare.
15889 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15890 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15891 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15892 (REGISTER_NATURAL_MODE): Define.
15893 (FIRST_PSEUDO_REGISTER): Adjust.
15894 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15895 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15896 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15897 (VECTOR_MODE_SUPPORTED_P): Define.
15898 (REG_CLASS_CONTENTS): Adjust.
15899 (SMALL_REGISTER_CLASSES): Adjust.
15900 (REG_ALLOC_ORDER): Adjust.
15901 (INDEX_REG_CLASS): Adjust.
15902 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15903 (CONST_OK_FOR_LETTER_P): Adjust.
15904 (PREFERRED_RELOAD_CLASS): Adjust.
15905 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15906 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15907 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15908 (FIRST_FP_PARM_REG): Adjust.
15909 (CALL_POPS_ARGS): Define.
15910 (FUNCTION_ARG_REGNO_P): Adjust.
15911 (struct sh_args): New fields.
15912 (GET_SH_ARG_CLASS): Adjust.
15913 (INIT_CUMULATIVE_ARGS): Adjust.
15914 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15915 (FUNCTION_ARG_ADVANCE): Adjust.
15916 (FUNCTION_ARG): Adjust.
15917 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15918 (FUNCTION_ARG_CALLEE_COPIES): Define.
15919 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15920 (STRICT_ARGUMENT_NAMING): Define.
15921 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15922 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15923 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15924 (SETUP_INCOMING_VARARGS): Adjust.
15925 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15926 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15927 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15928 (SUBREG_OK_FOR_INDEX_P): Adjust.
15929 (EXTRA_CONSTRAINT_S): Update.
15930 (EXTRA_CONSTRAINT_T): New.
15931 (EXTRA_CONSTRAINT): Adjust.
15932 (GO_IF_LEGITIMATE_INDEX): Adjust.
15933 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15934 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15935 (MOVE_MAX): Adjust.
15936 (MAX_MOVE_MAX): Define.
15937 (Pmode): Adjust.
15938 (CONST_COSTS): Adjust.
15939 (REGISTER_MOVE_COST): Adjust.
15940 (BRANCH_COST): Adjust.
15941 (TEXT_SECTION_ASM_OP): Adjust.
15942 (DBX_REGISTER_NUMBER): Adjust.
15943 (ASM_OUTPUT_DOUBLE_INT): New.
15944 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15945 (PREDICATE_CODES): Adjust.
15946 (PROMOTE_MODE): Adjust.
15947 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15948 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15949 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15950 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15951 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15952 (TR0_REG, TR1_REG, TR2_REG): New.
15953 (XD0_REG): Renumber.
15954 (UNSPEC_COMPACT_ARGS): New.
15955 (type): Added pt and ptabs.
15956 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 15957 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
15958 (pt): New function unit.
15959 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15960 Add whitespace between operands of SHmedia instructions.
15961 (movdicc): Fix.
15962 (adddi3_media, addsi3_media): Adjust constraints.
15963 (subsi3) [SHmedia]: Force operand 1 into a register.
15964 (udivsi3_i1_media, udivsi3_i4_media): New.
15965 (udivsi3): Support SHmedia.
15966 (divsi3_i1_media, divsi3_i4_media): New.
15967 (divsi3): Support SHmedia.
15968 (anddi3, iordi3, xordi3): Adjust constraints.
15969 (zero_extendhidi2, zero_extendqidi2): New.
15970 (extendsidi2, extendhidi2, extendqidi2): New.
15971 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15972 (pop_e, pop_fpul, pop_4): Likewise.
15973 (movsi_media): Support FP and BT registers.
15974 (movsi_media_nofpu): New. Adjust splits to DImode.
15975 (lduw, ldub): Renamed to zero_extend* above.
15976 (movqi_media): Fix typo.
15977 (movdi_media): Support FP and BT registers.
15978 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15979 (movdi_const_32bit): New.
15980 (shori_media): Require immediate operand. Use `u' for output.
15981 (movdf_media, movsf_media): Simplified.
15982 (movdf_media_nofpu, movsf_media_nofpu): New.
15983 (movdf, movsf): Adjust
15984 (movv2sf, movv2sf, movv16sf): New.
15985 (beq_media, beq_media_i): Adjust constraints. Don't use
15986 scratch BT register.
15987 (bne_media, bne_media_i): Likewise.
15988 (bgt_media, bgt_media_i): Likewise.
15989 (bge_media, bge_media_i): Likewise.
15990 (bgtu_media, bgtu_media_i): Likewise.
15991 (bgeu_media, bgeu_media_i): Likewise.
15992 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15993 bunordered): Emit jump insn. Force operands to registers when
15994 needed.
15995 (jump_media, jump): Simplify.
15996 (call_compact, call_compact_rettramp): New.
15997 (call_value_compact, call_value_compact_rettramp): New.
15998 (call_media, call_value_media): Simplify.
15999 (sibcall_compact, sibcall_media): New.
16000 (call, call_value): Adjust for SHmedia and SHcompact.
16001 (sibcall, sibcall_value, untyped_call): Likewise.
16002 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16003 (indirect_jump): Adjust for SHmedia.
16004 (casesi_jump_media): New.
16005 (nop): Re-enable for SHmedia.
16006 (call_site): Restrict to SH1.
16007 (casesi): Adjust for SHmedia.
16008 (casesi_shift_media, casesi_load_media): New.
16009 (return): Explicitly use PR register. Call return trampoline
16010 on SHcompact.
16011 (return_i): Explicitly use PR register.
16012 (shcompact_return_tramp, shcompact_return_tramp_i): New.
16013 (return_media): Adjust.
16014 (shcompact_incoming_args): New.
16015 (epilogue): Adjust.
16016 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16017 (movstrsi): Disable on SH5.
16018 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16019 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16020 (subsf3, subsf3_media): Likewise.
16021 (mulsf3, mulsf3_media, mac_media): Likewise.
16022 (divsf3, divsf3_media): Likewise.
16023 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
16024 (floatsisf2, fux_truncsfsi2): Likewise.
16025 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
16026 constraints.
16027 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16028 (cmpunsf_media, cmpsf): Likewise.
16029 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16030 (abssf2, abssf2_media): Likewise.
16031 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16032 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16033 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
16034 (floatsidf2, fix_truncdfsi2): Likewise.
16035 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
16036 constraints.
16037 (cmpeqdf_media, cmpgtdf_media): Likewise.
16038 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16039 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16040 (absdf2, absdf2_media): Likewise.
16041 (extendsfdf2, extendsfdf2_media): Likewise.
16042 (truncsfdf2, truncsfdf2_media): Likewise.
16043 * config/sh/sh64.h: New file.
16044 * config/sh/t-sh64: New file.
16045 * config/sh/shmedia.h: New file.
16046 * config/sh/ushmedia.h: New file.
16047 * config/sh/sshmedia.h: New file.
16048 * configure.in: Added sh64-*-elf.
16049 * configure: Rebuilt.
16050 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
16051 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16052 (reg_class_from_letter): Use `b' for TARGET_REGS.
16053 (print_operand): Support `%M', `%m', `AND' and
16054 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
16055 (andcosts): Adjust for SHmedia.
16056 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16057 Likewise.
16058 (target_reg_operand): New function.
16059 * config/sh/sh-protos.h (target_reg_operand): Declare.
16060 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16061 FP registers on SH5.
16062 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16063 on SH4.
16064 (TARGET_REGISTER_P): New macro.
16065 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16066 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16067 (EXTRA_CONSTRAINT_S): New macro.
16068 (EXTRA_CONSTRAINT): Adjust.
16069 (FLOAT_TYPE_SIZE): Define to 32.
16070 (Pmode): DImode on SHmedia.
16071 (CONST_COSTS): Adjust for SHmedia literals.
16072 (PREDICATE_CODES): Added target_reg_operand.
16073 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16074 * config/sh/sh.md: Remove all attrs from SHmedia insns.
16075 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16076 (cmpdi): Accept SHmedia.
16077 (movdicc_false, movdicc_true): New insns.
16078 (movdicc): New expand.
16079 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16080 no_new_pseudos.
16081 (addsi3_media): Match `S' constraint.
16082 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16083 (negdi2): Expand for SHmedia.
16084 (one_cmpldi2): New expand.
16085 (zero_extendsidi2): Change from expand to insn.
16086 (extendsidi2): Add constraints.
16087 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
16088 LD/ST address. Fix SI immediate loading split.
16089 (movhi_media, movqi_media, lduw, ldub): New insns.
16090 (movhi, movqi): Accept SHmedia.
16091 (shori_media, movdi_media): Relax input constraints. Split
16092 symbolic constants.
16093 (movdf_media, movsf_media): New insn. New split to movdi.
16094 (movdf, movsf): Match on SHmedia.
16095 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16096 bgeu_media): New insns and splits. New insns with `_i' suffix.
16097 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16098 (bunordered): New expand.
16099 (jump_compact): Renamed from `jump'.
16100 (jump_media): New insn.
16101 (jump): New expand.
16102 (call_media, call_value_media): New insns.
16103 (call, call_value): Adjust.
16104 (indirect_jump_compact): Renamed from `indirect_jump'.
16105 (indirect_jump_media): New insn.
16106 (indirect_jump): New expand.
16107 (untyped_call, return): Accept SHmedia.
16108 (return_media): New insn.
16109 (prologue, epilogue, blockage): Accept SHmedia.
16110 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16111 (sunordered): New expand.
16112 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16113 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16114 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16115 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16116 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16117 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16118 abssf2_media): New insns.
16119 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16120 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16121 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16122 floatdidf2, floatsidf2_media, fix_truncdfdi2,
16123 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16124 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16125 absdf2_media): New insns.
16126 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16127 (extendsfdf2_media, truncdfsf2_media): New insns.
16128 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
16129 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16130 * config/sh/sh.h (CONST_OK_FOR_J): Document.
16131 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16132 * config/sh/sh.md (adddi3): New expand.
16133 (adddi3_media, adddi3z_media): New insns.
16134 (adddi3_compact): Renamed from adddi3.
16135 (addsi3_media): Use add.l r63 to add constant zero.
16136 (subdi3): New expand.
16137 (subdi3_media): New insn.
16138 (subdi3_compact): Renamed from subdi3.
16139 (mulsidi3): New expand.
16140 (mulsidi3_media): New insn.
16141 (mulsidi3_compact): Renamed from mulsidi3.
16142 (umulsidi3): New expand.
16143 (umulsidi3_media): New insn.
16144 (umulsidi3_compact): Renamed from umulsidi3.
16145 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16146 (ashlsi3, ashrsi3, lshrsi3): Use them.
16147 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16148 (ashldi3, ashrdi3, lshrdi3): Use them.
16149 (zero_extendsidi2): New expand.
16150 (extendsidi2): New insn.
16151 (movsi_media): New insn. Split to movdi to load constants.
16152 (movsi): Enable for shmedia.
16153 (movdi_media): New insn. Use shori_media to load wide constants.
16154 (short_media): New insn.
16155 (movdi): Enable for shmedia.
16156 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
16157 * config/sh/sh.h (CPP_SPEC): Added `m5'.
16158 (SUBTARGET_CPP_SPEC): Added `!m5'.
16159 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16160 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
16161 to all other SH variants.
16162 (TARGET_DEFAULT): Set to SH1_BIT.
16163 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16164 (BITS_PER_WORD): Raise to 64 on shmedia.
16165 (MAX_BITS_PER_WORD): Change to 64.
16166 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16167 (INT_TYPE_SIZE): Keep as 32.
16168 (UNITS_PER_WORD): Raise to 8 on shmedia.
16169 (MIN_UNITS_PER_WORD): Keep as 4.
16170 (POINTER_SIZE): Raise to 64 on shmedia.
16171 (CONST_OK_FOR_J): New macro.
16172 (CONST_OK_FOR_LETTER_P): Use it.
16173 (processor_type): Add PROCESSOR_SH5.
16174 * config/sh/sh.md: Conditionalize all expands, insns and
16175 splits to TARGET_SH1.
16176 (cpu): Added sh5.
16177 (addsi3_compact): Renamed from...
16178 (addsi3): Now an expand.
16179 (addsi3_media, subsi3_media): New insns.
16180 (subsi3): Don't negate constants with SHmedia.
16181
e4ec2cac
AO
16182 * hooks.c: New file.
16183 * hooks.h: New file.
16184 * Makefile.in (HOOKS_H): New.
16185 (TARGET_DEF_H): Added $(HOOKS_H).
16186 (OBJS): Added hooks.o.
16187 (cfgcleanup.o, bb-reorder.o): Added target.h.
16188 (hooks.o): Added dependencies.
16189 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16190 (TARGET_INITIALIZER): this.
16191 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16192 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16193 * bb-reorder.c: Include target.h.
16194 (reorder_basic_blocks): Skip if cannot modify jumps.
16195 * cfgcleanup.c: Include target.h.
16196 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16197
246a46e0
CD
161982002-02-08 Chris Demetriou <cgd@broadcom.com>
16199
831c4e87
KC
16200 * config/mips/mips.md (casesi_internal, casesi_internal_di):
16201 Protect jump delay slot instructions with .set noreorder and
16202 .set nomacro.
246a46e0
CD
16203
162042002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
16205
16206 * config/mips/mips.md (casesi_internal_di): Calculate
16207 the index into the target offset table correctly.
16208
fdf473ae
RH
162092002-02-08 Richard Henderson <rth@redhat.com>
16210
16211 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16212 * final.c (output_addr_const): Accept and discard SUBREG.
16213 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16214 mark them unknown instead.
16215 (simplify_subtraction): Handle RTX_UNKNOWN.
16216 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16217
c50503ac
DE
162182002-02-08 David Edelsohn <edelsohn@gnu.org>
16219
16220 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16221
3660d217
RH
162222002-02-08 Richard Henderson <rth@redhat.com>
16223
16224 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16225
56547299
AJ
162262002-02-08 Andreas Jaeger <aj@suse.de>
16227
16228 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16229 * config/i386/t-linux64: New file.
16230
1cf537c5
JJ
162312002-02-08 Jakub Jelinek <jakub@redhat.com>
16232
16233 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16234 * c-parse.in (compstmt): Clear last_expr_type.
16235
5c7f5a5f
RH
162362002-02-07 Richard Henderson <rth@redhat.com>
16237
16238 * loop.c (strength_reduce): Sink final_value when not
16239 eliminating a biv.
16240
b1138bf3
DB
162412002-02-07 David O'Brien <obrien@FreeBSD.org>
16242
16243 * config/sparc/freebsd.h: Fix mismatched spec {.
16244
b6878a45
RH
162452002-02-07 Richard Henderson <rth@redhat.com>
16246
16247 * cfgrtl.c: Include recog.h and insn-config.h.
16248 (keep_with_call_p): Fix general_operand invocation.
16249 * Makefile.in (cfgrtl.o): Update dependencies.
16250
ae19f5ef
KH
162512002-02-07 Kazu Hirata <kazu@hxi.com>
16252
16253 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16254 comment. Accept HImode only if TARGET_H8300.
16255
b137f9fc
EC
162562002-02-07 Eric Christopher <echristo@redhat.com>
16257
16258 * config/mips/crtn.asm: Cleanup #ifdefs.
16259
162602002-02-07 Eric Christopher <echristo@redhat.com>
16261
16262 * config/mips/crti.asm: Add changes for mips16. mips16 uses
16263 register 7 as RA instead of $31.
16264 * config/mips/crtn.asm: Ditto.
16265 * config/mips/mips.c (mips_move_2words): Add case for
16266 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16267 (compute_frame_size): Fix typo.
16268 (save_restore_insns): Ditto. Make documentation about using
16269 register $7 as return register more precise.
16270 (mips_expand_epilogue): Fix comment. Add code to work around not
16271 being able to add to the stack pointer directly.
16272 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16273 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16274 epilogue.
16275
768070a0
TR
162762002-02-07 Tom Rix <trix@redhat.com>
16277
b137f9fc 16278 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
16279 immediates in ldu and stdu DS opcode field.
16280 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16281 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16282 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16283
225909c3
JS
162842002-02-07 Jeff Sturm <jsturm@one-point.com>
16285
16286 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16287 offset for stack bias.
16288
15fae023
L
162892002-02-07 H.J. Lu <hjl@gnu.org>
16290
16291 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16292
fde5badd
UW
162932002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
16294
16295 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16296
162f023b
JH
16297Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
16298
16299 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16300 * i386.c (x86_order_regs_for_local_alloc): New global function.
16301 * i386.h (REG_ALLOC_ORDER): CLeanup.
16302 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16303
9b462c42
RH
163042002-02-07 Richard Henderson <rth@redhat.com>
16305
85aa876c 16306 PR optimization/2463
9b462c42
RH
16307 * alias.c (find_base_value): Recall base values for fixed hard regs.
16308 * loop.c (loop_regs_update): Don't use single_set on non-insns.
16309
06e455a9
AO
163102002-02-07 Alexandre Oliva <aoliva@redhat.com>
16311
16312 * config/mips/mips.md (define_delay) [mips16]: Adjust required
16313 length.
16314
edd1967d
RH
163152002-02-06 Richard Henderson <rth@redhat.com>
16316
16317 PR c/5609
16318 * stmt.c (resolve_operand_name_1): Take more care with mixed
16319 named and unnamed operands.
16320
a2cd028f
JJ
163212002-02-06 Janis Johnson <janis187@us.ibm.com>
16322 Jan Hubicka <jh@suse.cz>
16323
16324 * loop.c (remove_constant_addition): Avoid clobbering a shared
16325 CONST expression.
16326
e8487c04
UW
163272002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16328
16329 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16330 * config/s390/t-linux64: New file.
16331 * config/s390/libgcc-glibc.ver: New file.
16332
58d10f89
UW
163332002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16334
16335 * config/s390/linux64.h: Delete file.
16336 * config/s390/s390x.h: New file.
16337 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16338 as target header file.
16339 * config/s390/linux.h (TARGET_VERSION): Define depending on
16340 DEFAULT_TARGET_64BIT.
16341 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16342 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16343 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16344 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16345 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16346 (EXTRA_SPEC): New define.
16347 * config/s390/s390.h (TARGET_VERSION): Define depending on
16348 DEFAULT_TARGET_64BIT.
16349 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16350
5ce89b2e
JM
163512002-02-06 Jason Merrill <jason@redhat.com>
16352
16353 * c-decl.c (finish_function): Warn about a non-void function with
16354 no return statement and no abnormal exit.
16355 (current_function_returns_abnormally): New variable.
16356 (start_function): Clear it.
16357 (struct c_language_function): Add returns_abnormally.
16358 (push_c_function_context): Save it.
16359 (pop_c_function_context): Restore it.
16360 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16361 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16362 an explicit return type.
16363 * c-tree.h: Declare current_function_returns_abnormally.
16364 (C_FUNCTION_IMPLICIT_INT): New macro.
16365 * c-typeck.c (build_function_call): Set it.
16366 (c_expand_return): Set current_function_returns_value even if the
16367 value is erroneous.
16368
caaf2272
JJ
163692002-02-06 Jakub Jelinek <jakub@redhat.com>
16370
16371 PR c/5420:
16372 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16373 unsafe for reevaluation.
16374
d5129288
JJ
163752002-02-06 Jakub Jelinek <jakub@redhat.com>
16376
16377 PR c/5482:
16378 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16379 EXPR_STMT, but COMPOUND_STMT, recurse into it.
16380
7fb75099
RH
163812002-02-06 Richard Henderson <rth@redhat.com>
16382
16383 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16384 be a general_operand. Dest for function value must be a pseudo.
16385
d3a8b6a6
NC
163862002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
16387
16388 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16389 as SYMBOL_REFs from the constant pool.
16390
3c1299c5
AO
163912002-02-06 Alexandre Oliva <aoliva@redhat.com>
16392
16393 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16394 passed by invisible reference.
16395
c2c9f6c9
RH
163962002-02-05 Richard Henderson <rth@redhat.com>
16397
16398 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16399
a824924d
HPN
164002002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
16401
16402 Implement using "base addresses" in insn operands as default.
16403 * config/mmix/mmix.c (mmix_conditional_register_usage): if
16404 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16405 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16406 used to read the rtx value.
16407 (mmix_target_asm_function_epilogue): Fix spacing.
16408 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16409 (mmix_legitimate_address): Ditto.
16410 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16411 should be loaded with a GETA insn. Don't allocate needless extra
16412 char for nul termination and fix misleading comment.
16413 (mmix_print_operand_address): Handle constants if
16414 TARGET_BASE_ADDRESSES.
16415 (mmix_output_register_setting): Use base addressing if
16416 TARGET_BASE_ADDRESSES and the number of insns is 3.
16417 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16418 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16419 to use R as constraint, add LDA to match s.
16420 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16421 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16422 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16423 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16424 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16425 order with other fixed registers.
16426 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16427 other parameter/call-clobbered registers.
16428 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16429 -mbase-addresses, -mno-base-addresses.
16430 (MMIX Options): Ditto.
16431
73c342b9
JDA
164322002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16433
16434 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16435
ef238c58
AH
164362002-02-06 Aldy Hernandez <aldyh@redhat.com>
16437
831c4e87 16438 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 16439
ad08e60e
JT
164402002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16441
16442 * config/netbsd.h (WCHAR_TYPE): Define.
16443 (WCHAR_TYPE_SIZE): Ditto.
16444 (WINT_TYPE): Ditto.
16445 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16446 (WCHAR_UNSIGNED): Ditto.
16447 (WCHAR_TYPE_SIZE): Ditto.
16448 (WINT_TYPE): Ditto.
16449 * config/arm/netbsd.h: Likewise.
16450 * config/i386/netbsd-elf.h: Likewise.
16451 * config/i386/netbsd.h: Likewise.
16452 * config/m68k/netbsd-elf.h: Likewise.
16453 * config/m68k/netbsd.h: Likewise.
16454 * config/ns32k/netbsd.h: Likewise.
16455 * config/sparc/netbsd.h: Likewise.
16456 * config/vax/netbsd.: Likewise.
16457
f913c102
AO
164582002-02-05 Alexandre Oliva <aoliva@redhat.com>
16459
16460 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16461 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
16462 (TARGET_INITIALIZER): this.
16463 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16464 (BITFIELD_NBYTES_LIMITED): Markup fix.
16465 * tree.h (default_ms_bitfield_layout_p): Declare.
16466 (record_layout_info): Added prev_field.
16467 * tree.c (default_ms_bitfield_layout_p): New fn.
16468 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16469 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16470 * stor-layout.c: Include target.h.
16471 (start_record_layout): Initialize prev_field.
16472 (place_field): Handle MS bit-field layout, and disregard
16473 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16474 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
16475 * Makefile.in (stor-layout.o): Adjust dependencies.
16476
c13db5d1
JM
164772002-02-05 Jason Merrill <jason@redhat.com>
16478
c13db5d1
JM
16479 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16480
4505024e
AJ
164812002-02-05 Andreas Jaeger <aj@suse.de>
16482
16483 * crtstuff.c: Fix comments.
16484
794ad79d
RH
164852002-02-05 Richard Henderson <rth@redhat.com>
16486
2e279a9b
RH
16487 PR fortran/3393
16488 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16489 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16490
794ad79d
RH
16491 PR fortran/3392
16492 * config/mips/mips.c (function_arg): Handle TImode.
16493 (function_arg_advance): Likewise.
16494
8f909017
AH
164952002-02-05 Aldy Hernandez <aldyh@redhat.com>
16496
c13db5d1
JM
16497 * config/rs6000/altivec.h (vec_step_help): Rename to
16498 __vec_step_help.
8f909017 16499
66daa9e3
AH
165002002-02-05 Aldy Hernandez <aldyh@redhat.com>
16501
c13db5d1 16502 * config/rs6000/altivec.h: Fix typos.
66daa9e3 16503
2696e97b
JT
165042002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16505
16506 * config/arm/netbsd.h: Correct a comment.
16507
3deb2758
AH
165082002-02-05 Aldy Hernandez <aldyh@redhat.com>
16509
c13db5d1
JM
16510 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16511 building void typed builtins.
3deb2758 16512
c13db5d1
JM
16513 * config/rs6000/altivec.h (vec_ld*): Fix typos.
16514 (vec_step): Implement for C++.
3deb2758 16515
c13db5d1 16516Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
16517
16518 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16519
ebbb0a63
RH
165202002-02-04 Richard Henderson <rth@redhat.com>
16521
16522 * combine.c (nonzero_bits): Re-introduce special case for
16523 sp/fp/ap wrt REGNO_POINTER_ALIGN.
16524
ae4b4a02
AH
165252002-02-05 Aldy Hernandez <aldyh@redhat.com>
16526
c13db5d1
JM
16527 * doc/extend.texi: Warn about unsupported usage of altivec
16528 builtins.
ae4b4a02 16529
c13db5d1
JM
16530 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16531 (altivec_predicate_*): New.
ae4b4a02 16532
c13db5d1
JM
16533 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16534 Add C++ version of vec_*() functions.
ae4b4a02 16535
c13db5d1
JM
16536 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16537 (bdesc_2arg): Remove altivec predicates.
16538 (altivec_expand_builtin): Handle predicates.
16539 (altivec_init_builtins): Handle predicates.
16540 (altivec_expand_predicate_builtin): New.
ae4b4a02 16541
f6bcf44c
JDA
165422002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16543
16544 * pa.c (DO_FRAME_NOTES): Move forward.
16545 (store_reg): Revise handling of frame notes.
16546 (load_reg): Likewise.
16547 (set_reg_plus_d): Likewise.
16548 (hppa_expand_prologue): Likewise.
16549 (hppa_expand_epilogue): Likewise.
b137f9fc 16550
703b0080
JDA
165512002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16552
16553 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16554
6f9fdf4d
JJ
165552002-02-04 Jakub Jelinek <jakub@redhat.com>
16556
16557 PR c/4475, c++/3780:
16558 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16559 * c-common.h (SWITCH_TYPE): Define.
16560 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16561 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16562 Rename spareness variable to sparseness.
16563 (expand_end_case_type): Renamed from expand_end_case, use orig_type
16564 if non-NULL instead of TREE_TYPE (orig_index).
16565 * tree.h (expand_end_case_type): Renamed from expand_end_case.
16566 (expand_end_case): Define using expand_end_case_type.
16567 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16568 to expand_end_case_type.
16569 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16570
79109502
JDA
165712002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16572
16573 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16574 (BIGGEST_ALIGNMENT): Change to 128.
16575
e62a5987
JDA
165762002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16577
16578 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16579
219f24a4
JDA
165802002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16581
16582 * pa.md (call_internal_reg_64bit): Remove unused variable.
16583
3cb66fd7
NC
165842002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
16585
16586 * config/arm/arm.h (machine_function): Add uses_anonymous_args
16587 field.
831c4e87 16588 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 16589 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
16590 replace uses with cfun->machine->uses_anonymous_args.
16591 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
16592
16593 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16594 any geenral register.
b137f9fc 16595
5d5603e2 165962001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
16597
16598 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16599 the entry block.
16600
563c12b0
RH
166012002-02-04 Richard Henderson <rth@redhat.com>
16602
16603 * combine.c (force_to_mode): Remove STACK_BIAS code.
16604 (nonzero_bits): Likewise. Replace sp/fp special case with
16605 REGNO_POINTER_ALIGN.
16606
16607 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16608 (HARD_FRAME_POINTER_REGNUM): New.
16609 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16610 (FIXED_REGS, CALL_USED_REGS): Update.
16611 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16612 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16613 (HARD_REGNO_NREGS): Update for SFP.
16614 (STACK_POINTER_OFFSET): Include bias here ...
16615 (FIRST_PARM_OFFSET): ... not here.
16616 (STACK_BIAS): Remove.
16617 (INIT_EXPANDERS): New.
16618 (STARTING_FRAME_OFFSET): Do not include bias.
16619 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16620 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16621 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16622 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16623 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16624 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16625 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16626 (MUST_SAVE_REGISTER): Likewise.
16627 (sparc_flat_function_prologue): Likewise.
16628 (sparc_flat_function_epilogue): Likewise.
16629 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16630 (sparc_init_modes): SFP is GENERAL_REGS.
16631 (sparc_builtin_saveregs): SFP does not have bias applied.
16632
14691f8d
RH
166332002-02-04 Richard Henderson <rth@redhat.com>
16634
16635 * config/alpha/alpha.c (current_function_is_thunk): Don't check
16636 current_function_is_thunk.
16637 (alpha_sa_mask): Distinguish between current_function_is_thunk
16638 called from ASM_OUTPUT_MI_THUNK and not.
16639 (alpha_does_function_need_gp): Thunks always need gp.
16640 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16641 (alpha_output_mi_thunk_osf): New.
16642 * config/alpha/alpha-protos.h: Update.
16643 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16644
af702de8
RS
166452002-02-04 Richard Sandiford <rsandifo@redhat.com>
16646
16647 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16648 function types, not when they're taken away.
16649
5b1cacd8
JL
16650Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
16651
16652 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16653 CODE_LABEL and jump table when replacing a table jump with a
16654 simple jump.
16655
f3e9edff
UW
166562002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16657
16658 * config/s390/s390-protos.h (legitimize_la_operand,
16659 s390_secondary_input_reload_class, s390_plus_operand,
16660 s390_expand_plus_operand): Add prototypes.
16661
16662 config/s390/s390.c (s390_secondary_input_reload_class,
16663 s390_plus_operand, s390_expand_plus_operand): New functions.
16664
16665 (struct s390_address): New member 'pointer'.
16666 (s390_decompose_address): Compute it.
16667 (legitimate_la_operand_p): Use it.
16668 (legitimize_la_operand): New function.
16669 (movti, movdi, movdf splitters): Call it.
16670
16671 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16672 (PREDICATE_CODES): Add s390_plus_operand.
16673
16674 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16675 (la_ccclobber): Allow GENERAL_REGS as output operand.
16676
16677 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16678 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16679 (*la_64, *la_31, reload_indi, reload_insi): ... these.
16680
3c9a08ec
UW
166812002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16682
16683 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16684 register names for regular asm () construct.
16685
ac300a45
JJ
166862002-02-04 Jakub Jelinek <jakub@redhat.com>
16687
16688 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16689 registers.
16690
fa852403
JJ
166912002-02-04 Jakub Jelinek <jakub@redhat.com>
16692
16693 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16694 pat for recog.
16695
fecaac37
HP
166962002-02-04 Hartmut Penner <hpenner@de.ibm.com>
16697
831c4e87
KC
16698 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16699 constant pool to be identical by string address and index.
fecaac37 16700
10c45943
AG
167012002-02-04 Anthony Green <green@redhat.com>
16702
16703 * output.h (SECTION_OVERRIDE): Define.
16704 * varasm.c (named_section): Obey SECTION_OVERRIDE.
16705
69474c3c
JT
167062002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16707
16708 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16709 by existing arm*-*-netbsd* (a.out) target.
16710 (ns32k-*-netbsdelf*): Likewise.
16711 (sparc-*-netbsdelf*): Likewise.
16712 (vax-*-netbsdelf*): Likewise.
16713
939a46f6 167142002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
16715
16716 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16717 headers and libobjc headers.
16718
167192002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
16720
16721 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16722 (_mingw.h): Remove duplicate include.
16723
2fd95d71
JT
167242002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16725
16726 * config.gcc: Set cpu_type to m68k for 68010, as well.
16727 (m68010-*-netbsdelf*): New...
16728 (m68k*-*-netbsdelf*): ...targets.
16729 * config/m68k/netbsd-elf.h: New file.
16730
0ea6f6a0
KH
167312002-02-02 Kazu Hirata <kazu@hxi.com>
16732
16733 * config/h8300/h8300.c (hand_list): Move inside function_arg.
16734
cbf1b2da
KH
167352002-02-02 Kazu Hirata <kazu@hxi.com>
16736
16737 * config/h8300/h8300.c (h8_push_ops): Move inside
16738 h8300_init_once.
16739 (h8_pop_ops): Likewise.
16740 (h8_move_ops): Likewise.
16741
0869f126
KH
167422002-02-02 Kazu Hirata <kazu@hxi.com>
16743
16744 * config/h8300/h8300.c (os_task): Make it static.
16745 (monitor): Likewise.
16746 (pragma_saveall): Likewise.
16747
90e65b70
AO
167482002-02-02 Alexandre Oliva <aoliva@redhat.com>
16749
16750 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16751 constant is a valid sign-extension for Pmode.
16752
9cbcd983
KH
167532002-02-02 Kazu Hirata <kazu@hxi.com>
16754
16755 * config/h8300/h8300.c: Fix formatting.
16756
7a27efc4
KH
167572002-02-02 Kazu Hirata <kazu@hxi.com>
16758
16759 * config/h8300/h8300.md: Fix formatting.
16760
54175a44
KH
167612002-02-02 Kazu Hirata <kazu@hxi.com>
16762
16763 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16764 predicates of operands[1]. Split the patterns for each
16765 processor variant.
16766
eceb1755
KH
167672002-02-02 Kazu Hirata <kazu@hxi.com>
16768
16769 * config/h8300/h8300.md (xor patterns): Tighten the predicates
16770 of operands[1] to register_operand.
16771
0fef3fd0
NB
167722002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16773
16774 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16775 * cpphash.c (_cpp_init_hashtable): Similarly.
16776 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16777 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16778 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16779 (cpp_handle_option): Handle the new options.
16780 * cpplex.c (cpp_interpret_charconst): Use new flag.
16781 * cpplib.h (struct cpp_options): New member signed_char.
16782 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16783 (cpp_options): Handle -fsigned-char and -funsigned-char.
16784 (static_specs): Remove signed_char_spec.
16785 (do_spec1): Don't handle %c.
16786 * system.h: Poison SIGNED_CHAR_SPEC.
16787 * tradcif.y (yylex): Use flag_signed_char.
16788 * tradcpp.h (flag_signed_char): New.
16789 * tradcpp.c (flag_signed_char): New.
16790 (main): Handle new command-line options.
16791 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16792config:
16793 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16794 * avr/avr.h: Remove old comments.
16795 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16796 (CC1_SPEC): Pass -fsigned-char if -mic*.
16797 (SIGNED_CHAR_SPEC): Remove.
16798doc:
16799 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16800
0617ed52
EC
168012002-02-01 Eric Christopher <echristo@redhat.com>
16802
16803 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16804 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16805 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16806 (ASM_OUTPUT_REG_POP): Ditto.
16807
dfd48d76
NB
168082002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16809
16810 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16811 patch.
16812
4a23409e
JJ
168132002-02-02 Jakub Jelinek <jakub@redhat.com>
16814
16815 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16816
d3c52658
JJ
168172002-02-02 Jakub Jelinek <jakub@redhat.com>
16818
16819 PR c/5304:
16820 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16821 unconditionally.
16822
02c5a3bd
JJ
168232002-02-01 Janis Johnson <janis187@us.ibm.com>
16824
16825 * cfganal.c: Include tm_p.h.
16826 (keep_with_call_p): Fix the test that determines if a register holds
16827 the return value of a call.
16828
3968de80
DD
168292002-02-01 DJ Delorie <dj@redhat.com>
16830
16831 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16832 we are given conflicting registers, switch to the other one we
16833 had allocated for us.
16834 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16835 as TImode so we know when the "other" register is available.
16836
1338ea6c
DB
168372002-02-01 David O'Brien <obrien@FreeBSD.org>
16838
16839 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16840 sparc/sparc_bi.h.
16841
f015be23
JJ
168422002-02-01 Janis Johnson <janis187@us.ibm.com>
16843
16844 * cfganal.c (keep_with_call_p): New function.
16845 (flow_call_edges_add): Prevent splitting a block between a call and
16846 a single-set instruction that should be kept in the same block.
16847
63708ffc
CR
168482002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16849
16850 * doc/install.texi (avr): Update outdated URL.
16851
5ee4950e
AH
168522002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16853
831c4e87
KC
16854 * config/stormy16/stormy16.md (pushqi): New.
16855 (popqi): New.
16856 (pushhi): New.
16857 (pophi): New.
16858 (movhi): Remove stack operands.
16859 (movqi): Likewise.
16860 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16861 nonimmediate_nonstack_operand.
16862 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16863 New.
16864 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16865 New.
5ee4950e 16866
b88c0704
JM
168672002-01-31 Jason Merrill <jason@redhat.com>
16868
16869 * Makefile.in (c-parse.c): Handle .output file.
16870 * objc/Make-lang.in (objc-parse.c): Likewise.
16871
ac282977
AO
168722002-02-01 Alexandre Oliva <aoliva@redhat.com>
16873
16874 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16875 the -me[lb] option is given. Don't output the default flag
16876 twice.
16877
bebc7e8b
ZW
168782002-01-31 Zack Weinberg <zack@codesourcery.com>
16879
16880 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16881 the primary source file; this has not been done yet.
16882 * c-decl.c (c_expand_body): Reset input_filename from
16883 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16884
5809eb5f
KH
168852002-01-31 Kazu Hirata <kazu@hxi.com>
16886
16887 * rtlanal.c (subreg_regno_offset): Do not use
16888 SUBREG_REGNO_OFFSET.
16889 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16890 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16891
8512bbd7
JM
168922002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16893
16894 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16895 version rather than GNATS version in --version output.
16896
74cb3cc8
RS
168972002-01-31 Richard Sandiford <rsandifo@redhat.com>
16898
16899 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16900 when copying back from a temporary.
16901
874b5b14
RH
169022002-01-30 Richard Henderson <rth@redhat.com>
16903
16904 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16905 and new_dest are the same.
16906
e803a64b
RH
169072002-01-30 Richard Henderson <rth@redhat.com>
16908
89cf7be5 16909 PR opt/5076
e803a64b
RH
16910 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16911 * rtl.c (note_insn_name): Update.
16912 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16913 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16914 to perform loop rotation.
16915 (expand_exit_loop_top_cond): New.
16916 * tree.h (expand_exit_loop_top_cond): Declare it.
16917 * c-semantics.c (genrtl_while_stmt): Use it.
16918 (genrtl_for_stmt): Likewise.
16919
0b51254d
AO
169202002-01-30 Alexandre Oliva <aoliva@redhat.com>
16921
16922 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16923 arguments to 64-bit boundaries on 64-bit ABIs.
16924
71cef493
SE
169252002-01-30 Steve Ellcey <sje@cup.hp.com>
16926
16927 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16928
6169e5fd
JM
169292002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16930
16931 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16932 invalid type.
16933
86f808dc
DB
169342002-01-30 David O'Brien <obrien@FreeBSD.org>
16935
16936 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16937 * config/sparc/sparc_bi.h: Remove file.
16938 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16939
5748ebeb
RH
169402002-01-30 Richard Henderson <rth@redhat.com>
16941
16942 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16943
20d32cc2
ZW
169442002-01-30 Zack Weinberg <zack@codesourcery.com>
16945
16946 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16947
b88c0704 169482002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
16949
16950 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16951 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16952 (reg_save): Use DW_CFA_offset_extended_sf instead.
16953
16954 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16955
37060e78
JJ
169562002-01-29 Jakub Jelinek <jakub@redhat.com>
16957
16958 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16959 in cselib_lookup.
16960
d18dba68
AH
169612002-01-29 Aldy Hernandez <aldyh@redhat.com>
16962
bebc7e8b
ZW
16963 * rs6000.md ("*call_value_local32"): Remove constraints.
16964 ("*call_value_local64"): Same.
16965 ("*call_value_indirect_nonlocal_aix32"): Same.
16966 ("*call_value_nonlocal_aix32"): Same.
16967 ("*call_value_indirect_nonlocal_aix64"): Same.
16968 ("*call_value_nonlocal_aix64"): Same.
16969 ("*call_value_nonlocal_sysv"): Same.
d18dba68 16970
80a8aac6
RH
169712002-01-29 Richard Henderson <rth@redhat.com>
16972
16973 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16974
12beba6f
RH
169752002-01-29 Richard Henderson <rth@redhat.com>
16976
16977 * expr.c (force_operand): Ignore flag_pic for detecting pic
16978 address loads.
16979 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16980 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16981 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16982 instead of open-coded loop.
16983 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16984 be fixed when in use.
16985
2583081e
RH
169862002-01-29 Richard Henderson <rth@redhat.com>
16987
16988 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16989 * sched-rgn.c (propagate_deps): Update them.
16990 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16991 clobbers list when either gets too long.
16992
3b8d200e
JJ
169932002-01-29 Jakub Jelinek <jakub@redhat.com>
16994
16995 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16996 and INDEX_REGS the same as GENERAL_REGS.
16997 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16998
2d3115eb
NB
169992002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17000
bebc7e8b 17001 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 17002
ecbe845e
UW
170032002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
17004
bebc7e8b 17005 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 17006 movstrsix_31): Remove, replace by ...
bebc7e8b 17007 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
17008 movstrsi_long): ... these. New.
17009 (movstrdi, movstrsi): Adapt.
17010
17011 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 17012 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
17013 Remove unnecessary CC clobber.
17014 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17015 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17016
17017 (divmoddi4): Don't partially initialize TImode register.
17018
0b32fca5
GK
170192002-01-29 Geoffrey Keating <geoffk@redhat.com>
17020
17021 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17022
08ef5437
RH
170232002-01-29 Richard Henderson <rth@redhat.com>
17024
17025 * flow.c (print_rtl_and_abort): Remove.
17026 (print_rtl_and_abort_fcn): Remove.
17027 (verify_local_live_at_start): Use dump_bb instead.
17028 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17029 (verify_wide_reg_1): Return 2 on mode test failure.
17030
8469e54e
NB
170312002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17032
17033 PR c/3325, c/3326, c/2511, c/3347
17034 * c-decl.c (enum_decl_context): Remove BITFIELD.
17035 (grokdeclarator): Take bitfield width as an input.
17036 Ensure bitfields are given the correct type. Perform
17037 bitfield width validation with build_bitfield_integer_type
17038 rather than waiting for finish_struct.
17039 (grok_typename, grok_typename_in_parm_context, start_decl,
17040 push_parmdecl, grokfield, start_function): Update calls to
17041 grokdeclarator.
17042 (build_bitfield_integer_type): New function.
17043 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 17044 and build_bitfield_integer_type.
8469e54e
NB
17045 * tree.c (build_nonstandard_integer_type): New function.
17046 * tree.h (build_nonstandard_integer_type): New prototype.
17047objc:
17048 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17049
ffdeea47
JJ
170502002-01-29 Jakub Jelinek <jakub@redhat.com>
17051
17052 PR other/1502:
17053 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17054 don't ignore unrecognized -W* options.
17055 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17056 * cpplib.h (cpp_handle_option): Adjust prototype.
17057 * c-decl.c (c_decode_options): Pass 0 as last argument to
17058 cpp_handle_option.
17059
17060 PR c/2896:
17061 * gcc.c (cpp_unique_options): Split from cpp_options.
17062 (cpp_options): Source cpp_unique_options.
17063 (default_compilers): Use cpp_unique_options instead of cpp_options
17064 when used together with cc1_options.
17065 (static_specs): Add cpp_unique_options.
17066 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17067 when used together with cc1_options.
17068
1a275226
KH
170692002-01-29 Kazu Hirata <kazu@hxi.com>
17070
17071 * config/h8300/h8300-protos.h: Update the prototype of
17072 output_a_shift.
17073 * config/h8300/h8300.c (output_a_shift): Remove an unused
17074 argument 'insn'. Remove redundant code.
17075 * config/h8300/h8300.md: Adust to the new prototype of
17076 output_a_shift.
17077
a11d9dfc
KH
170782002-01-29 Kazu Hirata <kazu@hxi.com>
17079
17080 * config/h8300/h8300-protos.h: Update the prototypes of
17081 emit_a_rotate and expand_a_rotate.
17082 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17083 first argument to 'enum rtx_code'.
17084 (expand_a_rotate): Likewise.
17085
871f73e3
KH
170862002-01-28 Kazu Hirata <kazu@hxi.com>
17087
17088 * config/h8300/h8300-protos.h: Update the prototype of
17089 output_simode_bld.
17090 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17091 'log2'.
17092 * config/h8300/h8300.md: Adjust to the new prototype.
17093
5fc4b751
KH
170942002-01-28 Kazu Hirata <kazu@hxi.com>
17095
17096 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17097 redundant code.
17098
2d67bd7b
JDA
170992002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
17100
17101 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17102 is a fixed register before returning pic_offset_table_rtx.
17103 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17104 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17105
5a852b3e
JM
171062002-01-28 Jason Merrill <jason@redhat.com>
17107
6bb28965 17108 * dwarf2.h: Sync with src version.
5a852b3e 17109
3bca17dd
PK
171102002-01-28 Paul Koning <pkoning@equallogic.com>
17111
17112 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17113 BT_FN_VOID_PTR_VAR.
17114 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17115 * doc/extend.texi (__builtin_prefetch): Update documentation:
17116 first argument is now const void ptr.
17117
7dc3f8c0
KH
171182002-01-28 Kazu Hirata <kazu@hxi.com>
17119
17120 * config/h8300/h8300-protos.h: Remove an unused prototype.
17121
e83cb5f0
RZ
171222002-01-28 Roman Zippel <zippel@linux-m68k.org>
17123
17124 * toplev.c (lang_independent_init): Round up identifier size.
17125
5721cd84
RE
171262002-01-28 Richard Earnshaw <rearnsha@arm.com>
17127
17128 * config.gcc: Revert previous change.
17129
d534119e
AP
171302002-01-28 Andris Pavenis <pavenis@latnet.lv>
17131
17132 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17133
5a721dab
RE
171342002-01-28 Richard Earnshaw <rearnsha@arm.com>
17135
17136 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17137 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
17138 other non-elf netbsd config frags.
17139 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17140 collect2 will does that.
17141 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17142 shared-lib frobbing will work.
17143
da1775d6
KH
171442002-01-28 Kazu Hirata <kazu@hxi.com>
17145
17146 * config/h8300/h8300.h: Fix formatting.
17147 * config/h8300/h8300.md: Likewise.
17148
8f2e963b
LR
171492002-01-28 Loren J. Rittle <ljrittle@acm.org>
17150
17151 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17152 the old, removed AAA_standards fix.
17153 * fixinc/fixincl.x: Rebuilt.
17154
fdae5767
HPN
171552002-01-28 Hans-Peter Nilsson <hp@axis.com>
17156
17157 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17158 atexit call in crtbegin, hooked in after call to frame_dummy;
17159 register EH before registering __fini__start.
17160
2a2ecb63
AH
171612002-01-28 Aldy Hernandez <aldyh@redhat.com>
17162
17163 * config/rs6000/altivec.h: Remove spurious semicolons.
17164
8ed43adf
KH
171652002-01-27 Kazu Hirata <kazu@hxi.com>
17166
17167 * config/h8300/h8300.md: Replace dead bit extraction patterns
17168 with ones that work.
17169
917afb0c
RK
17170Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17171
17172 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17173 if not STRICT_ALIGNMENT.
17174 * rtl.h (MEM_ALIGN): Likewise.
17175
f70a54cb
CR
171762002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
17177
17178 * doc/invoke.texi (-fdump-translation-unit): Revert this
17179 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
17180
d8fd4914
KH
171812002-01-27 Kazu Hirata <kazu@hxi.com>
17182
17183 * config/h8300/h8300.md (define_constants): New.
17184 (anonymous patterns) Use defined constants appropriately.
17185
15e0e275
KH
171862002-01-27 Kazu Hirata <kazu@hxi.com>
17187
17188 * config/h8300/h8300.c (function_arg): Remove redundant code.
17189
37a0f8a5
RH
171902002-01-26 Richard Henderson <rth@redhat.com>
17191
17192 * sched-deps.c (reg_pending_uses_head): New.
17193 (reg_pending_barrier): Rename from reg_pending_sets_all.
17194 (find_insn_list): Don't mark inline.
17195 (find_insn_mem_list): Remove.
17196 (add_dependence_list, add_dependence_list_and_free): New.
17197 (flush_pending_lists): Replace only_write param with separate
17198 for_read and for_write parameters. Update all callers. Use
17199 add_dependence_list_and_free.
17200 (sched_analyze_1): Do not add reg dependencies here; just set
17201 the pending bits. Use add_dependence_list.
17202 (sched_analyze_2): Likewise.
17203 (sched_analyze_insn): Replace schedule_barrier_found with
17204 reg_pending_barrier. Add all dependencies for pending reg
17205 uses, sets, and clobbers.
17206 (sched_analyze): Don't add reg dependencies for calls, just
17207 set pending bits. Use regs_invalidated_by_call. Treat
17208 sched_before_next_call as a normal list, not a fake insn.
17209 (init_deps): No funny init for sched_before_next_call.
17210 (free_deps): Free pending mems lists. Don't zero reg_last.
17211 (init_deps_global): Init reg_pending_uses.
17212 (finish_deps_global): Free it.
17213 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
17214 (find_insn_mem_list): Remove.
17215 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17216 (propagate_deps): Use them. Zero temp mem lists.
17217
cea3bd3e
RH
172182002-01-26 Richard Henderson <rth@redhat.com>
17219
17220 * Makefile.in (CRTSTUFF_CFLAGS): New.
17221 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17222 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17223 crtstuff.c instead of alpha assembly version.
17224 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17225 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
17226 not FORCE_{INIT,FINI}_SECTION_ALIGN.
17227 (__do_global_dtors_aux): Mark used.
17228 (frame_dummy, __do_global_ctors_aux): Mark used.
17229 (fini_dummy, init_dummy): Remove.
17230
17231 * config/alpha/crtbegin.asm: Remove file.
17232 * config/alpha/crtend.asm: Remove file.
17233 * config/alpha/t-crtbe: Remove file.
17234 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17235 (LINK_EH_SPEC): New.
17236
17237 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17238 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
17239 calling constructors.
17240 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17241
17242 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17243 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17244 CRT_END_INIT_DUMMY hack.
17245 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17246 FORCE_{INIT,FINI}_SECTION_ALIGN.
17247
17248 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17249 FORCE_{INIT,FINI}_SECTION_ALIGN.
17250
17251 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17252 invocation sequence.
17253 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17254
17255 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17256 (FORCE_CODE_SECTION_ALIGN): New.
17257
60ffa0e5
RH
172582002-01-26 Richard Henderson <rth@redhat.com>
17259
17260 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17261
61334ebe
RH
172622002-01-26 Richard Henderson <rth@redhat.com>
17263
17264 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17265 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17266
1d788fb6
KH
172672002-01-26 Kazu Hirata <kazu@hxi.com>
17268
17269 * config/h8300/h8300.md: Remove bit extraction patterns that
17270 cannot be triggered.
17271 Restrict each bit extraction pattern to a variant on which the
17272 pattern is tested.
17273
87611f88
JM
172742002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
17275
17276 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17277
cd74ec59
KH
172782002-01-26 Kazu Hirata <kazu@hxi.com>
17279
17280 * config/h8300/h8300.md: Remove bit test patterns that cannot
17281 be triggered.
17282 Restrict each bit test pattern to a variant on which the
17283 pattern is tested.
17284
93051e0f
KG
172852002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17286
17287 * builtins.c (expand_builtin_strncat): Remove redundant check for
17288 INTEGER_CST.
17289
216c995f
DB
172902002-01-25 David O'Brien <obrien@FreeBSD.org>
17291
17292 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17293 default setting.
17294 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17295 existing setting.
17296
33c7f925
GK
172972002-01-25 Geoffrey Keating <geoffk@redhat.com>
17298
17299 * dbxout.c (dbxout_init): Use assemble_name rather than just
17300 stripping off the first character.
17301 (dbxout_source_file): Likewise.
17302
6cd444b4
DD
173032002-01-25 DJ Delorie <dj@redhat.com>
17304
17305 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17306 using rtx_equal_p, not by comparing pointers.
17307
751551d5
SE
173082002-01-25 Steve Ellcey <sje@cup.hp.com>
17309
17310 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17311 for PIC_OFFSET_TABLE_REGNUM.
17312 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17313
e564e618
DB
173142002-01-25 David O'Brien <obrien@FreeBSD.org>
17315
17316 * config.gcc (x86_64-*-freebsd*): New target.
17317 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17318 value.
17319 (i[34567]86-*-freebsd*): Don't include svr4.h.
17320 * config/i386/freebsd64.h: New file.
17321
ff3aaf17
DR
173222002-01-25 Douglas B Rupp <rupp@gnat.com>
17323
4857d29d
DR
17324 * config/alpha/x-vms (version): Make static.
17325
17326 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17327 in previous checkin.
17328
ff3aaf17
DR
17329 * Makefile.in (install-headers-cp): New target.
17330 * config.gcc (alpha-dec-*vms*): Install headers with
17331 install-headers-cp
17332
48d79c43
JH
17333Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
17334
17335 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17336 avoid it's copies.
17337
995b5904
RK
17338Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17339
17340 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17341 of compare_tree_int.
17342 (expand_builtin_strncat): Likewise.
17343 * c-decl.c (finish_struct): Use tree_low_cst.
17344 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17345 * tree.c (compare_tree_int): Likewise.
17346
75eefe3f
UW
173472002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17348
17349 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17350 adjustments even if they are implemented by more than two insns.
17351
5a133afd
JH
17352Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
17353
995b5904 17354 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
17355 * df.h (struct ref): Kill B.
17356 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17357
17358 * basic-block.h (PROP_EQUAL_NOTES): New flag.
17359 * flow.c (propagate_one_insn): Use it.
17360 (mark_used_regs): Handle NIL.
17361
ead39bdf 173622002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
17363
17364 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17365 to help folding.
17366
01a2ccd0
DE
173672002-01-25 David Edelsohn <edelsohn@gnu.org>
17368
17369 * rs6000.md (prefetch): Make address V4SI mode so that the address
17370 is restricted to legitimate form for instruction.
17371
fd29f6ea
BW
173722002-01-25 Bob Wilson <bob.wilson@acm.org>
17373
17374 * doc/install.texi (xtensa-*-elf): New target.
17375 (xtensa-*-linux*): New target.
17376 * doc/contrib.texi: Add myself.
17377
55492b32
NC
173782002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
17379
17380 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17381 purpose register to hold an SImode (or smaller) value.
17382
72c7c913
JJ
173832002-01-25 Jakub Jelinek <jakub@redhat.com>
17384
17385 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17386 registry only.
17387 * crtstuff.c: Likewise.
17388
c4df4ceb
KH
173892002-01-25 Kazu Hirata <kazu@hxi.com>
17390
17391 * config/h8300/h8300.md (negation patterns): Tighten
17392 predicates to register_operand.
17393
70e531f5
AH
173942002-01-24 Aldy Hernandez <aldyh@redhat.com>
17395
3bca17dd
PK
17396 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17397 mode, not Pmode.
70e531f5 17398
3bca17dd 17399 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 17400
a4f76ef9
AO
174012002-01-24 Alexandre Oliva <aoliva@redhat.com>
17402
17403 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17404 modes.
17405
9bf25b09
KH
174062002-01-24 Kazu Hirata <kazu@hxi.com>
17407
17408 * config/h8300/h8300.c (print_operand): Remove support for
17409 operand character 'A'.
17410 * config/h8300/h8300.md (three anonymous patterns): Replace
17411 operand character 'A' with either 'T' or 'S'.
17412
974af6a5
KH
174132002-01-24 Kazu Hirata <kazu@hxi.com>
17414
17415 * config/h8300/h8300.c (print_operand): Remove support for
17416 operand character 'U'.
17417
7a5bb7b8
AP
174182002-01-24 Andris Pavenis <pavenis@latnet.lv>
17419
3bca17dd 17420 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 17421
92a4639e
NC
174222002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
17423
17424 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17425 values to be assigned to the stack pointer.
17426
467cb2da
HP
174272002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17428
bebc7e8b 17429 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
17430 to const_double needs to be done right for big-endian systems.
17431
3b6cb920
JM
174322002-01-24 Jason Merrill <jason@redhat.com>
17433
b08dd119 17434 PR c++/2432
3b6cb920
JM
17435 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17436 to can_throw_internal.
17437
f3077311
RH
174382002-01-23 Richard Henderson <rth@redhat.com>
17439
17440 * fold-const.c (fold): Change UINT_MAX test to check vs precision
17441 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
17442
e1d71275
AO
174432002-01-24 Alexandre Oliva <aoliva@redhat.com>
17444
17445 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17446 (symGOT2reg): Use them, then set as GOT value as unchanging.
17447 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
17448 as a temporary, if possible.
17449 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
17450 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17451
dc271dbe
KH
174522002-01-23 Kazu Hirata <kazu@hxi.com>
17453
17454 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17455 accept to accept 0x80 as operands[2].
17456
1a9017f9
AO
174572002-01-24 Alexandre Oliva <aoliva@redhat.com>
17458
17459 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17460
6932f033
RH
174612002-01-23 Richard Henderson <rth@redhat.com>
17462
17463 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17464
709619d9
AH
174652002-01-23 Aldy Hernandez <aldyh@redhat.com>
17466
3bca17dd
PK
17467 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17468 (parmlist_or_identifiers_1): Verify that only a parmlist follows
17469 an attribute.
709619d9 17470
3d709fd3
RH
174712002-01-23 Richard Henderson <rth@redhat.com>
17472
17473 * expr.c (move_by_pieces_1): Extend size before negation.
17474
88a446c0
RH
17475 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17476 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17477 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17478 * config/m68k/t-m68kelf: Likewise.
17479
03984308
BW
174802002-01-23 Bob Wilson <bob.wilson@acm.org>
17481
17482 * config/xtensa/elf.h: New file.
17483 * config/xtensa/lib1funcs.asm: New file.
17484 * config/xtensa/lib2funcs.S: New file.
17485 * config/xtensa/linux.h: New file.
17486 * config/xtensa/t-xtensa: New file.
17487 * config/xtensa/xtensa-config.h: New file.
17488 * config/xtensa/xtensa-protos.h: New file.
17489 * config/xtensa/xtensa.c: New file.
17490 * config/xtensa/xtensa.h: New file.
17491 * config/xtensa/xtensa.md: New file.
17492 * config.gcc (xtensa-*-elf*): New target.
17493 (xtensa-*-linux*): New target.
17494 * cse.c (canon_hash): Compare rtx pointers instead of register
17495 numbers. This is required for the Xtensa port.
17496 * integrate.c (copy_insn_list): Handle case where the static
17497 chain is in memory and the memory address has to be copied to
17498 a register.
17499 * doc/invoke.texi (Option Summary): Add Xtensa options.
17500 (Xtensa Options): New node.
17501 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17502
c3d5c3fa
ZW
175032002-01-23 Zack Weinberg <zack@codesourcery.com>
17504
a63bea75
ZW
17505 * diagnostic.c (internal_error): Do ICE suppression only
17506 when ENABLE_CHECKING is not defined.
17507
c3d5c3fa
ZW
17508 * c-typeck.c (require_complete_type): Return error_mark_node
17509 if type is error_mark_node.
17510
1398974c
JJ
175112002-01-23 Janis Johnson <janis187@us.ibm.com>
17512
17513 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17514 -Os and issue a warning.
17515
807633e5
ZW
175162002-01-23 Zack Weinberg <zack@codesourcery.com>
17517
17518 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17519 current (lack of) need for host configuration by hand.
17520
17521 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17522 references. Documentation of some target macros moved from
17523 hostconfig.texi to tm.texi.
17524
cf8002d0
WC
175252002-01-23 Will Cohen <wcohen@redhat.com>
17526
17527 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17528 defined.
17529
d1e76310
KH
175302002-01-23 Kazu Hirata <kazu@hxi.com>
17531
17532 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17533 operand[3].
17534
b2115575
JM
175352002-01-23 Jason Merrill <jason@redhat.com>
17536
f893c16e
JM
17537 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17538
b2115575
JM
17539 * function.c (assign_parms): Don't put args of inline functions
17540 into registers when not optimizing.
17541
6bacc7b0
NC
175422002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
17543
17544 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17545 (prologue_use): New pattern.
17546 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17547 preference to gen_rtx_USE.
17548 (thumb_expand_prologue): Use gen_prologue_use in preference to
17549 gen_rtx_USE.
17550 (thumb_expand_epilogue): Use gen_prologue_use in preference to
17551 gen_rtx_USE.
17552
a415f7bc
HPN
175532002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
17554
17555 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17556
5372b3fb
NB
175572002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
17558
17559 PR c/3504
17560 * doc/extend.texi: Correct documentation of __alignof__.
17561
bd571ffc
ZW
175622002-01-22 Zack Weinberg <zack@codesourcery.com>
17563
17564 * params.h: Rename arguments of DEFPARAM so that it will be
17565 recognized as a translation keyword.
17566
333c8841
AH
175672002-01-22 Aldy Hernandez <aldyh@redhat.com>
17568
bd571ffc
ZW
17569 * extend.texi: Document altivec functions.
17570 Fix N-bit adjectives in X86 builtin documentation.
333c8841 17571
38979c65
AO
175722002-01-22 Alexandre Oliva <aoliva@redhat.com>
17573
17574 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17575 auto_inc_dec values.
17576
7458a9f0
RE
175772002-01-22 Richard Earnshaw <rearnsha@arm.com>
17578
17579 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17580 after backslash.
17581 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17582
129bd0c4
AO
175832002-01-22 Alexandre Oliva <aoliva@redhat.com>
17584
17585 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17586
8b9b74a9
RH
175872002-01-22 Richard Henderson <rth@redhat.com>
17588
17589 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17590 copy_insn not copy_rtx.
17591
d0c9db30
AM
175922002-01-23 Alan Modra <amodra@bigpond.net.au>
17593
17594 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17595 "nonzero" as that might add "1" bits. Ensure "constop" is
17596 properly sign extened.
17597 (force_to_mode): Tweak for sign extended constop.
17598
1e7e480e
RH
175992002-01-22 Richard Henderson <rth@redhat.com>
17600
17601 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17602 for_each_rtx instead of assuming we're already looking at the MEM.
17603 (split_small_symbolic_mem_operand): Likewise.
17604 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17605 * config/alpha/alpha.md (small symbolic memory splitters): Update.
17606
176072002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
17608
17609 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17610 sequence number for the literal.
17611 (divmoddi_internal_er): Likewise.
17612
b7f2fb96
CR
176132002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17614
17615 PR java/4972
17616 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17617 in LIBICONV variable.
17618 * configure: Regenerated.
17619
f66a0046
KW
176202002-01-22 Krister Walfridsson <cato@df.lth.se>
17621
17622 * dependence.c (build_def_use): Remove array_idx.
17623
e3b0efd1
KW
17624 * dwarfout.c (last_filename): Remove.
17625 (output_compile_unit_die): Remove last_filename.
17626
d8086cbb
RS
176272002-01-22 Roger Sayle <roger@eyesopen.com>
17628 Richard Henderson <rth@redhat.com>
17629
17630 PR opt/3640
17631 * fold-const.c (fold): Optimize unsigned comparisons against
17632 UINT_MAX (and similar unsigned constants).
17633
e8d52ba0
JJ
176342002-01-22 Janis Johnson <janis187@us.ibm.com>
17635
d8086cbb 17636 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 17637 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 17638 against the predicate.
11303d15 17639
e8d52ba0
JJ
17640 PR target/5379
17641 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17642 for the address operand.
17643
cc7b420e
RH
176442002-01-22 Richard Henderson <rth@redhat.com>
17645
17646 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17647
816e265a
CR
176482002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17649
17650 PR other/5450
cc7b420e
RH
17651 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17652 preprocessor flags.
816e265a 17653
7c884404
JT
176542002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
17655
17656 * config.gcc (x86_64-*-netbsd*): New target.
17657 * config/i386/netbsd64.h: New file.
17658
2b672c08
AH
176592002-01-22 Aldy Hernandez <aldyh@redhat.com>
17660
d8086cbb 17661 * regrename.c (kill_value): Fix typo.
2b672c08
AH
17662
176632002-01-22 Aldy Hernandez <aldyh@redhat.com>
17664
d8086cbb 17665 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 17666
d8086cbb 17667 * config/rs6000/rs6000.h: Same.
2b672c08 17668
d8086cbb
RS
17669 * function.c (instantiate_virtual_regs): Remove
17670 STARTING_FRAME_PHASE.
17671 (assign_stack_local_1): Same.
17672 Calculate frame phase.
2b672c08 17673
4b02997f
NC
176742002-01-22 Nick Clifton <nickc@redhat.com>
17675
17676 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17677 variable declaration to outer scope in order to simplify
17678 future extensions.
17679 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17680 arm_hard_regno_mode_ok.
17681 * config/arm/arm-protos.h: Add a prototype for
17682 arm_hard_regno_mode_ok.
17683 * config/arm/arm.c (soft_df_operand): Remove now redundant
17684 check for DImode values using IP_REGNUM.
17685 (nonimmediate_soft_df_operand): Remove now redundant check for
17686 DImode values using IP_REGNUM.
17687 (arm_hard_regno_mode_ok): New function. New check: make sure
17688 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
17689
17690 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17691 note with a USE.
17692 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17693
8a827ab2
JM
176942002-01-22 Jason Merrill <jason@redhat.com>
17695
17696 * c-semantics.c (genrtl_compound_stmt): Only check nesting
17697 consistency if this COMPOUND_STMT is scoped.
17698
cf403648
KH
176992002-01-22 Kazu Hirata <kazu@hxi.com>
17700
17701 * predict.c: Fix formatting.
17702 * print-tree.c: Likewise.
17703 * protoize.c: Likewise.
17704 * real.h: Likewise.
17705 * rtl.h: Likewise.
17706 * sbitmap.h: Likewise.
17707 * scan.c: Likewise.
17708 * sched-deps.c: Likewise.
17709 * sched-vis.c: Likewise.
17710 * sdbout.c: Likewise.
17711 * sibcall.c: Likewise.
17712 * ssa.c: Likewise.
17713 * ssa-ccp.c: Likewise.
17714 * ssa-dce.c: Likewise.
17715 * stmt.c: Likewise.
17716 * stor-layout.c: Likewise.
17717 * system.h: Likewise.
17718
aea9695c
RK
17719Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17720
a8765ae7
RK
17721 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17722 if fits in bounds of base type.
17723
aea9695c
RK
17724 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17725 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17726 (add_bound_info, default): If can't find a context, make a
17727 SAVE_EXPR.
17728 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17729
58bf601b
HPN
177302002-01-22 Hans-Peter Nilsson <hp@axis.com>
17731
17732 * c-typeck.c (parser_build_binary_op): If result from
17733 build_binary_op is ERROR_MARK just return error_mark_node without
17734 further processing.
17735
f982f805
JT
177362002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
17737
17738 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17739 Split a.out-specific bits into...
17740 * config/netbsd-aout.h: ...this.
17741 * config/netbsd-elf.h: New file.
17742 * config/alpha/netbsd-elf.h: Remove.
17743 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17744 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 17745 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
17746 (ENDFILE_SPEC): Likewise.
17747 (LINK_SPEC): Likewise.
17748 (CPP_SPEC): Likewise.
17749 (ASM_SPEC): Likewise.
17750 (LIB_SPEC): Likewise.
17751 (SWITCH_TAKES_ARG): Likewise.
17752 (TARGET_MEM_FUNCTIONS): Likewise.
17753 (CPP_PREDEFINES): Redefine.
17754 (ASM_FINAL_SPEC): Remove redefinition.
17755 (ASM_COMMENT_START): Redefine.
17756 (FUNCTION_PROFILER): Define.
17757 (TARGET_VERSION): Redefine.
17758 Comment and formatting cleanup.
17759 * config/i386/netbsd.h: Include <netbsd-aout.h>.
17760 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17761 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17762 big- or little-endian.
17763 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17764 * config.gcc (*-*-netbsd*): Add definitions common to all
17765 NetBSD configs.
17766 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17767 gnu_ld definitions. Add netbsd-elf.h to and remove
17768 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
17769 tmake_file, and don't lose previous tmake_file contents.
17770 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17771 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17772 gnu_ld definitions. Add netbsd-elf.h to tm_file.
17773 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17774 (mipsel-*-netbsd*): Rename this to...
17775 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17776 mips/little.h to tm_file for mips*el-*.
17777 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17778 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17779 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17780
2e396476
JDA
177812002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17782
17783 * pa-protos.h (reg_before_reload_operand): New function prototype.
17784 * pa.c (reg_before_reload_operand): New function implementation.
17785 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17786 contraints to "*m".
17787
3b5708e7
FS
177882002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17789
17790 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17791
85e79f96
JDA
177922002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17793
17794 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17795 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17796 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17797 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17798 (ENDFILE_SPEC): Undefine.
17799 (STARTFILE_SPEC): Redefine for PA.
17800
38abadee
FS
178012002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17802
17803 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17804
94f1d97c
DJ
178052002-01-21 Daniel Jacobowitz <drow@mvista.com>
17806
17807 * config.gcc: Add entries to supported PowerPC --with-cpu
17808 types.
17809
0333394e
JJ
178102002-01-21 Jakub Jelinek <jakub@redhat.com>
17811
17812 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17813 true for 64-bit mode only SSE registers in 32-bit mode.
17814
e9d1b155
KH
178152002-01-21 Kazu Hirata <kazu@hxi.com>
17816
17817 * unwind-dw2.c: Fix formatting.
17818 * unwind-dw2-fde.c: Likewise.
17819 * unwind-dw2-fde.h: Likewise.
17820 * unwind-pe.h: Likewise.
17821 * varasm.c: Likewise.
17822 * varray.h: Likewise.
17823
07338cf8
HPN
178242002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17825
17826 Remove workaround for register stack overwrite bug in mmix.
17827 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17828 support for TARGET_REG_STACK_FILL_BUG.
17829 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17830 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17831 Delete.
17832 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17833 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17834 -mno-reg-stack-fill-bug-workaround.
17835 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17836 machine member has_call_without_parameters.
17837 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17838 -mreg-stack-fill-bug-workaround and
17839 -mno-reg-stack-fill-bug-workaround.
17840 (MMIX Options): Ditto.
17841
7192cbf1
KH
178422002-01-21 Kazu Hirata <kazu@hxi.com>
17843
17844 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17845 as appropriate.
17846 Remove redundant code.
17847
d1552d7b
JM
178482002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17849
17850 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17851 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17852 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17853 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17854 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17855 out target macro definitions and non-target-specific comments
17856 mostly taken from old versions of the manual.
17857
ed168e45
KH
178582002-01-20 Kazu Hirata <kazu@hxi.com>
17859
17860 * config/h8300/h8300.h: Fix comment formatting.
17861 * config/ia64/aix.h: Likewise.
17862 * config/ia64/ia64-protos.h: Likewise.
17863 * config/ia64/ia64.c: Likewise.
17864 * config/ia64/ia64.h: Likewise.
17865 * config/ia64/ia64intrin.h: Likewise.
17866 * config/ia64/linux.h: Likewise.
17867 * config/ia64/unwind-aix.c: Likewise.
17868 * config/ia64/unwind-ia64.c: Likewise.
17869
005e3e05
KH
178702002-01-20 Kazu Hirata <kazu@hxi.com>
17871
17872 * config/h8300/h8300.c: Revise comments about shift code.
17873
64bead4c
KH
178742002-01-20 Kazu Hirata <kazu@hxi.com>
17875
17876 * config/h8300/h8300.c (function_arg): Update a comment.
17877
ed863595
KH
178782002-01-20 Kazu Hirata <kazu@hxi.com>
17879
17880 * config/h8300/h8300.md: Update the comments at the beginning
17881 of the file.
17882
5904dc87
KH
178832002-01-20 Kazu Hirata <kazu@hxi.com>
17884
17885 * config/i370/i370.c: Fix comment formatting.
17886 * config/i370/i370.h: Likewise.
17887 * config/i370/i370.md: Likewise.
17888 * config/i370/linux.h: Likewise.
17889
9702143f
RK
17890Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17891
cbafacd1
RK
17892 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17893
9702143f
RK
17894 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17895 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17896 in incomplete case.
17897
6b6996b8
GS
178982002-01-20 Graham Stott <grahams@redhat.com>
17899
17900 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17901
eab854f6
JDA
179022002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17903
17904 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17905
5b029315
TR
179062002-01-19 Tom Rix <trix@redhat.com>
17907
17908 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17909
1d690052
AH
179102002-01-18 Aldy Hernandez <aldyh@redhat.com>
17911
d8086cbb 17912 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 17913
d8086cbb
RS
17914 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17915 STARTING_FRAME_PHASE.
17916 (STARTING_FRAME_PHASE): New.
17917 (instantiate_virtual_regs): Check saneness of
17918 STARTING_FRAME_PHASE.
1d690052 17919
d8086cbb 17920 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 17921
4dd8c093
AO
179222002-01-19 Alexandre Oliva <aoliva@redhat.com>
17923
17924 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17925
6f2a28d7
CR
179262002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17927
17928 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17929 be used for bootstrapping GCC 3.0.
17930
8763a465
KH
179312002-01-18 Kazu Hirata <kazu@hxi.com>
17932
17933 * config/h8300/h8300.md: Fix an insn length.
17934
3ef42a0c
KH
179352002-01-18 Kazu Hirata <kazu@hxi.com>
17936
17937 * bitmap.h: Fix comment formatting.
17938 * combine.c: Likewise.
17939 * cppfiles.c: Likewise.
17940 * c-pragma.h: Likewise.
17941 * c-typeck.c: Likewise.
17942 * df.c: Likewise.
17943 * dwarf2out.c: Likewise.
17944 * function.c: Likewise.
17945 * gcc.c: Likewise.
17946 * genattrtab.c: Likewise.
17947 * gthr-win32.h: Likewise.
17948 * haifa-sched.c: Likewise.
17949 * predict.c: Likewise.
17950 * rtlanal.c: Likewise.
17951 * rtl.h: Likewise.
17952 * unwind-dw2-fde.h: Likewise.
17953 * unwind-pe.h: Likewise.
17954 * vmsdbgout.c: Likewise.
17955
dd4dc3cd
RK
17956Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17957
17958 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17959 if type_required and passed decl.
17960
5fb4cf24
AH
179612002-01-17 Aldy Hernandez <aldyh@redhat.com>
17962
d8086cbb
RS
17963 * config.gcc (cpu_type): Include altivec.h in powerpc
17964 extra_headers.
17965 Same for darwin.
5fb4cf24 17966
d8086cbb 17967 * config/rs6000/altivec.h: New.
5fb4cf24 17968
2705baf5
DE
179692002-01-17 David Edelsohn <edelsohn@gnu.org>
17970
17971 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17972 handling information.
17973 * doc/trouble.texi (Interoperation): Add libstdc++ information
17974 for AIX.
17975 (Misunderstandings): Add template instantiation and static template
17976 member information for AIX.
17977
dbd680e1
JM
179782002-01-17 Jason Merrill <jason@redhat.com>
17979
821adc5e
JM
17980 * dbxout.c (dbxout_type): Support const and volatile.
17981
dbd680e1
JM
17982 * except.c (add_partial_entry): Remove backwards compatibility code.
17983 (end_protect_partials): Likewise.
17984
d0e82870
JJ
179852002-01-17 Jakub Jelinek <jakub@redhat.com>
17986
17987 * config/ia64/ia64.md (prologue_use): New.
17988 * config/ia64/ia64.c (ia64_expand_prologue): Use
17989 gen_prologue_use instead of gen_rtx_USE.
17990 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17991 as CODE_FOR_pred_rel_mutex.
17992 (ia64_sched_reorder2): Likewise.
17993
f9f45c65
EC
179942002-01-16 Eric Christopher <echristo@redhat.com>
17995
17996 * config/mips/r3900.h: Reformat.
17997 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17998 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17999 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18000 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18001 * config/mips/t-elf: Remove mips3 multilib.
18002
c66c8b0e
L
180032002-01-16 H.J. Lu <hjl@gnu.org>
18004
18005 * config/mips/linux.h: Include "mips/abi64.h".
18006
5f083b72
L
180072002-01-16 H.J. Lu <hjl@gnu.org>
18008
18009 * config/mips/t-linux: New.
18010
18011 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18012
18013 * config/mips/linux.h: Don't include "gofast.h".
18014 (INIT_SUBTARGET_OPTABS): Removed.
18015
af3c90a6
KH
180162002-01-16 Kazu Hirata <kazu@hxi.com>
18017
18018 * config/h8300/h8300-protos.h: Replace emit_a_shift with
18019 output_a_shift.
18020 * config/h8300/h8300.c: Likewise.
18021 * config/h8300/h8300.md: Likewise.
18022
a1bf0a16
KH
180232002-01-16 Kazu Hirata <kazu@hxi.com>
18024
18025 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18026 spaces after an opcode name.
18027 (pushqi1_h8300hs): Likewise.
18028 (pushhi1_h8300hs): Likewise.
18029
88ab0d1c
KH
180302002-01-16 Kazu Hirata <kazu@hxi.com>
18031
18032 * doc/extend.texi: Replace "option" with "attribute"
18033 appropriately.
18034
51c561e3
JJ
180352002-01-16 Jakub Jelinek <jakub@redhat.com>
18036
18037 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18038 (and:DI () (const_int -8)).
18039 (split_small_symbolic_mem_operand): Split
18040 (mem (and:DI () (const_int -8)).
18041
b8c1a6b8
JJ
180422002-01-16 Jakub Jelinek <jakub@redhat.com>
18043
18044 PR target/5309:
d8086cbb 18045 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
18046 same way as TYPE_IMUL.
18047 (ultrasparc_sched_reorder): Likewise.
18048 * config/sparc/sparc.md (type): Add comment to update
18049 ultrasparc_sched_reorder when making changes.
18050
1e4e4df2
KH
180512002-01-16 Kazu Hirata <kazu@hxi.com>
18052
18053 * doc/invoke.texi: Change the dump file name of block
18054 reordering pass from 28.bbro to 29.bbro.
18055 Mention -dk option.
18056
14d920c0
JH
18057Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
18058
18059 * i386.md (minsf splitter): Fix pasto.
18060
2e99323f
NC
180612002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18062
18063 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18064 to frame pointer initialisation instruction.
18065 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18066 initialisation instruction.
ab8081c1
NC
18067 (soft_df_operand): Do not accept the IP register.
18068 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 18069
c4031a04
JJ
180702002-01-16 Jakub Jelinek <jakub@redhat.com>
18071
18072 PR target/5357:
18073 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18074 MASK_V8 being both set.
18075
44b8152b
UW
180762002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
18077
18078 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18079 insn for GOT register; add REG_MAYBE_DEAD notes instead.
18080 config/s390/s390.md (call, call_value): Add GOT register to
18081 CALL_INSN_FUNCTION_USAGE where needed.
18082 (call_exp, call_value_exp): New.
18083
1d6e90ac
NC
180842002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18085
18086 * config/arm/arm.c: General formatting tidy up.
18087
180882002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
18089
18090 * calls.c (try_to_integrate): Use "(size_t)" intermediate
18091 cast and when casting an integer literal to "rtx" pointer.
18092 (expand_call): Likewise.
18093 * flow.c (try_pre_increment): Likewise.
18094 (find_use_as_address): Likewise.
18095 * integrate.c (expand_iline_function): Likewise.
18096 * regmove.c (try_auto_increment): Likewise.
18097
1d6e90ac 180982002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
18099
18100 * sched-rgn.c (passed): Use sbitmap_free.
18101 (header): Likewise.
18102 (inner): Likewise.
18103 (in_queue): Likewise.
18104 (in_stack): Likewise.
18105
31fce3c4
EC
181062002-01-15 Eric Christopher <echristo@redhat.com>
18107
18108 * flow.c (propagate_one_insn): Change to use fatal_insn.
18109
c99d986a
KH
181102002-01-15 Kazu Hirata <kazu@hxi.com>
18111
18112 * expmed.c (extract_fixed_bit_field): Remove unused code.
18113 * system.h: Poison SLOW_ZERO_EXTEND.
18114 * doc/tm.texi: Remove.
18115 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18116 * config/arm/arm.h: Likewise.
18117 * config/avr/avr.h: Likewise.
18118 * config/clipper/clipper.h: Likewise.
18119 * config/convex/convex.h: Likewise.
18120 * config/d30v/d30v.h: Likewise.
18121 * config/dsp16xx/dsp16xx.h: Likewise.
18122 * config/elxsi/elxsi.h: Likewise.
18123 * config/fr30/fr30.h: Likewise.
18124 * config/h8300/h8300.h: Likewise.
18125 * config/i370/i370.h: Likewise.
18126 * config/i386/i386.h: Likewise.
18127 * config/m68k/m68k.h: Likewise.
18128 * config/mips/mips.h: Likewise.
18129 * config/ns32k/ns32k.h: Likewise.
18130 * config/pdp11/pdp11.h: Likewise.
18131 * config/pj/pj.h: Likewise.
18132 * config/s390/s390.h: Likewise.
18133 * config/sh/sh.h: Likewise.
18134 * config/stormy16/stormy16.h: Likewise.
18135 * config/v850/v850.h: Likewise.
18136 * config/vax/vax.h: Likewise.
18137 * config/we32k/we32k.h: Likewise.
18138
acfab996
AH
181392002-01-15 Aldy Hernandez <aldyh@redhat.com>
18140
d8086cbb
RS
18141 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18142 (altivec_lvsl): Change constraint to b.
18143 (altivec_lvsr): Same.
18144 (altivec_lvebx): Same.
18145 (altivec_lvehx): Same.
18146 (altivec_lvewx): Same.
18147 (altivec_lvxl): Same.
18148 (altivec_lvx): Same.
18149 (altivec_stvx): Add parallel.
18150 (altivec_stvxl): Same.
18151 (altivec_stvehx): Same.
18152 (altivec_stvebx): Same.
18153 (altivec_stvebx): Same.
acfab996 18154
5e505bc9
AH
181552002-01-15 Aldy Hernandez <aldyh@redhat.com>
18156
d8086cbb 18157 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 18158
d8086cbb 18159 * config/rs6000/altivec.h: Delete.
5e505bc9 18160
d8086cbb 18161 * config/rs6000/altivec-defs.h: Add.
5e505bc9 18162
5c41fdfb
JDA
181632002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18164
18165 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18166 and UMOD modes.
18167
18168 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18169 less than or equal to eight bytes.
18170
18171 * vax.md (andsi3): Remove constraints and change SET destination
18172 operand type to nonimmediate_operand.
18173 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
18174 when it is a CONST_INT.
18175
de097a2d
JM
181762002-01-15 Jason Merrill <jason@redhat.com>
18177
18178 * c-common.def (FILE_STMT): New code.
18179 * c-common.c (statement_code_p): It's a statement.
18180 * c-common.h (stmt_tree_s): Add x_last_filename.
18181 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18182 (last_expr_filename): New macro.
18183 * c-semantics.c (begin_stmt_tree): Initialize it.
18184 (add_stmt): If the filename changed, also insert a
18185 FILE_STMT.
18186 (expand_stmt): Handle seeing one.
18187
4a913dd6
EC
181882002-01-15 Eric Christopher <echristo@redhat.com>
18189
18190 * flow.c (propagate_one_insn): Add error message and print out
18191 insn for debugging.
18192
006946e4
JM
181932002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18194
18195 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18196 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18197 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18198 TRAMPOLINE_ALIGNMENT.
18199 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
18200 to be in bits.
18201 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18202 PCC_BITFIELD_TYPE_MATTERS.
18203 * config/interix.h (STDC_VALUE): Remove. Use
18204 STDC_0_IN_SYSTEM_HEADERS.
18205 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18206 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18207 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18208
751a1458
CR
182092002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
18210
18211 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18212 not work on this platform currently.
18213
57771fe8
JM
182142002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18215
18216 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18217 readonly_warning in _().
18218
0e83ceb1 182192002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 18220
0e83ceb1 18221 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 18222
8e2e89f7
KH
182232002-01-15 Kazu Hirata <kazu@hxi.com>
18224
0e83ceb1
DR
18225 * config/h8300/h8300.c (print_operand): Remove support for
18226 unused operand characters.
18227
8e2e89f7
KH
18228 * read-rtl.c: Fix formatting.
18229 * real.c: Likewise.
18230 * recog.c: Likewise.
18231 * regclass.c: Likewise.
18232 * regmove.c: Likewise.
18233 * reg-stack.c: Likewise.
18234 * reload1.c: Likewise.
18235 * rtlanal.c: Likewise.
18236
b531087a
KH
182372002-01-15 Kazu Hirata <kazu@hxi.com>
18238
18239 * config/i386/i386.c: Fix formatting.
18240
7c94ce7f
JJ
182412002-01-15 Jakub Jelinek <jakub@redhat.com>
18242
18243 * c-typeck.c (process_init_element): Don't save_expr
18244 COMPOUND_LITERAL_EXPR if just its initializer will be used.
18245
6041bf2f
DE
182462002-01-15 David Edelsohn <edelsohn@gnu.org>
18247
18248 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18249 emit optional traceback table if optimize_size or TARGET_ELF.
18250 * config/rs6000/rs6000.md (prefetch): New.
18251
8559c8c0
AJ
182522002-01-15 Andreas Jaeger <aj@suse.de>
18253
18254 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18255
70f122f2
KH
182562002-01-15 Kazu Hirata <kazu@hxi.com>
18257
18258 * mips-tfile.c: Fix formatting.
18259
6a7b4ca6
JH
18260Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
18261
18262 * unroll.c (final_reg_note_copy): Fix previous commit.
18263
e7afe229
KH
182642002-01-14 Kazu Hirata <kazu@hxi.com>
18265
18266 * config/h8300/h8300-protos.h: Remove the prototype for
18267 eq_operator.
18268 * config/h8300/h8300.c (eq_operator): Remove.
18269
7d378549
RH
182702002-01-14 Richard Henderson <rth@redhat.com>
18271
18272 * config/i386/i386.md (prefetch): Tidy.
18273 (prefetch_3dnow): Fix locality operand.
18274
ab093b81
RH
182752002-01-14 Richard Henderson <rth@redhat.com>
18276
18277 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18278 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18279
d300f51f
HPN
182802002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
18281
18282 * reload1.c (reload_combine): Pass reg_sum replacement through
18283 copy_rtx in loop performing multiple changes.
18284
655dd289
JJ
182852002-01-14 Jakub Jelinek <jakub@redhat.com>
18286
18287 * except.c (remove_unreachable_regions): New.
18288 (free_eh_status): Clear exception_handler_labels.
18289 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18290 (find_exception_handler_labels): Don't add the same label more than
18291 once.
18292 (remove_exception_handler_label): Don't die if
18293 find_exception_handler_labels hasn't been called for the current
18294 function yet.
18295
1fba46a7
JH
18296Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
18297
18298 * toplev.c (rest_of_compilation): Rebuild jump labels after
18299 gcse.
18300
0975678f
JM
183012002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
18302
18303 * doc/extend.texi: Move documentation of X86 built-in functions
18304 here.
18305 * doc/invoke.texi: From here.
18306 * doc/sourcebuild.texi: Document location of documentation for
18307 machine built-in functions.
18308
969815c7
CF
183092002-01-13 Christopher Faylor <cgf@redhat.com>
18310
18311 * cppfiles.c (TEST_THRESHOLD): New macro.
18312 (SHOULD_MMAP): Ditto.
18313 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18314 be used.
18315
494c950b
JH
18316Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
18317
18318 * unroll.c (final_reg_note_copy): Properly handle
18319 REG_LABEL
18320 (unroll_loops): Fix LOOP_CONDITION heuristics.
18321
69a0611f
GK
183222002-01-14 Geoffrey Keating <geoffk@redhat.com>
18323
18324 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18325 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18326
b90e45ae
JH
18327Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
18328
18329 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18330 threaded loop.
18331
8377288b
TR
183322002-01-14 Tom Rix <trix@redhat.com>
18333
18334 * config/rs6000/rs6000.md: Fix typo with sradi.
18335
9f37ccb1
UW
183362002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
18337
18338 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18339 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18340 (clrstrdi, clrstrsi): Adapt callers.
18341
18342 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18343
8559c8c0 18344 (movti splitter): Never use register 0 as base register.
9f37ccb1 18345
6c2d03d0
HP
183462002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18347
8559c8c0
AJ
18348 * combine.c (simplify_shift_const): Always generate new rtx
18349 for shift expression instead of reusing given expression.
6c2d03d0 18350
d3e98208
RK
18351Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18352
18353 * config/alpha/alpha.c (alpha_expand_mov): Don't call
18354 alpha_legitimize_address unless mode is Pmode.
18355
9f339dde
GK
183562002-01-13 Geoffrey Keating <geoffk@redhat.com>
18357
18358 * doc/md.texi (Modifiers): Document the '*' constraint for the
18359 user.
18360
18361 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18362 * doc/extend.texi (Function Attributes): 'interrupt' is valid
18363 for xstormy16 too.
18364
02a10130
RH
183652002-01-13 Richard Henderson <rth@redhat.com>
18366
18367 * reload.c (find_reloads): Use a hard reg destination as reload reg
18368 for an input reload of the source.
18369
61d47787
GP
183702002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18371
18372 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18373 more generic.
18374
f0df8029
DR
18375Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
18376
18377 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18378 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18379
d2a37256
DR
18380 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18381
a9e8a5ee
RK
18382Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18383
18384 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18385
bc06712d
TR
183862002-01-12 Tom Rix <trix@redhat.com>
18387
8559c8c0 18388 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
18389 TARGET_POWERPC64.
18390
7cbe9bb7
RH
183912002-01-12 Richard Henderson <rth@redhat.com>
18392
38b29e64
RH
18393 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18394
58605ba0
RH
18395 * doc/invoke.texi: Update Alpha options.
18396
7cbe9bb7
RH
18397 * doc/invoke.texi: Update i386 built-in function lists.
18398
9d560860
JH
18399Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
18400
18401 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18402 referencing outside.
18403
bb93b973
RK
18404Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18405
18406 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18407 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18408 offsets, and change line folding.
18409 * optabs.c (expand_binop): Remove warnings.
18410 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 18411
f9f6b7df
GS
184122002-01-12 Graham Stott <grahams@redhat.com>
18413
18414 * attribs.c (handle_deprecated_attribute): constify WHAT.
18415 * diagnostic.c (warn_deprecated_use): Add braces, fixes
18416 dangling else warning and constify WHAT.
18417 * except.h (struct function, struct inline_remap): Move
18418 struct tag forward defs before all prototypes.
18419 (duplicate_eh_regions): Whitespace.
18420
4a692617
NC
184212002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
18422
18423 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18424 MODE_BASE_REG_CLASS.
18425 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18426
e37af218
RH
184272002-01-12 Richard Henderson <rth@redhat.com>
18428
18429 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18430 (ix86_expand_vector_move): New.
18431 (bdesc_2arg): Remove andps, andnps, orps, xorps.
18432 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
18433 Remove old prefetch builtins. Special case the logicals removed above.
18434 (ix86_expand_builtin): Likewise.
18435 (safe_vector_operand): Use V4SFmode, not TImode.
18436 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
18437 (ix86_expand_timode_binop_builtin): New.
18438 * config/i386/i386-protos.h: Update.
18439 * config/i386/i386.h (enum ix86_builtins): Update.
18440 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18441 Use ix86_expand_vector_move in vector move expanders.
18442 (movti_internal, movti_rex64): Add xorps alternative.
18443 (sse_clrv4sf): Rename and adjust from sse_clrti.
18444 (prefetch): Don't work so hard.
18445 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18446 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18447 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18448
6f1a6c5b
RH
184492002-01-11 Richard Henderson <rth@redhat.com>
18450
18451 * config/i386/mmintrin.h: New file.
18452 * config/i386/xmmintrin.h: New file.
18453 * config.gcc (i?86-*-*): Add extra_headers.
18454 * simplify-rtx.c (simplify_unary_operation): Handle saturating
18455 truncation codes.
18456 (simplify_binary_operation): Handle saturating arithmetic codes.
18457 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18458 not the lowpart subreg.
18459 (ix86_expand_builtin): Return a TImode dummy register instead of 0
18460 on error.
18461 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18462
cdb574d3
MH
184632002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18464
18465 * conflict.c (conflict_graph_compute): Free regsets when finished.
18466 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 18467
cf11ac55
HB
184682002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18469
18470 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18471 every where we allocate a register.
18472
76ac938b
MH
184732002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18474
18475 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18476 * lcm.c (compute_earliest, compute_farthest): Likewise.
18477
a84b4898
JJ
184782002-01-11 Janis Johnson <janis187@us.ibm.com>
18479
18480 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18481
aaef1c12
JJ
184822002-01-11 Janis Johnson <janis187@us.ibm.com>
18483
18484 * doc/rtl.texi (Insns): Fix 2 typos.
18485
5d22c1a5
JM
184862002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
18487
18488 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
18489 options. Use @table @gcctabopt for MMIX options. Add index
18490 entries for MMIX options. Start new paragraph with first
18491 heading of the machine-dependent options.
18492
3e92902c
CR
184932002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
18494
18495 PR other/5299
18496 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18497 * combine.c (force_to_mode): Same.
18498 * reload1.c (clear_reload_reg_in_use): Same.
18499
96ae8197
NC
185002002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
18501
18502 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18503 and 'subtargets'.
18504
9b780582
AJ
185052002-01-11 Andreas Jaeger <aj@suse.de>,
18506 Brad Lucier <lucier@math.purdue.edu>
18507
18508 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18509 mcpu.
18510
12300dad
DR
18511Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
18512
18513 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18514 Protect with IN_LIBGCC.
18515 (LINK_EH_SPEC): Add required trailing space.
18516
27511a9a
NP
18517Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
18518
9b780582 18519 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
18520 under the filename which contains them.
18521 (check_identifier, finish_decl_top_level,
18522 lookup_name_current_level_global, shadow_record_fields): Remove.
18523
4daeab16
AJ
185242002-01-11 Andreas Jaeger <aj@suse.de>
18525
18526 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18527 march.
18528
40571d67
RH
185292002-01-10 Richard Henderson <rth@redhat.com>
18530
18531 * config/alpha/alpha.c (print_operand): Add 'J'.
18532 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18533 new operand with the sequence number for the lituse. When splitting
18534 the insns, use gen_movdi_er_high_g and generate a sequence number.
18535 (gen_movdi_er_high_g): Print the sequence number if non-zero.
18536
6525c0e7
AH
185372002-01-10 Aldy Hernandez <aldyh@redhat.com>
18538
d8086cbb
RS
18539 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18540 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18541 stvxl.
18542 (altivec_expand_builtin): Same.
18543 (altivec_expand_stv_builtin): New.
18544
18545 * config/rs6000/rs6000.h (rs6000_builtins): Same.
18546
18547 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18548 ("altivec_lvehx"): New.
18549 ("altivec_lvewx"): New.
18550 ("altivec_lvxl"): New.
18551 ("altivec_lvx"): New.
18552 ("altivec_stvx"): New.
18553 ("altivec_stvebx"): New.
18554 ("altivec_stvehx"): New.
18555 ("altivec_stvewx"): New.
18556 ("altivec_stvxl"): New.
6525c0e7 18557
cda94cbb
RH
185582002-01-10 Richard Henderson <rth@redhat.com>
18559
18560 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18561 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
18562 care not to delete instructions twice.
18563
df2c9a44
ZW
185642002-01-10 Zack Weinberg <zack@codesourcery.com>
18565
18566 * toplev.c: Don't declare environ (it's not used anywhere).
18567 * configure.in: Don't check for declaration of environ.
18568 * config/i386/xm-mingw32.h: Don't #define environ.
18569 * config.in, configure: Regenerate.
18570
5dd8a9b1
ZW
185712002-01-10 Zack Weinberg <zack@codesourcery.com>
18572
18573 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18574 * configure: Regenerate.
18575
18576 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18577 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18578 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18579 alpha/xm-vms.h.
18580 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18581 LIMITS_H_TEST here, not in m68k/x-next.
18582 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18583 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18584
18585 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18586 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18587 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
18588
18589 * config/i386/x-djgpp: Renamed i386/t-djgpp.
18590 * config/m88k/x-dolph: Renamed m88k/t-dolph.
18591 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18592 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
18593 replacement of quadlib.asm with quadlib.c.
18594
18595 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18596 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18597 config/rs6000/xm-beos.h: Delete file.
18598
18599 * config.gcc: Update to match above changes.
18600
d10dd44c
KH
186012002-01-10 Kazu Hirata <kazu@hxi.com>
18602
18603 * config/h8300/h8300.h: Fix comment typos.
18604 * config/h8300/h8300.md: Likewise.
18605 * config/h8300/lib1funcs.asm: Likewise.
18606
04894c5a
DJ
186072002-01-10 Dale Johannesen <dalej@apple.com>
18608
18609 PR optimization/5269
18610 * unroll.c (precondition_loop_p): Make *increment be the correct
18611 sign when n_iterations known, to avoid confusing caller.
18612
adc9fe67
KH
186132002-01-10 Kazu Hirata <kazu@hxi.com>
18614
18615 * doc/extend.texi (deprecated): Fix a typo.
18616
b446e5a2
JH
18617Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
18618
18619 * basic-block.h (update_br_prob_note): Declare.
18620 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18621 (try_forward_edges): Care negative frequencies and update note.
18622 (outgoing_edges_match): Tweek conditional merging heuristics.
18623 (try_crossjump_to_edge): use update_br_prob_note.
18624 * cfglayout.c (fixup_reorder_chain): Likewise.
18625 * cfrtl.c (update_br_prob_note): New.
18626 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18627
18628 * i386.c (ix86_decompose_address): Return -1 if address contains
18629 shift.
18630 (legitimate_address_p): Require ix86_decompose_address to return 1.
18631
18632 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18633 (cprop_insn): Likewise.
18634
a01da83b
KH
186352002-01-10 Kazu Hirata <kazu@hxi.com>
18636
18637 * toplev.c: Fix formatting.
18638 * tree.c: Likewise.
18639 * tree-dump.c: Likewise.
18640 * unroll.c: Likewise.
18641 * unwind-dw2.c: Likewise.
18642 * unwind-dw2-fde.c: Likewise.
18643 * unwind-dw2-fde-glibc.c: Likewise.
18644 * unwind-sjlj.c: Likewise.
18645
9f85bca7
JM
186462002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18647
18648 * doc/invoke.texi: Document PDP-11 options.
18649
f48f56b1
KH
186502002-01-10 Kazu Hirata <kazu@hxi.com>
18651
18652 * config/h8300/h8300.h: Fix formatting.
18653
ead39bdf 186542002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
18655
18656 Add __attribute__ ((deprecated)).
18657 * extend.texi: Document __attribute__ ((deprecated)).
18658 * invoke.texi: Document -Wno-deprecated-declarations.
18659 * testsuite/g++.dg/other/deprecated.C: New C++ test.
18660 * testsuite/gcc.dg/deprecated.c: New C test.
18661 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18662 (c_common_attribute_table): Add "deprecated" entry.
18663 (handle_deprecated_attribute): New function.
18664 * c-decl.c (deprecated_states): New enum.
18665 deprecated_state: State of "deprecated" handling.
18666 (start_decl): Set deprecated_state based on attributes.
18667 (grokdeclarator): Test for deprecated uses, propagate attribute.
18668 * c-typeck.c (build_component_ref): Test for deprecated fields.
18669 (build_external_ref): Test for deprecated primaries.
18670 * diagnostic.c (warn_deprecated_use) New function to issue
18671 warnings about __attribute__ ((depricated)) references.
18672 * flags.h (warn_deprecated_decl): Extern declared for
18673 -W[no-]deprecated-declarations option.
18674 * print-tree.c (print_node): Show deprecated flag status.
18675 * toplev.c (warn_deprecated_decl): Defined.
18676 (W_options): Added "deprecated-declaration".
18677 * toplev.h (warn_deprecated_use): Extern declared.
18678 * tree.h (struct tree_common): Define deprecated_flag.
18679 (TREE_DEPRECATED): New macro to access flag.
18680 * cp/call.c (build_call): Test for deprecated calls.
18681 * cp/class.c (add_implicitly_declared_members): Set global
18682 flag to tell grokdeclarator to not issue deprecated warnings.
18683 * cp/cp-tree.h: Add extern for adding_implicit_members.
18684 * cp/decl.c (deprecated_states): New enum.
18685 (start_decl): Set deprecated_state based on attributes.
18686 (grokdeclarator): Test for deprecated uses, propagate attribute.
18687 * cp/lex.c (do_identifier): Test for deprecated primaries.
18688 * cp/typeck.c (build_component_ref): Test for deprecated fields.
18689
ead39bdf 186902002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
18691
18692 Fix to assign attributes to inline member functions.
18693 * cp/decl.c (start_method): Handle attrlist.
18694
47073a38
KH
186952002-01-10 Kazu Hirata <kazu@hxi.com>
18696
18697 * combine.c (expand_field_assignment): Use subreg_lsb().
18698
d288e53d
DE
186992002-01-10 David Edelsohn <edelsohn@gnu.org>
18700
18701 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18702 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18703 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18704 Recurse for any operand of AND as long as constant is non-zero.
18705
08a02ffa
KH
187062002-01-10 Kazu Hirata <kazu@hxi.com>
18707
18708 * config/h8300/h8300.md: Remove constraints from expanders.
18709
c203e7fe
KH
187102002-01-10 Kazu Hirata <kazu@hxi.com>
18711
18712 * varasm.c: Fix formatting.
18713 * varray.c: Likewise.
18714 * vmsdbgout.c: Likewise.
18715 * xcoffout.c: Likewise.
18716
bcb3bc6d
JH
18717Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
18718
18719 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 18720 update edge probabilities to match.
bcb3bc6d 18721
0a553c7e
JM
187222002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18723
18724 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18725 dependencies.
18726 * doc/languages.texi, doc/sourcebuild.texi: New files.
18727 * doc/configfiles.texi: Make a subsubsection. Update.
18728 * doc/configterms.texi: Add @node. Remove warning that this isn't
18729 instructions for building GCC.
18730 * doc/makefile.texi: Make a subsection.
18731 * doc/gccint.texi: Update.
18732
adc7fcb8
JH
18733Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
18734
18735 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18736
5a4dd0b3
NP
18737Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
18738
18739 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18740
3987b9db
JH
18741Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
18742
18743 * optabs.c (expand_fix): Look for wider integer modes first.
18744
18745 * i386.md (mov?f): Avoid the fake const double trick for medium
18746 memory model.
18747 (min?f*/max?f*): Prohibit memory operands for i387 variant.
18748 (fop_df_4): Disable for SSE compilation.
18749
ceb15948 187502002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
18751
18752 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 18753 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 18754
e1623399
RH
187552002-01-10 Richard Henderson <rth@redhat.com>
18756
18757 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18758
c4abb293
RH
187592002-01-10 Richard Henderson <rth@redhat.com>
18760
18761 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18762 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
18763
d2604ae9
KH
187642002-01-10 Kazu Hirata <kazu@hxi.com>
18765
18766 * combine.c (can_combine_p): Fix a comment typo.
18767
766c7ad1
ZW
187682002-01-09 Zack Weinberg <zack@codesourcery.com>
18769
18770 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18771 empty list correctly. Change loop index $t to $f for
18772 consistency with rest of Makefile.
18773
95385cbb
AH
187742002-01-08 Aldy Hernandez <aldyh@redhat.com>
18775
18776 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18777 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18778
18779 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18780 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18781 (altivec_init_builtins): Same.
18782 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18783 (altivec_expand_binop_builtin): Same.
18784 (altivec_expand_ternop_builtin): Same.
18785 (bdesc_dst): New.
18786
18787 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18788 ("altivec_vctuxs"): Fix typo.
18789 ("altivec_vnmsubfp"): Same.
18790 ("altivec_dssall"): New.
18791 ("altivec_mfvscr"): New.
18792 ("altivec_dss"): New.
18793 ("altivec_lvsl"): New.
18794 ("altivec_lvsr"): New.
18795 ("altivec_dstt"): New.
18796 ("altivec_dstst"): New.
18797 ("altivec_dststt"): New.
18798 ("altivec_dst"): New.
18799
18800 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18801 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18802
e4ac76b4
RH
188032002-01-09 Richard Henderson <rth@redhat.com>
18804
18805 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18806
c893e4a4
HPN
188072002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18808
18809 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18810 function.
18811 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18812 prototype.
7387c700 18813 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 18814
f4f4d0f8
KH
188152002-01-09 Kazu Hirata <kazu@hxi.com>
18816
18817 * read-rtl.c: Fix formatting.
18818 * real.c: Likewise.
18819 * regclass.c: Likewise.
18820 * regrename.c: Likewise.
18821 * reg-stack.c: Likewise.
18822 * reload1.c: Likewise.
18823 * reload.c: Likewise.
18824 * rtl.c: Likewise.
18825
cc863bea
KH
188262002-01-09 Kazu Hirata <kazu@hxi.com>
18827
18828 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18829 to extract items in the expr_list chain.
18830
7b4dfe3d
RH
188312002-01-09 Richard Henderson <rth@redhat.com>
18832
18833 * config/vax/vax.c (vax_rtx_cost): Never abort.
18834
1d969638
RH
18835 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18836
7d5ab30e
JH
188372002-01-09 Jan Hubicka <jh@suse.cz>
18838
18839 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18840
9503f3d1
RH
188412002-01-09 Richard Henderson <rth@redhat.com>
18842
18843 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18844 Unify code from various alternatives.
18845
42bd17b7
RH
188462002-01-09 Richard Henderson <rth@redhat.com>
18847
18848 * regrename.c (copy_value): Ignore the copy if the source register
18849 is present in the value chain with a narrower mode.
18850
bdca3c33
HB
188512002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18852
cda94cbb
RH
18853 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18854 for the c4x target. Also improve layout.
bdca3c33 18855
c73a5e94
RH
188562002-01-09 Richard Henderson <rth@redhat.com>
18857
18858 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18859 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18860 to match insn patterns.
18861
dd0a18c0
RH
188622002-01-09 Richard Henderson <rth@redhat.com>
18863
18864 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18865 (copyprop_hardreg_forward_1): Likewise.
18866
1fd9ac1e
JDA
188672002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18868
18869 * pa.md (decrement_and_branch_until_zero): Change predicate for
18870 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18871
5cb265ec
BM
188722002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18873
18874 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18875 gets undefined. For Darwin.
18876
fcd8fa8b
HB
188772002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18878
18879 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18880
bd3ab23a
MH
188812002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18882
18883 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18884
21e16bd6
RH
188852002-01-08 Richard Henderson <rth@redhat.com>
18886
18887 * regrename.c (copy_value): Ignore overlapping copies.
18888
a5376276
RH
188892002-01-08 Richard Henderson <rth@redhat.com>
18890
18891 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18892 as needed to avoid shared structure.
18893
18cf8dda
KH
188942002-01-08 Kazu Hirata <kazu@hxi.com>
18895
18896 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18897 H8/300H and H8/S.
18898
16c484c7
JM
188992002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18900
18901 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18902 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18903 documentation of obsolete macros.
18904 * system.h: Poison these macros.
18905 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18906 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18907 config/c4x/c4x.h, config/clipper/clipper.h,
18908 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18909 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18910 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18911 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18912 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18913 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18914 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18915 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18916 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18917 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18918 config/sparc/sparc.h, config/stormy16/stormy16.h,
18919 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18920 definitions and commented out definitions of obsolete macros.
18921 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18922 of MAX_INT_TYPE_SIZE.
18923
14b3e8ef
UW
189242002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18925
18926 * config/s390/s390.c (s390_preferred_reload_class): Never
18927 return ADDR_REGS if it isn't a subset of the given class.
18928 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18929 FP_REGS, but all superclasses as well.
18930
18931 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18932
18933 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18934 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18935 must not be a const_int.
18936
a693284d
RH
189372002-01-08 Richard Henderson <rth@redhat.com>
18938
18939 * Makefile.in (toplev.o): Depend on options.h.
18940 (gcc.o): Depend on specs.h.
18941
b3ca30df
JJ
189422002-01-08 Jakub Jelinek <jakub@redhat.com>
18943
18944 * expr.c (store_expr): Convert VOIDmode constants back to target's
18945 mode.
18946
24dbb440
GP
189472002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18948
18949 * doc/invoke.texi: Markup gcc as @command. Refer to
18950 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18951 of http://gcc.gnu.org/thanks.html.
18952
234e114c
DJ
189532002-01-08 Dale Johannesen <dalej@apple.com>
18954
18955 * config/rs6000/rs6000.md: Add missing int register
18956 target case to movdf_low.
18957
0d24f4d1
ZW
189582002-01-08 Zack Weinberg <zack@codesourcery.com>
18959
18960 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18961 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18962 (cppinit.o): Depend on except.h.
18963 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18964 s-specs): New rules.
18965
18966 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18967 Don't create specs.h/options.h/gencheck.h here. Remove
18968 unnecessary variable settings from last argument of AC_OUTPUT.
18969 * config.in, configure: Regenerate.
18970 * intl.c: Hardcode package name as "gcc".
18971
18972 * cppinit.c: Include except.h.
18973 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18974 appropriate.
18975 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18976 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18977 (!)USING_SJLJ_EXCEPTIONS.
18978 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18979
ed722f66
JM
189802002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18981
18982 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18983 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18984 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18985 documentation of obsolete macros.
18986 * system.h: Poison these macros.
18987 * config/d30v/d30v.h, config/ns32k/encore.h,
18988 config/stormy16/stormy16.h: Remove definitions and commented out
18989 definitions of obsolete macros.
18990
31e5e29a
NP
18991Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18992
18993 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18994 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18995 warnings.
18996
bc1fa59c
UW
189972002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18998
18999 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19000 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19001 to insn adjusting stack/frame pointer.
0d24f4d1 19002 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
19003 accept operands that cause the insn to be non-splittable.
19004
a8086abf
GS
190052002-01-08 Graham Stott <grahams@redhat.com>
19006
19007 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19008 (C_TYPE_FIELDS_VOLATILE): Likewise.
19009 (C_TYPE_BEING_DEFINED): Likewise.
19010 (C_IS_RESERVED_WORD): Likewise.
19011 (C_TYPE_VARIABLE_SIZE): Likewise.
19012 (C_DECL_VARIABLE_SIZE): Likewise.
19013 (C_MISSING_PROTOTYPE_WARNED): Likewise.
19014 (C_SET_EXP_ORIGINAL_CODE): Likewise.
19015 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19016 parenthesis.
19017 (C_DECL_ANTICIPATED): Likewise.
19018 (c_build_type_variant): Add parenthesis.
19019
3f595aa1
JM
190202002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19021
19022 * gcc.c (option_map): Remove --version.
19023 (process_command): Handle -fversion following the GNU Coding
19024 Standards. Partially addresses PR other/704.
19025
5bc5a8f9
GS
190262002-01-08 Graham Stott <grahams@redhat.com>
19027
19028 * combine.c (combine_instructions): Fix typo.
19029
16ec4ebf
GS
190302002-01-08 Graham Stott <grahams@redhat.com>
19031
19032 * debug.h: Use "tree" and "rtx" throughout.
19033
19034 * debug.c: Likewise.
19035
4b69f385
NC
190362002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
19037
19038 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19039 constant pool, use the pool's version of the symbol instead.
19040
57d1019b
RH
190412002-01-07 Richard Henderson <rth@redhat.com>
19042
19043 * regrename.c (find_oldest_value_reg): Ignore the value chain if
19044 the original register was copied in a mode with a fewer number of
19045 hard registers than the desired mode.
19046 (copyprop_hardreg_forward_1): Likewise.
19047 (debug_value_data): Fix loop test.
19048 * toplev.c (parse_options_and_default_flags): Reenable
19049 -fcprop-registers at -O1.
19050
190512002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 19052
0d24f4d1
ZW
19053 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19054 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 19055
0d24f4d1
ZW
19056 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19057 predicates.
fa066a23 19058
0d24f4d1 19059 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 19060
8f949e7e
JDA
190612002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
19062
19063 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19064 (pa_output_function_prologue): Output local label at the beginning of
19065 the prologue when profiling.
19066 (hppa_profile_hook): Use the local label rather than the function label.
19067 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19068
c62f2db5
AH
190692002-01-07 Aldy Hernandez <aldyh@redhat.com>
19070
0d24f4d1
ZW
19071 * config/rs6000/rs6000.c (print_operand): Remove extra space.
19072 (altivec_expand_unop_builtin): Fix thinko.
19073 (altivec_expand_binop_builtin): Same.
19074 (altivec_expand_ternop_builtin): Same.
19075 (altivec_expand_builtin): Same.
c62f2db5 19076
b5235ba7
RH
190772002-01-07 Richard Henderson <rth@redhat.com>
19078
19079 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19080
7d8ac293
JM
190812002-01-07 Jason Merrill <jason@redhat.com>
19082
19083 * unwind-dw2.c (execute_cfa_program): Use < again.
19084
571a03b8
JJ
190852002-01-07 Jakub Jelinek <jakub@redhat.com>
19086
19087 * predict.c (combine_predictions_for_insn): Avoid division by zero.
19088
2e951384
JJ
190892002-01-07 Jakub Jelinek <jakub@redhat.com>
19090
19091 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19092 Don't allow -1 - x -> ~x simplifications in the first pass.
19093
20e26713
AH
190942002-01-07 Aldy Hernandez <aldyh@redhat.com>
19095
0d24f4d1
ZW
19096 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19097 arguments.
19098 (altivec_expand_binop_builtin): Same.
19099 (altivec_expand_unop_builtin): Same.
19100 (print_operand): Fix typo.
19101 (bdesc_1arg): Add vupk* variants.
20e26713 19102
0d24f4d1 19103 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 19104
0d24f4d1 19105 * rs6000.md: Add altivec_vupk* variants.
20e26713 19106
4dd57c18
JM
191072002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
19108
19109 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19110 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19111 and last update dates.
19112
0341c5d2
JJ
191132002-01-07 Janis Johnson <janis187@us.ibm.com>
19114
19115 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19116
c7f3e0b0
MM
191172002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
19118
19119 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19120 * config/avr/avr.h (CPP_SPEC): Likewise.
19121 (LINK_SPEC): Likewise.
19122 (CRT_BINUTILS_SPECS): Likewise.
19123 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19124 * doc/invoke.texi (AVR Options): Document them.
19125
6ba4d630
JH
19126Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
19127
19128 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19129 LABEL_NUSES.
19130
6253d571
GS
191312002-01-07 Graham Stott <grahams@redhat.com>
19132
0d24f4d1
ZW
19133 * config/i386/i386.h: Update copyright date.
19134 (HALF_PIC_PTR): Add parenthesis.
19135 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19136 (CONSTANT_ALIGNMENT): Add parenthesis.
19137 (DATA_ALIGNMENT): Likewise.
19138 (LOCAL_ALIGNMENT): Likewise.
19139 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19140 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19141 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19142 (HARD_REGNO_NREGS): Add paranethesis.
19143 (VALID_SSE_REG_MODE): Whitespace.
19144 (VALID_MMX_REG_MODE): Whitespace.
19145 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19146 (ix86_hard_regno_mode_ok): Add parenthesis.
19147 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19148 (RETURN_IN_MEMORY): Whitespace.
19149 (N_REG_CLASSES): Add parenthesis.
19150 (INTEGER_CLASS_P): Add parenthesis and wrap.
19151 (FLOAT_CLASS_P): Likewise.
19152 (SSE_CLASS_P): Likewise.
19153 (MMX_CLASS_P): Likewise.
19154 (MAYBE_INTEGER_CLASS_P): Likewise.
19155 (MAYBE_FLOAT_CLASS_P): Likewise.
19156 (MAYBE_SSE_CLASS_P): Likewise.
19157 (MAYBE_MMX_CLASS_P): Likewise.
19158 (Q_CLASS_P): Likewise.
19159 (GENERAL_REGNO_P): Uppercase macro parameter.
19160 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19161 (FP_REGNO_P): Likewise.
19162 (ANY_FP_REGNO_P): Uppercase macro parameter.
19163 (SSE_REGNO_P): Likewise.
19164 (SSE_REGNO): Likewise.
19165 (SSE_REG_P): Likewise.
19166 (SSE_FLOAT_MODE_P): Likewise.
19167 (MMX_REGNO_P): Likewise.
19168 (MMX_REG_P):Likewise.
19169 (STACK_REG_P): Likewise.
19170 (NON_STACK_REG_P): Likewise.
19171 (STACK_TOP_P): Likewise.
19172 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19173 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19174 (SECONDARY_MEMORY_NEEDED): Likewise.
19175 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19176 (MD_ASM_CLOBBERS): Whitespace and wrap.
19177 (MUST_PASS_IN_STACK): Whitespace and wrap.
19178 (RETURN_POPS_ARGS): Add parenthesis.
19179 (INIT_CUMULATIVE_ARGS): Likewise.
19180 (FUNCTION_ARG): Likewise.
19181 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19182 (SETUP_INCOMING_VARARGS): Likewise.
19183 (BUILD_VA_LIST_TYPE): Add parenthesis.
19184 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19185 parenthsis.
19186 (EXPAND_BUILTIN_VA_ARG): Likewise.
19187 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19188 (INITIALIZE_TRAMPOLINE): Add parenthesis.
19189 (INITIAL_ELIMINATION_OFFSET): Likewise.
19190 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19191 (REGNO_OK_FOR_BASE_P): Likewise.
19192 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19193 (REGNO_OK_FOR_DIREG_P): Likewise.
19194 (REG_OK_FOR_INDEX_P): Whitespace.
19195 (REG_OK_FOR_BASE_P): Whitespace.
19196 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19197 parenthesis.
19198 (FIND_BASE_TERM): Fix typo.
19199 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
19200 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19201 (SYMBOLIC_CONST; Whitespace.
19202 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
19203 (ENCODE_SECTION_INFO): Whitespace.
19204 (FINALIZE_PIC): Remove do { ... } while (0).
19205 (PROMOTE_MODE): Wrap in do { ... } while (0).
19206 (CONST_COSTS): Whitespace.
19207 (RTX_COSTS): Add paramethesis, whitespace and wrap.
19208 (REGISTER_MOVE_COST): Add parenthesis.
19209 (MEMORY_MOVE_COST): Likewise.
19210 (EXTRA_CC_MODES): Whitespace.
19211 (SELECT_CC_MODE): Add parenthesis and whitespace.
19212 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19213 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19214 (ASM_OUTPUT_LABEL): Add paramethesis.
19215 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19216 (ASM_OUTPUT_REG_POP): Likewise.
19217 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19218 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 19219
07933f72
GS
19220 * config/i386/i386.c: Update copyright.
19221 (CHECK_STACK_LIMIT): Add parenthesis.
19222 (AT_BP): Uppercase macro parameter.
19223 (x86_64_int_parameter_registers): Constify.
19224 (x86_64_int_return_registers): Likewise.
19225 (ix86_compare_op0): Use rtx.
19226 (construct_container): Constify INTREG parameter.
19227 (function_arg): Use rtx.
19228
0b4d32c9
GS
19229 * diagnostic.h: Update copyright date.
19230 (output_buffer_state): Add parenthesis.
19231 (output_buffer_format_args): Likewise.
19232
6253d571
GS
19233 * combine.c (combine_instructions): Replace XEXP (links, 0)
19234 with link.
19235
68f3f6f1
L
192362002-01-06 H.J. Lu <hjl@gnu.org>
19237
19238 * cfgcleanup.c (thread_jump): Fix 2 typos.
19239
192402002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 19241
0d24f4d1 19242 * config.gcc: Add support for --enable-altivec.
480f7f3a 19243
13b8c631
CR
192442002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19245
19246 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19247
58ad89b1
JJ
192482002-01-06 Jakub Jelinek <jakub@redhat.com>
19249
19250 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19251 __objc_class_name_*.
19252
e403b4bc
CR
192532002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19254
19255 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19256
e41c7831
RH
192572002-01-06 Richard Henderson <rth@redhat.com>
19258
19259 * reorg.c (emit_delay_sequence): Remove death notes, not merely
19260 nop them out. Increment label reference count for REG_LABEL.
19261 (fill_slots_from_thread): Frob label reference count around
19262 delete_related_insns.
19263
3b3b1e32
RH
192642002-01-05 Richard Henderson <rth@redhat.com>
19265
19266 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19267 jump threading.
19268
c28abdf0
RH
192692002-01-05 Richard Henderson <rth@redhat.com>
19270
19271 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19272 * integrate.c (output_inline_function): Likewise.
19273 * toplev.c (rest_of_compilation): Do it here instead. Move call
19274 to remove_unnecessary_notes after emitting abstract instance.
19275 Force an emitted nested function to have its parent emited as well.
19276 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19277 for null.
19278 (rtl_for_decl_location): Do not look at reload data structures
19279 before reload has run.
19280
c4f2c499
KH
192812002-01-05 Kazu Hirata <kazu@hxi.com>
19282
19283 * cse.c: Fix formatting.
19284 * dwarf2asm.c: Likewise.
19285 * dwarf2out.c: Likewise.
19286 * explow.c: Likewise.
19287 * expmed.c: Likewise.
19288 * function.c: Likewise.
19289 * gcov.c: Likewise.
19290 * gencheck.c: Likewise.
19291 * genrecog.c: Likewise.
19292 * ggc-common.c: Likewise.
19293 * ggc-page.c: Likewise.
19294 * global.c: Likewise.
19295
cf0d9408
KH
192962002-01-05 Kazu Hirata <kazu@hxi.com>
19297
19298 * combine.c: Fix formatting.
19299
bedca03a
CR
193002002-01-05 Craig Rodrigues <crodrigu@bbn.com>
19301
19302 PR middle-end/1557
19303 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19304
0134bf2d
DE
193052002-01-05 David Edelsohn <edelsohn@gnu.org>
19306
19307 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19308 as 1 for __powerpc64__ as well.
19309
19310 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19311
19312 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19313 return it.
19314
9ca88d5a
DB
193152002-01-05 Daniel Berlin <dan@dberlin.org>
19316
19317 * lcm.c: Revert change, due to performance regression it causes on
19318 SPEC because it's slightly more conservative (sigh, I hate
19319 edge-based LCM).
0d24f4d1 19320
1c570418
JH
19321Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
19322
19323 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19324
d83bb9f7
NB
193252002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
19326
19327 * doc/cppinternals.texi: Update.
19328
3e0f61ac
HPN
193292002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
19330
19331 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19332 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19333 negatives.
19334 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
19335 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19336 kludge for pre-october-14th mmix versions to handle new-found bug
19337 with PUSHJ/PUSHGO and the register stack.
19338 * config/mmix/mmix.h (struct machine_function): Rename member
19339 has_call_value_without_parameters to has_call_without_parameters.
19340 All referers changed.
19341 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19342 TARGET_MASK_BRANCH_PREDICT): New macros.
19343 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19344 -mno-reg-stack-fill-bug-workaround.
19345 * config/mmix/mmix.md ("call"): Set struct machine member
19346 has_call_without_parameters.
19347
4deaa2f8
JH
19348Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
19349
19350 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19351
9f16e871
JH
19352Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
19353
19354 * cfgcleanup.c: Include tm_p.h
19355 (mark_effect): Fix handling of hard register; fix handling of SET
19356
96eb1157
KH
193572002-01-04 Kazu Hirata <kazu@hxi.com>
19358
19359 * config/h8300/h8300.md (anonymous patterns): Check that
19360 operands are registers before using REGNO on them.
19361
48180d68
RM
193622002-01-03 Roland McGrath <roland@frob.com>
19363
19364 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19365
b0832fe1
JJ
193662002-01-04 Jakub Jelinek <jakub@redhat.com>
19367
19368 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19369 * c-common.h (genrtl_expr_stmt_value): Likewise.
19370 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19371 (expand_expr_stmt_value): Add maybe_last argument.
19372 Don't warn about statement with no effect if it is the last statement
19373 in expression statement.
19374 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19375 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19376 expand_expr_stmt_value.
19377 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19378 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19379 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19380 as maybe_last to expand_expr_stmt_value.
19381
c1e14513
JL
19382Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
19383
0d24f4d1
ZW
19384 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19385 be passed in, do not build it.
19386 (c_begin_if_stmt): New function.
19387 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19388 * c-common.h (c_expand_start_cond): Update prototype.
19389 (c_begin_if_stmt): Prototype new function.
19390 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19391 * c-parse.in (if_prefix): Use c_begin_if_stmt,
19392 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 19393
b6ec437a
WC
193942002-01-04 William Cohen <wcohen@redhat.com>
19395
19396 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19397 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19398 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19399 * config/pa/som.h (ASM_FILE_START): Likewise.
19400
ead39bdf 194012002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
19402
19403 * lcm.c: Include df.h.
19404 Add available_transfer_function prototype.
19405 (compute_available): Rework to use iterative dataflow framework.
19406 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19407 with bb_info in df.h
19408 (available_transfer_function): New function.
19409
19410 * Makefile.in (lcm.o): add df.h to dependencies.
19411
551cc6fd
RH
194122002-01-04 Richard Henderson <rth@redhat.com>
19413
19414 * config/alpha/alpha.c (some_operand): Accept HIGH.
19415 (input_operand): Likewise; accept simple references to globals.
19416 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19417 (alpha_const_double_ok_for_letter_p): Likewise.
19418 (alpha_extra_constraint): Likewise.
19419 (alpha_preferred_reload_class): Likewise. Do not force
19420 symbolic constants to memory.
19421 (alpha_legitimate_address_p): Accept simple references
19422 to small_symbolic_operand.
19423 (alpha_legitimize_address): New arg scratch. Be prepared to be
19424 called when no_new_pseudos. Emit simple symbolic references.
19425 Split integers into low, high, and rest.
19426 (alpha_expand_mov): Use alpha_legitimize_address.
19427 (some_small_symbolic_mem_operand): New.
19428 (split_small_symbolic_mem_operand): New.
19429 * config/alpha/alpha-protos.h: Update.
19430 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19431 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19432 (EXTRA_CONSTRAINT): Likewise.
19433 (PREFERRED_RELOAD_CLASS): Likewise.
19434 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19435 (PREDICATE_CODES): Update.
19436 * config/alpha/alpha.md: New post-reload splitters to convert
19437 simplfied symbolic operands to the form that references $29.
19438 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19439 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19440
1eaea054
RH
194412002-01-03 Richard Henderson <rth@redhat.com>
19442
19443 * local-alloc.c (function_invariant_p): Update commentary.
19444
c4cc12b7
L
194452002-01-04 H.J. Lu <hjl@gnu.org>
19446
19447 * toplev.c (rest_of_compilation): Fix a typo when calling
19448 cleanup_cfg.
19449
173bf5be
KH
194502002-01-03 Kazu Hirata <kazu@hxi.com>
19451
19452 * c-common.c: Fix formatting.
19453 * diagnostic.c: Likewise.
19454 * doloop.c: Likewise.
19455 * dwarf2out.c: Likewise.
19456
187462ac
KH
194572002-01-03 Kazu Hirata <kazu@hxi.com>
19458
19459 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19460 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19461
5d8ebbd8
NB
194622002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19463
19464 * cpperror.c: Update comments and copyright.
19465 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19466 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19467
518c1311
JDA
194682002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
19469
19470 * collect2.c (main): Use strcmp when testing for "-shared".
19471
d15a58c0
NB
194722002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19473
19474 * cppmacro.c: Don't include intl.h. Update comments.
19475 (new_number_token): Allocate enough buffer for 64-bit unsigned
19476 integers; update prototype.
19477 * cppmain.c: Update comments.
19478
70f4f91c
WC
194792002-01-03 William Cohen <wcohen@redhat.com>
19480
19481 * function.h (struct function): Add profile.
19482 (current_function_profile): New.
19483 doc/extend.texi: Update documentation.
19484 * final.c (final_start_function): Use current_function_profile
19485 instead of profile_flag.
19486 (profile_after_prologue): Likewise.
19487 * function.c (expand_function_start): Likewise.
19488 (expand_function_start): Likewise.
c4cc12b7 19489 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
19490 (alpha_does_function_need_gp): Likewise.
19491 (alpha_expand_prologue): Likewise.
19492 * config/arm/arm.c (arm_expand_prologue): Likewise.
19493 thumb_expand_prologue: Likewise.
19494 * config/d30v/d30v.c (d30v_stack_info): Likewise.
19495 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19496 (fr30_expand_prologue): Likewise.
19497 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19498 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19499 * config/i386/i386.h (FINALIZE_PIC): Likewise.
19500 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19501 * config/i960/i960.c (i960_output_function_prologue): Likewise.
19502 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19503 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19504 (m32r_expand_prologue): Likewise.
19505 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19506 (m88k_expand_prologue): Likewise.
19507 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19508 * config/mips/mips.c (compute_frame_size): Likewise.
19509 (mips_expand_prologue): Likewise.
19510 (mips_can_use_return_insn): Likewise.
19511 * config/pa/elf.h (ASM_FILE_START): Likewise.
19512 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19513 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19514 * config/pa/som.h (ASM_FILE_START): Likewise.
19515 * config/romp/romp.c (romp_using_r14): Likewise.
19516 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19517 (rs6000_stack_info): Likewise.
19518 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 19519 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
19520 * config/v850/v850.c (compute_register_save_size): Likewise.
19521
cb1ac742
JJ
195222002-01-03 Jakub Jelinek <jakub@redhat.com>
19523
19524 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19525 gen_lowpart_common fails, use gen_lowpart_SUBREG.
19526
61d951df 195272002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 19528
61d951df
TC
19529 * darwin.c (machopic_output_possible_stub_label): Don't generate
19530 stub routines for pseudo-stubs which we've just defined.
19531
505ddab6
KH
195322002-01-03 Kazu Hirata <kazu@hxi.com>
19533
19534 * builtins.c: Fix formatting.
19535 * c-typeck.c: Likewise.
19536 * combine.c: Likewise.
19537 * expr.c: Likewise.
19538 * loop.c: Likewise.
19539
b7e30d8a
AS
195402002-01-03 Andreas Schwab <schwab@suse.de>
19541
19542 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19543 and return true if _cpp_push_next_buffer pushed a new include
19544 file.
19545 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19546 _cpp_pop_file_buffer did not push a new file.
19547 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19548
ff81832f
EC
195492002-01-02 Eric Christopher <echristo@redhat.com>
19550
19551 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19552 FIND_REG_INC_NOTE call. Update copyright.
19553 * loop.c (canonicalize_condition): Ditto.
19554 * reorg.c (delete_scheduled_jump): Ditto.
19555
8e42ace1
KH
195562002-01-03 Kazu Hirata <kazu@hxi.com>
19557
19558 * gcse.c: Fix formatting.
19559
fb2bf631
GS
195602002-01-03 Graham Stott <grahams@redhat.com>
19561
19562 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19563 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 19564 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
19565
19566 * system.h: Move forward defs for struct tags rtx_def, union_tree,
19567 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 19568 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
19569
195702002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
19571
19572 * tree.h: Update copyright date.
19573 (IS_EXPR_CODE_CLASS): Add parenthesis.
19574 (TREE_SET_CODE): Add whitespace.
19575 (TREE_CHECK): Add parenthesis.
19576 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19577 (CST_OR_CONSTRUCTOR_CHECK):
19578 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19579 (TREE_SYMBOL_REFERENCED): Whitespace.
19580 (INT_CST_LT): Likewise.
19581 (INT_CST_LT_UNSIGNED): Likewise.
19582 (tree_real_cst): Unwrap comment.
19583 (tree_string): Likewise.
19584 (tree_complex): Likewise.
19585 (IDENTIFIER_POINTER): correct cast.
19586 (SAVE_EXPR_CONTEXT): Whitespace.
19587 (EXPR_WFL_FILENAME_NODE): Likewise.
19588 (EXPR_WFL_FILENAME): Remove parenthesis.
19589 (DECL_ORIGIN): Add parenthesis.
19590 (DECL_FROM_INLINE): Use NULL_TREE.
19591 (build_int_2): Whitespace.
19592 (build_type_variant): Add parenthesis.
19593
19594 * gcc/jcf-parse.c: Update copyright date.
19595 (yyparse): Constify resource_filename.
19596
f52eda29
GS
195972002-01-03 Graham Stott <grahams@redhat.com>
19598
19599 * rtl.h: Update copyright date.
19600 (RTL_CHECK1): Wrap long line.
19601 (RTL_CHECK2): Likewise.
19602 (RTL_CHECKC1): Wrap long line and whitespace.
19603 (RTL_CHECKC2): Likewise.
19604 (XWINT): Whitespace.
19605 (XINT): Likewise.
19606 (XSTR): Likewise.
19607 (XEXP): Likewise.
19608 (XVEC): Likewise.
19609 (XMODE): Likewise.
19610 (XBITMAP): Likewise.
19611 (XTREE): Likewise.
19612 (XBBDEF): Likewise.
19613 (XTMPL): Likewise.
19614 (X0WINT): Likewise.
19615 (X0INT):Likewise.
19616 (X0UINT): Likewise.
19617 (X0STR): Likewise.
19618 (X0EXP): Likewise.
19619 (X0VEC): Likewise.
19620 (X0MODE): Likewise.
19621 (X0BITMAP): Likewise.
19622 (X0TREE): Likewise.
19623 (X0BBDEF): Likewise.
19624 (X0ADVFLAGS): Likewise.
19625 (X0CSELIB): Likewise.
19626 (X0MEMATTR): Likewise.
19627 (XCWINT): Likewise.
19628 (XCINT): Likewise.
19629 (XCUINT): Likewise.
19630 (XCSTR): Likewise.
19631 (XCEXP): Likewise.
19632 (XCVEC): Likewise.
19633 (XCMODE): Likewise.
19634 (XCBITMAP): Likewise.
19635 (XCTREE): Likewise.
19636 (XCBBDEF): Likewise.
19637 (XCADVFLAGS): Likewise.
19638 (XCCSELIB): Likewise.
19639 (XC2EXP): Likewise.
19640 (INSN_UID): Likewise.
19641 (PREV_INSN): Likewise.
19642 (PATTERN): Likewise.
19643 (INSN_CODE): Likewise.
19644 (PUT_REG_NOTE_KIND): Likewise.
19645 (CODE_LABEL_NUMBER): Likewise.
19646 (NOTE_SOURCE_FILE): Likewise.
19647 (NOTE_BLOCK): Likewise.
19648 (NOTE_EH_HANDLER): Likewise.
19649 (NOTE_RANGE_INFO): Likewise.
19650 (NOTE_LIVE_INFO): Likewise.
19651 (NOTE_BASIC_BLOCK): Likewise.
19652 (NOTE_EXPECTED_VALUE): Likewise.
19653 (NOTE_LINE_NUMBER): Likewise.
19654 (LABEL_NAME): Likewise.
19655 (LABEL_NUSES): Likewise.
19656 (LABEL_ALTERNATE_NAME): Likewise.
19657 (ADDRESSOF_DECL): Likewise.
19658 (JUMP_LABEL): Likewise.
19659 (LABEL_NEXTREF): Likewise.
19660 (REGNO): Likewise.
19661 (ORIGINAL_REGNO: Likewise.
19662 (HARD_REGISTER_NUM_P): Add parenthesis.
19663 (SUBREG_REG): Whitespace.
19664 (SUBREG_BYTE): Likewise.
19665 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19666 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19667 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19668 (ASM_OPERANDS_INPUT_VEC): Likewise.
19669 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19670 (ASM_OPERANDS_INPUT): Likewise.
19671 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19672 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19673 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19674 (ASM_OPERANDS_INPUT_MODE): Likewise.
19675 (ASM_OPERANDS_SOURCE_FILE): Likewise.
19676 (ASM_OPERANDS_SOURCE_LINE): Likewise.
19677 (MEM_SET_IN_STRUCT_P): Minor reformat.
19678 (TRAP_CONDITION): Whitespace.
19679 (TRAP_CODE): Likewise.
19680 (COND_EXEC_TEST): Likewise.
19681 (COND_EXEC_CODE): Likewise.
19682 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19683 (PHI_NODE_P): Add parenthesis.
19684 (plus_constant): Whitespace and add parenthesis.
19685
e03f5d43
KH
196862002-01-03 Kazu Hirata <kazu@hxi.com>
19687
19688 * config/avr/avr.c: Fix comment typos.
19689 * config/c4x/c4x.md: Likewise.
19690 * config/dsp16xx/dsp16xx.h: Likewise.
19691 * config/dsp16xx/dsp16xx.md: Likewise.
19692 * config/i386/i386.md: Likewise.
19693 * config/ia64/ia64.c: Likewise.
19694 * config/m32r/m32r.h: Likewise.
19695 * config/m68hc11/m68hc11.md: Likewise.
19696 * config/mmix/mmix.c: Likewise.
19697 * config/mn10200/mn10200.c: Likewise.
19698 * config/romp/romp.c: Likewise.
19699 * config/sh/sh.c: Likewise.
19700 * config/stormy16/stormy16.c: Likewise.
19701 * config/stormy16/stormy16.h: Likewise.
19702 * config/stormy16/stormy16.md: Likewise.
19703
97e300e9
GS
197042002-01-03 Graham Stott <grahams@redhat.com>
19705
19706 * loop.h: Update copyright date.
0d24f4d1
ZW
19707 (LOOP_MOVABLES): Fix typo.
19708 (LOOP_REGS): Likewise.
19709 (LOOP_IVS): Likewise.
ff81832f 19710
745b26b3
GS
197112002-01-03 Graham Stott <grahams@redhat.com>
19712
19713 * cppinit.c: Update copyright date.
19714 Don't include output.h
19715 * Makefile.in: Update copyright date.
19716 Update dependency.
19717
0a379b7a
CR
197182002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
19719
19720 PR c/5226
19721 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19722 (-pthread) Add to RS/6000 options.
19723
a8154559
KH
197242002-01-02 Kazu Hirata <kazu@hxi.com>
19725
19726 * except.c: Fix comment typos.
19727 * loop.c: Likewise.
19728 * varasm.c: Likewise.
19729 * doc/tm.texi: Fix a typo.
19730
e6ecc89b
JJ
197312002-01-02 Jakub Jelinek <jakub@redhat.com>
19732
19733 * c-typeck.c (output_init_element): Allow initializing static storage
19734 duration objects with compound literals.
19735
d1094b40
RH
197362002-01-02 Richard Henderson <rth@redhat.com>
19737
19738 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19739 after abusing it.
19740
0c5d8c82
KG
197412002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19742
5e65297b
KG
19743 * gcc.c (default_compilers): Const-ify.
19744 * mips-tdump.c (stab_names): Likewise.
19745 * mips-tfile.c (map_coff_types, map_coff_storage,
19746 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19747 pseudo_ops_t, pseudo_ops): Likewise.
19748 * protoize.c (default_include): Likewise
19749
0c5d8c82
KG
19750 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19751 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19752 Add array size in declaration.
19753 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19754 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19755 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19756 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19757 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19758 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19759 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19760 emtens, make_nan): Const-ify.
19761 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19762 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19763
817e13c4
JM
197642002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
19765
19766 * config.gcc (ia64-*-*): Set extra_headers.
19767 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
19768 * config/alpha/t-osf: Remove.
19769 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19770
98095e2b
DE
197712002-01-02 David Edelsohn <edelsohn@gnu.org>
19772
19773 * config/rs6000/t-aix43: Revert previous change.
19774
a4200657
JM
197752002-01-02 Jason Merrill <jason@redhat.com>
19776
19777 * c-decl.c (c_expand_body): Call outlining_inline_function when
19778 emitting an inline function out of line.
19779
54ba1f0d
RH
197802002-01-02 Richard Henderson <rth@redhat.com>
19781
19782 * dwarf2out.c (limbo_die_node): Add created_for member.
19783 (new_die): New argument created_for. Update all callers.
19784 (mark_limbo_die_list): New.
19785 (dwarf2out_init): Register limbo_die_list as a root.
19786 (dwarf2out_finish): Force insert limbo dies into their function
19787 context.
19788
323728aa
NS
197892002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19790
19791 PR c++/5089
19792 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19793
aefc5826
KH
197942002-01-02 Kazu Hirata <kazu@hxi.com>
19795
19796 * config/h8300/fixunssfsi.c: Update copyright.
19797 Fix comment typos.
19798 Fix formatting.
19799 * config/h8300/h8300.c: Update copyright.
19800 Eliminate warnings.
19801
b1c9bc51
KH
198022002-01-02 Kazu Hirata <kazu@hxi.com>
19803
19804 * config/romp/romp.c: Fix comment formatting.
19805 * config/romp/romp.h: Likewise.
19806 * config/romp/romp.md: Likewise.
19807 * config/s390/s390.c: Likewise.
19808 * config/stormy16/stormy16.c: Likewise.
19809 * config/stormy16/stormy16.h: Likewise.
19810
1574ef13
AO
198112002-01-02 Alexandre Oliva <aoliva@redhat.com>
19812
19813 * c-common.h (genrtl_expr_stmt_value): Declare.
19814 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19815 (genrtl_goto_stmt_value): ... this new function. Pass new
19816 argument down to expand_expr_stmt_value, taking
19817 TREE_ADDRESSABLE into account.
19818 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19819 STMT_EXPR as addressable, i.e., one whose result we want.
19820 * expr.c (expand_expr): Don't save expression statement value
19821 of labeled_blocks or loop_exprs.
19822 * stmt.c (expand_expr_stmt): Redirect to...
19823 (expand_expr_stmt_value): ... this new function. Use new
19824 argument to tell whether to save expression value.
19825 (expand_end_stmt_expr): Reset last_expr_type and
19826 last_expr_value if we don't have either.
19827 * tree-inline.c (declare_return_variable): Mark its use
19828 statement as addressable.
19829 * tree.h: Document new use of TREE_ADDRESSABLE.
19830 (expand_expr_stmt_value): Declare.
19831
252b88f7
TR
198322002-01-01 Tom Rix <trix@redhat.com>
19833
19834 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19835 rs6000_emit_allocate_stack.
19836
29f7a208
JM
198372002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19838
19839 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19840 ${srcdir}/ginclude/ to every entry in extra_headers.
19841 * configure: Regenerate.
19842 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19843 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19844 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19845 * ginclude/proto.h: Rename to config/convex/proto.h.
19846
2cc2d4bb
RK
19847Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19848
19849 * attribs.c (handle_vector_size_attribute): Use host_integerp
19850 and tree_int_cst; remove warnings.
19851 * caller-save.c (insert_restore): Add cast to get rid of warning.
19852 (insert_save): Likewise.
19853 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19854 * regmove.c (find_matches): Add temporary var to kill a warning.
19855
f01c9bcd
DR
198562002-01-01 Douglas B Rupp <rupp@gnat.com>
19857
16b61764
DR
19858 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19859 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19860 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19861 (vms-dwarf2eh.o): Add Makefile rule.
19862 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19863 * config/alpha/vms-dwarf2eh.asm: New file.
19864
f01c9bcd
DR
19865 * gcc.c (delete_if_ordinary): Delete all versions.
19866
91312b81
HPN
198672002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19868
19869 * config/mmix/mmix.md: Update FIXME to not mention
19870 define_constants.
19871 (MMIX_rJ_REGNUM): New define_constants constant.
19872 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19873 "*movdicc_real"): Adjust contraints formatting.
19874 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19875 for branch prediction.
19876 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19877 output template.
19878 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19879 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19880 number. Delete related FIXMEs.
19881 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19882 from number to MMIX_rJ_REGNUM.
19883 (TARGET_MASK_BRANCH_PREDICT): New.
19884 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19885 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19886 value. Add -mbranch-predict and -mno-branch-predict.
19887 (TARGET_VERSION): Drop date.
19888 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19889 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19890 for finding out global symbols.
19891 (mmix_asm_output_labelref): Revert condition for global symbol.
19892 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19893 (mmix_print_operand_punct_valid_p): A '+' is valid.
19894
619acae7 19895See ChangeLog.6 for earlier changes.
This page took 2.589958 seconds and 5 git commands to generate.