]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
fd879138c04d7115521ce76a18f89005d74badab
[gcc.git] / gcc / ChangeLog
1 2002-05-05 David S. Miller <davem@redhat.com>
2
3 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4
5 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6
7 * cse.c: Fix formatting.
8 * emit-rtl.c: Likewise.
9
10 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11
12 * genautomata.c (initiate_states): Add additional guard to
13 initialize `units_array'.
14
15 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
16
17 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
18 process_unit_to_form_the_same_automaton_unit_lists,
19 form_the_same_automaton_unit_lists
20 check_unit_distributions_to_automata): New prototypes and
21 functions.
22 (check_automata): Rename it into `check_automata_insn_issues'.
23 (unit_decl): New fields `the_same_automaton_unit' and
24 `the_same_automaton_message_reported_p'.
25 (unit_decl_t): New typedef.
26 (the_same_automaton_lists): New gloval variable.
27 (unit_regexp, unit_set_el, units_array, units_cmp,
28 output_get_cpu_unit_code_func): Use the typedef.
29 (evaluate_max_reserv_cycles): Increment
30 `description->max_insn_reserv_cycles'.
31 (initiate_states): Don't increment `max_cycles_num'.
32 (transform_insn_regexps): Move code around transformation of
33 regexps from `generate'.
34 (generate): Remove call of `transform_insn_regexps'.
35 (expand_automata): Call `transform_insn_regexps' and
36 `check_unit_distributions_to_automata'. Check errors before
37 `generate'.
38
39 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
40 automaton `ultrasparc3_1'.
41
42 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
43
44 * c-common.c (c_common_init): Set up CPP arithmetic.
45 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
46 something reasonable for the host.
47 (sanity_checks): Add checks.
48 (cpp_read_main_file): Call sanity_checks() from here...
49 (cpp_post_options): ... not here.
50 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
51 * cpplib.h (struct cpp_options): New member int_precision.
52
53 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
54
55 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
56
57 2002-05-04 David S. Miller <davem@redhat.com>
58
59 * config/sparc/linux.h, config/sparc/linux64.h
60 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
61
62 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
63 more RTX codes.
64 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
65
66 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
67 of SETs.
68
69 2002-05-05 Tim Josling <tej@melbpc.org.au>
70
71 * treelang; New directory for new sample language treelang.
72
73 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
74
75 * Makefile.in (c-lex.o): Update.
76 * c-lex.c: Include target.h.
77 (cb_register_builtins): New.
78 (init_c_lex): Set builtins callback.
79 * c-lex.h (cpp_define, cpp_assert): New prototypes.
80 * cppinit.c (init_builtins): Use callback, including for
81 GXX_WEAK.
82 * cpplib.h (struct cpp_callbacks): New member.
83 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
84 (TARGET_INITIALIZER): Update.
85 * target.h (struct gcc_target): New hook.
86 * tree.c (default_register_cpp_builtins): New.
87 * tree.h (default_register_cpp_builtins): New.
88 doc:
89 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
90
91 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
92
93 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
94 (cpp_post_options): Move sanity checks to...
95 (sanity_checks): New.
96 * cpplex.c (maybe_read_ucs): Fix prototype.
97 (parse_string, cpp_parse_escape): Cast for %c format specifier.
98 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
99 if necessary.
100
101 2002-05-04 Bernd Schmidt <bernds@redhat.com>
102
103 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
104 builtins. Use V2DI patterns instead of TI for logical operations.
105 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
106 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
107 (ix86_expand_builtins): Change the pattern used for movntdq.
108 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
109 sse2_nandv2di3): New patterns.
110 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
111 on operands.
112 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
113 (cvtdq2pd): Correct mode on operand 1.
114 (sse2_umulsidi3): Describe without unspec.
115 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
116 machine modes.
117 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
118 (ashlv2di3): Likewise, from sse2_ashlv2di3.
119 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
120 ashlv4si3, ashlv2di3): Use SImode for shift count.
121 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
122 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
123 New patterns.
124 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
125 New typedefs.
126 (__m128i, __m128d): New macros.
127 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
128 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
129 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
130 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
131 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
132 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
133 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
134 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
135 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
136 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
137 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
138 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
139 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
140 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
141 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
142 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
143 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
144 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
145 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
146 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
147 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
148 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
149 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
150 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
151 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
152 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
153 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
154 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
155 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
156 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
157 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
158 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
159 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
160 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
161 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
162 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
163 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
164 functions.
165 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
166 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
167
168 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
169
170 * dwarf2out.c: Fix formatting.
171 * varasm.c: Likewise.
172
173 2002-05-04 David Edelsohn <edelsohn@gnu.org>
174
175 PR c/6543
176 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
177 clobber and use result as temporary value.
178
179 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
180
181 * expr.c (force_operand): Use expand_simple_* to handle more
182 cases.
183
184 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
185
186 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
187 and sign-extension.
188 (lex_charconst): Update for change in prototype of
189 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
190 appropriately.
191 * cpphash.h (BITS_PER_CPPCHAR_T): New.
192 * cppinit.c (cpp_create_reader): Initialize them for no
193 change in semantics.
194 (cpp_post_options): Add sanity checks.
195 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
196 and truncation issues. Calculate in type cppchar_t.
197 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
198 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
199 run-time dependent precision correctly. Return whether the
200 result is signed or not.
201 * cpplib.c (dequote_string): Use cppchar_t; update.
202 * cpplib.h (cppchar_signed_t): New.
203 struct cpp_options): New precision members.
204 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
205 * cppexp.c (eval_token): Update.
206
207 2002-05-03 David S. Miller <davem@redhat.com>
208
209 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
210 * config/sparc/sparc.c (sparc_rtx_costs): New function
211 implementing RTX_COSTS and CONST_COSTS.
212 * config/sparc/sparc.h (CONST_COSTS): Delete.
213 (RTX_COSTS_CASES): Define.
214 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
215 the work.
216
217 * config/sparc/sparc.md (DFA schedulers): Split out...
218 * config/sparc/cypress.md, config/sparc/hypersparc.md,
219 config/sparc/sparclet.md, config/sparc/supersparc.md,
220 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
221
222 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
223 checks on it, always defined for Sparc.
224
225 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
226 Tweak, and add more detailed comments.
227
228 2002-05-03 Zack Weinberg <zack@codesourcery.com>
229
230 * Re-apply patch accidentally reverted with
231 DFA scheduler merge: remove all rules and variables to slurp
232 source files out of libiberty and rebuild them with HOST_CC.
233 ($(HOST_PREFIX_1)varray.o): New rule.
234 (genattrtab rule): Word wrap.
235
236 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
237
238 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
239 (CPP_SUBTARGET_SPEC): Define.
240 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
241 cpp_subtarget specs.
242 (CPP_SPEC): Redefine to include %(cpp_subtarget).
243
244 2002-05-03 David S. Miller <davem@redhat.com>
245
246 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
247 * target.h (struct gcc_target): Delete cycle_display member.
248
249 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
250 (rtx_needs_barrier): Delete reference to cycle_display unspec.
251 (ia64_sched_reorder2): Mention need for cycle display handling
252 once such notes exist.
253
254 2002-05-03 Richard Henderson <rth@redhat.com>
255
256 * real.c (etoasc): Strip most trailing zeros for clarity.
257 * sched-vis.c: Include real.h.
258 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
259 * Makefile.in (sched-vis.o): Add real.h.
260
261 2002-05-03 David S. Miller <davem@redhat.com>
262
263 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
264 no longer needed.
265
266 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
267
268 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
269 when we get an out of range literal.
270 (altivec_expand_ternop_builtin): Same.
271 (altivec_expand_unop_builtin): Same.
272 (altivec_expand_builtin): Same, for dss.
273 (altivec_expand_builtin): Use trees instead of rtl when
274 determining literal argument validity.
275
276 2002-05-03 David S. Miller <davem@redhat.com>
277
278 Delete cycle display scheduling hook.
279 * config/ia64/ia64.c (ia64_cycle_display,
280 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
281 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
282 and use emit_insn_before instead of ia64_emit_insn_before.
283 * config/ia64/ia64.md (unspec usage): Delete cycle display.
284 (cycle_display): Delete insn pattern.
285 * config/sparc/sparc.md (unspec usage): Delete cycle display.
286 (cycle_display): Delete insn pattern.
287 * config/sparc/sparc.c (sparc_cycle_display,
288 TARGET_SCHED_CYCLE_DISPLAY): Delete.
289 * doc/md.texi (cycle_display): Don't mention.
290 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
291
292 2002-05-03 Richard Henderson <rth@redhat.com>
293
294 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
295 * recog.h: Declare them.
296
297 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
298 * config/sparc/sparc.md: Use store_data_bypass_p instead.
299 * config/sparc/sparc-protos.h: Update.
300
301 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
302
303 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
304 -D__arch64__. Add -D_LP64.
305 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
306 from sparc.h.
307 (CPP_ARCH64_SPEC): Likewise.
308 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
309 (NO_BUILTIN_SIZE_TYPE): Undef.
310
311 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
312
313 * genautomata.c (min_issue_delay_pass_states): Change return type
314 in the prototype.
315 (min_issue_delay_pass_states): Change the algorithm.
316 (min_issue_delay): Set up min_insn_issue_delay for the state.
317 (output_min_issue_delay_table): Interchange the nested loops and
318 and initiate min_insn_issue_delay for states.
319
320 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
321
322 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
323 jump is simplejump.
324
325 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
326
327 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
328 sequence.
329
330 2002-05-03 Richard Henderson <rth@redhat.com>
331
332 PR opt/6534
333 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
334 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
335 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
336 code before JUMP, not EARLIEST.
337
338 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
339
340 * c-format.c (check_format_info_main): Don't check for presence of
341 parameter for * width until after operand number has been read,
342 and only check for it if format parameters are available.
343 Fixes PR c/6547.
344
345 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
346
347 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
348 (LINK_SPEC): Undef before defining.
349
350 2002-05-03 Jakub Jelinek <jakub@redhat.com>
351
352 PR preprocessor/6489
353 * tradcpp.c (fixup_newlines): New.
354 (main, finclude): Use it.
355
356 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
357
358 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
359 * config/mips/mips.c (mips_unique_section): Strip encoding from
360 decl name.
361
362 2002-05-03 Jakub Jelinek <jakub@redhat.com>
363
364 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
365 mode.
366
367 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
368
369 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
370 (Specific): Removed buildstats references.
371 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
372 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
373 Accomodate Solaris versions beyond 8.
374 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
375 (Specific, *-*-solaris2.8): Removed, obsolete.
376
377 2002-05-03 Jakub Jelinek <jakub@redhat.com>
378
379 PR target/6542
380 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
381 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
382 fill leaf_reg_remap with identity.
383 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
384
385 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
386
387 * config/h8300/crti.asm: Remove trailing spaces.
388 * config/h8300/h8300.c: Likewise.
389 * config/h8300/lib1funcs.asm: Likewise.
390
391 2002-05-02 Jason Merrill <jason@redhat.com>
392
393 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
394 * c-decl.c (c_init_decl_processing): Use it.
395 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
396 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
397 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
398
399 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
400
401 * regrename.c: Fix formatting.
402 * tree.c: Likewise.
403
404 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
405
406 * i386.md (attribute memory): Handle compares properly.
407
408 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
409
410 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
411 to none.
412
413 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
414
415 * function.c: Fix formatting.
416
417 2002-05-02 Jan Hubicka <jh@suse.cz>
418
419 * haifa-sched.c (schedule_insn): Print table of instructions and
420 reservations.
421 (sched_block): Do not print ready list at verbosity level 1.
422 * sched-vis.c (print_insn): Make global.
423 * sched-ebb.c (ebb_print_insn): Rename from...
424 (print_insn): ... this one.
425 * sched-int.h (print_insn): Declare
426
427 2002-05-02 Richard Henderson <rth@redhat.com>
428
429 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
430 emitted by cycle_display.
431
432 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
433
434 * doc/install.texi (*-*-freebsd*): Update to latest status.
435
436 2002-05-02 Jakub Jelinek <jakub@redhat.com>
437
438 PR target/6540
439 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
440 * config/float-sparc.h: Assume 128-bit long double if
441 __LONG_DOUBLE_128__ is defined.
442
443 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
444
445 * genattrtab.c (write_function_unit_info): Add a dummy element
446 when num_units == 0.
447
448 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
449
450 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
451 TYPE_MODE (double_type_node) instead of DFmode.
452
453 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
454
455 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
456 jumps post reload.
457 * toplev.c (rest_of_compilation): Revert Richard's patch.
458
459 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
460
461 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
462
463 2002-05-02 Catherine Moore <clm@redhat.com>
464
465 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
466
467 2002-05-02 Kazu Hirata <kazu@hxi.com>
468
469 * combine.c: Fix comment typos.
470 * expr.c: Likewise.
471 * genautomata.c: Likewise.
472 * stmt.c: Likewise.
473 * tree.h: Likewise.
474
475 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
476
477 * doc/install.texi: State GNAT version requirements.
478
479 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
480
481 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
482 of the frame pointer or arg pointer register which strict register
483 checking is not enabled.
484
485 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
486
487 * gcc.dg/altivec-8.c: New.
488
489 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
490 PRE_INC and PRE_DEC for altivec modes.
491
492 2002-05-01 Bruce Korb <bkorb@gnu.org>
493
494 * fixinc/check.tpl(set-writable): make sure the function exists first
495 * fixinc/inclhack.def(alpha_assert): fix test_text
496 * fixinc/tests/base/assert.h: add in missing result
497
498 2002-05-01 Jeff Law <law@redhat.com>
499
500 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
501 'T' constraint.
502
503 2002-05-01 Joel Brobecker <brobecker@gnat.com>
504
505 * dbxout.c (dbxout_type): Emit size information for range types,
506 as well, but only when using GDB extensions.
507
508 2002-05-01 Richard Henderson <rth@redhat.com>
509
510 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
511 target-independent gnu binutils date test.
512
513 2002-05-01 Richard Henderson <rth@redhat.com>
514
515 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
516 info before expunging the block.
517
518 2002-05-01 Jakub Jelinek <jakub@redhat.com>
519
520 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
521 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
522 -M -or -MM is in effect.
523
524 2002-05-01 Zack Weinberg <zack@codesourcery.com>
525
526 * config.gcc: Correct test of --enable-obsolete. Obsolete all
527 A29k configurations.
528 * doc/install.texi: Update to match.
529
530 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
531
532 PR bootstrap/6514
533 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
534 for duplicates. Always loop over whole list.
535
536 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
537
538 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
539
540 2002-05-01 Joel Sherrill <joel@OARcorp.com>
541
542 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
543 support routines.
544
545 2002-05-01 Joel Sherrill <joel@OARcorp.com>
546
547 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
548
549 2002-05-01 David Edelsohn <edelsohn@gnu.org>
550
551 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
552 (nabs_nopower): Same.
553 (floatdisf2): New pattern.
554 (absdi2): Convert to define_insn_and_split.
555 (nabsdi2): Same.
556 (trunctfsf2): Same.
557 (floatditf2): Same.
558 (floatsitf2): Same.
559 (fix_trunctfdi2): Same.
560 (fix_trunctfsi2): Same.
561
562 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
563
564 * doc/install.texi: Update Texinfo version requirement
565 documentation.
566
567 2002-05-01 Jakub Jelinek <jakub@redhat.com>
568
569 PR target/6512, PR target/5628
570 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
571 when memory is not aligned.
572 (movdf_insn_v9only_vis): Likewise.
573 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
574 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
575 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
576
577 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
578
579 * gcc.dg/altivec-7.c: New.
580
581 * config/rs6000/altivec.h: Cleanup.
582
583 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
584
585 * doc/invoke.texi (Option Summary): Add -mvrsave=.
586 (RS/6000 and PowerPC Options): Document -mvrsave=.
587
588 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
589 (rs6000_altivec_vrsave_string): Same.
590 (rs6000_override_options): Call rs6000_parse_vrsave_option.
591 (rs6000_parse_vrsave_option): New.
592 (rs6000_stack_info): Only generate vrsave instructions when
593 TARGET_ALTIVEC_VRSAVE.
594
595 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
596 (rs6000_altivec_vrsave_string): Define extern.
597 (rs6000_altivec_vrsave): Same.
598 (TARGET_ALTIVEC_VRSAVE): New.
599
600 2002-04-30 Richard Henderson <rth@redhat.com>
601
602 PR opt/6516
603 * toplev.c (rest_of_compilation): Don't run cross-jump before
604 bb-reorder.
605
606 2002-04-30 Tom Rix <trix@redhat.com>
607
608 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
609 check which_alternative.
610
611 2002-04-30 Kazu Hirata <kazu@hxi.com>
612
613 * cpplex.c: Fix comment formatting.
614 * function.c: Likewise.
615 * integrate.c: Likewise.
616 * regrename.c: Likewise.
617 * sibcall.c: Likewise.
618 * simplify-rtx.c: Likewise.
619 * tree-inline.c: Likewise.
620
621 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
622
623 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
624 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
625 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
626 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
627 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
628 * pa/x-ada: New file. Define ADA_CFLAGS.
629
630 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
631
632 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
633 from MMIX_LAST_REGISTER_FILE_REGNUM.
634 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
635 (struct machine_function): New member highest_saved_stack_register
636 previously static variable in mmix.c.
637 (MACHINE_DEPENDENT_REORG): Define.
638 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
639 (MMIX_OUTPUT_REGNO): New.
640 (mmix_target_asm_function_prologue): Move calculation of last used
641 saved-stack-register into...
642 (mmix_machine_dependent_reorg): New function. Update to also handle
643 !TARGET_ABI_GNU.
644 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
645 register names, simplify somewhat by new variable regno.
646 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
647 register.
648 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
649 emitting register names.
650 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
651 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
652 Remove fixed FIXME.
653 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
654 Declare.
655
656 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
657
658 2002-04-30 Richard Henderson <rth@redhat.com>
659
660 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
661 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
662 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
663 emit_tfmode_cvt): New.
664 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
665 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
666 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
667 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
668 * config/sparc/sparc-protos.h: Update.
669
670 2002-04-30 Janis Johnson <janis187@us.ibm.com>
671
672 * install.texi (Final install): Add to the list of info to include
673 in a report of a successful bootstrap, and add link to 3.1 list.
674
675 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
676
677 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
678 (mode): Add vector modes
679 (i387): Kill attribute.
680 (unit): New attribute.
681 (length_immediate): Grok new types.
682 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
683 (modrm): Use "unit".
684 (memory): Handle MMX/SSE properly.
685 (scheduling descriptions): Kill uses of fop1.
686 (sse, mmx, fp patterns): Set type and mode properly.
687
688 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
689
690 * pa.c (override_options): Default to PA8000 scheduling.
691 * doc/invoke.texi (HP-PA options): Mention newly added 7300
692 scheduling parameter.
693
694 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
695 handling of double precision multiplies.
696
697 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
698 fpdiv and fpsqrt instructions.
699 (7200 & 7300 scheduling): Fix typo in handling of
700 store-load and store-store penalties.
701
702 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
703
704 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
705 mips. Add two missing commas.
706
707 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
708
709 * doc/contrib.texi (Contributors): Update Paolo Carlini's
710 and Benjamin Kosnik's entries.
711
712 2002-04-29 David S. Miller <davem@redhat.com>
713
714 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
715 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
716 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
717 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
718
719 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
720
721 * combine.c (find_split_point): Use gen_int_mode.
722
723 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
724
725 Merging code from dfa-branch:
726
727 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
728
729 * genautomata.c (output_reserv_sets): Fix typo.
730
731 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
732
733 * genautomata.c (output_reserv_sets): Remove
734 next_cycle_output_flag.
735
736 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
737
738 * sched-rgn.c (init_ready_list): Make the DFA code handle
739 USE/CLOBBER insns in the same way as the traditional
740 scheduler.
741 (new_ready): Similarly..
742
743 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
744
745 * haifa-sched.c (schedule_block): Change the DFA state only after
746 issuing insn.
747
748 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
749
750 * pa.c (hppa_use_dfa_pipeline_interface): New function.
751 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
752 (override_options): Add PA7300 scheduling support.
753 (pa_adjust_cost): Update various comments. Properly
754 handle anti and output dependencies when using the
755 DFA scheduler.
756 (pa_issue_rate): Add PA7300 scheduling support.
757 (pa_can_combine_p): Call extract_insn before calling
758 constrain_operands (taken from mainline tree).
759 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
760 * pa.md (cpu attr): Add 7300. Rewrite pipeline
761 descriptions using DFA descriptions. Add PA7300
762 scheduling support.
763
764 2002-03-30 David S. Miller <davem@redhat.com>
765
766 Add UltraSPARC-III DFA scheduling support.
767 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
768 Update FP conditional move on register insn patterns to use it, as
769 appropriate.
770 (define_attr cpu): Add ultrasparc3.
771 (define_attr us3load_type): New, update integer load patterns to
772 set it, as appropriate.
773 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
774 (rest): Add UltraSPARC3 scheduling description.
775 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
776 (PROCESSOR_ULTRASPARC3): New.
777 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
778 ({ASM,CPP}_CPU_SPEC): Likewise.
779 (REGISTER_MOVE_COST): Likewise.
780 (RTX_COSTS): Likewise.
781 * config/sparc/sparc.c (sparc_override_options,
782 sparc_initialize_trampoline, sparc64_initialize_trampoline,
783 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
784 sparc_issue_rate): Likewise.
785 * config/sparc/sol2.h: Likewise.
786 * config/sparc/sol2-sld-64.h: Likewise.
787 * config/sparc/linux64.h: Likewise.
788
789 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
790
791 * doc/md.texi: Add comments about usage the latency time for the
792 different dependencies and about case when two or more conditions
793 in different define_insn_reservations returns TRUE for an insn.
794
795 * doc/md.texi: Add reference for automaton based pipeline
796 description.
797
798 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
799
800 * doc/passes.texi: Add missed information about genattrtab.
801
802 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
803
804 * genautomata.c (output_automata_list_transition_code): Check
805 automata_list on NULL.
806
807 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
808
809 * genautomata.c (output_insn_code_cases,
810 output_automata_list_min_issue_delay_code,
811 output_automata_list_transition_code,
812 output_automata_list_state_alts_code): Comment the functions.
813
814 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
815
816 * genautomata.c (automata_list_el_t): New typedef.
817 (get_free_automata_list_el,free_automata_list_el,
818 free_automata_list, automata_list_hash, automata_list_eq_p,
819 initiate_automata_lists, automata_list_start, automata_list_add,
820 automata_list_finish, finish_automata_lists,
821 output_insn_code_cases, output_automata_list_min_issue_delay_code,
822 output_automata_list_transition_code,
823 output_automata_list_state_alts_code, add_automaton_state,
824 form_important_insn_automata_lists): New functions and prototypes.
825 (insn_reserv_decl): Add members important_automata_list and
826 processed_p.
827 (ainsn): Add members important_p.
828 (automata_list_el): New structure.
829 (first_free_automata_list_el, current_automata_list,
830 automata_list_table): New global variables.
831 (create_ainsns): Initiate member important_p.
832 (output_internal_min_issue_delay_func): Generate the switch and
833 call output_insn_code_cases.
834 (output_internal_trans_func, output_internal_state_alts_func):
835 Ditto.
836 (generate): Call initiate_automata_lists.
837 (automaton_states): New global variable.
838 (expand_automata): Call form_important_insn_automata_lists.
839 (write_automata): Call finish_automata_lists.
840
841 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
842
843 * genautomata.c (add_excls, add_presence_absence): Check that
844 cpu units in the sets belong the same automaton.
845
846 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
847 about that cpu units in the sets belong the same automaton.
848
849 * doc/md.texi: Ditto.
850
851 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
852 Nitin Gupta <niting@noida.hcltech.com>
853
854 * config/sh/sh.c (sh_use_dfa_interface): New function.
855
856 (sh_issue_rate): New Function.
857 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
858 TARGET_SCHED_ISSUE_RATE: define.
859
860 * config/sh/sh.md: Add DFA based pipeline description for SH4.
861
862 (define_attr insn_class): New attribute used for DFA
863 scheduling.
864 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
865 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
866 cmpeqdi_t): Likewise.
867
868 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
869 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
870 ex_group.
871 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
872
873 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
874
875 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
876 break.
877
878 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
879
880 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
881 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
882 necessary.
883 (output_dfa_start_func): Initiate new variable insn_codes_length,
884 (write_automata): Output definition of the new variable.
885
886 2001-10-02 David S. Miller <davem@redhat.com>
887
888 * haifa-sched.c (advance_one_cycle): New function.
889 (schedule_block): Use it.
890 (queue_to_ready): Use it, and also make sure to advance the DFA
891 state on all stall cycles, not just those where insn_queue links
892 are found.
893
894 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
895
896 * haifa-sched.c (max_issue): Remove last_p argument. Only return
897 non-zero if the highest-priority instruction could be scheduled.
898 (choose_ready): Remove last argument from max_issue call.
899
900 2001-09-28 David S. Miller <davem@redhat.com>
901
902 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
903 ultrasparc and 3 for other multi-issue sparcs.
904
905 2001-09-27 David S. Miller <davem@redhat.com>
906
907 * config/sparc/sparc.md (cycle_display): New pattern.
908 * config/sparc/sparc.c (sparc_cycle_display): New.
909 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
910
911 2001-09-25 David S. Miller <davem@redhat.com>
912
913 Convert all of Sparc scheduling to DFA
914 * config/sparc/sparc.md: Kill all define_function_unit
915 directives and replace with DFA equivalent.
916 * config/sparc/sparc.c (ultrasparc_adjust_cost,
917 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
918 ultra_fpmode_conflict_exists, ultra_find_type,
919 ultra_build_types_avail, ultra_flush_pipeline,
920 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
921 ultrasparc_variable_issue, ultrasparc_sched_init,
922 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
923 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
924 ultra_cur_hist, ultra_cycles_elapsed): Kill.
925 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
926 ultrasparc_store_bypass_p): New.
927 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
928 Declare.
929
930 2001-09-24 David S. Miller <davem@redhat.com>
931
932 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
933 ready->vec[foo] not ready[foo].
934
935 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
936
937 * doc/md.texi: Correct examples for define_insn_reservations
938 `mult' and `div'.
939
940 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
941
942 * genautomata.c (create_automata): Print message about creation of
943 each automaton.
944 (generate): Remove printing meease about creation of
945 automata.
946
947 2001-09-05 David S. Miller <davem@redhat.com>
948
949 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
950 * config/sparc/linux64.h: Likewise.
951
952 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
953
954 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
955 schedule_block, sched_init, sched_finish): Add missed calls of
956 use_dfa_pipeline_interface.
957
958 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
959 Ditto.
960
961 * sched-vis.c (get_visual_tbl_length): Ditto.
962
963 2001-08-27 Richard Henderson <rth@redhat.com>
964
965 * genattr.c (main): Emit state_t even when not doing scheduling.
966
967 2001-08-27 Richard Henderson <rth@redhat.com>
968
969 * genautomata.c (expand_automata): Always create a description.
970
971 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
972
973 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
974 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
975 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
976 RTL constructions.
977
978 * genattr.c (main): New variable num_insn_reservations. Increase
979 it if there is DEFINE_INSN_RESERVATION. Output automaton based
980 pipeline hazard recognizer interface.
981
982 * genattrtab.h: New file.
983
984 * genattrtab.c: Include genattrtab.h.
985 (attr_printf, check_attr_test, make_internal_attr,
986 make_numeric_value): Move protypes into genattrtab.h. Define them
987 as external.
988 (num_dfa_decls): New global variable.
989 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
990 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
991 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
992 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
993
994 * genautomata.c: New file.
995
996 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
997
998 * sched-int.h: (curr_state): Add the external definition for
999 automaton pipeline interface.
1000 (haifa_insn_data): Add comments for members blockage and units.
1001
1002 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1003 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1004 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1005 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1006 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1007 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1008 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1009 macros.
1010 (TARGET_SCHED): Use the new macros.
1011
1012 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1013 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1014 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1015 dfa_bubble): New members in gcc_target.sched.
1016
1017 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1018 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1019 (insn_queue): Redefine it as pointer to array.
1020 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1021 INSN_QUEUE_SIZE.
1022 (max_insn_queue_index_macro_value): New variable.
1023 (curr_state, dfa_state_size, ready_try): New varaibles for
1024 automaton interface.
1025 (ready_element, ready_remove, max_issue): New function prototypes
1026 for automaton interface.
1027 (choose_ready): New function prototype.
1028 (insn_unit, blockage_range): Add comments.
1029 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1030 FUNCTION_UNITS_SIZE == 0.
1031 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1032 actual_hazard, potential_hazard): Add comments.
1033 (insn_cost): Use cost -1 as undefined value. Remove
1034 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
1035 pipeline interface.
1036 (ready_element, ready_remove): New functions for automaton
1037 interface.
1038 (schedule_insn): Add new code for automaton pipeline interface.
1039 (queue_to_ready): Add new code for automaton pipeline interface.
1040 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1041 (debug_ready_list): Print newline when the queue is empty.
1042 (max_issue): New function for automaton pipeline interface.
1043 (choose_ready): New function.
1044 (schedule_block): Add new code for automaton pipeline interface.
1045 Print ready list before scheduling each insn.
1046 (sched_init): Add new code for automaton pipeline interface.
1047 Initiate insn cost by -1.
1048 (sched_finish): Free the current automaton state and finalize
1049 automaton pipeline interface.
1050
1051 * sched-rgn.c: Include target.h.
1052 (init_ready_list, new_ready, debug_dependencies): Add new code for
1053 automaton pipeline interface.
1054
1055 * sched-vis.c: Include target.h.
1056 (get_visual_tbl_length): Add code for automaton interface.
1057 (target_units, print_block_visualization): Add comments.
1058
1059 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1060 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1061 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1062 (getruntime.o, genautomata.o): New entries.
1063 (genattrtab.o): Add new dependency file genattrtab.h.
1064 (genattrtab): Add new dependencies. Link it with `libm.a'.
1065 (getruntime.o, hashtab.o): New entries for canadian cross.
1066
1067 * doc/md.texi: Description of automaton based model.
1068
1069 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1070 Add comments.
1071 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1072 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1073 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1074 TARGET_SCHED_DFA_POST_CYCLE_INSN,
1075 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1076 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1077 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1078 hook descriptions.
1079 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1080 MAX_DFA_ISSUE_RATE): New macro descriptions.
1081
1082 * doc/contrib.texi: Add dfa based scheduler contribution.
1083
1084 * doc/gcc.texi: Add more information about genattrtab.
1085
1086 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1087
1088 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1089 adjust_address_nv call.
1090
1091 2002-04-29 Janis Johnson <janis187@us.ibm.com>
1092
1093 * doc/install.texi (Testing): Provide additional information, and
1094 a stronger encouragement, for running the testsuites.
1095
1096 2002-04-29 DJ Delorie <dj@redhat.com>
1097
1098 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1099 given in upper case.
1100
1101 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1102
1103 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
1104 Solaris 2 <widec.h> if missing.
1105 * fixinc/fixincl.x: Regenerate.
1106 * fixinc/tests/base/widec.h: New file.
1107
1108 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
1109
1110 * toplev.c (f_options): Add "profile" switch so that
1111 -fno-profile can be used to disable -p.
1112
1113 2002-04-29 Bernd Schmidt <bernds@redhat.com>
1114
1115 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
1116 UV2DImode.
1117 * tree.c (build_common_tree_nodes_2): Likewise.
1118 * tree.h (enum tree_index): Likewise.
1119 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
1120
1121 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
1122 entries.
1123 (init_mmx_sse_builtins): Initialize SSE2 builtins.
1124 (ix86_expand_builtin): Add support for SSE2 builtins.
1125 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
1126 (VALID_SSE_REG_MODE): Use it.
1127 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
1128 (enum ix86_builtins): Add SSE2 builtins.
1129 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
1130 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
1131 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
1132 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
1133 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
1134 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
1135 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
1136 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
1137 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
1138 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
1139 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
1140 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
1141 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
1142 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
1143 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
1144 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
1145 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
1146 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
1147 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
1148 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
1149 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
1150 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
1151 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
1152 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
1153 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
1154 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
1155 lfence_insn): New patterns.
1156 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
1157 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
1158
1159 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
1160
1161 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1162
1163 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1164
1165 * doc/contrib.texi (Contributors): Add Paolo Carlini and
1166 Janis Johnson.
1167 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
1168 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
1169 and CPU instead of cpu.
1170
1171 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1172
1173 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
1174 variables.
1175 (lang_independent_options): Add -fif-conversion, -fif-conversion2
1176 (rest_of_compilation): Do if conversion only when asked for.
1177 (parse_options_and_default_flags): Set new variables to 1 for -O1
1178 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
1179
1180 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
1181
1182 * i386.c (dbx64_register_map): Fix typo.
1183
1184 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
1185
1186 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
1187 real_one_half, real_bb_freq_max): New static variables.
1188 (debug_profile_bbauxs): Kill.
1189 (process_note_predictions): Kill unused variable.
1190 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
1191 volatile double.
1192 (propagate_freq): Use REAL_ARITHMETICS.
1193 (estimate_bb_frequencies): Likevise; init new static variables.
1194 * Makefile.in (predict.o): Add dependency on real.h
1195
1196 2002-04-28 David S. Miller <davem@redhat.com>
1197
1198 PR target/6500
1199 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
1200 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
1201 several {reads,writes} instead.
1202 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
1203 Define.
1204
1205 2002-04-27 David S. Miller <davem@redhat.com>
1206
1207 PR target/6494
1208 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1209 of the stack bias.
1210
1211 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1212 including signal.h and sys/ucontext.h, not needed.
1213
1214 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
1215
1216 * varasm.c (output_constant_def): Correct test for not calling
1217 ENCODE_SECTION_INFO for INTEGER_CST.
1218
1219 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
1220
1221 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1222 keep most cases as function eval_token.
1223 (eval_token): New function.
1224 (_cpp_parse_expr): Read token here for improved diagnostics.
1225 Don't use op_as_text. Detect bad ':' here.
1226 (reduce): Don't detect bad ':' here.
1227 (op_as_text): Remove.
1228 * cpphash.h (_cpp_test_assertion): Change prototype.
1229 * cpplib.c (_cpp_test_assertion): Change prototype.
1230
1231 2002-04-28 Richard Henderson <rth@redhat.com>
1232
1233 PR c/5154
1234 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1235 (ggc_mark_rtx_children): New.
1236
1237 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1238
1239 PR target/6496
1240 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1241 after call peepholes for UltraSPARC.
1242 (call + jump 64-bit peepholes): Remove.
1243
1244 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1245
1246 PR c/6497
1247 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1248 result as temporary value.
1249
1250 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR c++/6396
1253 * toplev.c (rest_of_compilation): Only run regrename and copy
1254 propagation if optimizing.
1255
1256 2002-04-28 Jakub Jelinek <jakub@redhat.com>
1257
1258 PR optimization/6475
1259 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1260 register of REGNO_DECL (i).
1261 * Makefile.in (reload1.o): Add $(TREE_H).
1262
1263 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
1264
1265 * cppexp.c (lex): Update to use state.skip_eval.
1266 (struct op): Remove prio and flags members.
1267 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1268 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1269 (LEFT_ASSOC): New macro.
1270 (optab): New table of operator priorities and flags.
1271 (SHIFT): Update.
1272 (_cpp_parse_expr): Clean up logic. Return bool. Use a
1273 malloc-ed parser stack.
1274 (reduce): New; reduce the operator stack.
1275 (_cpp_expand_op_stack): Expand the operator stack as necessary.
1276 * cpphash.h (struct op): Predeclare.
1277 (struct cpp_reader): New members op_stack, op_limit.
1278 (struct lexer_state): New member skip_eval.
1279 (_cpp_parse_expr): Update.
1280 (_cpp_expand_op_stack): New.
1281 * cpplib.c (do_if): Update.
1282 * cppinit.c (cpp_create_reader): Create op stack.
1283 (cpp_destroy): And destroy it.
1284 * cpplib.h (CPP_LAST_CPP_OP): Correct.
1285 (TTYPE_TABLE): Correct.
1286
1287 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1288
1289 PR c/6343
1290 * c-decl.c (duplicate_decls): Call merge_weak.
1291 * c-pragma.c (apply_pragma_weak): Warn about misuse.
1292 * output.h (merge_weak): Prototype merge_weak.
1293 * varasm.c (merge_weak): New function.
1294 (declare_weak): Make sure we don't give an error on VAR_DECLs.
1295 Mark RTL with SYMBOL_REF_WEAK.
1296
1297 2002-04-27 Kurt Garloff <garloff@suse.de>
1298
1299 * tree-inline.c (inlinable_function_p): Improve heuristics
1300 by using a smoother function to cut down allowable inlinable size.
1301 * param.def: Add parameters max-inline-insns-single,
1302 max-inline-slope, min-inline-insns that determine the exact
1303 shape of the above function.
1304 * param.h: Likewise.
1305
1306 2002-04-26 Richard Henderson <rth@redhat.com>
1307
1308 * c-parse.in (malloced_yyss, malloced_yyvs): New.
1309 (yyoverflow): Re-add. Set them.
1310 (free_parser_stacks): New.
1311 * c-common.h: Declare it.
1312 * c-lex.c (c_common_parse_file): Call it.
1313
1314 2002-04-26 Richard Henderson <rth@redhat.com>
1315
1316 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1317 for fallthru search.
1318
1319 2002-04-26 Eric Christopher <echristo@redhat.com>
1320
1321 PR optimization/3700
1322 * config/mips/mips.c (mips_issue_rate): Define. New function.
1323 (TARGET_SCHED_ISSUE_RATE): Use.
1324
1325 2002-04-25 David S. Miller <davem@redhat.com>
1326
1327 PR target/6422
1328 * reorg.c (optimize_skip): Do not allow exception causing
1329 instructions to be considered for delay slots.
1330 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1331 (relax_delay_slots): Do not try to consider exception causing
1332 instructions as redundant.
1333
1334 2002-04-26 Richard Henderson <rth@redhat.com>
1335
1336 PR c/5225
1337 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1338
1339 2002-04-26 Mark Mitchell <mark@codesourcery.com>
1340
1341 PR bootstrap/6445
1342 * config/i386/i386.md (untyped_call): Return the value in a float
1343 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1344 TARGET_80387.
1345
1346 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
1347
1348 * tree.c (tree_int_cst_lt): Compare constants whose types differ
1349 in unsigned-ness correctly.
1350
1351 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1352
1353 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1354 portable runtime model.
1355
1356 2002-04-26 Richard Henderson <rth@redhat.com>
1357
1358 * c-parse.in (yyoverflow): Revert.
1359
1360 2002-04-26 David Edelsohn <edelsohn@gnu.org>
1361 Richard Henderson <rth@redhat.com>
1362
1363 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1364 result as temporary value.
1365
1366 2002-04-26 Richard Henderson <rth@redhat.com>
1367
1368 PR c/3581
1369 * c-common.c (fix_string_type): Split out of ...
1370 (combine_strings): ... here. Take a varray, not a tree list.
1371 (c_expand_builtin_printf): Use fix_string_type.
1372 * c-common.h: Update decls.
1373 * c-parse.in (string): Remove. Update all uses to use STRING
1374 instead, and not call combine_strings.
1375 (yylexstring): New.
1376 (_yylex): Use it.
1377 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1378 (build_asm_stmt): Likewise.
1379 * objc/objc-act.c (my_build_string): Use fix_string_type.
1380 (build_objc_string_object): Build varray for combine_strings.
1381
1382 2002-04-26 Bo Thorsen <bo@suse.co.uk>
1383
1384 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1385 x86-64.
1386
1387 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
1388
1389 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1390 (HAVE_NO_R_OPERAND): Remove.
1391 (HAVE_VALUE): Remove.
1392 (op_to_prio): Update.
1393 (UNARY): Don't alter flags.
1394 (_cpp_parse_expr): want_value used to indicate whether
1395 a number or unary operator is expected next. Distinguish
1396 unary and binary +/-.
1397 (op_as_text): Update for unary operators.
1398
1399 2002-04-25 Richard Henderson <rth@redhat.com>
1400
1401 PR c/2161
1402 * c-parse.in (yyoverflow): New.
1403
1404 2002-04-25 Richard Henderson <rth@redhat.com>
1405
1406 PR c/2098
1407 * c-common.c (shorten_compare): Simplfy conditions leading to
1408 the generation of a warning.
1409
1410 2002-04-25 Richard Henderson <rth@redhat.com>
1411
1412 PR c/2035
1413 * expmed.c (extract_bit_field): Fall through to generic code rather
1414 than aborting on subreg special case.
1415
1416 2002-04-25 David S. Miller <davem@redhat.com>
1417
1418 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1419 for DECL being NULL.
1420
1421 2002-04-25 Steve Christiansen <smc@us.ibm.com>
1422
1423 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1424
1425 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
1426
1427 * c-decl.c (grokdeclarator): Remove outdated ??? note
1428 on invalid declaration of flexible array members.
1429
1430 2002-04-25 Richard Henderson <rth@redhat.com>
1431
1432 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1433
1434 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
1435
1436 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1437 needed by the compiler, even if they are used as global regs.
1438
1439 2002-04-25 Matt Hiller <hiller@redhat.com>
1440
1441 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1442 functions.
1443 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1444 of the corresponding functions.
1445 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1446 New prototypes.
1447
1448 2002-04-25 Matt Hiller <hiller@redhat.com>
1449
1450 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1451
1452 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1453 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1454 registers, adjust comment accordingly.
1455 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1456 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1457 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1458 for coprocessor registers.
1459 (ADDITIONAL_REGISTER_NAMES): Include
1460 ALL_COP_ADDITIONAL_REGISTER_NAMES.
1461
1462 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1463 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1464 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1465 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1466 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1467
1468 (mips_char_to_class): Adjust comment to include coprocessor
1469 constraint letters.
1470
1471 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1472 New functions.
1473 (mips_reg_names, mips_regno_to_class): Include coprocessor
1474 information.
1475 (mips_sw_reg_names): Ditto, make non-static.
1476 (mips_move_1word): Handle moves to and from coprocessor registers.
1477 (mips_move_2words): Handle moves to and from coprocessor
1478 registers.
1479 (mips_class_max_nregs, mips_register_move_cost): Handle
1480 coprocessor register classes.
1481 (override_options): Initialize mips_char_to_class and
1482 mips_hard_regno_mode_ok properly for coprocessor registers.
1483
1484 * config/mips/mips.md (movdi_internal, movdi_internal2,
1485 movsi_internal1, movsi_internal2): Add constraint-sets for
1486 coprocessor registers.
1487 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1488 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1489 isn't mips.
1490 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1491 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1492 isn't mips.
1493 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1494 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1495 isn't mips.
1496 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1497 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1498 isn't mips.
1499
1500 * doc/tm.texi: Document feature.
1501
1502 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1503
1504 * integrate.c (function_attribute_inlinable_p): Simplify.
1505 Check the table pointer is not NULL.
1506
1507 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
1508
1509 * doc/c-tree.texi: Fix typo in introduction.
1510
1511 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
1512
1513 * c-common.h (c_common_parse_file): Update.
1514 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1515 * c-lex.c (YYDEBUG): Get from c-lex.h.
1516 (c_common_parse_file): Update.
1517 * c-lex.h (YYDEBUG, yydebug): New.
1518 * c-parse.in (YYDEBUG): Get from c-lex.h.
1519 (c_set_yydebug): Remove.
1520 * c-tree.h (c_set_yydebug): Remove.
1521 * langhooks-def.h (lhd_do_nothing_i): New.
1522 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1523 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1524 * langhooks.c (lhd_do_nothing_i): New.
1525 (lhd_set_yydebug): Remove.
1526 * langhooks.h (struct lang_hooks): Update.
1527 * toplev.c (set_yydebug): New.
1528 (compile_file): Update call to parse_file hook.
1529 (decode_d_option): Update.
1530 objc:
1531 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1532
1533 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
1534
1535 * loop.c (load_mems): Don't change the interface of called functions.
1536
1537 * calls.c (expand_call): Take current_function_pretend_args_size
1538 into account when setting argblock for sibcalls.
1539
1540 2002-04-24 Matt Hiller <hiller@redhat.com>
1541
1542 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1543 * c-lex.c: Ditto.
1544
1545 * cpplex.c (skip_line_comment): Process comment one multibyte
1546 character at a time rather than one char at a time, if
1547 appropriate.
1548 (parse_string): Process string one multibyte character at a time
1549 rather than one char at a time, if appropriate.
1550 * c-lex.c (lex_string): Lex and copy multibyte strings
1551 appropriately.
1552 * cpplib.h (cppchar_t): Change to unsigned.
1553
1554 2002-04-24 Richard Henderson <rth@redhat.com>
1555
1556 PR c/3467
1557 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1558 for c99.
1559
1560 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
1561
1562 * sh.c (sh_va_arg): If argument was passed by reference,
1563 dereference the pointer.
1564
1565 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1566
1567 * sh.md (divsi3_i4_media): Use match_operand for input values
1568 rather than hard registers.
1569 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1570 unnecessarily through hard registers. Keep copies of pseudo
1571 registers outside of the libcall sequence.
1572
1573 * sh.md (casesi_shift_media): Add modes.
1574
1575 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1576 values in memory.
1577
1578 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
1579
1580 * attribs.c (c_common_attribute_table): Move table and handlers
1581 to c-common.c.
1582 (format_attribute_table, lang_attribute_table,
1583 lang_attribute_common): Remove.
1584 (init_attributes): Replace NULL pointers with pointers to the
1585 empty table.
1586 (handle_packed_attribute, handle_nocommon_attribute,
1587 handle_common_attribute, handle_noreturn_attribute,
1588 handle_noinline_attribute, handle_always_inline_attribute,
1589 handle_used_attribute, handle_unused_attribute,
1590 handle_const_attribute, handle_transparent_union_attribute,
1591 handle_constructor_attribute, handle_destructor_attribute,
1592 handle_mode_attribute, handle_section_attribute,
1593 handle_aligned_attribute, handle_weak_attribute,
1594 handle_alias_attribute, handle_visibility_attribute,
1595 handle_no_instrument_function_attribute, handle_malloc_attribute,
1596 handle_no_limit_stack_attribute, handle_pure_attribute,
1597 handle_deprecated_attribute, handle_vector_size_attribute,
1598 vector_size_helper): Move to c-common.c.
1599 * c-common.c (c_common_attribute_table,
1600 handle_packed_attribute, handle_nocommon_attribute,
1601 handle_common_attribute, handle_noreturn_attribute,
1602 handle_noinline_attribute, handle_always_inline_attribute,
1603 handle_used_attribute, handle_unused_attribute,
1604 handle_const_attribute, handle_transparent_union_attribute,
1605 handle_constructor_attribute, handle_destructor_attribute,
1606 handle_mode_attribute, handle_section_attribute,
1607 handle_aligned_attribute, handle_weak_attribute,
1608 handle_alias_attribute, handle_visibility_attribute,
1609 handle_no_instrument_function_attribute, handle_malloc_attribute,
1610 handle_no_limit_stack_attribute, handle_pure_attribute,
1611 handle_deprecated_attribute, handle_vector_size_attribute,
1612 vector_size_helper): Move from attribs.c.
1613 * c-common.h (c_common_attribute_table,
1614 c_common_format_attribute_table): New.
1615 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1616 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1617 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1618 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1619 (LANG_HOOKS_INITIALIZER): Update.
1620 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1621 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1622 * target.h: Update comment.
1623 * tree.c (default_target_attribute_table): Remove.
1624 * tree.h (default_target_attribute_table, format_attribute_table,
1625 lang_attribute_table, lang_attribute_common): Remove.
1626 objc:
1627 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1628 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1629
1630 2002-04-24 Jason Merrill <jason@redhat.com>
1631
1632 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1633 * dwarf2out.c (dwarf_attr_name): Support it.
1634 (gen_array_type_die): Emit it.
1635 (lookup_type_die): No special handling for VECTOR_TYPE.
1636 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1637
1638 2002-04-24 Richard Henderson <rth@redhat.com>
1639
1640 * config/mips/mips.md (movdi_usd): Renumber.
1641
1642 2002-04-24 David S. Miller <davem@redhat.com>
1643
1644 PR target/6420
1645 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1646 32-bit Sparc and current_function_returns_struct is true.
1647
1648 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1649
1650 * loop.c (canonicalize_condition): Use gen_int_mode.
1651
1652 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
1653
1654 * config/rs6000/altivec.h: Cleanup file. Add non individual
1655 variants.
1656 (vec_vaddubm): New.
1657 (vec_vadduhm): New.
1658 (vec_vadduwm): New.
1659 (vec_vaddfp): New.
1660 (vec_vaddcuw): New.
1661 (vec_vaddubs): New.
1662 (vec_vaddsbs): New.
1663 (vec_vadduhs): New.
1664 (vec_vadduws): New.
1665 (vec_vaddsws): New.
1666 (vec_vand): New.
1667 (vec_vandc): New.
1668 (vec_vavgub): New.
1669 (vec_vavgsb): New.
1670 (vec_vavguh): New.
1671 (vec_vavgsh): New.
1672 (vec_vavguw): New.
1673 (vec_vavgsw): New.
1674 (vec_vrfip): New.
1675 (vec_vcmpbfp): New.
1676 (vec_vcmpequb): New.
1677 (vec_vcmpequh): New.
1678 (vec_vcmpequw): New.
1679 (vec_vcmpeqfp): New.
1680 (vec_vcmpgefp): New.
1681 (vec_vcmpgtub): New.
1682 (vec_vcmpgtsb): New.
1683 (vec_vcmpgtuh): New.
1684 (vec_vcmpgtsh): New.
1685 (vec_vcmpgtuw): New.
1686 (vec_vcmpgtsw): New.
1687 (vec_vcmpgtfp): New.
1688 (vec_vcmpgefp): New.
1689 (vec_vcfux): New.
1690 (vec_vcfsx): New.
1691 (vec_vctsxs): New.
1692 (vec_vctuxs): New.
1693 (vec_vexptefp): New.
1694 (vec_vrfim): New.
1695 (vec_lvx): New.
1696 (vec_lvebx): New.
1697 (vec_lvehx): New.
1698 (vec_lde): Add vector float variant.
1699 (vec_lvewx): New.
1700 (vec_lvxl): New.
1701 (vec_vlogefp): New.
1702 (vec_vmaddfp): New.
1703 (vec_vmhaddshs): New.
1704 (vec_vmaxub): New.
1705 (vec_vmaxsb): New.
1706 (vec_vmaxuh): New.
1707 (vec_vmaxsh): New.
1708 (vec_vmaxuw): New.
1709 (vec_vmaxsw): New.
1710 (vec_vmaxsw): New.
1711 (vec_vmaxfp): New.
1712 (vec_vmrghb): New.
1713 (vec_vmrghh): New.
1714 (vec_vmrghw): New.
1715 (vec_vmrglb): New.
1716 (vec_vmrglh): New.
1717 (vec_vmrglw): New.
1718 (vec_vminub): New.
1719 (vec_vminsb): New.
1720 (vec_vminuh): New.
1721 (vec_vminsh): New.
1722 (vec_vminuw): New.
1723 (vec_vminsw): New.
1724 (vec_vminfp): New.
1725 (vec_vmladduhm): New.
1726 (vec_vmhraddshs): New.
1727 (vec_msumubm): New.
1728 (vec_vmsummbm): New.
1729 (vec_vmsumuhm): New.
1730 (vec_vmsumshm): New.
1731 (vec_vmsumuhs): New.
1732 (vec_vmsumshs): New.
1733 (vec_vmuleub): New.
1734 (vec_vmulesb): New.
1735 (vec_vmuleuh): New.
1736 (vec_vmulesh): New.
1737 (vec_vmuloub): New.
1738 (vec_mulosb): New.
1739 (vec_vmulouh): New.
1740 (vec_vmulosh): New.
1741 (vec_vnmsubfp): New.
1742 (vec_vnor): New.
1743 (vec_vor): New.
1744 (vec_vpkuhum): New.
1745 (vec_vpkuwum): New.
1746 (vec_vpkpx): New.
1747 (vec_vpkuhus): New.
1748 (vec_vpkshss): New.
1749 (vec_vpkuwus): New.
1750 (vec_vpkswss): New.
1751 (vec_vpkshus): New.
1752 (vec_vpkswus): New.
1753 (vec_vperm): New.
1754 (vec_vrefp): New.
1755 (vec_vrlb): New.
1756 (vec_vrlh): New.
1757 (vec_vrlw): New.
1758 (vec_vrfin): New.
1759 (vec_vrsqrtefp): New.
1760 (vec_vsel): New.
1761 (vec_vslb): New.
1762 (vec_vslh): New.
1763 (vec_vslw): New.
1764 (vec_vsldoi): New.
1765 (vec_vsl): New.
1766 (vec_vslo): New.
1767 (vec_vspltb): New.
1768 (vec_vsplth): New.
1769 (vec_vspltw): New.
1770 (vec_vspltisb): New.
1771 (vec_vspltish): New.
1772 (vec_vspltisw): New.
1773 (vec_vsrb): New.
1774 (vec_vsrh): New.
1775 (vec_vsrw): New.
1776 (vec_vsrab): New.
1777 (vec_vsrah): New.
1778 (vec_vsraw): New.
1779 (vec_vsr): New.
1780 (vec_vsro): New.
1781 (vec_stvx): New.
1782 (vec_stvebx): New.
1783 (vec_stvehx): New.
1784 (vec_stvewx): New.
1785 (vec_stvxl): New.
1786 (vec_vsububm): New.
1787 (vec_vsubuhm): New.
1788 (vec_vsubuwm): New.
1789 (vec_vsubfp): New.
1790 (vec_vsubcuw): New.
1791 (vec_vsububs): New.
1792 (vec_vsubsbs): New.
1793 (vec_vsubuhs): New.
1794 (vec_vsubshs): New.
1795 (vec_vsubuws): New.
1796 (vec_vsubsws): New.
1797 (vec_vsum4ubs): New.
1798 (vec_vsum4sbs): New.
1799 (vec_vsum4shs): New.
1800 (vec_vsum2sws): New.
1801 (vec_vsumsws): New.
1802 (vec_vrfiz): New.
1803 (vec_vupkhsb): New.
1804 (vec_vupkhpx): New.
1805 (vec_vupkhsh): New.
1806 (vec_vupklsb): New.
1807 (vec_vupklpx): New.
1808 (vec_vupklsh): New.
1809 (vec_vxor): New.
1810
1811 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1812
1813 PR c/5430
1814 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1815 added literals from substracted literals.
1816 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1817 (fold) [associate]: Preserve MINUS_EXPR if needed.
1818
1819 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1820
1821 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1822 are obsoleted.
1823
1824 2002-04-23 Tom Tromey <tromey@redhat.com>
1825
1826 * gcc.c: Added --resource. For PR java/6314.
1827
1828 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1829
1830 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1831 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1832 these libraries.
1833
1834 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1835
1836 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1837
1838 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1839
1840 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1841 workaround.
1842 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1843 (ix86_expand_clrstr): Fix typo.
1844 * loop.c (gen_load_of_final_value): New.
1845 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1846 Use it.
1847
1848 2002-04-23 Roger Sayle <roger@eyesopen.com>
1849
1850 * builtins.c (builtin_memset_gen_str): New function.
1851 (expand_builtin_memset): Optimize the case of constant length, but
1852 unknown value.
1853
1854 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1855
1856 * config/rs6000/altivec.h (vec_step): Remove extraneous
1857 parentheses.
1858 (vec_ctu): Cast return.
1859
1860 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1861
1862 PR target/6413
1863 * function.h: (struct function): Add profile_label_no field.
1864 (current_function_profile_label_no): Define.
1865 * function.c: (profile_label_no): New static var.
1866 (expand_function_start): Increment it, and copy to
1867 current_function_profile_label_no.
1868 * output.h (profile_label_no): Delete.
1869 * final.c (profile_label_no): Delete.
1870 (profile_function): Use current_function_profile_label_no.
1871 (final_end_function): Don't increment profile_label_no here.
1872 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1873 profile_label_no with current_function_profile_label_no.
1874 * config/pa/pa.c (current_function_number): Delete.
1875 (pa_output_function_prologue): Don't output profile label here.
1876 (hppa_profile_hook): Use label_no param rather than
1877 current_function_number.
1878 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1879 * config/pa/pa.h: .. here.
1880 (FUNCTION_PROFILER): Output profile label here.
1881
1882 2002-04-22 Eric Christopher <echristo@redhat.com>
1883
1884 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1885 patch of 2002-04-09 due to binutils issues.
1886 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1887
1888 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1889
1890 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1891 constraint to 'o' for m=r and r=m alternatives.
1892 ("*movv8hi_internal1"): Same.
1893 ("*movv16qi_internal1"): Same.
1894 ("*movv4sf_internal1"): Same.
1895
1896 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1897
1898 * rtl.h (RTX_FLAG): New macro.
1899 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1900 * final.c (alter_subreg): Use macro to access rtx flag.
1901 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1902 * print-rtl.c (print_rtx): Use new access macro.
1903
1904 * cse.c (insert): Check rtx code before accessing flag.
1905
1906 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1907 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1908 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1909 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1910 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1911 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1912 find_and_mark_used_attributes, unmark_used_attributes,
1913 add_values_to_cover, simplify_with_current_value,
1914 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1915 copy_rtx_unchanging, main): Use new access macros.
1916
1917 2002-04-22 Tom Rix <trix@redhat.com>
1918
1919 * expmed.c (init_expmed): Generate shifted constant once.
1920
1921 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1922
1923 * c-lex.c (lex_charconst): Call convert to get constant in
1924 proper type; don't just smash the type field.
1925 Fixes PR c/6300.
1926
1927 * config.gcc: Add list of obsolete configurations. Disallow
1928 building these without --enable-obsolete.
1929 * doc/install.texi: Document --enable-obsolete and obsoletion
1930 policy. Mention obsoletion of individual targets in
1931 appropriate places.
1932
1933 2002-04-22 Richard Henderson <rth@redhat.com>
1934
1935 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1936
1937 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1938
1939 PR f/6138.
1940 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1941 (walk_fixup_memory_subreg): Likewise.
1942 (fixup_var_refs_insn): Adjust accordingly.
1943 (fixup_var_refs_1): Likewise.
1944
1945 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1946
1947 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1948 LIBPATH_ARCH64_SPEC): Define.
1949 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1950 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1951 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1952 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1953
1954 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1955
1956 * gthr-rtems.h: Correct prototypes to remove warnings.
1957
1958 2002-04-22 Richard Henderson <rth@redhat.com>
1959
1960 PR c/6344
1961 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1962
1963 * gcse.c (free_insn_expr_list_list): New.
1964 (clear_modify_mem_tables): Use it. Fix bit set usage.
1965 (canon_list_insert): Use EXPR_LISTs for expressions.
1966 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1967
1968 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1969
1970 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1971 file change and include code to _cpp_pop_buffer.
1972 * cpphash.h (struct pending_option): Predeclare.
1973 (struct cpp_reader): New member next_include_file.
1974 (_cpp_pop_file_buffer): Update.
1975 (_cpp_push_next_buffer): Update, rename.
1976 * cppinit.c (cpp_destroy): Free include chain and pending here.
1977 (cpp_finish_options): Simplify.
1978 (_cpp_push_next_buffer): Rename and clean up.
1979 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1980 Clarify.
1981 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1982
1983 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1984
1985 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1986 being vector signed int.
1987 (vec_andc): Same.
1988 (vec_xor): Add variant for both args being vector signed char.
1989 Remove redundant variant.
1990 (vec_andc): Same.
1991
1992 2002-04-21 David S. Miller <davem@redhat.com>
1993
1994 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1995 compare mode in output RTL.
1996
1997 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1998
1999 * config/rs6000/rs6000.c (rs6000_override_options): Correct
2000 style and formatting of previous patch.
2001
2002 2002-04-22 Alan Modra <amodra@bigpond.net.au>
2003
2004 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2005 flag_pic for ABI_AIX.
2006
2007 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2008
2009 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2010 * cppfiles.c (read_include_file): Similarly.
2011 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2012 uxstrdup ustrchr, ufputs): Similarly.
2013 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2014 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2015 cpp_ideq, parse_identifier, parse_number): Similarly.
2016 * cpplib.c (struct directive, dequote_string, D, run_directive,
2017 cpp_push_buffer): Similarly.
2018 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2019 _cpp_create_definition, check_trad_stringification,
2020 cpp_macro_definition): Similarly.
2021
2022 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
2023
2024 * cppmacro.c (funlike_invocation_p): Don't step back
2025 over CPP_EOF.
2026
2027 2002-04-21 David Edelsohn <edelsohn@gnu.org>
2028
2029 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2030 labelno.
2031
2032 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
2033
2034 * doc/invoke.texi: Remove Chill references.
2035 * doc/gcc.texi: Update last modified date.
2036
2037 2002-04-20 Kazu Hirata <kazu@hxi.com>
2038
2039 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2040 push and pop. Replace add.l with add.w.
2041
2042 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2043
2044 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2045 multiply instructions for H8/300H case.
2046
2047 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2048
2049 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2050 Bum three instructions from each routine.
2051
2052 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
2053
2054 * Makefile.in: Update.
2055 * decl.c (push_c_function_context, pop_c_function_context,
2056 mark_c_function_context): Rename for consistency.
2057 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2058 * c-tree.h (push_c_function_context, pop_c_function_context,
2059 mark_c_function_context): Rename for consistency.
2060 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2061 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2062 * function.c (init_lang_status, save_lang_status,
2063 restore_lang_status, mark_lang_status, free_lang_status):
2064 Move to langhooks.h.
2065 (push_function_context_to, pop_function_context_from,
2066 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2067 Update.
2068 * function.h (init_lang_status, save_lang_status,
2069 restore_lang_status, mark_lang_status, free_lang_status):
2070 Move to langhooks.h.
2071 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2072 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2073 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2074 LANG_HOOKS_FUNCTION_INITIALIZER): New.
2075 (LANG_HOOKS_INITIALIZER): Update.
2076 (lhd_do_nothing_f): New.
2077 * langhooks.h (struct lang_hooks_for_functions): New.
2078 (struct lang_hooks): New hooks.
2079 * langhooks.c (lhd_do_nothing_f): New.
2080 objc:
2081 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2082 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2083
2084 2002-04-19 David S. Miller <davem@redhat.com>
2085
2086 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2087 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2088
2089 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2090
2091 PR optimization/3756
2092 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2093 x = ((int) y < 0) ? cst1 : cst2.
2094
2095 2002-04-19 Jakub Jelinek <jakub@redhat.com>
2096
2097 PR c/6358
2098 * function.c: Reapply patch for c/6358.
2099 (expand_function_end): Copy decl_rtl's mode, not
2100 current_function_return_rtx mode.
2101
2102 2002-04-19 Joel Sherrill <joel@OARcorp.com>
2103
2104 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2105 targets.
2106
2107 2002-04-19 Tom Tromey <tromey@redhat.com>
2108
2109 * doc/install.texi (Specific): Update status of Solaris 2.8.
2110 For PR libgcj/6158.
2111
2112 2002-04-19 Andreas Schwab <schwab@suse.de>
2113
2114 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2115 (PUT_REAL): Restore old definition.
2116
2117 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2118 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2119
2120 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2121 binutils 2.11.2 and higher generate smaller binaries than Sun's
2122 native tools.
2123
2124 2002-04-19 Mark Mitchell <mark@codesourcery.com>
2125
2126 PR c++/6352
2127 * toplev.c (rest_of_compilation): Do not defer functions for which
2128 TREE_SYMBOL_REFERENCED has already been set.
2129
2130 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
2131
2132 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2133 alternative.
2134
2135 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
2136
2137 * builtins.c: Include langhooks.h.
2138 (lang_type_promotes_to): Remove.
2139 (expand_builtin_va_arg): Use new hook.
2140 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
2141 (simple_type_promotes_to): Move to c-typeck.c.
2142 * c-common.h (simple_type_promotes_to): Remove.
2143 * c-decl.c (duplicate_decls, grokdeclarator): Update.
2144 * c-format.c: Include langhooks.h.
2145 (check_format_types): Update.
2146 * c-tree.h (c_type_promotes_to): New.
2147 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
2148 (type_lists_compatible_p): Update.
2149 * langhooks-def.h (lhd_type_promotes_to): New.
2150 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
2151 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2152 * langhooks.c (lhd_type_promotes_to): New.
2153 * langhooks.h (struct lang_hooks_for_types): New hook.
2154 * tree.h (lang_type_promotes_to): Remove.
2155 objc:
2156 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2157
2158 2002-04-18 Richard Henderson <rth@redhat.com>
2159
2160 * function.c: Revert patch for c/6358.
2161
2162 2002-04-18 Richard Henderson <rth@redhat.com>
2163
2164 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2165 blocks. Handle multiple references to the TRAP block. Handle
2166 non-adjacent THEN and OTHER blocks.
2167
2168 2002-04-18 Richard Henderson <rth@redhat.com>
2169
2170 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2171 crash with no type for by-mode libcalls.
2172
2173 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2174
2175 2002-04-18 Bob Wilson <bob.wilson@acm.org>
2176
2177 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2178 __xtensa_nonlocal_goto): Use a syscall instructions to flush
2179 the register windows.
2180
2181 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2182
2183 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
2184 appropriate. Document need for extended precision even when
2185 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
2186 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
2187 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
2188 instead of relying on later syntax error when REAL_WIDTH > 5.
2189 * real.c: Define NE based only on whether or not we have a
2190 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
2191 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
2192 define GET_REAL and PUT_REAL as simple memcpy operations; no
2193 need to byteswap or round.
2194 Use #error instead of #ifdef-ing out the entire file, for
2195 prompt error detection.
2196
2197 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2198
2199 2002-04-18 David S. Miller <davem@redhat.com>
2200
2201 * config/sparc/sparc.h (BRANCH_COST): Define.
2202
2203 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2204 does it.
2205
2206 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
2207
2208 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2209 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2210 propagate_block calls after relaxation loop using new variable
2211 stabilized_prop_flags.
2212
2213 2002-04-18 Richard Henderson <rth@redhat.com>
2214
2215 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2216 (ia64_va_arg): Expect variable sized types by reference.
2217 * config/ia64/ia64-protos.h: Update.
2218 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2219 ia64_function_arg_pass_by_reference.
2220
2221 2002-04-18 Richard Henderson <rth@redhat.com>
2222
2223 * ifcvt.c: Include except.h.
2224 (block_has_only_trap): Break out from find_cond_trap.
2225 (find_cond_trap): Use it. Always delete the trap block.
2226 (merge_if_block): Allow then block null. Be less simplistic about
2227 what insns can end a block.
2228 * Makefile.in (ifcvt.o): Depend on except.h.
2229
2230 * config/ia64/ia64.md (trap, conditional_trap): New.
2231
2232 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2233
2234 PR c/6358
2235 * function.c (assign_parms): Assign hard current_function_return_rtx
2236 register here...
2237 (expand_function_end): ...not here.
2238
2239 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
2240
2241 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2242 * c-tree.h (c_incomplete_type_error): New.
2243 * c-typeck.c (require_complete_type, build_component_ref): Update.
2244 (incomplete_type_error): Rename.
2245 * langhooks-def.h (lhd_incomplete_type_error): New.
2246 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2247 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2248 * langhooks.c (lhd_incomplete_type_error): New.
2249 * langhooks.h (struct lang_hooks_for_types): New hook.
2250 * tree.c (size_in_bytes): Use new hook.
2251 * tree.h (incomplete_type_error): Remove.
2252 objc:
2253 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2254
2255 2002-04-18 Zack Weinberg <zack@codesourcery.com>
2256
2257 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2258 TARGET_FLOAT_FORMAT blocks.
2259
2260 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2261
2262 * doc/install.texi (Downloading the source): Do not mention Chill
2263 any longer, but mention Ada.
2264 (Configuration): Do not mention Chill any longer.
2265
2266 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
2267
2268 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2269
2270 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
2271
2272 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2273 in last patch.
2274
2275 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2276
2277 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2278 instead of unsigned_type.
2279
2280 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2281
2282 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2283 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2284 later.
2285
2286 2002-04-18 Bernd Schmidt <bernds@redhat.com>
2287
2288 * attribs.c (vector_type_node_list): New static variable.
2289 (handle_vector_size_attribute): Use it to avoid generating a
2290 new type node each time we are called.
2291
2292 * combine.c (subst): Avoid trying to make a vector mode subreg of
2293 an integer constant.
2294 (gen_lowpart_for_combine): Likewise.
2295
2296 2002-04-18 Roger Sayle <roger@eyesopen.com>
2297 Jakub Jelinek <jakub@redhat.com>
2298
2299 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2300 for integer constant c (if x has unsigned type or sign bit is not
2301 set in c). This folds the zero/sign extension into the bit-wise and
2302 operation.
2303
2304 2002-04-18 Jakub Jelinek <jakub@redhat.com>
2305
2306 PR middle-end/6205
2307 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2308 otherwise xorps.
2309
2310 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
2311
2312 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2313
2314 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
2315
2316 * gcc.c (read_specs): Detect and fail if an attempt is made to
2317 rename a spec string to an already existing string.
2318
2319 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2320
2321 * config/s390/s390.c (legitimize_pic_address): Do not generate
2322 illegal address constant without CONST.
2323
2324 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2325
2326 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2327 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2328
2329 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2330
2331 PR optimization/6305
2332 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2333 to make sure previous reloads are taken into account. Generate
2334 better code if one operand is an in-range immediate constant.
2335
2336 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
2337
2338 * doc/install.texi (Building): libgcj requires GNU make.
2339
2340 2002-04-17 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR bootstrap/6315
2343 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2344 even if hard quad and register is not floating.
2345 (movtf reg<-mem split): Disallow splitting if hard quad and
2346 register is floating.
2347 (movtf mem<-reg split): Likewise.
2348 * config/sparc/sparc.c (fp_register_operand): New predicate.
2349 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2350
2351 2002-04-17 Zack Weinberg <zack@codesourcery.com>
2352
2353 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2354 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2355 (unprotoize.o): Ditto. Build from protoize.c. Define
2356 UNPROTOIZE on command line.
2357 * protoize.c: Include cppdefault.h. Delete include_defaults.
2358 (in_system_include_dir): Use cpp_include_defaults (defined in
2359 cppdefault.o).
2360 * unprotoize.c: Delete file.
2361
2362 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
2363
2364 * config/rs6000/altivec.h (vec_ld): Add array variants.
2365 (vec_lde): Same.
2366 (vec_ldl): Same.
2367
2368 2002-04-17 Alan Matsuoka <alanm@redhat.com>
2369 Aldy Hernandez <aldyh@redhat.com>
2370
2371 * config/rs6000/altivec.h: Define __ALTIVEC__.
2372 (bool): New.
2373 (__pixel): New.
2374 (pixel): New.
2375 (vec_cfux): New.
2376 (vec_vmaddfp): New.
2377 (vec_vsldoi): New.
2378 Add parentheses to all macro arguments.
2379
2380 2002-04-16 Richard Henderson <rth@redhat.com>
2381
2382 PR c++/6320
2383 * except.c (remove_eh_handler): Insert inner regions at beginning
2384 of sibling chain. Refactor expressions.
2385
2386 2002-04-16 Richard Henderson <rth@redhat.com>
2387
2388 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2389 * config/sparc/sol2-gas-bi.h: New file.
2390 * config.gcc (sparc*-solaris): Add it as needed.
2391 * configure.in (AS_SPARC64_FLAG): Remove check.
2392 * config.in, configure: Regenerate.
2393
2394 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2395
2396 2002-04-16 Richard Henderson <rth@redhat.com>
2397
2398 * config/mips/mips.c (override_options): Don't override N32 for
2399 a 64-bit ISA.
2400
2401 PR 6202
2402 * config/mips/mips.md (can_delay): Split out of existing define_delays.
2403 (HILO_delay): Set can_delay false.
2404
2405 2002-04-16 Dale Johannesen <dalej@apple.com>
2406
2407 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2408 instruction addresses.
2409 (rs6000_output_function_epilogue): Likewise.
2410
2411 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
2412
2413 * c-parse.in (poplevel, compstmt_start,
2414 compstmt_primary_start): Add ending ';', in accordance
2415 with POSIX.
2416
2417 2002-04-16 Richard Henderson <rth@redhat.com>
2418
2419 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2420 Adjust tm_file order to get TARGET_DEFAULT set properly.
2421 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2422 * doc/install.texi (sparc-solaris): Update.
2423
2424 2002-04-16 Dale Johannesen <dalej@apple.com>
2425
2426 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2427 comparison operands do not match each other or if modes of
2428 conditions do not match result.
2429
2430 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
2431
2432 PR target/6305
2433 * config/s390/s390.md (mulsidi3): Set both subregs of the
2434 multiword register.
2435
2436 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
2437
2438 * config/rs6000/altivec.h (vec_addc): Type check.
2439
2440 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2441
2442 PR middle-end/6279
2443 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2444
2445 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2446
2447 2002-04-15 Richard Henderson <rth@redhat.com>
2448
2449 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2450 call_really_used_regs too.
2451
2452 2002-04-15 Richard Henderson <rth@redhat.com>
2453
2454 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2455
2456 2002-04-15 David S. Miller <davem@redhat.com>
2457
2458 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2459 as being CLOBBERed.
2460
2461 2002-04-16 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR c/6290
2464 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2465 CONST_VECTOR is { 0, ... 0 }.
2466
2467 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
2468
2469 * doc/install.texi (Installing GCC: Configuration): Clarify
2470 the only supported ways to configure gcc.
2471
2472 2002-04-15 Roland McGrath <roland@frob.com>
2473
2474 * config.gcc (alpha*-*-gnu*): New target configuration.
2475 * config/alpha/gnu.h: New file for it.
2476 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2477
2478 2002-04-16 Mark Mitchell <mark@codesourcery.com>
2479
2480 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2481 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2482 * tree.h (expand_start_stmt_expr): Update prototype.
2483 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2484 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2485 on the STMT_EXPR created for the inline function.
2486
2487 2002-04-15 Richard Henderson <rth@redhat.com>
2488
2489 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2490 config/i386/linux-aout.h, config/i386/linux-oldld.h,
2491 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2492 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2493 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2494 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2495 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2496 Define __gnu_linux__, not gnu_linux.
2497 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2498
2499 2002-04-15 Mark Mitchell <mark@codesourcery.com>
2500
2501 Remove Chill front end.
2502 * gcc.c (default_compilers): Remove Chill entries.
2503 * ch: Remove directory.
2504 * doc/frontends.texi: Remove information about Chill.
2505 * doc/sourcebuild.texi: Likewise.
2506 * doc/standards.texi: Likewise.
2507
2508 2002-04-15 Douglas B Rupp <rupp@gnat.com>
2509
2510 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2511 (LONGLONG_STANDALONE): Define.
2512
2513 2002-04-15 David S. Miller <davem@redhat.com>
2514
2515 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2516 Call emit_library_call with LCT_NORMAL.
2517 (sparc_initialize_trampoline): Use LCT_foo instead of
2518 magic constant in emit_library_call invocations.
2519 (sparc64_initialize_trampoline): Likewise.
2520 (sparc_profile_hook): Likewise.
2521 * config/sparc/sparc.md: Likewise.
2522
2523 * config/sparc/sparc.c (sparc_extra_constraint_check):
2524 Fix type of argument 'c'.
2525 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2526 Likewise.
2527
2528 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
2529
2530 * diagnostic.h (output_buffer_state): Redefine.
2531 (output_format_decoder): New macro.
2532 (output_prefixing_rule): Likewise.
2533 (output_line_cutoff): Likewise.
2534 (diagnostic_format_decoder): Adjust.
2535 (diagnostic_prefixing_rule): Likewise.
2536 (diagnostic_line_cutoff): Likewise.
2537 (diagnostic_state): Likewise.
2538 (diagnostic_kind_count): Likewise.
2539 (diagnostic_buffer): Now a macro.
2540
2541 * diagnostic.c (diagnostic_buffer): Remove definition.
2542 (output_is_line_wrapping): Adjust.
2543 (set_real_maximum_length): Likewise.
2544 (output_set_maximum_length): Likewise.
2545 (init_output_buffer): Likewise.
2546 (lhd_print_error_function): Likewise.
2547 (output_do_verbatim): Likewise.
2548
2549 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
2550
2551 * cpperror.c (print_location): Don't print include chain
2552 if line == 0.
2553 (cpp_begin_message): Update to use DL_ macros.
2554 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2555 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2556 cpp_notice, cpp_notice_from_errno): Remove.
2557 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2558 level.
2559 (cpp_errno): New.
2560 * cppexp.c (CPP_ICE): Remove.
2561 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2562 lex, integer_overflow, _cpp_parse_expr): Update.
2563 * cppfiles.c (read_include_file, find_include_file,
2564 handle_missing_header, _cpp_read_file, remap_filename): Update.
2565 * cpphash.h (enum error_type): Remove.
2566 (_cpp_begin_message): Update.
2567 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2568 cpp_handle_option, cpp_post_options): Update.
2569 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2570 skip_whitespace, parse_identifier, parse_slow, parse_string,
2571 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2572 cpp_interpret_charconst): Update.
2573 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2574 lex_macro_node, do_undef, glue_header_name, parse_include,
2575 do_include_common, read_flag, do_line, do_linemarker, do_ident,
2576 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2577 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2578 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2579 _cpp_pop_buffer, do_diagnostic): Update.
2580 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2581 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2582 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2583 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2584 cpp_notice, cpp_notice_from_errno): Remove.
2585 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2586 level.
2587 (cpp_errno): New.
2588 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2589 collect_args, enter_macro_context, save_parameter, parse_params,
2590 _cpp_create_definition, check_trad_stringification,
2591 cpp_macro_definition): Update.
2592 * cppmain.c (cpp_preprocess_file): Update.
2593 * fix-header.c (read_scan_file): Update.
2594
2595 2002-04-14 Andreas Schwab <schwab@suse.de>
2596
2597 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2598
2599 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2600
2601 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2602
2603 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2604
2605 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2606 not gnu_hurd.
2607
2608 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
2609
2610 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2611
2612 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2613
2614 * config/sparc/t-elf: Enable v8 multilibs. Impacts
2615 sparc-elf and sparc-rtems targets.
2616
2617 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2618
2619 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2620 defined, and __gnu_hurd__ wherever __GNU__ is defined.
2621 * arm/linux-elf.h: Likewise.
2622 * cris/aout.h: Likewise.
2623 * cris/linux.h: Likewise.
2624 * i370/linux.h: Likewise.
2625 * i386/gnu.h: Likewise.
2626 * i386/linux-aout.h: Likewise.
2627 * i386/linux-oldld.h: Likewise.
2628 * i386/linux.h: Likewise.
2629 * i386/linux64.h: Likewise.
2630 * ia64/linux.h: Likewise.
2631 * m68k/linux-aout.h: Likewise.
2632 * m68k/linux.h: Likewise.
2633 * mips/linux.h: Likewise.
2634 * pa/pa-linux.h: Likewise.
2635 * pj/linux.h: Likewise.
2636 * rs6000/sysv4.h: Likewise.
2637 * s390/linux.h: Likewise.
2638 * sh/linux.h: Likewise.
2639 * sparc/linux-aout.h: Likewise.
2640 * sparc/linux.h: Likewise.
2641 * sparc/linux64.h: Likewise.
2642 * xtensa/linux.h: Likewise.
2643
2644 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
2645
2646 * stmt.c (check_unique_operand_names): Expect operand names to
2647 be strings rather than identifiers. Use simple_cst_equal to
2648 compare them.
2649 (resolve_operand_name_1): Make same identifier to string change here.
2650 * c-parse.in (asm_operand): Convert a named operand into a string.
2651 * cp/parse.y (asm_operand): Likewise.
2652
2653 2002-04-13 Andreas Schwab <schwab@suse.de>
2654
2655 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2656
2657 2002-04-12 Mark Mitchell <mark@codesourcery.com>
2658
2659 Revert these changes:
2660
2661 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2662
2663 PR c++/5571
2664 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2665
2666 2002-04-12 Richard Henderson <rth@redhat.com>
2667
2668 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2669 (sparc*-*-solaris): Clean up header files.
2670 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2671 and plan on generating 64-bit code.
2672 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2673 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2674 * config/sparc/sol2-sld-64.h: Rename ...
2675 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
2676 for AS_SPARC64_FLAG not defined.
2677 * config/sparc/sol2-gld-bi.h: New.
2678 * config/sparc/sol2-sld.h: Remove.
2679 * config/sparc/sol26-sld.h: New.
2680 * config/sparc/sol2.h: Tidy comments.
2681 * doc/install.texi: Document sparc-solaris configury changes.
2682
2683 2002-04-12 Richard Henderson <rth@redhat.com>
2684
2685 * recog.c (offsettable_address_p): Match the logic in adjust_address.
2686
2687 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2688 in 64-bit mode only. Use only for 32-bit or MEDLOW.
2689
2690 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2691
2692 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2693
2694 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
2695
2696 * pa.c (pa_can_combine_p): Call extract_insn before calling
2697 constrain_operands.
2698
2699 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2700
2701 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2702 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2703 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2704 (CPP_PREDEFINES): Handle __declspec.
2705 * config/i386/t-interix (USER_H): Remove.
2706
2707 2002-04-12 DJ Delorie <dj@redhat.com>
2708
2709 * integrate.c (compare_blocks): Make comparisons safe for when
2710 sizeof(int) < sizeof(char *).
2711 (find_block): Likewise.
2712
2713 2002-04-12 Jan Hubicka <jh@suse.cz>
2714 David Edelsohn <edelsohn@gnu.org>
2715
2716 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2717 registers.
2718 (symbol_ref_operand): New.
2719 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2720 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2721
2722 2002-04-12 Andreas Schwab <schwab@suse.de>
2723
2724 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2725 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2726 overrides the definition in config/svr4.h.
2727
2728 2002-04-12 Eric Norum <eric.norum@usask.ca>
2729
2730 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2731 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2732 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2733 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2734 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2735 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2736 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2737 definitions to config/rtems.h and make the targets more similar.
2738
2739 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2740
2741 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2742 POINTERS_EXTEND_UNSIGNED.
2743 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2744 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2745
2746 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2747 not specified.
2748
2749 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2750
2751 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2752 depends on TARGET_SHMEDIA, not TARGET_SH5.
2753
2754 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2755
2756 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2757 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2758
2759 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2760
2761 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2762 no r0 clobber.
2763
2764 2002-04-12 Andreas Schwab <schwab@suse.de>
2765
2766 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2767
2768 2002-04-12 Richard Henderson <rth@redhat.com>
2769
2770 PR bootstrap/4191
2771 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2772
2773 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2774 modes spanning multiple hard regs.
2775
2776 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2777
2778 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2779
2780 * pa.c (pa_output_function_prologue): Don't accumulate the total
2781 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2782 the portable runtime.
2783 (output_deferred_plabels): Handle 64bit plabels.
2784 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2785 generating pic code using the GAS assembler for object formats that
2786 are not SOM (ie., ELF32 and ELF64).
2787 (output_millicode_call): Check attribute type if attribute length is 28.
2788 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2789 dbr_sequence_length once.
2790 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2791 dbr_sequence_length once.
2792 * pa.h (TARGET_SOM): Define if not defined.
2793 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2794 with GAS and not SOM.
2795 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2796 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2797
2798 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2799
2800 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2801 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2802 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2803 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2804 elfos.h and dbxelf.h values are fine now.
2805 * config/i386/freebsd.h, config/alpha/freebsd.h
2806 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2807
2808 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2809
2810 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2811 or set Acpu or Amachine. Reformat.
2812 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2813 define.
2814 (LINK_SPEC): Do not need to undef.
2815 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2816 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2817 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2818 define.
2819 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2820 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2821 (LINK_SPEC): Do not need to undef.
2822 (DONT_USE_BUILTIN_SETJMP): Do not define.
2823 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2824 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2825 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2826 Remove trailing spaces.
2827 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2828 __ELF__, or set Acpu or Amachine. Reformat.
2829 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2830 define.
2831
2832 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2833
2834 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2835 all other *-*-freebsd* targets.
2836
2837 2002-04-11 Richard Henderson <rth@redhat.com>
2838
2839 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2840
2841 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2842
2843 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2844 Include {cpu}/{cpu}.h thru tm_file.
2845 (alpha*-*-linux*ecoff): Remove target.
2846 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2847 (LINK_SPEC): Remove, is not OS independent.
2848 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2849 (LINK_SPEC): Do not need to #undef any longer.
2850 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2851 any longer.
2852 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2853 __ELF__.
2854 (LINK_SPEC): Moved here from alpha/elf.h.
2855 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2856 SUB_CPP_PREDEFINES.
2857 * config/alpha/linux-ecoff.h: Remove.
2858 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2859 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2860 (CPP_SUBTARGET_SPEC): Do not define.
2861 (LINK_SPEC): Do not need to #undef any longer.
2862 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2863 * config/alpha/vms.h: Likewise.
2864
2865 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2866
2867 * doc/extend.texi: Remove old claim that typedefs cannot have
2868 an alignment attribute.
2869
2870 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2871
2872 PR optimization/6177
2873 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2874 bitpos is 0 and bitsize CONCAT size.
2875
2876 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2877
2878 PR c/6223
2879 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2880
2881 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2882
2883 * config/alpha/freebsd.h: Minor reformatting.
2884 (CPP_SPEC): Define ELF and add cpp_subtarget.
2885 (ASM_SPEC): No longer needed.
2886
2887 2002-04-11 Richard Henderson <rth@redhat.com>
2888
2889 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2890 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2891 (dimode mem/zero splitter): New.
2892
2893 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2894
2895 * config/cris/cris.c (cris_override_options): Tweak error message
2896 for PIC not implemented.
2897
2898 * config/cris/cris.h: Tweak comments related to parameter-passing.
2899
2900 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2901
2902 2002-04-10 Richard Henderson <rth@redhat.com>
2903
2904 * except.c (add_ehl_entry): Allow duplicates after landing pad
2905 creation.
2906
2907 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2908
2909 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2910
2911 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2912
2913 * c-decl.c (c_init_decl_processing): Move generation of
2914 decls for g77_integer_type_node and friends from here ...
2915 * c-common.c (c_common_nodes_and_builtins): ... to here.
2916
2917 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2918
2919 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2920 is only used as frame pointer when frame_pointer_needed is true.
2921
2922 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2923
2924 PR target/817
2925 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2926 for the fact that the pool entry uses two words.
2927 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2928 1k bytes.
2929 (movdf_soft_insn): Similarly.
2930 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2931 for the fact that the pool entry uses three words.
2932
2933 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2934
2935 * config/mips/mips.c (mips_va_arg): When using the struct version
2936 of the EABI va_list, allow arguments in the register save area to
2937 take up less room than a stack argument.
2938
2939 2002-04-10 Richard Henderson <rth@redhat.com>
2940
2941 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2942 if EXPAND_INITIALIZER.
2943
2944 2002-04-09 Richard Henderson <rth@redhat.com>
2945
2946 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2947 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2948
2949 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2950
2951 PR optimization/6233
2952 * rtlanal.c (pure_call_p): New function.
2953 * rtl.h (pure_call_p): Declare.
2954 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2955 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2956
2957 2002-04-09 Eric Christopher <echristo@redhat.com>
2958
2959 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2960 information to .comm directive.
2961
2962 2002-04-09 Richard Henderson <rth@redhat.com>
2963
2964 PR c/5078
2965 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2966
2967 2002-04-09 Richard Henderson <rth@redhat.com>
2968
2969 * basic-block.h (flow_delete_block_noexpunge): Declare.
2970 (expunge_block_nocompact): Declare.
2971 * cfg.c (expunge_block_nocompact): Split out from ...
2972 (expunge_block): ... here.
2973 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2974 (flow_delete_block_noexpunge): Split out from ...
2975 (flow_delete_block): ... here.
2976 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2977 removing dead blocks.
2978 * except.c (exception_handler_labels): Remove.
2979 (exception_handler_label_map): New.
2980 (struct eh_region): Add aka member.
2981 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2982 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2983 (for_each_eh_label, for_each_eh_label_1): New.
2984 (init_eh): Register exception_handler_label_map.
2985 (free_eh_status): Use free_region.
2986 (find_exception_handler_labels): Use the map, not the list.
2987 (remove_exception_handler_label): Likewise.
2988 (maybe_remove_eh_handler): Likewise.
2989 (remove_eh_handler): Use the region aka bitmap.
2990 * except.h (exception_handler_labels): Remove.
2991 (for_each_eh_label): Declare.
2992 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2993 * loop.c (invalidate_loops_containing_label): New.
2994 (find_and_verify_loops): Use it. Use for_each_eh_label.
2995 * sched-rgn.c (is_cfg_nonregular): Use
2996 current_function_has_exception_handlers.
2997
2998 2002-04-09 Richard Henderson <rth@redhat.com>
2999
3000 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3001 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3002 Do not return changed status.
3003 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3004 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3005 New functions that do return changed status.
3006 * sbitmap.h: Update decls.
3007 * gcse.c, lcm.c: Use _cg functions as needed.
3008
3009 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3010
3011 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3012 (sh64-*-elf*, sh-*-rtemself*): Likewise.
3013 * config/sh/embed_bb.c: New file.
3014 * config/sh/embed-elf.h: New file.
3015 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3016 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
3017 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3018 __PTRDIFF_TYPE__ .
3019 (SUBTARGET_CPP_PTR_SPEC): Don't define.
3020 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3021 Add subtarget_asm_endian_spec.
3022 (ASM_SPEC): Use subtarget_asm_endian_spec.
3023 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3024 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3025 (WCHAR_UNSIGNED): Define.
3026 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3027 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3028 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3029 Fix value.
3030 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3031 (sh_adjust_cost): Likewise.
3032 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3033 __PTRDIFF_TYPE__ .
3034 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3035 (WCHAR_TYPE_SIZE): Likewise.
3036 (ASM_SPEC): Use subtarget_asm_endian_spec.
3037 (SH_ELF_WCHAR_TYPE): #undef/ #define.
3038 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3039 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3040 (MAX_WCHAR_TYPE_SIZE): Don't #define .
3041 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3042 (USER_LABEL_PREFIX): Don't #undef /#define .
3043 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3044 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3045 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3046 (ASM_SPEC): Likewise.
3047 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3048 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3049 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3050 (LIB2FUNCS_EXTRA): Define.
3051 * t-sh64 (LIB2FUNCS_EXTRA): Define.
3052 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3053 (LIB1ASMFUNCS_CACHE): Define.
3054 (LIB2FUNCS_EXTRA): Redefine empty.
3055
3056 2002-04-08 Richard Henderson <rth@redhat.com>
3057
3058 * reorg.c (get_branch_condition): Use reversed_comparison_code.
3059
3060 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3061
3062 * config/m68hc11/larith.asm (__map_data_section): Fix condition
3063 and optimize for size.
3064 (__do_global_ctors): Fix pointer comparison.
3065 (__do_global_dtors): Likewise.
3066
3067 2002-04-09 David S. Miller <davem@redhat.com>
3068
3069 * config/sparc/sparc.c (sparc_extra_constraint_check): New
3070 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
3071 allow reloading pseudos.
3072 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3073 * config/sparc/sparc-protos.h: Declare it.
3074
3075 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3076 unsigned comparison warning.
3077 (output_restore_regs): Mark leaf_function as unused.
3078
3079 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3080
3081 * expr.c (is_aligning_offset): New function.
3082 (expand_expr, case COMPONENT_EXPR): Call it.
3083
3084 2002-04-08 David S. Miller <davem@redhat.com>
3085
3086 PR target/6082
3087 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3088
3089 Make init_priority work on Sparc when using GNU ld.
3090 * config/sparc/linux.h, config/sparc/linux64.h,
3091 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3092 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3093 * config/sparc/sol2-gld.h: New file to do the same.
3094 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3095 sparc/sol2-gld.h to tm_file.
3096
3097 PR optimization/4328
3098 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3099 * doc/md.texi: Document it.
3100 * config/sparc/sparc.md (movdi_insn_sp64_novis,
3101 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3102 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3103 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3104 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3105
3106 2002-04-08 Andreas Jaeger <aj@suse.de>
3107
3108 * stmt.c (expand_asm_operands): Revert last patch from Richard
3109 Henderson.
3110
3111 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3112
3113 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3114 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
3115
3116 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3117
3118 * doc/contrib.texi (Contributors): Add David O'Brien.
3119
3120 2002-04-08 Alan Modra <amodra@bigpond.net.au>
3121
3122 * configure.in (auto-build.h): Use target_alias and build_alias
3123 when running configure.
3124 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
3125 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
3126 * configure: Regenerate.
3127
3128 2002-04-07 David S. Miller <davem@redhat.com>
3129
3130 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3131
3132 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3133
3134 PR 5933
3135 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3136 generating 32-bit pic code.
3137
3138 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
3139
3140 * cppinit.c (cpp_create_reader): Initialize
3141 discard_comments_in_macro_exp.
3142 (COMMAND_LINE_OPTIONS): Add "-CC" option.
3143 (cpp_handle_option): Handle "-CC" option.
3144 * cpplex.c (save_comment): If saving a C++ comment in
3145 a directive, convert it to a C comment.
3146 (_cpp_lex_direct): Pass second comment start character to
3147 save_comment to indicate comment type.
3148 * cpplib.c (_cpp_handle_directive): If processing
3149 a "#define" directive and discard_comments_in_macro_exp
3150 is false, re-enable saving of comments.
3151 (lex_macro_node): If discard_comments_in_macro_exp is false,
3152 discard any comments before the macro identifier.
3153 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
3154 member.
3155 * cppmacro.c (cpp_get_token): If expanding a macro while
3156 processing a directive, discard any comments we might encounter.
3157 (parse_params): If discard_comments_in_macro_exp is false,
3158 ignore comments in the macro parameter list.
3159 * gcc.c (cpp_unique_options): Add "-CC" option.
3160 (option_map): Map "--comments-in-macros" to "-CC".
3161 * doc/cppopts.texi: Document "-CC" option.
3162 * f/lang-specs.h: Add "-CC" option.
3163 * testsuite/gcc.dg/cpp/maccom1.c: New test.
3164 * testsuite/gcc.dg/cpp/maccom2.c: New test.
3165 * testsuite/gcc.dg/cpp/maccom3.c: New test.
3166 * testsuite/gcc.dg/cpp/maccom4.c: New test.
3167 * testsuite/gcc.dg/cpp/maccom5.c: New test.
3168 * testsuite/gcc.dg/cpp/maccom6.c: New test.
3169
3170 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3171
3172 PR middle-end/6180
3173 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3174
3175 2002-04-06 Mark Mitchell <mark@codesourcery.com>
3176
3177 PR c++/5571
3178 * stor-layout.c (layout_decl): Reset the RTL for the decl.
3179
3180 PR opt/5120
3181 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3182 RTX_UNCHANGING_P for the functions arguments when a tail call
3183 is made.
3184
3185 2002-04-06 Jason Merrill <jason@redhat.com>
3186
3187 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3188 (parse_options_and_default_flags): Set them appropriately.
3189 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3190
3191 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
3192
3193 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3194 here.
3195
3196 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3197 semicolon.
3198
3199 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3200 types come in by-reference. Fix typo in comment.
3201
3202 2002-04-05 David S. Miller <davem@redhat.com>
3203
3204 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3205 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3206 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3207 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3208
3209 2002-04-05 David S. Miller <davem@redhat.com>
3210
3211 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3212 are not going to emit return instructions, emit at least a nop
3213 for the sake of sane backtraces.
3214
3215 2002-04-05 Richard Henderson <rth@redhat.com>
3216
3217 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3218
3219 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
3220
3221 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3222
3223 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
3224
3225 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3226 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3227 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3228
3229 2002-04-05 Andreas Schwab <schwab@suse.de>
3230
3231 * c-convert.c: Include c-common.h.
3232 * Makefile.in (c-convert.o): Updated.
3233
3234 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3235
3236 * mklibgcc.in: Use separate libgcc.map for each multilib.
3237 * Makefile.in (distclean): Don't remove libgcc.map here.
3238
3239 2002-04-05 Jakub Jelinek <jakub@redhat.com>
3240
3241 * Makefile.in (s-mlib): Handle --disable-multilib by separate
3242 genmultilib invocation.
3243
3244 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
3245
3246 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3247 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
3248 to num_gprs for symmetry.
3249 * config/mips/mips.c: Adjust accordingly.
3250
3251 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
3252
3253 * c-common.c (truthvalue_conversion): Rename, update.
3254 * c-common.h (c_common_truthvalue_conversion): New.
3255 * c-convert.c (convert): Update.
3256 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3257 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3258 * c-typeck.c (build_binary_op, build_unary_op,
3259 build_conditional_expr): Update.
3260 * fold-const.c (constant_boolean_node, fold): Use langhook.
3261 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3262 * langhooks.h (struct lang_hooks): New hook.
3263 * stmt.c (expand_decl_cleanup): Use langhook.
3264 * tree.h (truthvalue_conversion): Remove.
3265 objc:
3266 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3267
3268 2002-04-05 Alan Modra <amodra@bigpond.net.au>
3269
3270 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3271 Add rules to make null object file.
3272
3273 2002-04-04 Jim Blandy <jimb@redhat.com>
3274
3275 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3276 macro formal parameter names.
3277
3278 2002-04-04 David S. Miller <davem@redhat.com>
3279
3280 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3281
3282 2002-04-04 Richard Henderson <rth@redhat.com>
3283
3284 PR middle-end/5099
3285 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3286 Support copies into and out of memory. Don't accept allows_reg
3287 and allows_mem as gospel.
3288
3289 2002-04-04 Richard Henderson <rth@redhat.com>
3290
3291 PR opt/6165
3292 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3293 (write_dependence_p): Likewise.
3294
3295 2002-04-04 Richard Henderson <rth@redhat.com>
3296
3297 * predict.c (estimate_bb_frequencies): Do frequency calculation
3298 with a volatile temporary.
3299
3300 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
3301
3302 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3303
3304 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3305
3306 PR c++/6119
3307 * final.c (final_start_function): Don't bump profile_label_no here...
3308 (final_end_function): ...but here.
3309
3310 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3311
3312 * config/sparc/sparc.md (pic): New attribute.
3313 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3314 into stack slots.
3315 (split after do_builtin_setjmp_setup): New.
3316
3317 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3318
3319 PR fortran/6106
3320 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3321 change.
3322
3323 2002-04-04 Jakub Jelinek <jakub@redhat.com>
3324
3325 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3326 UNITS_PER_WORD for zero sized aggregates.
3327
3328 2002-04-03 David S. Miller <davem@redhat.com>
3329
3330 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3331 one-character spec for this, just use %(link_gcc_c_sequence).
3332
3333 2002-04-03 David S. Miller <davem@redhat.com>
3334
3335 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3336 handling.
3337
3338 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
3339
3340 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3341 (DWARF_FRAME_RETURN_COLUMN): Move.
3342 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3343 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3344 * pa.c (except.h, predict.h): Include.
3345 (FRP): Delete.
3346 (store_reg_modify, set_reg_plus_d): Revise prototypes.
3347 (output_ascii): Add cast.
3348 (store_reg_modify): Revise to add frame notes.
3349 (set_reg_plus_d): Likewise.
3350 (compute_frame_size): Include space for eh data registers in frame if
3351 the current function calls eh_return.
3352 (hppa_expand_prologue): Ensure register %r2 is saved if the current
3353 function calls eh_return. Save eh data registers if the current
3354 function calls eh_return. Fix code to add frame notes. Emit
3355 blockage to prevent insns with frame notes being scheduled in the
3356 delay slot of calls.
3357 (hppa_expand_epilogue): Restore eh data registers and do final stack
3358 adjustment if the current function calls eh_return. Don't add frame
3359 notes.
3360 (output_call): Revise for change in length of call insn. Don't do
3361 return pointer adjustment for an unconditional jump in the delay slot
3362 of a call when using frame notes.
3363 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3364 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3365 (ARG_POINTER_CFA_OFFSET): Define.
3366 * pa.md (return_external_pic): New pattern.
3367 (prologue): Correct formatting. Use return_external_pic if current
3368 function calls eh_return.
3369 (call_internal_symref, call_value_internal_symref,
3370 sibcall_internal_symref, sibcall_value_internal_symref): Change default
3371 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3372 respectively.
3373 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3374
3375 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3376 list of targets to check using "nop" insn.
3377 * configure: Rebuilt.
3378
3379 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3380
3381 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3382
3383 2002-04-03 David S. Miller <davem@redhat.com>
3384
3385 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3386 library sequence passed to the linker.
3387 (LINK_COMMAND_SPEC): Use it.
3388 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3389 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3390 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3391
3392 2002-04-03 Jason Merrill <jason@redhat.com>
3393
3394 * except.c (struct eh_status): Remove protect_list.
3395 (begin_protect_partials, end_protect_partials): Remove.
3396 (add_partial_entry): Remove.
3397 * except.h: Remove prototypes.
3398
3399 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3400 expand_decl_cleanup_eh.
3401
3402 PR c++/5636
3403 * tree.h (CLEANUP_EH_ONLY): New macro.
3404 * stmt.c (expand_decl_cleanup_eh): New fn.
3405 (expand_cleanups): Check CLEANUP_EH_ONLY.
3406 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3407 Use expand_decl_cleanup_eh.
3408 (expand_stmt): Adjust.
3409 * c-common.h: Adjust prototype.
3410
3411 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
3412
3413 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3414 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3415 (cris_target_asm_function_epilogue): Ditto.
3416 (cris_initial_frame_pointer_offset): Ditto.
3417 (cris_simple_epilogue): Ditto.
3418 (cris_expand_builtin_va_arg): Variable-size types come in
3419 by-reference.
3420
3421 2002-04-03 David S. Miller <davem@redhat.com>
3422
3423 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3424 little-endian.
3425 (set_fast_math): Correct 'fsr' type.
3426
3427 2002-04-03 Richard Henderson <rth@redhat.com>
3428
3429 PR opt/3569
3430 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3431 * toplev.c (check_global_declarations): Use it.
3432 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3433 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3434 (LANG_HOOKS_DECLS): Add it.
3435 * langhooks.c (lhd_warn_unused_global_decl): New.
3436 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3437 * c-objc-common.c (c_warn_unused_global_decl): New.
3438 * c-tree.h (c_warn_unused_global_decl): Declare.
3439 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3440
3441 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
3442
3443 * langhooks-def.h (lhd_set_decl_assembler_name,
3444 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3445 (LANG_HOOKS_INITIALIZER): Update.
3446 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3447 * langhooks.h (struct lang_hooks): New hook.
3448 * tree.c (set_decl_assembler_name): Move to langhooks.c.
3449 (lang_set_decl_assembler_name): Remove.
3450 (init_obstacks): Don't set hook.
3451 (decl_assembler_name): New function.
3452 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3453 (decl_assembler_name): New.
3454 (lang_set_decl_assembler_name): Remove.
3455
3456 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3457
3458 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3459 works properly with .hidden symbols.
3460 * configure: Rebuilt.
3461 * config.in: Rebuilt.
3462 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3463 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3464 properly with .hidden symbols.
3465
3466 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3467
3468 PR middle-end/6102
3469 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3470 USE argument.
3471
3472 2002-04-03 Richard Henderson <rth@redhat.com>
3473
3474 PR opt/4120
3475 * sched-rgn.c (sets_likely_spilled): New.
3476 (sets_likely_spilled_1): New.
3477 (add_branch_dependences): Use it.
3478
3479 2002-04-02 Richard Henderson <rth@redhat.com>
3480
3481 PR opt/4311
3482 * loop.h (LOOP_FIRST_PASS): New.
3483 * loop.c (strength_reduce): Mind it when deciding to unroll.
3484 * toplev.c (rest_of_compilation): Set it.
3485
3486 2002-04-02 David S. Miller <davem@redhat.com>
3487
3488 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3489 mems_ok_for_ldd_peep when the order of the loads being examined
3490 is reversed.
3491 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3492 existing comment to increase comprehension of this situation.
3493
3494 2002-04-02 Zack Weinberg <zack@codesourcery.com>
3495
3496 * config/sh/sh.md: Don't use union real_extract.
3497
3498 2002-04-02 Richard Henderson <rth@redhat.com>
3499
3500 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3501
3502 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3503
3504 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3505 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3506 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3507 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3508 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3509 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3510 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3511 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3512 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3513 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3514 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3515 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3516 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3517 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3518 Include as many configury headers via tm_file as possible. This
3519 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3520 * config/openbsd-oldgas.h: New file.
3521 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3522 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3523 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3524 config/i386/i386-coff.h, config/i386/i386-interix.h,
3525 config/i386/iscdbx.h, config/i386/linux-aout.h,
3526 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3527 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3528 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3529 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3530 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3531 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3532 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3533 config/i386/vxi386.h: Do not directly include configury headers.
3534 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3535 Directly include configury headers that are no longer automatically
3536 included by the above headers.
3537 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3538 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3539 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3540 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3541 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3542 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3543 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3544 (TARGET_VERSION): Define.
3545 * config/i386/beos-elf.h, config/i386/freebsd.h,
3546 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3547 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3548 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3549 config/i386/sco5.h, config/i386/sysv4.h
3550 (TARGET_VERSION): Do not need to protect.
3551 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3552 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3553 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3554 config/i386/i386-interix.h, config/i386/linux-aout.h,
3555 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3556 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3557 (YES_UNDERSCORES): Do not define - not needed.
3558 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3559 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3560 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3561 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3562 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3563 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3564 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3565 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3566
3567 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
3568 Richard Henderson <rth@redhat.com>
3569
3570 PR c/5484
3571 * function.c (assign_temp): Accept either type or decl argument.
3572 Detect variables whose size is too large to fit into an integer.
3573 * stmt.c (expand_decl): Pass the decl, not the type.
3574
3575 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3576
3577 * protoize.c: Match include directory usage with cppdefault.c.
3578
3579 2002-04-03 Jeffrey A Law (law@redhat.com)
3580 Hans-Peter Nilsson <hp@bitrange.com>
3581
3582 * combine.c (simplify_comparison): Avoid narrowing a comparison
3583 with a paradoxical subreg when doing so would drop signficant bits.
3584
3585 2002-04-02 Steve Ellcey <sje@cup.hp.com>
3586
3587 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3588 if POINTERS_EXTEND_UNSIGNED is defined.
3589
3590 2002-04-02 Richard Henderson <rth@redhat.com>
3591
3592 PR opt/3967
3593 * local-alloc.c (contains_replace_regs): LO_SUM may contain
3594 replace regs.
3595
3596 2002-04-02 Richard Henderson <rth@redhat.com>
3597
3598 * doc/standards.texi: Document required freestanding libc entry points.
3599
3600 2002-04-02 Alan Modra <amodra@bigpond.net.au>
3601
3602 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3603 associated splitter. Remove MQ constraint.
3604 (ctrdi_internal4): Correct CCmode clobber.
3605
3606 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3607
3608 * milli64.S ($$dyncall): New function.
3609 * t-linux (LIB1ASMFUNCS): Revise module list.
3610 (LIB1ASMSRC): Use pa/milli64.S.
3611
3612 2002-04-02 Richard Henderson <rth@redhat.com>
3613
3614 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3615 rename solaris_sys_varargs_h.
3616
3617 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3618
3619 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3620 the same mode as its component.
3621
3622 2002-04-02 Richard Henderson <rth@redhat.com>
3623
3624 PR opt/190
3625 * final.c (this_is_asm_operands): Export.
3626 * output.h (this_is_asm_operands): Declare.
3627 * config/i386/i386.c (print_operand): Error odd asm operands.
3628
3629 2002-04-02 Richard Henderson <rth@redhat.com>
3630
3631 PR opt/420
3632 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3633
3634 2002-04-01 Richard Henderson <rth@redhat.com>
3635
3636 PR target/1538
3637 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3638 * fixinc/fixincl.x: Rebuild.
3639
3640 2002-04-01 Richard Henderson <rth@redhat.com>
3641
3642 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3643 (atomic_alloc, atomic_free): New.
3644 (SIZE, MASK_FOR, PTR_IN): New.
3645 (emergency_reg_state, emergency_reg_state_free): New.
3646 (emergency_labeled_state, emergency_labeled_state_free): New.
3647 (reg_state_alloced, labeled_state_alloced): New.
3648 (alloc_reg_state, free_reg_state): New.
3649 (alloc_label_state, free_label_state, free_label_states): New.
3650 (push, pop, dup_state_stack, free_state_stack): Use them.
3651 (desc_label_state): Likewise.
3652 (uw_frame_state_for): Free label states and state stack.
3653 (uw_update_reg_address): Eliminate warnings.
3654
3655 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
3656
3657 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3658 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3659
3660 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3661
3662 * c-decl.c (grokdeclarator): Update.
3663 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3664 * c-tree.h (c_mark_addressable): New.
3665 * c-typeck.c (default_function_array_conversion, build_unary_op,
3666 build_array_ref, convert_for_assignment): Update.
3667 (mark_addressable): Rename.
3668 * calls.c (try_to_integrate, expand_call): Use langhook.
3669 * expr.c (expand_expr): Use langhook.
3670 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3671 * langhooks.h (struct lang_hooks): New hook.
3672 * stmt.c (expand_asm_operands): Use langhook.
3673 * tree.h (mark_addressable): Remove.
3674 objc:
3675 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3676
3677 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3678
3679 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3680 in previous change.
3681
3682 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3683
3684 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3685 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3686
3687 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3688
3689 * c-common.c (unsigned_conversion_warning, convert_and_check,
3690 unsigned_type, signed_type, shorten_compare,
3691 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3692 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3693 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3694 New.
3695 * c-decl.c (grokdeclarator): Update.
3696 * c-format.c (check_format_types): Update.
3697 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3698 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3699 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3700 * convert.c (convert_to_integer): Use new hooks.
3701 * expmed.c (make_tree): Use new hooks.
3702 * expr.c (store_expr): Use new hooks.
3703 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3704 all_ones_mask_p, unextend, fold): Use new hooks.
3705 * langhooks.h (struct lang_hooks_for_types): New hooks.
3706 * tree.h (signed_or_unsigned_type, signed_type,
3707 unsigned_type): Remove.
3708 objc:
3709 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3710 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3711
3712 2002-03-31 Richard Henderson <rth@redhat.com>
3713
3714 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3715 (desc_frgr_mem): Fix reference to f16-f31.
3716
3717 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3718
3719 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3720 RTVEC_ELT): Const-ify.
3721 * varray.h (VARRAY_CHECK): Const-ify.
3722 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3723 ggc_mark_rtvec, ggc_mark): Const-ify.
3724
3725 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3726
3727 * diagnostic.c: Include langhooks-def.h.
3728 * Makefile.in (diagnostic.o): Update.
3729
3730 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3731
3732 * c-common.c (c_unsafe_for_reeval): Rename.
3733 * c-common.h (c_unsafe_for_reeval): Rename.
3734 * c-decl.c (finish_incomplete_decl): Rename.
3735 (c_init_decl_processing): Don't set langhook.
3736 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3737 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3738 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3739 * c-tree.h (finish_incomplete_decl): Rename.
3740 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3741 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3742 (LANG_HOOKS_INITIALIZER): Update.
3743 * langhooks.c (lhd_unsafe_For_reeval): New.
3744 * langhooks.h (struct langhooks): New hooks.
3745 * toplev.c (incomplete_decl_finalize_hook): Remove.
3746 (wrapup_global_declarations): Update.
3747 * tree.c (lang_unsafe_for_reeval): Remove.
3748 (unsafe_for_reeval): Update.
3749 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3750 Remove.
3751 objc:
3752 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3753 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3754
3755 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3756
3757 * diagnostic.c (print_error_function): Remove.
3758 (default_print_error_function): Rename.
3759 (report_error_function): Update.
3760 * diagnostic.h (print_error_function): Remove.
3761 (default_print_error_function): Remove.
3762 * langhooks-def.h (struct diagnostic_context): Predeclare.
3763 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3764 (LANG_HOOKS_INITIALIZER): Update.
3765 * langhooks.h (struct diagnostic context): Predeclare.
3766 (struct lang_hooks): New hook.
3767
3768 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3769
3770 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3771 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3772 !flag_pic.
3773 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3774 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3775 of PIC_OFFSET_TABLE_REGNUM thruout.
3776 * config/rs6000/rs6000.md: Likewise.
3777 * config/rs6000/darwin.h: Likewise.
3778
3779 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3780
3781 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3782 unsigned HOST_WIDE_INT, not unsigned int.
3783
3784 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3785
3786 PR middle-end/6096, middle-end/6098, middle-end/6099
3787 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3788 CODE_LABELs.
3789 (fill_slots_from_thread): Likewise.
3790
3791 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3792
3793 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3794 floating fields in float regs.
3795 (function_arg_record_value_2): Likewise.
3796
3797 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3798
3799 * config/mmix/mmix.md (define_constants): Remove misleading
3800 FIXME. Add MMIX_fp_rO_OFFSET.
3801 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3802 saved rO as part of the pattern. Remove FIXME.
3803 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3804 here, at output-time.
3805
3806 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3807
3808 PR middle-end/6100
3809 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3810 REG_BR_PRED.
3811 (output_v9branch): Likewise.
3812
3813 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3814
3815 * gcc.c: Revert previous patch for now.
3816 * config/i386/djgpp.h: Likewise.
3817
3818 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3819
3820 * config/mmix/crti.asm (_init): Register _fini with atexit.
3821 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3822
3823 2002-03-31 Richard Henderson <rth@redhat.com>
3824
3825 PR target/3997
3826 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3827 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3828
3829 2002-03-31 Richard Henderson <rth@redhat.com>
3830
3831 * libgcc2.c (__bb_exit_func): Make static.
3832
3833 * config/alpha/alpha.md (trap): New.
3834
3835 2002-03-31 Richard Henderson <rth@redhat.com>
3836
3837 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3838 promoted argument types; build trap.
3839 (expand_builtin_trap): New.
3840 (expand_builtin): Use it.
3841 * stmt.c (expand_nl_goto_receivers): Likewise.
3842 * expr.h (expand_builtin_trap): Declare.
3843 * libfuncs.h (LTI_abort, abort_libfunc): New.
3844 * optabs.c (init_optabs): Init abort_libfunc.
3845
3846 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3847
3848 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3849 (LINK_COMMAND_SPEC): ... from here.
3850 (init_gcc_specs): Duplicate it here too, omitting
3851 shared_name in the second copy.
3852 (init_spec): Test for duplicate
3853 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3854
3855 2002-03-30 David S. Miller <davem@redhat.com>
3856
3857 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3858 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3859
3860 2002-03-30 Roger Sayle <roger@eyesopen.com>
3861 Richard Henderson <rth@redhat.com>
3862
3863 * regmove.c (combine_stack_adjustments_for_block): Avoid
3864 emitting a stack adjustment of zero bytes. Let delete_insn
3865 update bb->head.
3866
3867 2002-03-30 Richard Henderson <rth@redhat.com>
3868
3869 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3870 (sparc_emitting_epilogue): New.
3871 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3872 * config/sparc/sparc-protos.h: Update.
3873 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3874 (TARGET_SWITCHES): Update.
3875 * config/sparc/sparc.md (return): Remove.
3876 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3877 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3878 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3879 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3880 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3881 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3882 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3883 Remove MASK_EPILOGUE.
3884 * doc/invoke.texi: Update.
3885
3886 2002-03-30 Daniel Berlin <dan@dberlin.org>
3887
3888 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3889 CPP will start the file for us.
3890
3891 2002-03-30 Richard Henderson <rth@redhat.com>
3892
3893 PR target/5446
3894 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3895 prologue_allocate_stack.
3896 (ia64_single_set): Use insn codes for recognition of special
3897 cases, not rtl matching.
3898 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3899
3900 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3901
3902 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3903
3904 2002-03-30 Richard Henderson <rth@redhat.com>
3905
3906 PR target/6032
3907 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3908 or -fomit-frame-pointer with profiling.
3909 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3910 (FUNCTION_PROFILER): Do nothing.
3911 (PROFILE_HOOK): New.
3912 * config/sparc/sparc.c (sparc_override_options): Don't check
3913 code models for profiling.
3914 (sparc_function_profiler): Remove.
3915 (sparc_profile_hook): New.
3916 * config/sparc/sparc-protos.h: Update.
3917
3918 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3919
3920 PR optimization/6086
3921 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3922 of SUBREG of volatile MEM or because the MEM was mode dependent,
3923 return CLOBBER instead of unmodified SUBREG.
3924
3925 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3926
3927 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3928 when not optimizing.
3929
3930 * toplev.c (rest_of_compilation): Cann mark_constant_function
3931 only when optimizing.
3932
3933 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3934 are NULL.
3935
3936 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3937 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3938 (try_optimize_cfg): clear all AUX fields.
3939
3940 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3941 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3942 (ix86_address_cost): Be prepared for SUBREGed registers.
3943 (legitimate_address_p): Accept SUBREGed registers.
3944
3945 2002-03-29 Richard Henderson <rth@redhat.com>
3946
3947 PR target/5672
3948 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3949
3950 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3951
3952 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3953 for aggregate and TFmode types.
3954
3955 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3956
3957 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3958
3959 2002-03-29 Richard Henderson <rth@redhat.com>
3960
3961 PR target/5886
3962 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3963 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3964
3965 2002-03-29 Richard Henderson <rth@redhat.com>
3966
3967 PR target/6041
3968 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3969 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3970 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3971 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3972 conditional.
3973 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3974
3975 2002-03-29 Dale Johannesen <dalej@apple.com>
3976
3977 * loop.c (combine_movables): Do allow combination of pseudos.
3978
3979 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3980
3981 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3982 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3983 No functional change except ...
3984 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3985 * doc/install.texi (*-*-freebsd*): Document port configuration.
3986
3987 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3988
3989 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3990 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3991 Use new hooks.
3992 * builtin-types.def (BT_PTRMODE): Update.
3993 * c-common.c (type_for_size): Rename c_common_type_for_size.
3994 (type_for_mode): Similarly.
3995 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3996 Use new hook.
3997 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3998 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3999 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4000 Redefine.
4001 * c-typeck.c (common_type, comptypes, default_conversion):
4002 Use new hooks.
4003 * calls.c: Include langhooks.h.
4004 (emit_library_call_value_1): Use new hooks. Avoid redundant
4005 calls.
4006 * convert.c: Include langhooks.h
4007 (convert_to_pointer, convert_to_integer): Use new hooks.
4008 * except.c (init_eh): Similarly.
4009 * expmed.c: Include langhooks.h.
4010 (expand_mult_add): Use new hooks.
4011 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4012 try_casesi): Similarly.
4013 * fold-const.c (optimize_bit_field_compare, make_range,
4014 decode_field_reference, fold_truthop, fold): Similarly.
4015 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4016 put_var_into_stack): Similarly.
4017 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4018 LANG_HOOKS_TYPE_FOR_SIZE): New.
4019 (LANG_HOOKS_TYPES_INITIALIZER): Update.
4020 * langhooks.h (lang_hooks_for_types): New hooks.
4021 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4022 * tree.c (get_unwidened, get_narrower): Similarly.
4023 * tree.h (type_for_mode, type_for_size): Remove.
4024 * varasm.c (force_const_mem): Use new hooks.
4025 * utils2.c (nonbinary_modular_operation): Update.
4026 objc:
4027 * objc-act.c (handle_impent): Update.
4028 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4029 Redefine.
4030
4031 2002-03-29 Steve Ellcey <sje@cup.hp.com>
4032
4033 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4034 * config/ia64/ia64.c (basereg_operand): New.
4035 * config/ia64/ia64-protos.h (basereg_operand): Declare.
4036 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4037
4038 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
4039
4040 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4041 unwind information when frame_pointer_needed.
4042 (mmix_assemble_integer): Tweak wording in comment.
4043
4044 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
4045
4046 * Makefile.in (except.o): Update.
4047 * except.c: Include langhooks.h.
4048 (init_eh): Use langhook.
4049 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4050 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4051 (LANG_HOOKS_INITIALIZER): Update.
4052 * langhooks.h (lang_hooks_for_types): New.
4053 (struct lang_hooks): Add it.
4054 * tree.c (make_lang_type_fn, make_lang_type): Remove.
4055 * tree.h (make_lang_type_fn, make_lang_type): Remove.
4056 config:
4057 * alpha/alpha.c: Include langhooks.h.
4058 (alpha_build_va_list): Use langhook.
4059 * d30v/d30v.c: Include langhooks.h.
4060 (d30v_build_va_list): Use langhook.
4061 * i386/i386.c: Include langhooks.h.
4062 (ix86_build_va_list): Use langhook.
4063 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4064 * s390/s390.c: Include langhooks.h.
4065 (s390_build_va_list): Use langhook.
4066 * stormy16/stormy16.c: Include langhooks.h.
4067 (stormy16_build_va_list): Use langhook.
4068
4069 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR c++/5964
4072 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4073 attributes.
4074 (length): Compute variable length for branches/calls/jumps here.
4075 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4076 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4077 define branch_type attribute.
4078 (divsi3_sp32): Maximum length is 6 not 7.
4079 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4080 call_address_untyped_struct_value_sp32,
4081 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4082 * config/sparc/sparc.c (empty_delay_slot): New function.
4083 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4084 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4085
4086 2002-03-29 Jakub Jelinek <jakub@redhat.com>
4087
4088 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
4089 nonzero_bits if not needed.
4090 (nonzero_bits) [XOR]: Likewise.
4091 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
4092 reg_last_set_mode and mode are both MODE_INT, but not equal.
4093 (record_value_for_reg): Compute reg_last_set_nonzero_bits
4094 in nonzero_bits_mode for MODE_INT modes.
4095
4096 2002-03-28 Richard Henderson <rth@redhat.com>
4097
4098 PR target/5715
4099 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4100 to GAS. Correct drift between alternatives.
4101
4102 2002-03-28 Richard Henderson <rth@redhat.com>
4103
4104 PR target/6087
4105 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4106
4107 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
4108
4109 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4110 emulation to the linker.
4111
4112 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
4113
4114 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4115 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4116
4117 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
4118
4119 * combine.c (simplify_and_const_int): Make sure to apply mask
4120 when force_to_mode returns a constant integer. PR3311.
4121
4122 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4123
4124 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4125
4126 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4127
4128 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4129 and Objective-C Dialect Options.
4130
4131 2002-03-28 Richard Henderson <rth@redhat.com>
4132
4133 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4134 comparison should be done vs !=0 not >0 return code. Tidy cases.
4135
4136 2002-03-28 Richard Henderson <rth@redhat.com>
4137
4138 * c-decl.c (finish_function): New arg can_defer_p. Pass it
4139 on to c_expand_body.
4140 * c-tree.h (finish_function): Update decl.
4141 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
4142
4143 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
4144
4145 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4146
4147 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
4148
4149 * rtlanal.c: Include flags.h
4150 (may_trap_p): Do not mark FP operations if trapping
4151 if !flag_trapping_math
4152 * Makefile.in (rtlanal.o): Add dependency on flag.h
4153 * ifcvt.c (noce_operand_ok): Avoid the lameness.
4154
4155 2002-03-27 Zack Weinberg <zack@codesourcery.com>
4156
4157 * mips.md: Use dconst1, not 1.0, as first argument of
4158 REAL_VALUE_LDEXP. Don't use union real_extract.
4159
4160 2002-03-28 Alan Modra <amodra@bigpond.net.au>
4161
4162 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
4163 rather than $target. Heed program_prefix and
4164 program_transform_name. Search for gas in cross-compiler case too.
4165 "test -x" rather than "test -f".
4166 (gcc_cv_ld): Likewise.
4167 (gcc_cv_nm): Heed program_prefix and program_transform_name.
4168 (gcc_cv_objdump): Likewise.
4169 * configure: Regenerate.
4170
4171 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4172
4173 * Makefile.in (attribs.o): Update.
4174 * attribs.c: Include langhooks.h.
4175 (decl_attributes): Use langhook.
4176 * c-decl.c (insert_default_attributes): Rename.
4177 * c-tree.h (c_insert_default_attributes): New.
4178 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
4179 (LANG_HOOKS_INITIALIZER): Update.
4180 * langhooks.h (struct lang_hooks): New hook.
4181 * tree.h (insert_default_attributes): Remove.
4182 objc:
4183 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4184
4185 2002-03-27 Andreas Schwab <schwab@suse.de>
4186
4187 * config/i386/i386.c (classify_argument): Also check for
4188 QUAL_UNION_TYPE.
4189
4190 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4191
4192 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4193 any more.
4194
4195 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
4196
4197 * i960.md (ret): Set PC.
4198 (nonlocal_goto): Fix expander.
4199 * builtins.c (epxand_builin_longjmp): Check that we've emitted
4200 some jump or call.
4201
4202 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
4203
4204 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4205 of libcall regions.
4206
4207 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4208
4209 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4210 assigning to BLOCK_FOR_INSN directly.
4211
4212 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
4213
4214 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4215
4216 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4217
4218 * c-common.c (c_expand_expr): Fix prototype.
4219 * c-common.h (c_expand_expr): Always declare, update.
4220 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4221 * c-objc-common.c (c_objc_common_init): No global hook.
4222 * expr.c (expand_expr): Use langhook.
4223 * expr.h (enum expand_modifier): Conditionally declare.
4224 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4225 (LANG_HOOKS_INITIALIZER): Update.
4226 * langhooks.c (lhd_expand_expr): New.
4227 * langhooks.h (struct lang_hooks): New hook.
4228 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4229 (lang_independent_init): Don't default hook.
4230 objc:
4231 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4232
4233 2002-03-27 Richard Henderson <rth@redhat.com>
4234
4235 PR target/6054
4236 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4237 TARGET_CONST_GP. Simplify conditions.
4238
4239 2002-03-27 Richard Henderson <rth@redhat.com>
4240
4241 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4242 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4243 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4244
4245 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
4246
4247 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4248 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4249 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4250 Remove unnecessary masks.
4251 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4252 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4253 -mwindows, -mdll switches and their negations.
4254
4255 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
4256
4257 * gcc-common.c (lang_mark_false_label_stack): Remove.
4258 * ggc.h (lang_mark_false_label_stack): Similarly.
4259
4260 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
4261
4262 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4263
4264 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4265 or __rtems_ is defined.
4266
4267 2002-03-26 Richard Henderson <rth@redhat.com>
4268
4269 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4270 if a non-trivial load was emitted.
4271 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
4272 in high+extra+low case.
4273
4274 2002-03-26 Richard Henderson <rth@redhat.com>
4275
4276 * config.gcc (sparc*-solaris): Use float_format=sparc.
4277
4278 2002-03-26 Richard Henderson <rth@redhat.com>
4279
4280 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4281 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4282 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4283 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4284 (WINT_TYPE_SIZE): Fix at 32.
4285
4286 2002-03-26 Richard Henderson <rth@redhat.com>
4287
4288 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4289 until after eh landing pad generation.
4290 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4291 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4292
4293 2002-03-26 Richard Henderson <rth@redhat.com>
4294
4295 * expr.h (ADD_PARM_SIZE): One more convert for INC.
4296
4297 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
4298
4299 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
4300 and warning switches.
4301 (cc1_options): Likewise.
4302
4303 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
4304
4305 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4306 Restore more of the signal context. Set no_reg_stack_frame.
4307 * config/ia64/unwind-ia64.c (unw_state_record):
4308 Add no_reg_stack_frame, comments.
4309 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4310 (uw_update_context): Adjust bsp when unwinding from leaf,
4311 but not signal frame.
4312
4313 2002-03-26 David Edelsohn <edelsohn@gnu.org>
4314
4315 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4316
4317 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4318
4319 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4320
4321 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4322
4323 PR target/5621
4324 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4325 "Add a pool_range attribute", which was lost during the ARM/Thumb
4326 merge.
4327
4328 2002-03-26 Bob Wilson <bob.wilson@acm.org>
4329
4330 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4331 a register into the MAC16 accumulator.
4332
4333 2002-03-26 Andrew Cagney <ac131313@redhat.com>
4334
4335 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4336 (Warning Options): Document -Wswitch-enum.
4337 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
4338 -Wswitch.
4339 (warn_switch_enum): Define variables.
4340 * flags.h (warn_switch_enum): Declare variables.
4341 * stmt.c (expand_end_case_type): When warn_switch_enum /
4342 -Wswitch-enum, perform switch checks.
4343 Fix PR c/5044.
4344
4345 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
4346
4347 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4348 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4349 (reload_muladdsi_compare0_scratch): Delete.
4350
4351 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
4352
4353 * doc/install.texi (*-*-freebsd*): Update.
4354
4355 2002-03-26 Richard Henderson <rth@redhat.com>
4356
4357 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4358 (SUB_PARM_SIZE): Cast DEC to ssizetype.
4359
4360 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4361 types from the normal argument frame.
4362
4363 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4364 variable sized objects by reference.
4365 (sparc_va_arg): Receive them by reference too.
4366
4367 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
4368
4369 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4370 code to not restoring global registers.
4371
4372 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
4373
4374 * Makefile.in (ggc-common.o): Update.
4375 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4376 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4377 * c-tree.h (c_mark_tree): New.
4378 * ggc-common.c: Include langhooks.h.
4379 (gcc_mark_trees): Use new langhook.
4380 * ggc-callbacks.c: Delete file.
4381 * ggc.h (lang_mark_tree): Remove.
4382 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4383 (LANG_HOOKS_INITIALIZER): Update.
4384 * langhooks.h (struct lang_hooks): New hook.
4385 objc:
4386 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4387
4388 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4389
4390 * doc/cpp.texi: Exclude entire Top node from printed manual.
4391 Move option index after directive index. Insert page breaks
4392 before GFDL and concept index. Index environment variables
4393 with command line options.
4394 * doc/cppenv.texi: Use @vtable for environment variable list.
4395 Add paragraph explaining semantics of empty elements in path
4396 variables. Exclude a cross-reference to Fishkill from the
4397 manpage. Remove an unnecessary cross-reference of the entry
4398 right above the referer. Don't use @anchor in text that goes
4399 into manpage.
4400 * doc/cppopts.texi: Cross-reference the environment variables
4401 section, not the specific environment variable, for consistency.
4402
4403 2002-03-25 Richard Henderson <rth@redhat.com>
4404
4405 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4406 anywhere in the block. Don't refer to insns that have been
4407 removed from the chain. Iterate backward through the new insns.
4408 Don't refer to edges that have been removed.
4409
4410 2002-03-26 Alan Modra <amodra@bigpond.net.au>
4411
4412 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4413 test for overflow of constant.
4414
4415 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
4416
4417 PR target/2623
4418 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4419 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4420 these patterns on arm_archv4.
4421
4422 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
4423
4424 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4425 int".
4426
4427 2002-03-25 Zack Weinberg <zack@codesourcery.com>
4428
4429 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
4430 float_handled, float_handler, float_signal, set_float_handler,
4431 and do_float_handler. Set handler for SIGFPE to crash_signal.
4432 * toplev.h: Don't prototype do_float_handler.
4433
4434 * c-lex.c: Fold parse_float into lex_number. Make warning
4435 about portability of hex float constants more informative, and
4436 don't issue it on top of a syntax error.
4437 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4438 their callers.
4439 * real.h: Define REAL_VALUE_ABS here...
4440 * simplify-rtx.c: ... not here. Fold check_fold_consts,
4441 simplify_unary_real, simplify_binary_real, and
4442 simplify_binary_is2orm1 into their callers.
4443 * tree.c: Fold build_real_from_int_cst_1 into caller.
4444
4445 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4446
4447 * tsystem.h: Include float.h here...
4448 * libgcc2.c: ... not here.
4449
4450 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
4451
4452 Fixes for: PR bootstrap/3591, target/5676
4453 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4454 defined. Do not disable exceptions or rtti.
4455 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4456 mcore.h. Disable exceptions and rtti, since they are not
4457 supported by EPOC.
4458
4459 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
4460
4461 * c-decl.c (maybe_build_cleanup): Remove.
4462 * expr.c (expand_expr): Use langhook.
4463 * langhooks-def.h (lhd_return_null_tree,
4464 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4465 (LANGHOOKS_INITIALIZER): Update.
4466 * langhooks.c (lhd_return_null_tree): New.
4467 * langhooks.h (struct lang_hooks): New hook.
4468 * tree-inline.c (initialize_inlined_parameters): Use langhook.
4469 * tree.h (maybe_build_cleanup): Remove.
4470
4471 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4472
4473 * regrename.c (build_def_use): Move recog_memoized
4474 before extract_insn.
4475
4476 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4477
4478 PR target/6043
4479 * expr.c (emit_group_store): Handle storing into CONCAT.
4480
4481 2002-03-25 Jakub Jelinek <jakub@redhat.com>
4482
4483 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4484 corresponding MATCH_DUP.
4485
4486 2002-03-24 Richard Henderson <rth@redhat.com>
4487
4488 * unroll.c (unroll_loop): Zero label_map.
4489
4490 * gcse.c: Include except.h.
4491 * Makefile.in (gcse.o): Update.
4492
4493 2002-03-24 Richard Henderson <rth@redhat.com>
4494
4495 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4496 Do resolve_unique_section before shared data clause.
4497
4498 2002-03-24 Richard Henderson <rth@redhat.com>
4499
4500 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4501
4502 2002-03-24 Richard Henderson <rth@redhat.com>
4503
4504 * recog.c (peephole2_optimize): Split blocks when EH insns are
4505 generated in the middle of a block. Do global life update if
4506 zapped EH edges.
4507
4508 2002-03-24 Richard Henderson <rth@redhat.com>
4509
4510 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4511
4512 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4513
4514 preprocessor/3951
4515 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4516 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4517 (init_dependency_output): Don't make no_output decision here.
4518
4519 2002-03-24 Andrew Cagney <ac131313@redhat.com>
4520
4521 * stmt.c (check_for_full_enumeration_handling): Remove tests of
4522 warn_switch. Update description.
4523 (expand_end_case_type): Call check_for_full_enumeration_handling
4524 when warn_switch.
4525
4526 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4527
4528 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4529 (m68hc11_split_move): Call it to see if the source and destination
4530 operands use the same direction auto inc/dec mode, otherwise make the
4531 source an offsetable memory operand and generate an add.
4532
4533 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4534
4535 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4536 register for operand 2.
4537 ("*subsi3_zero_extendqi"): Likewise.
4538 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4539 bits so that it is compatible with a pop.
4540 ("*andhi3_gen"): Likewise.
4541 ("xorhi3"): Likewise.
4542
4543 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4544
4545 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4546 -pedantic here...
4547 (cpp_post_options): ... not here.
4548
4549 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
4550 Aldy Hernandez <aldyh@redhat.com>
4551
4552 Removal of separate preprocessor cpp0.
4553
4554 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4555 cpp0, install-common): Update.
4556 * c-common.c (flag_preprocess_only): New.
4557 (c_common_init): Preprocess for -E.
4558 * c-common.h (flag_preprocess_only): New.
4559 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4560 * c-objc-common.c (c_init_decl_processing): Exit quickly
4561 for NULL return from c_common_init.
4562 * cpplib.h (cpp_preprocess_file): New.
4563 * cppmain.c (main, general_init, pfile, progname): Remove.
4564 (do_preprocessing): Rename cpp_preprocess_file, don't call
4565 cpp_finish. Don't close stdout here.
4566 (setup_callbacks): Update prototype.
4567 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4568 Update.
4569 * tradcpp.c (main): Ignore -quiet.
4570 objc:
4571 * lang-specs.h (default_compilers): Preprocess with cc1obj.
4572
4573 2002-03-24 Richard Henderson <rth@redhat.com>
4574
4575 PR optimization/5742
4576 * machmode.def: Add inner mode field to complex modes.
4577 * config/mips/mips.c (mips_function_value): Always define. Add
4578 new argument to handle libcalls.
4579 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4580 (FUNCTION_VALUE): Likewise.
4581 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4582 * config/mips/mips-protos.h: Update.
4583
4584 2002-03-23 Richard Henderson <rth@redhat.com>
4585
4586 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4587 * config/sparc/sparc-protos.h: Update.
4588 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4589
4590 2002-03-23 Richard Henderson <rth@redhat.com>
4591
4592 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4593 _start or _init begins the text segment.
4594
4595 2002-03-23 David Edelsohn <edelsohn@gnu.org>
4596
4597 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
4598 not HOST_WIDEST_INT.
4599 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4600
4601 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
4602
4603 PR java/5489
4604 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4605 operand argument to output_return_instruction.
4606 * arm.c (arm_print_operand, case 'd'): If the operand is
4607 const_true_rtx then just return.
4608 (arm_print_operand, case 'D'): If the operand is const_true_rtx
4609 then abort.
4610
4611 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4612
4613 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4614 (Warning Options): Document -Wswitch-default.
4615 * toplev.c (W_options): Add -Wswitch-default. Update comment on
4616 -Wswitch.
4617 (warn_switch_default): Define variable.
4618 (warn_switch): Update comment.
4619 * flags.h (warn_switch_default): Declare variable.
4620 (warn_switch): Update comment.
4621 * stmt.c (expand_end_case): Check for and, when
4622 warn_switch_no_default, warn of a missing default case.
4623
4624 2002-03-23 Alan Modra <amodra@bigpond.net.au>
4625
4626 * real.h (N): Special case 128 bit doubles.
4627
4628 * combine.c (simplify_comparison): When widening modes, ignore
4629 sign extension on CONST_INTs.
4630
4631 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4632
4633 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4634 passed to adjust_address. Fix comment formatting.
4635
4636
4637 2002-03-22 Zack Weinberg <zack@codesourcery.com>
4638
4639 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4640 Always make REAL_VALUE_TYPE a struct containing an array of
4641 HOST_WIDE_INT, not a double. Tidy up the code deciding how
4642 big it is. Don't declare or use union real_extract.
4643
4644 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4645 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4646 (print_operand), config/arm/arm.c (output_move_double),
4647 config/arm/arm.md (consttable_4, consttable_8),
4648 config/romp/romp.c (output_fpops), config/s390/s390.h
4649 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4650 (xtensa_output_literal): Don't use union real_extract.
4651
4652 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4653 (sfmode_constant_to_ulong), config/ns32k/merlin.h
4654 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4655 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4656 (PRINT_OPERAND): Don't use local version of union
4657 real_extract.
4658
4659 * config/convex/convex.c (check_float_value), config/vax/vax.c
4660 (vax_float_literal), config/m88k/m88k.md (divdf3),
4661 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4662 config/pdp11/pdp11.c (output_move_quad): Don't do host
4663 arithmetic on target floating point quantities.
4664
4665 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4666 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4667
4668 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4669 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4670
4671 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4672 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4673 INFINITY.
4674 * print-rtl.c (print_rtx): Disable code which needs
4675 floating-point emulator.
4676 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4677 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4678 depending on HOST_FLOAT_FORMAT to be defined properly.
4679
4680 * config/1750a/1750a.c (get_double, float_label): Delete.
4681 (print_operand): Delete huge commented-out chunk. Use
4682 REAL_VALUE_TO_DECIMAL.
4683 * config/1750a/1750a-protos.h: Delete prototypes of deleted
4684 functions.
4685 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4686 IEEE_FLOAT_FORMAT.
4687 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4688 Use REAL_VALUE_TO_DECIMAL as ELF version does.
4689 * config/m88k/m88k.c (real_power_of_2_operand,
4690 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4691 real_extract out of the union; run the input through
4692 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4693 from that into the union.
4694 * config/pdp11/pdp11.c (output_move_double): Rearrange
4695 parentheses to make automatic indenter happy.
4696
4697 * doc/tm.texi (Cross-compilation): Rename node to "Floating
4698 Point" and rewrite to describe current situation. Also adjust
4699 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4700 match code.
4701 * doc/rtl.texi: Adjust cross reference.
4702
4703 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4704
4705 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4706 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4707 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4708 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4709 prevent use of sp as a reload register.
4710 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4711 non_acc_reg_operand.
4712 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4713 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4714 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4715 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4716
4717 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4718
4719 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4720 * cpplex.c (unterminated): Delete.
4721 (parse_string): No string literal may extend over multiple
4722 lines. Suppress the error when preprocessing assembly.
4723 * cppmain.c (scan_translation_unit): Strings are single-line.
4724
4725 * doc/cpp.texi: Update to match.
4726
4727 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4728
4729 PR optimization/5854
4730 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4731 Shut up warnings.
4732 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4733 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4734 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4735 const0 if scratch register was not allocated.
4736 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4737 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4738 with GEN_INT (...).
4739 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4740 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4741 with GEN_INT (...) everywhere. Remove constraints in define_split
4742 patterns.
4743 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4744 require scratch register for setting 0 into regs/non-pushable memory.
4745
4746 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4747
4748 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4749 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4750
4751 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4752
4753 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4754 * cppinit.c (cpp_create_reader): On by default.
4755 (cpp_handle_option): Handle -W[no-]endif-labels.
4756 (cpp_post_options): Also enable if -pedantic.
4757 * cpplib.c (do_else): Use it.
4758 (do_endif): Likewise.
4759 * doc/cppopts.texi: Document new option.
4760 * doc/invoke.texi: Document new option.
4761
4762 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4763
4764 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4765 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4766
4767 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4768
4769 * flow.c (calculate_global_regs_live): Clear aux fields of
4770 ENTRY and EXIT.
4771
4772 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4773
4774 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4775 REG or MEM subregs, pass rtx * instead of rtx to it.
4776 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4777 rtx * instead of rtx to alter_subreg.
4778 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4779 * config/pj/pj.c (pj_output_rval): Likewise.
4780
4781 2002-03-22 Richard Henderson <rth@redhat.com>
4782
4783 PR target/3177
4784 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4785 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4786 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4787 (ia64_expand_prologue): Look at int_regs, not words, for number
4788 of incomming int regs.
4789
4790 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4791
4792 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4793
4794 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4795
4796 * toplev.c (flag_loop_optimize, flag_crossjumping):
4797 New static variables.
4798 (rest_of_compilation): Conditionalize crossjumping and
4799 loop optimizer.
4800 (parse_options_and_default_flags): Default loop_optimize and
4801 crossjumping.
4802 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4803 * invoke.texi (crossjumping, loop-optimize): Document.
4804
4805 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4806
4807 * real.c (eiisneg): Move outside #ifdef NANS.
4808
4809 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4810
4811 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4812 frequencies match; avoid match on different loop depths.
4813 (try_crossjump_to_bb): Kill tests that no longer brings time
4814 savings.
4815 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4816 updating code.
4817 (split_edge): Likewise.
4818
4819 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4820 variable.
4821
4822 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4823 * cfgrtl.c: Include insn-config.h
4824 (split_block) Dirtify block in presence of conditional execution
4825
4826 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4827
4828 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4829 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4830 (function_arg): Constify CUMULATIVE_ARGS.
4831 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4832 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4833 (UNITS_PER_DOUBLE): New macro.
4834 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4835 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4836 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4837 fp_regs and stack_words.
4838 (EABI_FLOAT_VARARGS_P): New macro.
4839 * config/mips/mips.c (struct mips_arg_info): New.
4840 (mips_arg_info): New function.
4841 (function_arg_advance): Use it. Add adjustment instructions here
4842 rather than in function_arg.
4843 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4844 for VOIDmode at the beginning of the function.
4845 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4846 (function_arg_pass_by_reference): Likewise.
4847 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4848 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4849 (mips_va_start): Likewise. Use the new stack_words field of
4850 CUMULATIVE_ARGS to set up overflow area. Reformat.
4851 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4852 doubles and other types, aligning the overflow pointer for non-doubles
4853 too. Remove some code duplication. Replace hard-coded constants.
4854
4855 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4856
4857 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4858 (CLASS_UNITS): Undefine.
4859 (CLASS_MAX_NREGS): Use FP_INC.
4860 * config/mips/mips.c (compute_frame_size): Likewise.
4861 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4862
4863 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4864
4865 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4866 prototype, and handle lexing numbers and identifiers.
4867 (parse_identifier): Update to new form of parse_slow.
4868 (parse_number): Fast path only, use parse_slow otherwise.
4869 (_cpp_lex_direct): Update calls to parse_number.
4870
4871 2002-03-21 DJ Delorie <dj@redhat.com>
4872
4873 * bb-reorder.c (make_reorder_chain_1): Protect against
4874 when redundant edges are omitted.
4875 * predict.c (dump_prediction): Likewise.
4876
4877 2002-03-21 Richard Henderson <rth@redhat.com>
4878
4879 PR target/5996
4880 * fixinc/inclhack.def (solaris_stdio_tag): New.
4881 * fixinc/fixincl.x: Regenerate.
4882
4883 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4884
4885 PR c/5597
4886 * c-typeck.c (process_init_element): Flag non-static
4887 initialization of a flexible array member as illegal.
4888
4889 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4890
4891 * config/rs6000/t-linux64: New.
4892 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4893 t-ppccomm. Use t-rs6000 and t-linux64.
4894 (powerpc64-*-gnu* <tmake_file>): Likewise.
4895 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4896 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4897 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4898
4899 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4900
4901 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4902 flag_really_no_inline instead of optimize == 0.
4903
4904 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4905
4906 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4907
4908 * flags.h (flag_really_no_inline): New.
4909
4910 * c-common.c (c_common_post_options): Initialize
4911 flag_really_no_inline.
4912
4913 * toplev.c (flag_really_no_inline): New.
4914
4915 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4916
4917 * config/avr/avr.md (length): Fix length computation for
4918 conditional branches.
4919
4920 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4921
4922 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4923 sdbout.o, profile.o): Update.
4924 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4925 langhook.
4926 * c-common.h (gettags): Move here from tree.h.
4927 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4928 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4929 * dbxout.c (dbxout_init): Use getdecls langhook.
4930 * expr.c (expand_expr): Use insert_block langhook.
4931 * fold-const.c: Include langhooks.h.
4932 (fold_range_test, fold_binary_op_with_conditional_arg,
4933 fold): Use global_bindings_p langhook.
4934 * integrate.c (expand_inline_function): Use insert_block langhook.
4935 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4936 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4937 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4938 LANG_HOOKS_GETDECLS): New.
4939 (LANG_HOOKS_INITIALIZER): Update.
4940 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4941 langhook.
4942 * langhooks.h (struct lang_hooks_for_decls): New.
4943 (struct lang_hooks): Update.
4944 * profile.c: Include langhooks.h.
4945 (output_func_start_profiler): Use new langhooks.
4946 * sdbout.c: Include langhooks.h.
4947 (sdbout_init, sdbout_finish): Use getdecls langhook.
4948 * stmt.c: Include langhooks.h.
4949 (expand_fixup, fixup_gotos): Use new langhooks.
4950 * stor-layout.c: Include langhooks.h.
4951 (variable_size): Use global_bindings_p langhook.
4952 * toplev.c (compile_file): Use getdecls langhook.
4953 * tree-inline.c (remap_block): Use insert_block langhook.
4954 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4955 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4956
4957 2002-03-21 Richard Henderson <rth@redhat.com>
4958
4959 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4960 constants in .data when -fpic.
4961
4962 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4963
4964 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4965 where appropriate.
4966
4967 2002-03-21 Tom Tromey <tromey@redhat.com>
4968
4969 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4970
4971 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4972
4973 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4974
4975 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4976
4977 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4978 Richard Henderson <rth@redhat.com>
4979
4980 PR c/5354
4981 * c-common.c (c_expand_expr): Preserve result of a statement
4982 expression if needed.
4983
4984 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4985
4986 PR bootstrap/4195
4987 * genrecog.c (maybe_both_true_mode): Remove.
4988 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4989 * machmode.def (Pmode): Likewise.
4990
4991 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4992
4993 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4994 (nonlocal_mentioned_p_1): New function.
4995 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4996 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4997 (mark_constant_function): Recognize pure functions.
4998 * rtl.h (global_reg_mentioned_p): New prototype.
4999 * rtlanal.c (global_reg_mentioned_p,
5000 global_reg_mentioned_p_1): New function.
5001
5002 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5003
5004 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5005 UNIX assert.h.
5006 * fixinc/fixincl.x: Regenerate.
5007
5008 2002-03-20 Jason Merrill <jason@redhat.com>
5009
5010 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5011
5012 2002-03-20 Michael Meissner <meissner@redhat.com>
5013
5014 * doc/invoke.texi (Optimize Options): Document that -O2 sets
5015 -fstrict-aliasing.
5016
5017 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5018
5019 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5020 ".literal_position" directive before the constant pool.
5021
5022 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5023
5024 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5025 Add Craig Rodrigues.
5026 Add Brad Lucier to testers.
5027
5028 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5029
5030 PR target/4792
5031 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5032 to if_then_else.
5033 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5034 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5035 instead of insn_extract.
5036
5037 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5038
5039 PR bootstrap/4192
5040 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5041
5042 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5043 stmt if some case has been output.
5044
5045 2002-03-20 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR c/5972
5048 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5049 movsfcc_1, movdfcc_1): Add %O2.
5050 * config/i386/i386.c (print_operand): Handle %ON.
5051 Print . before float condition codes in Sun as cmov syntax.
5052 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5053 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5054 no longer true.
5055
5056 2002-03-20 Philip Blundell <pb@nexus.co.uk>
5057
5058 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5059 return instruction if PC was popped.
5060
5061 2002-03-20 Bob Wilson <bob.wilson@acm.org>
5062
5063 * config/xtensa/xtensa.md: Remove unused type attributes.
5064 (adddi_carry, subddi_carry): Change type attribute to "multi".
5065
5066 2002-03-19 Dale Johannesen <dalej@apple.com>
5067
5068 PR optimization/5999, middle-end/5731
5069 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5070 multiplications by reciprocals.
5071
5072 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
5073
5074 * Makefile.in: Update.
5075 * c-common.c: Include langhooks.h.
5076 (inline_forbidden_p): Use new hook.
5077 * diagnostic.c: Include langhooks.h.
5078 (format_with_decl, announce_function,
5079 default_print_error_function): Use new hook.
5080 * dwarf2out.c (dwarf2_name): Use new hook.
5081 * function.c: Include langhooks.h.
5082 (init_function_start): Use new hook.
5083 * langhooks-def.h (lhd_decl_printable_name): New.
5084 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5085 (LANGHOOKS_INITIALIZER): Update.
5086 * langhooks.c (lhd_decl_printable_name): New.
5087 * langhooks.h (struct lang_hooks): New hook.
5088 * toplev.c (decl_name, decl_printable_name): Remove.
5089 (open_dump_file): Use new hook.
5090 (process_options): Remove old hook.
5091 * tree.h (decl_printable_name): Remove.
5092 objc:
5093 * objc-act.c (objc_init): Remove old hook.
5094 (objc_printable_name): Export.
5095 * objc-act.h (objc_printable_name): New.
5096 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
5097
5098 2002-03-19 Jim Blandy <jimb@redhat.com>
5099
5100 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
5101 the start_source_file debug hook, not the current line number.
5102
5103 2002-03-19 Richard Henderson <rth@redhat.com>
5104
5105 * flow.c (EH_USES): Provide default.
5106 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
5107 * doc/tm.texi (EH_USES): New.
5108
5109 * config/ia64/ia64.c (ia64_eh_uses): New.
5110 * config/ia64/ia64-protos.h: Update.
5111 * config/ia64/ia64.h (EH_USES): New.
5112
5113 2002-03-19 Richard Henderson <rth@redhat.com>
5114
5115 * varasm.c (output_constant_def): Fix stupid typo.
5116
5117 2002-03-19 Richard Henderson <rth@redhat.com>
5118
5119 PR 5879
5120 * except.c (current_function_has_exception_handlers): New.
5121 * except.h: Declare it.
5122 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
5123 Combine tests that disable all sibcalls for the function.
5124
5125 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
5126
5127 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5128 for INTEGER_CST.
5129
5130 2002-03-19 Richard Henderson <rth@redhat.com>
5131
5132 PR 5977, 5991
5133 * config/ia64/ia64.c: Revert 2002-03-01 patch.
5134 * config/ia64/ia64.h (INIT_EXPANDERS): New.
5135
5136 2002-03-19 Jim Blandy <jimb@redhat.com>
5137
5138 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5139 name, even if the replacement list contains no tokens, as required
5140 by Dwarf.
5141
5142 2002-03-19 Jason Merrill <jason@redhat.com>
5143
5144 * varasm.c (globalize_decl): Get the name from the RTL, not
5145 DECL_ASSEMBLER_NAME.
5146
5147 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5148
5149 2002-03-19 Bob Wilson <bob.wilson@acm.org>
5150
5151 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5152 subdi_carry): Define.
5153
5154 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5155
5156 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5157 about -fpic/-fPIC if extra_warnings set.
5158
5159 2002-03-19 David Edelsohn <edelsohn@gnu.org>
5160
5161 * expr.c (expand_expr): Sign-extend CONST_INT generated from
5162 TREE_STRING_POINTER.
5163 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
5164
5165 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5166
5167 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5168 in favor of SP if FRAME_POINTER_REQUIRED is false.
5169
5170 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
5171
5172 * emit-rtl.c (gen_int_mode): New function.
5173 * rtl.h: Prototype for it.
5174 * combine.c (make_extraction, simplify_comparison), expmed.c
5175 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
5176 (convert_modes, store_field), optabs.c (expand_fix),
5177 simplify-rtx.c (neg_const_int, simplify_unary_real),
5178
5179 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5180 Use it instead of GEN_INT (trunc_int_for_mode (...)).
5181
5182 2002-03-19 Jakub Jelinek <jakub@redhat.com>
5183
5184 PR c/5656
5185 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
5186 convert_parm_for_inlining.
5187 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
5188 Define.
5189 * langhooks-def.h: Likewise.
5190 * objc/objc-lang.c: Likewise.
5191 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
5192 function.
5193 * tree-inline.c (initialize_inlined_parameters):
5194 Call convert_parm_for_inlining lang hook if needed.
5195 * c-typeck.c (c_convert_parm_for_inlining): New function.
5196 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
5197
5198 2002-03-18 Mark Mitchell <mark@codesourcery.com>
5199
5200 * calls.c (precompute_arguments): Do not assume that temporaries
5201 can be destroyed after expanding the argument.
5202 (expand_call): Likewise.
5203
5204 2002-03-15 Eric Christopher <echristo@redhat.com>
5205
5206 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5207 Fix register preference on last change.
5208 * config/mips/mips.c (mips_return_in_memory): New function.
5209 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5210 * config/mips/mips-protos.h: Declare.
5211 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5212 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5213
5214 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5215
5216 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5217 a register too.
5218 (anddi3, iorsi3): Likewise.
5219
5220 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5221 use %gprel for symbols that are going to be placed in linkonce
5222 sections.
5223
5224 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5225 RETURN_ADDRESS_POINTER_REGNUM to $ra.
5226 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5227 not needed. Disregard leaf_function_p().
5228 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5229 mips16 frame pointer.
5230 * config/mips/mips.md (store ra): Only to small SP offsets.
5231 2001-08-22 Graham Stott <grahams@redhat.com>
5232 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5233 return a REG rtx for the return address register.
5234
5235 2002-03-18 Bob Wilson <bob.wilson@acm.org>
5236
5237 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5238 constant-pool addresses as "mode-dependent".
5239 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5240
5241 2002-03-18 Jakub Jelinek <jakub@redhat.com>
5242
5243 PR target/5740
5244 * expr.c (emit_group_load): Use extract_bit_field if
5245 needed for CONCAT arguments.
5246
5247 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
5248
5249 PR target/4863
5250 * arm.md (tablejump): Make this a define_expand. For PIC add the
5251 offset to the base of the table.
5252 (thumb_tablejump): Matcher for Thumb tablejump insn.
5253 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5254 as the difference of two labels.
5255 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5256 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5257 tables in the code.
5258 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5259 * arm.c (get_jump_table_size): If the table is not in the text
5260 section, return zero.
5261
5262 2002-03-18 Bernd Schmidt <bernds@redhat.com>
5263
5264 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5265 of gen_rtx_SUBREG.
5266 (arm_reload_out_hi): Use gen_lowpart instead of
5267 gen_rtx_SUBREG to access QImode components.
5268 * config/arm/arm.md: Disable zero_extend split for QImode
5269 subregs in BIG_ENDIAN mode.
5270 (storehi_bigend): Match use of least significant byte.
5271 (storeinthi): Remove extraneous SUBREG.
5272 Add missing construction of operands[2].
5273 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5274 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5275 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5276
5277 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
5278
5279 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5280 any_operand.
5281
5282 2002-03-17 Richard Henderson <rth@redhat.com>
5283
5284 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5285 explicitly.
5286
5287 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5288
5289 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5290 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5291
5292 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5293
5294 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5295
5296 * predict.c (estimate_bb_frequencies): Delete unused variables.
5297
5298 2002-03-17 Richard Henderson <rth@redhat.com>
5299
5300 * config/ia64/ia64.c (ia64_attribute_table): Move before
5301 targetm definition. Make static.
5302
5303 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
5304
5305 * c-common.h (yyparse, c_common_parse_file): New.
5306 * c-lang.c: Include c-common.h.
5307 (LANG_HOOKS_PARSE_FILE): Redefine.
5308 * c-lex.c: Include c-common.h.
5309 (yyparse): Rename c_common_parse_file. Call yyparse.
5310 * c-parse.in (yyparse): Remove macro.
5311 * c-tree.h (yyparse_1): Remove.
5312 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5313 (LANG_HOOKS_INITIALIZER): Update.
5314 * langhooks.h (struct lang_hoooks): New hook parse_file.
5315 * toplev.c (compile_file): Use parse_file hook.
5316 * tree.h (yyparse): Remove.
5317 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5318
5319 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
5320
5321 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5322 float_truncate, not fix.
5323 ("*truncdfsf2_real"): Ditto.
5324 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5325
5326 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5327
5328 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
5329
5330 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5331 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
5332 where appropriate. Make the second reference to
5333 leaf_function_p a function call, as intended. Reindented.
5334
5335 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5336 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5337
5338 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5339 add register to non-constant into sp.
5340
5341 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5342 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5343 (mips16_gp_pseudo_rtx): Lose.
5344 (INIT_EXPANDERS): Deleted.
5345 * config/mips/mips.c (mips_init_machine_status): New.
5346 (mips_free_machine_status): New.
5347 (mips_mark_machine_status): New.
5348 (override_options): Set them.
5349 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5350 (struct machine_function): ... new. Replaced all references.
5351 (mips_add_gc_roots): Don't mark them.
5352 (embedded_pic_fnaddr_reg): New, extracted from...
5353 (embedded_pic_offset): ... here.
5354 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5355 (movsi): Likewise.
5356
5357 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5358
5359 * cppinit.c: Revert -MD removal.
5360
5361 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5362
5363 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5364 soft registers by default for 68HC12.
5365 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5366 when compiling with -fomit-frame-pointer.
5367 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5368 (expand_epilogue): Likewise.
5369 (m68hc11_gen_rotate): Use exg when rotating by 8.
5370
5371 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5372
5373 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5374 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5375 (splits): Remove unused add splits.
5376 ("*addhi3_68hc12"): Tune constraints.
5377 ("addhi_sp"): Try to use X instead of Y in all cases and if the
5378 constant fits in 8-bits and D is dead use abx/aby instructions.
5379 ("*addhi3"): Remove extern declaration of ix_reg.
5380 ("*subsi3"): Optimize and provide new split.
5381 ("subhi3"): Cleanup.
5382 ("*subhi3_sp"): Avoid saving X if we know it is dead.
5383 (arith splits): For 68hc12 save the address register on the stack
5384 and do the arithmetic operation with a pop.
5385
5386 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5387
5388 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5389 allocating QImode in address registers.
5390 ("*movqi_m68hc11"): Likewise.
5391
5392 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
5393
5394 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5395
5396 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
5397
5398 * cppinit.c (print_help): Display -MD and -MMD.
5399 Don't display usage string. Update assertion syntax and
5400 typo.
5401 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5402 (cpp_handle_option): Update.
5403
5404 2002-03-15 Chris Demetriou <cgd@broadcom.com>
5405
5406 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5407 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5408 and define it so that regardless of target CPU size,
5409 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5410 of "int" rather than "long."
5411
5412 2002-03-15 Richard Henderson <rth@redhat.com>
5413
5414 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5415 size as a tree.
5416
5417 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5418
5419 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5420 ("tstqi" split): Avoid using memory for tstqi on address register.
5421 (splits): Remove constraints.
5422 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5423 ("cmpdf", "cmpsf"): Remove since not used.
5424 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5425 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5426
5427 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5428
5429 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5430 ("neghi2"): Tighten constraints.
5431 ("one_cmplsi2"): Optimize and simplify split.
5432 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5433
5434 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5435
5436 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5437 and split of AND operation to clear the upper bits.
5438 ("*logicalsi3_zextqi"): Likewise.
5439 ("*logicallhi3_zexthi_ashift8"): Likewise.
5440 ("*logicalsi3_silshr16"): Likewise.
5441 ("logicalsi3_silshl16"): Likewise.
5442 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5443
5444 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5445
5446 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5447 (m68hc11_indirect_p): New function.
5448 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5449 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5450 TARGET_M6812.
5451 (asm_print_register): Likewise.
5452 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5453 (m68hc11_indirect_p): Declare.
5454 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5455 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5456 (TARGET_SWITCHES): New option -mrelax.
5457 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5458 destination.
5459 ("iorsi3", "xorsi3"): Likewise.
5460 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5461 ("*andhi3_mem"): New to handle destination in memory with bclr
5462 and a scratch register.
5463 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5464 ("*andhi3_const"): New when operand2 is constant.
5465 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5466 ("*andhi3_gen"): Cleanup of the old "andhi3".
5467 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5468 ("xorqi3"): Update constraints.
5469
5470 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5471
5472 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5473 for reg_equiv_memory_loc when the operand is a register that does
5474 not get a hard register (stack location).
5475 (tst_operand): After reload, accept all memory operand.
5476 (symbolic_memory_operand): Fix detection of symbolic references.
5477 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5478 accept symbols and any constant.
5479
5480 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5481
5482 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5483 note on the insn that sets the soft frame register.
5484 (must_parenthesize): ix and iy are also reserved names.
5485 (print_operand_address): One more place where parenthesis are required
5486 to avoid confusion with register names.
5487 (m68hc11_gen_movhi): Allow push of stack pointer.
5488 (m68hc11_check_z_replacement): Fix handling of parallel with a
5489 clobber.
5490 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5491 the replacement register is.
5492 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5493 and D8_REGS classes.
5494 (MODES_TIEABLE_P): All modes are tieable except QImode.
5495
5496 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5497
5498 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5499 (___subdi3): Likewise.
5500 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5501 (__map_data_section): Optimize 68hc11 case.
5502
5503 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5504
5505 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5506 than a shift to avoid adding a register with itself.
5507 (m68hc11_memory_move_cost): Take into account NO_REGS.
5508 (m68hc11_register_move_cost): Update and use memory move cost
5509 for soft registers.
5510 (m68hc11_address_cost): Make cost of valid offset not 0 so that
5511 it gives more opportunities to cse to optimize.
5512 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5513 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5514
5515 2002-03-15 Mark Mitchell <mark@codesourcery.com>
5516
5517 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5518 * c-common.def (CLEANUP_STMT): New tree node.
5519 * c-common.h (CLEANUP_DECL): New macro.
5520 (CLEANUP_EXPR): Likewise.
5521 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5522 * expr.c (expand_expr): Tidy.
5523 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5524 * tree-inline.c (initialize_inlined_parameters): Clean up
5525 new local variables.
5526
5527 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5528
5529 PR bootstrap/4128
5530 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5531 before movrXX only, use reg_overlap_mentioned_p.
5532 Only special case NE if just one insn can be generated.
5533
5534 2002-03-15 Jason Merrill <jason@redhat.com>
5535
5536 * varasm.c (assemble_variable): Call resolve_unique_section before
5537 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
5538 of error_mark_node.
5539
5540 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5541
5542 PR target/5170
5543 * arm.md (split pattern for thumb shiftable immediates): Add comment
5544 explaining non-obvious test.
5545
5546 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
5547
5548 PR target/5712
5549 * arm.md (movaddr, movaddr_insn): Delete.
5550
5551 2002-03-15 Jason Merrill <jason@redhat.com>
5552
5553 * toplev.c (wrapup_global_declarations): Clarify variable handling.
5554 -fkeep-static-consts doesn't apply to comdats.
5555
5556 2002-03-14 Richard Henderson <rth@redhat.com>
5557
5558 * c-decl.c: Include c-pragma.h.
5559 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5560 (finish_function): Tidy.
5561 * c-pragma.c: Include c-common.h.
5562 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5563 (handle_pragma_weak): Use them.
5564 (init_pragma): Register pending_weaks.
5565 * c-pragma.h (maybe_apply_pragma_weak): Declare.
5566 * print-tree.c (print_node): Print DECL_WEAK.
5567 * varasm.c (mark_weak_decls): Remove.
5568 (remove_from_pending_weak_list): Remove.
5569 (add_weak): Remove.
5570 (asm_emit_uninitialised): Call globalize_decl for weak commons.
5571 (weak_decls): Make a tree_list.
5572 (declare_weak): Cons weak_decls directly.
5573 (globalize_decl): Remove weak_decls elements directly.
5574 (weak_finish): Simplify weak_decls walk. Don't weaken unused
5575 symbols. Don't pretend to handle aliases.
5576 (init_varasm_once): Update weak_decls registry.
5577 * Makefile.in: Update dependencies.
5578
5579 2002-03-14 Richard Henderson <rth@redhat.com>
5580
5581 PR target/5312
5582 * config/ia64/ia64.c: Include tm_p.h last.
5583 (gen_nop_type): Remove duplicate definition.
5584 (cycle_end_fill_slots): Set sched_data for second L slot.
5585 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5586 (nop_cycles_until): Fix typos.
5587
5588 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5589
5590 PR optimization/5891
5591 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5592
5593 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5594
5595 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5596 descriptors correctly.
5597
5598 2002-03-14 Michael Meissner <meissner@redhat.com>
5599
5600 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5601 100, allowing MAX_UNROLLED_INSNS to be overridden.
5602
5603 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5604 --param.
5605
5606 * unroll.c (params.h): Include.
5607 (MAX_UNROLLED_INSNS): Delete, now in params.h.
5608
5609 * doc/invoke.texi (--param max-unroll-insns): Document.
5610
5611 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5612
5613 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5614
5615 * arm.md: Fix warnings about constraints in peepholes and splits.
5616
5617 2002-03-14 Zack Weinberg <zack@codesourcery.com>
5618
5619 * cpphash.h (struct lexer_state): Remove line_extension member.
5620 * cpplib.c (dequote_string, do_linemarker): New functions.
5621 (linemarker_dir): New data object.
5622 (DIRECTIVE_TABLE): No longer need to interpret #line in
5623 preprocessed source. Delete obsolete comment about return
5624 values of handlers.
5625 (end_directive, directive_diagnostics, _cpp_handle_directive):
5626 Don't muck with line_extension.
5627 (directive_diagnostics): No need to issue warnings for
5628 linemarkers here.
5629 (_cpp_handle_directive): Issue warnings for linemarkers here,
5630 when appropriate. Dispatch linemarkers to do_linemarker, not
5631 do_line.
5632 (do_line): Code to handle linemarkers split out to do_linemarker.
5633 Convert escape sequences in filename argument, both places.
5634
5635 * cppmacro.c (quote_string): Rename cpp_quote_string and
5636 export. All callers changed.
5637 * cpplib.h (cpp_quote_string): Prototype.
5638 * cppmain.c (print_line): Call cpp_quote_string on to_file
5639 before printing it.
5640
5641 * doc/cpp.texi: Document that escapes are now interpreted in
5642 #line and in linemarkers, and that non-printing characters are
5643 converted to octal escapes when linemarkers are generated.
5644
5645 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
5646
5647 * emit-rtl.c (try_split): Use delete_insns.
5648 * recog.c (split_all_insns): Fix terminating condition.
5649
5650 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5651 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5652
5653 PR target/5828
5654 * arm.c (arm_output_epilogue): Fix floating-point register save
5655 adjustment when using a frame pointer.
5656
5657 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
5658
5659 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5660 * config/mips/mips.c (compute_frame_size): Retrofit them here.
5661 (save_restore_insns, mips_expand_epilogue): And here.
5662 (build_mips16_call_stub): And here.
5663 (mips_function_value): Use the new macros to decide whether a single
5664 or complex float can be returned in floating-point registers. Return
5665 a parallel rtx in the complex case.
5666
5667 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
5668
5669 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5670 call after liveness analysis.
5671
5672 * recog.c (split_insn): Use delete_insn_and_edges.
5673
5674 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5675 instructions to have branch prediction notes.
5676 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5677
5678 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
5679
5680 * configure.in: Don't pass -Wno-long-long to a ADA compiler
5681 that doesn't support it.
5682 * configure: Regenerate.
5683
5684 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5685
5686 PR target/5626
5687 * config/sparc/sparc.md (normal_branch, inverted_branch,
5688 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5689 inverted_fp_branch): Adjust calls to output_cbranch.
5690 Set length attribute.
5691 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5692 output_v9branch. Set length attribute.
5693 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5694 predicates.
5695 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5696 (output_cbranch): Likewise. Handle far branches.
5697 (output_v9branch): Handle far branches.
5698 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5699 Adjust prototypes.
5700 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5701 noov_compare64_op predicates.
5702
5703 2002-03-13 Jason Merrill <jason@redhat.com>
5704
5705 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5706 into the function and constify it.
5707 * gthr-dce.h, gthr-solaris.h: Likewise.
5708
5709 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5710
5711 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5712 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5713 std_expand_builtin_va_arg if not ABI_V4.
5714
5715 2002-03-13 Jason Merrill <jason@redhat.com>
5716
5717 * varasm.c (globalize_decl): New fn.
5718 (assemble_start_function): Use it.
5719 (asm_emit_uninitialized): Use it.
5720 (assemble_alias): Use it.
5721 (assemble_variable): Use it.
5722
5723 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5724
5725 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5726 2002-03-12 internal visibility change.
5727 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5728 visibility into SYMBOL_REF_FLAG.
5729
5730 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5731
5732 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5733 VOIDmode operand. Add compile-time optimization for constant results.
5734
5735 2002-03-12 Jason Merrill <jason@redhat.com>
5736
5737 * c-typeck.c (convert_for_assignment): Don't allow conversions
5738 between pointers and references. Only allow lvalues to convert to
5739 reference.
5740
5741 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5742
5743 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5744 before prologue, to avoid scheduling problems.
5745
5746 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5747
5748 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5749 (ELIMINABLE_REGS): Add sfp->sp.
5750 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5751
5752 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5753
5754 PR optimization/5892
5755 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5756
5757 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5758
5759 * loop.c (basic_induction_var): Don't call convert_modes if mode
5760 classes are different.
5761
5762 2002-03-12 Richard Henderson <rth@redhat.com>
5763
5764 PR optimization/5901
5765 * function.c (reposition_prologue_and_epilogue_notes): Position
5766 the markers after/before the last/first insn not deleted.
5767
5768 2002-03-12 Richard Henderson <rth@redhat.com>
5769
5770 PR optimization/5878
5771 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5772 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5773 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5774
5775 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5776 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5777 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5778
5779 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5780 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5781 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5782 also. Don't set it if not flag_pic.
5783 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5784 to be INVALID_REGNUM when not used.
5785
5786 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5787
5788 * expmed.c (store_bit_field): Reset alias set for memory.
5789 (extract_bit_field): Same.
5790
5791 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5792
5793 * c-common.c (c_tree_code_type, c_tree_code_length,
5794 c_tree_code_name, add_c_tree_codes): Delete.
5795 * c-common.h (add_c_tree_codes): Delete.
5796 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5797 Define.
5798 * c-objc-common.c (c_objc_common_init): Don't call
5799 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5800 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5801 objc_tree_code_name, add_objc_tree_codes): Delete.
5802 (objc_init): Don't call add_objc_tree_codes.
5803 * objc/objc-lang.c (tree_code_type, tree_code_length,
5804 tree_code_name): Define.
5805 * toplev.c (lang_independent_init): Don't set
5806 tree_code_length[IDENTIFIER_NODE].
5807 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5808 Delete definitions, moved to language front-ends.
5809 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5810 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5811 Const-ify.
5812 (tree_code_length): Change type to unsigned char.
5813
5814 2002-03-12 Richard Henderson <rth@redhat.com>
5815
5816 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5817 internal visibility change.
5818
5819 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5820
5821 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5822 validize_mem() instead of change_address to avoid clobbering
5823 memory attributes.
5824
5825 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5826
5827 * c-lex.h (position_after_whitespace): Remove.
5828
5829 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5830
5831 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5832 (lex_string): Use unsigned char pointers.
5833
5834 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5835
5836 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5837 is not a valid memory_operand.
5838
5839 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5840
5841 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5842 * config/xtensa/lib1funcs.asm: Fix copyright to include
5843 special case for libgcc files.
5844 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5845 (__divsi3): Likewise.
5846 (__umodsi3): Likewise.
5847 (__modsi3): Likewise.
5848 * config/xtensa/lib2funcs.S: Fix copyright to include
5849 special case for libgcc files.
5850
5851 2002-03-12 Tom Rix <trix@redhat.com>
5852
5853 * collect2.c (resolve_lib_name): Move outside of
5854 OBJECT_FORMAT_COFF ifdef.
5855 (ignore_library): Same.
5856
5857 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5858
5859 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5860
5861 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5862
5863 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5864 to function_section before writing out the constant pool.
5865
5866 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5867
5868 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5869 zero_constant.
5870 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5871
5872 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5873
5874 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5875 (adddi3): Likewise.
5876 (movdf): Likewise.
5877 (movdi): Likewise.
5878 (cmpsi splitter): Likewise.
5879 (modsi3): Fail if <= 0.
5880 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5881 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5882 (reg_or_sub_cint64_operand): Likewise.
5883 (num_insns_constant_wide): Optimize sign extension.
5884 (rs6000_legitimize_address): Likewise.
5885
5886 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5887
5888 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5889 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5890
5891 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5892
5893 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5894 address calculation.
5895
5896 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5897
5898 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5899 scratch register to DImode / TImode.
5900 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5901 register used does not overlap the target.
5902
5903 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5904
5905 * Makefile.in (debug.o): Depend on debug.h.
5906 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5907 * debug.c (do_nothing_debug_hooks): Likewise.
5908 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5909 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5910 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5911 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5912 * dwarfout.c (dwarf_debug_hooks): Likewise.
5913 * integrate.c (output_inline_function): Likewise.
5914 * objc/objc-act.c (synth_module_prologue): Likewise.
5915 * sdbout.c (sdb_debug_hooks): Likewise.
5916 * toplev.c (debug_hooks): Likewise.
5917 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5918
5919 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5920
5921 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5922 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5923 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5924 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5925 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5926 * defaults.h (POINTER_SIZE): Define.
5927 * doc/tm.texi (POINTER_SIZE): Document default.
5928
5929 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5930
5931 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5932
5933 2002-03-11 Richard Henderson <rth@redhat.com>
5934
5935 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5936 if rebuild_label_notes_after_reload.
5937
5938 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5939
5940 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5941 emit pic register load if "internal" visibility.
5942 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5943 (cris_expand_builtin_va_arg): Do all computations on trees.
5944
5945 2002-03-11 Richard Henderson <rth@redhat.com>
5946
5947 * rtlanal.c: Include recog.h.
5948 (keep_with_call_p): Fix thinko.
5949 * Makefile.in (rtlanal.o): Update dependencies.
5950
5951 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5952
5953 * genflags.c (gen_insn): Use IS_VSPACE.
5954 * genoutput.c (output_insn_data): Likewise.
5955 (process_template): Likewise.
5956
5957 2002-03-11 Richard Henderson <rth@redhat.com>
5958
5959 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5960
5961 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5962
5963 * Makefile.in: Update.
5964 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5965 Update documentation.
5966 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5967 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5968
5969 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5970
5971 * Makefile.in: Give texi2pod its input file as a command line
5972 argument, not on stdin.
5973
5974 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5975 Daniel Berlin <dan@dberlin.org>
5976
5977 C++ alias analysis improvement.
5978 * alias.c (record_component_aliases): Record aliases for base
5979 classes too.
5980
5981 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5982
5983 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5984
5985 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5986
5987 * toplev.c (vms_fopen): Remove, not needed.
5988
5989 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5990
5991 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5992
5993 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5994 for FP, already done later.
5995
5996 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5997 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5998
5999 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
6000
6001 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6002 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6003 LARGEST_EXPONENT_IS_NORMAL for the given mode.
6004 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6005 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6006 (ediv, emul, eldexp, esqrt): Likewise.
6007 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6008 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6009 (saturate): New function.
6010 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6011 (make_nan): Use a saturation value instead of a NaN if
6012 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
6013 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6014 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
6015 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
6016 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6017 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6018 !ROUND_TOWARDS_ZERO.
6019 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6020 (ROUND_TOWARDS_ZERO): Document.
6021
6022 2002-03-11 Andreas Jaeger <aj@suse.de>
6023
6024 * cfg.c (dump_flow_info): Remove unused variable.
6025
6026 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
6027
6028 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6029 computations on trees.
6030
6031 2002-03-10 Richard Henderson <rth@redhat.com>
6032
6033 PR 5693:
6034 * reload.c (copy_replacements_1): New.
6035 (copy_replacements): Use it to recurse through the rtx.
6036
6037 2002-03-10 Richard Henderson <rth@redhat.com>
6038
6039 * loop.c (strength_reduce): Compute number of iterations as
6040 unsigned HOST_WIDE_INT.
6041
6042 2002-03-10 Richard Henderson <rth@redhat.com>
6043
6044 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6045 to move away from the end of the block.
6046
6047 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6048
6049 PR preprocessor/5899
6050 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6051
6052 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6053
6054 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6055
6056 * attribs.c (decl_attributes): Fix signed/unsigned warning.
6057
6058 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
6059
6060 * config/mmix/mmix.c: Improve comments.
6061 (mmix_target_asm_function_prologue): Drop variable
6062 empty_stack_frame. Don't allocate unused slot above fp.
6063 (mmix_target_asm_function_epilogue): Mirror prologue changes.
6064 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6065 brace in first column.
6066 (enum reg_class): Ditto.
6067 (FIRST_PARM_OFFSET): Now 0.
6068 (USER_LABEL_PREFIX): Remove #if 0:d definition.
6069
6070 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6071
6072 * combine.c (make_extraction): Fix error in last change.
6073
6074 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6075
6076 * c4x.c (c4x_fp_reglist): Const-ify.
6077 * cris.c (cris_print_operand): Likewise.
6078 * i386.c (ix86_va_arg): Likewise.
6079 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6080 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6081 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6082 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6083 * mcore.h (regno_reg_class): Likewise.
6084 * mips.c (gen_int_relational): Likewise.
6085 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
6086 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
6087 * pdp11.c (move_costs): Likewise.
6088 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
6089 * s390.c (s390_branch_condition_mnemonic, regclass_map):
6090 Likewise.
6091 * s390.h (regclass_map): Likewise.
6092 * sh.c (shift_amounts): Likewise.
6093 * sh.md (rotlsi3): Likewise.
6094
6095 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6096
6097 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
6098 (ne0+5): Use new clobber to generate proper shift pattern.
6099 Patch by Michael Matz <matz@kde.org>.
6100
6101 2002-03-09 Andreas Schwab <schwab@suse.de>
6102
6103 * gcc.c (validate_all_switches): Also handle `%W{...}'.
6104
6105 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
6106
6107 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6108
6109 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6110
6111 PR middle-end/5877
6112 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6113 even for non-representable constants.
6114
6115 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6116
6117 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
6118 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
6119 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
6120 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
6121 (pop_function_context): Compute MAY_SHARE parameter for
6122 fixup_var_refs.
6123 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
6124 (gen_mem_addressof): Call fixup_var_refs with new parm.
6125
6126 * combine.c (make_extraction): Don't make extension of CONST_INT.
6127
6128 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6129
6130 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
6131 in o32 and o64 ABIs.
6132 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
6133 but getting fixed-size structs passed in registers regardless of
6134 padding in o32 and o64 ABIs.
6135
6136 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6137 offset before loading address of argument passed by transparent
6138 reference.
6139
6140 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6141
6142 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6143
6144 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
6145
6146 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6147 marker such that registers after it are saved.
6148
6149 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6150
6151 * sparc.c (arith_4096_operand): Fix error in last change.
6152
6153 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6154
6155 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6156 defaults for MEABI.
6157
6158 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6159
6160 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6161 vectors.
6162
6163 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
6164
6165 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6166
6167 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
6168
6169 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
6170 removed; fix return value.
6171 * combine.c (combine_instructions): Dirtify blocks where we failed to
6172 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
6173 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
6174
6175 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6176
6177 * gcse.c (insert_insn_end_bb): Fix typo in last change.
6178
6179 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
6180
6181 * recog.c (peephole2_optimize): Re-distribute EH edges.
6182
6183 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
6184
6185 * expr.c (expand_expr): Use unsave lang hook.
6186 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
6187 (LANG_HOOKS_INITIALIZER): Update.
6188 * langhooks.h (struct lang_hooks): New hook unsave.
6189 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
6190 (unsave_expr_1): Remove unused lang_unsave_expr_now.
6191 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
6192 (unsave_expr_now): Remove.
6193 * tree.h (unsave_expr_now, lang_unsave,
6194 lang_unsave_expr_now): Remove.
6195 (lhd_unsave): New.
6196
6197 2002-03-08 Andreas Jaeger <aj@suse.de>
6198
6199 * flow.c (propagate_block_delete_insn): Remove unused variable.
6200
6201 2002-03-08 Kazu Hirata <kazu@hxi.com>
6202
6203 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6204 insn length for memory load/store.
6205
6206 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
6207
6208 * doc/install.texi (--with-libiconv-prefix): Document.
6209
6210 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
6211
6212 * doc/sourcebuild.texi: Fix typo.
6213
6214 2002-03-08 Jakub Jelinek <jakub@redhat.com>
6215
6216 PR c/3711
6217 * builtins.c (std_expand_builtin_va_arg): Do all computations on
6218 trees.
6219
6220 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6221
6222 * rtl.c (copy_most_rtx): Move from here ...
6223 * emit-rtl.c (copy_most_rtx): ... to here.
6224
6225 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
6226
6227 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6228 SUBTARGET_CPP_SIZE_SPEC.
6229 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6230
6231 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6232
6233 2002-03-07 Matt Hiller <hiller@redhat.com>
6234
6235 * gensupport.c (first_dir_md_include): Renamed from include;
6236 change all references.
6237 (last_dir_md_include): Renamed from last_include; change all
6238 references.
6239 (init_md_reader): Unconditionally initialize base_dir whether or
6240 not filename is a relative path.
6241
6242 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
6243
6244 * config/fp-bit.c (_unord_f2): Compile it in even if
6245 US_SOFTWARE_GOFAST is enabled.
6246
6247 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6248 NULL_RTX. Set all HFmode operations as NULL_RTX.
6249 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6250 NULL_RTX, try reversing the comparison and the operands.
6251
6252 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6253
6254 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6255 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6256 and MATCH_OP_DUP.
6257
6258 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
6259
6260 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6261
6262 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6263
6264 * basic-block.h (fixup_abnormal_edges): Declare.
6265 * reload1.c (fixup_abnormal_edges): New function.
6266 * reg-stack.c (convert_regs): Use it.
6267
6268 * gcse.c (insert_insn_end_bb): Handle trapping insns.
6269
6270 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6271
6272 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
6273
6274 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6275 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6276 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6277 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6278 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6279 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6280 unless x and y could be infinite.
6281 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6282 Check that the common type of both arguments is a real, even for
6283 targets without unordered comparisons. Allow an integer argument
6284 to be compared against a real.
6285 (expand_tree_builtin): Use expand_unordered_cmp.
6286 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6287 * cse.c (fold_rtx): Likewise. Fix indentation.
6288 * fold-const.c (fold_real_zero_addition_p): New.
6289 (fold): Use it, and the new HONOR_... macros.
6290 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6291 * jump.c (reversed_comparison_code_parts): After searching for
6292 the true comparison mode, use HONOR_NANS to decide whether it
6293 can be safely reversed.
6294 (reverse_condition_maybe_unordered): Remove IEEE check.
6295 * simplify-rtx.c (simplify_binary_operation): Use the new macros
6296 to decide which simplifications are valid. Allow the following
6297 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6298 and (a - -b) to (a + b).
6299 (simplify_relational_operation): Use HONOR_NANS.
6300 * doc/tm.texi: Document the MODE_HAS_... macros.
6301
6302 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
6303
6304 * combine.c (simplify_comparison): If simplifying a logical shift
6305 right and compare with constant, force the comparison to unsigned.
6306
6307 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
6308
6309 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6310
6311 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6312 -mabi=no-altivec
6313 (alt_reg_names): Remove % for vrsave.
6314
6315 2002-03-06 Richard Henderson <rth@redhat.com>
6316
6317 PR optimization/5844
6318 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
6319 if used indicates we've already emitted one copy of an operand.
6320 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6321 (gen_split): Supply a non-null used.
6322
6323 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
6324
6325 * reload1.c (reload): Unshare all rtl after reload is done.
6326
6327 * simplify-rtx.c (simplify_plus_minus): Do not abort,
6328 but simply fail if the expression is too complex to simplify.
6329 (simplify_gen_binary): Handle simplify_plus_minus failures.
6330
6331 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
6332
6333 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6334 consistently call delete_trivially_dead_insns after CSE and GCSE;
6335 fix DFI_life dumping; do jump threading after liveness; do crossjumping
6336 after liveness2; update comment in last crossjumping.
6337 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6338
6339 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
6340
6341 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6342 after completing fast dead code elimination.
6343
6344 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6345 COMPARE operator.
6346
6347 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
6348
6349 * version.c: Fix misplaced leading blanks on first line.
6350
6351 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
6352
6353 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6354
6355 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
6356
6357 * cfgcleanup.c (mentions_nonequal_regs): New function.
6358 (thread_jump): Use it.
6359 * toplev.c (rest_of_compilation): Run jump threading after
6360 liveness.
6361
6362 2002-03-06 Jakub Jelinek <jakub@redhat.com>
6363
6364 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6365 patch.
6366
6367 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
6368
6369 * predict.c (estimate_bb_frequencies): Do not reload the
6370 frequencies from notes.
6371
6372 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
6373
6374 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6375 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6376
6377 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6378 delete_noop_moves): Return indeger.
6379 * flow.c (ndead): New variable.
6380 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6381 BB argument; update callers.
6382 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6383 (life_analysis): Do not call purge_all_dead_edges.
6384 (update_life_info): Return number of deleted insns; print statistics.
6385 (update_life_info_in_dirty_blocks): likewise.
6386 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6387 return number of insns deleted.
6388
6389 * cse.c: Include timevar.h
6390 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6391 iterate until stabilizes; print statistics; return number of killed
6392 insns.
6393 * Makefile.in: (cse.o): Add timevar.h dependency
6394 * rtl.h (delete_trivially_dead_insns): New.
6395 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6396 * toplev.c (rest_of_compilation): Update callers.
6397
6398 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6399 (try_optimize_cfg): Do not update liveness.
6400 (cleanup-cfg): Loop until try_optimize_cfg and dead code
6401 removal stabilizes; use delete_trivially_dead_insns.
6402
6403 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6404
6405 2002-03-05 Zack Weinberg <zack@codesourcery.com>
6406
6407 * cppmain.c (setup_callbacks): Disable #pragma and #ident
6408 callbacks when processing assembly language.
6409
6410 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6411
6412 * pa.h (ASM_FILE_END): Define.
6413 * som.h (ASM_FILE_END): Delete.
6414
6415 * pa.c (function_arg): Don't pass floats in general registers in
6416 indirect calls if TARGET_ELF32.
6417
6418 2002-03-05 Richard Henderson <rth@redhat.com>
6419
6420 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6421
6422 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
6423
6424 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6425
6426 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6427
6428 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6429 -r command line. Don't hide any symbols if not building
6430 shared libgcc.
6431
6432 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
6433
6434 * cfg.c (dump_flow_info): Warn about profile mismatches.
6435 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6436 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6437
6438 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6439
6440 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6441 wide volatile memory by parts.
6442
6443 2002-03-05 Jakub Jelinek <jakub@redhat.com>
6444
6445 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6446 is NULL.
6447
6448 2002-03-05 Richard Henderson <rth@redhat.com>
6449
6450 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6451
6452 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6453
6454 * toplev.c (documented_lang_options): Document more
6455 language-specific options.
6456 * doc/invoke.texi (Warning Options): Correct documentation for
6457 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6458 * c-decl.c (c_decode_option): Use a table to handle warning options.
6459
6460 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
6461
6462 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6463 parameter to mmix_encode_section_info.
6464 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6465 relocatably. Always produce ELF, not mmo if linking relocatably.
6466 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6467 first is non-zero, don't add symbol prefix.
6468 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6469 prototype accordingly.
6470
6471 2002-03-04 Krister Walfridsson <cato@df.lth.se>
6472
6473 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6474
6475 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
6476
6477 * configure.in: Increase required makeinfo version to 4.1.
6478 * configure: Regenerate.
6479
6480 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
6481
6482 * .cvsignore: Remove *.info* and genrtl*; these files are generated
6483 elsewhere now.
6484
6485 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
6486
6487 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6488 * doc/invoke.texi: Fix @math uses.
6489
6490 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
6491
6492 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6493 removal
6494
6495 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
6496
6497 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6498 (powerpc-*-eabisimaltivec*): Same.
6499
6500 * config/rs6000/t-ppcendian: New.
6501
6502 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6503
6504 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6505 nonimmediate_src_operand and nonimmediate_lsrc_operand to
6506 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6507
6508 2002-03-03 Richard Henderson <rth@redhat.com>
6509
6510 * toplev.c (rest_of_decl_compilation): Revert last two changes.
6511
6512 2002-03-03 Zack Weinberg <zack@codesourcery.com>
6513
6514 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6515 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6516 tree.c, config/m68k/m68k.c:
6517 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6518 REAL_ARITHMETIC blocks unconditional. Delete some further
6519 #ifdef blocks predicated on REAL_ARITHMETIC.
6520 * flags.h, toplev.c: Delete remaining references to
6521 flag_pretend_float.
6522
6523 * doc/invoke.texi: Remove documentation of -fpretend-float.
6524 * doc/tm.texi: Describe the various REAL_* macros as provided by
6525 real.h, not by the target configuration files.
6526
6527 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6528 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6529 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6530 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6531 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6532 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6533 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6534 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6535 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6536 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6537 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6538 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6539 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6540 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6541 config/xtensa/xtensa.h:
6542 Do not define, undefine, or mention in comments any of
6543 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6544 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6545 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6546 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6547 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6548 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6549 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6550 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6551 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6552
6553 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6554
6555 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6556 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6557 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6558 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6559 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6560 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6561 Delete.
6562 * defaults.h (BITS_PER_WORD): Define.
6563 * doc/tm.texi (BITS_PER_WORD): Document default value.
6564
6565 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6566 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6567 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6568
6569 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6570
6571 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6572 lieu of explicit sizeof/sizeof.
6573 * i386.c (override_options, ix86_init_mmx_sse_builtins,
6574 ix86_expand_builtin): Likewise.
6575 * mips.c (mips_add_gc_roots): Likewise.
6576 * mmix.c (mmix_output_condition): Likewise.
6577 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6578 altivec_init_builtins): Likewise.
6579 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6580 * cppexp.c (Nsuff, parse_number): Likewise.
6581 * cppinit.c (builtin_array_end): Likewise.
6582 * gcc.c (n_default_compilers, process_command): Likewise.
6583 * genpreds.c (output_predicate_decls): Likewise.
6584 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6585 * lcm.c (N_ENTITIES): Likewise.
6586 * stor-layout.c (set_sizetype): Likewise.
6587
6588 2002-03-03 Richard Henderson <rth@redhat.com>
6589
6590 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6591 for types or labels.
6592
6593 2002-03-03 Richard Henderson <rth@redhat.com>
6594
6595 * c-decl.c (start_decl): Initialized variables are not common.
6596
6597 2002-03-02 Per Bothner <per@bothner.com>
6598
6599 * gcc.c (option_map): Suport new --bootclasspath option.
6600 --CLASSPATH is now just an alias for --classpath.
6601
6602 2002-03-02 Richard Henderson <rth@redhat.com>
6603
6604 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6605 load if "internal" visibility.
6606 * doc/extend.texi: Document visibility meanings.
6607
6608 2002-03-02 Richard Henderson <rth@redhat.com>
6609
6610 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6611 to functions as well.
6612
6613 2002-03-02 Richard Henderson <rth@redhat.com>
6614
6615 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6616 (handle_visibility_attribute): Don't call assemble_visibility.
6617 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6618 without asmspec. Invoke assemble_alias when needed.
6619 * varasm.c (maybe_assemble_visibility): New.
6620 (assemble_start_function, assemble_variable, assemble_alias): Use it.
6621
6622 2002-03-02 Richard Henderson <rth@redhat.com>
6623
6624 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6625 invoke ENCODE_SECTION_INFO with first call flag.
6626
6627 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6628 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6629 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6630 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6631 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6632 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6633 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6634 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6635 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6636 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6637 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6638 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6639 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6640 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6641 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6642 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6643 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6644 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6645 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6646 config/sh/sh.h, config/sparc/sparc.h,
6647 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6648 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6649 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6650 FIRST argument. As needed, examine it and do nothing.
6651
6652 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6653 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6654 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6655
6656 * config/arm/t-pe (pe.o): Add dependencies.
6657
6658 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6659
6660 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6661 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6662 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6663 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6664 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6665 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6666 * defaults.h (BITS_PER_UNIT): Define.
6667 * doc/tm.texi (BITS_PER_UNIT): Document default value.
6668
6669 2002-03-02 Kazu Hirata <kazu@hxi.com>
6670
6671 * config/h8300/h8300-protos.h: Add a prototype for
6672 compute_a_shift_length.
6673 * config/h8300/h8300.c (h8300_asm_insn_count): New.
6674 (compute_a_shift_length): Likewise.
6675 (h8300_adjust_insn_length): Do not adjust insn length of shift
6676 insns.
6677 * config/h8300/h8300.md (anonymous shift patterns): Use
6678 compute_a_shift_length.
6679
6680 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6681
6682 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6683 trunc_int_for_mode.
6684
6685 * emit-rtl.c (offset_address): Call update_temp_slot_address.
6686
6687 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6688
6689 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6690 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6691 * flags.h (flag_zero_initialized_in_bss): Declare.
6692 * toplev.c (flag_zero_initialized_in_bss): New flag.
6693 (lang_independent_options): Add flag_zero_initialized_in_bss.
6694 * tree.c (initializer_zerop): New function.
6695 * tree.h (initializer_zerop): Declare.
6696 * varasm.c (assemble_variable): If we can emit bss, put zero
6697 initializers in the bss section.
6698
6699 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6700
6701 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6702 like more than one symbol per .weak directive.
6703
6704 2002-03-01 Richard Henderson <rth@redhat.com>
6705
6706 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6707 adjust argument_pointer by pretend_args_size.
6708 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6709
6710 2002-03-01 Kazu Hirata <kazu@hxi.com>
6711
6712 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6713
6714 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6715
6716 * toplev.c (rest_of_compilation): Delete dead jumptables before
6717 loop.
6718 * flow.c (delete_dead_jumptables): Make global.
6719 * rtl.h (delete_dead_jumptables): Declare.
6720
6721 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6722
6723 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6724 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6725 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6726
6727 2002-03-01 Kazu Hirata <kazu@hxi.com>
6728
6729 * config/h8300/h8300-protos.h: Fix formatting.
6730 * config/h8300/h8300.c: Likewise.
6731 * config/h8300/h8300.h: Likewise.
6732
6733 2002-03-01 Kazu Hirata <kazu@hxi.com>
6734
6735 * config/h8300/h8300.c (print_operand): Support 16-bit
6736 constant addresses.
6737 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6738
6739 2002-02-28 Richard Henderson <rth@redhat.com>
6740
6741 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6742 pun complex values as integers; use gen_lowpart instead of
6743 gen_rtx_SUBREG.
6744 (extract_bit_field): Likewise.
6745
6746 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6747 David Edelsohn <edelsohn@gnu.org>
6748
6749 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6750 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6751 (SUPPORTS_WEAK): Likewise.
6752 * output.h (add_weak): Add tree param.
6753 * varasm.c (add_weak): Likewise. Save decl.
6754 (struct weak_syms): Add decl field.
6755 (mark_weak_decls): New function.
6756 (init_varasm_once): ggc_add_root mark_weak_decls.
6757 (assemble_start_function): Use ASM_WEAKEN_DECL.
6758 (assemble_variable): Likewise.
6759 (assemble_alias): Likewise.
6760 (declare_weak): Pass decl to add_weak.
6761 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6762 (remove_from_pending_weak_list): Declare and define for
6763 ASM_WEAKEN_DECL.
6764 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6765 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6766 * defaults.h (SUPPORTS_WEAK): Likewise.
6767 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6768 .weak for code sym. Do emit .size for descriptor sym.
6769 (ASM_DECLARE_FUNCTION_SIZE): Define.
6770 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6771 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6772 .lglobl unless TARGET_XCOFF. Formatting fixes.
6773 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6774 .weak for code sym.
6775 (HANDLE_PRAGMA_WEAK): Remove.
6776 (ASM_WEAKEN_LABEL): Remove.
6777 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6778
6779 2002-03-01 Jason Merrill <jason@redhat.com>
6780
6781 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6782 (TARGET_EXPR_CLEANUP): New macro.
6783
6784 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6785
6786 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6787 to take ptr_extend into account as third type of extension.
6788 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6789 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6790 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6791 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6792 * calls.c (precompute_arguments): Use new macro.
6793 (expand_call): Ditto.
6794 * combine.c (nonzero_bits): Ditto.
6795 (record_promoted_value): Ditto.
6796 * expr.c (store_expr): Ditto.
6797 (expand_expr): Ditto.
6798 * function.c (assign_parms): Ditto.
6799
6800 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6801
6802 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6803 override -shared and -shared-libgcc.
6804
6805 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6806
6807 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6808 of "ultrasparc".
6809 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6810 to be broken.
6811
6812 2002-02-28 Richard Henderson <rth@redhat.com>
6813
6814 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6815 4 cycle latency from MM producers.
6816 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6817
6818 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6819
6820 * mklibgcc.in: Don't use GNU make extension.
6821
6822 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6823
6824 * c-parse.in (STATIC): New terminal.
6825 (scspec): New non-terminal. Update productions accordingly.
6826 (program): Remove bogus ifc / end ifc.
6827 (array_declarator): Simplify production using STATIC.
6828
6829 2002-02-28 Jim Meyering <meyering@lucent.com>
6830
6831 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6832 \a still means TARGET_BELL.
6833
6834 2002-02-28 Richard Henderson <rth@redhat.com>
6835
6836 * haifa-sched.c (sched_emit_insn): New.
6837 (schedule_block): Use last_scheduled_insn to track last insn.
6838 * sched-int.h (sched_emit_insn): Prototype.
6839 * config/ia64/ia64.c (last_issued): Remove.
6840 (ia64_variable_issue): Don't set it.
6841 (nop_cycles_until): Use sched_emit_insn.
6842
6843 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6844
6845 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6846 extended constants.
6847
6848 2002-02-28 Kazu Hirata <kazu@hxi.com>
6849
6850 * config/h8300/h8300.c: Fix formatting.
6851 * config/h8300/h8300.h: Likewise.
6852
6853 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6854
6855 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6856 which may overwrite the high byte of the frame pointer.
6857
6858 2002-02-28 Bo Thorsen <bo@suse.de>
6859
6860 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6861 (STARTFILE_SPEC): Add 64 bit files.
6862 (ENDFILE_SPEC): Likewise.
6863
6864 2002-02-28 Jason Merrill <jason@redhat.com>
6865
6866 * c-decl.c (finish_function): Only warn about missing return
6867 statement with -Wreturn-type.
6868
6869 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6870
6871 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6872
6873 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6874 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6875
6876 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6877
6878 * basic-block.h (BB_REACHABLE): Renumber.
6879 (BB_DIRTY, BB_NEW): New flags.
6880 (clear_bb_flags): Declare.
6881 (update_life_info_in_dirty_blocks): Declare.
6882 * cfg.c (clear_bb_flags): New function.
6883 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6884 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6885 reorder_insns, emit_insn_after): Mark block as dirty.
6886 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6887 (update_life_info_in_dirty_blocks): New function.
6888 * recog.c (apply_change_group): Dirtify block.
6889
6890 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6891 cfg consistent.
6892 * gcse.c (delete_null_pointer_checks): Likewise.
6893
6894 * toplev.c (dump_file_index): Move cse2 after bp,
6895 add DFI_null
6896 (dump_file_info): Similary.
6897 (rest_of_compilation): Avoid most of CFG rebuilds;
6898 do first if converision after null pointer checks, do cse2
6899 after branch prediction; avoid full liveness rebuild after
6900 initializing subregs.
6901 * invoke.texi (-d options): Document -du, renumber.
6902
6903 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6904 (notice_new_block): Do not set BB_UPDATE_LIFE.
6905 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6906 merge_blocks_move_successor_nojumps, merge_blocks,
6907 try_crossjump_to_edge): Likewise.
6908 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6909 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6910 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6911 (merge_of_block): Do not use life_data_ok.
6912 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6913 (if_convert): Use BB_DIRTY mechanizm to update life.
6914 * lcm.c (optimize_mode_switching): Update
6915 update_life_info_in_dirty_blocks
6916
6917 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6918
6919 * Makefile.in (integrate.o): Update.
6920 * c-decl.c (copy_lang_decl): Rename.
6921 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6922 * integrate.c: Include langhooks.h.
6923 (copy_decl_for_inlining): Update to use langhook.
6924 * langhooks-def.h (lhd_do_nothing_t,
6925 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6926 (LANG_HOOKS_INITIALIZER): Update.
6927 * langhooks.c (lhd_do_nothing_t): New.
6928 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6929 * tree.h (copy_lang_decl): Remove.
6930 objc:
6931 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6932
6933 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6934
6935 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6936 POST_DEC, and POST_MODIFY.
6937
6938 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6939
6940 * c-typeck.c (digest_init): Remove unused parameter; all
6941 callers changed.
6942
6943 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6944
6945 * expmed.c (expand_shift): Correctly test for low part of a
6946 subreg.
6947
6948 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6949
6950 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6951 insn UIDs with insn addresses.
6952
6953 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6954
6955 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6956 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6957 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6958 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6959 gcc.c, toplev.c: Delete code implementing -traditional mode.
6960
6961 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6962 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6963 Document removal of -traditional mode for compilation, and
6964 remove documentation only relevant to that mode.
6965
6966 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6967 config/convex/convex.h, config/d30v/d30v.h,
6968 config/i386/dgux.h, config/i386/osf1elf.h,
6969 config/i386/osfelf.h, config/i386/osfrose.h,
6970 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6971 config/m68k/hp310.h, config/m88k/dgux.h,
6972 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6973 config/m88k/m88k.h, config/m88k/openbsd.h,
6974 config/mips/abi64.h, config/mips/osfrose.h,
6975 config/mips/svr4-5.h, config/mips/svr4-t.h,
6976 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6977 config/stormy16/stormy16.h: Remove all references to
6978 -traditional from target specs. Delete all mention of the
6979 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6980 delete a couple of commented-out definitions of
6981 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6982 to -traditional.
6983
6984 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6985 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6986
6987 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6988
6989 * mklibgcc.in: Don't use \n in a line subject to
6990 interpretation by echo.
6991
6992 2002-02-27 Graham Stott <grahams@redhat.com>
6993
6994 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6995 Constify NAME.
6996
6997 * loop.c (prescan_loop): Handle PARALLEL.
6998
6999 * unroll.c (loop_iterations): Return 0 if the add_val for
7000 a BIV is REG.
7001
7002 * final.c (output_operand_lossage): Constify PFX_STR.
7003
7004 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7005
7006 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
7007
7008 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7009 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7010
7011 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
7012
7013 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7014
7015 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
7016
7017 * cpplex.c (_cpp_lex_token): Handle directives in macro
7018 arguments.
7019 * cpplib.c (_cpp_handle_directive): Save and restore state
7020 if parsing macro args when entering a directive.
7021 * cppmacro.c (collect_args): No need to handle directives
7022 in macro arguments.
7023 (enter_macro_context, replace_args): Use the original macro
7024 definition in case it was redefined whilst collecting arguments.
7025 doc:
7026 * cpp.texi: Update.
7027
7028 2002-02-26 David Edelsohn <edelsohn@gnu.org>
7029
7030 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7031 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7032 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7033 method on AIX.
7034 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7035 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7036 (load_toc_v4_PIC_2): Same.
7037
7038 2002-02-26 Alan Modra <amodra@bigpond.net.au>
7039
7040 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7041
7042 2002-02-26 Richard Henderson <rth@redhat.com>
7043
7044 * config/alpha/alpha.md (ashldi_se): Re-enable.
7045
7046 2002-02-26 Richard Henderson <rth@redhat.com>
7047
7048 * config/alpha/alpha.c (alpha_encode_section_info): Examine
7049 MODULE_LOCAL_P; improve commentary.
7050
7051 2002-02-26 Zack Weinberg <zack@codesourcery.com>
7052
7053 * doc/cpp.texi: Clarify documentation of relationship between
7054 #line and #include.
7055
7056 2002-02-26 Kazu Hirata <kazu@hxi.com>
7057
7058 * config/h8300/h8300-protos.h: Update the prototype for
7059 compute_logical_op_length. Add the prototype for
7060 compute_logical_op_cc.
7061 * config/h8300/h8300.c (compute_logical_op_length): Figure out
7062 code from operands.
7063 (compute_logical_op_cc): New.
7064 * config/h8300/h8300.md: Combine all the logical op patterns
7065 in HImode and SImode. Use compute_logical_op_cc.
7066
7067 2002-02-26 Kelley Cook <kelleycook@comcast.net>
7068
7069 * config/i386/i386.c (print_operand): Don't append ATT-style
7070 length suffixs to x87 opcodes when in Intel mode.
7071
7072 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
7073
7074 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7075 (init_emit_once): Update calls.
7076 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7077 (init_syntax_once): Prototype.
7078
7079 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7080
7081 * pa-linux.h (LIB_SPEC): Update definition.
7082 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7083
7084 2002-02-26 Richard Henderson <rth@redhat.com>
7085
7086 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7087 if we emitted a stop bit.
7088
7089 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7090
7091 * configure.in (libgcc_visibility): Substitute.
7092 * configure: Rebuilt.
7093 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7094 defined symbols .hidden.
7095
7096 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7097
7098 * attribs.c (c_common_attribute_table): Add visibility.
7099 (handle_visibility_attribute): New function.
7100 * varasm.c (assemble_visibility): New function.
7101 * output.h (assemble_visibility): Add prototype.
7102 * tree.h (MODULE_LOCAL_P): Define.
7103 * crtstuff.c (__dso_handle): Use visibility attribute.
7104 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
7105 for MODULE_LOCAL_P symbols too.
7106 * config/ia64/ia64.c (ia64_encode_section_info): Handle
7107 MODULE_LOCAL_P symbols the same way as local symbols.
7108 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
7109 into .sdata/.sbss by the user.
7110 * doc/extend.texi (Function Attributes): Document visibility
7111 attribute.
7112
7113 2002-02-26 Jakub Jelinek <jakub@redhat.com>
7114
7115 PR debug/5770
7116 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7117 STRING_CST initializer spanning the whole variable without
7118 embedded zeros.
7119 If expand_expr returned MEM, don't use it.
7120
7121 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
7122
7123 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7124 generate a die for the lexical block.
7125
7126 2002-02-26 Kazu Hirata <kazu@hxi.com>
7127
7128 * config/h8300/h8300-protos.h: Add a prototype for
7129 compute_logical_op_length.
7130 * config/h8300/h8300.c (compute_logical_op_length): New.
7131 * config/h8300/h8300.md (anonymous logical patterns): Use
7132 compute_logical_op_length for length.
7133
7134 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7135
7136 * dwarf2out.c (modified_type_die): Do not call type_main_variant
7137 for vectors.
7138 (gen_type_die): Same.
7139
7140 * attribs.c (handle_vector_size_attribute): Set debug information.
7141
7142 2002-02-26 Daniel Egger <degger@fhm.edu>
7143
7144 * config/rs6000/rs6000.md: Swap define_insn attributes to
7145 fix incorrect generation of merge high instructions instead
7146 of merge low.
7147
7148 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7149
7150 * c-typeck.c (really_start_incremental_init): Use
7151 bitsize_zero_node for vectors.
7152
7153 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
7154
7155 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7156 ("*set_vrsave_internal"): Same.
7157
7158 2002-02-25 Richard Henderson <rth@redhat.com>
7159
7160 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7161 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
7162
7163 2002-02-25 Jakub Jelinek <jakub@redhat.com>
7164
7165 PR target/5755
7166 * config/i386/i386.c (ix86_return_pops_args): Only pop
7167 fake structure return argument if it was passed on the stack.
7168
7169 2002-02-25 Jason Merrill <jason@redhat.com>
7170
7171 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7172 RESULT_DECL.
7173
7174 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7175
7176 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
7177 link with shared_name only.
7178 * doc/invoke.texi (Link Options): Document new behavior.
7179
7180 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7181
7182 * c-typeck.c (push_init_level): Handle vectors.
7183
7184 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
7185
7186 * config/sparc/sparc.c (const64_high_operand): Zero-extend
7187 operands of SPARC_SETHI_P.
7188 (input_operand): Likewise.
7189 (sparc_emit_set_const32): Likewise.
7190 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
7191 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
7192 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
7193 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
7194 (movdi_insn_sp64_vis): Likewise.
7195 (movdi split, movdf split): Use SETHI32.
7196 * doc/md.texi: Document SPARC constraints L, M and N.
7197
7198 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
7199
7200 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7201 ("*set_vrsave_internal"): use mfspr for Darwin.
7202
7203 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7204 gen_get_vrsave_internal.
7205
7206 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7207
7208 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7209
7210 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
7211
7212 * cpplex.c (cpp_interpret_charconst): Get signedness or
7213 otherwise of wide character constants correct.
7214 * cppexp.c (lex): Get signedness of wide charconsts correct.
7215
7216 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7217
7218 * optabs.c (widen_operand): Only call convert_modes for
7219 promoted SUBREG if signedness matches.
7220 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7221
7222 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7223
7224 * cpplib.c (glue_header_name): Use local buffer to build up
7225 header name.
7226
7227 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7228
7229 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7230
7231 2002-02-23 Kazu Hirata <kazu@hxi.com>
7232
7233 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7234 H8/300[HS] separately.
7235 * config/h8300/h8300.md: Remove the early clobber constraint
7236 from bit field patterns.
7237
7238 2002-02-23 Kazu Hirata <kazu@hxi.com>
7239
7240 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7241 register_operand.
7242 (mulhisi3): Likewise.
7243 (umulqisi3): Likewise.
7244 (umulhisi3): Likewise.
7245
7246 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
7247
7248 * cppinit.c (output_deps): Correct test for stdout output.
7249 (init_dependency_output): Cure warning.
7250
7251 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7252
7253 * expr.c (store_expr): When converting expression to promoted
7254 equivalent type, allow using SUBREG_REG of TARGET as the target
7255 of the expansion of EXP.
7256 * loop.c (basic_induction_var, case SUBREG): Always look inside.
7257 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7258 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7259 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7260 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7261
7262 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
7263
7264 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7265 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7266 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7267
7268 2002-02-23 Jakub Jelinek <jakub@redhat.com>
7269
7270 PR optimization/5747
7271 * loop.c (scan_loop): Update reg info if move_movables created new
7272 pseudos.
7273
7274 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7275
7276 * gcc.c (init_gcc_spec): Revert last change.
7277
7278 2002-02-23 David Edelsohn <edelsohn@gnu.org>
7279
7280 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7281 gpc_reg_operand constraint.
7282
7283 2002-02-23 Alan Modra <amodra@bigpond.net.au>
7284
7285 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7286 Simplify comparison of `low'.
7287 (add_operand): Fix formatting.
7288 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7289 (mask_operand): Disallow mask to wrap in 64-bit mode.
7290 (rs6000_stack_info): Remove redundant test setting push_p.
7291 (output_toc): Fix formatting.
7292 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7293 cc_reg_not_cr0_operand constraint.
7294 (booldi3, boolcdi3 splitters): Same.
7295
7296 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
7297
7298 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7299
7300 2002-02-22 David Edelsohn <edelsohn@gnu.org>
7301
7302 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7303 gcc invoked with -shared-libgcc.
7304
7305 2002-02-22 Jakub Jelinek <jakub@redhat.com>
7306
7307 PR c++/5748
7308 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7309 decl if any of elements was TREE_USED.
7310
7311 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
7312
7313 * config/sparc/sol2.h: Don't include sys/mman.h.
7314 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7315 (arith_4096_operand): Don't throw high bits away.
7316 (const64_operand): Take sign extension of CONST_INTs into account.
7317 (const64_high_operand, sparc_emit_set_const32): Likewise.
7318 (GEN_HIGHINT64): Likewise.
7319 (sparc_emit_set_const64_quick1): Likewise.
7320 (const64_is_2insns): Likewise.
7321 (print_operand): Use trunc_int_for_mode for sign extension.
7322 * config/sparc/sparc.h (SMALL_INT32): Likewise.
7323 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7324 chars. Assume CONST_INT is already properly sign-extended.
7325 (movdi split): Sign-extend each SImode part.
7326 (andsi3 split): Don't mask high bits off, so that result
7327 remains properly sign-extend.
7328 (iorsi3 split): Likewise.
7329 (xorsi3 split): Likewise.
7330
7331 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
7332
7333 * fold-const.c (fold): Fix typo in comments.
7334
7335 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7336
7337 * Makefile.in (langhooks.o): Update dependencies.
7338
7339 2002-02-21 Diego Novillo <dnovillo@redhat.com>
7340
7341 * langhooks.c: Include flags.h.
7342
7343 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
7344
7345 * testsuite/gcc.dg/attr-alwaysinline.c: New.
7346
7347 * c-common.c (c_common_post_options): Set inline trees by
7348 default.
7349
7350 * doc/extend.texi (Function Attributes): Document always_inline
7351 attribute.
7352 Update documentation about inlining when not optimizing.
7353
7354 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7355
7356 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7357 unless DECL_ALWAYS_INLINE.
7358
7359 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7360 unless DECL_ALWAYS_INLINE.
7361 (c_disregard_inline_limits): Disregard if always_inline set.
7362
7363 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7364 Disregard if always_inline set.
7365 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7366 unless DECL_ALWAYS_INLINE.
7367
7368 * attribs.c (handle_always_inline_attribute): New.
7369 (c_common_attribute_table): Add always_inline.
7370
7371 * config/rs6000/altivec.h: Add prototypes for builtins
7372 requiring the always_inline attribute.
7373
7374 2002-02-21 Eric Christopher <echristo@redhat.com>
7375
7376 * expmed.c (store_bit_field): Try to simplify the subreg
7377 before generating a new one when when the mode size of
7378 value is less than maxmode.
7379
7380 2002-02-21 Richard Henderson <rth@redhat.com>
7381
7382 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7383 than gen_rtx_PLUS to form the sum.
7384 * explow.c (force_reg): Rearrange to not allocate new pseudo
7385 when force_operand returns a register.
7386 * expr.c (expand_assignment): Allow offset_rtx expansion to
7387 return a sum. Do not force addresses into registers.
7388 (expand_expr): Likewise.
7389 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7390 to canonicalize arithmetic that didn't simpify.
7391 (simplify_plus_minus): New argument force; update
7392 all callers. Don't split CONST unless we can do something with it,
7393 and wouldn't lose the constness of the operands.
7394
7395 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7396 that we generated earlier.
7397
7398 2002-02-21 Tom Tromey <tromey@redhat.com>
7399
7400 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7401 (output_line_info): Use constant `1', with a long explanatory
7402 comment.
7403 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7404
7405 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
7406
7407 * jump.c (redirect_jump): If old label has no UID, don't try to
7408 delete it.
7409
7410 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
7411
7412 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7413 If input is constant, do shifts at compile time.
7414
7415 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
7416
7417 * doc/extend.texi: Fix some more overfull hboxes.
7418
7419 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7420
7421 PR optimization/4994
7422 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7423 register moves.
7424
7425 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7426
7427 PR c++/4574
7428 * expr.h (expand_and): Add mode argument.
7429 * expmed.c (expand_and): Add mode argument.
7430 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7431 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7432 * except.c (expand_builtin_extract_return_addr): Likewise.
7433 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7434 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7435 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7436 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7437 * config/c4x/c4x.md: Use GEN_INT (x) instead of
7438 gen_rtx (CONST_INT, VOIDmode, x).
7439
7440 2002-02-21 Jakub Jelinek <jakub@redhat.com>
7441
7442 PR c/4697:
7443 * stmt.c (warn_if_unused_value): Move side effects test once more.
7444
7445 2002-02-20 Torbjorn Granlund <tege@swox.com>
7446
7447 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7448 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7449
7450 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
7451
7452 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7453 SUBREG or ZERO_EXTEND.
7454
7455 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
7456
7457 * sh.h (current_function_anonymous_args): Remove.
7458 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7459 of current_function_varargs and current_function_stdarg is set.
7460 * sh.c (sh_expand_prologue): Check current_function_varargs /
7461 current_function_stdarg / TARGET_SH5 instead of
7462 current_function_anonymous_args.
7463
7464 * sh64.h (TARGET_VERSION): Define.
7465
7466 2002-02-20 David Edelsohn <edelsohn@gnu.org>
7467
7468 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7469 VRSAVE_REGNO on TARGET_ALTIVEC.
7470
7471 2002-02-20 Alan Modra <amodra@bigpond.net.au>
7472
7473 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7474 bits of SImode const_int.
7475 (includes_rshift_p): Likewise.
7476 (print_operand): Call mask_operand and mask64_operand with correct
7477 mode.
7478 (rs6000_output_function_epilogue): Pad traceback table to word.
7479 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7480 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7481 mask64_operand with correct mode.
7482 (FUNCTION_ARG_REGNO_P): Correct parentheses.
7483
7484 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7485
7486 PR debug/4461
7487 * varasm.c (get_pool_constant_mark): New.
7488 * rtl.h (get_pool_constant_mark): Add prototype.
7489 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7490 be represented if it has not been output.
7491
7492 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7493
7494 * combine.c (do_SUBST): Sanity check substitutions of
7495 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7496 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7497 CONST_INT into its operand.
7498 (known_cond): Likewise, for ZERO_EXTEND.
7499 * simplify-rtx.c (simplify_unary_operation): Fix condition to
7500 allow for simplification of wide modes. Reject CONST_INTs in
7501 ZERO_EXTEND when their actual mode is not given.
7502
7503 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
7504
7505 * c-decl.c (pushdecl): If no global declaration is found for an
7506 extern declaration in block scope, try a limbo one.
7507
7508 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7509
7510 PR c++/4401
7511 * c-common.c (pointer_int_sum): Moved from...
7512 * c-typeck.c (pointer_int_sum): ...here.
7513 * c-common.h (pointer_int_sum): Add prototype.
7514
7515 2002-02-20 Jakub Jelinek <jakub@redhat.com>
7516
7517 PR c++/5713
7518 * c-decl.c (duplicate_decls): Return 0 if issued error about
7519 redeclaration.
7520
7521 2002-02-20 Roger Sayle <roger@eyesopen.com>
7522 Jakub Jelinek <jakub@redhat.com>
7523
7524 PR c/4389
7525 * tree.c (host_integerp): Ensure that the constant integer is
7526 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7527 when pos is zero or non-zero respectively. Clarify comment.
7528 * c-format.c (check_format_info_recurse): Fix host_integerp
7529 usage; the pos argument should be zero when assigning to a
7530 signed HOST_WIDE_INT.
7531
7532 2002-02-20 Richard Henderson <rth@redhat.com>
7533
7534 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7535 of the operand, rather than assuming TImode.
7536 (ix86_expand_binop_builtin): Cope with commutative patterns
7537 using nonimmediate_operand for both operands.
7538 (ix86_expand_timode_binop_builtin): Likewise.
7539 (ix86_expand_store_builtin): Validate operand 1.
7540 (ix86_expand_unop1_builtin): Likewise.
7541
7542 2002-02-20 Philip Blundell <philb@gnu.org>
7543
7544 PR 5705
7545 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7546
7547 2002-02-20 Richard Henderson <rth@redhat.com>
7548
7549 PR c/5615
7550 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7551
7552 2002-02-20 Tom Tromey <tromey@redhat.com>
7553
7554 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7555 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7556 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7557 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7558 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7559 unconditionally.
7560
7561 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7562
7563 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7564 for (const_int 0) in X not just INTVAL.
7565
7566 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
7567
7568 * doc/extend.texi: Avoid or reduce overfull hboxes.
7569
7570 2002-02-20 Diego Novillo <dnovillo@redhat.com>
7571
7572 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7573 operations if the field does not start at a mode boundary.
7574
7575 2001-02-20 Joel Sherrill <joel@OARcorp.com>
7576
7577 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7578 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7579 Also done for -Acpu and -Amachine.
7580
7581 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
7582
7583 * cppinit.c (init_dependency_output): Take deps output file
7584 from -o if none given with -MF. Suppress normal output.
7585 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7586 * doc/cpp.texi, doc/invoke.texi: Update.
7587
7588 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7589
7590 * toplev.c (output_quoted_string): Write unprintable
7591 characters with octal escapes.
7592
7593 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7594
7595 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7596 really_call_used[VRSAVE_REGNO] if not Altivec.
7597
7598 2002-02-19 Alan Modra <amodra@bigpond.net.au>
7599
7600 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7601 MODE_MASK.
7602 (constant_pool_expr_1): Fix formatting.
7603 (rs6000_legitimize_reload_address): Likewise.
7604
7605 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7606
7607 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7608 now that we have one.
7609
7610 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7611
7612 * tree.h (struct tree_common): Remove aux. Add unused_0 at
7613 end of first block of bitfields (which was only seven bits);
7614 rename dummy to unused_1; remove comment which is no longer true.
7615
7616 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7617
7618 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7619
7620 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7621
7622 PR 5399
7623 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7624 if generating PIC.
7625
7626 PR 5054
7627 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7628 arm_is_longcall_p rather than inspecting call-type cookie
7629 directly.
7630 (call_value_insn) [TARGET_THUMB]: Likewise.
7631
7632 2002-02-19 Graham Stott <grahams@redhat.com>
7633
7634 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7635
7636 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7637
7638 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7639 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7640 (FP_SAVE_INLINE): Delete.
7641
7642 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7643 * config/rs6000/eabi.asm: Remove ABI save restore routines.
7644 * config/rs6000/t-ppccomm: Build crtsavres.o.
7645 * config/rs6000/crtsavres.asm: New file.
7646
7647 2002-02-19 Philip Blundell <philb@gnu.org>
7648
7649 * config/arm/arm.c (use_return_insn): Don't reject interrupt
7650 functions.
7651 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7652 (output_return_instruction): Allow interrupt functions to return with
7653 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
7654 (arm_expand_prologue): Subtract 4 before stacking LR in an
7655 interrupt function.
7656
7657 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7658
7659 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7660 decl, not just FUNCTION_DECL.
7661 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7662 (arm_assemble_integer): Likewise.
7663 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7664 marked local.
7665
7666 2002-02-19 matthew green <mrg@eterna.com.au>
7667
7668 * config.gcc (sparc-*-netbsdelf*): Enable target.
7669 (sparc64-*-netbsd*): New target.
7670 * config/sparc/netbsd-elf.h: New file.
7671 * config/sparc/t-netbsd64: New file.
7672
7673 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7674
7675 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7676
7677 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
7678
7679 * doc/invoke.texi: explicitly list the style guidelines that
7680 -Weffc++ checks for.
7681
7682 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
7683
7684 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7685
7686 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
7687
7688 PR other/5718
7689 * gcc.c (cpp_unique_options): Treat -o as indicating object file
7690 only if not -E. If -E, pass -o through to the preprocessor.
7691
7692 2002-02-19 Kazu Hirata <kazu@hxi.com>
7693
7694 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7695 register number with an appropriate macro.
7696
7697 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7698
7699 * doc/rtl.texi (Constants): Close @code tag.
7700
7701 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7702
7703 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7704 ("mmx_uavgv4hi3"): Same.
7705 ("pmulhrwv4hi3"): Same.
7706
7707 * tree-inline.c (walk_tree): Handle vectors.
7708
7709 * c-common.c (constant_expression_warning): Handle vectors.
7710 (overflow_warning): Same.
7711
7712 * sched-deps.c (sched_analyze_2): Handle vectors.
7713
7714 * rtlanal.c (rtx_unstable_p): Handle vectors.
7715 (rtx_varies_p): Same.
7716 (count_occurrences): Same.
7717 (regs_set_between_p): Same.
7718 (modified_between_p): Same.
7719 (modified_in_p): Same.
7720 (volatile_insn_p): Same.
7721 (volatile_refs_p): Same.
7722 (side_effects_p): Same.
7723 (may_trap_p): Same.
7724 (inequality_comparisons_p): Same.
7725 (replace_regs): Same.
7726 (computed_jump_p_1): Same.
7727
7728 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7729 argument.
7730 (inner_mode_array): New.
7731 (copy_rtx): Handle vectors.
7732 (copy_most_rtx): Same.
7733 (rtx_equal_p): Same.
7734 (get_mode_alignment): Adjust for vectors.
7735
7736 * resource.c (mark_referenced_resources): Handle vectors.
7737 (mark_set_resources): Same.
7738
7739 * reload1.c (eliminate_regs): Handle vectors.
7740 (elimination_effects): Same.
7741 (scan_paradoxical_subregs): Same.
7742
7743 * reload.c (subst_reg_equivs): Handle vectors.
7744
7745 * regrename.c (scan_rtx): Handle vectors.
7746
7747 * regclass.c (reg_scan_mark_refs): Handle vectors.
7748
7749 * recog.c (find_single_use_1): Handle vectors.
7750
7751 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7752 (contains_replace_regs): Same.
7753 (memref_referenced_p): Same.
7754
7755 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7756 (subst_constants): Same.
7757
7758 * genattrtab.c (attr_copy_rtx): Handle vectors.
7759 (encode_units_mask): Same.
7760 (clear_struct_flag): Same.
7761 (count_sub_rtxs): Same.
7762
7763 * gcse.c (want_to_gcse_p): Handle vectors.
7764 (oprs_unchanged_p): Same.
7765 (hash_expr_1): Same.
7766 (oprs_not_set_p): Same.
7767 (expr_killed_p): Same.
7768 (compute_transp): Same.
7769 (store_ops_ok): Same.
7770
7771 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7772 of vectors.
7773 (fixup_var_refs_1): Same.
7774 (instantiate_virtual_regs_1): Same.
7775
7776 * fold-const.c (operand_equal_p): Handle vectors.
7777 (fold): Same.
7778 (rtl_expr_nonnegative_p): Same.
7779
7780 * flow.c (mark_used_regs): Handle vectors.
7781
7782 * df.c (df_uses_record): Handle vectors.
7783
7784 * cselib.c (cselib_subst_to_values): Handle vectors.
7785 (cselib_mem_conflict_p): Same.
7786 (hash_rtx): Same.
7787
7788 * cse.c (canon_reg): Handle vectors.
7789 (fold_rt): Same.
7790 (cse_process_notes): Same.
7791 (count_reg_usage): Same.
7792 (canon_hash): Same.
7793
7794 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7795
7796 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7797
7798 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7799 (gen_rtx): Handle CONST_VECTOR.
7800 (gen_const_vector_0): New.
7801 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7802 (reset_used_flags): Same.
7803 (copy_insn_1): Same.
7804 (initializer_constant_valid_p): Handle VECTOR_CST.
7805
7806 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7807
7808 * doc/rtl.texi (Constants): Document const_vector.
7809 (CONST0_RTX): Update for vectors.
7810 (RTL sharing): Same.
7811
7812 * print-tree.c (print_node): Add case for VECTOR_CST.
7813
7814 * tree.h (TREE_VECTOR_CST_ELTS): New.
7815 (struct tree_vector): New.
7816 (union tree_node): Add vector node.
7817 (build_vector): Add prototype.
7818
7819 * tree.def (VECTOR_CST): New.
7820
7821 * tree.c (build_vector): New.
7822
7823 * expmed.c (make_tree): Handle CONST_VECTOR.
7824
7825 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7826 (CONST_VECTOR_ELT): New.
7827 (CONST_VECTOR_NUNITS): New.
7828
7829 * machmode.h (GET_MODE_INNER): New.
7830 (DEF_MACHMODE): Accept 8th arg.
7831
7832 * machmode.def: Add 8th argument for vector inner mode.
7833 Add inner vector modes for vectors.
7834
7835 * rtl.def (VEC_CONST): Remove.
7836 (CONST_VECTOR): New.
7837
7838 * expr.c (clear_storage): Allow vectors.
7839 (is_zeros_p): Handle VECTOR_CST.
7840
7841 * varasm.c (output_constant_pool): Handle vectors.
7842 (rtx_const): Add veclo and vechi fields.
7843 (kind): Add RTX_VECTOR.
7844 (decode_rtx_const): Add case for vector.
7845
7846 * config/rs6000/rs6000-protos.h: Add zero_constant.
7847
7848 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7849 constants. Force easy vector constants into memory.
7850 (easy_vector_constant): New.
7851 (emit_easy_vector_constant): New.
7852 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7853 darwin.
7854
7855 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7856 instruction does.
7857 ("altivec_lvxl"): Same.
7858 (altivec_lvebx): Same.
7859 (altivec_lvehx): Same.
7860 (altivec_lvewx): Same.
7861 ("*movv4si_const0"): New.
7862 ("*movv4sf_const0"): New.
7863 ("*movv8hi_const0"): New.
7864 ("*movv16qi_const0"): New.
7865
7866 2002-02-18 Kazu Hirata <kazu@hxi.com>
7867
7868 * config/h8300/h8300.c (notice_update_cc): Use
7869 cc_status.value2.
7870
7871 2002-02-18 Kazu Hirata <kazu@hxi.com>
7872
7873 * config/h8300/h8300.md (divmod patterns): Change the
7874 constraints for operands[1] to register_operand.
7875
7876 2002-02-18 Kazu Hirata <kazu@hxi.com>
7877
7878 * config/h8300/h8300-protos.h: Remove the prototype for
7879 p_operand.
7880 * config/h8300/h8300.c (p_operand): Remove.
7881 * config/h8300/h8300.md: Replace p_operand with
7882 const_int_operand.
7883
7884 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7885
7886 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7887 comment.
7888 (output_return_instruction): Allow use of LDR to unstack
7889 return addresss even for interrupt handlers or when
7890 interworking. If compiling for ARMv5, use interworking-safe
7891 return instructions by default. Remove duplicated code and
7892 lengthy "strcat" sequences.
7893
7894 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7895
7896 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7897 (LINK_EH_SPEC): Define.
7898 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7899
7900 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7901
7902 * config/s390/s390.c (s390_emit_prologue): Do not set the
7903 frame_related flag for call-clobbered registers.
7904
7905 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7906
7907 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7908 (construct_container): Fix handling of SSE operands.
7909 (ix86_expand_builtin): Fix handling of 64bit pointers.
7910 (mmx_maskmovq_rex): New pattern.
7911
7912 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7913
7914 * regrename.c (kill_set_value): Handle subregs properly.
7915
7916 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7917
7918 * objc/objc-act.c (handle_impent): Remove leading '*'
7919 from objc_class_name.
7920
7921 2002-02-17 Richard Henderson <rth@redhat.com>
7922
7923 * config/alpha/alpha.c (some_small_symbolic_operand,
7924 some_small_symbolic_operand_1, split_small_symbolic_operand,
7925 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7926 Handle small SYMBOL_REFs anywhere, not just inside memories.
7927 * config/alpha/alpha-protos.h: Update.
7928 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7929 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7930
7931 2002-02-17 Roland McGrath <roland@frob.com>
7932
7933 * config.gcc (powerpc-*-gnu-gnualtivec*,
7934 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7935 * config/rs6000/gnu.h: New file.
7936 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7937 Grok "gnu" in rs6000_abi_name.
7938 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7939 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7940 Grok -mcall-gnu analogous to -mcall-linux et al.
7941 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7942 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7943 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7944
7945 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR c/3444:
7948 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7949 shortening.
7950
7951 2002-02-17 Philipp Thomas <pthomas@suse.de>
7952
7953 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7954 ENDFILE_SPEC before (re)defining them.
7955
7956 2002-02-17 Kazu Hirata <kazu@hxi.com>
7957
7958 * config/h8300/h8300.c: Fix formatting.
7959 * config/h8300/h8300.h: Likewise.
7960
7961 2002-02-17 Philipp Thomas <pthomas@suse.de>
7962
7963 * doc/tm.texi: Explain why empty strings should not be
7964 marked for translation.
7965
7966 2002-02-17 Philipp Thomas <pthomas@suse.de>
7967
7968 * final.c (output_operand_lossage): Changed to accept
7969 printf style arguments. Change calls where necessary.
7970 * output.h (output_operand_lossage): Change declaration
7971 accordingly. Update copyright.
7972 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7973 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7974 Update copyright date where necessary.
7975
7976 * config/i386/i386.c (print_operand): Likewise. Remove use of
7977 sprintf.
7978
7979 * config/cris/cris.c (cris_operand_lossage): Likewise.
7980 Rename parameter so that exgettext recognizes it as
7981 translatable message.
7982 (LOSE_AND_RETURN): Rename parameter to msgid.
7983
7984 2002-02-17 Kazu Hirata <kazu@hxi.com>
7985
7986 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7987 hard coded register number with an appropriate macro.
7988 (HARD_REGNO_MODE_OK): Likewise.
7989 (ARG_POINTER_REGNUM): Likewise.
7990 (STATIC_CHAIN_REGNUM): Likewise.
7991 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7992 * config/h8300/h8300.md (define_constants): Define more
7993 register numbers.
7994
7995 2002-02-17 Philipp Thomas <pthomas@suse.de>
7996
7997 * config/i386/i386.h: Don't mark empty strings for translation.
7998
7999 2002-02-16 H.J. Lu <hjl@gnu.org>
8000
8001 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8002
8003 2002-02-16 Zack Weinberg <zack@codesourcery.com>
8004
8005 * cppinit.c (merge_include_chains): Check for brack being
8006 NULL before attempting to merge it with qtail.
8007
8008 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8009
8010 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8011 DBX_DEBUG.
8012
8013 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8014
8015 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8016
8017 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8018
8019 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8020 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8021 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8022
8023 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8024
8025 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8026 now only if !TARGET_FIX.
8027 (*movsi_nt_vms_fix): New pattern.
8028
8029 2002-02-16 Douglas B Rupp <rupp@gnat.com>
8030
8031 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8032 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8033 (alpha_sa_mask, alpha_sa_size): Reflect above change.
8034 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8035 (alpha_start_function, alpha_expand_epilogue): Likewise.
8036 (unicosmk_gen_dsib): Likewise.
8037
8038 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8039
8040 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8041
8042 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
8043
8044 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8045 check_and_change_labels, s390_final_chunkify): Delete.
8046 (s390_split_branches, s390_chunkify_pool): New functions.
8047 (s390_function_prologue): Call them.
8048
8049 * config/s390/s390.h (S390_REL_MAX): Delete.
8050 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8051
8052 * config/s390/s390.md (cjump, icjump, jump): Fix length
8053 attribute calculation.
8054
8055
8056 2002-02-15 David Edelsohn <edelsohn@gnu.org>
8057
8058 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8059 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8060
8061 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8062
8063 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8064 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8065 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8066
8067 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8068
8069 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8070
8071 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
8072
8073 * reload.c (find_dummy_reload): Check that an output register
8074 is valid for its mode.
8075
8076 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
8077
8078 * combine.c (known_cond): After replacing the REG of a SUBREG, try
8079 to simplify it.
8080
8081 * function.c (assign_parms): Demote promoted argument passed by
8082 transparent reference.
8083
8084 2001-02-14 Joel Sherrill <joel@OARcorp.com>
8085
8086 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8087 -Acpu() and -Amachine() to eliminate warnings.
8088
8089 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
8090
8091 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8092
8093 2002-02-14 Kazu Hirata <kazu@hxi.com>
8094
8095 * config/h8300/h8300-protos.h: Update the prototype for
8096 const_costs.
8097 * config/h8300/h8300.c (const_costs): Treat SET as a little
8098 more expensive operation.
8099 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
8100 reference to const_costs.
8101
8102 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
8103
8104 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8105
8106 2002-02-14 Jakub Jelinek <jakub@redhat.com>
8107
8108 PR c/5503:
8109 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8110 use arguments from newtype.
8111
8112 2002-02-13 Eric Christopher <echristo@redhat.com>
8113
8114 * config/mips/mips.c (override_options): Add check for march/mipsX
8115 on the same command line. Fix error message in cpu processing.
8116 Remove architecture and ISA checks.
8117
8118 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8119
8120 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8121
8122 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8123
8124 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
8125
8126 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8127 alternatives.
8128 ("*movv8hi_internal1"): Same.
8129 ("*movv16qi_internal1"): Same.
8130 ("*movv4sf_internal1"): Same.
8131
8132 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8133 not push_reload for altivec modes.
8134
8135 2002-02-13 Joel Sherrill <joel@OARcorp.com>
8136
8137 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
8138 all RTEMS targets including removal of #includes from config/*/rtems*.h
8139 file and adding them to tm_file setting. Added xm_defines=POSIX to
8140 many targets.
8141 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
8142 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
8143 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
8144 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
8145 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
8146 config/m68k/rtemself.h: Ditto.
8147 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
8148 config/mips/rtems64.h: Ditto.
8149 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
8150 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
8151 Ditto.
8152 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
8153 config/sparc/rtemself.h: Ditto.
8154 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
8155 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
8156 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
8157 more like arm-elf.
8158 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
8159 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
8160 target made more similar to i386-elf.
8161 * config/i386/t-rtems-i386: Added soft float support and multilibs.
8162 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
8163 be similar to config/m68k/t-m68kelf.
8164 * gthr-rtems.h: Encapsulate with extern "C" for C++.
8165
8166 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
8167
8168 * regmove.c (kill_value): Handle subregs.
8169
8170 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
8171
8172 * i386.md (mul patterns): Allow memory operand to be first;
8173 add expanders where needed; fix constraints.
8174 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
8175 Allow memory operand to be the first.
8176
8177 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8178 operands.
8179
8180 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8181
8182 PR c/5681:
8183 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8184 GET_MODE (x).
8185
8186 2002-02-13 Jakub Jelinek <jakub@redhat.com>
8187
8188 PR optimization/5547:
8189 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
8190 all valid IA-32 address modes involving non-scaled %ebx and
8191 GOT/GOTOFF as displacement.
8192
8193 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
8194
8195 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8196 after emitting ltorg insns.
8197
8198 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
8199 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
8200 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
8201 *abssf2): Fix "op_type" attribute.
8202
8203 2002-02-13 Douglas B Rupp <rupp@gnat.com>
8204
8205 * mkconfig.sh: Avoid using a subshell redirect.
8206 ($output.T): Change to $(output)T.
8207 (ENABLE_NLS): Remove unneeded undef.
8208
8209 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8210 * config/alpha/x-vms (libsubdir): Define.
8211
8212 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8213 register frame procedures. Optimize retrieving context.
8214
8215 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8216 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8217 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8218
8219 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8220
8221 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8222 Make same change as for find_base_value.
8223
8224 2002-02-13 Kazu Hirata <kazu@hxi.com>
8225
8226 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8227 of QImode and SImode.
8228
8229 2002-02-13 Kazu Hirata <kazu@hxi.com>
8230
8231 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8232 length computation of movsi.
8233 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8234
8235 2002-02-13 Kazu Hirata <kazu@hxi.com>
8236
8237 * config/h8300/h8300.md (subqi3): Tighten the predicate for
8238 operands[2] to register_operand.
8239
8240 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
8241
8242 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8243
8244 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
8245
8246 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8247 for altivec_lvx* and altivec_stvx*.
8248 ("*movv4si_internal"): Add constraint for loading from GPRs.
8249 ("*movv8hi_internal1"): Same.
8250 ("*movv16qi_internal1"): Same.
8251 ("*movv4sf_internal1"): Same.
8252
8253 * config/rs6000/rs6000.c (altivec_register_operand): New.
8254
8255 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8256 altivec_register_operand.
8257
8258 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
8259
8260 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8261 handle SYMBOL_REF.
8262
8263 2002-02-13 Stan Shebs <shebs@apple.com>
8264
8265 * c-typeck.c (digest_init): Handle vectors.
8266 (really_start_incremental_init): Same.
8267 (pop_init_level): Same.
8268 (process_init_element): Same.
8269
8270 * varasm.c (output_constant): Same.
8271
8272 * expr.c (clear_storage): Same.
8273 (store_constructor): Same.
8274
8275 2002-02-12 Eric Christopher <echristo@redhat.com>
8276
8277 * explow.c (hard_function_value): Add comment explaining
8278 signed/unsigned comparison.
8279
8280 2002-02-12 Jakub Jelinek <jakub@redhat.com>
8281
8282 * jump.c (never_reached_warning): Add finish argument.
8283 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8284 real insn after end.
8285 * rtl.h (never_reached_warning): Adjust prototype.
8286 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8287 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8288 never_reached_warning.
8289
8290 2002-02-12 Graham Stott <grahams@redhat.com>
8291
8292 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8293
8294 2002-02-12 Kazu Hirata <kazu@hxi.com>
8295
8296 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8297 logical shifts on H8/300.
8298 (shift_alg_si): Improve several shifts on H8/300.
8299 (get_shift_alg): Likewise.
8300
8301 2002-02-12 Graham Stott <grahams@redhat.com>
8302
8303 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8304
8305 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8306
8307 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8308 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8309
8310 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
8311
8312 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8313 non-CONST_INT through default_assemble_integer.
8314 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8315 <case 8>: Abort for CONST_DOUBLE.
8316
8317 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8318
8319 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8320 is specified.
8321 * config/pa/pa-linux.h (LIB_SPEC): Delete.
8322 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8323
8324 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
8325
8326 * config/stormy16/stormy16.md (zero_extendqihi2): New.
8327
8328 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
8329
8330 * regrename.c (regrename_optimize): Don't accept a
8331 part-clobbered register if the replaced register is not part
8332 clobbered.
8333
8334 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8335 take padding into account when computing the argument value.
8336
8337 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8338
8339 * combine.c (try_combine): Apply substitutions in
8340 CALL_INSN_FUNCTION_USAGE too.
8341
8342 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
8343
8344 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8345 __builtin_altivec_abs*.
8346 (bdesc_abs): New.
8347
8348 * config/rs6000/rs6000.h (rs6000_builtins): Add
8349 ALTIVEC_BUILTIN_ABS*.
8350
8351 * config/rs6000/altivec.h: Use const char for builtins expecting
8352 literals.
8353 (vec_abs): New versions for C and C++.
8354 (vec_abss): Same.
8355
8356 2002-02-10 Kazu Hirata <kazu@hxi.com>
8357
8358 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8359 using Pmode.
8360
8361 2002-02-10 Kazu Hirata <kazu@hxi.com>
8362
8363 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8364 constant definition from h8300.md.
8365 (FRAME_POINTER_REGNUM): Likewise.
8366 * config/h8300/h8300.md (define_constants): Add FP_REG.
8367
8368 2002-02-10 Kazu Hirata <kazu@hxi.com>
8369
8370 * config/h8300/h8300.c (print_operand): Remove redundant code.
8371
8372 2002-02-10 Kazu Hirata <kazu@hxi.com>
8373
8374 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8375 * config/h8300/h8300.c (byte_reg): Make it static.
8376
8377 2002-02-10 Richard Henderson <rth@redhat.com>
8378
8379 PR c/5623
8380 * c-typeck.c (incomplete_type_error): Handle flexible array members.
8381
8382 2002-02-10 Richard Henderson <rth@redhat.com>
8383
8384 PR c++/5624
8385 * tree.c (append_random_chars): Don't abort if main_input_filename
8386 does not exist.
8387
8388 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
8389
8390 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8391
8392 2002-02-10 Kazu Hirata <kazu@hxi.com>
8393
8394 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8395 (pushhi1): Likewise.
8396
8397 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
8398
8399 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8400 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8401
8402 2002-02-09 David O'Brien <obrien@FreeBSD.org>
8403
8404 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8405 remove MASK_VIS.
8406 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
8407
8408 2002-02-09 Kazu Hirata <kazu@hxi.com>
8409
8410 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8411 a half of an SImode register on H8/300.
8412
8413 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
8414
8415 * i386.md (movdi_2): Add missing '!'.
8416
8417 2002-02-09 Kazu Hirata <kazu@hxi.com>
8418
8419 * config/h8300/h8300.h: Fix formatting. Remove commented-out
8420 definitions.
8421
8422 2002-02-09 Kazu Hirata <kazu@hxi.com>
8423
8424 * config/h8300/h8300.md (length): Correct the distance valid
8425 for the short branch.
8426
8427 2002-02-09 Kazu Hirata <kazu@hxi.com>
8428
8429 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8430
8431 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8432
8433 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8434 registers in SImode.
8435 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8436 part-clobbered.
8437
8438 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8439 patch.
8440
8441 Contribute sh64-elf.
8442 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
8443 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8444 (sh_cannot_modify_jumps_p): New function.
8445 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8446 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8447 (sh_ms_bitfield_layout_p): New function.
8448 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
8449 Zack Weinberg <zack@codesourcery.com>
8450 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8451 expand_simple_binop instead of expand_binop.
8452 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
8453 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8454 use of .quad and .uaquad.
8455 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8456 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8457 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8458 * config/sh/sh.md (movdi_const, movdi_const_32bit,
8459 movdi_const_16bit): Make sure all CONSTs have modes.
8460 (sym2PIC): Ditto, but by adjusting all callers.
8461 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8462 if the prologue calls the SHmedia argument decoder or register
8463 saver.
8464 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8465 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8466 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8467 (sh_expand_epilogue): Don't emit USE of return target register.
8468 (prepare_move_operands): Legitimize DImode PIC addresses.
8469 (sh_media_register_for_return): Skip tr0, used to initialize the
8470 PIC register.
8471 (sh_expand_prologue): Remove explicit USE of return register.
8472 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
8473 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
8474 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8475 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8476 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8477 EXTRA_CONSTRAINT_T.
8478 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8479 (MOVI_SHORI_BASE_OPERAND_P): New.
8480 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8481 (EXTRA_CONSTRAINT_T): Define in terms of them.
8482 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8483 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8484 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8485 alternatives supporting TARGET_REGS.
8486 (UNSPEC_GOTPLT): New constant.
8487 (movdi split): Move incrementing of LABEL_NUSES...
8488 (movdi_const, movdi_const_32bit): Here. Use
8489 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8490 (movdi_const_16bit): New.
8491 (call, call_value) [flag_pic]: Use GOTPLT.
8492 (call_pop, call_value_pop): New expands.
8493 (call_pop_compact, call_pop_rettramp): New insns.
8494 (call_value_pop_compact, call_value_pop_rettramp): New insns.
8495 (sibcall) [flag_pic]: Use GOT.
8496 (builtint_setjmp_receiver): Remove bogus, unused expand.
8497 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8498 (*pt, *ptb, ptrel): New insns.
8499 (sym2GOT): Handle DImode GOT.
8500 (sym2GOTPLT, symGOTPLT2reg): New expands.
8501 (sym2PIC): New expand.
8502 (shcompact_return_tramp): Use GOTPLT to return trampoline.
8503 (shcompact_return_tramp_i): Use return register explicitly.
8504 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8505 disable flag_reorder_blocks.
8506 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8507 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8508 clobbers, for clarity.
8509 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8510 restoring of r0 in macl as MAYBE_DEAD.
8511 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
8512 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8513 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8514 alter_subreg all over.
8515 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8516 reload, instead of emitting instructions that would require
8517 reloading.
8518 (casesi_load_media): Add missing modes.
8519 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
8520 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8521 as used if the argument decoder is called.
8522 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8523 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8524 Pmode, then extend it to DImode if necessary.
8525 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8526 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8527 constants in FPU-enabled SHmedia, let them be loaded from memory.
8528 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
8529 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8530 Adjust whitespace in assembly output templates.
8531 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
8532 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8533 mode of if_then_else.
8534 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
8535 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8536 sh.h.
8537 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
8538 Joern Rennecke <amylaar@redhat.com>
8539 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8540 (SUBTARGET_CPP_PTR_SPEC): New.
8541 (SUBTARGET_CPP_SPEC): Remove.
8542 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8543 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8544 Fix typo in previous checkin.
8545 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
8546 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8547 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
8548 Alexandre Oliva <aoliva@redhat.com>
8549 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8550 what single FP register can hold for SHmedia target.
8551 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
8552 Alexandre Oliva <aoliva@redhat.com>
8553 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8554 Do not split into SUBREG.
8555 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
8556 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8557 and added new functions as specified in SH5 ABI r9.
8558 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
8559 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8560 8-byte boundary.
8561 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
8562 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8563 gen_consttable_4 and gen_consttable_8. Emit multiple labels
8564 and consttable_window_ends.
8565 2001-06-03 Graham Stott <grahams@redhat,com>
8566 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8567 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
8568 * config/sh/sh.c (print_operand): Handle floating-point pair,
8569 vector and matrix registers.
8570 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8571 vector modes into account.
8572 * config/sh/sh.md (movv2sf): Split move between registers into
8573 movdf.
8574 (movv4sf, movv16sf): Introduce insns that get split only after
8575 reload.
8576 * config/sh/shmedia.h: Fix Copyright dates.
8577 * config/sh/ushmedia.h: Likewise. Move loop counter
8578 declarations into conditionals that uses them.
8579 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8580 loop boundary.
8581 * config/sh/sshmedia.h: Fix Copyright dates.
8582 (sh_media_PUTCFG): Fix constraints.
8583 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
8584 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8585 ptrmemfunc_vbit_in_delta for SH5.
8586 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
8587 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8588 * invoke.texi: Likewise.
8589 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
8590 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8591 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8592 GCC_pop_shmedia_regs_nofpu): New global symbols.
8593 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8594 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8595 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8596 compact function with nonlocal labels.
8597 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8598 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8599 (initial_elimination_offset): Account for their stack space.
8600 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8601 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8602 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8603 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8604 least one of the operands to be a register.
8605 (movv2sf): Likewise. Renamed to movv2sf_i.
8606 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8607 prepare_move_operands() before emitting SHmedia insns.
8608 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
8609 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8610 Don't save nor initialize r12. Don't mis-align the stack.
8611 Pad the code with a nop.
8612 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
8613 stack.
8614 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
8615 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8616 [__SHMEDIA__]: Implement.
8617 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
8618 * config/sh/sh.md: Set latency of `pt' closer to reality.
8619 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8620 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8621 Set move, load and store type attributes.
8622 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8623 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8624 profiling.
8625 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8626 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8627 * config/sh/sh.c (sh_media_register_for_return): New function.
8628 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8629 branch-target register.
8630 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8631 * config/sh/sh.md (return_media_i): Use any call-clobbered
8632 branch-target register.
8633 (return_media): If r18 wasn't copied in the prologue, copy it
8634 here.
8635 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8636 Clear class FP0_REGS.
8637 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8638 from elf.h.
8639 2001-03-08 DJ Delorie <dj@redhat.com>
8640 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8641 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
8642 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8643 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
8644 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8645 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
8646 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8647 return value correctly for call_cookie.
8648 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
8649 * config/sh/crt1.asm (start): Modified so as to call
8650 ___setup_argv_and_call_main.
8651 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
8652 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8653 SHmedia mode.
8654 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
8655 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8656 (STRIP_NAME_ENCODING): Use it.
8657 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
8658 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
8659 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8660 prepare_scc_operands().
8661 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8662 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8663 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
8664 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8665 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
8666 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8667 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8668 used in shcompact_incoming_args.
8669 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8670 change.
8671 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8672 mode.
8673 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8674 Adjust accordingly.
8675 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8676 Simplify. Adjust. Add sanity check.
8677 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8678 FPU_SINGLE_BIT.
8679 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8680 TARGET_SHCOMPACT.
8681 (udivsi3, divsi3): Use them.
8682 (force_mode_for_call): New insn.
8683 (call, call_value, sibcall_value): Emit it before SHcompact
8684 calls.
8685 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
8686 * config/sh/sh.md (call, call_value, sibcall): Make sure the
8687 call cookie is non-NULL before taking its value.
8688 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
8689 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8690 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
8691 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8692 block.
8693 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8694 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8695 temporary for stack adjusts. Use MACL and MACH to pass
8696 arguments to shcompact_incoming_args.
8697 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
8698 clobber r1.
8699 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8700 (nested_trampoline): Load static chain address into r1.
8701 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8702 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8703 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8704 fp_arith_reg_operand().
8705 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8706 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8707 and use signed compares for them.
8708 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8709 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8710 ones properly aligned.
8711 (find_barrier): Account for extra alignment needed for 8-byte wide
8712 constants.
8713 (machine_dependent_reorg): Require a label for the second 4-byte
8714 constant after an 8-byte one.
8715 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8716 change.
8717 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8718 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8719 last_float when switching float modes.
8720 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8721 auto-increment for general-purpose registers.
8722 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8723 result.
8724 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8725 for stack adjust.
8726 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8727 registers for varargs.
8728 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8729 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8730 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8731 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8732 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8733 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8734 call_cookie accordingly.
8735 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8736 (SHCOMPACT_BYREF): Likewise.
8737 (SHCOMPACT_FORCE_ON_STACK): New macro.
8738 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8739 (sh_builtin_saveregs): Likewise.
8740 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8741 shcompact_incoming_args): Use new shift values. Support
8742 sequences of consecutive and non-consecutive pushes/pops.
8743 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8744 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8745 * config/sh/sh.h (TEXT_SECTION): Define.
8746 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8747 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8748 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8749 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8750 return values on FPU-enabled SHmedia.
8751 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8752 FPU-enabled SHmedia.
8753 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8754 value is returned in a non-FP reg and is not returned by
8755 reference.
8756 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8757 jump_ind.
8758 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8759 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8760 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8761 quad-aligned to be passed by callee-copy reference.
8762 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8763 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8764 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8765 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8766 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8767 copying low-numbered FP regs to r7 and r8.
8768 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8769 FP regs to general-purpose regs only if the copy was passed on the
8770 stack.
8771 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8772 copying FP reg to r9.
8773 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8774 copy FP regs to general-purpose regs only in outgoing calls.
8775 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8776 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8777 HOST_WIDE_INT.
8778 * config/sh/sh.h (struct sh_args): Document all fields.
8779 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8780 passed partially on the stack should not consider making
8781 sibcalls.
8782 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8783 stack_regs only for incoming calls. When passing FP args,
8784 make sure there are FP regs available before modifying
8785 call_cookie.
8786 (SHCOMPACT_BYREF): Pass double args in general-purpose
8787 registers by reference.
8788 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8789 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8790 attempt to generate sibcalls if the caller got any arguments
8791 by reference.
8792 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8793 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8794 to 8-byte boundaries.
8795 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8796 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8797 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8798 stored in the stack.
8799 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8800 for the offsets to have the ISA bit set.
8801 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8802 invocation. Use beq instead of bgt to mark end of sequence of
8803 loads.
8804 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8805 bgt to mark end of sequence of stores.
8806 * config/sh/sh.c (arith_operand): Don't check whether
8807 CONST_OK_FOR_J for now.
8808 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8809 instead of long for conversion.
8810 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8811 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8812 before passing it to fprintf.
8813 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8814 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8815 Call set_fpscr before reading/writing SR.
8816 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8817 Call set_fpscr.
8818 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8819 SHmedia code.
8820 (FMOVD_WORKS): Define on SH5 with FPU.
8821 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8822 setting.
8823 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8824 _fpscr_values.
8825 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8826 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8827 address.
8828 (ia_main_table): Ditto.
8829 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8830 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8831 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8832 the definitions from sh.h.
8833 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8834 TARGET_SH5.
8835 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8836 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8837 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8838 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8839 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8840 Increment LABEL_NUSES.
8841
8842 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8843 TARGET_SH5.
8844 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8845 defined.
8846 * config/sh/elf.h (SIZE_TYPE): Likewise.
8847 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8848 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8849 shcompact_incoming_args): Load switch table addresses using
8850 datalabel.
8851 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8852 (NO_BUILTIN_SIZE_TYPE): Define.
8853 (SIZE_TYPE): Don't define.
8854 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8855 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8856 definition of __SH5__=32 for -m5-compact-nofpu.
8857 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8858 ADDR_DIFF_VEC.
8859 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8860 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8861 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8862 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8863 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8864 (INSN_LENGTH_ALIGNMENT): Likewise.
8865 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8866 * config/sh/sh.md (call, call_value, sibcall): Simplify
8867 copying of non-branch-target register.
8868 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8869 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8870 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8871 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8872 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8873 floating-point values as structs.
8874 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8875 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8876 general-purpose register.
8877 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8878 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8879 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8880 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8881 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8882 (ENCODE_SECTION_INFO): Enclose variables and constants in
8883 DATALABEL unspecs.
8884 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8885 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8886 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8887 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8888 only for LABEL_REFs. For SYMBOL_REFs, prepend
8889 SH_DATALABEL_ENCODING to the symbol name.
8890 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8891 convert_mode().
8892 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8893 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8894 UNSPEC_DATALABEL.
8895 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8896 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8897 (DATALABEL_REF_P): Don't require CONST.
8898 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8899 REL label.
8900 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8901 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8902 right.
8903 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8904 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8905 Use shallow_copy_rtx and PUT_MODE to change the mode of
8906 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8907 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8908 on SHmedia using GENERAL_REGs.
8909 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8910 bltu_media_i): Fix reversion of conditions.
8911 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8912 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8913 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8914 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8915 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8916 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8917 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8918 (GCC_nested_trampoline): Likewise.
8919 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8920 * config/sh/sh.c (gen_datalabel_ref): Define.
8921 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8922 (INITIALIZE_TRAMPOLINE): Likewise.
8923 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8924 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8925 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8926 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8927 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8928 (ic_invalidate): Adjust for SH5.
8929 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8930 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8931 _nested_trampoline.
8932 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8933 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8934 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8935 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8936 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8937 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8938 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8939 * config/sh/sh.c (target_reg_operand): Match only target-branch
8940 registers and pseudos that aren't virtual registers.
8941 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8942 Copy operands that don't match target_reg_operand to pseudos.
8943 (call_media, call_value_media, sibcall_media): Use
8944 target_reg_operand instead of target_operand.
8945 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8946 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8947 * config/sh/sh.c (target_reg_operand): Match hardware registers
8948 other than branch-target registers.
8949 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8950 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8951 (fpscr_values) [SH5 == 32]: Define.
8952 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8953 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8954 Handle function addresses coming in SUBREGs.
8955 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8956 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8957 shcompact_return_trampoline): Use datalabel where appropriate.
8958 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8959 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8960 general-purpose register to copy one branch-target register to
8961 another.
8962 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8963 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8964 SYMBOL_REFs with VOIDmode.
8965 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8966 bltu_media_i): New insns.
8967 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8968 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8969 (INIT_CUMULATIVE_ARGS): Likewise.
8970 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8971 * machmode.def (V16SFmode): New mode.
8972 * c-common.c (type_for_mode): Support V2SF and V16SF.
8973 * tree.c (build_common_tree_nodes_2): Likewise.
8974 * tree.h (tree_index): Likewise.
8975 * calls.c (emit_call_1): Take args_so_far. Adjust all
8976 callers. Introduce CALL_POPS_ARGS.
8977 * tm.texi (CALL_POPS_ARGS): Document.
8978 * config/sh/crt1.asm: Implement in SHmedia mode.
8979 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8980 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8981 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8982 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8983 Implement divsi and udivsi in SHmedia mode. Introduce
8984 SHcompact trampolines.
8985 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8986 only in SHmedia64.
8987 (regno_reg_class): Rewrite.
8988 (fp_reg_names): Remove.
8989 (sh_register_names, sh_additional_register_names): New.
8990 (print_operand): Added `u'. Support SUBREGs in addresses.
8991 Add parentheses around shifted CONSTs.
8992 (output_file_start): Output .mode and .abi directives.
8993 (shiftcosts, addsubcosts, multcosts): Adjust.
8994 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8995 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8996 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8997 bytes, not registers. Take into account the need for the
8998 SHcompact incoming args trampoline. Adjust all callers.
8999 (sh_expand_prologue): Take stack_regs into account. Call
9000 incoming args trampoline. Keep stack aligned as per SH5 ABI.
9001 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
9002 stack aligned as per SH5 ABI.
9003 (sh_builtin_saveregs): Support SH5 ABI.
9004 (sh_build_va_list, sh_va_start): Likewise.
9005 (initial_elimination_offset): Take alignment into account.
9006 Compute location of PR according to the SH5 stack frame.
9007 (arith_reg_operand): Reject branch-target registers.
9008 (shmedia_6bit_operand): New.
9009 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9010 (target_reg_operand): Match DImode only. Accept SUBREGs.
9011 (target_operand): New.
9012 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9013 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
9014 SIBCALL_REGS for SHmedia.
9015 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9016 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9017 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9018 (TARGET_SWITCHES): New SH5 flags.
9019 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
9020 VALID_REGISTER_P to disable unsupported registers.
9021 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9022 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9023 (FUNCTION_ARG_PADDING): Define.
9024 (FASTEST_ALIGNMENT): Adjust.
9025 (SH_REGISTER_NAMES_INITIALIZER): New.
9026 (sh_register_names): Declare.
9027 (DEBUG_REGISTER_NAMES): Define.
9028 (REGISTER_NAMES): Define based on sh_register_names.
9029 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9030 (sh_additional_register_names): Declare.
9031 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9032 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9033 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9034 (REGISTER_NATURAL_MODE): Define.
9035 (FIRST_PSEUDO_REGISTER): Adjust.
9036 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9037 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9038 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9039 (VECTOR_MODE_SUPPORTED_P): Define.
9040 (REG_CLASS_CONTENTS): Adjust.
9041 (SMALL_REGISTER_CLASSES): Adjust.
9042 (REG_ALLOC_ORDER): Adjust.
9043 (INDEX_REG_CLASS): Adjust.
9044 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9045 (CONST_OK_FOR_LETTER_P): Adjust.
9046 (PREFERRED_RELOAD_CLASS): Adjust.
9047 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9048 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9049 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9050 (FIRST_FP_PARM_REG): Adjust.
9051 (CALL_POPS_ARGS): Define.
9052 (FUNCTION_ARG_REGNO_P): Adjust.
9053 (struct sh_args): New fields.
9054 (GET_SH_ARG_CLASS): Adjust.
9055 (INIT_CUMULATIVE_ARGS): Adjust.
9056 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9057 (FUNCTION_ARG_ADVANCE): Adjust.
9058 (FUNCTION_ARG): Adjust.
9059 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9060 (FUNCTION_ARG_CALLEE_COPIES): Define.
9061 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9062 (STRICT_ARGUMENT_NAMING): Define.
9063 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9064 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9065 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9066 (SETUP_INCOMING_VARARGS): Adjust.
9067 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9068 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9069 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9070 (SUBREG_OK_FOR_INDEX_P): Adjust.
9071 (EXTRA_CONSTRAINT_S): Update.
9072 (EXTRA_CONSTRAINT_T): New.
9073 (EXTRA_CONSTRAINT): Adjust.
9074 (GO_IF_LEGITIMATE_INDEX): Adjust.
9075 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9076 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9077 (MOVE_MAX): Adjust.
9078 (MAX_MOVE_MAX): Define.
9079 (Pmode): Adjust.
9080 (CONST_COSTS): Adjust.
9081 (REGISTER_MOVE_COST): Adjust.
9082 (BRANCH_COST): Adjust.
9083 (TEXT_SECTION_ASM_OP): Adjust.
9084 (DBX_REGISTER_NUMBER): Adjust.
9085 (ASM_OUTPUT_DOUBLE_INT): New.
9086 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
9087 (PREDICATE_CODES): Adjust.
9088 (PROMOTE_MODE): Adjust.
9089 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
9090 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
9091 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
9092 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
9093 (DR0_REG, DR2_REG, DR4_REG): Renumber.
9094 (TR0_REG, TR1_REG, TR2_REG): New.
9095 (XD0_REG): Renumber.
9096 (UNSPEC_COMPACT_ARGS): New.
9097 (type): Added pt and ptabs.
9098 (length): Default to 4 on SHmedia. Default pt length to 12
9099 and 20 on SHmedia32 and SHmedia64, respectively.
9100 (pt): New function unit.
9101 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
9102 Add whitespace between operands of SHmedia instructions.
9103 (movdicc): Fix.
9104 (adddi3_media, addsi3_media): Adjust constraints.
9105 (subsi3) [SHmedia]: Force operand 1 into a register.
9106 (udivsi3_i1_media, udivsi3_i4_media): New.
9107 (udivsi3): Support SHmedia.
9108 (divsi3_i1_media, divsi3_i4_media): New.
9109 (divsi3): Support SHmedia.
9110 (anddi3, iordi3, xordi3): Adjust constraints.
9111 (zero_extendhidi2, zero_extendqidi2): New.
9112 (extendsidi2, extendhidi2, extendqidi2): New.
9113 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
9114 (pop_e, pop_fpul, pop_4): Likewise.
9115 (movsi_media): Support FP and BT registers.
9116 (movsi_media_nofpu): New. Adjust splits to DImode.
9117 (lduw, ldub): Renamed to zero_extend* above.
9118 (movqi_media): Fix typo.
9119 (movdi_media): Support FP and BT registers.
9120 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
9121 (movdi_const_32bit): New.
9122 (shori_media): Require immediate operand. Use `u' for output.
9123 (movdf_media, movsf_media): Simplified.
9124 (movdf_media_nofpu, movsf_media_nofpu): New.
9125 (movdf, movsf): Adjust
9126 (movv2sf, movv2sf, movv16sf): New.
9127 (beq_media, beq_media_i): Adjust constraints. Don't use
9128 scratch BT register.
9129 (bne_media, bne_media_i): Likewise.
9130 (bgt_media, bgt_media_i): Likewise.
9131 (bge_media, bge_media_i): Likewise.
9132 (bgtu_media, bgtu_media_i): Likewise.
9133 (bgeu_media, bgeu_media_i): Likewise.
9134 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
9135 bunordered): Emit jump insn. Force operands to registers when
9136 needed.
9137 (jump_media, jump): Simplify.
9138 (call_compact, call_compact_rettramp): New.
9139 (call_value_compact, call_value_compact_rettramp): New.
9140 (call_media, call_value_media): Simplify.
9141 (sibcall_compact, sibcall_media): New.
9142 (call, call_value): Adjust for SHmedia and SHcompact.
9143 (sibcall, sibcall_value, untyped_call): Likewise.
9144 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
9145 (indirect_jump): Adjust for SHmedia.
9146 (casesi_jump_media): New.
9147 (nop): Re-enable for SHmedia.
9148 (call_site): Restrict to SH1.
9149 (casesi): Adjust for SHmedia.
9150 (casesi_shift_media, casesi_load_media): New.
9151 (return): Explicitly use PR register. Call return trampoline
9152 on SHcompact.
9153 (return_i): Explicitly use PR register.
9154 (shcompact_return_tramp, shcompact_return_tramp_i): New.
9155 (return_media): Adjust.
9156 (shcompact_incoming_args): New.
9157 (epilogue): Adjust.
9158 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9159 (movstrsi): Disable on SH5.
9160 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
9161 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
9162 (subsf3, subsf3_media): Likewise.
9163 (mulsf3, mulsf3_media, mac_media): Likewise.
9164 (divsf3, divsf3_media): Likewise.
9165 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
9166 (floatsisf2, fux_truncsfsi2): Likewise.
9167 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
9168 constraints.
9169 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
9170 (cmpunsf_media, cmpsf): Likewise.
9171 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
9172 (abssf2, abssf2_media): Likewise.
9173 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
9174 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
9175 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
9176 (floatsidf2, fix_truncdfsi2): Likewise.
9177 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
9178 constraints.
9179 (cmpeqdf_media, cmpgtdf_media): Likewise.
9180 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
9181 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
9182 (absdf2, absdf2_media): Likewise.
9183 (extendsfdf2, extendsfdf2_media): Likewise.
9184 (truncsfdf2, truncsfdf2_media): Likewise.
9185 * config/sh/sh64.h: New file.
9186 * config/sh/t-sh64: New file.
9187 * config/sh/shmedia.h: New file.
9188 * config/sh/ushmedia.h: New file.
9189 * config/sh/sshmedia.h: New file.
9190 * configure.in: Added sh64-*-elf.
9191 * configure: Rebuilt.
9192 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
9193 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
9194 (reg_class_from_letter): Use `b' for TARGET_REGS.
9195 (print_operand): Support `%M', `%m', `AND' and
9196 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
9197 (andcosts): Adjust for SHmedia.
9198 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
9199 Likewise.
9200 (target_reg_operand): New function.
9201 * config/sh/sh-protos.h (target_reg_operand): Declare.
9202 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
9203 FP registers on SH5.
9204 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9205 on SH4.
9206 (TARGET_REGISTER_P): New macro.
9207 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9208 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9209 (EXTRA_CONSTRAINT_S): New macro.
9210 (EXTRA_CONSTRAINT): Adjust.
9211 (FLOAT_TYPE_SIZE): Define to 32.
9212 (Pmode): DImode on SHmedia.
9213 (CONST_COSTS): Adjust for SHmedia literals.
9214 (PREDICATE_CODES): Added target_reg_operand.
9215 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9216 * config/sh/sh.md: Remove all attrs from SHmedia insns.
9217 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9218 (cmpdi): Accept SHmedia.
9219 (movdicc_false, movdicc_true): New insns.
9220 (movdicc): New expand.
9221 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9222 no_new_pseudos.
9223 (addsi3_media): Match `S' constraint.
9224 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9225 (negdi2): Expand for SHmedia.
9226 (one_cmpldi2): New expand.
9227 (zero_extendsidi2): Change from expand to insn.
9228 (extendsidi2): Add constraints.
9229 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
9230 LD/ST address. Fix SI immediate loading split.
9231 (movhi_media, movqi_media, lduw, ldub): New insns.
9232 (movhi, movqi): Accept SHmedia.
9233 (shori_media, movdi_media): Relax input constraints. Split
9234 symbolic constants.
9235 (movdf_media, movsf_media): New insn. New split to movdi.
9236 (movdf, movsf): Match on SHmedia.
9237 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9238 bgeu_media): New insns and splits. New insns with `_i' suffix.
9239 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9240 (bunordered): New expand.
9241 (jump_compact): Renamed from `jump'.
9242 (jump_media): New insn.
9243 (jump): New expand.
9244 (call_media, call_value_media): New insns.
9245 (call, call_value): Adjust.
9246 (indirect_jump_compact): Renamed from `indirect_jump'.
9247 (indirect_jump_media): New insn.
9248 (indirect_jump): New expand.
9249 (untyped_call, return): Accept SHmedia.
9250 (return_media): New insn.
9251 (prologue, epilogue, blockage): Accept SHmedia.
9252 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9253 (sunordered): New expand.
9254 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9255 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9256 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9257 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9258 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9259 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9260 abssf2_media): New insns.
9261 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9262 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9263 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9264 floatdidf2, floatsidf2_media, fix_truncdfdi2,
9265 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9266 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9267 absdf2_media): New insns.
9268 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9269 (extendsfdf2_media, truncdfsf2_media): New insns.
9270 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9271 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9272 * config/sh/sh.h (CONST_OK_FOR_J): Document.
9273 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9274 * config/sh/sh.md (adddi3): New expand.
9275 (adddi3_media, adddi3z_media): New insns.
9276 (adddi3_compact): Renamed from adddi3.
9277 (addsi3_media): Use add.l r63 to add constant zero.
9278 (subdi3): New expand.
9279 (subdi3_media): New insn.
9280 (subdi3_compact): Renamed from subdi3.
9281 (mulsidi3): New expand.
9282 (mulsidi3_media): New insn.
9283 (mulsidi3_compact): Renamed from mulsidi3.
9284 (umulsidi3): New expand.
9285 (umulsidi3_media): New insn.
9286 (umulsidi3_compact): Renamed from umulsidi3.
9287 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9288 (ashlsi3, ashrsi3, lshrsi3): Use them.
9289 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9290 (ashldi3, ashrdi3, lshrdi3): Use them.
9291 (zero_extendsidi2): New expand.
9292 (extendsidi2): New insn.
9293 (movsi_media): New insn. Split to movdi to load constants.
9294 (movsi): Enable for shmedia.
9295 (movdi_media): New insn. Use shori_media to load wide constants.
9296 (short_media): New insn.
9297 (movdi): Enable for shmedia.
9298 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9299 * config/sh/sh.h (CPP_SPEC): Added `m5'.
9300 (SUBTARGET_CPP_SPEC): Added `!m5'.
9301 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9302 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
9303 to all other SH variants.
9304 (TARGET_DEFAULT): Set to SH1_BIT.
9305 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9306 (BITS_PER_WORD): Raise to 64 on shmedia.
9307 (MAX_BITS_PER_WORD): Change to 64.
9308 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9309 (INT_TYPE_SIZE): Keep as 32.
9310 (UNITS_PER_WORD): Raise to 8 on shmedia.
9311 (MIN_UNITS_PER_WORD): Keep as 4.
9312 (POINTER_SIZE): Raise to 64 on shmedia.
9313 (CONST_OK_FOR_J): New macro.
9314 (CONST_OK_FOR_LETTER_P): Use it.
9315 (processor_type): Add PROCESSOR_SH5.
9316 * config/sh/sh.md: Conditionalize all expands, insns and
9317 splits to TARGET_SH1.
9318 (cpu): Added sh5.
9319 (addsi3_compact): Renamed from...
9320 (addsi3): Now an expand.
9321 (addsi3_media, subsi3_media): New insns.
9322 (subsi3): Don't negate constants with SHmedia.
9323
9324 * hooks.c: New file.
9325 * hooks.h: New file.
9326 * Makefile.in (HOOKS_H): New.
9327 (TARGET_DEF_H): Added $(HOOKS_H).
9328 (OBJS): Added hooks.o.
9329 (cfgcleanup.o, bb-reorder.o): Added target.h.
9330 (hooks.o): Added dependencies.
9331 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9332 (TARGET_INITIALIZER): this.
9333 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9334 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9335 * bb-reorder.c: Include target.h.
9336 (reorder_basic_blocks): Skip if cannot modify jumps.
9337 * cfgcleanup.c: Include target.h.
9338 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9339
9340 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9341
9342 * config/mips/mips.md (casesi_internal, casesi_internal_di):
9343 Protect jump delay slot instructions with .set noreorder and
9344 .set nomacro.
9345
9346 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9347
9348 * config/mips/mips.md (casesi_internal_di): Calculate
9349 the index into the target offset table correctly.
9350
9351 2002-02-08 Richard Henderson <rth@redhat.com>
9352
9353 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9354 * final.c (output_addr_const): Accept and discard SUBREG.
9355 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9356 mark them unknown instead.
9357 (simplify_subtraction): Handle RTX_UNKNOWN.
9358 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9359
9360 2002-02-08 David Edelsohn <edelsohn@gnu.org>
9361
9362 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9363
9364 2002-02-08 Richard Henderson <rth@redhat.com>
9365
9366 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9367
9368 2002-02-08 Andreas Jaeger <aj@suse.de>
9369
9370 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9371 * config/i386/t-linux64: New file.
9372
9373 2002-02-08 Jakub Jelinek <jakub@redhat.com>
9374
9375 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9376 * c-parse.in (compstmt): Clear last_expr_type.
9377
9378 2002-02-07 Richard Henderson <rth@redhat.com>
9379
9380 * loop.c (strength_reduce): Sink final_value when not
9381 eliminating a biv.
9382
9383 2002-02-07 David O'Brien <obrien@FreeBSD.org>
9384
9385 * config/sparc/freebsd.h: Fix mismatched spec {.
9386
9387 2002-02-07 Richard Henderson <rth@redhat.com>
9388
9389 * cfgrtl.c: Include recog.h and insn-config.h.
9390 (keep_with_call_p): Fix general_operand invocation.
9391 * Makefile.in (cfgrtl.o): Update dependencies.
9392
9393 2002-02-07 Kazu Hirata <kazu@hxi.com>
9394
9395 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9396 comment. Accept HImode only if TARGET_H8300.
9397
9398 2002-02-07 Eric Christopher <echristo@redhat.com>
9399
9400 * config/mips/crtn.asm: Cleanup #ifdefs.
9401
9402 2002-02-07 Eric Christopher <echristo@redhat.com>
9403
9404 * config/mips/crti.asm: Add changes for mips16. mips16 uses
9405 register 7 as RA instead of $31.
9406 * config/mips/crtn.asm: Ditto.
9407 * config/mips/mips.c (mips_move_2words): Add case for
9408 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9409 (compute_frame_size): Fix typo.
9410 (save_restore_insns): Ditto. Make documentation about using
9411 register $7 as return register more precise.
9412 (mips_expand_epilogue): Fix comment. Add code to work around not
9413 being able to add to the stack pointer directly.
9414 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9415 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9416 epilogue.
9417
9418 2002-02-07 Tom Rix <trix@redhat.com>
9419
9420 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9421 immediates in ldu and stdu DS opcode field.
9422 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9423 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9424 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9425
9426 2002-02-07 Jeff Sturm <jsturm@one-point.com>
9427
9428 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9429 offset for stack bias.
9430
9431 2002-02-07 H.J. Lu <hjl@gnu.org>
9432
9433 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9434
9435 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
9436
9437 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9438
9439 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
9440
9441 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9442 * i386.c (x86_order_regs_for_local_alloc): New global function.
9443 * i386.h (REG_ALLOC_ORDER): CLeanup.
9444 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9445
9446 2002-02-07 Richard Henderson <rth@redhat.com>
9447
9448 PR optimization/2463
9449 * alias.c (find_base_value): Recall base values for fixed hard regs.
9450 * loop.c (loop_regs_update): Don't use single_set on non-insns.
9451
9452 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
9453
9454 * config/mips/mips.md (define_delay) [mips16]: Adjust required
9455 length.
9456
9457 2002-02-06 Richard Henderson <rth@redhat.com>
9458
9459 PR c/5609
9460 * stmt.c (resolve_operand_name_1): Take more care with mixed
9461 named and unnamed operands.
9462
9463 2002-02-06 Janis Johnson <janis187@us.ibm.com>
9464 Jan Hubicka <jh@suse.cz>
9465
9466 * loop.c (remove_constant_addition): Avoid clobbering a shared
9467 CONST expression.
9468
9469 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9470
9471 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9472 * config/s390/t-linux64: New file.
9473 * config/s390/libgcc-glibc.ver: New file.
9474
9475 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
9476
9477 * config/s390/linux64.h: Delete file.
9478 * config/s390/s390x.h: New file.
9479 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9480 as target header file.
9481 * config/s390/linux.h (TARGET_VERSION): Define depending on
9482 DEFAULT_TARGET_64BIT.
9483 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9484 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9485 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9486 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9487 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9488 (EXTRA_SPEC): New define.
9489 * config/s390/s390.h (TARGET_VERSION): Define depending on
9490 DEFAULT_TARGET_64BIT.
9491 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9492
9493 2002-02-06 Jason Merrill <jason@redhat.com>
9494
9495 * c-decl.c (finish_function): Warn about a non-void function with
9496 no return statement and no abnormal exit.
9497 (current_function_returns_abnormally): New variable.
9498 (start_function): Clear it.
9499 (struct c_language_function): Add returns_abnormally.
9500 (push_c_function_context): Save it.
9501 (pop_c_function_context): Restore it.
9502 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9503 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9504 an explicit return type.
9505 * c-tree.h: Declare current_function_returns_abnormally.
9506 (C_FUNCTION_IMPLICIT_INT): New macro.
9507 * c-typeck.c (build_function_call): Set it.
9508 (c_expand_return): Set current_function_returns_value even if the
9509 value is erroneous.
9510
9511 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9512
9513 PR c/5420:
9514 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9515 unsafe for reevaluation.
9516
9517 2002-02-06 Jakub Jelinek <jakub@redhat.com>
9518
9519 PR c/5482:
9520 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9521 EXPR_STMT, but COMPOUND_STMT, recurse into it.
9522
9523 2002-02-06 Richard Henderson <rth@redhat.com>
9524
9525 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9526 be a general_operand. Dest for function value must be a pseudo.
9527
9528 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9529
9530 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9531 as SYMBOL_REFs from the constant pool.
9532
9533 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
9534
9535 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9536 passed by invisible reference.
9537
9538 2002-02-05 Richard Henderson <rth@redhat.com>
9539
9540 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9541
9542 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
9543
9544 Implement using "base addresses" in insn operands as default.
9545 * config/mmix/mmix.c (mmix_conditional_register_usage): if
9546 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9547 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9548 used to read the rtx value.
9549 (mmix_target_asm_function_epilogue): Fix spacing.
9550 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9551 (mmix_legitimate_address): Ditto.
9552 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9553 should be loaded with a GETA insn. Don't allocate needless extra
9554 char for nul termination and fix misleading comment.
9555 (mmix_print_operand_address): Handle constants if
9556 TARGET_BASE_ADDRESSES.
9557 (mmix_output_register_setting): Use base addressing if
9558 TARGET_BASE_ADDRESSES and the number of insns is 3.
9559 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9560 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9561 to use R as constraint, add LDA to match s.
9562 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9563 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9564 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9565 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9566 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9567 order with other fixed registers.
9568 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9569 other parameter/call-clobbered registers.
9570 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9571 -mbase-addresses, -mno-base-addresses.
9572 (MMIX Options): Ditto.
9573
9574 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9575
9576 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9577
9578 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
9579
9580 * config/rs6000/altivec.h: Change elem to _S_elem.
9581
9582 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9583
9584 * config/netbsd.h (WCHAR_TYPE): Define.
9585 (WCHAR_TYPE_SIZE): Ditto.
9586 (WINT_TYPE): Ditto.
9587 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9588 (WCHAR_UNSIGNED): Ditto.
9589 (WCHAR_TYPE_SIZE): Ditto.
9590 (WINT_TYPE): Ditto.
9591 * config/arm/netbsd.h: Likewise.
9592 * config/i386/netbsd-elf.h: Likewise.
9593 * config/i386/netbsd.h: Likewise.
9594 * config/m68k/netbsd-elf.h: Likewise.
9595 * config/m68k/netbsd.h: Likewise.
9596 * config/ns32k/netbsd.h: Likewise.
9597 * config/sparc/netbsd.h: Likewise.
9598 * config/vax/netbsd.: Likewise.
9599
9600 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9601
9602 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9603 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
9604 (TARGET_INITIALIZER): this.
9605 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9606 (BITFIELD_NBYTES_LIMITED): Markup fix.
9607 * tree.h (default_ms_bitfield_layout_p): Declare.
9608 (record_layout_info): Added prev_field.
9609 * tree.c (default_ms_bitfield_layout_p): New fn.
9610 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9611 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9612 * stor-layout.c: Include target.h.
9613 (start_record_layout): Initialize prev_field.
9614 (place_field): Handle MS bit-field layout, and disregard
9615 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9616 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
9617 * Makefile.in (stor-layout.o): Adjust dependencies.
9618
9619 2002-02-05 Jason Merrill <jason@redhat.com>
9620
9621 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9622
9623 2002-02-05 Andreas Jaeger <aj@suse.de>
9624
9625 * crtstuff.c: Fix comments.
9626
9627 2002-02-05 Richard Henderson <rth@redhat.com>
9628
9629 PR fortran/3393
9630 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9631 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9632
9633 PR fortran/3392
9634 * config/mips/mips.c (function_arg): Handle TImode.
9635 (function_arg_advance): Likewise.
9636
9637 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9638
9639 * config/rs6000/altivec.h (vec_step_help): Rename to
9640 __vec_step_help.
9641
9642 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9643
9644 * config/rs6000/altivec.h: Fix typos.
9645
9646 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9647
9648 * config/arm/netbsd.h: Correct a comment.
9649
9650 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9651
9652 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9653 building void typed builtins.
9654
9655 * config/rs6000/altivec.h (vec_ld*): Fix typos.
9656 (vec_step): Implement for C++.
9657
9658 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9659
9660 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9661
9662 2002-02-04 Richard Henderson <rth@redhat.com>
9663
9664 * combine.c (nonzero_bits): Re-introduce special case for
9665 sp/fp/ap wrt REGNO_POINTER_ALIGN.
9666
9667 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9668
9669 * doc/extend.texi: Warn about unsupported usage of altivec
9670 builtins.
9671
9672 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9673 (altivec_predicate_*): New.
9674
9675 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9676 Add C++ version of vec_*() functions.
9677
9678 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9679 (bdesc_2arg): Remove altivec predicates.
9680 (altivec_expand_builtin): Handle predicates.
9681 (altivec_init_builtins): Handle predicates.
9682 (altivec_expand_predicate_builtin): New.
9683
9684 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9685
9686 * pa.c (DO_FRAME_NOTES): Move forward.
9687 (store_reg): Revise handling of frame notes.
9688 (load_reg): Likewise.
9689 (set_reg_plus_d): Likewise.
9690 (hppa_expand_prologue): Likewise.
9691 (hppa_expand_epilogue): Likewise.
9692
9693 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9694
9695 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9696
9697 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9698
9699 PR c/4475, c++/3780:
9700 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9701 * c-common.h (SWITCH_TYPE): Define.
9702 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9703 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9704 Rename spareness variable to sparseness.
9705 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9706 if non-NULL instead of TREE_TYPE (orig_index).
9707 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9708 (expand_end_case): Define using expand_end_case_type.
9709 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9710 to expand_end_case_type.
9711 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9712
9713 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9714
9715 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9716 (BIGGEST_ALIGNMENT): Change to 128.
9717
9718 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9719
9720 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9721
9722 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9723
9724 * pa.md (call_internal_reg_64bit): Remove unused variable.
9725
9726 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9727
9728 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9729 field.
9730 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9731 * config/arm/arm.c (current_function_anonymous_args): Delete,
9732 replace uses with cfun->machine->uses_anonymous_args.
9733 (arm_reorg): Do not reset uses_anonymous_args.
9734
9735 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9736 any geenral register.
9737
9738 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9739
9740 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9741 the entry block.
9742
9743 2002-02-04 Richard Henderson <rth@redhat.com>
9744
9745 * combine.c (force_to_mode): Remove STACK_BIAS code.
9746 (nonzero_bits): Likewise. Replace sp/fp special case with
9747 REGNO_POINTER_ALIGN.
9748
9749 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9750 (HARD_FRAME_POINTER_REGNUM): New.
9751 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9752 (FIXED_REGS, CALL_USED_REGS): Update.
9753 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9754 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9755 (HARD_REGNO_NREGS): Update for SFP.
9756 (STACK_POINTER_OFFSET): Include bias here ...
9757 (FIRST_PARM_OFFSET): ... not here.
9758 (STACK_BIAS): Remove.
9759 (INIT_EXPANDERS): New.
9760 (STARTING_FRAME_OFFSET): Do not include bias.
9761 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9762 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9763 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9764 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9765 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9766 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9767 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9768 (MUST_SAVE_REGISTER): Likewise.
9769 (sparc_flat_function_prologue): Likewise.
9770 (sparc_flat_function_epilogue): Likewise.
9771 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9772 (sparc_init_modes): SFP is GENERAL_REGS.
9773 (sparc_builtin_saveregs): SFP does not have bias applied.
9774
9775 2002-02-04 Richard Henderson <rth@redhat.com>
9776
9777 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9778 current_function_is_thunk.
9779 (alpha_sa_mask): Distinguish between current_function_is_thunk
9780 called from ASM_OUTPUT_MI_THUNK and not.
9781 (alpha_does_function_need_gp): Thunks always need gp.
9782 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9783 (alpha_output_mi_thunk_osf): New.
9784 * config/alpha/alpha-protos.h: Update.
9785 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9786
9787 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9788
9789 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9790 function types, not when they're taken away.
9791
9792 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9793
9794 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9795 CODE_LABEL and jump table when replacing a table jump with a
9796 simple jump.
9797
9798 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9799
9800 * config/s390/s390-protos.h (legitimize_la_operand,
9801 s390_secondary_input_reload_class, s390_plus_operand,
9802 s390_expand_plus_operand): Add prototypes.
9803
9804 config/s390/s390.c (s390_secondary_input_reload_class,
9805 s390_plus_operand, s390_expand_plus_operand): New functions.
9806
9807 (struct s390_address): New member 'pointer'.
9808 (s390_decompose_address): Compute it.
9809 (legitimate_la_operand_p): Use it.
9810 (legitimize_la_operand): New function.
9811 (movti, movdi, movdf splitters): Call it.
9812
9813 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9814 (PREDICATE_CODES): Add s390_plus_operand.
9815
9816 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9817 (la_ccclobber): Allow GENERAL_REGS as output operand.
9818
9819 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9820 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9821 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9822
9823 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9824
9825 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9826 register names for regular asm () construct.
9827
9828 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9829
9830 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9831 registers.
9832
9833 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9834
9835 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9836 pat for recog.
9837
9838 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9839
9840 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9841 constant pool to be identical by string address and index.
9842
9843 2002-02-04 Anthony Green <green@redhat.com>
9844
9845 * output.h (SECTION_OVERRIDE): Define.
9846 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9847
9848 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9849
9850 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9851 by existing arm*-*-netbsd* (a.out) target.
9852 (ns32k-*-netbsdelf*): Likewise.
9853 (sparc-*-netbsdelf*): Likewise.
9854 (vax-*-netbsdelf*): Likewise.
9855
9856 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9857
9858 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9859 headers and libobjc headers.
9860
9861 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9862
9863 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9864 (_mingw.h): Remove duplicate include.
9865
9866 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * config.gcc: Set cpu_type to m68k for 68010, as well.
9869 (m68010-*-netbsdelf*): New...
9870 (m68k*-*-netbsdelf*): ...targets.
9871 * config/m68k/netbsd-elf.h: New file.
9872
9873 2002-02-02 Kazu Hirata <kazu@hxi.com>
9874
9875 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9876
9877 2002-02-02 Kazu Hirata <kazu@hxi.com>
9878
9879 * config/h8300/h8300.c (h8_push_ops): Move inside
9880 h8300_init_once.
9881 (h8_pop_ops): Likewise.
9882 (h8_move_ops): Likewise.
9883
9884 2002-02-02 Kazu Hirata <kazu@hxi.com>
9885
9886 * config/h8300/h8300.c (os_task): Make it static.
9887 (monitor): Likewise.
9888 (pragma_saveall): Likewise.
9889
9890 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9891
9892 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9893 constant is a valid sign-extension for Pmode.
9894
9895 2002-02-02 Kazu Hirata <kazu@hxi.com>
9896
9897 * config/h8300/h8300.c: Fix formatting.
9898
9899 2002-02-02 Kazu Hirata <kazu@hxi.com>
9900
9901 * config/h8300/h8300.md: Fix formatting.
9902
9903 2002-02-02 Kazu Hirata <kazu@hxi.com>
9904
9905 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9906 predicates of operands[1]. Split the patterns for each
9907 processor variant.
9908
9909 2002-02-02 Kazu Hirata <kazu@hxi.com>
9910
9911 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9912 of operands[1] to register_operand.
9913
9914 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9915
9916 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9917 * cpphash.c (_cpp_init_hashtable): Similarly.
9918 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9919 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9920 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9921 (cpp_handle_option): Handle the new options.
9922 * cpplex.c (cpp_interpret_charconst): Use new flag.
9923 * cpplib.h (struct cpp_options): New member signed_char.
9924 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9925 (cpp_options): Handle -fsigned-char and -funsigned-char.
9926 (static_specs): Remove signed_char_spec.
9927 (do_spec1): Don't handle %c.
9928 * system.h: Poison SIGNED_CHAR_SPEC.
9929 * tradcif.y (yylex): Use flag_signed_char.
9930 * tradcpp.h (flag_signed_char): New.
9931 * tradcpp.c (flag_signed_char): New.
9932 (main): Handle new command-line options.
9933 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9934 config:
9935 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9936 * avr/avr.h: Remove old comments.
9937 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9938 (CC1_SPEC): Pass -fsigned-char if -mic*.
9939 (SIGNED_CHAR_SPEC): Remove.
9940 doc:
9941 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9942
9943 2002-02-01 Eric Christopher <echristo@redhat.com>
9944
9945 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9946 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9947 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9948 (ASM_OUTPUT_REG_POP): Ditto.
9949
9950 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9951
9952 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9953 patch.
9954
9955 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9956
9957 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9958
9959 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9960
9961 PR c/5304:
9962 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9963 unconditionally.
9964
9965 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9966
9967 * cfganal.c: Include tm_p.h.
9968 (keep_with_call_p): Fix the test that determines if a register holds
9969 the return value of a call.
9970
9971 2002-02-01 DJ Delorie <dj@redhat.com>
9972
9973 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9974 we are given conflicting registers, switch to the other one we
9975 had allocated for us.
9976 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9977 as TImode so we know when the "other" register is available.
9978
9979 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9980
9981 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9982 sparc/sparc_bi.h.
9983
9984 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9985
9986 * cfganal.c (keep_with_call_p): New function.
9987 (flow_call_edges_add): Prevent splitting a block between a call and
9988 a single-set instruction that should be kept in the same block.
9989
9990 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9991
9992 * doc/install.texi (avr): Update outdated URL.
9993
9994 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9995
9996 * config/stormy16/stormy16.md (pushqi): New.
9997 (popqi): New.
9998 (pushhi): New.
9999 (pophi): New.
10000 (movhi): Remove stack operands.
10001 (movqi): Likewise.
10002 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10003 nonimmediate_nonstack_operand.
10004 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10005 New.
10006 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10007 New.
10008
10009 2002-01-31 Jason Merrill <jason@redhat.com>
10010
10011 * Makefile.in (c-parse.c): Handle .output file.
10012 * objc/Make-lang.in (objc-parse.c): Likewise.
10013
10014 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
10015
10016 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10017 the -me[lb] option is given. Don't output the default flag
10018 twice.
10019
10020 2002-01-31 Zack Weinberg <zack@codesourcery.com>
10021
10022 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10023 the primary source file; this has not been done yet.
10024 * c-decl.c (c_expand_body): Reset input_filename from
10025 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10026
10027 2002-01-31 Kazu Hirata <kazu@hxi.com>
10028
10029 * rtlanal.c (subreg_regno_offset): Do not use
10030 SUBREG_REGNO_OFFSET.
10031 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10032 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10033
10034 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10035
10036 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
10037 version rather than GNATS version in --version output.
10038
10039 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
10040
10041 * ifcvt.c (noce_process_if_block): Make a copy of the destination
10042 when copying back from a temporary.
10043
10044 2002-01-30 Richard Henderson <rth@redhat.com>
10045
10046 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10047 and new_dest are the same.
10048
10049 2002-01-30 Richard Henderson <rth@redhat.com>
10050
10051 PR opt/5076
10052 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10053 * rtl.c (note_insn_name): Update.
10054 * emit-rtl.c (remove_unnecessary_notes): Kill it.
10055 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
10056 to perform loop rotation.
10057 (expand_exit_loop_top_cond): New.
10058 * tree.h (expand_exit_loop_top_cond): Declare it.
10059 * c-semantics.c (genrtl_while_stmt): Use it.
10060 (genrtl_for_stmt): Likewise.
10061
10062 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
10063
10064 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10065 arguments to 64-bit boundaries on 64-bit ABIs.
10066
10067 2002-01-30 Steve Ellcey <sje@cup.hp.com>
10068
10069 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10070
10071 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
10072
10073 * c-decl.c (grokdeclarator): Handle type being a typedef for an
10074 invalid type.
10075
10076 2002-01-30 David O'Brien <obrien@FreeBSD.org>
10077
10078 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10079 * config/sparc/sparc_bi.h: Remove file.
10080 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10081
10082 2002-01-30 Richard Henderson <rth@redhat.com>
10083
10084 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10085
10086 2002-01-30 Zack Weinberg <zack@codesourcery.com>
10087
10088 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10089
10090 2002-01-30 Jason Merrill <jason@redhat.com>
10091
10092 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
10093 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
10094 (reg_save): Use DW_CFA_offset_extended_sf instead.
10095
10096 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10097
10098 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10099
10100 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10101 in cselib_lookup.
10102
10103 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
10104
10105 * rs6000.md ("*call_value_local32"): Remove constraints.
10106 ("*call_value_local64"): Same.
10107 ("*call_value_indirect_nonlocal_aix32"): Same.
10108 ("*call_value_nonlocal_aix32"): Same.
10109 ("*call_value_indirect_nonlocal_aix64"): Same.
10110 ("*call_value_nonlocal_aix64"): Same.
10111 ("*call_value_nonlocal_sysv"): Same.
10112
10113 2002-01-29 Richard Henderson <rth@redhat.com>
10114
10115 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10116
10117 2002-01-29 Richard Henderson <rth@redhat.com>
10118
10119 * expr.c (force_operand): Ignore flag_pic for detecting pic
10120 address loads.
10121 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
10122 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
10123 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
10124 instead of open-coded loop.
10125 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
10126 be fixed when in use.
10127
10128 2002-01-29 Richard Henderson <rth@redhat.com>
10129
10130 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
10131 * sched-rgn.c (propagate_deps): Update them.
10132 * sched-deps.c (sched_analyze_insn): Update them. Flush the
10133 clobbers list when either gets too long.
10134
10135 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10136
10137 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
10138 and INDEX_REGS the same as GENERAL_REGS.
10139 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
10140
10141 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10142
10143 * tree.c (build_nonstandard_integer_type): Correct prototype.
10144
10145 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
10146
10147 * config/s390/s390.md (movstrsico, movstrdix_64,
10148 movstrsix_31): Remove, replace by ...
10149 (movstrdi_short, movstrsi_short, movstrdi_long,
10150 movstrsi_long): ... these. New.
10151 (movstrdi, movstrsi): Adapt.
10152
10153 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
10154 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
10155 Remove unnecessary CC clobber.
10156 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
10157 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
10158
10159 (divmoddi4): Don't partially initialize TImode register.
10160
10161 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
10162
10163 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10164
10165 2002-01-29 Richard Henderson <rth@redhat.com>
10166
10167 * flow.c (print_rtl_and_abort): Remove.
10168 (print_rtl_and_abort_fcn): Remove.
10169 (verify_local_live_at_start): Use dump_bb instead.
10170 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
10171 (verify_wide_reg_1): Return 2 on mode test failure.
10172
10173 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
10174
10175 PR c/3325, c/3326, c/2511, c/3347
10176 * c-decl.c (enum_decl_context): Remove BITFIELD.
10177 (grokdeclarator): Take bitfield width as an input.
10178 Ensure bitfields are given the correct type. Perform
10179 bitfield width validation with build_bitfield_integer_type
10180 rather than waiting for finish_struct.
10181 (grok_typename, grok_typename_in_parm_context, start_decl,
10182 push_parmdecl, grokfield, start_function): Update calls to
10183 grokdeclarator.
10184 (build_bitfield_integer_type): New function.
10185 (finish_struct): Move bitfield validation to grokdeclarator
10186 and build_bitfield_integer_type.
10187 * tree.c (build_nonstandard_integer_type): New function.
10188 * tree.h (build_nonstandard_integer_type): New prototype.
10189 objc:
10190 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10191
10192 2002-01-29 Jakub Jelinek <jakub@redhat.com>
10193
10194 PR other/1502:
10195 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
10196 don't ignore unrecognized -W* options.
10197 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
10198 * cpplib.h (cpp_handle_option): Adjust prototype.
10199 * c-decl.c (c_decode_options): Pass 0 as last argument to
10200 cpp_handle_option.
10201
10202 PR c/2896:
10203 * gcc.c (cpp_unique_options): Split from cpp_options.
10204 (cpp_options): Source cpp_unique_options.
10205 (default_compilers): Use cpp_unique_options instead of cpp_options
10206 when used together with cc1_options.
10207 (static_specs): Add cpp_unique_options.
10208 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10209 when used together with cc1_options.
10210
10211 2002-01-29 Kazu Hirata <kazu@hxi.com>
10212
10213 * config/h8300/h8300-protos.h: Update the prototype of
10214 output_a_shift.
10215 * config/h8300/h8300.c (output_a_shift): Remove an unused
10216 argument 'insn'. Remove redundant code.
10217 * config/h8300/h8300.md: Adust to the new prototype of
10218 output_a_shift.
10219
10220 2002-01-29 Kazu Hirata <kazu@hxi.com>
10221
10222 * config/h8300/h8300-protos.h: Update the prototypes of
10223 emit_a_rotate and expand_a_rotate.
10224 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10225 first argument to 'enum rtx_code'.
10226 (expand_a_rotate): Likewise.
10227
10228 2002-01-28 Kazu Hirata <kazu@hxi.com>
10229
10230 * config/h8300/h8300-protos.h: Update the prototype of
10231 output_simode_bld.
10232 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10233 'log2'.
10234 * config/h8300/h8300.md: Adjust to the new prototype.
10235
10236 2002-01-28 Kazu Hirata <kazu@hxi.com>
10237
10238 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10239 redundant code.
10240
10241 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10242
10243 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10244 is a fixed register before returning pic_offset_table_rtx.
10245 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10246 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10247
10248 2002-01-28 Jason Merrill <jason@redhat.com>
10249
10250 * dwarf2.h: Sync with src version.
10251
10252 2002-01-28 Paul Koning <pkoning@equallogic.com>
10253
10254 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10255 BT_FN_VOID_PTR_VAR.
10256 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10257 * doc/extend.texi (__builtin_prefetch): Update documentation:
10258 first argument is now const void ptr.
10259
10260 2002-01-28 Kazu Hirata <kazu@hxi.com>
10261
10262 * config/h8300/h8300-protos.h: Remove an unused prototype.
10263
10264 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
10265
10266 * toplev.c (lang_independent_init): Round up identifier size.
10267
10268 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10269
10270 * config.gcc: Revert previous change.
10271
10272 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
10273
10274 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10275
10276 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
10277
10278 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10279 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
10280 other non-elf netbsd config frags.
10281 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10282 collect2 will does that.
10283 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10284 shared-lib frobbing will work.
10285
10286 2002-01-28 Kazu Hirata <kazu@hxi.com>
10287
10288 * config/h8300/h8300.h: Fix formatting.
10289 * config/h8300/h8300.md: Likewise.
10290
10291 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
10292
10293 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10294 the old, removed AAA_standards fix.
10295 * fixinc/fixincl.x: Rebuilt.
10296
10297 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
10298
10299 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10300 atexit call in crtbegin, hooked in after call to frame_dummy;
10301 register EH before registering __fini__start.
10302
10303 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
10304
10305 * config/rs6000/altivec.h: Remove spurious semicolons.
10306
10307 2002-01-27 Kazu Hirata <kazu@hxi.com>
10308
10309 * config/h8300/h8300.md: Replace dead bit extraction patterns
10310 with ones that work.
10311
10312 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10313
10314 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10315 if not STRICT_ALIGNMENT.
10316 * rtl.h (MEM_ALIGN): Likewise.
10317
10318 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
10319
10320 * doc/invoke.texi (-fdump-translation-unit): Revert this
10321 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
10322
10323 2002-01-27 Kazu Hirata <kazu@hxi.com>
10324
10325 * config/h8300/h8300.md (define_constants): New.
10326 (anonymous patterns) Use defined constants appropriately.
10327
10328 2002-01-27 Kazu Hirata <kazu@hxi.com>
10329
10330 * config/h8300/h8300.c (function_arg): Remove redundant code.
10331
10332 2002-01-26 Richard Henderson <rth@redhat.com>
10333
10334 * sched-deps.c (reg_pending_uses_head): New.
10335 (reg_pending_barrier): Rename from reg_pending_sets_all.
10336 (find_insn_list): Don't mark inline.
10337 (find_insn_mem_list): Remove.
10338 (add_dependence_list, add_dependence_list_and_free): New.
10339 (flush_pending_lists): Replace only_write param with separate
10340 for_read and for_write parameters. Update all callers. Use
10341 add_dependence_list_and_free.
10342 (sched_analyze_1): Do not add reg dependencies here; just set
10343 the pending bits. Use add_dependence_list.
10344 (sched_analyze_2): Likewise.
10345 (sched_analyze_insn): Replace schedule_barrier_found with
10346 reg_pending_barrier. Add all dependencies for pending reg
10347 uses, sets, and clobbers.
10348 (sched_analyze): Don't add reg dependencies for calls, just
10349 set pending bits. Use regs_invalidated_by_call. Treat
10350 sched_before_next_call as a normal list, not a fake insn.
10351 (init_deps): No funny init for sched_before_next_call.
10352 (free_deps): Free pending mems lists. Don't zero reg_last.
10353 (init_deps_global): Init reg_pending_uses.
10354 (finish_deps_global): Free it.
10355 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
10356 (find_insn_mem_list): Remove.
10357 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10358 (propagate_deps): Use them. Zero temp mem lists.
10359
10360 2002-01-26 Richard Henderson <rth@redhat.com>
10361
10362 * Makefile.in (CRTSTUFF_CFLAGS): New.
10363 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10364 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10365 crtstuff.c instead of alpha assembly version.
10366 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10367 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
10368 not FORCE_{INIT,FINI}_SECTION_ALIGN.
10369 (__do_global_dtors_aux): Mark used.
10370 (frame_dummy, __do_global_ctors_aux): Mark used.
10371 (fini_dummy, init_dummy): Remove.
10372
10373 * config/alpha/crtbegin.asm: Remove file.
10374 * config/alpha/crtend.asm: Remove file.
10375 * config/alpha/t-crtbe: Remove file.
10376 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10377 (LINK_EH_SPEC): New.
10378
10379 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10380 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
10381 calling constructors.
10382 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10383
10384 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10385 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10386 CRT_END_INIT_DUMMY hack.
10387 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10388 FORCE_{INIT,FINI}_SECTION_ALIGN.
10389
10390 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10391 FORCE_{INIT,FINI}_SECTION_ALIGN.
10392
10393 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10394 invocation sequence.
10395 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10396
10397 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10398 (FORCE_CODE_SECTION_ALIGN): New.
10399
10400 2002-01-26 Richard Henderson <rth@redhat.com>
10401
10402 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10403
10404 2002-01-26 Richard Henderson <rth@redhat.com>
10405
10406 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10407 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10408
10409 2002-01-26 Kazu Hirata <kazu@hxi.com>
10410
10411 * config/h8300/h8300.md: Remove bit extraction patterns that
10412 cannot be triggered.
10413 Restrict each bit extraction pattern to a variant on which the
10414 pattern is tested.
10415
10416 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
10417
10418 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10419
10420 2002-01-26 Kazu Hirata <kazu@hxi.com>
10421
10422 * config/h8300/h8300.md: Remove bit test patterns that cannot
10423 be triggered.
10424 Restrict each bit test pattern to a variant on which the
10425 pattern is tested.
10426
10427 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10428
10429 * builtins.c (expand_builtin_strncat): Remove redundant check for
10430 INTEGER_CST.
10431
10432 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10433
10434 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10435 default setting.
10436 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10437 existing setting.
10438
10439 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10440
10441 * dbxout.c (dbxout_init): Use assemble_name rather than just
10442 stripping off the first character.
10443 (dbxout_source_file): Likewise.
10444
10445 2002-01-25 DJ Delorie <dj@redhat.com>
10446
10447 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10448 using rtx_equal_p, not by comparing pointers.
10449
10450 2002-01-25 Steve Ellcey <sje@cup.hp.com>
10451
10452 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10453 for PIC_OFFSET_TABLE_REGNUM.
10454 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10455
10456 2002-01-25 David O'Brien <obrien@FreeBSD.org>
10457
10458 * config.gcc (x86_64-*-freebsd*): New target.
10459 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10460 value.
10461 (i[34567]86-*-freebsd*): Don't include svr4.h.
10462 * config/i386/freebsd64.h: New file.
10463
10464 2002-01-25 Douglas B Rupp <rupp@gnat.com>
10465
10466 * config/alpha/x-vms (version): Make static.
10467
10468 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10469 in previous checkin.
10470
10471 * Makefile.in (install-headers-cp): New target.
10472 * config.gcc (alpha-dec-*vms*): Install headers with
10473 install-headers-cp
10474
10475 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
10476
10477 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10478 avoid it's copies.
10479
10480 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10481
10482 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10483 of compare_tree_int.
10484 (expand_builtin_strncat): Likewise.
10485 * c-decl.c (finish_struct): Use tree_low_cst.
10486 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10487 * tree.c (compare_tree_int): Likewise.
10488
10489 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
10490
10491 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10492 adjustments even if they are implemented by more than two insns.
10493
10494 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
10495
10496 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10497 * df.h (struct ref): Kill B.
10498 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10499
10500 * basic-block.h (PROP_EQUAL_NOTES): New flag.
10501 * flow.c (propagate_one_insn): Use it.
10502 (mark_used_regs): Handle NIL.
10503
10504 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
10505
10506 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10507 to help folding.
10508
10509 2002-01-25 David Edelsohn <edelsohn@gnu.org>
10510
10511 * rs6000.md (prefetch): Make address V4SI mode so that the address
10512 is restricted to legitimate form for instruction.
10513
10514 2002-01-25 Bob Wilson <bob.wilson@acm.org>
10515
10516 * doc/install.texi (xtensa-*-elf): New target.
10517 (xtensa-*-linux*): New target.
10518 * doc/contrib.texi: Add myself.
10519
10520 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
10521
10522 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10523 purpose register to hold an SImode (or smaller) value.
10524
10525 2002-01-25 Jakub Jelinek <jakub@redhat.com>
10526
10527 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10528 registry only.
10529 * crtstuff.c: Likewise.
10530
10531 2002-01-25 Kazu Hirata <kazu@hxi.com>
10532
10533 * config/h8300/h8300.md (negation patterns): Tighten
10534 predicates to register_operand.
10535
10536 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
10537
10538 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10539 mode, not Pmode.
10540
10541 * builtins.c (expand_builtin_prefetch): Same.
10542
10543 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10544
10545 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10546 modes.
10547
10548 2002-01-24 Kazu Hirata <kazu@hxi.com>
10549
10550 * config/h8300/h8300.c (print_operand): Remove support for
10551 operand character 'A'.
10552 * config/h8300/h8300.md (three anonymous patterns): Replace
10553 operand character 'A' with either 'T' or 'S'.
10554
10555 2002-01-24 Kazu Hirata <kazu@hxi.com>
10556
10557 * config/h8300/h8300.c (print_operand): Remove support for
10558 operand character 'U'.
10559
10560 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
10561
10562 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10563
10564 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
10565
10566 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10567 values to be assigned to the stack pointer.
10568
10569 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10570
10571 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10572 to const_double needs to be done right for big-endian systems.
10573
10574 2002-01-24 Jason Merrill <jason@redhat.com>
10575
10576 PR c++/2432
10577 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10578 to can_throw_internal.
10579
10580 2002-01-23 Richard Henderson <rth@redhat.com>
10581
10582 * fold-const.c (fold): Change UINT_MAX test to check vs precision
10583 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
10584
10585 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10586
10587 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10588 (symGOT2reg): Use them, then set as GOT value as unchanging.
10589 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
10590 as a temporary, if possible.
10591 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
10592 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10593
10594 2002-01-23 Kazu Hirata <kazu@hxi.com>
10595
10596 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10597 accept to accept 0x80 as operands[2].
10598
10599 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10600
10601 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10602
10603 2002-01-23 Richard Henderson <rth@redhat.com>
10604
10605 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10606
10607 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
10608
10609 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10610 (parmlist_or_identifiers_1): Verify that only a parmlist follows
10611 an attribute.
10612
10613 2002-01-23 Richard Henderson <rth@redhat.com>
10614
10615 * expr.c (move_by_pieces_1): Extend size before negation.
10616
10617 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10618 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10619 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10620 * config/m68k/t-m68kelf: Likewise.
10621
10622 2002-01-23 Bob Wilson <bob.wilson@acm.org>
10623
10624 * config/xtensa/elf.h: New file.
10625 * config/xtensa/lib1funcs.asm: New file.
10626 * config/xtensa/lib2funcs.S: New file.
10627 * config/xtensa/linux.h: New file.
10628 * config/xtensa/t-xtensa: New file.
10629 * config/xtensa/xtensa-config.h: New file.
10630 * config/xtensa/xtensa-protos.h: New file.
10631 * config/xtensa/xtensa.c: New file.
10632 * config/xtensa/xtensa.h: New file.
10633 * config/xtensa/xtensa.md: New file.
10634 * config.gcc (xtensa-*-elf*): New target.
10635 (xtensa-*-linux*): New target.
10636 * cse.c (canon_hash): Compare rtx pointers instead of register
10637 numbers. This is required for the Xtensa port.
10638 * integrate.c (copy_insn_list): Handle case where the static
10639 chain is in memory and the memory address has to be copied to
10640 a register.
10641 * doc/invoke.texi (Option Summary): Add Xtensa options.
10642 (Xtensa Options): New node.
10643 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10644
10645 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10646
10647 * diagnostic.c (internal_error): Do ICE suppression only
10648 when ENABLE_CHECKING is not defined.
10649
10650 * c-typeck.c (require_complete_type): Return error_mark_node
10651 if type is error_mark_node.
10652
10653 2002-01-23 Janis Johnson <janis187@us.ibm.com>
10654
10655 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10656 -Os and issue a warning.
10657
10658 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10659
10660 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10661 current (lack of) need for host configuration by hand.
10662
10663 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10664 references. Documentation of some target macros moved from
10665 hostconfig.texi to tm.texi.
10666
10667 2002-01-23 Will Cohen <wcohen@redhat.com>
10668
10669 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10670 defined.
10671
10672 2002-01-23 Kazu Hirata <kazu@hxi.com>
10673
10674 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10675 operand[3].
10676
10677 2002-01-23 Jason Merrill <jason@redhat.com>
10678
10679 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10680
10681 * function.c (assign_parms): Don't put args of inline functions
10682 into registers when not optimizing.
10683
10684 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
10685
10686 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10687 (prologue_use): New pattern.
10688 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10689 preference to gen_rtx_USE.
10690 (thumb_expand_prologue): Use gen_prologue_use in preference to
10691 gen_rtx_USE.
10692 (thumb_expand_epilogue): Use gen_prologue_use in preference to
10693 gen_rtx_USE.
10694
10695 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
10696
10697 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10698
10699 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10700
10701 PR c/3504
10702 * doc/extend.texi: Correct documentation of __alignof__.
10703
10704 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10705
10706 * params.h: Rename arguments of DEFPARAM so that it will be
10707 recognized as a translation keyword.
10708
10709 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10710
10711 * extend.texi: Document altivec functions.
10712 Fix N-bit adjectives in X86 builtin documentation.
10713
10714 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10715
10716 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10717 auto_inc_dec values.
10718
10719 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10720
10721 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10722 after backslash.
10723 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10724
10725 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10726
10727 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10728
10729 2002-01-22 Richard Henderson <rth@redhat.com>
10730
10731 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10732 copy_insn not copy_rtx.
10733
10734 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10735
10736 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10737 "nonzero" as that might add "1" bits. Ensure "constop" is
10738 properly sign extened.
10739 (force_to_mode): Tweak for sign extended constop.
10740
10741 2002-01-22 Richard Henderson <rth@redhat.com>
10742
10743 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10744 for_each_rtx instead of assuming we're already looking at the MEM.
10745 (split_small_symbolic_mem_operand): Likewise.
10746 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10747 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10748
10749 2002-01-22 Richard Henderson <rth@redhat.com>
10750
10751 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10752 sequence number for the literal.
10753 (divmoddi_internal_er): Likewise.
10754
10755 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10756
10757 PR java/4972
10758 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10759 in LIBICONV variable.
10760 * configure: Regenerated.
10761
10762 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10763
10764 * dependence.c (build_def_use): Remove array_idx.
10765
10766 * dwarfout.c (last_filename): Remove.
10767 (output_compile_unit_die): Remove last_filename.
10768
10769 2002-01-22 Roger Sayle <roger@eyesopen.com>
10770 Richard Henderson <rth@redhat.com>
10771
10772 PR opt/3640
10773 * fold-const.c (fold): Optimize unsigned comparisons against
10774 UINT_MAX (and similar unsigned constants).
10775
10776 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10777
10778 * Makefile.in (loop.o): Depend on OPTABS_H.
10779 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10780 against the predicate.
10781
10782 PR target/5379
10783 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10784 for the address operand.
10785
10786 2002-01-22 Richard Henderson <rth@redhat.com>
10787
10788 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10789
10790 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10791
10792 PR other/5450
10793 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10794 preprocessor flags.
10795
10796 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10797
10798 * config.gcc (x86_64-*-netbsd*): New target.
10799 * config/i386/netbsd64.h: New file.
10800
10801 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10802
10803 * regrename.c (kill_value): Fix typo.
10804
10805 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10806
10807 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10808
10809 * config/rs6000/rs6000.h: Same.
10810
10811 * function.c (instantiate_virtual_regs): Remove
10812 STARTING_FRAME_PHASE.
10813 (assign_stack_local_1): Same.
10814 Calculate frame phase.
10815
10816 2002-01-22 Nick Clifton <nickc@redhat.com>
10817
10818 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10819 variable declaration to outer scope in order to simplify
10820 future extensions.
10821 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10822 arm_hard_regno_mode_ok.
10823 * config/arm/arm-protos.h: Add a prototype for
10824 arm_hard_regno_mode_ok.
10825 * config/arm/arm.c (soft_df_operand): Remove now redundant
10826 check for DImode values using IP_REGNUM.
10827 (nonimmediate_soft_df_operand): Remove now redundant check for
10828 DImode values using IP_REGNUM.
10829 (arm_hard_regno_mode_ok): New function. New check: make sure
10830 that DImode values are not stored in IP_REGNUM.
10831
10832 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10833 note with a USE.
10834 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10835
10836 2002-01-22 Jason Merrill <jason@redhat.com>
10837
10838 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10839 consistency if this COMPOUND_STMT is scoped.
10840
10841 2002-01-22 Kazu Hirata <kazu@hxi.com>
10842
10843 * predict.c: Fix formatting.
10844 * print-tree.c: Likewise.
10845 * protoize.c: Likewise.
10846 * real.h: Likewise.
10847 * rtl.h: Likewise.
10848 * sbitmap.h: Likewise.
10849 * scan.c: Likewise.
10850 * sched-deps.c: Likewise.
10851 * sched-vis.c: Likewise.
10852 * sdbout.c: Likewise.
10853 * sibcall.c: Likewise.
10854 * ssa.c: Likewise.
10855 * ssa-ccp.c: Likewise.
10856 * ssa-dce.c: Likewise.
10857 * stmt.c: Likewise.
10858 * stor-layout.c: Likewise.
10859 * system.h: Likewise.
10860
10861 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10862
10863 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10864 if fits in bounds of base type.
10865
10866 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10867 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10868 (add_bound_info, default): If can't find a context, make a
10869 SAVE_EXPR.
10870 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10871
10872 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10873
10874 * c-typeck.c (parser_build_binary_op): If result from
10875 build_binary_op is ERROR_MARK just return error_mark_node without
10876 further processing.
10877
10878 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10879
10880 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10881 Split a.out-specific bits into...
10882 * config/netbsd-aout.h: ...this.
10883 * config/netbsd-elf.h: New file.
10884 * config/alpha/netbsd-elf.h: Remove.
10885 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10886 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10887 (STARTFILE_SPEC): Remove redundant definition.
10888 (ENDFILE_SPEC): Likewise.
10889 (LINK_SPEC): Likewise.
10890 (CPP_SPEC): Likewise.
10891 (ASM_SPEC): Likewise.
10892 (LIB_SPEC): Likewise.
10893 (SWITCH_TAKES_ARG): Likewise.
10894 (TARGET_MEM_FUNCTIONS): Likewise.
10895 (CPP_PREDEFINES): Redefine.
10896 (ASM_FINAL_SPEC): Remove redefinition.
10897 (ASM_COMMENT_START): Redefine.
10898 (FUNCTION_PROFILER): Define.
10899 (TARGET_VERSION): Redefine.
10900 Comment and formatting cleanup.
10901 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10902 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10903 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10904 big- or little-endian.
10905 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10906 * config.gcc (*-*-netbsd*): Add definitions common to all
10907 NetBSD configs.
10908 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10909 gnu_ld definitions. Add netbsd-elf.h to and remove
10910 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10911 tmake_file, and don't lose previous tmake_file contents.
10912 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10913 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10914 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10915 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10916 (mipsel-*-netbsd*): Rename this to...
10917 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10918 mips/little.h to tm_file for mips*el-*.
10919 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10920 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10921 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10922
10923 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10924
10925 * pa-protos.h (reg_before_reload_operand): New function prototype.
10926 * pa.c (reg_before_reload_operand): New function implementation.
10927 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10928 contraints to "*m".
10929
10930 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10931
10932 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10933
10934 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10935
10936 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10937 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10938 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10939 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10940 (ENDFILE_SPEC): Undefine.
10941 (STARTFILE_SPEC): Redefine for PA.
10942
10943 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10944
10945 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10946
10947 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10948
10949 * config.gcc: Add entries to supported PowerPC --with-cpu
10950 types.
10951
10952 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10953
10954 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10955 true for 64-bit mode only SSE registers in 32-bit mode.
10956
10957 2002-01-21 Kazu Hirata <kazu@hxi.com>
10958
10959 * unwind-dw2.c: Fix formatting.
10960 * unwind-dw2-fde.c: Likewise.
10961 * unwind-dw2-fde.h: Likewise.
10962 * unwind-pe.h: Likewise.
10963 * varasm.c: Likewise.
10964 * varray.h: Likewise.
10965
10966 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10967
10968 Remove workaround for register stack overwrite bug in mmix.
10969 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10970 support for TARGET_REG_STACK_FILL_BUG.
10971 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10972 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10973 Delete.
10974 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10975 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10976 -mno-reg-stack-fill-bug-workaround.
10977 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10978 machine member has_call_without_parameters.
10979 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10980 -mreg-stack-fill-bug-workaround and
10981 -mno-reg-stack-fill-bug-workaround.
10982 (MMIX Options): Ditto.
10983
10984 2002-01-21 Kazu Hirata <kazu@hxi.com>
10985
10986 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10987 as appropriate.
10988 Remove redundant code.
10989
10990 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10991
10992 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10993 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10994 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10995 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10996 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10997 out target macro definitions and non-target-specific comments
10998 mostly taken from old versions of the manual.
10999
11000 2002-01-20 Kazu Hirata <kazu@hxi.com>
11001
11002 * config/h8300/h8300.h: Fix comment formatting.
11003 * config/ia64/aix.h: Likewise.
11004 * config/ia64/ia64-protos.h: Likewise.
11005 * config/ia64/ia64.c: Likewise.
11006 * config/ia64/ia64.h: Likewise.
11007 * config/ia64/ia64intrin.h: Likewise.
11008 * config/ia64/linux.h: Likewise.
11009 * config/ia64/unwind-aix.c: Likewise.
11010 * config/ia64/unwind-ia64.c: Likewise.
11011
11012 2002-01-20 Kazu Hirata <kazu@hxi.com>
11013
11014 * config/h8300/h8300.c: Revise comments about shift code.
11015
11016 2002-01-20 Kazu Hirata <kazu@hxi.com>
11017
11018 * config/h8300/h8300.c (function_arg): Update a comment.
11019
11020 2002-01-20 Kazu Hirata <kazu@hxi.com>
11021
11022 * config/h8300/h8300.md: Update the comments at the beginning
11023 of the file.
11024
11025 2002-01-20 Kazu Hirata <kazu@hxi.com>
11026
11027 * config/i370/i370.c: Fix comment formatting.
11028 * config/i370/i370.h: Likewise.
11029 * config/i370/i370.md: Likewise.
11030 * config/i370/linux.h: Likewise.
11031
11032 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11033
11034 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11035
11036 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11037 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11038 in incomplete case.
11039
11040 2002-01-20 Graham Stott <grahams@redhat.com>
11041
11042 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11043
11044 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
11045
11046 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11047
11048 2002-01-19 Tom Rix <trix@redhat.com>
11049
11050 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11051
11052 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
11053
11054 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11055
11056 * function.c (assign_stack_local_1): Adjust x_frame_offset with
11057 STARTING_FRAME_PHASE.
11058 (STARTING_FRAME_PHASE): New.
11059 (instantiate_virtual_regs): Check saneness of
11060 STARTING_FRAME_PHASE.
11061
11062 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11063
11064 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
11065
11066 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11067
11068 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
11069
11070 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11071 be used for bootstrapping GCC 3.0.
11072
11073 2002-01-18 Kazu Hirata <kazu@hxi.com>
11074
11075 * config/h8300/h8300.md: Fix an insn length.
11076
11077 2002-01-18 Kazu Hirata <kazu@hxi.com>
11078
11079 * bitmap.h: Fix comment formatting.
11080 * combine.c: Likewise.
11081 * cppfiles.c: Likewise.
11082 * c-pragma.h: Likewise.
11083 * c-typeck.c: Likewise.
11084 * df.c: Likewise.
11085 * dwarf2out.c: Likewise.
11086 * function.c: Likewise.
11087 * gcc.c: Likewise.
11088 * genattrtab.c: Likewise.
11089 * gthr-win32.h: Likewise.
11090 * haifa-sched.c: Likewise.
11091 * predict.c: Likewise.
11092 * rtlanal.c: Likewise.
11093 * rtl.h: Likewise.
11094 * unwind-dw2-fde.h: Likewise.
11095 * unwind-pe.h: Likewise.
11096 * vmsdbgout.c: Likewise.
11097
11098 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11099
11100 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11101 if type_required and passed decl.
11102
11103 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
11104
11105 * config.gcc (cpu_type): Include altivec.h in powerpc
11106 extra_headers.
11107 Same for darwin.
11108
11109 * config/rs6000/altivec.h: New.
11110
11111 2002-01-17 David Edelsohn <edelsohn@gnu.org>
11112
11113 * doc/install.texi (*-ibm-aix*): Update assembler and exception
11114 handling information.
11115 * doc/trouble.texi (Interoperation): Add libstdc++ information
11116 for AIX.
11117 (Misunderstandings): Add template instantiation and static template
11118 member information for AIX.
11119
11120 2002-01-17 Jason Merrill <jason@redhat.com>
11121
11122 * dbxout.c (dbxout_type): Support const and volatile.
11123
11124 * except.c (add_partial_entry): Remove backwards compatibility code.
11125 (end_protect_partials): Likewise.
11126
11127 2002-01-17 Jakub Jelinek <jakub@redhat.com>
11128
11129 * config/ia64/ia64.md (prologue_use): New.
11130 * config/ia64/ia64.c (ia64_expand_prologue): Use
11131 gen_prologue_use instead of gen_rtx_USE.
11132 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
11133 as CODE_FOR_pred_rel_mutex.
11134 (ia64_sched_reorder2): Likewise.
11135
11136 2002-01-16 Eric Christopher <echristo@redhat.com>
11137
11138 * config/mips/r3900.h: Reformat.
11139 (SUBTARGET_CPP_SIZE_SPEC): Remove.
11140 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
11141 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
11142 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
11143 * config/mips/t-elf: Remove mips3 multilib.
11144
11145 2002-01-16 H.J. Lu <hjl@gnu.org>
11146
11147 * config/mips/linux.h: Include "mips/abi64.h".
11148
11149 2002-01-16 H.J. Lu <hjl@gnu.org>
11150
11151 * config/mips/t-linux: New.
11152
11153 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11154
11155 * config/mips/linux.h: Don't include "gofast.h".
11156 (INIT_SUBTARGET_OPTABS): Removed.
11157
11158 2002-01-16 Kazu Hirata <kazu@hxi.com>
11159
11160 * config/h8300/h8300-protos.h: Replace emit_a_shift with
11161 output_a_shift.
11162 * config/h8300/h8300.c: Likewise.
11163 * config/h8300/h8300.md: Likewise.
11164
11165 2002-01-16 Kazu Hirata <kazu@hxi.com>
11166
11167 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
11168 spaces after an opcode name.
11169 (pushqi1_h8300hs): Likewise.
11170 (pushhi1_h8300hs): Likewise.
11171
11172 2002-01-16 Kazu Hirata <kazu@hxi.com>
11173
11174 * doc/extend.texi: Replace "option" with "attribute"
11175 appropriately.
11176
11177 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11178
11179 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
11180 (and:DI () (const_int -8)).
11181 (split_small_symbolic_mem_operand): Split
11182 (mem (and:DI () (const_int -8)).
11183
11184 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11185
11186 PR target/5309:
11187 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
11188 same way as TYPE_IMUL.
11189 (ultrasparc_sched_reorder): Likewise.
11190 * config/sparc/sparc.md (type): Add comment to update
11191 ultrasparc_sched_reorder when making changes.
11192
11193 2002-01-16 Kazu Hirata <kazu@hxi.com>
11194
11195 * doc/invoke.texi: Change the dump file name of block
11196 reordering pass from 28.bbro to 29.bbro.
11197 Mention -dk option.
11198
11199 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
11200
11201 * i386.md (minsf splitter): Fix pasto.
11202
11203 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11204
11205 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11206 to frame pointer initialisation instruction.
11207 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11208 initialisation instruction.
11209 (soft_df_operand): Do not accept the IP register.
11210 (nonimmediate_soft_df_operand): Do not accept the IP register.
11211
11212 2002-01-16 Jakub Jelinek <jakub@redhat.com>
11213
11214 PR target/5357:
11215 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11216 MASK_V8 being both set.
11217
11218 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
11219
11220 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11221 insn for GOT register; add REG_MAYBE_DEAD notes instead.
11222 config/s390/s390.md (call, call_value): Add GOT register to
11223 CALL_INSN_FUNCTION_USAGE where needed.
11224 (call_exp, call_value_exp): New.
11225
11226 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
11227
11228 * config/arm/arm.c: General formatting tidy up.
11229
11230 2002-01-16 Graham Stott <grahams@redhat.com>
11231
11232 * calls.c (try_to_integrate): Use "(size_t)" intermediate
11233 cast and when casting an integer literal to "rtx" pointer.
11234 (expand_call): Likewise.
11235 * flow.c (try_pre_increment): Likewise.
11236 (find_use_as_address): Likewise.
11237 * integrate.c (expand_iline_function): Likewise.
11238 * regmove.c (try_auto_increment): Likewise.
11239
11240 2002-01-16 Graham Stott <grahams@redhat.com>
11241
11242 * sched-rgn.c (passed): Use sbitmap_free.
11243 (header): Likewise.
11244 (inner): Likewise.
11245 (in_queue): Likewise.
11246 (in_stack): Likewise.
11247
11248 2002-01-15 Eric Christopher <echristo@redhat.com>
11249
11250 * flow.c (propagate_one_insn): Change to use fatal_insn.
11251
11252 2002-01-15 Kazu Hirata <kazu@hxi.com>
11253
11254 * expmed.c (extract_fixed_bit_field): Remove unused code.
11255 * system.h: Poison SLOW_ZERO_EXTEND.
11256 * doc/tm.texi: Remove.
11257 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11258 * config/arm/arm.h: Likewise.
11259 * config/avr/avr.h: Likewise.
11260 * config/clipper/clipper.h: Likewise.
11261 * config/convex/convex.h: Likewise.
11262 * config/d30v/d30v.h: Likewise.
11263 * config/dsp16xx/dsp16xx.h: Likewise.
11264 * config/elxsi/elxsi.h: Likewise.
11265 * config/fr30/fr30.h: Likewise.
11266 * config/h8300/h8300.h: Likewise.
11267 * config/i370/i370.h: Likewise.
11268 * config/i386/i386.h: Likewise.
11269 * config/m68k/m68k.h: Likewise.
11270 * config/mips/mips.h: Likewise.
11271 * config/ns32k/ns32k.h: Likewise.
11272 * config/pdp11/pdp11.h: Likewise.
11273 * config/pj/pj.h: Likewise.
11274 * config/s390/s390.h: Likewise.
11275 * config/sh/sh.h: Likewise.
11276 * config/stormy16/stormy16.h: Likewise.
11277 * config/v850/v850.h: Likewise.
11278 * config/vax/vax.h: Likewise.
11279 * config/we32k/we32k.h: Likewise.
11280
11281 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11282
11283 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11284 (altivec_lvsl): Change constraint to b.
11285 (altivec_lvsr): Same.
11286 (altivec_lvebx): Same.
11287 (altivec_lvehx): Same.
11288 (altivec_lvewx): Same.
11289 (altivec_lvxl): Same.
11290 (altivec_lvx): Same.
11291 (altivec_stvx): Add parallel.
11292 (altivec_stvxl): Same.
11293 (altivec_stvehx): Same.
11294 (altivec_stvebx): Same.
11295 (altivec_stvebx): Same.
11296
11297 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
11298
11299 * config.gcc: Change altivec.h to altivec-defs.h.
11300
11301 * config/rs6000/altivec.h: Delete.
11302
11303 * config/rs6000/altivec-defs.h: Add.
11304
11305 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
11306
11307 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11308 and UMOD modes.
11309
11310 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11311 less than or equal to eight bytes.
11312
11313 * vax.md (andsi3): Remove constraints and change SET destination
11314 operand type to nonimmediate_operand.
11315 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
11316 when it is a CONST_INT.
11317
11318 2002-01-15 Jason Merrill <jason@redhat.com>
11319
11320 * c-common.def (FILE_STMT): New code.
11321 * c-common.c (statement_code_p): It's a statement.
11322 * c-common.h (stmt_tree_s): Add x_last_filename.
11323 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11324 (last_expr_filename): New macro.
11325 * c-semantics.c (begin_stmt_tree): Initialize it.
11326 (add_stmt): If the filename changed, also insert a
11327 FILE_STMT.
11328 (expand_stmt): Handle seeing one.
11329
11330 2002-01-15 Eric Christopher <echristo@redhat.com>
11331
11332 * flow.c (propagate_one_insn): Add error message and print out
11333 insn for debugging.
11334
11335 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11336
11337 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11338 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11339 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11340 TRAMPOLINE_ALIGNMENT.
11341 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
11342 to be in bits.
11343 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11344 PCC_BITFIELD_TYPE_MATTERS.
11345 * config/interix.h (STDC_VALUE): Remove. Use
11346 STDC_0_IN_SYSTEM_HEADERS.
11347 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11348 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11349 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11350
11351 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
11352
11353 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11354 not work on this platform currently.
11355
11356 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
11357
11358 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11359 readonly_warning in _().
11360
11361 2002-01-15 Douglas B Rupp <rupp@gnat.com>
11362
11363 * gcc.c (delete_if_ordinary): Backout previous change.
11364
11365 2002-01-15 Kazu Hirata <kazu@hxi.com>
11366
11367 * config/h8300/h8300.c (print_operand): Remove support for
11368 unused operand characters.
11369
11370 * read-rtl.c: Fix formatting.
11371 * real.c: Likewise.
11372 * recog.c: Likewise.
11373 * regclass.c: Likewise.
11374 * regmove.c: Likewise.
11375 * reg-stack.c: Likewise.
11376 * reload1.c: Likewise.
11377 * rtlanal.c: Likewise.
11378
11379 2002-01-15 Kazu Hirata <kazu@hxi.com>
11380
11381 * config/i386/i386.c: Fix formatting.
11382
11383 2002-01-15 Jakub Jelinek <jakub@redhat.com>
11384
11385 * c-typeck.c (process_init_element): Don't save_expr
11386 COMPOUND_LITERAL_EXPR if just its initializer will be used.
11387
11388 2002-01-15 David Edelsohn <edelsohn@gnu.org>
11389
11390 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11391 emit optional traceback table if optimize_size or TARGET_ELF.
11392 * config/rs6000/rs6000.md (prefetch): New.
11393
11394 2002-01-15 Andreas Jaeger <aj@suse.de>
11395
11396 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11397
11398 2002-01-15 Kazu Hirata <kazu@hxi.com>
11399
11400 * mips-tfile.c: Fix formatting.
11401
11402 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
11403
11404 * unroll.c (final_reg_note_copy): Fix previous commit.
11405
11406 2002-01-14 Kazu Hirata <kazu@hxi.com>
11407
11408 * config/h8300/h8300-protos.h: Remove the prototype for
11409 eq_operator.
11410 * config/h8300/h8300.c (eq_operator): Remove.
11411
11412 2002-01-14 Richard Henderson <rth@redhat.com>
11413
11414 * config/i386/i386.md (prefetch): Tidy.
11415 (prefetch_3dnow): Fix locality operand.
11416
11417 2002-01-14 Richard Henderson <rth@redhat.com>
11418
11419 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11420 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11421
11422 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
11423
11424 * reload1.c (reload_combine): Pass reg_sum replacement through
11425 copy_rtx in loop performing multiple changes.
11426
11427 2002-01-14 Jakub Jelinek <jakub@redhat.com>
11428
11429 * except.c (remove_unreachable_regions): New.
11430 (free_eh_status): Clear exception_handler_labels.
11431 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11432 (find_exception_handler_labels): Don't add the same label more than
11433 once.
11434 (remove_exception_handler_label): Don't die if
11435 find_exception_handler_labels hasn't been called for the current
11436 function yet.
11437
11438 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
11439
11440 * toplev.c (rest_of_compilation): Rebuild jump labels after
11441 gcse.
11442
11443 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
11444
11445 * doc/extend.texi: Move documentation of X86 built-in functions
11446 here.
11447 * doc/invoke.texi: From here.
11448 * doc/sourcebuild.texi: Document location of documentation for
11449 machine built-in functions.
11450
11451 2002-01-13 Christopher Faylor <cgf@redhat.com>
11452
11453 * cppfiles.c (TEST_THRESHOLD): New macro.
11454 (SHOULD_MMAP): Ditto.
11455 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11456 be used.
11457
11458 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
11459
11460 * unroll.c (final_reg_note_copy): Properly handle
11461 REG_LABEL
11462 (unroll_loops): Fix LOOP_CONDITION heuristics.
11463
11464 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
11465
11466 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11467 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11468
11469 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
11470
11471 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11472 threaded loop.
11473
11474 2002-01-14 Tom Rix <trix@redhat.com>
11475
11476 * config/rs6000/rs6000.md: Fix typo with sradi.
11477
11478 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
11479
11480 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11481 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11482 (clrstrdi, clrstrsi): Adapt callers.
11483
11484 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11485
11486 (movti splitter): Never use register 0 as base register.
11487
11488 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
11489
11490 * combine.c (simplify_shift_const): Always generate new rtx
11491 for shift expression instead of reusing given expression.
11492
11493 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11494
11495 * config/alpha/alpha.c (alpha_expand_mov): Don't call
11496 alpha_legitimize_address unless mode is Pmode.
11497
11498 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
11499
11500 * doc/md.texi (Modifiers): Document the '*' constraint for the
11501 user.
11502
11503 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11504 * doc/extend.texi (Function Attributes): 'interrupt' is valid
11505 for xstormy16 too.
11506
11507 2002-01-13 Richard Henderson <rth@redhat.com>
11508
11509 * reload.c (find_reloads): Use a hard reg destination as reload reg
11510 for an input reload of the source.
11511
11512 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11513
11514 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11515 more generic.
11516
11517 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
11518
11519 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11520 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11521
11522 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11523
11524 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11525
11526 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11527
11528 2002-01-12 Tom Rix <trix@redhat.com>
11529
11530 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11531 TARGET_POWERPC64.
11532
11533 2002-01-12 Richard Henderson <rth@redhat.com>
11534
11535 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11536
11537 * doc/invoke.texi: Update Alpha options.
11538
11539 * doc/invoke.texi: Update i386 built-in function lists.
11540
11541 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
11542
11543 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11544 referencing outside.
11545
11546 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11547
11548 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11549 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11550 offsets, and change line folding.
11551 * optabs.c (expand_binop): Remove warnings.
11552 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11553
11554 2002-01-12 Graham Stott <grahams@redhat.com>
11555
11556 * attribs.c (handle_deprecated_attribute): constify WHAT.
11557 * diagnostic.c (warn_deprecated_use): Add braces, fixes
11558 dangling else warning and constify WHAT.
11559 * except.h (struct function, struct inline_remap): Move
11560 struct tag forward defs before all prototypes.
11561 (duplicate_eh_regions): Whitespace.
11562
11563 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
11564
11565 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11566 MODE_BASE_REG_CLASS.
11567 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11568
11569 2002-01-12 Richard Henderson <rth@redhat.com>
11570
11571 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11572 (ix86_expand_vector_move): New.
11573 (bdesc_2arg): Remove andps, andnps, orps, xorps.
11574 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
11575 Remove old prefetch builtins. Special case the logicals removed above.
11576 (ix86_expand_builtin): Likewise.
11577 (safe_vector_operand): Use V4SFmode, not TImode.
11578 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
11579 (ix86_expand_timode_binop_builtin): New.
11580 * config/i386/i386-protos.h: Update.
11581 * config/i386/i386.h (enum ix86_builtins): Update.
11582 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11583 Use ix86_expand_vector_move in vector move expanders.
11584 (movti_internal, movti_rex64): Add xorps alternative.
11585 (sse_clrv4sf): Rename and adjust from sse_clrti.
11586 (prefetch): Don't work so hard.
11587 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11588 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11589 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11590
11591 2002-01-11 Richard Henderson <rth@redhat.com>
11592
11593 * config/i386/mmintrin.h: New file.
11594 * config/i386/xmmintrin.h: New file.
11595 * config.gcc (i?86-*-*): Add extra_headers.
11596 * simplify-rtx.c (simplify_unary_operation): Handle saturating
11597 truncation codes.
11598 (simplify_binary_operation): Handle saturating arithmetic codes.
11599 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11600 not the lowpart subreg.
11601 (ix86_expand_builtin): Return a TImode dummy register instead of 0
11602 on error.
11603 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11604
11605 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11606
11607 * conflict.c (conflict_graph_compute): Free regsets when finished.
11608 * ssa.c (compute_coalesced_reg_partition): Likewise.
11609
11610 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11611
11612 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11613 every where we allocate a register.
11614
11615 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11616
11617 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11618 * lcm.c (compute_earliest, compute_farthest): Likewise.
11619
11620 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11621
11622 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11623
11624 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11625
11626 * doc/rtl.texi (Insns): Fix 2 typos.
11627
11628 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
11629
11630 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
11631 options. Use @table @gcctabopt for MMIX options. Add index
11632 entries for MMIX options. Start new paragraph with first
11633 heading of the machine-dependent options.
11634
11635 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
11636
11637 PR other/5299
11638 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11639 * combine.c (force_to_mode): Same.
11640 * reload1.c (clear_reload_reg_in_use): Same.
11641
11642 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
11643
11644 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11645 and 'subtargets'.
11646
11647 2002-01-11 Andreas Jaeger <aj@suse.de>,
11648 Brad Lucier <lucier@math.purdue.edu>
11649
11650 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11651 mcpu.
11652
11653 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
11654
11655 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11656 Protect with IN_LIBGCC.
11657 (LINK_EH_SPEC): Add required trailing space.
11658
11659 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
11660
11661 * c-tree.h: Move function declarations so that they are listed
11662 under the filename which contains them.
11663 (check_identifier, finish_decl_top_level,
11664 lookup_name_current_level_global, shadow_record_fields): Remove.
11665
11666 2002-01-11 Andreas Jaeger <aj@suse.de>
11667
11668 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11669 march.
11670
11671 2002-01-10 Richard Henderson <rth@redhat.com>
11672
11673 * config/alpha/alpha.c (print_operand): Add 'J'.
11674 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11675 new operand with the sequence number for the lituse. When splitting
11676 the insns, use gen_movdi_er_high_g and generate a sequence number.
11677 (gen_movdi_er_high_g): Print the sequence number if non-zero.
11678
11679 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
11680
11681 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11682 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11683 stvxl.
11684 (altivec_expand_builtin): Same.
11685 (altivec_expand_stv_builtin): New.
11686
11687 * config/rs6000/rs6000.h (rs6000_builtins): Same.
11688
11689 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11690 ("altivec_lvehx"): New.
11691 ("altivec_lvewx"): New.
11692 ("altivec_lvxl"): New.
11693 ("altivec_lvx"): New.
11694 ("altivec_stvx"): New.
11695 ("altivec_stvebx"): New.
11696 ("altivec_stvehx"): New.
11697 ("altivec_stvewx"): New.
11698 ("altivec_stvxl"): New.
11699
11700 2002-01-10 Richard Henderson <rth@redhat.com>
11701
11702 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11703 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11704 care not to delete instructions twice.
11705
11706 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11707
11708 * toplev.c: Don't declare environ (it's not used anywhere).
11709 * configure.in: Don't check for declaration of environ.
11710 * config/i386/xm-mingw32.h: Don't #define environ.
11711 * config.in, configure: Regenerate.
11712
11713 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11714
11715 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11716 * configure: Regenerate.
11717
11718 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11719 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11720 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11721 alpha/xm-vms.h.
11722 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11723 LIMITS_H_TEST here, not in m68k/x-next.
11724 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11725 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11726
11727 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11728 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11729 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11730
11731 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11732 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11733 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11734 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11735 replacement of quadlib.asm with quadlib.c.
11736
11737 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11738 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11739 config/rs6000/xm-beos.h: Delete file.
11740
11741 * config.gcc: Update to match above changes.
11742
11743 2002-01-10 Kazu Hirata <kazu@hxi.com>
11744
11745 * config/h8300/h8300.h: Fix comment typos.
11746 * config/h8300/h8300.md: Likewise.
11747 * config/h8300/lib1funcs.asm: Likewise.
11748
11749 2002-01-10 Dale Johannesen <dalej@apple.com>
11750
11751 PR optimization/5269
11752 * unroll.c (precondition_loop_p): Make *increment be the correct
11753 sign when n_iterations known, to avoid confusing caller.
11754
11755 2002-01-10 Kazu Hirata <kazu@hxi.com>
11756
11757 * doc/extend.texi (deprecated): Fix a typo.
11758
11759 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11760
11761 * basic-block.h (update_br_prob_note): Declare.
11762 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11763 (try_forward_edges): Care negative frequencies and update note.
11764 (outgoing_edges_match): Tweek conditional merging heuristics.
11765 (try_crossjump_to_edge): use update_br_prob_note.
11766 * cfglayout.c (fixup_reorder_chain): Likewise.
11767 * cfrtl.c (update_br_prob_note): New.
11768 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11769
11770 * i386.c (ix86_decompose_address): Return -1 if address contains
11771 shift.
11772 (legitimate_address_p): Require ix86_decompose_address to return 1.
11773
11774 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11775 (cprop_insn): Likewise.
11776
11777 2002-01-10 Kazu Hirata <kazu@hxi.com>
11778
11779 * toplev.c: Fix formatting.
11780 * tree.c: Likewise.
11781 * tree-dump.c: Likewise.
11782 * unroll.c: Likewise.
11783 * unwind-dw2.c: Likewise.
11784 * unwind-dw2-fde.c: Likewise.
11785 * unwind-dw2-fde-glibc.c: Likewise.
11786 * unwind-sjlj.c: Likewise.
11787
11788 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11789
11790 * doc/invoke.texi: Document PDP-11 options.
11791
11792 2002-01-10 Kazu Hirata <kazu@hxi.com>
11793
11794 * config/h8300/h8300.h: Fix formatting.
11795
11796 2002-01-10 Ira Ruben <ira@apple.com>
11797
11798 Add __attribute__ ((deprecated)).
11799 * extend.texi: Document __attribute__ ((deprecated)).
11800 * invoke.texi: Document -Wno-deprecated-declarations.
11801 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11802 * testsuite/gcc.dg/deprecated.c: New C test.
11803 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11804 (c_common_attribute_table): Add "deprecated" entry.
11805 (handle_deprecated_attribute): New function.
11806 * c-decl.c (deprecated_states): New enum.
11807 deprecated_state: State of "deprecated" handling.
11808 (start_decl): Set deprecated_state based on attributes.
11809 (grokdeclarator): Test for deprecated uses, propagate attribute.
11810 * c-typeck.c (build_component_ref): Test for deprecated fields.
11811 (build_external_ref): Test for deprecated primaries.
11812 * diagnostic.c (warn_deprecated_use) New function to issue
11813 warnings about __attribute__ ((depricated)) references.
11814 * flags.h (warn_deprecated_decl): Extern declared for
11815 -W[no-]deprecated-declarations option.
11816 * print-tree.c (print_node): Show deprecated flag status.
11817 * toplev.c (warn_deprecated_decl): Defined.
11818 (W_options): Added "deprecated-declaration".
11819 * toplev.h (warn_deprecated_use): Extern declared.
11820 * tree.h (struct tree_common): Define deprecated_flag.
11821 (TREE_DEPRECATED): New macro to access flag.
11822 * cp/call.c (build_call): Test for deprecated calls.
11823 * cp/class.c (add_implicitly_declared_members): Set global
11824 flag to tell grokdeclarator to not issue deprecated warnings.
11825 * cp/cp-tree.h: Add extern for adding_implicit_members.
11826 * cp/decl.c (deprecated_states): New enum.
11827 (start_decl): Set deprecated_state based on attributes.
11828 (grokdeclarator): Test for deprecated uses, propagate attribute.
11829 * cp/lex.c (do_identifier): Test for deprecated primaries.
11830 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11831
11832 2002-01-10 Ira Ruben <ira@apple.com>
11833
11834 Fix to assign attributes to inline member functions.
11835 * cp/decl.c (start_method): Handle attrlist.
11836
11837 2002-01-10 Kazu Hirata <kazu@hxi.com>
11838
11839 * combine.c (expand_field_assignment): Use subreg_lsb().
11840
11841 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11842
11843 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11844 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11845 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11846 Recurse for any operand of AND as long as constant is non-zero.
11847
11848 2002-01-10 Kazu Hirata <kazu@hxi.com>
11849
11850 * config/h8300/h8300.md: Remove constraints from expanders.
11851
11852 2002-01-10 Kazu Hirata <kazu@hxi.com>
11853
11854 * varasm.c: Fix formatting.
11855 * varray.c: Likewise.
11856 * vmsdbgout.c: Likewise.
11857 * xcoffout.c: Likewise.
11858
11859 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11860
11861 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11862 update edge probabilities to match.
11863
11864 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11865
11866 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11867 dependencies.
11868 * doc/languages.texi, doc/sourcebuild.texi: New files.
11869 * doc/configfiles.texi: Make a subsubsection. Update.
11870 * doc/configterms.texi: Add @node. Remove warning that this isn't
11871 instructions for building GCC.
11872 * doc/makefile.texi: Make a subsection.
11873 * doc/gccint.texi: Update.
11874
11875 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11876
11877 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11878
11879 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11880
11881 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11882
11883 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11884
11885 * optabs.c (expand_fix): Look for wider integer modes first.
11886
11887 * i386.md (mov?f): Avoid the fake const double trick for medium
11888 memory model.
11889 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11890 (fop_df_4): Disable for SSE compilation.
11891
11892 2002-01-10 Graham Stott <grahams@redhat.com>
11893
11894 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11895 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11896
11897 2002-01-10 Richard Henderson <rth@redhat.com>
11898
11899 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11900
11901 2002-01-10 Richard Henderson <rth@redhat.com>
11902
11903 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11904 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11905
11906 2002-01-10 Kazu Hirata <kazu@hxi.com>
11907
11908 * combine.c (can_combine_p): Fix a comment typo.
11909
11910 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11911
11912 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11913 empty list correctly. Change loop index $t to $f for
11914 consistency with rest of Makefile.
11915
11916 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11917
11918 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11919 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11920
11921 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11922 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11923 (altivec_init_builtins): Same.
11924 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11925 (altivec_expand_binop_builtin): Same.
11926 (altivec_expand_ternop_builtin): Same.
11927 (bdesc_dst): New.
11928
11929 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11930 ("altivec_vctuxs"): Fix typo.
11931 ("altivec_vnmsubfp"): Same.
11932 ("altivec_dssall"): New.
11933 ("altivec_mfvscr"): New.
11934 ("altivec_dss"): New.
11935 ("altivec_lvsl"): New.
11936 ("altivec_lvsr"): New.
11937 ("altivec_dstt"): New.
11938 ("altivec_dstst"): New.
11939 ("altivec_dststt"): New.
11940 ("altivec_dst"): New.
11941
11942 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11943 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11944
11945 2002-01-09 Richard Henderson <rth@redhat.com>
11946
11947 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11948
11949 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11950
11951 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11952 function.
11953 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11954 prototype.
11955 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11956
11957 2002-01-09 Kazu Hirata <kazu@hxi.com>
11958
11959 * read-rtl.c: Fix formatting.
11960 * real.c: Likewise.
11961 * regclass.c: Likewise.
11962 * regrename.c: Likewise.
11963 * reg-stack.c: Likewise.
11964 * reload1.c: Likewise.
11965 * reload.c: Likewise.
11966 * rtl.c: Likewise.
11967
11968 2002-01-09 Kazu Hirata <kazu@hxi.com>
11969
11970 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11971 to extract items in the expr_list chain.
11972
11973 2002-01-09 Richard Henderson <rth@redhat.com>
11974
11975 * config/vax/vax.c (vax_rtx_cost): Never abort.
11976
11977 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11978
11979 2002-01-09 Jan Hubicka <jh@suse.cz>
11980
11981 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11982
11983 2002-01-09 Richard Henderson <rth@redhat.com>
11984
11985 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11986 Unify code from various alternatives.
11987
11988 2002-01-09 Richard Henderson <rth@redhat.com>
11989
11990 * regrename.c (copy_value): Ignore the copy if the source register
11991 is present in the value chain with a narrower mode.
11992
11993 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11994
11995 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11996 for the c4x target. Also improve layout.
11997
11998 2002-01-09 Richard Henderson <rth@redhat.com>
11999
12000 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12001 * config/m32r/m32r.md (and ior xor splitters): Swap operands
12002 to match insn patterns.
12003
12004 2002-01-09 Richard Henderson <rth@redhat.com>
12005
12006 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12007 (copyprop_hardreg_forward_1): Likewise.
12008
12009 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12010
12011 * pa.md (decrement_and_branch_until_zero): Change predicate for
12012 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12013
12014 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12015
12016 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12017 gets undefined. For Darwin.
12018
12019 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12020
12021 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12022
12023 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12024
12025 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12026
12027 2002-01-08 Richard Henderson <rth@redhat.com>
12028
12029 * regrename.c (copy_value): Ignore overlapping copies.
12030
12031 2002-01-08 Richard Henderson <rth@redhat.com>
12032
12033 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12034 as needed to avoid shared structure.
12035
12036 2002-01-08 Kazu Hirata <kazu@hxi.com>
12037
12038 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12039 H8/300H and H8/S.
12040
12041 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12042
12043 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12044 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12045 documentation of obsolete macros.
12046 * system.h: Poison these macros.
12047 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12048 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12049 config/c4x/c4x.h, config/clipper/clipper.h,
12050 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12051 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12052 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12053 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12054 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12055 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12056 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12057 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12058 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12059 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12060 config/sparc/sparc.h, config/stormy16/stormy16.h,
12061 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12062 definitions and commented out definitions of obsolete macros.
12063 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12064 of MAX_INT_TYPE_SIZE.
12065
12066 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12067
12068 * config/s390/s390.c (s390_preferred_reload_class): Never
12069 return ADDR_REGS if it isn't a subset of the given class.
12070 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12071 FP_REGS, but all superclasses as well.
12072
12073 * config/s390/s390.c (s390_function_profiler): Fix thinko.
12074
12075 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12076 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12077 must not be a const_int.
12078
12079 2002-01-08 Richard Henderson <rth@redhat.com>
12080
12081 * Makefile.in (toplev.o): Depend on options.h.
12082 (gcc.o): Depend on specs.h.
12083
12084 2002-01-08 Jakub Jelinek <jakub@redhat.com>
12085
12086 * expr.c (store_expr): Convert VOIDmode constants back to target's
12087 mode.
12088
12089 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12090
12091 * doc/invoke.texi: Markup gcc as @command. Refer to
12092 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
12093 of http://gcc.gnu.org/thanks.html.
12094
12095 2002-01-08 Dale Johannesen <dalej@apple.com>
12096
12097 * config/rs6000/rs6000.md: Add missing int register
12098 target case to movdf_low.
12099
12100 2002-01-08 Zack Weinberg <zack@codesourcery.com>
12101
12102 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
12103 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
12104 (cppinit.o): Depend on except.h.
12105 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
12106 s-specs): New rules.
12107
12108 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
12109 Don't create specs.h/options.h/gencheck.h here. Remove
12110 unnecessary variable settings from last argument of AC_OUTPUT.
12111 * config.in, configure: Regenerate.
12112 * intl.c: Hardcode package name as "gcc".
12113
12114 * cppinit.c: Include except.h.
12115 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
12116 appropriate.
12117 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
12118 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
12119 (!)USING_SJLJ_EXCEPTIONS.
12120 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
12121
12122 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12123
12124 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
12125 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
12126 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
12127 documentation of obsolete macros.
12128 * system.h: Poison these macros.
12129 * config/d30v/d30v.h, config/ns32k/encore.h,
12130 config/stormy16/stormy16.h: Remove definitions and commented out
12131 definitions of obsolete macros.
12132
12133 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
12134
12135 * objc/objc-act.c (handle_class_ref): Mark the declaration of
12136 %sobjc_class_ref_%s as used - to prevent unwanted compiler
12137 warnings.
12138
12139 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
12140
12141 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
12142 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
12143 to insn adjusting stack/frame pointer.
12144 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
12145 accept operands that cause the insn to be non-splittable.
12146
12147 2002-01-08 Graham Stott <grahams@redhat.com>
12148
12149 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
12150 (C_TYPE_FIELDS_VOLATILE): Likewise.
12151 (C_TYPE_BEING_DEFINED): Likewise.
12152 (C_IS_RESERVED_WORD): Likewise.
12153 (C_TYPE_VARIABLE_SIZE): Likewise.
12154 (C_DECL_VARIABLE_SIZE): Likewise.
12155 (C_MISSING_PROTOTYPE_WARNED): Likewise.
12156 (C_SET_EXP_ORIGINAL_CODE): Likewise.
12157 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
12158 parenthesis.
12159 (C_DECL_ANTICIPATED): Likewise.
12160 (c_build_type_variant): Add parenthesis.
12161
12162 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
12163
12164 * gcc.c (option_map): Remove --version.
12165 (process_command): Handle -fversion following the GNU Coding
12166 Standards. Partially addresses PR other/704.
12167
12168 2002-01-08 Graham Stott <grahams@redhat.com>
12169
12170 * combine.c (combine_instructions): Fix typo.
12171
12172 2002-01-08 Graham Stott <grahams@redhat.com>
12173
12174 * debug.h: Use "tree" and "rtx" throughout.
12175
12176 * debug.c: Likewise.
12177
12178 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
12179
12180 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
12181 constant pool, use the pool's version of the symbol instead.
12182
12183 2002-01-07 Richard Henderson <rth@redhat.com>
12184
12185 * regrename.c (find_oldest_value_reg): Ignore the value chain if
12186 the original register was copied in a mode with a fewer number of
12187 hard registers than the desired mode.
12188 (copyprop_hardreg_forward_1): Likewise.
12189 (debug_value_data): Fix loop test.
12190 * toplev.c (parse_options_and_default_flags): Reenable
12191 -fcprop-registers at -O1.
12192
12193 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12194
12195 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12196 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12197
12198 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12199 predicates.
12200
12201 * config/rs6000/rs6000.md: Add altivec predicate patterns.
12202
12203 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12204
12205 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12206 (pa_output_function_prologue): Output local label at the beginning of
12207 the prologue when profiling.
12208 (hppa_profile_hook): Use the local label rather than the function label.
12209 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12210
12211 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12212
12213 * config/rs6000/rs6000.c (print_operand): Remove extra space.
12214 (altivec_expand_unop_builtin): Fix thinko.
12215 (altivec_expand_binop_builtin): Same.
12216 (altivec_expand_ternop_builtin): Same.
12217 (altivec_expand_builtin): Same.
12218
12219 2002-01-07 Richard Henderson <rth@redhat.com>
12220
12221 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12222
12223 2002-01-07 Jason Merrill <jason@redhat.com>
12224
12225 * unwind-dw2.c (execute_cfa_program): Use < again.
12226
12227 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12228
12229 * predict.c (combine_predictions_for_insn): Avoid division by zero.
12230
12231 2002-01-07 Jakub Jelinek <jakub@redhat.com>
12232
12233 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12234 Don't allow -1 - x -> ~x simplifications in the first pass.
12235
12236 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
12237
12238 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12239 arguments.
12240 (altivec_expand_binop_builtin): Same.
12241 (altivec_expand_unop_builtin): Same.
12242 (print_operand): Fix typo.
12243 (bdesc_1arg): Add vupk* variants.
12244
12245 * rs6000.h (rs6000_builtins): Add vupk* enums.
12246
12247 * rs6000.md: Add altivec_vupk* variants.
12248
12249 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
12250
12251 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12252 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12253 and last update dates.
12254
12255 2002-01-07 Janis Johnson <janis187@us.ibm.com>
12256
12257 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12258
12259 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
12260
12261 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12262 * config/avr/avr.h (CPP_SPEC): Likewise.
12263 (LINK_SPEC): Likewise.
12264 (CRT_BINUTILS_SPECS): Likewise.
12265 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12266 * doc/invoke.texi (AVR Options): Document them.
12267
12268 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
12269
12270 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12271 LABEL_NUSES.
12272
12273 2002-01-07 Graham Stott <grahams@redhat.com>
12274
12275 * config/i386/i386.h: Update copyright date.
12276 (HALF_PIC_PTR): Add parenthesis.
12277 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12278 (CONSTANT_ALIGNMENT): Add parenthesis.
12279 (DATA_ALIGNMENT): Likewise.
12280 (LOCAL_ALIGNMENT): Likewise.
12281 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12282 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12283 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12284 (HARD_REGNO_NREGS): Add paranethesis.
12285 (VALID_SSE_REG_MODE): Whitespace.
12286 (VALID_MMX_REG_MODE): Whitespace.
12287 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12288 (ix86_hard_regno_mode_ok): Add parenthesis.
12289 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12290 (RETURN_IN_MEMORY): Whitespace.
12291 (N_REG_CLASSES): Add parenthesis.
12292 (INTEGER_CLASS_P): Add parenthesis and wrap.
12293 (FLOAT_CLASS_P): Likewise.
12294 (SSE_CLASS_P): Likewise.
12295 (MMX_CLASS_P): Likewise.
12296 (MAYBE_INTEGER_CLASS_P): Likewise.
12297 (MAYBE_FLOAT_CLASS_P): Likewise.
12298 (MAYBE_SSE_CLASS_P): Likewise.
12299 (MAYBE_MMX_CLASS_P): Likewise.
12300 (Q_CLASS_P): Likewise.
12301 (GENERAL_REGNO_P): Uppercase macro parameter.
12302 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12303 (FP_REGNO_P): Likewise.
12304 (ANY_FP_REGNO_P): Uppercase macro parameter.
12305 (SSE_REGNO_P): Likewise.
12306 (SSE_REGNO): Likewise.
12307 (SSE_REG_P): Likewise.
12308 (SSE_FLOAT_MODE_P): Likewise.
12309 (MMX_REGNO_P): Likewise.
12310 (MMX_REG_P):Likewise.
12311 (STACK_REG_P): Likewise.
12312 (NON_STACK_REG_P): Likewise.
12313 (STACK_TOP_P): Likewise.
12314 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12315 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12316 (SECONDARY_MEMORY_NEEDED): Likewise.
12317 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12318 (MD_ASM_CLOBBERS): Whitespace and wrap.
12319 (MUST_PASS_IN_STACK): Whitespace and wrap.
12320 (RETURN_POPS_ARGS): Add parenthesis.
12321 (INIT_CUMULATIVE_ARGS): Likewise.
12322 (FUNCTION_ARG): Likewise.
12323 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12324 (SETUP_INCOMING_VARARGS): Likewise.
12325 (BUILD_VA_LIST_TYPE): Add parenthesis.
12326 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12327 parenthsis.
12328 (EXPAND_BUILTIN_VA_ARG): Likewise.
12329 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12330 (INITIALIZE_TRAMPOLINE): Add parenthesis.
12331 (INITIAL_ELIMINATION_OFFSET): Likewise.
12332 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12333 (REGNO_OK_FOR_BASE_P): Likewise.
12334 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12335 (REGNO_OK_FOR_DIREG_P): Likewise.
12336 (REG_OK_FOR_INDEX_P): Whitespace.
12337 (REG_OK_FOR_BASE_P): Whitespace.
12338 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12339 parenthesis.
12340 (FIND_BASE_TERM): Fix typo.
12341 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
12342 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12343 (SYMBOLIC_CONST; Whitespace.
12344 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
12345 (ENCODE_SECTION_INFO): Whitespace.
12346 (FINALIZE_PIC): Remove do { ... } while (0).
12347 (PROMOTE_MODE): Wrap in do { ... } while (0).
12348 (CONST_COSTS): Whitespace.
12349 (RTX_COSTS): Add paramethesis, whitespace and wrap.
12350 (REGISTER_MOVE_COST): Add parenthesis.
12351 (MEMORY_MOVE_COST): Likewise.
12352 (EXTRA_CC_MODES): Whitespace.
12353 (SELECT_CC_MODE): Add parenthesis and whitespace.
12354 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12355 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12356 (ASM_OUTPUT_LABEL): Add paramethesis.
12357 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12358 (ASM_OUTPUT_REG_POP): Likewise.
12359 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12360 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12361
12362 * config/i386/i386.c: Update copyright.
12363 (CHECK_STACK_LIMIT): Add parenthesis.
12364 (AT_BP): Uppercase macro parameter.
12365 (x86_64_int_parameter_registers): Constify.
12366 (x86_64_int_return_registers): Likewise.
12367 (ix86_compare_op0): Use rtx.
12368 (construct_container): Constify INTREG parameter.
12369 (function_arg): Use rtx.
12370
12371 * diagnostic.h: Update copyright date.
12372 (output_buffer_state): Add parenthesis.
12373 (output_buffer_format_args): Likewise.
12374
12375 * combine.c (combine_instructions): Replace XEXP (links, 0)
12376 with link.
12377
12378 2002-01-06 H.J. Lu <hjl@gnu.org>
12379
12380 * cfgcleanup.c (thread_jump): Fix 2 typos.
12381
12382 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
12383
12384 * config.gcc: Add support for --enable-altivec.
12385
12386 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12387
12388 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12389
12390 2002-01-06 Jakub Jelinek <jakub@redhat.com>
12391
12392 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12393 __objc_class_name_*.
12394
12395 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
12396
12397 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12398
12399 2002-01-06 Richard Henderson <rth@redhat.com>
12400
12401 * reorg.c (emit_delay_sequence): Remove death notes, not merely
12402 nop them out. Increment label reference count for REG_LABEL.
12403 (fill_slots_from_thread): Frob label reference count around
12404 delete_related_insns.
12405
12406 2002-01-05 Richard Henderson <rth@redhat.com>
12407
12408 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12409 jump threading.
12410
12411 2002-01-05 Richard Henderson <rth@redhat.com>
12412
12413 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12414 * integrate.c (output_inline_function): Likewise.
12415 * toplev.c (rest_of_compilation): Do it here instead. Move call
12416 to remove_unnecessary_notes after emitting abstract instance.
12417 Force an emitted nested function to have its parent emited as well.
12418 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12419 for null.
12420 (rtl_for_decl_location): Do not look at reload data structures
12421 before reload has run.
12422
12423 2002-01-05 Kazu Hirata <kazu@hxi.com>
12424
12425 * cse.c: Fix formatting.
12426 * dwarf2asm.c: Likewise.
12427 * dwarf2out.c: Likewise.
12428 * explow.c: Likewise.
12429 * expmed.c: Likewise.
12430 * function.c: Likewise.
12431 * gcov.c: Likewise.
12432 * gencheck.c: Likewise.
12433 * genrecog.c: Likewise.
12434 * ggc-common.c: Likewise.
12435 * ggc-page.c: Likewise.
12436 * global.c: Likewise.
12437
12438 2002-01-05 Kazu Hirata <kazu@hxi.com>
12439
12440 * combine.c: Fix formatting.
12441
12442 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
12443
12444 PR middle-end/1557
12445 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12446
12447 2002-01-05 David Edelsohn <edelsohn@gnu.org>
12448
12449 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12450 as 1 for __powerpc64__ as well.
12451
12452 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12453
12454 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12455 return it.
12456
12457 2002-01-05 Daniel Berlin <dan@dberlin.org>
12458
12459 * lcm.c: Revert change, due to performance regression it causes on
12460 SPEC because it's slightly more conservative (sigh, I hate
12461 edge-based LCM).
12462
12463 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
12464
12465 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12466
12467 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
12468
12469 * doc/cppinternals.texi: Update.
12470
12471 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
12472
12473 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12474 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12475 negatives.
12476 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
12477 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12478 kludge for pre-october-14th mmix versions to handle new-found bug
12479 with PUSHJ/PUSHGO and the register stack.
12480 * config/mmix/mmix.h (struct machine_function): Rename member
12481 has_call_value_without_parameters to has_call_without_parameters.
12482 All referers changed.
12483 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12484 TARGET_MASK_BRANCH_PREDICT): New macros.
12485 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12486 -mno-reg-stack-fill-bug-workaround.
12487 * config/mmix/mmix.md ("call"): Set struct machine member
12488 has_call_without_parameters.
12489
12490 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
12491
12492 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12493
12494 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
12495
12496 * cfgcleanup.c: Include tm_p.h
12497 (mark_effect): Fix handling of hard register; fix handling of SET
12498
12499 2002-01-04 Kazu Hirata <kazu@hxi.com>
12500
12501 * config/h8300/h8300.md (anonymous patterns): Check that
12502 operands are registers before using REGNO on them.
12503
12504 2002-01-03 Roland McGrath <roland@frob.com>
12505
12506 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12507
12508 2002-01-04 Jakub Jelinek <jakub@redhat.com>
12509
12510 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12511 * c-common.h (genrtl_expr_stmt_value): Likewise.
12512 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12513 (expand_expr_stmt_value): Add maybe_last argument.
12514 Don't warn about statement with no effect if it is the last statement
12515 in expression statement.
12516 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12517 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12518 expand_expr_stmt_value.
12519 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12520 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12521 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12522 as maybe_last to expand_expr_stmt_value.
12523
12524 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
12525
12526 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12527 be passed in, do not build it.
12528 (c_begin_if_stmt): New function.
12529 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12530 * c-common.h (c_expand_start_cond): Update prototype.
12531 (c_begin_if_stmt): Prototype new function.
12532 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12533 * c-parse.in (if_prefix): Use c_begin_if_stmt,
12534 c_begin_while_stmt and c_finish_while_stmt_cond.
12535
12536 2002-01-04 William Cohen <wcohen@redhat.com>
12537
12538 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12539 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12540 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12541 * config/pa/som.h (ASM_FILE_START): Likewise.
12542
12543 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
12544
12545 * lcm.c: Include df.h.
12546 Add available_transfer_function prototype.
12547 (compute_available): Rework to use iterative dataflow framework.
12548 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12549 with bb_info in df.h
12550 (available_transfer_function): New function.
12551
12552 * Makefile.in (lcm.o): add df.h to dependencies.
12553
12554 2002-01-04 Richard Henderson <rth@redhat.com>
12555
12556 * config/alpha/alpha.c (some_operand): Accept HIGH.
12557 (input_operand): Likewise; accept simple references to globals.
12558 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12559 (alpha_const_double_ok_for_letter_p): Likewise.
12560 (alpha_extra_constraint): Likewise.
12561 (alpha_preferred_reload_class): Likewise. Do not force
12562 symbolic constants to memory.
12563 (alpha_legitimate_address_p): Accept simple references
12564 to small_symbolic_operand.
12565 (alpha_legitimize_address): New arg scratch. Be prepared to be
12566 called when no_new_pseudos. Emit simple symbolic references.
12567 Split integers into low, high, and rest.
12568 (alpha_expand_mov): Use alpha_legitimize_address.
12569 (some_small_symbolic_mem_operand): New.
12570 (split_small_symbolic_mem_operand): New.
12571 * config/alpha/alpha-protos.h: Update.
12572 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12573 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12574 (EXTRA_CONSTRAINT): Likewise.
12575 (PREFERRED_RELOAD_CLASS): Likewise.
12576 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12577 (PREDICATE_CODES): Update.
12578 * config/alpha/alpha.md: New post-reload splitters to convert
12579 simplfied symbolic operands to the form that references $29.
12580 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12581 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12582
12583 2002-01-03 Richard Henderson <rth@redhat.com>
12584
12585 * local-alloc.c (function_invariant_p): Update commentary.
12586
12587 2002-01-04 H.J. Lu <hjl@gnu.org>
12588
12589 * toplev.c (rest_of_compilation): Fix a typo when calling
12590 cleanup_cfg.
12591
12592 2002-01-03 Kazu Hirata <kazu@hxi.com>
12593
12594 * c-common.c: Fix formatting.
12595 * diagnostic.c: Likewise.
12596 * doloop.c: Likewise.
12597 * dwarf2out.c: Likewise.
12598
12599 2002-01-03 Kazu Hirata <kazu@hxi.com>
12600
12601 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12602 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12603
12604 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12605
12606 * cpperror.c: Update comments and copyright.
12607 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12608 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12609
12610 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12611
12612 * collect2.c (main): Use strcmp when testing for "-shared".
12613
12614 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12615
12616 * cppmacro.c: Don't include intl.h. Update comments.
12617 (new_number_token): Allocate enough buffer for 64-bit unsigned
12618 integers; update prototype.
12619 * cppmain.c: Update comments.
12620
12621 2002-01-03 William Cohen <wcohen@redhat.com>
12622
12623 * function.h (struct function): Add profile.
12624 (current_function_profile): New.
12625 doc/extend.texi: Update documentation.
12626 * final.c (final_start_function): Use current_function_profile
12627 instead of profile_flag.
12628 (profile_after_prologue): Likewise.
12629 * function.c (expand_function_start): Likewise.
12630 (expand_function_start): Likewise.
12631 * config/alpha/alpha.c (direct_call_operand):
12632 (alpha_does_function_need_gp): Likewise.
12633 (alpha_expand_prologue): Likewise.
12634 * config/arm/arm.c (arm_expand_prologue): Likewise.
12635 thumb_expand_prologue: Likewise.
12636 * config/d30v/d30v.c (d30v_stack_info): Likewise.
12637 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12638 (fr30_expand_prologue): Likewise.
12639 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12640 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12641 * config/i386/i386.h (FINALIZE_PIC): Likewise.
12642 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12643 * config/i960/i960.c (i960_output_function_prologue): Likewise.
12644 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12645 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12646 (m32r_expand_prologue): Likewise.
12647 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12648 (m88k_expand_prologue): Likewise.
12649 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12650 * config/mips/mips.c (compute_frame_size): Likewise.
12651 (mips_expand_prologue): Likewise.
12652 (mips_can_use_return_insn): Likewise.
12653 * config/pa/elf.h (ASM_FILE_START): Likewise.
12654 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12655 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12656 * config/pa/som.h (ASM_FILE_START): Likewise.
12657 * config/romp/romp.c (romp_using_r14): Likewise.
12658 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12659 (rs6000_stack_info): Likewise.
12660 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12661 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12662 * config/v850/v850.c (compute_register_save_size): Likewise.
12663
12664 2002-01-03 Jakub Jelinek <jakub@redhat.com>
12665
12666 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12667 gen_lowpart_common fails, use gen_lowpart_SUBREG.
12668
12669 2002-01-03 Turly O'Connor <turly@apple.com>
12670
12671 * darwin.c (machopic_output_possible_stub_label): Don't generate
12672 stub routines for pseudo-stubs which we've just defined.
12673
12674 2002-01-03 Kazu Hirata <kazu@hxi.com>
12675
12676 * builtins.c: Fix formatting.
12677 * c-typeck.c: Likewise.
12678 * combine.c: Likewise.
12679 * expr.c: Likewise.
12680 * loop.c: Likewise.
12681
12682 2002-01-03 Andreas Schwab <schwab@suse.de>
12683
12684 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12685 and return true if _cpp_push_next_buffer pushed a new include
12686 file.
12687 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12688 _cpp_pop_file_buffer did not push a new file.
12689 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12690
12691 2002-01-02 Eric Christopher <echristo@redhat.com>
12692
12693 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12694 FIND_REG_INC_NOTE call. Update copyright.
12695 * loop.c (canonicalize_condition): Ditto.
12696 * reorg.c (delete_scheduled_jump): Ditto.
12697
12698 2002-01-03 Kazu Hirata <kazu@hxi.com>
12699
12700 * gcse.c: Fix formatting.
12701
12702 2002-01-03 Graham Stott <grahams@redhat.com>
12703
12704 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12705 forward defs for struct tags rtx_def, union_tree, rtvec_def
12706 also output corresponding typedefs for rtx, tree, and rtvec.
12707
12708 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12709 rtvec_def along with corresponding typedefs for rtx, tree, and
12710 rtvec to config.h, hconfig.h, tconfig.h.
12711
12712 2002-01-03 Graham Stott <grahams@redhat.com>
12713
12714 * tree.h: Update copyright date.
12715 (IS_EXPR_CODE_CLASS): Add parenthesis.
12716 (TREE_SET_CODE): Add whitespace.
12717 (TREE_CHECK): Add parenthesis.
12718 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12719 (CST_OR_CONSTRUCTOR_CHECK):
12720 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12721 (TREE_SYMBOL_REFERENCED): Whitespace.
12722 (INT_CST_LT): Likewise.
12723 (INT_CST_LT_UNSIGNED): Likewise.
12724 (tree_real_cst): Unwrap comment.
12725 (tree_string): Likewise.
12726 (tree_complex): Likewise.
12727 (IDENTIFIER_POINTER): correct cast.
12728 (SAVE_EXPR_CONTEXT): Whitespace.
12729 (EXPR_WFL_FILENAME_NODE): Likewise.
12730 (EXPR_WFL_FILENAME): Remove parenthesis.
12731 (DECL_ORIGIN): Add parenthesis.
12732 (DECL_FROM_INLINE): Use NULL_TREE.
12733 (build_int_2): Whitespace.
12734 (build_type_variant): Add parenthesis.
12735
12736 * gcc/jcf-parse.c: Update copyright date.
12737 (yyparse): Constify resource_filename.
12738
12739 2002-01-03 Graham Stott <grahams@redhat.com>
12740
12741 * rtl.h: Update copyright date.
12742 (RTL_CHECK1): Wrap long line.
12743 (RTL_CHECK2): Likewise.
12744 (RTL_CHECKC1): Wrap long line and whitespace.
12745 (RTL_CHECKC2): Likewise.
12746 (XWINT): Whitespace.
12747 (XINT): Likewise.
12748 (XSTR): Likewise.
12749 (XEXP): Likewise.
12750 (XVEC): Likewise.
12751 (XMODE): Likewise.
12752 (XBITMAP): Likewise.
12753 (XTREE): Likewise.
12754 (XBBDEF): Likewise.
12755 (XTMPL): Likewise.
12756 (X0WINT): Likewise.
12757 (X0INT):Likewise.
12758 (X0UINT): Likewise.
12759 (X0STR): Likewise.
12760 (X0EXP): Likewise.
12761 (X0VEC): Likewise.
12762 (X0MODE): Likewise.
12763 (X0BITMAP): Likewise.
12764 (X0TREE): Likewise.
12765 (X0BBDEF): Likewise.
12766 (X0ADVFLAGS): Likewise.
12767 (X0CSELIB): Likewise.
12768 (X0MEMATTR): Likewise.
12769 (XCWINT): Likewise.
12770 (XCINT): Likewise.
12771 (XCUINT): Likewise.
12772 (XCSTR): Likewise.
12773 (XCEXP): Likewise.
12774 (XCVEC): Likewise.
12775 (XCMODE): Likewise.
12776 (XCBITMAP): Likewise.
12777 (XCTREE): Likewise.
12778 (XCBBDEF): Likewise.
12779 (XCADVFLAGS): Likewise.
12780 (XCCSELIB): Likewise.
12781 (XC2EXP): Likewise.
12782 (INSN_UID): Likewise.
12783 (PREV_INSN): Likewise.
12784 (PATTERN): Likewise.
12785 (INSN_CODE): Likewise.
12786 (PUT_REG_NOTE_KIND): Likewise.
12787 (CODE_LABEL_NUMBER): Likewise.
12788 (NOTE_SOURCE_FILE): Likewise.
12789 (NOTE_BLOCK): Likewise.
12790 (NOTE_EH_HANDLER): Likewise.
12791 (NOTE_RANGE_INFO): Likewise.
12792 (NOTE_LIVE_INFO): Likewise.
12793 (NOTE_BASIC_BLOCK): Likewise.
12794 (NOTE_EXPECTED_VALUE): Likewise.
12795 (NOTE_LINE_NUMBER): Likewise.
12796 (LABEL_NAME): Likewise.
12797 (LABEL_NUSES): Likewise.
12798 (LABEL_ALTERNATE_NAME): Likewise.
12799 (ADDRESSOF_DECL): Likewise.
12800 (JUMP_LABEL): Likewise.
12801 (LABEL_NEXTREF): Likewise.
12802 (REGNO): Likewise.
12803 (ORIGINAL_REGNO: Likewise.
12804 (HARD_REGISTER_NUM_P): Add parenthesis.
12805 (SUBREG_REG): Whitespace.
12806 (SUBREG_BYTE): Likewise.
12807 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12808 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12809 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12810 (ASM_OPERANDS_INPUT_VEC): Likewise.
12811 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12812 (ASM_OPERANDS_INPUT): Likewise.
12813 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12814 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12815 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12816 (ASM_OPERANDS_INPUT_MODE): Likewise.
12817 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12818 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12819 (MEM_SET_IN_STRUCT_P): Minor reformat.
12820 (TRAP_CONDITION): Whitespace.
12821 (TRAP_CODE): Likewise.
12822 (COND_EXEC_TEST): Likewise.
12823 (COND_EXEC_CODE): Likewise.
12824 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12825 (PHI_NODE_P): Add parenthesis.
12826 (plus_constant): Whitespace and add parenthesis.
12827
12828 2002-01-03 Kazu Hirata <kazu@hxi.com>
12829
12830 * config/avr/avr.c: Fix comment typos.
12831 * config/c4x/c4x.md: Likewise.
12832 * config/dsp16xx/dsp16xx.h: Likewise.
12833 * config/dsp16xx/dsp16xx.md: Likewise.
12834 * config/i386/i386.md: Likewise.
12835 * config/ia64/ia64.c: Likewise.
12836 * config/m32r/m32r.h: Likewise.
12837 * config/m68hc11/m68hc11.md: Likewise.
12838 * config/mmix/mmix.c: Likewise.
12839 * config/mn10200/mn10200.c: Likewise.
12840 * config/romp/romp.c: Likewise.
12841 * config/sh/sh.c: Likewise.
12842 * config/stormy16/stormy16.c: Likewise.
12843 * config/stormy16/stormy16.h: Likewise.
12844 * config/stormy16/stormy16.md: Likewise.
12845
12846 2002-01-03 Graham Stott <grahams@redhat.com>
12847
12848 * loop.h: Update copyright date.
12849 (LOOP_MOVABLES): Fix typo.
12850 (LOOP_REGS): Likewise.
12851 (LOOP_IVS): Likewise.
12852
12853 2002-01-03 Graham Stott <grahams@redhat.com>
12854
12855 * cppinit.c: Update copyright date.
12856 Don't include output.h
12857 * Makefile.in: Update copyright date.
12858 Update dependency.
12859
12860 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12861
12862 PR c/5226
12863 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12864 (-pthread) Add to RS/6000 options.
12865
12866 2002-01-02 Kazu Hirata <kazu@hxi.com>
12867
12868 * except.c: Fix comment typos.
12869 * loop.c: Likewise.
12870 * varasm.c: Likewise.
12871 * doc/tm.texi: Fix a typo.
12872
12873 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12874
12875 * c-typeck.c (output_init_element): Allow initializing static storage
12876 duration objects with compound literals.
12877
12878 2002-01-02 Richard Henderson <rth@redhat.com>
12879
12880 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12881 after abusing it.
12882
12883 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12884
12885 * gcc.c (default_compilers): Const-ify.
12886 * mips-tdump.c (stab_names): Likewise.
12887 * mips-tfile.c (map_coff_types, map_coff_storage,
12888 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12889 pseudo_ops_t, pseudo_ops): Likewise.
12890 * protoize.c (default_include): Likewise
12891
12892 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12893 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12894 Add array size in declaration.
12895 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12896 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12897 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12898 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12899 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12900 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12901 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12902 emtens, make_nan): Const-ify.
12903 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12904 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12905
12906 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12907
12908 * config.gcc (ia64-*-*): Set extra_headers.
12909 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12910 * config/alpha/t-osf: Remove.
12911 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12912
12913 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12914
12915 * config/rs6000/t-aix43: Revert previous change.
12916
12917 2002-01-02 Jason Merrill <jason@redhat.com>
12918
12919 * c-decl.c (c_expand_body): Call outlining_inline_function when
12920 emitting an inline function out of line.
12921
12922 2002-01-02 Richard Henderson <rth@redhat.com>
12923
12924 * dwarf2out.c (limbo_die_node): Add created_for member.
12925 (new_die): New argument created_for. Update all callers.
12926 (mark_limbo_die_list): New.
12927 (dwarf2out_init): Register limbo_die_list as a root.
12928 (dwarf2out_finish): Force insert limbo dies into their function
12929 context.
12930
12931 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12932
12933 PR c++/5089
12934 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12935
12936 2002-01-02 Kazu Hirata <kazu@hxi.com>
12937
12938 * config/h8300/fixunssfsi.c: Update copyright.
12939 Fix comment typos.
12940 Fix formatting.
12941 * config/h8300/h8300.c: Update copyright.
12942 Eliminate warnings.
12943
12944 2002-01-02 Kazu Hirata <kazu@hxi.com>
12945
12946 * config/romp/romp.c: Fix comment formatting.
12947 * config/romp/romp.h: Likewise.
12948 * config/romp/romp.md: Likewise.
12949 * config/s390/s390.c: Likewise.
12950 * config/stormy16/stormy16.c: Likewise.
12951 * config/stormy16/stormy16.h: Likewise.
12952
12953 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12954
12955 * c-common.h (genrtl_expr_stmt_value): Declare.
12956 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12957 (genrtl_goto_stmt_value): ... this new function. Pass new
12958 argument down to expand_expr_stmt_value, taking
12959 TREE_ADDRESSABLE into account.
12960 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12961 STMT_EXPR as addressable, i.e., one whose result we want.
12962 * expr.c (expand_expr): Don't save expression statement value
12963 of labeled_blocks or loop_exprs.
12964 * stmt.c (expand_expr_stmt): Redirect to...
12965 (expand_expr_stmt_value): ... this new function. Use new
12966 argument to tell whether to save expression value.
12967 (expand_end_stmt_expr): Reset last_expr_type and
12968 last_expr_value if we don't have either.
12969 * tree-inline.c (declare_return_variable): Mark its use
12970 statement as addressable.
12971 * tree.h: Document new use of TREE_ADDRESSABLE.
12972 (expand_expr_stmt_value): Declare.
12973
12974 2002-01-01 Tom Rix <trix@redhat.com>
12975
12976 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12977 rs6000_emit_allocate_stack.
12978
12979 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12980
12981 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12982 ${srcdir}/ginclude/ to every entry in extra_headers.
12983 * configure: Regenerate.
12984 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12985 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12986 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12987 * ginclude/proto.h: Rename to config/convex/proto.h.
12988
12989 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12990
12991 * attribs.c (handle_vector_size_attribute): Use host_integerp
12992 and tree_int_cst; remove warnings.
12993 * caller-save.c (insert_restore): Add cast to get rid of warning.
12994 (insert_save): Likewise.
12995 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12996 * regmove.c (find_matches): Add temporary var to kill a warning.
12997
12998 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12999
13000 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13001 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13002 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13003 (vms-dwarf2eh.o): Add Makefile rule.
13004 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13005 * config/alpha/vms-dwarf2eh.asm: New file.
13006
13007 * gcc.c (delete_if_ordinary): Delete all versions.
13008
13009 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
13010
13011 * config/mmix/mmix.md: Update FIXME to not mention
13012 define_constants.
13013 (MMIX_rJ_REGNUM): New define_constants constant.
13014 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13015 "*movdicc_real"): Adjust contraints formatting.
13016 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13017 for branch prediction.
13018 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13019 output template.
13020 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13021 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13022 number. Delete related FIXMEs.
13023 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13024 from number to MMIX_rJ_REGNUM.
13025 (TARGET_MASK_BRANCH_PREDICT): New.
13026 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13027 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
13028 value. Add -mbranch-predict and -mno-branch-predict.
13029 (TARGET_VERSION): Drop date.
13030 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13031 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13032 for finding out global symbols.
13033 (mmix_asm_output_labelref): Revert condition for global symbol.
13034 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13035 (mmix_print_operand_punct_valid_p): A '+' is valid.
13036
13037 See ChangeLog.6 for earlier changes.
This page took 0.562714 seconds and 4 git commands to generate.