OSDN Git Service

543d1c61fa2524e72facca601b1be06cf2104189
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-06  David S. Miller  <davem@redhat.com>
2
3         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4         allow result to overlap input operands in memory.
5
6 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7
8 doc:
9         * cpp.texi: Update multichar charconst docs.
10
11 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12
13         * cpplex.c (cpp_interpret_charconst): Sign-extend each
14         character.  Don't ignore excess characters.  Treat
15         multicharacter character constants as signed.
16         (cpp_parse_escape): Clarify diagnostic.
17
18 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
19
20         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
21         use add instead of shift.
22         (ashldi3_sp64): Likewise.
23         (ashlsi3_const1, ashldi3_const1): Remove.
24         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
25         * config/sparc/sparc.c (const1_operand): New.
26
27 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
28
29         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
30
31 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
32
33         PR target/6561
34         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
35
36 2002-05-05  Richard Henderson  <rth@redhat.com>
37
38         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
39         memory latency adjustments.
40         (alpha_variable_issue): Remove.
41         (alpha_use_dfa_pipeline_interface): New.
42         (alpha_multipass_dfa_lookahead): New.
43         * config/alpha/alpha.md: Remove define_function_unit scheduling;
44         include new dfa scheduling.
45         (attr type): Add none.
46         (blockage): Use it.
47         * config/alpha/ev4.md: New.
48         * config/alpha/ev5.md: New.
49         * config/alpha/ev6.md: New.
50
51 2002-05-05  David S. Miller  <davem@redhat.com>
52
53         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
54
55 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
56
57         * cse.c: Fix formatting.
58         * emit-rtl.c: Likewise.
59
60 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
61
62         * genautomata.c (initiate_states): Add additional guard to
63         initialize `units_array'.
64
65 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
66
67         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
68         process_unit_to_form_the_same_automaton_unit_lists,
69         form_the_same_automaton_unit_lists
70         check_unit_distributions_to_automata): New prototypes and
71         functions.
72         (check_automata): Rename it into `check_automata_insn_issues'.
73         (unit_decl): New fields `the_same_automaton_unit' and
74         `the_same_automaton_message_reported_p'.
75         (unit_decl_t): New typedef.
76         (the_same_automaton_lists): New gloval variable.
77         (unit_regexp, unit_set_el, units_array, units_cmp,
78         output_get_cpu_unit_code_func): Use the typedef.
79         (evaluate_max_reserv_cycles): Increment
80         `description->max_insn_reserv_cycles'.
81         (initiate_states): Don't increment `max_cycles_num'.
82         (transform_insn_regexps): Move code around transformation of
83         regexps from `generate'.
84         (generate): Remove call of `transform_insn_regexps'.
85         (expand_automata): Call `transform_insn_regexps' and
86         `check_unit_distributions_to_automata'.  Check errors before
87         `generate'.
88
89         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
90         automaton `ultrasparc3_1'.
91         
92 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
93
94         * c-common.c (c_common_init): Set up CPP arithmetic.
95         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
96         something reasonable for the host.
97         (sanity_checks): Add checks.
98         (cpp_read_main_file): Call sanity_checks() from here...
99         (cpp_post_options): ... not here.
100         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
101         * cpplib.h (struct cpp_options): New member int_precision.
102
103 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
104
105         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
106
107 2002-05-04  David S. Miller  <davem@redhat.com>
108
109         * config/sparc/linux.h, config/sparc/linux64.h
110         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
111
112         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
113         more RTX codes.
114         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
115
116         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
117         of SETs.
118
119 2002-05-05  Tim Josling  <tej@melbpc.org.au>
120
121         * treelang; New directory for new sample language treelang. 
122
123 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
124
125         * Makefile.in (c-lex.o): Update.
126         * c-lex.c: Include target.h.
127         (cb_register_builtins): New.
128         (init_c_lex): Set builtins callback.
129         * c-lex.h (cpp_define, cpp_assert): New prototypes.
130         * cppinit.c (init_builtins): Use callback, including for
131         GXX_WEAK.
132         * cpplib.h (struct cpp_callbacks): New member.
133         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
134         (TARGET_INITIALIZER): Update.
135         * target.h (struct gcc_target): New hook.
136         * tree.c (default_register_cpp_builtins): New.
137         * tree.h (default_register_cpp_builtins): New.
138 doc:
139         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
140
141 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
142
143         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
144         (cpp_post_options): Move sanity checks to...
145         (sanity_checks): New.
146         * cpplex.c (maybe_read_ucs): Fix prototype.
147         (parse_string, cpp_parse_escape): Cast for %c format specifier.
148         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
149         if necessary.
150
151 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
152
153         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
154         builtins.  Use V2DI patterns instead of TI for logical operations.
155         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
156         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
157         (ix86_expand_builtins): Change the pattern used for movntdq.
158         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
159         sse2_nandv2di3): New patterns.
160         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
161         on operands.
162         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
163         (cvtdq2pd): Correct mode on operand 1.
164         (sse2_umulsidi3): Describe without unspec.
165         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
166         machine modes.
167         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
168         (ashlv2di3): Likewise, from sse2_ashlv2di3.
169         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
170         ashlv4si3, ashlv2di3): Use SImode for shift count.
171         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
172         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
173         New patterns.
174         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
175         New typedefs.
176         (__m128i, __m128d): New macros.
177         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
178         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
179         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
180         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
181         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
182         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd, 
183         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
184         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
185         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd, 
186         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
187         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
188         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
189         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
190         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
191         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
192         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
193         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
194         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
195         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
196         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
197         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
198         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
199         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
200         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
201         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
202         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
203         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
204         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
205         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
206         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
207         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
208         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
209         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
210         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
211         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
212         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
213         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
214         functions.
215         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32, 
216         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
217
218 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
219
220         * dwarf2out.c: Fix formatting.
221         * varasm.c: Likewise.
222
223 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
224
225         PR c/6543
226         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
227         clobber and use result as temporary value.
228
229 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
230
231         * expr.c (force_operand): Use expand_simple_* to handle more
232         cases.
233
234 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
235
236         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
237         and sign-extension.
238         (lex_charconst): Update for change in prototype of
239         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
240         appropriately.
241         * cpphash.h (BITS_PER_CPPCHAR_T): New.
242         * cppinit.c (cpp_create_reader): Initialize them for no
243         change in semantics.
244         (cpp_post_options): Add sanity checks.
245         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
246         and truncation issues.  Calculate in type cppchar_t.
247         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
248         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
249         run-time dependent precision correctly.  Return whether the
250         result is signed or not.
251         * cpplib.c (dequote_string): Use cppchar_t; update.
252         * cpplib.h (cppchar_signed_t): New.
253         struct cpp_options): New precision members.
254         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
255         * cppexp.c (eval_token): Update.
256
257 2002-05-03  David S. Miller  <davem@redhat.com>
258
259         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
260         * config/sparc/sparc.c (sparc_rtx_costs): New function
261         implementing RTX_COSTS and CONST_COSTS.
262         * config/sparc/sparc.h (CONST_COSTS): Delete.
263         (RTX_COSTS_CASES): Define.
264         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
265         the work.
266
267         * config/sparc/sparc.md (DFA schedulers): Split out...
268         * config/sparc/cypress.md, config/sparc/hypersparc.md,
269         config/sparc/sparclet.md, config/sparc/supersparc.md,
270         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
271
272         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
273         checks on it, always defined for Sparc.
274
275         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
276         Tweak, and add more detailed comments.
277
278 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
279
280         * Re-apply patch accidentally reverted with
281         DFA scheduler merge: remove all rules and variables to slurp
282         source files out of libiberty and rebuild them with HOST_CC.
283         ($(HOST_PREFIX_1)varray.o): New rule.
284         (genattrtab rule): Word wrap.
285
286 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
287
288         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
289         (CPP_SUBTARGET_SPEC): Define.
290         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
291         cpp_subtarget specs.
292         (CPP_SPEC): Redefine to include %(cpp_subtarget).
293
294 2002-05-03  David S. Miller  <davem@redhat.com>
295
296         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
297         * target.h (struct gcc_target): Delete cycle_display member.
298
299         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
300         (rtx_needs_barrier): Delete reference to cycle_display unspec.
301         (ia64_sched_reorder2): Mention need for cycle display handling
302         once such notes exist.
303
304 2002-05-03  Richard Henderson  <rth@redhat.com>
305
306         * real.c (etoasc): Strip most trailing zeros for clarity.
307         * sched-vis.c: Include real.h.
308         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
309         * Makefile.in (sched-vis.o): Add real.h.
310
311 2002-05-03  David S. Miller  <davem@redhat.com>
312
313         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
314         no longer needed.
315
316 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
317
318         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
319         when we get an out of range literal.
320         (altivec_expand_ternop_builtin): Same.
321         (altivec_expand_unop_builtin): Same.
322         (altivec_expand_builtin): Same, for dss.
323         (altivec_expand_builtin): Use trees instead of rtl when
324         determining literal argument validity.
325
326 2002-05-03  David S. Miller  <davem@redhat.com>
327
328         Delete cycle display scheduling hook.
329         * config/ia64/ia64.c (ia64_cycle_display,
330         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
331         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
332         and use emit_insn_before instead of ia64_emit_insn_before.
333         * config/ia64/ia64.md (unspec usage): Delete cycle display.
334         (cycle_display): Delete insn pattern.
335         * config/sparc/sparc.md (unspec usage): Delete cycle display.
336         (cycle_display): Delete insn pattern.
337         * config/sparc/sparc.c (sparc_cycle_display,
338         TARGET_SCHED_CYCLE_DISPLAY): Delete.
339         * doc/md.texi (cycle_display): Don't mention.
340         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
341
342 2002-05-03  Richard Henderson  <rth@redhat.com>
343
344         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
345         * recog.h: Declare them.
346
347         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
348         * config/sparc/sparc.md: Use store_data_bypass_p instead.
349         * config/sparc/sparc-protos.h: Update.
350
351 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
352
353         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
354         -D__arch64__.  Add -D_LP64.
355         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
356         from sparc.h.
357         (CPP_ARCH64_SPEC): Likewise.
358         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
359         (NO_BUILTIN_SIZE_TYPE): Undef.
360
361 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
362
363         * genautomata.c (min_issue_delay_pass_states): Change return type
364         in the prototype.
365         (min_issue_delay_pass_states): Change the algorithm.
366         (min_issue_delay): Set up min_insn_issue_delay for the state.
367         (output_min_issue_delay_table): Interchange the nested loops and
368         and initiate min_insn_issue_delay for states.
369
370 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
371
372         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
373         jump is simplejump.
374
375 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
376
377         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
378         sequence.
379
380 2002-05-03  Richard Henderson  <rth@redhat.com>
381
382         PR opt/6534
383         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
384         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
385         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
386         code before JUMP, not EARLIEST.
387
388 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
389
390         * c-format.c (check_format_info_main): Don't check for presence of
391         parameter for * width until after operand number has been read,
392         and only check for it if format parameters are available.
393         Fixes PR c/6547.
394
395 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
396
397         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
398         (LINK_SPEC): Undef before defining.
399
400 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
401
402         PR preprocessor/6489
403         * tradcpp.c (fixup_newlines): New.
404         (main, finclude): Use it.
405
406 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
407
408         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
409         * config/mips/mips.c (mips_unique_section): Strip encoding from
410         decl name.
411
412 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
413
414         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
415         mode.
416
417 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
418
419         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
420         (Specific): Removed buildstats references.
421         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
422         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
423         Accomodate Solaris versions beyond 8.
424         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
425         (Specific, *-*-solaris2.8): Removed, obsolete.
426
427 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
428
429         PR target/6542
430         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
431         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
432         fill leaf_reg_remap with identity.
433         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
434
435 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
436
437         * config/h8300/crti.asm: Remove trailing spaces.
438         * config/h8300/h8300.c: Likewise.
439         * config/h8300/lib1funcs.asm: Likewise.
440
441 2002-05-02  Jason Merrill  <jason@redhat.com>
442
443         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
444         * c-decl.c (c_init_decl_processing): Use it.
445         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
446         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
447         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
448
449 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
450
451         * regrename.c: Fix formatting.
452         * tree.c: Likewise.
453
454 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
455
456         * i386.md (attribute memory): Handle compares properly.
457
458 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
459
460         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
461         to none.
462
463 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
464
465         * function.c: Fix formatting.
466
467 2002-05-02  Jan Hubicka  <jh@suse.cz>
468
469         * haifa-sched.c (schedule_insn): Print table of instructions and
470         reservations.
471         (sched_block): Do not print ready list at verbosity level 1.
472         * sched-vis.c (print_insn): Make global.
473         * sched-ebb.c (ebb_print_insn): Rename from...
474         (print_insn): ... this one.
475         * sched-int.h (print_insn): Declare
476
477 2002-05-02  Richard Henderson  <rth@redhat.com>
478
479         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
480         emitted by cycle_display.
481
482 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
483
484         * doc/install.texi (*-*-freebsd*): Update to latest status.
485
486 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
487
488         PR target/6540
489         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
490         * config/float-sparc.h: Assume 128-bit long double if
491         __LONG_DOUBLE_128__ is defined.
492
493 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
494
495         * genattrtab.c (write_function_unit_info): Add a dummy element
496         when num_units == 0.
497
498 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
499
500         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
501         TYPE_MODE (double_type_node) instead of DFmode.
502
503 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
504
505         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
506         jumps post reload.
507         * toplev.c (rest_of_compilation): Revert Richard's patch.
508
509 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
510
511         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
512
513 2002-05-02  Catherine Moore  <clm@redhat.com>
514
515         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
516
517 2002-05-02  Kazu Hirata  <kazu@hxi.com>
518
519         * combine.c: Fix comment typos.
520         * expr.c: Likewise.
521         * genautomata.c: Likewise.
522         * stmt.c: Likewise.
523         * tree.h: Likewise.
524
525 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
526
527         * doc/install.texi: State GNAT version requirements.
528
529 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
530
531         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
532         of the frame pointer or arg pointer register which strict register
533         checking is not enabled.
534
535 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
536
537         * gcc.dg/altivec-8.c: New.
538
539         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
540         PRE_INC and PRE_DEC for altivec modes.
541
542 2002-05-01  Bruce Korb  <bkorb@gnu.org>
543
544         * fixinc/check.tpl(set-writable): make sure the function exists first
545         * fixinc/inclhack.def(alpha_assert): fix test_text
546         * fixinc/tests/base/assert.h: add in missing result
547
548 2002-05-01  Jeff Law  <law@redhat.com>
549
550         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
551         'T' constraint.
552
553 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
554
555         * dbxout.c (dbxout_type): Emit size information for range types,
556         as well, but only when using GDB extensions.
557
558 2002-05-01  Richard Henderson  <rth@redhat.com>
559
560         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
561         target-independent gnu binutils date test.
562
563 2002-05-01  Richard Henderson  <rth@redhat.com>
564
565         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
566         info before expunging the block.
567
568 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
569
570         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
571         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
572         -M -or -MM is in effect.
573
574 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
575
576         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
577         A29k configurations.
578         * doc/install.texi: Update to match.
579
580 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
581
582         PR bootstrap/6514
583         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
584         for duplicates. Always loop over whole list.
585
586 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
587
588         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
589
590 2002-05-01      Joel Sherrill <joel@OARcorp.com>
591
592         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
593         support routines.
594
595 2002-05-01      Joel Sherrill <joel@OARcorp.com>
596
597         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
598
599 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
600
601         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
602         (nabs_nopower): Same.
603         (floatdisf2): New pattern.
604         (absdi2): Convert to define_insn_and_split.
605         (nabsdi2): Same.
606         (trunctfsf2): Same.
607         (floatditf2): Same.
608         (floatsitf2): Same.
609         (fix_trunctfdi2): Same.
610         (fix_trunctfsi2): Same.
611
612 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
613
614         * doc/install.texi: Update Texinfo version requirement
615         documentation.
616
617 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
618
619         PR target/6512, PR target/5628
620         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
621         when memory is not aligned.
622         (movdf_insn_v9only_vis): Likewise.
623         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
624         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
625         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
626
627 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
628
629         * gcc.dg/altivec-7.c: New.
630
631         * config/rs6000/altivec.h: Cleanup.
632
633 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
634
635         * doc/invoke.texi (Option Summary): Add -mvrsave=.
636         (RS/6000 and PowerPC Options): Document -mvrsave=.
637
638         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
639         (rs6000_altivec_vrsave_string): Same.
640         (rs6000_override_options): Call rs6000_parse_vrsave_option.
641         (rs6000_parse_vrsave_option): New.
642         (rs6000_stack_info): Only generate vrsave instructions when
643         TARGET_ALTIVEC_VRSAVE.
644
645         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
646         (rs6000_altivec_vrsave_string): Define extern.
647         (rs6000_altivec_vrsave): Same.
648         (TARGET_ALTIVEC_VRSAVE): New.
649
650 2002-04-30  Richard Henderson  <rth@redhat.com>
651
652         PR opt/6516
653         * toplev.c (rest_of_compilation): Don't run cross-jump before
654         bb-reorder.
655
656 2002-04-30  Tom Rix  <trix@redhat.com>
657
658         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
659         check which_alternative.
660
661 2002-04-30  Kazu Hirata  <kazu@hxi.com>
662
663         * cpplex.c: Fix comment formatting.
664         * function.c: Likewise.
665         * integrate.c: Likewise.
666         * regrename.c: Likewise.
667         * sibcall.c: Likewise.
668         * simplify-rtx.c: Likewise.
669         * tree-inline.c: Likewise.
670
671 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
672
673         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
674         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
675         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
676         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
677         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
678         * pa/x-ada: New file.  Define ADA_CFLAGS.
679
680 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
681
682         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
683         from MMIX_LAST_REGISTER_FILE_REGNUM.
684         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
685         (struct machine_function): New member highest_saved_stack_register
686         previously static variable in mmix.c.
687         (MACHINE_DEPENDENT_REORG): Define.
688         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
689         (MMIX_OUTPUT_REGNO): New.
690         (mmix_target_asm_function_prologue): Move calculation of last used
691         saved-stack-register into...
692         (mmix_machine_dependent_reorg): New function.  Update to also handle
693         !TARGET_ABI_GNU.
694         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
695         register names, simplify somewhat by new variable regno.
696         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
697         register.
698         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
699         emitting register names.
700         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
701         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
702         Remove fixed FIXME.
703         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
704         Declare.
705
706         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
707
708 2002-04-30  Richard Henderson  <rth@redhat.com>
709
710         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
711         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
712         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
713         emit_tfmode_cvt): New.
714         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
715         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
716         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
717         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
718         * config/sparc/sparc-protos.h: Update.
719
720 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
721
722         * install.texi (Final install): Add to the list of info to include
723         in a report of a successful bootstrap, and add link to 3.1 list.
724
725 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
726
727         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
728         (mode): Add vector modes
729         (i387): Kill attribute.
730         (unit): New attribute.
731         (length_immediate): Grok new types.
732         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
733         (modrm): Use "unit".
734         (memory): Handle MMX/SSE properly.
735         (scheduling descriptions): Kill uses of fop1.
736         (sse, mmx, fp patterns): Set type and mode properly.
737
738 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
739
740         * pa.c (override_options): Default to PA8000 scheduling.
741         * doc/invoke.texi (HP-PA options): Mention newly added 7300
742         scheduling parameter.
743
744         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
745         handling of double precision multiplies.
746
747         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
748         fpdiv and fpsqrt instructions.
749         (7200 & 7300 scheduling): Fix typo in handling of
750         store-load and store-store penalties.
751
752 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
753
754         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
755         mips.  Add two missing commas.
756
757 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
758
759         * doc/contrib.texi (Contributors): Update Paolo Carlini's
760         and Benjamin Kosnik's entries.
761
762 2002-04-29  David S. Miller  <davem@redhat.com>
763
764         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
765         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
766         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
767         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
768
769 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
770
771         * combine.c (find_split_point): Use gen_int_mode.
772
773 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
774
775         Merging code from dfa-branch:
776
777         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
778
779         * genautomata.c (output_reserv_sets): Fix typo.
780
781         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
782
783         * genautomata.c (output_reserv_sets): Remove
784         next_cycle_output_flag.
785
786         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
787
788         * sched-rgn.c (init_ready_list): Make the DFA code handle
789         USE/CLOBBER insns in the same way as the traditional
790         scheduler.
791         (new_ready): Similarly..
792
793         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
794
795         * haifa-sched.c (schedule_block): Change the DFA state only after
796         issuing insn.
797
798         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
799
800         * pa.c (hppa_use_dfa_pipeline_interface): New function.
801         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
802         (override_options): Add PA7300 scheduling support.
803         (pa_adjust_cost): Update various comments.  Properly
804         handle anti and output dependencies when using the
805         DFA scheduler.
806         (pa_issue_rate): Add PA7300 scheduling support.
807         (pa_can_combine_p): Call extract_insn before calling
808         constrain_operands (taken from mainline tree).
809         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
810         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
811         descriptions using DFA descriptions.  Add PA7300
812         scheduling support.
813
814         2002-03-30  David S. Miller  <davem@redhat.com>
815
816         Add UltraSPARC-III DFA scheduling support.
817         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
818         Update FP conditional move on register insn patterns to use it, as
819         appropriate.
820         (define_attr cpu): Add ultrasparc3.
821         (define_attr us3load_type): New, update integer load patterns to
822         set it, as appropriate.
823         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
824         (rest): Add UltraSPARC3 scheduling description.
825         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
826         (PROCESSOR_ULTRASPARC3): New.
827         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
828         ({ASM,CPP}_CPU_SPEC): Likewise.
829         (REGISTER_MOVE_COST): Likewise.
830         (RTX_COSTS): Likewise.
831         * config/sparc/sparc.c (sparc_override_options,
832         sparc_initialize_trampoline, sparc64_initialize_trampoline,
833         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
834         sparc_issue_rate): Likewise.
835         * config/sparc/sol2.h: Likewise.
836         * config/sparc/sol2-sld-64.h: Likewise.
837         * config/sparc/linux64.h: Likewise.
838
839         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
840
841         * doc/md.texi: Add comments about usage the latency time for the
842         different dependencies and about case when two or more conditions
843         in different define_insn_reservations returns TRUE for an insn.
844
845         * doc/md.texi: Add reference for automaton based pipeline
846         description.
847
848         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
849
850         * doc/passes.texi: Add missed information about genattrtab.
851
852         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
853
854         * genautomata.c (output_automata_list_transition_code): Check
855         automata_list on NULL.
856
857         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
858
859         * genautomata.c (output_insn_code_cases,
860         output_automata_list_min_issue_delay_code,
861         output_automata_list_transition_code,
862         output_automata_list_state_alts_code): Comment the functions.
863
864         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
865
866         * genautomata.c (automata_list_el_t): New typedef.
867         (get_free_automata_list_el,free_automata_list_el,
868         free_automata_list, automata_list_hash, automata_list_eq_p,
869         initiate_automata_lists, automata_list_start, automata_list_add,
870         automata_list_finish, finish_automata_lists,
871         output_insn_code_cases, output_automata_list_min_issue_delay_code,
872         output_automata_list_transition_code,
873         output_automata_list_state_alts_code, add_automaton_state,
874         form_important_insn_automata_lists): New functions and prototypes.
875         (insn_reserv_decl): Add members important_automata_list and
876         processed_p.
877         (ainsn): Add members important_p.
878         (automata_list_el): New structure.
879         (first_free_automata_list_el, current_automata_list,
880         automata_list_table): New global variables.
881         (create_ainsns): Initiate member important_p.
882         (output_internal_min_issue_delay_func): Generate the switch and
883         call output_insn_code_cases.
884         (output_internal_trans_func, output_internal_state_alts_func):
885         Ditto.
886         (generate): Call initiate_automata_lists.
887         (automaton_states): New global variable.
888         (expand_automata): Call form_important_insn_automata_lists.
889         (write_automata): Call finish_automata_lists.
890
891         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
892
893         * genautomata.c (add_excls, add_presence_absence): Check that
894         cpu units in the sets belong the same automaton.
895
896         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
897         about that cpu units in the sets belong the same automaton.
898
899         * doc/md.texi: Ditto.
900
901         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
902                     Nitin Gupta  <niting@noida.hcltech.com>
903
904         * config/sh/sh.c (sh_use_dfa_interface): New function.
905
906         (sh_issue_rate): New Function.
907         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
908         TARGET_SCHED_ISSUE_RATE: define.
909
910         * config/sh/sh.md: Add DFA based pipeline description for SH4.
911
912         (define_attr insn_class): New attribute used for DFA
913          scheduling.
914         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
915         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
916          cmpeqdi_t): Likewise.
917
918         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
919          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
920          ex_group.
921         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
922
923         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
924
925         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
926         break.
927
928         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
929
930         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
931         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
932         necessary.
933         (output_dfa_start_func): Initiate new variable insn_codes_length,
934         (write_automata): Output definition of the new variable.
935
936         2001-10-02  David S. Miller  <davem@redhat.com>
937
938         * haifa-sched.c (advance_one_cycle): New function.
939         (schedule_block): Use it.
940         (queue_to_ready): Use it, and also make sure to advance the DFA
941         state on all stall cycles, not just those where insn_queue links
942         are found.
943
944         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
945
946         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
947         non-zero if the highest-priority instruction could be scheduled.
948         (choose_ready): Remove last argument from max_issue call.
949
950         2001-09-28  David S. Miller  <davem@redhat.com>
951
952         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
953         ultrasparc and 3 for other multi-issue sparcs.
954
955         2001-09-27  David S. Miller  <davem@redhat.com>
956
957         * config/sparc/sparc.md (cycle_display): New pattern.
958         * config/sparc/sparc.c (sparc_cycle_display): New.
959         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
960
961         2001-09-25  David S. Miller  <davem@redhat.com>
962
963         Convert all of Sparc scheduling to DFA
964         * config/sparc/sparc.md: Kill all define_function_unit
965         directives and replace with DFA equivalent.
966         * config/sparc/sparc.c (ultrasparc_adjust_cost,
967         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
968         ultra_fpmode_conflict_exists, ultra_find_type,
969         ultra_build_types_avail, ultra_flush_pipeline,
970         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
971         ultrasparc_variable_issue, ultrasparc_sched_init,
972         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
973         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
974         ultra_cur_hist, ultra_cycles_elapsed): Kill.
975         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
976         ultrasparc_store_bypass_p): New.
977         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
978         Declare.
979
980         2001-09-24  David S. Miller  <davem@redhat.com>
981
982         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
983         ready->vec[foo] not ready[foo].
984
985         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
986
987         * doc/md.texi: Correct examples for define_insn_reservations
988         `mult' and `div'.
989
990         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
991
992         * genautomata.c (create_automata): Print message about creation of
993         each automaton.
994         (generate): Remove printing meease about creation of
995         automata.
996
997         2001-09-05  David S. Miller  <davem@redhat.com>
998
999         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
1000         * config/sparc/linux64.h: Likewise.
1001
1002         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
1003
1004         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
1005         schedule_block, sched_init, sched_finish): Add missed calls of
1006         use_dfa_pipeline_interface.
1007
1008         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
1009         Ditto.
1010
1011         * sched-vis.c (get_visual_tbl_length): Ditto.
1012
1013         2001-08-27  Richard Henderson  <rth@redhat.com>
1014
1015         * genattr.c (main): Emit state_t even when not doing scheduling.
1016
1017         2001-08-27  Richard Henderson  <rth@redhat.com>
1018
1019         * genautomata.c (expand_automata): Always create a description.
1020
1021         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
1022
1023         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
1024         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
1025         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
1026         RTL constructions.
1027
1028         * genattr.c (main): New variable num_insn_reservations.  Increase
1029         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
1030         pipeline hazard recognizer interface.
1031
1032         * genattrtab.h: New file.
1033
1034         * genattrtab.c: Include genattrtab.h.
1035         (attr_printf, check_attr_test, make_internal_attr,
1036         make_numeric_value): Move protypes into genattrtab.h.  Define them
1037         as external.
1038         (num_dfa_decls): New global variable.
1039         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
1040         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
1041         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
1042         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
1043
1044         * genautomata.c: New file.
1045
1046         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
1047
1048         * sched-int.h: (curr_state): Add the external definition for
1049         automaton pipeline interface.
1050         (haifa_insn_data): Add comments for members blockage and units.
1051
1052         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1053         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1054         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1055         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1056         TARGET_SCHED_DFA_POST_CYCLE_INSN,
1057         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1058         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
1059         macros.
1060         (TARGET_SCHED): Use the new macros.
1061
1062         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
1063         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
1064         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
1065         dfa_bubble): New members in gcc_target.sched.
1066
1067         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
1068         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
1069         (insn_queue): Redefine it as pointer to array.
1070         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
1071         INSN_QUEUE_SIZE.
1072         (max_insn_queue_index_macro_value): New variable.
1073         (curr_state, dfa_state_size, ready_try): New varaibles for
1074         automaton interface.
1075         (ready_element, ready_remove, max_issue): New function prototypes
1076         for automaton interface.
1077         (choose_ready): New function prototype.
1078         (insn_unit, blockage_range): Add comments.
1079         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
1080         FUNCTION_UNITS_SIZE == 0.
1081         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
1082         actual_hazard, potential_hazard): Add comments.
1083         (insn_cost): Use cost -1 as undefined value.  Remove
1084         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
1085         pipeline interface.
1086         (ready_element, ready_remove): New functions for automaton
1087         interface.
1088         (schedule_insn): Add new code for automaton pipeline interface.
1089         (queue_to_ready): Add new code for automaton pipeline interface.
1090         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
1091         (debug_ready_list): Print newline when the queue is empty.
1092         (max_issue): New function for automaton pipeline interface.
1093         (choose_ready): New function.
1094         (schedule_block): Add new code for automaton pipeline interface.
1095         Print ready list before scheduling each insn.
1096         (sched_init): Add new code for automaton pipeline interface.
1097         Initiate insn cost by -1.
1098         (sched_finish): Free the current automaton state and finalize
1099         automaton pipeline interface.
1100
1101         * sched-rgn.c: Include target.h.
1102         (init_ready_list, new_ready, debug_dependencies): Add new code for
1103         automaton pipeline interface.
1104
1105         * sched-vis.c: Include target.h.
1106         (get_visual_tbl_length): Add code for automaton interface.
1107         (target_units, print_block_visualization):  Add comments.
1108
1109         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
1110         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
1111         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
1112         (getruntime.o, genautomata.o): New entries.
1113         (genattrtab.o): Add new dependency file genattrtab.h.
1114         (genattrtab): Add new dependencies.  Link it with `libm.a'.
1115         (getruntime.o, hashtab.o): New entries for canadian cross.
1116
1117         * doc/md.texi: Description of automaton based model.
1118
1119         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
1120         Add comments.
1121         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
1122         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
1123         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
1124         TARGET_SCHED_DFA_POST_CYCLE_INSN,
1125         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
1126         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
1127         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
1128         hook descriptions.
1129         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
1130         MAX_DFA_ISSUE_RATE): New macro descriptions.
1131
1132         * doc/contrib.texi: Add dfa based scheduler contribution.
1133
1134         * doc/gcc.texi: Add more information about genattrtab.
1135
1136 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1137
1138         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
1139         adjust_address_nv call.
1140
1141 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
1142
1143         * doc/install.texi (Testing): Provide additional information, and
1144         a stronger encouragement, for running the testsuites.
1145
1146 2002-04-29  DJ Delorie  <dj@redhat.com>
1147
1148         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
1149         given in upper case.
1150
1151 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1152
1153         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
1154         Solaris 2 <widec.h> if missing.
1155         * fixinc/fixincl.x: Regenerate.
1156         * fixinc/tests/base/widec.h: New file.
1157
1158 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
1159
1160         * toplev.c (f_options): Add "profile" switch so that
1161         -fno-profile can be used to disable -p.
1162
1163 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
1164
1165         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
1166         UV2DImode.
1167         * tree.c (build_common_tree_nodes_2): Likewise.
1168         * tree.h (enum tree_index): Likewise.
1169         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
1170
1171         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
1172         entries.
1173         (init_mmx_sse_builtins): Initialize SSE2 builtins.
1174         (ix86_expand_builtin): Add support for SSE2 builtins.
1175         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
1176         (VALID_SSE_REG_MODE): Use it.
1177         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
1178         (enum ix86_builtins): Add SSE2 builtins.
1179         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
1180         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
1181         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
1182         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
1183         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
1184         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
1185         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
1186         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
1187         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
1188         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
1189         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
1190         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
1191         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
1192         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
1193         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
1194         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
1195         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
1196         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
1197         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
1198         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
1199         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
1200         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
1201         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
1202         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
1203         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
1204         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
1205         lfence_insn): New patterns.
1206         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
1207         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
1208
1209 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
1210
1211         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
1212
1213 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1214
1215         * doc/contrib.texi (Contributors): Add Paolo Carlini and
1216         Janis Johnson.
1217         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
1218         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
1219         and CPU instead of cpu.
1220
1221 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1222
1223         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
1224         variables.
1225         (lang_independent_options): Add -fif-conversion, -fif-conversion2
1226         (rest_of_compilation): Do if conversion only when asked for.
1227         (parse_options_and_default_flags): Set new variables to 1 for -O1
1228         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
1229
1230 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1231
1232         * i386.c (dbx64_register_map): Fix typo.
1233
1234 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1235
1236         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
1237         real_one_half, real_bb_freq_max): New static variables.
1238         (debug_profile_bbauxs): Kill.
1239         (process_note_predictions): Kill unused variable.
1240         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
1241         volatile double.
1242         (propagate_freq): Use REAL_ARITHMETICS.
1243         (estimate_bb_frequencies): Likevise; init new static variables.
1244         * Makefile.in (predict.o): Add dependency on real.h
1245
1246 2002-04-28  David S. Miller  <davem@redhat.com>
1247
1248         PR target/6500
1249         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
1250         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
1251         several {reads,writes} instead.
1252         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
1253         Define.
1254
1255 2002-04-27  David S. Miller  <davem@redhat.com>
1256
1257         PR target/6494
1258         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
1259         of the stack bias.
1260
1261         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
1262         including signal.h and sys/ucontext.h, not needed.
1263
1264 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
1265
1266         * varasm.c (output_constant_def): Correct test for not calling
1267         ENCODE_SECTION_INFO for INTEGER_CST.
1268
1269 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1270
1271         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1272         keep most cases as function eval_token.
1273         (eval_token): New function.
1274         (_cpp_parse_expr): Read token here for improved diagnostics.
1275         Don't use op_as_text.  Detect bad ':' here.
1276         (reduce): Don't detect bad ':' here.
1277         (op_as_text): Remove.
1278         * cpphash.h (_cpp_test_assertion): Change prototype.
1279         * cpplib.c (_cpp_test_assertion): Change prototype.
1280
1281 2002-04-28  Richard Henderson  <rth@redhat.com>
1282
1283         PR c/5154
1284         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1285         (ggc_mark_rtx_children): New.
1286
1287 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1288
1289         PR target/6496
1290         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1291         after call peepholes for UltraSPARC.
1292         (call + jump 64-bit peepholes): Remove.
1293
1294 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1295
1296         PR c/6497
1297         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1298         result as temporary value.
1299
1300 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1301
1302         PR c++/6396
1303         * toplev.c (rest_of_compilation): Only run regrename and copy
1304         propagation if optimizing.
1305
1306 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1307
1308         PR optimization/6475
1309         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1310         register of REGNO_DECL (i).
1311         * Makefile.in (reload1.o): Add $(TREE_H).
1312
1313 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1314
1315         * cppexp.c (lex): Update to use state.skip_eval.
1316         (struct op): Remove prio and flags members.
1317         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1318         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1319         (LEFT_ASSOC): New macro.
1320         (optab): New table of operator priorities and flags.
1321         (SHIFT): Update.
1322         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
1323         malloc-ed parser stack.
1324         (reduce): New; reduce the operator stack.
1325         (_cpp_expand_op_stack): Expand the operator stack as necessary.
1326         * cpphash.h (struct op): Predeclare.
1327         (struct cpp_reader): New members op_stack, op_limit.
1328         (struct lexer_state): New member skip_eval.
1329         (_cpp_parse_expr): Update.
1330         (_cpp_expand_op_stack): New.
1331         * cpplib.c (do_if): Update.
1332         * cppinit.c (cpp_create_reader): Create op stack.
1333         (cpp_destroy): And destroy it.
1334         * cpplib.h (CPP_LAST_CPP_OP): Correct.
1335         (TTYPE_TABLE): Correct.
1336
1337 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1338
1339         PR c/6343
1340         * c-decl.c (duplicate_decls): Call merge_weak.
1341         * c-pragma.c (apply_pragma_weak): Warn about misuse.
1342         * output.h (merge_weak): Prototype merge_weak.
1343         * varasm.c (merge_weak): New function.
1344         (declare_weak): Make sure we don't give an error on VAR_DECLs.
1345         Mark RTL with SYMBOL_REF_WEAK.
1346
1347 2002-04-27  Kurt Garloff <garloff@suse.de>
1348
1349         * tree-inline.c (inlinable_function_p): Improve heuristics
1350         by using a smoother function to cut down allowable inlinable size.
1351         * param.def: Add parameters max-inline-insns-single,
1352         max-inline-slope, min-inline-insns that determine the exact
1353         shape of the above function.
1354         * param.h: Likewise.
1355
1356 2002-04-26  Richard Henderson  <rth@redhat.com>
1357
1358         * c-parse.in (malloced_yyss, malloced_yyvs): New.
1359         (yyoverflow): Re-add.  Set them.
1360         (free_parser_stacks): New.
1361         * c-common.h: Declare it.
1362         * c-lex.c (c_common_parse_file): Call it.
1363
1364 2002-04-26  Richard Henderson  <rth@redhat.com>
1365
1366         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1367         for fallthru search.
1368
1369 2002-04-26  Eric Christopher  <echristo@redhat.com>
1370
1371         PR optimization/3700
1372         * config/mips/mips.c (mips_issue_rate): Define.  New function.
1373         (TARGET_SCHED_ISSUE_RATE): Use.
1374
1375 2002-04-25  David S. Miller  <davem@redhat.com>
1376
1377         PR target/6422
1378         * reorg.c (optimize_skip): Do not allow exception causing
1379         instructions to be considered for delay slots.
1380         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1381         (relax_delay_slots): Do not try to consider exception causing
1382         instructions as redundant.
1383
1384 2002-04-26  Richard Henderson  <rth@redhat.com>
1385
1386         PR c/5225
1387         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1388
1389 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
1390
1391         PR bootstrap/6445
1392         * config/i386/i386.md (untyped_call): Return the value in a float
1393         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1394         TARGET_80387.
1395
1396 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
1397
1398         * tree.c (tree_int_cst_lt): Compare constants whose types differ
1399         in unsigned-ness correctly.
1400
1401 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1402
1403         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1404         portable runtime model.
1405
1406 2002-04-26  Richard Henderson  <rth@redhat.com>
1407
1408         * c-parse.in (yyoverflow): Revert.
1409
1410 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
1411             Richard Henderson  <rth@redhat.com>
1412
1413         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1414         result as temporary value.
1415
1416 2002-04-26  Richard Henderson  <rth@redhat.com>
1417
1418         PR c/3581
1419         * c-common.c (fix_string_type): Split out of ...
1420         (combine_strings): ... here.  Take a varray, not a tree list.
1421         (c_expand_builtin_printf): Use fix_string_type.
1422         * c-common.h: Update decls.
1423         * c-parse.in (string): Remove.  Update all uses to use STRING
1424         instead, and not call combine_strings.
1425         (yylexstring): New.
1426         (_yylex): Use it.
1427         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1428         (build_asm_stmt): Likewise.
1429         * objc/objc-act.c (my_build_string): Use fix_string_type.
1430         (build_objc_string_object): Build varray for combine_strings.
1431
1432 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
1433
1434         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1435         x86-64.
1436
1437 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1438
1439         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1440         (HAVE_NO_R_OPERAND): Remove.
1441         (HAVE_VALUE): Remove.
1442         (op_to_prio): Update.
1443         (UNARY): Don't alter flags.
1444         (_cpp_parse_expr): want_value used to indicate whether
1445         a number or unary operator is expected next.  Distinguish
1446         unary and binary +/-.
1447         (op_as_text): Update for unary operators.
1448
1449 2002-04-25  Richard Henderson  <rth@redhat.com>
1450
1451         PR c/2161
1452         * c-parse.in (yyoverflow): New.
1453
1454 2002-04-25  Richard Henderson  <rth@redhat.com>
1455
1456         PR c/2098
1457         * c-common.c (shorten_compare): Simplfy conditions leading to
1458         the generation of a warning.
1459
1460 2002-04-25  Richard Henderson  <rth@redhat.com>
1461
1462         PR c/2035
1463         * expmed.c (extract_bit_field): Fall through to generic code rather
1464         than aborting on subreg special case.
1465
1466 2002-04-25  David S. Miller  <davem@redhat.com>
1467
1468         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1469         for DECL being NULL.
1470
1471 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
1472
1473         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1474
1475 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
1476
1477         * c-decl.c (grokdeclarator): Remove outdated ??? note
1478         on invalid declaration of flexible array members.
1479
1480 2002-04-25  Richard Henderson  <rth@redhat.com>
1481
1482         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1483
1484 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
1485
1486         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1487         needed by the compiler, even if they are used as global regs.
1488
1489 2002-04-25  Matt Hiller  <hiller@redhat.com>
1490
1491         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1492         functions.
1493         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1494         of the corresponding functions.
1495         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1496         New prototypes.
1497
1498 2002-04-25  Matt Hiller  <hiller@redhat.com>
1499
1500         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1501
1502         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1503         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1504         registers, adjust comment accordingly.
1505         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1506         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1507         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1508         for coprocessor registers.
1509         (ADDITIONAL_REGISTER_NAMES): Include
1510         ALL_COP_ADDITIONAL_REGISTER_NAMES.
1511
1512         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1513         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1514         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1515         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1516         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1517
1518         (mips_char_to_class): Adjust comment to include coprocessor
1519         constraint letters.
1520
1521         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1522         New functions.
1523         (mips_reg_names, mips_regno_to_class): Include coprocessor
1524         information.
1525         (mips_sw_reg_names): Ditto, make non-static.
1526         (mips_move_1word): Handle moves to and from coprocessor registers.
1527         (mips_move_2words): Handle moves to and from coprocessor
1528         registers.
1529         (mips_class_max_nregs, mips_register_move_cost): Handle
1530         coprocessor register classes.
1531         (override_options): Initialize mips_char_to_class and
1532         mips_hard_regno_mode_ok properly for coprocessor registers.
1533
1534         * config/mips/mips.md (movdi_internal, movdi_internal2,
1535         movsi_internal1, movsi_internal2): Add constraint-sets for
1536         coprocessor registers.
1537         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1538         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1539         isn't mips.
1540         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1541         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1542         isn't mips.
1543         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1544         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1545         isn't mips.
1546         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1547         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1548         isn't mips.
1549
1550         * doc/tm.texi: Document feature.
1551
1552 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1553
1554         * integrate.c (function_attribute_inlinable_p): Simplify.
1555         Check the table pointer is not NULL.
1556
1557 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1558
1559         * doc/c-tree.texi: Fix typo in introduction.
1560
1561 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1562
1563         * c-common.h (c_common_parse_file): Update.
1564         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1565         * c-lex.c (YYDEBUG): Get from c-lex.h.
1566         (c_common_parse_file): Update.
1567         * c-lex.h (YYDEBUG, yydebug): New.
1568         * c-parse.in (YYDEBUG): Get from c-lex.h.
1569         (c_set_yydebug): Remove.
1570         * c-tree.h (c_set_yydebug): Remove.
1571         * langhooks-def.h (lhd_do_nothing_i): New.
1572         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1573         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1574         * langhooks.c  (lhd_do_nothing_i): New.
1575         (lhd_set_yydebug): Remove.
1576         * langhooks.h (struct lang_hooks): Update.
1577         * toplev.c (set_yydebug): New.
1578         (compile_file): Update call to parse_file hook.
1579         (decode_d_option): Update.
1580 objc:
1581         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1582
1583 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1584
1585         * loop.c (load_mems): Don't change the interface of called functions.
1586
1587         * calls.c (expand_call): Take current_function_pretend_args_size
1588         into account when setting argblock for sibcalls.
1589
1590 2002-04-24  Matt Hiller  <hiller@redhat.com>
1591
1592         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1593         * c-lex.c: Ditto.
1594
1595         * cpplex.c (skip_line_comment): Process comment one multibyte
1596         character at a time rather than one char at a time, if
1597         appropriate.
1598         (parse_string): Process string one multibyte character at a time
1599         rather than one char at a time, if appropriate.
1600         * c-lex.c (lex_string): Lex and copy multibyte strings
1601         appropriately.
1602         * cpplib.h (cppchar_t): Change to unsigned.
1603
1604 2002-04-24  Richard Henderson  <rth@redhat.com>
1605
1606         PR c/3467
1607         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1608         for c99.
1609
1610 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1611
1612         * sh.c (sh_va_arg): If argument was passed by reference,
1613         dereference the pointer.
1614
1615         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1616
1617         * sh.md (divsi3_i4_media): Use match_operand for input values
1618         rather than hard registers.
1619         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1620         unnecessarily through hard registers.  Keep copies of pseudo
1621         registers outside of the libcall sequence.
1622
1623         * sh.md (casesi_shift_media): Add modes.
1624
1625         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1626         values in memory.
1627
1628 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1629
1630         * attribs.c (c_common_attribute_table): Move table and handlers
1631         to c-common.c.
1632         (format_attribute_table, lang_attribute_table,
1633         lang_attribute_common): Remove.
1634         (init_attributes): Replace NULL pointers with pointers to the
1635         empty table.
1636         (handle_packed_attribute, handle_nocommon_attribute,
1637         handle_common_attribute, handle_noreturn_attribute,
1638         handle_noinline_attribute, handle_always_inline_attribute,
1639         handle_used_attribute, handle_unused_attribute,
1640         handle_const_attribute, handle_transparent_union_attribute,
1641         handle_constructor_attribute, handle_destructor_attribute,
1642         handle_mode_attribute, handle_section_attribute,
1643         handle_aligned_attribute, handle_weak_attribute,
1644         handle_alias_attribute, handle_visibility_attribute,
1645         handle_no_instrument_function_attribute, handle_malloc_attribute,
1646         handle_no_limit_stack_attribute, handle_pure_attribute,
1647         handle_deprecated_attribute, handle_vector_size_attribute,
1648         vector_size_helper): Move to c-common.c.
1649         * c-common.c (c_common_attribute_table,
1650         handle_packed_attribute, handle_nocommon_attribute,
1651         handle_common_attribute, handle_noreturn_attribute,
1652         handle_noinline_attribute, handle_always_inline_attribute,
1653         handle_used_attribute, handle_unused_attribute,
1654         handle_const_attribute, handle_transparent_union_attribute,
1655         handle_constructor_attribute, handle_destructor_attribute,
1656         handle_mode_attribute, handle_section_attribute,
1657         handle_aligned_attribute, handle_weak_attribute,
1658         handle_alias_attribute, handle_visibility_attribute,
1659         handle_no_instrument_function_attribute, handle_malloc_attribute,
1660         handle_no_limit_stack_attribute, handle_pure_attribute,
1661         handle_deprecated_attribute, handle_vector_size_attribute,
1662         vector_size_helper): Move from attribs.c.
1663         * c-common.h (c_common_attribute_table,
1664         c_common_format_attribute_table): New.
1665         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1666         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1667         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1668         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1669         (LANG_HOOKS_INITIALIZER): Update.
1670         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1671         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1672         * target.h: Update comment.
1673         * tree.c (default_target_attribute_table): Remove.
1674         * tree.h (default_target_attribute_table, format_attribute_table,
1675         lang_attribute_table, lang_attribute_common): Remove.
1676 objc:
1677         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1678         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1679
1680 2002-04-24  Jason Merrill  <jason@redhat.com>
1681
1682         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1683         * dwarf2out.c (dwarf_attr_name): Support it.
1684         (gen_array_type_die): Emit it.
1685         (lookup_type_die): No special handling for VECTOR_TYPE.
1686         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1687
1688 2002-04-24  Richard Henderson  <rth@redhat.com>
1689
1690         * config/mips/mips.md (movdi_usd): Renumber.
1691
1692 2002-04-24  David S. Miller  <davem@redhat.com>
1693
1694         PR target/6420
1695         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1696         32-bit Sparc and current_function_returns_struct is true.
1697
1698 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1699
1700         * loop.c (canonicalize_condition): Use gen_int_mode.
1701
1702 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1703
1704         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1705         variants.
1706         (vec_vaddubm): New.
1707         (vec_vadduhm): New.
1708         (vec_vadduwm): New.
1709         (vec_vaddfp): New.
1710         (vec_vaddcuw): New.
1711         (vec_vaddubs): New.
1712         (vec_vaddsbs): New.
1713         (vec_vadduhs): New.
1714         (vec_vadduws): New.
1715         (vec_vaddsws): New.
1716         (vec_vand): New.
1717         (vec_vandc): New.
1718         (vec_vavgub): New.
1719         (vec_vavgsb): New.
1720         (vec_vavguh): New.
1721         (vec_vavgsh): New.
1722         (vec_vavguw): New.
1723         (vec_vavgsw): New.
1724         (vec_vrfip): New.
1725         (vec_vcmpbfp): New.
1726         (vec_vcmpequb): New.
1727         (vec_vcmpequh): New.
1728         (vec_vcmpequw): New.
1729         (vec_vcmpeqfp): New.
1730         (vec_vcmpgefp): New.
1731         (vec_vcmpgtub): New.
1732         (vec_vcmpgtsb): New.
1733         (vec_vcmpgtuh): New.
1734         (vec_vcmpgtsh): New.
1735         (vec_vcmpgtuw): New.
1736         (vec_vcmpgtsw): New.
1737         (vec_vcmpgtfp): New.
1738         (vec_vcmpgefp): New.
1739         (vec_vcfux): New.
1740         (vec_vcfsx): New.
1741         (vec_vctsxs): New.
1742         (vec_vctuxs): New.
1743         (vec_vexptefp): New.
1744         (vec_vrfim): New.
1745         (vec_lvx): New.
1746         (vec_lvebx): New.
1747         (vec_lvehx): New.
1748         (vec_lde): Add vector float variant.
1749         (vec_lvewx): New.
1750         (vec_lvxl): New.
1751         (vec_vlogefp): New.
1752         (vec_vmaddfp): New.
1753         (vec_vmhaddshs): New.
1754         (vec_vmaxub): New.
1755         (vec_vmaxsb): New.
1756         (vec_vmaxuh): New.
1757         (vec_vmaxsh): New.
1758         (vec_vmaxuw): New.
1759         (vec_vmaxsw): New.
1760         (vec_vmaxsw): New.
1761         (vec_vmaxfp): New.
1762         (vec_vmrghb): New.
1763         (vec_vmrghh): New.
1764         (vec_vmrghw): New.
1765         (vec_vmrglb): New.
1766         (vec_vmrglh): New.
1767         (vec_vmrglw): New.
1768         (vec_vminub): New.
1769         (vec_vminsb): New.
1770         (vec_vminuh): New.
1771         (vec_vminsh): New.
1772         (vec_vminuw): New.
1773         (vec_vminsw): New.
1774         (vec_vminfp): New.
1775         (vec_vmladduhm): New.
1776         (vec_vmhraddshs): New.
1777         (vec_msumubm): New.
1778         (vec_vmsummbm): New.
1779         (vec_vmsumuhm): New.
1780         (vec_vmsumshm): New.
1781         (vec_vmsumuhs): New.
1782         (vec_vmsumshs): New.
1783         (vec_vmuleub): New.
1784         (vec_vmulesb): New.
1785         (vec_vmuleuh): New.
1786         (vec_vmulesh): New.
1787         (vec_vmuloub): New.
1788         (vec_mulosb): New.
1789         (vec_vmulouh): New.
1790         (vec_vmulosh): New.
1791         (vec_vnmsubfp): New.
1792         (vec_vnor): New.
1793         (vec_vor): New.
1794         (vec_vpkuhum): New.
1795         (vec_vpkuwum): New.
1796         (vec_vpkpx): New.
1797         (vec_vpkuhus): New.
1798         (vec_vpkshss): New.
1799         (vec_vpkuwus): New.
1800         (vec_vpkswss): New.
1801         (vec_vpkshus): New.
1802         (vec_vpkswus): New.
1803         (vec_vperm): New.
1804         (vec_vrefp): New.
1805         (vec_vrlb): New.
1806         (vec_vrlh): New.
1807         (vec_vrlw): New.
1808         (vec_vrfin): New.
1809         (vec_vrsqrtefp): New.
1810         (vec_vsel): New.
1811         (vec_vslb): New.
1812         (vec_vslh): New.
1813         (vec_vslw): New.
1814         (vec_vsldoi): New.
1815         (vec_vsl): New.
1816         (vec_vslo): New.
1817         (vec_vspltb): New.
1818         (vec_vsplth): New.
1819         (vec_vspltw): New.
1820         (vec_vspltisb): New.
1821         (vec_vspltish): New.
1822         (vec_vspltisw): New.
1823         (vec_vsrb): New.
1824         (vec_vsrh): New.
1825         (vec_vsrw): New.
1826         (vec_vsrab): New.
1827         (vec_vsrah): New.
1828         (vec_vsraw): New.
1829         (vec_vsr): New.
1830         (vec_vsro): New.
1831         (vec_stvx): New.
1832         (vec_stvebx): New.
1833         (vec_stvehx): New.
1834         (vec_stvewx): New.
1835         (vec_stvxl): New.
1836         (vec_vsububm): New.
1837         (vec_vsubuhm): New.
1838         (vec_vsubuwm): New.
1839         (vec_vsubfp): New.
1840         (vec_vsubcuw): New.
1841         (vec_vsububs): New.
1842         (vec_vsubsbs): New.
1843         (vec_vsubuhs): New.
1844         (vec_vsubshs): New.
1845         (vec_vsubuws): New.
1846         (vec_vsubsws): New.
1847         (vec_vsum4ubs): New.
1848         (vec_vsum4sbs): New.
1849         (vec_vsum4shs): New.
1850         (vec_vsum2sws): New.
1851         (vec_vsumsws): New.
1852         (vec_vrfiz): New.
1853         (vec_vupkhsb): New.
1854         (vec_vupkhpx): New.
1855         (vec_vupkhsh): New.
1856         (vec_vupklsb): New.
1857         (vec_vupklpx): New.
1858         (vec_vupklsh): New.
1859         (vec_vxor): New.
1860
1861 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1862
1863         PR c/5430
1864         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1865         added literals from substracted literals.
1866         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1867         (fold) [associate]: Preserve MINUS_EXPR if needed.
1868
1869 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1870
1871         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1872         are obsoleted.
1873
1874 2002-04-23  Tom Tromey  <tromey@redhat.com>
1875
1876         * gcc.c: Added --resource.  For PR java/6314.
1877
1878 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1879
1880         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1881         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1882         these libraries.
1883
1884 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1885
1886         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1887
1888 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1889
1890         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1891         workaround.
1892         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1893         (ix86_expand_clrstr): Fix typo.
1894         * loop.c (gen_load_of_final_value): New.
1895         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1896         Use it.
1897
1898 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1899
1900         * builtins.c (builtin_memset_gen_str): New function.
1901         (expand_builtin_memset): Optimize the case of constant length, but
1902         unknown value.
1903
1904 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1905
1906         * config/rs6000/altivec.h (vec_step): Remove extraneous
1907         parentheses.
1908         (vec_ctu): Cast return.
1909
1910 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1911
1912         PR target/6413
1913         * function.h: (struct function): Add profile_label_no field.
1914         (current_function_profile_label_no): Define.
1915         * function.c: (profile_label_no): New static var.
1916         (expand_function_start): Increment it, and copy to
1917         current_function_profile_label_no.
1918         * output.h (profile_label_no): Delete.
1919         * final.c (profile_label_no): Delete.
1920         (profile_function): Use current_function_profile_label_no.
1921         (final_end_function): Don't increment profile_label_no here.
1922         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1923         profile_label_no with current_function_profile_label_no.
1924         * config/pa/pa.c (current_function_number): Delete.
1925         (pa_output_function_prologue): Don't output profile label here.
1926         (hppa_profile_hook): Use label_no param rather than
1927         current_function_number.
1928         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1929         * config/pa/pa.h: .. here.
1930         (FUNCTION_PROFILER): Output profile label here.
1931
1932 2002-04-22  Eric Christopher  <echristo@redhat.com>
1933
1934         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1935         patch of 2002-04-09 due to binutils issues.
1936         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1937
1938 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1939
1940         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1941         constraint to 'o' for m=r and r=m alternatives.
1942         ("*movv8hi_internal1"): Same.
1943         ("*movv16qi_internal1"): Same.
1944         ("*movv4sf_internal1"): Same.
1945
1946 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1947
1948         * rtl.h (RTX_FLAG): New macro.
1949         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1950         * final.c (alter_subreg): Use macro to access rtx flag.
1951         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1952         * print-rtl.c (print_rtx): Use new access macro.
1953
1954         * cse.c (insert): Check rtx code before accessing flag.
1955
1956         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1957         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1958         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1959         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1960         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1961         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1962         find_and_mark_used_attributes, unmark_used_attributes,
1963         add_values_to_cover, simplify_with_current_value,
1964         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1965         copy_rtx_unchanging, main): Use new access macros.
1966
1967 2002-04-22  Tom Rix  <trix@redhat.com>
1968
1969         * expmed.c (init_expmed): Generate shifted constant once.
1970
1971 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1972
1973         * c-lex.c (lex_charconst): Call convert to get constant in
1974         proper type; don't just smash the type field.
1975         Fixes PR c/6300.
1976
1977         * config.gcc: Add list of obsolete configurations.  Disallow
1978         building these without --enable-obsolete.
1979         * doc/install.texi: Document --enable-obsolete and obsoletion
1980         policy.  Mention obsoletion of individual targets in
1981         appropriate places.
1982
1983 2002-04-22  Richard Henderson  <rth@redhat.com>
1984
1985         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1986
1987 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1988
1989         PR f/6138.
1990         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1991         (walk_fixup_memory_subreg): Likewise.
1992         (fixup_var_refs_insn): Adjust accordingly.
1993         (fixup_var_refs_1): Likewise.
1994
1995 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1996
1997         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1998         LIBPATH_ARCH64_SPEC): Define.
1999         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2000         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2001         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2002         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2003
2004 2002-04-22      Joel Sherrill <joel@OARcorp.com>
2005
2006         * gthr-rtems.h: Correct prototypes to remove warnings.
2007
2008 2002-04-22  Richard Henderson  <rth@redhat.com>
2009
2010         PR c/6344
2011         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2012
2013         * gcse.c (free_insn_expr_list_list): New.
2014         (clear_modify_mem_tables): Use it.  Fix bit set usage.
2015         (canon_list_insert): Use EXPR_LISTs for expressions.
2016         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2017
2018 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2019
2020         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
2021         file change and include code to _cpp_pop_buffer.
2022         * cpphash.h (struct pending_option): Predeclare.
2023         (struct cpp_reader): New member next_include_file.
2024         (_cpp_pop_file_buffer): Update.
2025         (_cpp_push_next_buffer): Update, rename.
2026         * cppinit.c (cpp_destroy): Free include chain and pending here.
2027         (cpp_finish_options): Simplify.
2028         (_cpp_push_next_buffer): Rename and clean up.
2029         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
2030         Clarify.
2031         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
2032
2033 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
2034
2035         * config/rs6000/altivec.h (vec_xor): Add variant for both args
2036         being vector signed int.
2037         (vec_andc): Same.
2038         (vec_xor): Add variant for both args being vector signed char.
2039         Remove redundant variant.
2040         (vec_andc): Same.
2041
2042 2002-04-21  David S. Miller  <davem@redhat.com>
2043
2044         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2045         compare mode in output RTL.
2046
2047 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
2048
2049         * config/rs6000/rs6000.c (rs6000_override_options): Correct
2050         style and formatting of previous patch.
2051
2052 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
2053
2054         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2055         flag_pic for ABI_AIX.
2056
2057 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2058
2059         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
2060         * cppfiles.c (read_include_file): Similarly.
2061         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
2062         uxstrdup ustrchr, ufputs): Similarly.
2063         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
2064         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
2065         cpp_ideq, parse_identifier, parse_number): Similarly.
2066         * cpplib.c (struct directive, dequote_string, D, run_directive,
2067         cpp_push_buffer): Similarly.
2068         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
2069         _cpp_create_definition, check_trad_stringification,
2070         cpp_macro_definition): Similarly.
2071
2072 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2073
2074         * cppmacro.c (funlike_invocation_p): Don't step back
2075         over CPP_EOF.
2076
2077 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
2078
2079         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2080         labelno.
2081
2082 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
2083
2084         * doc/invoke.texi: Remove Chill references.
2085         * doc/gcc.texi: Update last modified date.
2086
2087 2002-04-20  Kazu Hirata  <kazu@hxi.com>
2088
2089         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
2090         push and pop.  Replace add.l with add.w.
2091
2092 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2093
2094         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
2095         multiply instructions for H8/300H case.
2096
2097 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2098
2099         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
2100         Bum three instructions from each routine.
2101
2102 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2103
2104         * Makefile.in: Update.
2105         * decl.c (push_c_function_context, pop_c_function_context,
2106         mark_c_function_context): Rename for consistency.
2107         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
2108         * c-tree.h (push_c_function_context, pop_c_function_context,
2109         mark_c_function_context): Rename for consistency.
2110         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2111         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2112         * function.c (init_lang_status, save_lang_status,
2113         restore_lang_status, mark_lang_status, free_lang_status):
2114         Move to langhooks.h.
2115         (push_function_context_to, pop_function_context_from,
2116         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
2117         Update.
2118         * function.h (init_lang_status, save_lang_status,
2119         restore_lang_status, mark_lang_status, free_lang_status):
2120         Move to langhooks.h.
2121         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
2122         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2123         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
2124         LANG_HOOKS_FUNCTION_INITIALIZER): New.
2125         (LANG_HOOKS_INITIALIZER): Update.
2126         (lhd_do_nothing_f): New.
2127         * langhooks.h (struct lang_hooks_for_functions): New.
2128         (struct lang_hooks): New hooks.
2129         * langhooks.c (lhd_do_nothing_f): New.
2130 objc:
2131         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
2132         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
2133
2134 2002-04-19  David S. Miller  <davem@redhat.com>
2135
2136         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2137         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2138
2139 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2140
2141         PR optimization/3756
2142         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
2143         x = ((int) y < 0) ? cst1 : cst2.
2144
2145 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2146
2147         PR c/6358
2148         * function.c: Reapply patch for c/6358.
2149         (expand_function_end): Copy decl_rtl's mode, not
2150         current_function_return_rtx mode.
2151
2152 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
2153
2154         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2155         targets.
2156
2157 2002-04-19  Tom Tromey  <tromey@redhat.com>
2158
2159         * doc/install.texi (Specific): Update status of Solaris 2.8.
2160         For PR libgcj/6158.
2161
2162 2002-04-19  Andreas Schwab  <schwab@suse.de>
2163
2164         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
2165         (PUT_REAL): Restore old definition.
2166
2167 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2168             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2169
2170         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2171         binutils 2.11.2 and higher generate smaller binaries than Sun's
2172         native tools.
2173
2174 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
2175
2176         PR c++/6352
2177         * toplev.c (rest_of_compilation): Do not defer functions for which
2178         TREE_SYMBOL_REFERENCED has already been set.
2179
2180 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
2181
2182         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2183         alternative.
2184
2185 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2186
2187         * builtins.c: Include langhooks.h.
2188         (lang_type_promotes_to): Remove.
2189         (expand_builtin_va_arg): Use new hook.
2190         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
2191         (simple_type_promotes_to): Move to c-typeck.c.
2192         * c-common.h (simple_type_promotes_to): Remove.
2193         * c-decl.c (duplicate_decls, grokdeclarator): Update.
2194         * c-format.c: Include langhooks.h.
2195         (check_format_types): Update.
2196         * c-tree.h (c_type_promotes_to): New.
2197         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
2198         (type_lists_compatible_p): Update.
2199         * langhooks-def.h (lhd_type_promotes_to): New.
2200         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
2201         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2202         * langhooks.c (lhd_type_promotes_to): New.
2203         * langhooks.h (struct lang_hooks_for_types): New hook.
2204         * tree.h (lang_type_promotes_to): Remove.
2205 objc:
2206         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
2207
2208 2002-04-18  Richard Henderson  <rth@redhat.com>
2209
2210         * function.c: Revert patch for c/6358.
2211
2212 2002-04-18  Richard Henderson  <rth@redhat.com>
2213
2214         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2215         blocks.  Handle multiple references to the TRAP block.  Handle
2216         non-adjacent THEN and OTHER blocks.
2217
2218 2002-04-18  Richard Henderson  <rth@redhat.com>
2219
2220         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2221         crash with no type for by-mode libcalls.
2222
2223         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2224
2225 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
2226
2227         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
2228         __xtensa_nonlocal_goto): Use a syscall instructions to flush
2229         the register windows.
2230
2231 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
2232
2233         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
2234         appropriate.  Document need for extended precision even when
2235         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
2236         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
2237         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
2238         instead of relying on later syntax error when REAL_WIDTH > 5.
2239         * real.c: Define NE based only on whether or not we have a
2240         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
2241         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
2242         define GET_REAL and PUT_REAL as simple memcpy operations; no
2243         need to byteswap or round.
2244         Use #error instead of #ifdef-ing out the entire file, for
2245         prompt error detection.
2246
2247         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
2248
2249 2002-04-18  David S. Miller  <davem@redhat.com>
2250
2251         * config/sparc/sparc.h (BRANCH_COST): Define.
2252
2253         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2254         does it.
2255
2256 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
2257
2258         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2259         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2260         propagate_block calls after relaxation loop using new variable
2261         stabilized_prop_flags.
2262
2263 2002-04-18  Richard Henderson  <rth@redhat.com>
2264
2265         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2266         (ia64_va_arg): Expect variable sized types by reference.
2267         * config/ia64/ia64-protos.h: Update.
2268         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2269         ia64_function_arg_pass_by_reference.
2270
2271 2002-04-18  Richard Henderson  <rth@redhat.com>
2272
2273         * ifcvt.c: Include except.h.
2274         (block_has_only_trap): Break out from find_cond_trap.
2275         (find_cond_trap): Use it.  Always delete the trap block.
2276         (merge_if_block): Allow then block null.  Be less simplistic about
2277         what insns can end a block.
2278         * Makefile.in (ifcvt.o): Depend on except.h.
2279
2280         * config/ia64/ia64.md (trap, conditional_trap): New.
2281
2282 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2283
2284         PR c/6358
2285         * function.c (assign_parms): Assign hard current_function_return_rtx
2286         register here...
2287         (expand_function_end): ...not here.
2288
2289 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2290
2291         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2292         * c-tree.h (c_incomplete_type_error): New.
2293         * c-typeck.c (require_complete_type, build_component_ref): Update.
2294         (incomplete_type_error): Rename.
2295         * langhooks-def.h (lhd_incomplete_type_error): New.
2296         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2297         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2298         * langhooks.c (lhd_incomplete_type_error): New.
2299         * langhooks.h (struct lang_hooks_for_types): New hook.
2300         * tree.c (size_in_bytes): Use new hook.
2301         * tree.h (incomplete_type_error): Remove.
2302 objc:
2303         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2304
2305 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
2306
2307         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2308         TARGET_FLOAT_FORMAT blocks.
2309
2310 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2311
2312         * doc/install.texi (Downloading the source): Do not mention Chill
2313         any longer, but mention Ada.
2314         (Configuration): Do not mention Chill any longer.
2315
2316 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
2317
2318         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2319
2320 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
2321
2322         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2323         in last patch.
2324
2325 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2326
2327         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2328         instead of unsigned_type.
2329
2330 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2331
2332         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2333         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2334         later.
2335
2336 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
2337
2338         * attribs.c (vector_type_node_list): New static variable.
2339         (handle_vector_size_attribute): Use it to avoid generating a
2340         new type node each time we are called.
2341
2342         * combine.c (subst): Avoid trying to make a vector mode subreg of
2343         an integer constant.
2344         (gen_lowpart_for_combine): Likewise.
2345
2346 2002-04-18  Roger Sayle  <roger@eyesopen.com>
2347             Jakub Jelinek  <jakub@redhat.com>
2348
2349         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2350         for integer constant c (if x has unsigned type or sign bit is not
2351         set in c).  This folds the zero/sign extension into the bit-wise and
2352         operation.
2353
2354 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2355
2356         PR middle-end/6205
2357         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2358         otherwise xorps.
2359
2360 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
2361
2362         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2363
2364 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
2365
2366         * gcc.c (read_specs): Detect and fail if an attempt is made to
2367         rename a spec string to an already existing string.
2368
2369 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2370
2371         * config/s390/s390.c (legitimize_pic_address): Do not generate
2372         illegal address constant without CONST.
2373
2374 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2375
2376         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2377         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2378
2379 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2380
2381         PR optimization/6305
2382         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2383         to make sure previous reloads are taken into account.  Generate
2384         better code if one operand is an in-range immediate constant.
2385
2386 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
2387
2388         * doc/install.texi (Building): libgcj requires GNU make.
2389
2390 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2391
2392         PR bootstrap/6315
2393         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2394         even if hard quad and register is not floating.
2395         (movtf reg<-mem split): Disallow splitting if hard quad and
2396         register is floating.
2397         (movtf mem<-reg split): Likewise.
2398         * config/sparc/sparc.c (fp_register_operand): New predicate.
2399         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2400
2401 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
2402
2403         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2404         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2405         (unprotoize.o): Ditto.  Build from protoize.c.  Define
2406         UNPROTOIZE on command line.
2407         * protoize.c: Include cppdefault.h.  Delete include_defaults.
2408         (in_system_include_dir): Use cpp_include_defaults (defined in
2409         cppdefault.o).
2410         * unprotoize.c: Delete file.
2411
2412 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
2413
2414         * config/rs6000/altivec.h (vec_ld): Add array variants.
2415         (vec_lde): Same.
2416         (vec_ldl): Same.
2417
2418 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
2419             Aldy Hernandez <aldyh@redhat.com>
2420
2421         * config/rs6000/altivec.h: Define __ALTIVEC__.
2422         (bool): New.
2423         (__pixel): New.
2424         (pixel): New.
2425         (vec_cfux): New.
2426         (vec_vmaddfp): New.
2427         (vec_vsldoi): New.
2428         Add parentheses to all macro arguments.
2429
2430 2002-04-16  Richard Henderson  <rth@redhat.com>
2431
2432         PR c++/6320
2433         * except.c (remove_eh_handler): Insert inner regions at beginning
2434         of sibling chain.  Refactor expressions.
2435
2436 2002-04-16  Richard Henderson  <rth@redhat.com>
2437
2438         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2439         * config/sparc/sol2-gas-bi.h: New file.
2440         * config.gcc (sparc*-solaris): Add it as needed.
2441         * configure.in (AS_SPARC64_FLAG): Remove check.
2442         * config.in, configure: Regenerate.
2443
2444         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2445
2446 2002-04-16  Richard Henderson  <rth@redhat.com>
2447
2448         * config/mips/mips.c (override_options): Don't override N32 for
2449         a 64-bit ISA.
2450
2451         PR 6202
2452         * config/mips/mips.md (can_delay): Split out of existing define_delays.
2453         (HILO_delay): Set can_delay false.
2454
2455 2002-04-16  Dale Johannesen <dalej@apple.com>
2456
2457         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2458         instruction addresses.
2459         (rs6000_output_function_epilogue): Likewise.
2460
2461 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
2462
2463         * c-parse.in (poplevel, compstmt_start,
2464         compstmt_primary_start): Add ending ';', in accordance
2465         with POSIX.
2466
2467 2002-04-16  Richard Henderson  <rth@redhat.com>
2468
2469         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2470         Adjust tm_file order to get TARGET_DEFAULT set properly.
2471         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2472         * doc/install.texi (sparc-solaris): Update.
2473
2474 2002-04-16  Dale Johannesen <dalej@apple.com>
2475
2476         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2477         comparison operands do not match each other or if modes of
2478         conditions do not match result.
2479
2480 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
2481
2482         PR target/6305
2483         * config/s390/s390.md (mulsidi3): Set both subregs of the
2484         multiword register.
2485
2486 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
2487
2488         * config/rs6000/altivec.h (vec_addc): Type check.
2489
2490 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2491
2492         PR middle-end/6279
2493         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2494
2495         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2496
2497 2002-04-15  Richard Henderson  <rth@redhat.com>
2498
2499         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2500         call_really_used_regs too.
2501
2502 2002-04-15  Richard Henderson  <rth@redhat.com>
2503
2504         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2505
2506 2002-04-15  David S. Miller  <davem@redhat.com>
2507
2508         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2509         as being CLOBBERed.
2510
2511 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2512
2513         PR c/6290
2514         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2515         CONST_VECTOR is { 0, ... 0 }.
2516
2517 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2518
2519         * doc/install.texi (Installing GCC: Configuration): Clarify
2520         the only supported ways to configure gcc.
2521
2522 2002-04-15  Roland McGrath  <roland@frob.com>
2523
2524         * config.gcc (alpha*-*-gnu*): New target configuration.
2525         * config/alpha/gnu.h: New file for it.
2526         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2527
2528 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2529
2530         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2531         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2532         * tree.h (expand_start_stmt_expr): Update prototype.
2533         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2534         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2535         on the STMT_EXPR created for the inline function.
2536
2537 2002-04-15  Richard Henderson  <rth@redhat.com>
2538
2539         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2540         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2541         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2542         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2543         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2544         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2545         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2546         Define __gnu_linux__, not gnu_linux.
2547         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2548
2549 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2550
2551         Remove Chill front end.
2552         * gcc.c (default_compilers): Remove Chill entries.
2553         * ch: Remove directory.
2554         * doc/frontends.texi: Remove information about Chill.
2555         * doc/sourcebuild.texi: Likewise.
2556         * doc/standards.texi: Likewise.
2557
2558 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2559
2560         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2561         (LONGLONG_STANDALONE): Define.
2562
2563 2002-04-15  David S. Miller  <davem@redhat.com>
2564
2565         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2566         Call emit_library_call with LCT_NORMAL.
2567         (sparc_initialize_trampoline): Use LCT_foo instead of
2568         magic constant in emit_library_call invocations.
2569         (sparc64_initialize_trampoline): Likewise.
2570         (sparc_profile_hook): Likewise.
2571         * config/sparc/sparc.md: Likewise.
2572
2573         * config/sparc/sparc.c (sparc_extra_constraint_check):
2574         Fix type of argument 'c'.
2575         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2576         Likewise.
2577
2578 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2579
2580         * diagnostic.h (output_buffer_state): Redefine.
2581         (output_format_decoder): New macro.
2582         (output_prefixing_rule): Likewise.
2583         (output_line_cutoff): Likewise.
2584         (diagnostic_format_decoder): Adjust.
2585         (diagnostic_prefixing_rule): Likewise.
2586         (diagnostic_line_cutoff): Likewise.
2587         (diagnostic_state): Likewise.
2588         (diagnostic_kind_count): Likewise.
2589         (diagnostic_buffer): Now a macro.
2590
2591         * diagnostic.c (diagnostic_buffer): Remove definition.
2592         (output_is_line_wrapping): Adjust.
2593         (set_real_maximum_length): Likewise.
2594         (output_set_maximum_length): Likewise.
2595         (init_output_buffer): Likewise.
2596         (lhd_print_error_function): Likewise.
2597         (output_do_verbatim): Likewise.
2598
2599 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2600
2601         * cpperror.c (print_location): Don't print include chain
2602         if line == 0.
2603         (cpp_begin_message): Update to use DL_ macros.
2604         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2605         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2606         cpp_notice, cpp_notice_from_errno): Remove.
2607         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2608         level.
2609         (cpp_errno): New.
2610         * cppexp.c (CPP_ICE): Remove.
2611         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2612         lex, integer_overflow, _cpp_parse_expr): Update.
2613         * cppfiles.c (read_include_file, find_include_file,
2614         handle_missing_header, _cpp_read_file, remap_filename): Update.
2615         * cpphash.h (enum error_type): Remove.
2616         (_cpp_begin_message): Update.
2617         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2618         cpp_handle_option, cpp_post_options): Update.
2619         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2620         skip_whitespace, parse_identifier, parse_slow, parse_string,
2621         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2622         cpp_interpret_charconst): Update.
2623         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2624         lex_macro_node, do_undef, glue_header_name, parse_include,
2625         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2626         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2627         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2628         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2629         _cpp_pop_buffer, do_diagnostic): Update.
2630         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2631         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2632         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2633         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2634         cpp_notice, cpp_notice_from_errno): Remove.
2635         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2636         level.
2637         (cpp_errno): New.
2638         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2639         collect_args, enter_macro_context, save_parameter, parse_params,
2640         _cpp_create_definition, check_trad_stringification,
2641         cpp_macro_definition): Update.
2642         * cppmain.c (cpp_preprocess_file): Update.
2643         * fix-header.c (read_scan_file): Update.
2644
2645 2002-04-14  Andreas Schwab  <schwab@suse.de>
2646
2647         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2648
2649 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2650
2651         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2652
2653 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2654
2655         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2656         not gnu_hurd.
2657
2658 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2659
2660         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2661
2662 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2663
2664         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2665         sparc-elf and sparc-rtems targets.
2666
2667 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2668
2669         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2670         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2671         * arm/linux-elf.h: Likewise.
2672         * cris/aout.h: Likewise.
2673         * cris/linux.h: Likewise.
2674         * i370/linux.h: Likewise.
2675         * i386/gnu.h: Likewise.
2676         * i386/linux-aout.h: Likewise.
2677         * i386/linux-oldld.h: Likewise.
2678         * i386/linux.h: Likewise.
2679         * i386/linux64.h: Likewise.
2680         * ia64/linux.h: Likewise.
2681         * m68k/linux-aout.h: Likewise.
2682         * m68k/linux.h: Likewise.
2683         * mips/linux.h: Likewise.
2684         * pa/pa-linux.h: Likewise.
2685         * pj/linux.h: Likewise.
2686         * rs6000/sysv4.h: Likewise.
2687         * s390/linux.h: Likewise.
2688         * sh/linux.h: Likewise.
2689         * sparc/linux-aout.h: Likewise.
2690         * sparc/linux.h: Likewise.
2691         * sparc/linux64.h: Likewise.
2692         * xtensa/linux.h: Likewise.
2693
2694 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2695
2696         * stmt.c (check_unique_operand_names): Expect operand names to
2697         be strings rather than identifiers.  Use simple_cst_equal to
2698         compare them.
2699         (resolve_operand_name_1): Make same identifier to string change here.
2700         * c-parse.in (asm_operand): Convert a named operand into a string.
2701         * cp/parse.y (asm_operand): Likewise.
2702
2703 2002-04-13  Andreas Schwab  <schwab@suse.de>
2704
2705         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2706
2707 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2708
2709         Revert these changes:
2710
2711         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2712
2713         PR c++/5571
2714         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2715
2716 2002-04-12  Richard Henderson  <rth@redhat.com>
2717
2718         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2719         (sparc*-*-solaris): Clean up header files.
2720         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2721         and plan on generating 64-bit code.
2722         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2723         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2724         * config/sparc/sol2-sld-64.h: Rename ...
2725         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2726         for AS_SPARC64_FLAG not defined.
2727         * config/sparc/sol2-gld-bi.h: New.
2728         * config/sparc/sol2-sld.h: Remove.
2729         * config/sparc/sol26-sld.h: New.
2730         * config/sparc/sol2.h: Tidy comments.
2731         * doc/install.texi: Document sparc-solaris configury changes.
2732
2733 2002-04-12  Richard Henderson  <rth@redhat.com>
2734
2735         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2736
2737         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2738         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2739
2740 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2741
2742         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2743
2744 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2745
2746         * pa.c (pa_can_combine_p): Call extract_insn before calling
2747         constrain_operands.
2748
2749 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2750
2751         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2752         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2753         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2754         (CPP_PREDEFINES): Handle __declspec.
2755         * config/i386/t-interix (USER_H): Remove.
2756
2757 2002-04-12  DJ Delorie  <dj@redhat.com>
2758
2759         * integrate.c (compare_blocks): Make comparisons safe for when
2760         sizeof(int) < sizeof(char *).
2761         (find_block): Likewise.
2762
2763 2002-04-12  Jan Hubicka  <jh@suse.cz>
2764             David Edelsohn  <edelsohn@gnu.org>
2765
2766         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2767         registers.
2768         (symbol_ref_operand): New.
2769         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2770         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2771
2772 2002-04-12  Andreas Schwab  <schwab@suse.de>
2773
2774         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2775         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2776         overrides the definition in config/svr4.h.
2777
2778 2002-04-12      Eric Norum <eric.norum@usask.ca>
2779
2780         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2781         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2782         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2783         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2784         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2785         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2786         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2787         definitions to config/rtems.h and make the targets more similar.
2788
2789 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2790
2791         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2792         POINTERS_EXTEND_UNSIGNED.
2793         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2794         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2795
2796         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2797         not specified.
2798
2799 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2800
2801         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2802         depends on TARGET_SHMEDIA, not TARGET_SH5.
2803
2804 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2805
2806         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2807         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2808
2809 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2810
2811         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2812         no r0 clobber.
2813
2814 2002-04-12  Andreas Schwab  <schwab@suse.de>
2815
2816         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2817
2818 2002-04-12  Richard Henderson  <rth@redhat.com>
2819
2820         PR bootstrap/4191
2821         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2822
2823         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2824         modes spanning multiple hard regs.
2825
2826         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2827
2828 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2829
2830         * pa.c (pa_output_function_prologue): Don't accumulate the total
2831         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2832         the portable runtime.
2833         (output_deferred_plabels): Handle 64bit plabels.
2834         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2835         generating pic code using the GAS assembler for object formats that
2836         are not SOM (ie., ELF32 and ELF64).
2837         (output_millicode_call): Check attribute type if attribute length is 28.
2838         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2839         dbr_sequence_length once.
2840         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2841         dbr_sequence_length once.
2842         * pa.h (TARGET_SOM): Define if not defined.
2843         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2844         with GAS and not SOM.
2845         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2846         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2847
2848 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2849
2850         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2851         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2852         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2853         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2854         elfos.h and dbxelf.h values are fine now.
2855         * config/i386/freebsd.h, config/alpha/freebsd.h
2856         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2857
2858 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2859
2860         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2861         or set Acpu or Amachine.  Reformat.
2862         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2863         define.
2864         (LINK_SPEC): Do not need to undef.
2865         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2866         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2867         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2868         define.
2869         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2870         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2871         (LINK_SPEC): Do not need to undef.
2872         (DONT_USE_BUILTIN_SETJMP): Do not define.
2873         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2874         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2875         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2876         Remove trailing spaces.
2877         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2878         __ELF__, or set Acpu or Amachine.  Reformat.
2879         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2880         define.
2881
2882 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2883
2884         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2885         all other *-*-freebsd* targets.
2886
2887 2002-04-11  Richard Henderson  <rth@redhat.com>
2888
2889         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2890
2891 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2892
2893         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2894         Include {cpu}/{cpu}.h thru tm_file.
2895         (alpha*-*-linux*ecoff): Remove target.
2896         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2897         (LINK_SPEC): Remove, is not OS independent.
2898         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2899         (LINK_SPEC): Do not need to #undef any longer.
2900         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2901         any longer.
2902         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2903         __ELF__.
2904         (LINK_SPEC): Moved here from alpha/elf.h.
2905         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2906         SUB_CPP_PREDEFINES.
2907         * config/alpha/linux-ecoff.h: Remove.
2908         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2909         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2910         (CPP_SUBTARGET_SPEC): Do not define.
2911         (LINK_SPEC): Do not need to #undef any longer.
2912         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2913         * config/alpha/vms.h: Likewise.
2914
2915 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2916
2917         * doc/extend.texi: Remove old claim that typedefs cannot have
2918         an alignment attribute.
2919
2920 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2921
2922         PR optimization/6177
2923         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2924         bitpos is 0 and bitsize CONCAT size.
2925
2926 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2927
2928         PR c/6223
2929         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2930
2931 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2932
2933         * config/alpha/freebsd.h: Minor reformatting.
2934         (CPP_SPEC): Define ELF and add cpp_subtarget.
2935         (ASM_SPEC): No longer needed.
2936
2937 2002-04-11  Richard Henderson  <rth@redhat.com>
2938
2939         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2940         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2941         (dimode mem/zero splitter): New.
2942
2943 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2944
2945         * config/cris/cris.c (cris_override_options): Tweak error message
2946         for PIC not implemented.
2947
2948         * config/cris/cris.h: Tweak comments related to parameter-passing.
2949
2950         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2951
2952 2002-04-10  Richard Henderson  <rth@redhat.com>
2953
2954         * except.c (add_ehl_entry): Allow duplicates after landing pad
2955         creation.
2956
2957 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2958
2959         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2960
2961 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2962
2963         * c-decl.c (c_init_decl_processing): Move generation of
2964         decls for g77_integer_type_node and friends from here ...
2965         * c-common.c (c_common_nodes_and_builtins): ... to here.
2966
2967 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2968
2969         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2970         is only used as frame pointer when frame_pointer_needed is true.
2971
2972 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2973
2974         PR target/817
2975         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2976         for the fact that the pool entry uses two words.
2977         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2978         1k bytes.
2979         (movdf_soft_insn): Similarly.
2980         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2981         for the fact that the pool entry uses three words.
2982
2983 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2984
2985         * config/mips/mips.c (mips_va_arg): When using the struct version
2986         of the EABI va_list, allow arguments in the register save area to
2987         take up less room than a stack argument.
2988
2989 2002-04-10  Richard Henderson  <rth@redhat.com>
2990
2991         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2992         if EXPAND_INITIALIZER.
2993
2994 2002-04-09  Richard Henderson  <rth@redhat.com>
2995
2996         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2997         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2998
2999 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
3000
3001         PR optimization/6233
3002         * rtlanal.c (pure_call_p): New function.
3003         * rtl.h (pure_call_p): Declare.
3004         * loop.c (prescan_loop): Use it to set has_nonconst_call.
3005         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3006
3007 2002-04-09  Eric Christopher  <echristo@redhat.com>
3008
3009         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
3010         information to .comm directive.
3011
3012 2002-04-09  Richard Henderson  <rth@redhat.com>
3013
3014         PR c/5078
3015         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3016
3017 2002-04-09  Richard Henderson  <rth@redhat.com>
3018
3019         * basic-block.h (flow_delete_block_noexpunge): Declare.
3020         (expunge_block_nocompact): Declare.
3021         * cfg.c (expunge_block_nocompact): Split out from ...
3022         (expunge_block): ... here.
3023         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3024         (flow_delete_block_noexpunge): Split out from ...
3025         (flow_delete_block): ... here.
3026         * cfgcleanup.c (delete_unreachable_blocks): Compact while
3027         removing dead blocks.
3028         * except.c (exception_handler_labels): Remove.
3029         (exception_handler_label_map): New.
3030         (struct eh_region): Add aka member.
3031         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3032         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3033         (for_each_eh_label, for_each_eh_label_1): New.
3034         (init_eh): Register exception_handler_label_map.
3035         (free_eh_status): Use free_region.
3036         (find_exception_handler_labels): Use the map, not the list.
3037         (remove_exception_handler_label): Likewise.
3038         (maybe_remove_eh_handler): Likewise.
3039         (remove_eh_handler): Use the region aka bitmap.
3040         * except.h (exception_handler_labels): Remove.
3041         (for_each_eh_label): Declare.
3042         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3043         * loop.c (invalidate_loops_containing_label): New.
3044         (find_and_verify_loops): Use it.  Use for_each_eh_label.
3045         * sched-rgn.c (is_cfg_nonregular): Use
3046         current_function_has_exception_handlers.
3047
3048 2002-04-09  Richard Henderson  <rth@redhat.com>
3049
3050         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
3051         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
3052         Do not return changed status.
3053         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
3054         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
3055         New functions that do return changed status.
3056         * sbitmap.h: Update decls.
3057         * gcse.c, lcm.c: Use _cg functions as needed.
3058
3059 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3060
3061         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
3062         (sh64-*-elf*, sh-*-rtemself*): Likewise.
3063         * config/sh/embed_bb.c: New file.
3064         * config/sh/embed-elf.h: New file.
3065         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
3066         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
3067         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3068         __PTRDIFF_TYPE__ .
3069         (SUBTARGET_CPP_PTR_SPEC): Don't define.
3070         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
3071         Add subtarget_asm_endian_spec.
3072         (ASM_SPEC): Use subtarget_asm_endian_spec.
3073         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
3074         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
3075         (WCHAR_UNSIGNED): Define.
3076         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
3077         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3078         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
3079         Fix value.
3080         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
3081         (sh_adjust_cost): Likewise.
3082         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
3083         __PTRDIFF_TYPE__ .
3084         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
3085         (WCHAR_TYPE_SIZE): Likewise.
3086         (ASM_SPEC): Use subtarget_asm_endian_spec.
3087         (SH_ELF_WCHAR_TYPE): #undef/ #define.
3088         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
3089         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
3090         (MAX_WCHAR_TYPE_SIZE): Don't #define .
3091         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
3092         (USER_LABEL_PREFIX): Don't #undef /#define .
3093         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
3094         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
3095         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
3096         (ASM_SPEC): Likewise.
3097         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
3098         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
3099         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
3100         (LIB2FUNCS_EXTRA): Define.
3101         * t-sh64 (LIB2FUNCS_EXTRA): Define.
3102         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
3103         (LIB1ASMFUNCS_CACHE): Define.
3104         (LIB2FUNCS_EXTRA): Redefine empty.
3105
3106 2002-04-08  Richard Henderson  <rth@redhat.com>
3107
3108         * reorg.c (get_branch_condition): Use reversed_comparison_code.
3109
3110 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3111
3112         * config/m68hc11/larith.asm (__map_data_section): Fix condition
3113         and optimize for size.
3114         (__do_global_ctors): Fix pointer comparison.
3115         (__do_global_dtors): Likewise.
3116
3117 2002-04-09  David S. Miller  <davem@redhat.com>
3118
3119         * config/sparc/sparc.c (sparc_extra_constraint_check): New
3120         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
3121         allow reloading pseudos.
3122         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3123         * config/sparc/sparc-protos.h: Declare it.
3124
3125         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3126         unsigned comparison warning.
3127         (output_restore_regs): Mark leaf_function as unused.
3128
3129 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3130
3131         * expr.c (is_aligning_offset): New function.
3132         (expand_expr, case COMPONENT_EXPR): Call it.
3133
3134 2002-04-08  David S. Miller  <davem@redhat.com>
3135
3136         PR target/6082
3137         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3138
3139         Make init_priority work on Sparc when using GNU ld.
3140         * config/sparc/linux.h, config/sparc/linux64.h,
3141         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3142         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3143         * config/sparc/sol2-gld.h: New file to do the same.
3144         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3145         sparc/sol2-gld.h to tm_file.
3146
3147         PR optimization/4328
3148         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3149         * doc/md.texi: Document it.
3150         * config/sparc/sparc.md (movdi_insn_sp64_novis,
3151         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3152         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3153         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3154         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3155
3156 2002-04-08  Andreas Jaeger  <aj@suse.de>
3157
3158         * stmt.c (expand_asm_operands): Revert last patch from Richard
3159         Henderson.
3160
3161 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3162
3163         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3164         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
3165
3166 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3167
3168         * doc/contrib.texi (Contributors): Add David O'Brien.
3169
3170 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
3171
3172         * configure.in (auto-build.h): Use target_alias and build_alias
3173         when running configure.
3174         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
3175         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
3176         * configure: Regenerate.
3177
3178 2002-04-07  David S. Miller  <davem@redhat.com>
3179
3180         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3181
3182 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3183
3184         PR 5933
3185         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3186         generating 32-bit pic code.
3187
3188 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
3189
3190         * cppinit.c (cpp_create_reader): Initialize
3191         discard_comments_in_macro_exp.
3192         (COMMAND_LINE_OPTIONS): Add "-CC" option.
3193         (cpp_handle_option): Handle "-CC" option.
3194         * cpplex.c (save_comment): If saving a C++ comment in
3195         a directive, convert it to a C comment.
3196         (_cpp_lex_direct): Pass second comment start character to
3197         save_comment to indicate comment type.
3198         * cpplib.c (_cpp_handle_directive): If processing
3199         a "#define" directive and discard_comments_in_macro_exp
3200         is false,  re-enable saving of comments.
3201         (lex_macro_node): If discard_comments_in_macro_exp is false,
3202         discard any comments before the macro identifier.
3203         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
3204         member.
3205         * cppmacro.c (cpp_get_token): If expanding a macro while
3206         processing a directive, discard any comments we might encounter.
3207         (parse_params): If discard_comments_in_macro_exp is false,
3208         ignore comments in the macro parameter list.
3209         * gcc.c (cpp_unique_options): Add "-CC" option.
3210         (option_map): Map "--comments-in-macros" to "-CC".
3211         * doc/cppopts.texi: Document "-CC" option.
3212         * f/lang-specs.h: Add "-CC" option.
3213         * testsuite/gcc.dg/cpp/maccom1.c: New test.
3214         * testsuite/gcc.dg/cpp/maccom2.c: New test.
3215         * testsuite/gcc.dg/cpp/maccom3.c: New test.
3216         * testsuite/gcc.dg/cpp/maccom4.c: New test.
3217         * testsuite/gcc.dg/cpp/maccom5.c: New test.
3218         * testsuite/gcc.dg/cpp/maccom6.c: New test.
3219
3220 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3221
3222         PR middle-end/6180
3223         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3224
3225 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3226
3227         PR c++/5571
3228         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3229
3230         PR opt/5120
3231         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3232         RTX_UNCHANGING_P for the functions arguments when a tail call
3233         is made.
3234
3235 2002-04-06  Jason Merrill  <jason@redhat.com>
3236
3237         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3238         (parse_options_and_default_flags): Set them appropriately.
3239         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3240
3241 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
3242
3243         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3244         here.
3245
3246         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3247         semicolon.
3248
3249         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3250         types come in by-reference.  Fix typo in comment.
3251
3252 2002-04-05  David S. Miller  <davem@redhat.com>
3253
3254         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3255         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3256         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3257         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3258
3259 2002-04-05  David S. Miller  <davem@redhat.com>
3260
3261         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3262         are not going to emit return instructions, emit at least a nop
3263         for the sake of sane backtraces.
3264
3265 2002-04-05  Richard Henderson  <rth@redhat.com>
3266
3267         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3268
3269 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
3270
3271         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3272
3273 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
3274
3275         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3276         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3277         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3278
3279 2002-04-05  Andreas Schwab  <schwab@suse.de>
3280
3281         * c-convert.c: Include c-common.h.
3282         * Makefile.in (c-convert.o): Updated.
3283
3284 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3285
3286         * mklibgcc.in: Use separate libgcc.map for each multilib.
3287         * Makefile.in (distclean): Don't remove libgcc.map here.
3288
3289 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3290
3291         * Makefile.in (s-mlib): Handle --disable-multilib by separate
3292         genmultilib invocation.
3293
3294 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
3295
3296         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3297         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
3298         to num_gprs for symmetry.
3299         * config/mips/mips.c: Adjust accordingly.
3300
3301 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3302
3303         * c-common.c (truthvalue_conversion): Rename, update.
3304         * c-common.h (c_common_truthvalue_conversion): New.
3305         * c-convert.c (convert): Update.
3306         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3307         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3308         * c-typeck.c (build_binary_op, build_unary_op,
3309         build_conditional_expr): Update.
3310         * fold-const.c (constant_boolean_node, fold): Use langhook.
3311         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3312         * langhooks.h (struct lang_hooks): New hook.
3313         * stmt.c (expand_decl_cleanup): Use langhook.
3314         * tree.h (truthvalue_conversion): Remove.
3315 objc:
3316         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3317
3318 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
3319
3320         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3321         Add rules to make null object file.
3322
3323 2002-04-04  Jim Blandy  <jimb@redhat.com>
3324
3325         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3326         macro formal parameter names.
3327
3328 2002-04-04  David S. Miller  <davem@redhat.com>
3329
3330         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3331
3332 2002-04-04  Richard Henderson  <rth@redhat.com>
3333
3334         PR middle-end/5099
3335         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3336         Support copies into and out of memory.  Don't accept allows_reg
3337         and allows_mem as gospel.
3338
3339 2002-04-04  Richard Henderson  <rth@redhat.com>
3340
3341         PR opt/6165
3342         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3343         (write_dependence_p): Likewise.
3344
3345 2002-04-04  Richard Henderson  <rth@redhat.com>
3346
3347         * predict.c (estimate_bb_frequencies): Do frequency calculation
3348         with a volatile temporary.
3349
3350 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
3351
3352         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3353
3354 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3355
3356         PR c++/6119
3357         * final.c (final_start_function): Don't bump profile_label_no here...
3358         (final_end_function): ...but here.
3359
3360 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3361
3362         * config/sparc/sparc.md (pic): New attribute.
3363         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3364         into stack slots.
3365         (split after do_builtin_setjmp_setup): New.
3366
3367 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3368
3369         PR fortran/6106
3370         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3371         change.
3372
3373 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3374
3375         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3376         UNITS_PER_WORD for zero sized aggregates.
3377
3378 2002-04-03  David S. Miller  <davem@redhat.com>
3379
3380         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3381         one-character spec for this, just use %(link_gcc_c_sequence).
3382
3383 2002-04-03  David S. Miller  <davem@redhat.com>
3384
3385         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3386         handling.
3387
3388 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3389
3390         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3391         (DWARF_FRAME_RETURN_COLUMN): Move.
3392         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3393         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3394         * pa.c (except.h, predict.h): Include.
3395         (FRP): Delete.
3396         (store_reg_modify, set_reg_plus_d): Revise prototypes.
3397         (output_ascii): Add cast.
3398         (store_reg_modify): Revise to add frame notes.
3399         (set_reg_plus_d): Likewise.
3400         (compute_frame_size): Include space for eh data registers in frame if
3401         the current function calls eh_return.
3402         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
3403         function calls eh_return.  Save eh data registers if the current
3404         function calls eh_return.  Fix code to add frame notes.  Emit
3405         blockage to prevent insns with frame notes being scheduled in the
3406         delay slot of calls.
3407         (hppa_expand_epilogue): Restore eh data registers and do final stack
3408         adjustment if the current function calls eh_return.  Don't add frame
3409         notes.
3410         (output_call): Revise for change in length of call insn.  Don't do
3411         return pointer adjustment for an unconditional jump in the delay slot
3412         of a call when using frame notes.
3413         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3414         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3415         (ARG_POINTER_CFA_OFFSET): Define.
3416         * pa.md (return_external_pic): New pattern.
3417         (prologue): Correct formatting.  Use return_external_pic if current
3418         function calls eh_return.
3419         (call_internal_symref, call_value_internal_symref,
3420         sibcall_internal_symref, sibcall_value_internal_symref): Change default
3421         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3422         respectively.
3423         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3424
3425         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3426         list of targets to check using "nop" insn.
3427         * configure: Rebuilt.
3428
3429 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3430
3431         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3432
3433 2002-04-03  David S. Miller  <davem@redhat.com>
3434
3435         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3436         library sequence passed to the linker.
3437         (LINK_COMMAND_SPEC): Use it.
3438         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3439         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3440         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3441
3442 2002-04-03  Jason Merrill  <jason@redhat.com>
3443
3444         * except.c (struct eh_status): Remove protect_list.
3445         (begin_protect_partials, end_protect_partials): Remove.
3446         (add_partial_entry): Remove.
3447         * except.h: Remove prototypes.
3448
3449         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3450         expand_decl_cleanup_eh.
3451
3452         PR c++/5636
3453         * tree.h (CLEANUP_EH_ONLY): New macro.
3454         * stmt.c (expand_decl_cleanup_eh): New fn.
3455         (expand_cleanups): Check CLEANUP_EH_ONLY.
3456         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3457         Use expand_decl_cleanup_eh.
3458         (expand_stmt): Adjust.
3459         * c-common.h: Adjust prototype.
3460
3461 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
3462
3463         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3464         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3465         (cris_target_asm_function_epilogue): Ditto.
3466         (cris_initial_frame_pointer_offset): Ditto.
3467         (cris_simple_epilogue): Ditto.
3468         (cris_expand_builtin_va_arg): Variable-size types come in
3469         by-reference.
3470
3471 2002-04-03  David S. Miller  <davem@redhat.com>
3472
3473         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3474         little-endian.
3475         (set_fast_math): Correct 'fsr' type.
3476
3477 2002-04-03  Richard Henderson  <rth@redhat.com>
3478
3479         PR opt/3569
3480         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3481         * toplev.c (check_global_declarations): Use it.
3482         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3483         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3484         (LANG_HOOKS_DECLS): Add it.
3485         * langhooks.c (lhd_warn_unused_global_decl): New.
3486         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3487         * c-objc-common.c (c_warn_unused_global_decl): New.
3488         * c-tree.h (c_warn_unused_global_decl): Declare.
3489         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3490
3491 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3492
3493         * langhooks-def.h (lhd_set_decl_assembler_name,
3494         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3495         (LANG_HOOKS_INITIALIZER): Update.
3496         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3497         * langhooks.h (struct lang_hooks): New hook.
3498         * tree.c (set_decl_assembler_name): Move to langhooks.c.
3499         (lang_set_decl_assembler_name): Remove.
3500         (init_obstacks): Don't set hook.
3501         (decl_assembler_name): New function.
3502         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3503         (decl_assembler_name): New.
3504         (lang_set_decl_assembler_name): Remove.
3505
3506 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3507
3508         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3509         works properly with .hidden symbols.
3510         * configure: Rebuilt.
3511         * config.in: Rebuilt.
3512         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3513         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3514         properly with .hidden symbols.
3515
3516 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3517
3518         PR middle-end/6102
3519         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3520         USE argument.
3521
3522 2002-04-03  Richard Henderson  <rth@redhat.com>
3523
3524         PR opt/4120
3525         * sched-rgn.c (sets_likely_spilled): New.
3526         (sets_likely_spilled_1): New.
3527         (add_branch_dependences): Use it.
3528
3529 2002-04-02  Richard Henderson  <rth@redhat.com>
3530
3531         PR opt/4311
3532         * loop.h (LOOP_FIRST_PASS): New.
3533         * loop.c (strength_reduce): Mind it when deciding to unroll.
3534         * toplev.c (rest_of_compilation): Set it.
3535
3536 2002-04-02  David S. Miller  <davem@redhat.com>
3537
3538         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3539         mems_ok_for_ldd_peep when the order of the loads being examined
3540         is reversed.
3541         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3542         existing comment to increase comprehension of this situation.
3543
3544 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3545
3546         * config/sh/sh.md: Don't use union real_extract.
3547
3548 2002-04-02  Richard Henderson  <rth@redhat.com>
3549
3550         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3551
3552 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3553
3554         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3555         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3556         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3557         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3558         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3559         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3560         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3561         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3562         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3563         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3564         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3565         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3566         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3567         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3568         Include as many configury headers via tm_file as possible.  This
3569         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3570         * config/openbsd-oldgas.h: New file.
3571         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3572         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3573         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3574         config/i386/i386-coff.h, config/i386/i386-interix.h,
3575         config/i386/iscdbx.h, config/i386/linux-aout.h,
3576         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3577         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3578         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3579         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3580         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3581         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3582         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3583         config/i386/vxi386.h: Do not directly include configury headers.
3584         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3585         Directly include configury headers that are no longer automatically
3586         included by the above headers.
3587         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3588         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3589         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3590         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3591         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3592         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3593         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3594         (TARGET_VERSION): Define.
3595         * config/i386/beos-elf.h, config/i386/freebsd.h,
3596         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3597         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3598         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3599         config/i386/sco5.h, config/i386/sysv4.h
3600         (TARGET_VERSION): Do not need to protect.
3601         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3602         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3603         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3604         config/i386/i386-interix.h, config/i386/linux-aout.h,
3605         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3606         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3607         (YES_UNDERSCORES): Do not define - not needed.
3608         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3609         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3610         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3611         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3612         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3613         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3614         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3615         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3616
3617 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3618             Richard Henderson  <rth@redhat.com>
3619
3620         PR c/5484
3621         * function.c (assign_temp): Accept either type or decl argument.
3622         Detect variables whose size is too large to fit into an integer.
3623         * stmt.c (expand_decl): Pass the decl, not the type.
3624
3625 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3626
3627         * protoize.c: Match include directory usage with cppdefault.c.
3628
3629 2002-04-03  Jeffrey A Law  (law@redhat.com)
3630             Hans-Peter Nilsson  <hp@bitrange.com>
3631
3632         * combine.c (simplify_comparison): Avoid narrowing a comparison
3633         with a paradoxical subreg when doing so would drop signficant bits.
3634
3635 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3636
3637         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3638         if POINTERS_EXTEND_UNSIGNED is defined.
3639
3640 2002-04-02  Richard Henderson  <rth@redhat.com>
3641
3642         PR opt/3967
3643         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3644         replace regs.
3645
3646 2002-04-02  Richard Henderson  <rth@redhat.com>
3647
3648         * doc/standards.texi: Document required freestanding libc entry points.
3649
3650 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3651
3652         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3653         associated splitter.  Remove MQ constraint.
3654         (ctrdi_internal4): Correct CCmode clobber.
3655
3656 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3657
3658         * milli64.S ($$dyncall): New function.
3659         * t-linux (LIB1ASMFUNCS): Revise module list.
3660         (LIB1ASMSRC): Use pa/milli64.S.
3661
3662 2002-04-02  Richard Henderson  <rth@redhat.com>
3663
3664         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3665         rename solaris_sys_varargs_h.
3666
3667 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3668
3669         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3670         the same mode as its component.
3671
3672 2002-04-02  Richard Henderson  <rth@redhat.com>
3673
3674         PR opt/190
3675         * final.c (this_is_asm_operands): Export.
3676         * output.h (this_is_asm_operands): Declare.
3677         * config/i386/i386.c (print_operand): Error odd asm operands.
3678
3679 2002-04-02  Richard Henderson  <rth@redhat.com>
3680
3681         PR opt/420
3682         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3683
3684 2002-04-01  Richard Henderson  <rth@redhat.com>
3685
3686         PR target/1538
3687         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3688         * fixinc/fixincl.x: Rebuild.
3689
3690 2002-04-01  Richard Henderson  <rth@redhat.com>
3691
3692         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3693         (atomic_alloc, atomic_free): New.
3694         (SIZE, MASK_FOR, PTR_IN): New.
3695         (emergency_reg_state, emergency_reg_state_free): New.
3696         (emergency_labeled_state, emergency_labeled_state_free): New.
3697         (reg_state_alloced, labeled_state_alloced): New.
3698         (alloc_reg_state, free_reg_state): New.
3699         (alloc_label_state, free_label_state, free_label_states): New.
3700         (push, pop, dup_state_stack, free_state_stack): Use them.
3701         (desc_label_state): Likewise.
3702         (uw_frame_state_for): Free label states and state stack.
3703         (uw_update_reg_address): Eliminate warnings.
3704
3705 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3706
3707         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3708         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3709
3710 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3711
3712         * c-decl.c (grokdeclarator): Update.
3713         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3714         * c-tree.h (c_mark_addressable): New.
3715         * c-typeck.c (default_function_array_conversion, build_unary_op,
3716         build_array_ref, convert_for_assignment): Update.
3717         (mark_addressable): Rename.
3718         * calls.c (try_to_integrate, expand_call): Use langhook.
3719         * expr.c (expand_expr): Use langhook.
3720         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3721         * langhooks.h (struct lang_hooks): New hook.
3722         * stmt.c (expand_asm_operands): Use langhook.
3723         * tree.h (mark_addressable): Remove.
3724 objc:
3725         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3726
3727 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3728
3729         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3730         in previous change.
3731
3732 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3733
3734         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3735         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3736
3737 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3738
3739         * c-common.c (unsigned_conversion_warning, convert_and_check,
3740         unsigned_type, signed_type, shorten_compare,
3741         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3742         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3743         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3744         New.
3745         * c-decl.c (grokdeclarator): Update.
3746         * c-format.c (check_format_types): Update.
3747         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3748         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3749         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3750         * convert.c (convert_to_integer): Use new hooks.
3751         * expmed.c (make_tree): Use new hooks.
3752         * expr.c (store_expr): Use new hooks.
3753         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3754         all_ones_mask_p, unextend, fold): Use new hooks.
3755         * langhooks.h (struct lang_hooks_for_types): New hooks.
3756         * tree.h (signed_or_unsigned_type, signed_type,
3757         unsigned_type): Remove.
3758 objc:
3759         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3760         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3761
3762 2002-03-31  Richard Henderson  <rth@redhat.com>
3763
3764         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3765         (desc_frgr_mem): Fix reference to f16-f31.
3766
3767 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3768
3769         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3770         RTVEC_ELT): Const-ify.
3771         * varray.h (VARRAY_CHECK): Const-ify.
3772         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3773         ggc_mark_rtvec, ggc_mark): Const-ify.
3774
3775 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3776
3777         * diagnostic.c: Include langhooks-def.h.
3778         * Makefile.in (diagnostic.o): Update.
3779
3780 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3781
3782         * c-common.c (c_unsafe_for_reeval): Rename.
3783         * c-common.h (c_unsafe_for_reeval): Rename.
3784         * c-decl.c (finish_incomplete_decl): Rename.
3785         (c_init_decl_processing): Don't set langhook.
3786         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3787         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3788         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3789         * c-tree.h (finish_incomplete_decl): Rename.
3790         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3791         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3792         (LANG_HOOKS_INITIALIZER): Update.
3793         * langhooks.c (lhd_unsafe_For_reeval): New.
3794         * langhooks.h (struct langhooks): New hooks.
3795         * toplev.c (incomplete_decl_finalize_hook): Remove.
3796         (wrapup_global_declarations): Update.
3797         * tree.c (lang_unsafe_for_reeval): Remove.
3798         (unsafe_for_reeval): Update.
3799         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3800         Remove.
3801 objc:
3802         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3803         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3804
3805 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3806
3807         * diagnostic.c (print_error_function): Remove.
3808         (default_print_error_function): Rename.
3809         (report_error_function): Update.
3810         * diagnostic.h (print_error_function): Remove.
3811         (default_print_error_function): Remove.
3812         * langhooks-def.h (struct diagnostic_context): Predeclare.
3813         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3814         (LANG_HOOKS_INITIALIZER): Update.
3815         * langhooks.h (struct diagnostic context): Predeclare.
3816         (struct lang_hooks): New hook.
3817
3818 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3819
3820         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3821         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3822         !flag_pic.
3823         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3824         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3825         of PIC_OFFSET_TABLE_REGNUM thruout.
3826         * config/rs6000/rs6000.md: Likewise.
3827         * config/rs6000/darwin.h: Likewise.
3828
3829 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3830
3831         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3832         unsigned HOST_WIDE_INT, not unsigned int.
3833
3834 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3835
3836         PR middle-end/6096, middle-end/6098, middle-end/6099
3837         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3838         CODE_LABELs.
3839         (fill_slots_from_thread): Likewise.
3840
3841 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3842
3843         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3844         floating fields in float regs.
3845         (function_arg_record_value_2): Likewise.
3846
3847 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3848
3849         * config/mmix/mmix.md (define_constants): Remove misleading
3850         FIXME.  Add MMIX_fp_rO_OFFSET.
3851         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3852         saved rO as part of the pattern.  Remove FIXME.
3853         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3854         here, at output-time.
3855
3856 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3857
3858         PR middle-end/6100
3859         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3860         REG_BR_PRED.
3861         (output_v9branch): Likewise.
3862
3863 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3864
3865         * gcc.c: Revert previous patch for now.
3866         * config/i386/djgpp.h: Likewise.
3867
3868 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3869
3870         * config/mmix/crti.asm (_init): Register _fini with atexit.
3871         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3872
3873 2002-03-31  Richard Henderson  <rth@redhat.com>
3874
3875         PR target/3997
3876         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3877         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3878
3879 2002-03-31  Richard Henderson  <rth@redhat.com>
3880
3881         * libgcc2.c (__bb_exit_func): Make static.
3882
3883         * config/alpha/alpha.md (trap): New.
3884
3885 2002-03-31  Richard Henderson  <rth@redhat.com>
3886
3887         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3888         promoted argument types; build trap.
3889         (expand_builtin_trap): New.
3890         (expand_builtin): Use it.
3891         * stmt.c (expand_nl_goto_receivers): Likewise.
3892         * expr.h (expand_builtin_trap): Declare.
3893         * libfuncs.h (LTI_abort, abort_libfunc): New.
3894         * optabs.c (init_optabs): Init abort_libfunc.
3895
3896 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3897
3898         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3899         (LINK_COMMAND_SPEC): ... from here.
3900         (init_gcc_specs): Duplicate it here too, omitting
3901         shared_name in the second copy.
3902         (init_spec): Test for duplicate
3903         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3904
3905 2002-03-30  David S. Miller  <davem@redhat.com>
3906
3907         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3908         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3909
3910 2002-03-30  Roger Sayle <roger@eyesopen.com>
3911             Richard Henderson  <rth@redhat.com>
3912
3913         * regmove.c (combine_stack_adjustments_for_block): Avoid
3914         emitting a stack adjustment of zero bytes.  Let delete_insn
3915         update bb->head.
3916
3917 2002-03-30  Richard Henderson  <rth@redhat.com>
3918
3919         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3920         (sparc_emitting_epilogue): New.
3921         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3922         * config/sparc/sparc-protos.h: Update.
3923         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3924         (TARGET_SWITCHES): Update.
3925         * config/sparc/sparc.md (return): Remove.
3926         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3927         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3928         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3929         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3930         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3931         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3932         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3933         Remove MASK_EPILOGUE.
3934         * doc/invoke.texi: Update.
3935
3936 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3937
3938         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3939         CPP will start the file for us.
3940
3941 2002-03-30  Richard Henderson  <rth@redhat.com>
3942
3943         PR target/5446
3944         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3945         prologue_allocate_stack.
3946         (ia64_single_set): Use insn codes for recognition of special
3947         cases, not rtl matching.
3948         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3949
3950 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3951
3952         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3953
3954 2002-03-30  Richard Henderson  <rth@redhat.com>
3955
3956         PR target/6032
3957         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3958         or -fomit-frame-pointer with profiling.
3959         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3960         (FUNCTION_PROFILER): Do nothing.
3961         (PROFILE_HOOK): New.
3962         * config/sparc/sparc.c (sparc_override_options): Don't check
3963         code models for profiling.
3964         (sparc_function_profiler): Remove.
3965         (sparc_profile_hook): New.
3966         * config/sparc/sparc-protos.h: Update.
3967
3968 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3969
3970         PR optimization/6086
3971         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3972         of SUBREG of volatile MEM or because the MEM was mode dependent,
3973         return CLOBBER instead of unmodified SUBREG.
3974
3975 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3976
3977         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3978         when not optimizing.
3979
3980         * toplev.c (rest_of_compilation): Cann mark_constant_function
3981         only when optimizing.
3982
3983         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3984         are NULL.
3985
3986         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3987         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3988         (try_optimize_cfg): clear all AUX fields.
3989
3990         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3991         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3992         (ix86_address_cost): Be prepared for SUBREGed registers.
3993         (legitimate_address_p): Accept SUBREGed registers.
3994
3995 2002-03-29  Richard Henderson  <rth@redhat.com>
3996
3997         PR target/5672
3998         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3999
4000 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4001
4002         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
4003         for aggregate and TFmode types.
4004
4005 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
4006
4007         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
4008
4009 2002-03-29  Richard Henderson  <rth@redhat.com>
4010
4011         PR target/5886
4012         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
4013         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
4014
4015 2002-03-29  Richard Henderson  <rth@redhat.com>
4016
4017         PR target/6041
4018         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
4019         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
4020         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
4021         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
4022         conditional.
4023         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
4024
4025 2002-03-29  Dale Johannesen <dalej@apple.com>
4026
4027         * loop.c (combine_movables): Do allow combination of pseudos.
4028
4029 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
4030
4031         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
4032         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
4033         No functional change except ...
4034         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
4035         * doc/install.texi (*-*-freebsd*): Document port configuration.
4036
4037 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4038
4039         * Makefile.in (convert.o, calls.o, expmed.o): Update.
4040         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
4041         Use new hooks.
4042         * builtin-types.def (BT_PTRMODE): Update.
4043         * c-common.c (type_for_size): Rename c_common_type_for_size.
4044         (type_for_mode): Similarly.
4045         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
4046         Use new hook.
4047         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
4048         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
4049         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
4050         Redefine.
4051         * c-typeck.c (common_type, comptypes, default_conversion):
4052         Use new hooks.
4053         * calls.c: Include langhooks.h.
4054         (emit_library_call_value_1): Use new hooks.  Avoid redundant
4055         calls.
4056         * convert.c: Include langhooks.h
4057         (convert_to_pointer, convert_to_integer): Use new hooks.
4058         * except.c (init_eh): Similarly.
4059         * expmed.c: Include langhooks.h.
4060         (expand_mult_add): Use new hooks.
4061         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
4062         try_casesi): Similarly.
4063         * fold-const.c (optimize_bit_field_compare, make_range,
4064         decode_field_reference, fold_truthop, fold): Similarly.
4065         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
4066         put_var_into_stack): Similarly.
4067         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
4068         LANG_HOOKS_TYPE_FOR_SIZE): New.
4069         (LANG_HOOKS_TYPES_INITIALIZER): Update.
4070         * langhooks.h (lang_hooks_for_types): New hooks.
4071         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
4072         * tree.c (get_unwidened, get_narrower): Similarly.
4073         * tree.h (type_for_mode, type_for_size): Remove.
4074         * varasm.c (force_const_mem): Use new hooks.
4075         * utils2.c (nonbinary_modular_operation): Update.
4076 objc:
4077         * objc-act.c (handle_impent): Update.
4078         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
4079         Redefine.
4080
4081 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
4082
4083         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
4084         * config/ia64/ia64.c (basereg_operand): New.
4085         * config/ia64/ia64-protos.h (basereg_operand): Declare.
4086         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
4087
4088 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
4089
4090         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
4091         unwind information when frame_pointer_needed.
4092         (mmix_assemble_integer): Tweak wording in comment.
4093
4094 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4095
4096         * Makefile.in (except.o): Update.
4097         * except.c: Include langhooks.h.
4098         (init_eh): Use langhook.
4099         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
4100         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
4101         (LANG_HOOKS_INITIALIZER): Update.
4102         * langhooks.h (lang_hooks_for_types): New.
4103         (struct lang_hooks): Add it.
4104         * tree.c (make_lang_type_fn, make_lang_type): Remove.
4105         * tree.h (make_lang_type_fn, make_lang_type): Remove.
4106 config:
4107         * alpha/alpha.c: Include langhooks.h.
4108         (alpha_build_va_list): Use langhook.
4109         * d30v/d30v.c: Include langhooks.h.
4110         (d30v_build_va_list): Use langhook.
4111         * i386/i386.c: Include langhooks.h.
4112         (ix86_build_va_list): Use langhook.
4113         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
4114         * s390/s390.c: Include langhooks.h.
4115         (s390_build_va_list): Use langhook.
4116         * stormy16/stormy16.c: Include langhooks.h.
4117         (stormy16_build_va_list): Use langhook.
4118
4119 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4120
4121         PR c++/5964
4122         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
4123         attributes.
4124         (length): Compute variable length for branches/calls/jumps here.
4125         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
4126         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
4127         define branch_type attribute.
4128         (divsi3_sp32): Maximum length is 6 not 7.
4129         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
4130         call_address_untyped_struct_value_sp32,
4131         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
4132         * config/sparc/sparc.c (empty_delay_slot): New function.
4133         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
4134         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
4135
4136 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
4137
4138         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
4139         nonzero_bits if not needed.
4140         (nonzero_bits) [XOR]: Likewise.
4141         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
4142         reg_last_set_mode and mode are both MODE_INT, but not equal.
4143         (record_value_for_reg): Compute reg_last_set_nonzero_bits
4144         in nonzero_bits_mode for MODE_INT modes.
4145
4146 2002-03-28  Richard Henderson  <rth@redhat.com>
4147
4148         PR target/5715
4149         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
4150         to GAS.  Correct drift between alternatives.
4151
4152 2002-03-28  Richard Henderson  <rth@redhat.com>
4153
4154         PR target/6087
4155         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
4156
4157 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
4158
4159         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
4160         emulation to the linker.
4161
4162 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
4163
4164         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
4165         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4166
4167 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
4168
4169         * combine.c (simplify_and_const_int): Make sure to apply mask
4170         when force_to_mode returns a constant integer.  PR3311.
4171
4172 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4173
4174         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
4175
4176 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4177
4178         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
4179         and Objective-C Dialect Options.
4180
4181 2002-03-28  Richard Henderson  <rth@redhat.com>
4182
4183         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
4184         comparison should be done vs !=0 not >0 return code.  Tidy cases.
4185
4186 2002-03-28  Richard Henderson  <rth@redhat.com>
4187
4188         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
4189         on to c_expand_body.
4190         * c-tree.h (finish_function): Update decl.
4191         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
4192
4193 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4194
4195         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
4196
4197 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
4198
4199         * rtlanal.c: Include flags.h
4200         (may_trap_p): Do not mark FP operations if trapping
4201         if !flag_trapping_math
4202         * Makefile.in (rtlanal.o): Add dependency on flag.h
4203         * ifcvt.c (noce_operand_ok): Avoid the lameness.
4204
4205 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
4206
4207         * mips.md: Use dconst1, not 1.0, as first argument of
4208         REAL_VALUE_LDEXP.  Don't use union real_extract.
4209
4210 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
4211
4212         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
4213         rather than $target.  Heed program_prefix and
4214         program_transform_name.  Search for gas in cross-compiler case too.
4215         "test -x" rather than "test -f".
4216         (gcc_cv_ld): Likewise.
4217         (gcc_cv_nm): Heed program_prefix and program_transform_name.
4218         (gcc_cv_objdump): Likewise.
4219         * configure: Regenerate.
4220
4221 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4222
4223         * Makefile.in (attribs.o): Update.
4224         * attribs.c: Include langhooks.h.
4225         (decl_attributes): Use langhook.
4226         * c-decl.c (insert_default_attributes): Rename.
4227         * c-tree.h (c_insert_default_attributes): New.
4228         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
4229         (LANG_HOOKS_INITIALIZER): Update.
4230         * langhooks.h (struct lang_hooks): New hook.
4231         * tree.h (insert_default_attributes): Remove.
4232 objc:
4233         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
4234
4235 2002-03-27  Andreas Schwab  <schwab@suse.de>
4236
4237         * config/i386/i386.c (classify_argument): Also check for
4238         QUAL_UNION_TYPE.
4239
4240 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4241
4242         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
4243         any more.
4244
4245 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
4246
4247         * i960.md (ret): Set PC.
4248         (nonlocal_goto): Fix expander.
4249         * builtins.c (epxand_builin_longjmp): Check that we've emitted
4250         some jump or call.
4251
4252 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
4253
4254         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
4255         of libcall regions.
4256
4257 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4258
4259         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
4260         assigning to BLOCK_FOR_INSN directly.
4261
4262 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
4263
4264         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4265
4266 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4267
4268         * c-common.c (c_expand_expr): Fix prototype.
4269         * c-common.h (c_expand_expr): Always declare, update.
4270         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4271         * c-objc-common.c (c_objc_common_init): No global hook.
4272         * expr.c (expand_expr): Use langhook.
4273         * expr.h (enum expand_modifier): Conditionally declare.
4274         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4275         (LANG_HOOKS_INITIALIZER): Update.
4276         * langhooks.c (lhd_expand_expr): New.
4277         * langhooks.h (struct lang_hooks): New hook.
4278         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4279         (lang_independent_init): Don't default hook.
4280 objc:
4281         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4282
4283 2002-03-27  Richard Henderson  <rth@redhat.com>
4284
4285         PR target/6054
4286         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4287         TARGET_CONST_GP.  Simplify conditions.
4288
4289 2002-03-27  Richard Henderson  <rth@redhat.com>
4290
4291         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4292         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4293         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4294
4295 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
4296
4297         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4298         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4299         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4300         Remove unnecessary masks.
4301         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4302         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4303         -mwindows, -mdll switches and their negations.
4304
4305 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4306
4307         * gcc-common.c (lang_mark_false_label_stack): Remove.
4308         * ggc.h (lang_mark_false_label_stack): Similarly.
4309
4310 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
4311
4312         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4313
4314         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4315         or __rtems_ is defined.
4316
4317 2002-03-26  Richard Henderson  <rth@redhat.com>
4318
4319         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4320         if a non-trivial load was emitted.
4321         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
4322         in high+extra+low case.
4323
4324 2002-03-26  Richard Henderson  <rth@redhat.com>
4325
4326         * config.gcc (sparc*-solaris): Use float_format=sparc.
4327
4328 2002-03-26  Richard Henderson  <rth@redhat.com>
4329
4330         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4331         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4332         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4333         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4334         (WINT_TYPE_SIZE): Fix at 32.
4335
4336 2002-03-26  Richard Henderson  <rth@redhat.com>
4337
4338         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4339         until after eh landing pad generation.
4340         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4341         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4342
4343 2002-03-26  Richard Henderson  <rth@redhat.com>
4344
4345         * expr.h (ADD_PARM_SIZE): One more convert for INC.
4346
4347 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
4348
4349         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
4350         and warning switches.
4351         (cc1_options):  Likewise.
4352
4353 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
4354
4355         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4356         Restore more of the signal context.  Set no_reg_stack_frame.
4357         * config/ia64/unwind-ia64.c (unw_state_record):
4358         Add no_reg_stack_frame, comments.
4359         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4360         (uw_update_context): Adjust bsp when unwinding from leaf,
4361         but not signal frame.
4362
4363 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
4364
4365         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4366
4367 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4368
4369         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4370
4371 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4372
4373         PR target/5621
4374         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4375         "Add a pool_range attribute", which was lost during the ARM/Thumb
4376         merge.
4377
4378 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4379
4380         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4381         a register into the MAC16 accumulator.
4382
4383 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
4384
4385         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4386         (Warning Options): Document -Wswitch-enum.
4387         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
4388         -Wswitch.
4389         (warn_switch_enum): Define variables.
4390         * flags.h (warn_switch_enum): Declare variables.
4391         * stmt.c (expand_end_case_type): When warn_switch_enum /
4392         -Wswitch-enum, perform switch checks.
4393         Fix PR c/5044.
4394
4395 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4396
4397         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4398         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4399         (reload_muladdsi_compare0_scratch): Delete.
4400
4401 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
4402
4403         * doc/install.texi (*-*-freebsd*): Update.
4404
4405 2002-03-26  Richard Henderson  <rth@redhat.com>
4406
4407         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4408         (SUB_PARM_SIZE): Cast DEC to ssizetype.
4409
4410         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4411         types from the normal argument frame.
4412
4413         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4414         variable sized objects by reference.
4415         (sparc_va_arg): Receive them by reference too.
4416
4417 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
4418
4419         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4420         code to not restoring global registers.
4421
4422 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4423
4424         * Makefile.in (ggc-common.o): Update.
4425         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4426         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4427         * c-tree.h (c_mark_tree): New.
4428         * ggc-common.c: Include langhooks.h.
4429         (gcc_mark_trees): Use new langhook.
4430         * ggc-callbacks.c: Delete file.
4431         * ggc.h (lang_mark_tree): Remove.
4432         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4433         (LANG_HOOKS_INITIALIZER): Update.
4434         * langhooks.h (struct lang_hooks): New hook.
4435 objc:
4436         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4437
4438 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4439
4440         * doc/cpp.texi: Exclude entire Top node from printed manual.
4441         Move option index after directive index.  Insert page breaks
4442         before GFDL and concept index.  Index environment variables
4443         with command line options.
4444         * doc/cppenv.texi: Use @vtable for environment variable list.
4445         Add paragraph explaining semantics of empty elements in path
4446         variables.  Exclude a cross-reference to Fishkill from the
4447         manpage.  Remove an unnecessary cross-reference of the entry
4448         right above the referer.  Don't use @anchor in text that goes
4449         into manpage.
4450         * doc/cppopts.texi: Cross-reference the environment variables
4451         section, not the specific environment variable, for consistency.
4452
4453 2002-03-25  Richard Henderson  <rth@redhat.com>
4454
4455         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4456         anywhere in the block.  Don't refer to insns that have been
4457         removed from the chain.  Iterate backward through the new insns.
4458         Don't refer to edges that have been removed.
4459
4460 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
4461
4462         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4463         test for overflow of constant.
4464
4465 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
4466
4467         PR target/2623
4468         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4469         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4470         these patterns on arm_archv4.
4471
4472 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
4473
4474         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4475         int".
4476
4477 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4478
4479         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
4480         float_handled, float_handler, float_signal, set_float_handler,
4481         and do_float_handler.  Set handler for SIGFPE to crash_signal.
4482         * toplev.h: Don't prototype do_float_handler.
4483
4484         * c-lex.c: Fold parse_float into lex_number.  Make warning
4485         about portability of hex float constants more informative, and
4486         don't issue it on top of a syntax error.
4487         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4488         their callers.
4489         * real.h: Define REAL_VALUE_ABS here...
4490         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
4491         simplify_unary_real, simplify_binary_real, and
4492         simplify_binary_is2orm1 into their callers.
4493         * tree.c: Fold build_real_from_int_cst_1 into caller.
4494
4495         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4496
4497         * tsystem.h: Include float.h here...
4498         * libgcc2.c: ... not here.
4499
4500 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
4501
4502         Fixes for: PR bootstrap/3591, target/5676
4503         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4504         defined.  Do not disable exceptions or rtti.
4505         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4506         mcore.h.  Disable exceptions and rtti, since they are not
4507         supported by EPOC.
4508
4509 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4510
4511         * c-decl.c (maybe_build_cleanup): Remove.
4512         * expr.c (expand_expr): Use langhook.
4513         * langhooks-def.h (lhd_return_null_tree,
4514         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4515         (LANGHOOKS_INITIALIZER): Update.
4516         * langhooks.c (lhd_return_null_tree): New.
4517         * langhooks.h (struct lang_hooks): New hook.
4518         * tree-inline.c (initialize_inlined_parameters): Use langhook.
4519         * tree.h (maybe_build_cleanup): Remove.
4520
4521 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4522
4523         * regrename.c (build_def_use): Move recog_memoized
4524         before extract_insn.
4525
4526 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4527
4528         PR target/6043
4529         * expr.c (emit_group_store): Handle storing into CONCAT.
4530
4531 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4532
4533         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4534         corresponding MATCH_DUP.
4535
4536 2002-03-24  Richard Henderson  <rth@redhat.com>
4537
4538         * unroll.c (unroll_loop): Zero label_map.
4539
4540         * gcse.c: Include except.h.
4541         * Makefile.in (gcse.o): Update.
4542
4543 2002-03-24  Richard Henderson  <rth@redhat.com>
4544
4545         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4546         Do resolve_unique_section before shared data clause.
4547
4548 2002-03-24  Richard Henderson  <rth@redhat.com>
4549
4550         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4551
4552 2002-03-24  Richard Henderson  <rth@redhat.com>
4553
4554         * recog.c (peephole2_optimize): Split blocks when EH insns are
4555         generated in the middle of a block.  Do global life update if
4556         zapped EH edges.
4557
4558 2002-03-24  Richard Henderson  <rth@redhat.com>
4559
4560         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4561
4562 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4563
4564         preprocessor/3951
4565         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4566         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4567         (init_dependency_output): Don't make no_output decision here.
4568
4569 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4570
4571         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4572         warn_switch.  Update description.
4573         (expand_end_case_type): Call check_for_full_enumeration_handling
4574         when warn_switch.
4575
4576 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4577
4578         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4579         (m68hc11_split_move): Call it to see if the source and destination
4580         operands use the same direction auto inc/dec mode, otherwise make the
4581         source an offsetable memory operand and generate an add.
4582
4583 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4584
4585         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4586         register for operand 2.
4587         ("*subsi3_zero_extendqi"): Likewise.
4588         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4589         bits so that it is compatible with a pop.
4590         ("*andhi3_gen"): Likewise.
4591         ("xorhi3"): Likewise.
4592
4593 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4594
4595         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4596         -pedantic here...
4597         (cpp_post_options): ... not here.
4598
4599 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4600             Aldy Hernandez  <aldyh@redhat.com>
4601
4602         Removal of separate preprocessor cpp0.
4603
4604         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4605         cpp0, install-common): Update.
4606         * c-common.c (flag_preprocess_only): New.
4607         (c_common_init): Preprocess for -E.
4608         * c-common.h (flag_preprocess_only): New.
4609         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4610         * c-objc-common.c (c_init_decl_processing): Exit quickly
4611         for NULL return from c_common_init.
4612         * cpplib.h (cpp_preprocess_file): New.
4613         * cppmain.c (main, general_init, pfile, progname): Remove.
4614         (do_preprocessing): Rename cpp_preprocess_file, don't call
4615         cpp_finish.  Don't close stdout here.
4616         (setup_callbacks): Update prototype.
4617         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4618         Update.
4619         * tradcpp.c (main): Ignore -quiet.
4620 objc:
4621         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4622
4623 2002-03-24  Richard Henderson  <rth@redhat.com>
4624
4625         PR optimization/5742
4626         * machmode.def: Add inner mode field to complex modes.
4627         * config/mips/mips.c (mips_function_value): Always define.  Add
4628         new argument to handle libcalls.
4629         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4630         (FUNCTION_VALUE): Likewise.
4631         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4632         * config/mips/mips-protos.h: Update.
4633
4634 2002-03-23  Richard Henderson  <rth@redhat.com>
4635
4636         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4637         * config/sparc/sparc-protos.h: Update.
4638         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4639
4640 2002-03-23  Richard Henderson  <rth@redhat.com>
4641
4642         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4643         _start or _init begins the text segment.
4644
4645 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4646
4647         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4648         not HOST_WIDEST_INT.
4649         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4650
4651 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4652
4653         PR java/5489
4654         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4655         operand argument to output_return_instruction.
4656         * arm.c (arm_print_operand, case 'd'): If the operand is
4657         const_true_rtx then just return.
4658         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4659         then abort.
4660
4661 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4662
4663         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4664         (Warning Options): Document -Wswitch-default.
4665         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4666         -Wswitch.
4667         (warn_switch_default): Define variable.
4668         (warn_switch): Update comment.
4669         * flags.h (warn_switch_default): Declare variable.
4670         (warn_switch): Update comment.
4671         * stmt.c (expand_end_case): Check for and, when
4672         warn_switch_no_default, warn of a missing default case.
4673
4674 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4675
4676         * real.h (N): Special case 128 bit doubles.
4677
4678         * combine.c (simplify_comparison): When widening modes, ignore
4679         sign extension on CONST_INTs.
4680
4681 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4682
4683         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4684         passed to adjust_address.  Fix comment formatting.
4685
4686
4687 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4688
4689         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4690         Always make REAL_VALUE_TYPE a struct containing an array of
4691         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4692         big it is.  Don't declare or use union real_extract.
4693
4694         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4695         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4696         (print_operand), config/arm/arm.c (output_move_double),
4697         config/arm/arm.md (consttable_4, consttable_8),
4698         config/romp/romp.c (output_fpops), config/s390/s390.h
4699         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4700         (xtensa_output_literal): Don't use union real_extract.
4701
4702         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4703         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4704         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4705         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4706         (PRINT_OPERAND): Don't use local version of union
4707         real_extract.
4708
4709         * config/convex/convex.c (check_float_value), config/vax/vax.c
4710         (vax_float_literal), config/m88k/m88k.md (divdf3),
4711         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4712         config/pdp11/pdp11.c (output_move_quad): Don't do host
4713         arithmetic on target floating point quantities.
4714
4715         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4716         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4717
4718         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4719         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4720
4721         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4722         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4723         INFINITY.
4724         * print-rtl.c (print_rtx): Disable code which needs
4725         floating-point emulator.
4726         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4727         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4728         depending on HOST_FLOAT_FORMAT to be defined properly.
4729
4730         * config/1750a/1750a.c (get_double, float_label): Delete.
4731         (print_operand): Delete huge commented-out chunk.  Use
4732         REAL_VALUE_TO_DECIMAL.
4733         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4734         functions.
4735         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4736         IEEE_FLOAT_FORMAT.
4737         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4738         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4739         * config/m88k/m88k.c (real_power_of_2_operand,
4740         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4741         real_extract out of the union; run the input through
4742         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4743         from that into the union.
4744         * config/pdp11/pdp11.c (output_move_double): Rearrange
4745         parentheses to make automatic indenter happy.
4746
4747         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4748         Point" and rewrite to describe current situation.  Also adjust
4749         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4750         match code.
4751         * doc/rtl.texi: Adjust cross reference.
4752
4753 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4754
4755         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4756         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4757         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4758         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4759         prevent use of sp as a reload register.
4760         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4761         non_acc_reg_operand.
4762         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4763         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4764         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4765         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4766
4767 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4768
4769         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4770         * cpplex.c (unterminated): Delete.
4771         (parse_string): No string literal may extend over multiple
4772         lines.  Suppress the error when preprocessing assembly.
4773         * cppmain.c (scan_translation_unit): Strings are single-line.
4774
4775         * doc/cpp.texi: Update to match.
4776
4777 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4778
4779         PR optimization/5854
4780         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4781         Shut up warnings.
4782         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4783         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4784         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4785         const0 if scratch register was not allocated.
4786         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4787         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4788         with GEN_INT (...).
4789         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4790         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4791         with GEN_INT (...) everywhere.  Remove constraints in define_split
4792         patterns.
4793         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4794         require scratch register for setting 0 into regs/non-pushable memory.
4795
4796 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4797
4798         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4799         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4800
4801 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4802
4803         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4804         * cppinit.c (cpp_create_reader):  On by default.
4805         (cpp_handle_option):  Handle -W[no-]endif-labels.
4806         (cpp_post_options):  Also enable if -pedantic.
4807         * cpplib.c (do_else):  Use it.
4808         (do_endif):  Likewise.
4809         * doc/cppopts.texi:  Document new option.
4810         * doc/invoke.texi:  Document new option.
4811
4812 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4813
4814         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4815         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4816
4817 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4818
4819         * flow.c (calculate_global_regs_live): Clear aux fields of
4820         ENTRY and EXIT.
4821
4822 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4823
4824         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4825         REG or MEM subregs, pass rtx * instead of rtx to it.
4826         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4827         rtx * instead of rtx to alter_subreg.
4828         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4829         * config/pj/pj.c (pj_output_rval): Likewise.
4830
4831 2002-03-22  Richard Henderson  <rth@redhat.com>
4832
4833         PR target/3177
4834         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4835         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4836         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4837         (ia64_expand_prologue): Look at int_regs, not words, for number
4838         of incomming int regs.
4839
4840 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4841
4842         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4843
4844 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4845
4846         * toplev.c (flag_loop_optimize, flag_crossjumping):
4847         New static variables.
4848         (rest_of_compilation): Conditionalize crossjumping and
4849         loop optimizer.
4850         (parse_options_and_default_flags): Default loop_optimize and
4851         crossjumping.
4852         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4853         * invoke.texi (crossjumping, loop-optimize): Document.
4854
4855 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4856
4857         * real.c (eiisneg): Move outside #ifdef NANS.
4858
4859 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4860
4861         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4862         frequencies match; avoid match on different loop depths.
4863         (try_crossjump_to_bb): Kill tests that no longer brings time
4864         savings.
4865         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4866         updating code.
4867         (split_edge): Likewise.
4868
4869         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4870         variable.
4871
4872         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4873         * cfgrtl.c: Include insn-config.h
4874         (split_block) Dirtify block in presence of conditional execution
4875
4876 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4877
4878         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4879         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4880         (function_arg): Constify CUMULATIVE_ARGS.
4881         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4882         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4883         (UNITS_PER_DOUBLE): New macro.
4884         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4885         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4886         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4887         fp_regs and stack_words.
4888         (EABI_FLOAT_VARARGS_P): New macro.
4889         * config/mips/mips.c (struct mips_arg_info): New.
4890         (mips_arg_info): New function.
4891         (function_arg_advance): Use it.  Add adjustment instructions here
4892         rather than in function_arg.
4893         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4894         for VOIDmode at the beginning of the function.
4895         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4896         (function_arg_pass_by_reference): Likewise.
4897         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4898         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4899         (mips_va_start): Likewise.  Use the new stack_words field of
4900         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4901         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4902         doubles and other types, aligning the overflow pointer for non-doubles
4903         too.  Remove some code duplication.  Replace hard-coded constants.
4904
4905 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4906
4907         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4908         (CLASS_UNITS): Undefine.
4909         (CLASS_MAX_NREGS): Use FP_INC.
4910         * config/mips/mips.c (compute_frame_size): Likewise.
4911         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4912
4913 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4914
4915         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4916         prototype, and handle lexing numbers and identifiers.
4917         (parse_identifier): Update to new form of parse_slow.
4918         (parse_number): Fast path only, use parse_slow otherwise.
4919         (_cpp_lex_direct): Update calls to parse_number.
4920
4921 2002-03-21  DJ Delorie  <dj@redhat.com>
4922
4923         * bb-reorder.c (make_reorder_chain_1): Protect against
4924         when redundant edges are omitted.
4925         * predict.c (dump_prediction): Likewise.
4926
4927 2002-03-21  Richard Henderson  <rth@redhat.com>
4928
4929         PR target/5996
4930         * fixinc/inclhack.def (solaris_stdio_tag): New.
4931         * fixinc/fixincl.x: Regenerate.
4932
4933 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4934
4935         PR c/5597
4936         * c-typeck.c (process_init_element): Flag non-static
4937         initialization of a flexible array member as illegal.
4938
4939 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4940
4941         * config/rs6000/t-linux64: New.
4942         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4943         t-ppccomm.  Use t-rs6000 and t-linux64.
4944         (powerpc64-*-gnu* <tmake_file>): Likewise.
4945         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4946         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4947         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4948
4949 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4950
4951         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4952         flag_really_no_inline instead of optimize == 0.
4953
4954         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4955
4956         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4957
4958         * flags.h (flag_really_no_inline): New.
4959
4960         * c-common.c (c_common_post_options): Initialize
4961         flag_really_no_inline.
4962
4963         * toplev.c (flag_really_no_inline): New.
4964
4965 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4966
4967         * config/avr/avr.md (length): Fix length computation for
4968         conditional branches.
4969
4970 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4971
4972         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4973         sdbout.o, profile.o): Update.
4974         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4975         langhook.
4976         * c-common.h (gettags): Move here from tree.h.
4977         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4978         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4979         * dbxout.c (dbxout_init): Use getdecls langhook.
4980         * expr.c (expand_expr): Use insert_block langhook.
4981         * fold-const.c: Include langhooks.h.
4982         (fold_range_test, fold_binary_op_with_conditional_arg,
4983         fold): Use global_bindings_p langhook.
4984         * integrate.c (expand_inline_function): Use insert_block langhook.
4985         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4986         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4987         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4988         LANG_HOOKS_GETDECLS): New.
4989         (LANG_HOOKS_INITIALIZER): Update.
4990         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4991         langhook.
4992         * langhooks.h (struct lang_hooks_for_decls): New.
4993         (struct lang_hooks): Update.
4994         * profile.c: Include langhooks.h.
4995         (output_func_start_profiler): Use new langhooks.
4996         * sdbout.c: Include langhooks.h.
4997         (sdbout_init, sdbout_finish): Use getdecls langhook.
4998         * stmt.c: Include langhooks.h.
4999         (expand_fixup, fixup_gotos): Use new langhooks.
5000         * stor-layout.c: Include langhooks.h.
5001         (variable_size): Use global_bindings_p langhook.
5002         * toplev.c (compile_file): Use getdecls langhook.
5003         * tree-inline.c (remap_block): Use insert_block langhook.
5004         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
5005         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
5006
5007 2002-03-21  Richard Henderson  <rth@redhat.com>
5008
5009         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
5010         constants in .data when -fpic.
5011
5012 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5013
5014         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
5015         where appropriate.
5016
5017 2002-03-21  Tom Tromey  <tromey@redhat.com>
5018
5019         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
5020
5021 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5022
5023         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
5024
5025         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
5026
5027 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
5028             Richard Henderson  <rth@redhat.com>
5029
5030         PR c/5354
5031         * c-common.c (c_expand_expr): Preserve result of a statement
5032         expression if needed.
5033
5034 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
5035
5036         PR bootstrap/4195
5037         * genrecog.c (maybe_both_true_mode): Remove.
5038         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
5039         * machmode.def (Pmode): Likewise.
5040
5041 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
5042
5043         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
5044         (nonlocal_mentioned_p_1): New function.
5045         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
5046         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
5047         (mark_constant_function): Recognize pure functions.
5048         * rtl.h (global_reg_mentioned_p): New prototype.
5049         * rtlanal.c (global_reg_mentioned_p,
5050         global_reg_mentioned_p_1): New function.
5051
5052 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5053
5054         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
5055         UNIX assert.h.
5056         * fixinc/fixincl.x: Regenerate.
5057
5058 2002-03-20  Jason Merrill  <jason@redhat.com>
5059
5060         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
5061
5062 2002-03-20  Michael Meissner  <meissner@redhat.com>
5063
5064         * doc/invoke.texi (Optimize Options): Document that -O2 sets
5065         -fstrict-aliasing.
5066
5067 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
5068
5069         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
5070         ".literal_position" directive before the constant pool.
5071
5072 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5073
5074         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
5075         Add Craig Rodrigues.
5076         Add Brad Lucier to testers.
5077
5078 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5079
5080         PR target/4792
5081         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
5082         to if_then_else.
5083         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
5084         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
5085         instead of insn_extract.
5086
5087 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5088
5089         PR bootstrap/4192
5090         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
5091
5092         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
5093         stmt if some case has been output.
5094
5095 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
5096
5097         PR c/5972
5098         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
5099         movsfcc_1, movdfcc_1): Add %O2.
5100         * config/i386/i386.c (print_operand): Handle %ON.
5101         Print . before float condition codes in Sun as cmov syntax.
5102         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
5103         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
5104         no longer true.
5105
5106 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
5107
5108         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
5109         return instruction if PC was popped.
5110
5111 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
5112
5113         * config/xtensa/xtensa.md: Remove unused type attributes.
5114         (adddi_carry, subddi_carry): Change type attribute to "multi".
5115
5116 2002-03-19  Dale Johannesen  <dalej@apple.com>
5117
5118         PR optimization/5999, middle-end/5731
5119         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
5120         multiplications by reciprocals.
5121
5122 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5123
5124         * Makefile.in: Update.
5125         * c-common.c: Include langhooks.h.
5126         (inline_forbidden_p): Use new hook.
5127         * diagnostic.c: Include langhooks.h.
5128         (format_with_decl, announce_function,
5129         default_print_error_function): Use new hook.
5130         * dwarf2out.c (dwarf2_name): Use new hook.
5131         * function.c: Include langhooks.h.
5132         (init_function_start): Use new hook.
5133         * langhooks-def.h (lhd_decl_printable_name): New.
5134         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
5135         (LANGHOOKS_INITIALIZER): Update.
5136         * langhooks.c (lhd_decl_printable_name): New.
5137         * langhooks.h (struct lang_hooks): New hook.
5138         * toplev.c (decl_name, decl_printable_name): Remove.
5139         (open_dump_file): Use new hook.
5140         (process_options): Remove old hook.
5141         * tree.h (decl_printable_name): Remove.
5142 objc:
5143         * objc-act.c (objc_init): Remove old hook.
5144         (objc_printable_name): Export.
5145         * objc-act.h (objc_printable_name): New.
5146         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
5147
5148 2002-03-19  Jim Blandy  <jimb@redhat.com>
5149
5150         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
5151         the start_source_file debug hook, not the current line number.
5152
5153 2002-03-19  Richard Henderson  <rth@redhat.com>
5154
5155         * flow.c (EH_USES): Provide default.
5156         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
5157         * doc/tm.texi (EH_USES): New.
5158
5159         * config/ia64/ia64.c (ia64_eh_uses): New.
5160         * config/ia64/ia64-protos.h: Update.
5161         * config/ia64/ia64.h (EH_USES): New.
5162
5163 2002-03-19  Richard Henderson  <rth@redhat.com>
5164
5165         * varasm.c (output_constant_def): Fix stupid typo.
5166
5167 2002-03-19  Richard Henderson  <rth@redhat.com>
5168
5169         PR 5879
5170         * except.c (current_function_has_exception_handlers): New.
5171         * except.h: Declare it.
5172         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
5173         Combine tests that disable all sibcalls for the function.
5174
5175 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
5176
5177         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
5178         for INTEGER_CST.
5179
5180 2002-03-19  Richard Henderson  <rth@redhat.com>
5181
5182         PR 5977, 5991
5183         * config/ia64/ia64.c: Revert 2002-03-01 patch.
5184         * config/ia64/ia64.h (INIT_EXPANDERS): New.
5185
5186 2002-03-19  Jim Blandy  <jimb@redhat.com>
5187
5188         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
5189         name, even if the replacement list contains no tokens, as required
5190         by Dwarf.
5191
5192 2002-03-19  Jason Merrill  <jason@redhat.com>
5193
5194         * varasm.c (globalize_decl): Get the name from the RTL, not
5195         DECL_ASSEMBLER_NAME.
5196
5197         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
5198
5199 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
5200
5201         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
5202         subdi_carry): Define.
5203
5204 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
5205
5206         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
5207         about -fpic/-fPIC if extra_warnings set.
5208
5209 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
5210
5211         * expr.c (expand_expr): Sign-extend CONST_INT generated from
5212         TREE_STRING_POINTER.
5213         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
5214
5215 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5216
5217         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
5218         in favor of SP if FRAME_POINTER_REQUIRED is false.
5219
5220 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
5221
5222         * emit-rtl.c (gen_int_mode): New function.
5223         * rtl.h: Prototype for it.
5224         * combine.c (make_extraction, simplify_comparison), expmed.c
5225         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
5226         (convert_modes, store_field), optabs.c (expand_fix),
5227         simplify-rtx.c (neg_const_int, simplify_unary_real),
5228
5229         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
5230         Use it instead of GEN_INT (trunc_int_for_mode (...)).
5231
5232 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
5233
5234         PR c/5656
5235         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
5236         convert_parm_for_inlining.
5237         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
5238         Define.
5239         * langhooks-def.h: Likewise.
5240         * objc/objc-lang.c: Likewise.
5241         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
5242         function.
5243         * tree-inline.c (initialize_inlined_parameters):
5244         Call convert_parm_for_inlining lang hook if needed.
5245         * c-typeck.c (c_convert_parm_for_inlining): New function.
5246         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
5247
5248 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
5249
5250         * calls.c (precompute_arguments): Do not assume that temporaries
5251         can be destroyed after expanding the argument.
5252         (expand_call): Likewise.
5253
5254 2002-03-15  Eric Christopher  <echristo@redhat.com>
5255
5256         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
5257         Fix register preference on last change.
5258         * config/mips/mips.c (mips_return_in_memory): New function.
5259         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
5260         * config/mips/mips-protos.h: Declare.
5261         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
5262         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
5263
5264 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
5265
5266         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
5267         a register too.
5268         (anddi3, iorsi3): Likewise.
5269
5270         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5271         use %gprel for symbols that are going to be placed in linkonce
5272         sections.
5273
5274         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5275         RETURN_ADDRESS_POINTER_REGNUM to $ra.
5276         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5277         not needed.  Disregard leaf_function_p().
5278         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5279         mips16 frame pointer.
5280         * config/mips/mips.md (store ra): Only to small SP offsets.
5281         2001-08-22  Graham Stott  <grahams@redhat.com>
5282         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5283         return a REG rtx for the return address register.
5284
5285 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
5286
5287         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5288         constant-pool addresses as "mode-dependent".
5289         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5290
5291 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
5292
5293         PR target/5740
5294         * expr.c (emit_group_load): Use extract_bit_field if
5295         needed for CONCAT arguments.
5296
5297 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
5298
5299         PR target/4863
5300         * arm.md (tablejump): Make this a define_expand.  For PIC add the
5301         offset to the base of the table.
5302         (thumb_tablejump): Matcher for Thumb tablejump insn.
5303         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5304         as the difference of two labels.
5305         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5306         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5307         tables in the code.
5308         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5309         * arm.c (get_jump_table_size): If the table is not in the text
5310         section, return zero.
5311
5312 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
5313
5314         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5315         of gen_rtx_SUBREG.
5316         (arm_reload_out_hi): Use gen_lowpart instead of
5317         gen_rtx_SUBREG to access QImode components.
5318         * config/arm/arm.md: Disable zero_extend split for QImode
5319         subregs in BIG_ENDIAN mode.
5320         (storehi_bigend): Match use of least significant byte.
5321         (storeinthi): Remove extraneous SUBREG.
5322         Add missing construction of operands[2].
5323         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5324         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5325         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5326
5327 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
5328
5329         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5330         any_operand.
5331
5332 2002-03-17  Richard Henderson  <rth@redhat.com>
5333
5334         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5335         explicitly.
5336
5337 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5338
5339         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5340         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5341
5342 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5343
5344         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5345
5346         * predict.c (estimate_bb_frequencies): Delete unused variables.
5347
5348 2002-03-17  Richard Henderson  <rth@redhat.com>
5349
5350         * config/ia64/ia64.c (ia64_attribute_table): Move before
5351         targetm definition.  Make static.
5352
5353 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5354
5355         * c-common.h (yyparse, c_common_parse_file): New.
5356         * c-lang.c: Include c-common.h.
5357         (LANG_HOOKS_PARSE_FILE): Redefine.
5358         * c-lex.c: Include c-common.h.
5359         (yyparse): Rename c_common_parse_file.  Call yyparse.
5360         * c-parse.in (yyparse): Remove macro.
5361         * c-tree.h (yyparse_1): Remove.
5362         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5363         (LANG_HOOKS_INITIALIZER): Update.
5364         * langhooks.h (struct lang_hoooks): New hook parse_file.
5365         * toplev.c (compile_file): Use parse_file hook.
5366         * tree.h (yyparse): Remove.
5367         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5368
5369 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5370
5371         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5372         float_truncate, not fix.
5373         ("*truncdfsf2_real"): Ditto.
5374         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5375
5376         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5377
5378 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
5379
5380         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5381         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
5382         where appropriate.  Make the second reference to
5383         leaf_function_p a function call, as intended.  Reindented.
5384
5385         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5386         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5387
5388         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5389         add register to non-constant into sp.
5390
5391         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5392         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5393         (mips16_gp_pseudo_rtx): Lose.
5394         (INIT_EXPANDERS): Deleted.
5395         * config/mips/mips.c (mips_init_machine_status): New.
5396         (mips_free_machine_status): New.
5397         (mips_mark_machine_status): New.
5398         (override_options): Set them.
5399         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5400         (struct machine_function): ... new.  Replaced all references.
5401         (mips_add_gc_roots): Don't mark them.
5402         (embedded_pic_fnaddr_reg): New, extracted from...
5403         (embedded_pic_offset): ... here.
5404         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5405         (movsi): Likewise.
5406
5407 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5408
5409         * cppinit.c: Revert -MD removal.
5410
5411 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5412
5413         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5414         soft registers by default for 68HC12.
5415         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5416         when compiling with -fomit-frame-pointer.
5417         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5418         (expand_epilogue): Likewise.
5419         (m68hc11_gen_rotate): Use exg when rotating by 8.
5420
5421 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5422
5423         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5424         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5425         (splits): Remove unused add splits.
5426         ("*addhi3_68hc12"): Tune constraints.
5427         ("addhi_sp"): Try to use X instead of Y in all cases and if the
5428         constant fits in 8-bits and D is dead use abx/aby instructions.
5429         ("*addhi3"): Remove extern declaration of ix_reg.
5430         ("*subsi3"): Optimize and provide new split.
5431         ("subhi3"): Cleanup.
5432         ("*subhi3_sp"): Avoid saving X if we know it is dead.
5433         (arith splits): For 68hc12 save the address register on the stack
5434         and do the arithmetic operation with a pop.
5435
5436 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5437
5438         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5439         allocating QImode in address registers.
5440         ("*movqi_m68hc11"): Likewise.
5441
5442 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
5443
5444         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5445
5446 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5447
5448         * cppinit.c (print_help): Display -MD and -MMD.
5449         Don't display usage string.  Update assertion syntax and
5450         typo.
5451         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5452         (cpp_handle_option): Update.
5453
5454 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
5455
5456         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5457         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5458         and define it so that regardless of target CPU size,
5459         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5460         of "int" rather than "long."
5461
5462 2002-03-15  Richard Henderson  <rth@redhat.com>
5463
5464         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5465         size as a tree.
5466
5467 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5468
5469         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5470         ("tstqi" split): Avoid using memory for tstqi on address register.
5471         (splits): Remove constraints.
5472         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5473         ("cmpdf", "cmpsf"): Remove since not used.
5474         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5475         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5476
5477 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5478
5479         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5480         ("neghi2"): Tighten constraints.
5481         ("one_cmplsi2"): Optimize and simplify split.
5482         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5483
5484 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5485
5486         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5487         and split of AND operation to clear the upper bits.
5488         ("*logicalsi3_zextqi"): Likewise.
5489         ("*logicallhi3_zexthi_ashift8"): Likewise.
5490         ("*logicalsi3_silshr16"): Likewise.
5491         ("logicalsi3_silshl16"): Likewise.
5492         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5493
5494 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5495
5496         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5497         (m68hc11_indirect_p): New function.
5498         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5499         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5500         TARGET_M6812.
5501         (asm_print_register): Likewise.
5502         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5503         (m68hc11_indirect_p): Declare.
5504         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5505         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5506         (TARGET_SWITCHES): New option -mrelax.
5507         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5508         destination.
5509         ("iorsi3", "xorsi3"): Likewise.
5510         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5511         ("*andhi3_mem"): New to handle destination in memory with bclr
5512         and a scratch register.
5513         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5514         ("*andhi3_const"): New when operand2 is constant.
5515         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5516         ("*andhi3_gen"): Cleanup of the old "andhi3".
5517         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5518         ("xorqi3"): Update constraints.
5519
5520 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5521
5522         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5523         for reg_equiv_memory_loc when the operand is a register that does
5524         not get a hard register (stack location).
5525         (tst_operand): After reload, accept all memory operand.
5526         (symbolic_memory_operand): Fix detection of symbolic references.
5527         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5528         accept symbols and any constant.
5529
5530 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5531
5532         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5533         note on the insn that sets the soft frame register.
5534         (must_parenthesize): ix and iy are also reserved names.
5535         (print_operand_address): One more place where parenthesis are required
5536         to avoid confusion with register names.
5537         (m68hc11_gen_movhi): Allow push of stack pointer.
5538         (m68hc11_check_z_replacement): Fix handling of parallel with a
5539         clobber.
5540         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5541         the replacement register is.
5542         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5543         and D8_REGS classes.
5544         (MODES_TIEABLE_P): All modes are tieable except QImode.
5545
5546 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5547
5548         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5549         (___subdi3): Likewise.
5550         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5551         (__map_data_section): Optimize 68hc11 case.
5552
5553 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5554
5555         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5556         than a shift to avoid adding a register with itself.
5557         (m68hc11_memory_move_cost): Take into account NO_REGS.
5558         (m68hc11_register_move_cost): Update and use memory move cost
5559         for soft registers.
5560         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5561         it gives more opportunities to cse to optimize.
5562         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5563         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5564
5565 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5566
5567         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5568         * c-common.def (CLEANUP_STMT): New tree node.
5569         * c-common.h (CLEANUP_DECL): New macro.
5570         (CLEANUP_EXPR): Likewise.
5571         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5572         * expr.c (expand_expr): Tidy.
5573         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5574         * tree-inline.c (initialize_inlined_parameters): Clean up
5575         new local variables.
5576
5577 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5578
5579         PR bootstrap/4128
5580         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5581         before movrXX only, use reg_overlap_mentioned_p.
5582         Only special case NE if just one insn can be generated.
5583
5584 2002-03-15  Jason Merrill  <jason@redhat.com>
5585
5586         * varasm.c (assemble_variable): Call resolve_unique_section before
5587         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5588         of error_mark_node.
5589
5590 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5591
5592         PR target/5170
5593         * arm.md (split pattern for thumb shiftable immediates): Add comment
5594         explaining non-obvious test.
5595
5596 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5597
5598         PR target/5712
5599         * arm.md (movaddr, movaddr_insn): Delete.
5600
5601 2002-03-15  Jason Merrill  <jason@redhat.com>
5602
5603         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5604         -fkeep-static-consts doesn't apply to comdats.
5605
5606 2002-03-14  Richard Henderson  <rth@redhat.com>
5607
5608         * c-decl.c: Include c-pragma.h.
5609         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5610         (finish_function): Tidy.
5611         * c-pragma.c: Include c-common.h.
5612         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5613         (handle_pragma_weak): Use them.
5614         (init_pragma): Register pending_weaks.
5615         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5616         * print-tree.c (print_node): Print DECL_WEAK.
5617         * varasm.c (mark_weak_decls): Remove.
5618         (remove_from_pending_weak_list): Remove.
5619         (add_weak): Remove.
5620         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5621         (weak_decls): Make a tree_list.
5622         (declare_weak): Cons weak_decls directly.
5623         (globalize_decl): Remove weak_decls elements directly.
5624         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5625         symbols.  Don't pretend to handle aliases.
5626         (init_varasm_once): Update weak_decls registry.
5627         * Makefile.in: Update dependencies.
5628
5629 2002-03-14  Richard Henderson  <rth@redhat.com>
5630
5631         PR target/5312
5632         * config/ia64/ia64.c: Include tm_p.h last.
5633         (gen_nop_type): Remove duplicate definition.
5634         (cycle_end_fill_slots): Set sched_data for second L slot.
5635         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5636         (nop_cycles_until): Fix typos.
5637
5638 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5639
5640         PR optimization/5891
5641         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5642
5643 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5644
5645         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5646           descriptors correctly.
5647
5648 2002-03-14  Michael Meissner  <meissner@redhat.com>
5649
5650         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5651         100, allowing MAX_UNROLLED_INSNS to be overridden.
5652
5653         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5654         --param.
5655
5656         * unroll.c (params.h): Include.
5657         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5658
5659         * doc/invoke.texi (--param max-unroll-insns): Document.
5660
5661         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5662
5663 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5664
5665         * arm.md: Fix warnings about constraints in peepholes and splits.
5666
5667 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5668
5669         * cpphash.h (struct lexer_state): Remove line_extension member.
5670         * cpplib.c (dequote_string, do_linemarker): New functions.
5671         (linemarker_dir): New data object.
5672         (DIRECTIVE_TABLE): No longer need to interpret #line in
5673         preprocessed source.  Delete obsolete comment about return
5674         values of handlers.
5675         (end_directive, directive_diagnostics, _cpp_handle_directive):
5676         Don't muck with line_extension.
5677         (directive_diagnostics): No need to issue warnings for
5678         linemarkers here.
5679         (_cpp_handle_directive): Issue warnings for linemarkers here,
5680         when appropriate.  Dispatch linemarkers to do_linemarker, not
5681         do_line.
5682         (do_line): Code to handle linemarkers split out to do_linemarker.
5683         Convert escape sequences in filename argument, both places.
5684
5685         * cppmacro.c (quote_string): Rename cpp_quote_string and
5686         export.  All callers changed.
5687         * cpplib.h (cpp_quote_string): Prototype.
5688         * cppmain.c (print_line): Call cpp_quote_string on to_file
5689         before printing it.
5690
5691         * doc/cpp.texi: Document that escapes are now interpreted in
5692         #line and in linemarkers, and that non-printing characters are
5693         converted to octal escapes when linemarkers are generated.
5694
5695 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5696
5697         * emit-rtl.c (try_split): Use delete_insns.
5698         * recog.c (split_all_insns): Fix terminating condition.
5699
5700 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5701             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5702
5703         PR target/5828
5704         * arm.c (arm_output_epilogue): Fix floating-point register save
5705         adjustment when using a frame pointer.
5706
5707 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5708
5709         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5710         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5711         (save_restore_insns, mips_expand_epilogue): And here.
5712         (build_mips16_call_stub): And here.
5713         (mips_function_value): Use the new macros to decide whether a single
5714         or complex float can be returned in floating-point registers.  Return
5715         a parallel rtx in the complex case.
5716
5717 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5718
5719         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5720         call after liveness analysis.
5721
5722         * recog.c (split_insn): Use delete_insn_and_edges.
5723
5724         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5725         instructions to have branch prediction notes.
5726         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5727
5728 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5729
5730         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5731         that doesn't support it.
5732         * configure: Regenerate.
5733
5734 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5735
5736         PR target/5626
5737         * config/sparc/sparc.md (normal_branch, inverted_branch,
5738         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5739         inverted_fp_branch): Adjust calls to output_cbranch.
5740         Set length attribute.
5741         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5742         output_v9branch.  Set length attribute.
5743         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5744         predicates.
5745         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5746         (output_cbranch): Likewise.  Handle far branches.
5747         (output_v9branch): Handle far branches.
5748         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5749         Adjust prototypes.
5750         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5751         noov_compare64_op predicates.
5752
5753 2002-03-13  Jason Merrill  <jason@redhat.com>
5754
5755         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5756         into the function and constify it.
5757         * gthr-dce.h, gthr-solaris.h: Likewise.
5758
5759 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5760
5761         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5762         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5763         std_expand_builtin_va_arg if not ABI_V4.
5764
5765 2002-03-13  Jason Merrill  <jason@redhat.com>
5766
5767         * varasm.c (globalize_decl): New fn.
5768         (assemble_start_function): Use it.
5769         (asm_emit_uninitialized): Use it.
5770         (assemble_alias): Use it.
5771         (assemble_variable): Use it.
5772
5773 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5774
5775         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5776         2002-03-12 internal visibility change.
5777         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5778         visibility into SYMBOL_REF_FLAG.
5779
5780 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5781
5782         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5783         VOIDmode operand.  Add compile-time optimization for constant results.
5784
5785 2002-03-12  Jason Merrill  <jason@redhat.com>
5786
5787         * c-typeck.c (convert_for_assignment): Don't allow conversions
5788         between pointers and references.  Only allow lvalues to convert to
5789         reference.
5790
5791 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5792
5793         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5794         before prologue, to avoid scheduling problems.
5795
5796 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5797
5798         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5799         (ELIMINABLE_REGS): Add sfp->sp.
5800         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5801
5802 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5803
5804         PR optimization/5892
5805         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5806
5807 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5808
5809         * loop.c (basic_induction_var): Don't call convert_modes if mode
5810         classes are different.
5811
5812 2002-03-12  Richard Henderson  <rth@redhat.com>
5813
5814         PR optimization/5901
5815         * function.c (reposition_prologue_and_epilogue_notes): Position
5816         the markers after/before the last/first insn not deleted.
5817
5818 2002-03-12  Richard Henderson  <rth@redhat.com>
5819
5820         PR optimization/5878
5821         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5822         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5823         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5824
5825         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5826         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5827         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5828
5829         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5830         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5831         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5832         also.  Don't set it if not flag_pic.
5833         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5834         to be INVALID_REGNUM when not used.
5835
5836 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5837
5838         * expmed.c (store_bit_field): Reset alias set for memory.
5839         (extract_bit_field): Same.
5840
5841 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5842
5843         * c-common.c (c_tree_code_type, c_tree_code_length,
5844         c_tree_code_name, add_c_tree_codes): Delete.
5845         * c-common.h (add_c_tree_codes): Delete.
5846         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5847         Define.
5848         * c-objc-common.c (c_objc_common_init): Don't call
5849         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5850         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5851         objc_tree_code_name, add_objc_tree_codes): Delete.
5852         (objc_init): Don't call add_objc_tree_codes.
5853         * objc/objc-lang.c (tree_code_type, tree_code_length,
5854         tree_code_name): Define.
5855         * toplev.c (lang_independent_init): Don't set
5856         tree_code_length[IDENTIFIER_NODE].
5857         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5858         Delete definitions, moved to language front-ends.
5859         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5860         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5861         Const-ify.
5862         (tree_code_length): Change type to unsigned char.
5863
5864 2002-03-12  Richard Henderson  <rth@redhat.com>
5865
5866         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5867         internal visibility change.
5868
5869 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5870
5871         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5872         validize_mem() instead of change_address to avoid clobbering
5873         memory attributes.
5874
5875 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5876
5877         * c-lex.h (position_after_whitespace): Remove.
5878
5879 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5880
5881         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5882         (lex_string): Use unsigned char pointers.
5883
5884 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5885
5886         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5887         is not a valid memory_operand.
5888
5889 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5890
5891         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5892         * config/xtensa/lib1funcs.asm: Fix copyright to include
5893         special case for libgcc files.
5894         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5895         (__divsi3): Likewise.
5896         (__umodsi3): Likewise.
5897         (__modsi3): Likewise.
5898         * config/xtensa/lib2funcs.S: Fix copyright to include
5899         special case for libgcc files.
5900
5901 2002-03-12  Tom Rix  <trix@redhat.com>
5902
5903         * collect2.c (resolve_lib_name): Move outside of
5904         OBJECT_FORMAT_COFF ifdef.
5905         (ignore_library): Same.
5906
5907 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5908
5909         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5910
5911 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5912
5913         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5914         to function_section before writing out the constant pool.
5915
5916 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5917
5918         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5919         zero_constant.
5920         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5921
5922 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5923
5924         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5925         (adddi3): Likewise.
5926         (movdf): Likewise.
5927         (movdi): Likewise.
5928         (cmpsi splitter): Likewise.
5929         (modsi3): Fail if <= 0.
5930         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5931         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5932         (reg_or_sub_cint64_operand): Likewise.
5933         (num_insns_constant_wide): Optimize sign extension.
5934         (rs6000_legitimize_address): Likewise.
5935
5936 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5937
5938         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5939         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5940
5941 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5942
5943         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5944         address calculation.
5945
5946 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5947
5948         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5949         scratch register to DImode / TImode.
5950         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5951         register used does not overlap the target.
5952
5953 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5954
5955         * Makefile.in (debug.o): Depend on debug.h.
5956         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5957         * debug.c (do_nothing_debug_hooks): Likewise.
5958         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5959         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5960         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5961         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5962         * dwarfout.c (dwarf_debug_hooks): Likewise.
5963         * integrate.c (output_inline_function): Likewise.
5964         * objc/objc-act.c (synth_module_prologue): Likewise.
5965         * sdbout.c (sdb_debug_hooks): Likewise.
5966         * toplev.c (debug_hooks): Likewise.
5967         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5968
5969 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5970
5971         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5972         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5973         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5974         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5975         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5976         * defaults.h (POINTER_SIZE): Define.
5977         * doc/tm.texi (POINTER_SIZE): Document default.
5978
5979 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5980
5981         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5982
5983 2002-03-11  Richard Henderson  <rth@redhat.com>
5984
5985         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5986         if rebuild_label_notes_after_reload.
5987
5988 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5989
5990         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5991         emit pic register load if "internal" visibility.
5992         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5993         (cris_expand_builtin_va_arg): Do all computations on trees.
5994
5995 2002-03-11  Richard Henderson  <rth@redhat.com>
5996
5997         * rtlanal.c: Include recog.h.
5998         (keep_with_call_p): Fix thinko.
5999         * Makefile.in (rtlanal.o): Update dependencies.
6000
6001 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
6002
6003         * genflags.c (gen_insn): Use IS_VSPACE.
6004         * genoutput.c (output_insn_data): Likewise.
6005         (process_template): Likewise.
6006
6007 2002-03-11  Richard Henderson  <rth@redhat.com>
6008
6009         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
6010
6011 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6012
6013         * Makefile.in: Update.
6014         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
6015         Update documentation.
6016         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
6017         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
6018
6019 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
6020
6021         * Makefile.in: Give texi2pod its input file as a command line
6022         argument, not on stdin.
6023
6024 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
6025             Daniel Berlin  <dan@dberlin.org>
6026
6027         C++ alias analysis improvement.
6028         * alias.c (record_component_aliases): Record aliases for base
6029         classes too.
6030
6031 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
6032
6033         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
6034
6035 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
6036
6037         * toplev.c (vms_fopen): Remove, not needed.
6038
6039         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
6040
6041         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
6042
6043         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
6044         for FP, already done later.
6045
6046         * toplev.c (debug_args): Add entry for VMS_DEBUG.
6047         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
6048
6049 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
6050
6051         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
6052         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
6053         LARGEST_EXPONENT_IS_NORMAL for the given mode.
6054         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
6055         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
6056         (ediv, emul, eldexp, esqrt): Likewise.
6057         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
6058         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
6059         (saturate): New function.
6060         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
6061         (make_nan): Use a saturation value instead of a NaN if
6062         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
6063         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
6064         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
6065         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
6066         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
6067         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
6068         !ROUND_TOWARDS_ZERO.
6069         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
6070         (ROUND_TOWARDS_ZERO): Document.
6071
6072 2002-03-11  Andreas Jaeger  <aj@suse.de>
6073
6074         * cfg.c (dump_flow_info): Remove unused variable.
6075
6076 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
6077
6078         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
6079         computations on trees.
6080
6081 2002-03-10  Richard Henderson  <rth@redhat.com>
6082
6083         PR 5693:
6084         * reload.c (copy_replacements_1): New.
6085         (copy_replacements): Use it to recurse through the rtx.
6086
6087 2002-03-10  Richard Henderson  <rth@redhat.com>
6088
6089         * loop.c (strength_reduce): Compute number of iterations as
6090         unsigned HOST_WIDE_INT.
6091
6092 2002-03-10  Richard Henderson  <rth@redhat.com>
6093
6094         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
6095         to move away from the end of the block.
6096
6097 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
6098
6099         PR preprocessor/5899
6100         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
6101
6102 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6103
6104         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
6105
6106         * attribs.c (decl_attributes): Fix signed/unsigned warning.
6107
6108 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
6109
6110         * config/mmix/mmix.c: Improve comments.
6111         (mmix_target_asm_function_prologue): Drop variable
6112         empty_stack_frame.  Don't allocate unused slot above fp.
6113         (mmix_target_asm_function_epilogue): Mirror prologue changes.
6114         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
6115         brace in first column.
6116         (enum reg_class): Ditto.
6117         (FIRST_PARM_OFFSET): Now 0.
6118         (USER_LABEL_PREFIX): Remove #if 0:d definition.
6119
6120 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6121
6122         * combine.c (make_extraction): Fix error in last change.
6123
6124 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6125
6126         * c4x.c (c4x_fp_reglist): Const-ify.
6127         * cris.c (cris_print_operand): Likewise.
6128         * i386.c (ix86_va_arg): Likewise.
6129         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
6130         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
6131         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
6132         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
6133         * mcore.h (regno_reg_class): Likewise.
6134         * mips.c (gen_int_relational): Likewise.
6135         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
6136         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
6137         * pdp11.c (move_costs): Likewise.
6138         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
6139         * s390.c (s390_branch_condition_mnemonic, regclass_map):
6140         Likewise.
6141         * s390.h (regclass_map): Likewise.
6142         * sh.c (shift_amounts): Likewise.
6143         * sh.md (rotlsi3): Likewise.
6144
6145 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
6146
6147         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
6148         (ne0+5): Use new clobber to generate proper shift pattern.
6149         Patch by Michael Matz <matz@kde.org>.
6150
6151 2002-03-09  Andreas Schwab  <schwab@suse.de>
6152
6153         * gcc.c (validate_all_switches): Also handle `%W{...}'.
6154
6155 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
6156
6157         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
6158
6159 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
6160
6161         PR middle-end/5877
6162         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
6163         even for non-representable constants.
6164
6165 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6166
6167         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
6168         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
6169         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
6170         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
6171         (pop_function_context): Compute MAY_SHARE parameter for
6172         fixup_var_refs.
6173         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
6174         (gen_mem_addressof): Call fixup_var_refs with new parm.
6175
6176         * combine.c (make_extraction): Don't make extension of CONST_INT.
6177
6178 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
6179
6180         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
6181         in o32 and o64 ABIs.
6182         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
6183         but getting fixed-size structs passed in registers regardless of
6184         padding in o32 and o64 ABIs.
6185
6186         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
6187         offset before loading address of argument passed by transparent
6188         reference.
6189
6190 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6191
6192         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
6193
6194 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
6195
6196         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
6197         marker such that registers after it are saved.
6198
6199 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6200
6201         * sparc.c (arith_4096_operand): Fix error in last change.
6202
6203 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
6204
6205         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
6206         defaults for MEABI.
6207
6208 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
6209
6210         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
6211         vectors.
6212
6213 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
6214
6215         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
6216
6217 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
6218
6219         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
6220         removed; fix return value.
6221         * combine.c (combine_instructions): Dirtify blocks where we failed to
6222         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
6223         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
6224
6225 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6226
6227         * gcse.c (insert_insn_end_bb): Fix typo in last change.
6228
6229 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
6230
6231         * recog.c (peephole2_optimize): Re-distribute EH edges.
6232
6233 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6234
6235         * expr.c (expand_expr): Use unsave lang hook.
6236         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
6237         (LANG_HOOKS_INITIALIZER): Update.
6238         * langhooks.h (struct lang_hooks): New hook unsave.
6239         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
6240         (unsave_expr_1): Remove unused lang_unsave_expr_now.
6241         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
6242         (unsave_expr_now): Remove.
6243         * tree.h (unsave_expr_now, lang_unsave,
6244         lang_unsave_expr_now): Remove.
6245         (lhd_unsave): New.
6246
6247 2002-03-08  Andreas Jaeger  <aj@suse.de>
6248
6249         * flow.c (propagate_block_delete_insn): Remove unused variable.
6250
6251 2002-03-08  Kazu Hirata  <kazu@hxi.com>
6252
6253         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
6254         insn length for memory load/store.
6255
6256 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6257
6258         * doc/install.texi (--with-libiconv-prefix): Document.
6259
6260 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
6261
6262         * doc/sourcebuild.texi: Fix typo.
6263
6264 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
6265
6266         PR c/3711
6267         * builtins.c (std_expand_builtin_va_arg): Do all computations on
6268         trees.
6269
6270 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6271
6272         * rtl.c (copy_most_rtx): Move from here ...
6273         * emit-rtl.c (copy_most_rtx): ... to here.
6274
6275 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
6276
6277         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6278         SUBTARGET_CPP_SIZE_SPEC.
6279         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6280
6281         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6282
6283 2002-03-07  Matt Hiller  <hiller@redhat.com>
6284
6285         * gensupport.c (first_dir_md_include): Renamed from include;
6286         change all references.
6287         (last_dir_md_include): Renamed from last_include; change all
6288         references.
6289         (init_md_reader): Unconditionally initialize base_dir whether or
6290         not filename is a relative path.
6291
6292 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
6293
6294         * config/fp-bit.c (_unord_f2): Compile it in even if
6295         US_SOFTWARE_GOFAST is enabled.
6296
6297         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6298         NULL_RTX.  Set all HFmode operations as NULL_RTX.
6299         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6300         NULL_RTX, try reversing the comparison and the operands.
6301
6302 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6303
6304         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6305         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6306         and MATCH_OP_DUP.
6307
6308 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
6309
6310         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6311
6312 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6313
6314         * basic-block.h (fixup_abnormal_edges): Declare.
6315         * reload1.c (fixup_abnormal_edges): New function.
6316         * reg-stack.c (convert_regs): Use it.
6317
6318         * gcse.c (insert_insn_end_bb): Handle trapping insns.
6319
6320         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6321
6322 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
6323
6324         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6325         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6326         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6327         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6328         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6329         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6330         unless x and y could be infinite.
6331         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6332         Check that the common type of both arguments is a real, even for
6333         targets without unordered comparisons.  Allow an integer argument
6334         to be compared against a real.
6335         (expand_tree_builtin): Use expand_unordered_cmp.
6336         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6337         * cse.c (fold_rtx): Likewise.  Fix indentation.
6338         * fold-const.c (fold_real_zero_addition_p): New.
6339         (fold): Use it, and the new HONOR_... macros.
6340         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6341         * jump.c (reversed_comparison_code_parts): After searching for
6342         the true comparison mode, use HONOR_NANS to decide whether it
6343         can be safely reversed.
6344         (reverse_condition_maybe_unordered): Remove IEEE check.
6345         * simplify-rtx.c (simplify_binary_operation): Use the new macros
6346         to decide which simplifications are valid.  Allow the following
6347         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6348         and (a - -b) to (a + b).
6349         (simplify_relational_operation): Use HONOR_NANS.
6350         * doc/tm.texi: Document the MODE_HAS_... macros.
6351
6352 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
6353
6354         * combine.c (simplify_comparison): If simplifying a logical shift
6355         right and compare with constant, force the comparison to unsigned.
6356
6357 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
6358
6359         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6360
6361         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6362         -mabi=no-altivec
6363         (alt_reg_names): Remove % for vrsave.
6364
6365 2002-03-06  Richard Henderson  <rth@redhat.com>
6366
6367         PR optimization/5844
6368         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
6369         if used indicates we've already emitted one copy of an operand.
6370         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6371         (gen_split): Supply a non-null used.
6372
6373 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6374
6375         * reload1.c (reload): Unshare all rtl after reload is done.
6376
6377         * simplify-rtx.c (simplify_plus_minus): Do not abort,
6378         but simply fail if the expression is too complex to simplify.
6379         (simplify_gen_binary): Handle simplify_plus_minus failures.
6380
6381 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6382
6383         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6384         consistently call delete_trivially_dead_insns after CSE and GCSE;
6385         fix DFI_life dumping; do jump threading after liveness; do crossjumping
6386         after liveness2; update comment in last crossjumping.
6387         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6388
6389 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
6390
6391         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6392         after completing fast dead code elimination.
6393
6394         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6395         COMPARE operator.
6396
6397 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
6398
6399         * version.c:  Fix misplaced leading blanks on first line.
6400
6401 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
6402
6403         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6404
6405 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
6406
6407         * cfgcleanup.c (mentions_nonequal_regs): New function.
6408         (thread_jump): Use it.
6409         * toplev.c (rest_of_compilation): Run jump threading after
6410         liveness.
6411
6412 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6413
6414         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6415         patch.
6416
6417 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6418
6419         * predict.c (estimate_bb_frequencies): Do not reload the
6420         frequencies from notes.
6421
6422 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
6423
6424         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6425         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6426
6427         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6428         delete_noop_moves): Return indeger.
6429         * flow.c (ndead): New variable.
6430         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6431         BB argument; update callers.
6432         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6433         (life_analysis): Do not call purge_all_dead_edges.
6434         (update_life_info): Return number of deleted insns; print statistics.
6435         (update_life_info_in_dirty_blocks): likewise.
6436         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6437         return number of insns deleted.
6438
6439         * cse.c: Include timevar.h
6440         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6441         iterate until stabilizes; print statistics; return number of killed
6442         insns.
6443         * Makefile.in: (cse.o): Add timevar.h dependency
6444         * rtl.h (delete_trivially_dead_insns): New.
6445         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6446         * toplev.c (rest_of_compilation): Update callers.
6447
6448         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6449         (try_optimize_cfg): Do not update liveness.
6450         (cleanup-cfg): Loop until try_optimize_cfg and dead code
6451         removal stabilizes; use delete_trivially_dead_insns.
6452
6453         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6454
6455 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
6456
6457         * cppmain.c (setup_callbacks): Disable #pragma and #ident
6458         callbacks when processing assembly language.
6459
6460 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6461
6462         * pa.h (ASM_FILE_END): Define.
6463         * som.h (ASM_FILE_END): Delete.
6464
6465         * pa.c (function_arg): Don't pass floats in general registers in
6466         indirect calls if TARGET_ELF32.
6467
6468 2002-03-05  Richard Henderson  <rth@redhat.com>
6469
6470         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6471
6472 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
6473
6474         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6475
6476 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6477
6478         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6479         -r command line.  Don't hide any symbols if not building
6480         shared libgcc.
6481
6482 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
6483
6484         * cfg.c (dump_flow_info): Warn about profile mismatches.
6485         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6486         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6487
6488 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6489
6490         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6491         wide volatile memory by parts.
6492
6493 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6494
6495         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6496         is NULL.
6497
6498 2002-03-05  Richard Henderson  <rth@redhat.com>
6499
6500         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6501
6502 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6503
6504         * toplev.c (documented_lang_options): Document more
6505         language-specific options.
6506         * doc/invoke.texi (Warning Options): Correct documentation for
6507         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6508         * c-decl.c (c_decode_option): Use a table to handle warning options.
6509
6510 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
6511
6512         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6513         parameter to mmix_encode_section_info.
6514         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6515         relocatably.  Always produce ELF, not mmo if linking relocatably.
6516         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6517         first is non-zero, don't add symbol prefix.
6518         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6519         prototype accordingly.
6520
6521 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
6522
6523         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6524
6525 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6526
6527         * configure.in: Increase required makeinfo version to 4.1.
6528         * configure: Regenerate.
6529
6530 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6531
6532         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6533         elsewhere now.
6534
6535 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6536
6537         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6538         * doc/invoke.texi: Fix @math uses.
6539
6540 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6541
6542         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6543         removal
6544
6545 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6546
6547         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6548         (powerpc-*-eabisimaltivec*): Same.
6549
6550         * config/rs6000/t-ppcendian: New.
6551
6552 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6553
6554         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6555         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6556         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6557
6558 2002-03-03  Richard Henderson  <rth@redhat.com>
6559
6560         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6561
6562 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6563
6564         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6565         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6566         tree.c, config/m68k/m68k.c:
6567         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6568         REAL_ARITHMETIC blocks unconditional.  Delete some further
6569         #ifdef blocks predicated on REAL_ARITHMETIC.
6570         * flags.h, toplev.c: Delete remaining references to
6571         flag_pretend_float.
6572
6573         * doc/invoke.texi: Remove documentation of -fpretend-float.
6574         * doc/tm.texi: Describe the various REAL_* macros as provided by
6575         real.h, not by the target configuration files.
6576
6577         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6578         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6579         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6580         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6581         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6582         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6583         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6584         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6585         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6586         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6587         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6588         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6589         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6590         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6591         config/xtensa/xtensa.h:
6592         Do not define, undefine, or mention in comments any of
6593         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6594         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6595         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6596         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6597         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6598         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6599         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6600         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6601         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6602
6603 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6604
6605         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6606         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6607         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6608         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6609         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6610         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6611         Delete.
6612         * defaults.h (BITS_PER_WORD): Define.
6613         * doc/tm.texi (BITS_PER_WORD): Document default value.
6614
6615         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6616         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6617         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6618
6619 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6620
6621         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6622         lieu of explicit sizeof/sizeof.
6623         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6624         ix86_expand_builtin): Likewise.
6625         * mips.c (mips_add_gc_roots): Likewise.
6626         * mmix.c (mmix_output_condition): Likewise.
6627         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6628         altivec_init_builtins): Likewise.
6629         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6630         * cppexp.c (Nsuff, parse_number): Likewise.
6631         * cppinit.c (builtin_array_end): Likewise.
6632         * gcc.c (n_default_compilers, process_command): Likewise.
6633         * genpreds.c (output_predicate_decls): Likewise.
6634         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6635         * lcm.c (N_ENTITIES): Likewise.
6636         * stor-layout.c (set_sizetype): Likewise.
6637
6638 2002-03-03  Richard Henderson  <rth@redhat.com>
6639
6640         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6641         for types or labels.
6642
6643 2002-03-03  Richard Henderson  <rth@redhat.com>
6644
6645         * c-decl.c (start_decl): Initialized variables are not common.
6646
6647 2002-03-02  Per Bothner  <per@bothner.com>
6648
6649         * gcc.c (option_map):  Suport new --bootclasspath option.
6650         --CLASSPATH is now just an alias for --classpath.
6651
6652 2002-03-02  Richard Henderson  <rth@redhat.com>
6653
6654         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6655         load if "internal" visibility.
6656         * doc/extend.texi: Document visibility meanings.
6657
6658 2002-03-02  Richard Henderson  <rth@redhat.com>
6659
6660         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6661         to functions as well.
6662
6663 2002-03-02  Richard Henderson  <rth@redhat.com>
6664
6665         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6666         (handle_visibility_attribute): Don't call assemble_visibility.
6667         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6668         without asmspec.  Invoke assemble_alias when needed.
6669         * varasm.c (maybe_assemble_visibility): New.
6670         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6671
6672 2002-03-02  Richard Henderson  <rth@redhat.com>
6673
6674         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6675         invoke ENCODE_SECTION_INFO with first call flag.
6676
6677         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6678         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6679         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6680         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6681         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6682         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6683         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6684         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6685         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6686         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6687         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6688         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6689         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6690         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6691         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6692         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6693         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6694         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6695         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6696         config/sh/sh.h, config/sparc/sparc.h,
6697         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6698         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6699         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6700         FIRST argument.  As needed, examine it and do nothing.
6701
6702         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6703         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6704         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6705
6706         * config/arm/t-pe (pe.o): Add dependencies.
6707
6708 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6709
6710         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6711         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6712         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6713         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6714         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6715         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6716         * defaults.h (BITS_PER_UNIT): Define.
6717         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6718
6719 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6720
6721         * config/h8300/h8300-protos.h: Add a prototype for
6722         compute_a_shift_length.
6723         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6724         (compute_a_shift_length): Likewise.
6725         (h8300_adjust_insn_length): Do not adjust insn length of shift
6726         insns.
6727         * config/h8300/h8300.md (anonymous shift patterns): Use
6728         compute_a_shift_length.
6729
6730 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6731
6732         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6733         trunc_int_for_mode.
6734
6735         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6736
6737 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6738
6739         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6740         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6741         * flags.h (flag_zero_initialized_in_bss): Declare.
6742         * toplev.c (flag_zero_initialized_in_bss): New flag.
6743         (lang_independent_options): Add flag_zero_initialized_in_bss.
6744         * tree.c (initializer_zerop): New function.
6745         * tree.h (initializer_zerop): Declare.
6746         * varasm.c (assemble_variable): If we can emit bss, put zero
6747         initializers in the bss section.
6748
6749 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6750
6751         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6752         like more than one symbol per .weak directive.
6753
6754 2002-03-01  Richard Henderson  <rth@redhat.com>
6755
6756         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6757         adjust argument_pointer by pretend_args_size.
6758         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6759
6760 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6761
6762         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6763
6764 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6765
6766         * toplev.c (rest_of_compilation): Delete dead jumptables before
6767         loop.
6768         * flow.c (delete_dead_jumptables): Make global.
6769         * rtl.h (delete_dead_jumptables): Declare.
6770
6771 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6772
6773         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6774         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6775         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6776
6777 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6778
6779         * config/h8300/h8300-protos.h: Fix formatting.
6780         * config/h8300/h8300.c: Likewise.
6781         * config/h8300/h8300.h: Likewise.
6782
6783 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6784
6785         * config/h8300/h8300.c (print_operand): Support 16-bit
6786         constant addresses.
6787         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6788
6789 2002-02-28  Richard Henderson  <rth@redhat.com>
6790
6791         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6792         pun complex values as integers; use gen_lowpart instead of
6793         gen_rtx_SUBREG.
6794         (extract_bit_field): Likewise.
6795
6796 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6797             David Edelsohn  <edelsohn@gnu.org>
6798
6799         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6800         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6801         (SUPPORTS_WEAK): Likewise.
6802         * output.h (add_weak): Add tree param.
6803         * varasm.c (add_weak): Likewise.  Save decl.
6804         (struct weak_syms): Add decl field.
6805         (mark_weak_decls): New function.
6806         (init_varasm_once): ggc_add_root mark_weak_decls.
6807         (assemble_start_function): Use ASM_WEAKEN_DECL.
6808         (assemble_variable): Likewise.
6809         (assemble_alias): Likewise.
6810         (declare_weak): Pass decl to add_weak.
6811         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6812         (remove_from_pending_weak_list): Declare and define for
6813         ASM_WEAKEN_DECL.
6814         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6815         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6816         * defaults.h (SUPPORTS_WEAK): Likewise.
6817         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6818         .weak for code sym.  Do emit .size for descriptor sym.
6819         (ASM_DECLARE_FUNCTION_SIZE): Define.
6820         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6821         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6822         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6823         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6824         .weak for code sym.
6825         (HANDLE_PRAGMA_WEAK): Remove.
6826         (ASM_WEAKEN_LABEL): Remove.
6827         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6828
6829 2002-03-01  Jason Merrill  <jason@redhat.com>
6830
6831         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6832         (TARGET_EXPR_CLEANUP): New macro.
6833
6834 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6835
6836         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6837         to take ptr_extend into account as third type of extension.
6838         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6839         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6840         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6841         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6842         * calls.c (precompute_arguments): Use new macro.
6843         (expand_call): Ditto.
6844         * combine.c (nonzero_bits): Ditto.
6845         (record_promoted_value): Ditto.
6846         * expr.c (store_expr): Ditto.
6847         (expand_expr): Ditto.
6848         * function.c (assign_parms): Ditto.
6849
6850 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6851
6852         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6853         override -shared and -shared-libgcc.
6854
6855 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6856
6857         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6858         of "ultrasparc".
6859         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6860         to be broken.
6861
6862 2002-02-28  Richard Henderson  <rth@redhat.com>
6863
6864         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6865         4 cycle latency from MM producers.
6866         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6867
6868 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6869
6870         * mklibgcc.in: Don't use GNU make extension.
6871
6872 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6873
6874         * c-parse.in (STATIC): New terminal.
6875         (scspec): New non-terminal.  Update productions accordingly.
6876         (program): Remove bogus ifc / end ifc.
6877         (array_declarator): Simplify production using STATIC.
6878
6879 2002-02-28  Jim Meyering  <meyering@lucent.com>
6880
6881         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6882         \a still means TARGET_BELL.
6883
6884 2002-02-28  Richard Henderson  <rth@redhat.com>
6885
6886         * haifa-sched.c (sched_emit_insn): New.
6887         (schedule_block): Use last_scheduled_insn to track last insn.
6888         * sched-int.h (sched_emit_insn): Prototype.
6889         * config/ia64/ia64.c (last_issued): Remove.
6890         (ia64_variable_issue): Don't set it.
6891         (nop_cycles_until): Use sched_emit_insn.
6892
6893 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6894
6895         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6896         extended constants.
6897
6898 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6899
6900         * config/h8300/h8300.c: Fix formatting.
6901         * config/h8300/h8300.h: Likewise.
6902
6903 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6904
6905         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6906         which may overwrite the high byte of the frame pointer.
6907
6908 2002-02-28  Bo Thorsen  <bo@suse.de>
6909
6910         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6911         (STARTFILE_SPEC): Add 64 bit files.
6912         (ENDFILE_SPEC): Likewise.
6913
6914 2002-02-28  Jason Merrill  <jason@redhat.com>
6915
6916         * c-decl.c (finish_function): Only warn about missing return
6917         statement with -Wreturn-type.
6918
6919 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6920
6921         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6922
6923         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6924         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6925
6926 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6927
6928         * basic-block.h (BB_REACHABLE): Renumber.
6929         (BB_DIRTY, BB_NEW): New flags.
6930         (clear_bb_flags): Declare.
6931         (update_life_info_in_dirty_blocks): Declare.
6932         * cfg.c (clear_bb_flags): New function.
6933         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6934         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6935         reorder_insns, emit_insn_after): Mark block as dirty.
6936         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6937         (update_life_info_in_dirty_blocks): New function.
6938         * recog.c (apply_change_group): Dirtify block.
6939
6940         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6941         cfg consistent.
6942         * gcse.c (delete_null_pointer_checks): Likewise.
6943
6944         * toplev.c (dump_file_index): Move cse2 after bp,
6945         add DFI_null
6946         (dump_file_info): Similary.
6947         (rest_of_compilation): Avoid most of CFG rebuilds;
6948         do first if converision after null pointer checks, do cse2
6949         after branch prediction; avoid full liveness rebuild after
6950         initializing subregs.
6951         * invoke.texi (-d options): Document -du, renumber.
6952
6953         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6954         (notice_new_block): Do not set BB_UPDATE_LIFE.
6955         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6956          merge_blocks_move_successor_nojumps, merge_blocks,
6957          try_crossjump_to_edge): Likewise.
6958         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6959         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6960         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6961         (merge_of_block): Do not use life_data_ok.
6962         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6963         (if_convert): Use BB_DIRTY mechanizm to update life.
6964         * lcm.c (optimize_mode_switching): Update
6965         update_life_info_in_dirty_blocks
6966
6967 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6968
6969         * Makefile.in (integrate.o): Update.
6970         * c-decl.c (copy_lang_decl): Rename.
6971         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6972         * integrate.c: Include langhooks.h.
6973         (copy_decl_for_inlining): Update to use langhook.
6974         * langhooks-def.h (lhd_do_nothing_t,
6975         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6976         (LANG_HOOKS_INITIALIZER): Update.
6977         * langhooks.c (lhd_do_nothing_t): New.
6978         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6979         * tree.h (copy_lang_decl): Remove.
6980 objc:
6981         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6982
6983 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6984
6985         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6986         POST_DEC, and POST_MODIFY.
6987
6988 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6989
6990         * c-typeck.c (digest_init): Remove unused parameter; all
6991         callers changed.
6992
6993 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6994
6995         * expmed.c (expand_shift): Correctly test for low part of a
6996         subreg.
6997
6998 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6999
7000         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
7001         insn UIDs with insn addresses.
7002
7003 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
7004
7005         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
7006         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
7007         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
7008         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
7009         gcc.c, toplev.c: Delete code implementing -traditional mode.
7010
7011         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
7012         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
7013         Document removal of -traditional mode for compilation, and
7014         remove documentation only relevant to that mode.
7015
7016         * config/nextstep.h, config/ptx4.h, config/svr4.h,
7017         config/convex/convex.h, config/d30v/d30v.h,
7018         config/i386/dgux.h, config/i386/osf1elf.h,
7019         config/i386/osfelf.h, config/i386/osfrose.h,
7020         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
7021         config/m68k/hp310.h, config/m88k/dgux.h,
7022         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
7023         config/m88k/m88k.h, config/m88k/openbsd.h,
7024         config/mips/abi64.h, config/mips/osfrose.h,
7025         config/mips/svr4-5.h, config/mips/svr4-t.h,
7026         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7027         config/stormy16/stormy16.h: Remove all references to
7028         -traditional from target specs.  Delete all mention of the
7029         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
7030         delete a couple of commented-out definitions of
7031         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
7032         to -traditional.
7033
7034         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
7035         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
7036
7037 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
7038
7039         * mklibgcc.in: Don't use \n in a line subject to
7040         interpretation by echo.
7041
7042 2002-02-27  Graham Stott  <grahams@redhat.com>
7043
7044         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
7045         Constify NAME.
7046
7047         * loop.c (prescan_loop): Handle PARALLEL.
7048
7049         * unroll.c (loop_iterations): Return 0 if the add_val for
7050         a BIV is REG.
7051
7052         * final.c (output_operand_lossage): Constify PFX_STR.
7053
7054         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
7055
7056 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
7057
7058         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
7059         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
7060
7061 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
7062
7063         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7064
7065 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7066
7067         * cpplex.c (_cpp_lex_token): Handle directives in macro
7068         arguments.
7069         * cpplib.c (_cpp_handle_directive): Save and restore state
7070         if parsing macro args when entering a directive.
7071         * cppmacro.c (collect_args): No need to handle directives
7072         in macro arguments.
7073         (enter_macro_context, replace_args): Use the original macro
7074         definition in case it was redefined whilst collecting arguments.
7075 doc:
7076         * cpp.texi: Update.
7077
7078 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
7079
7080         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
7081         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
7082         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
7083         method on AIX.
7084         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
7085         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
7086         (load_toc_v4_PIC_2): Same.
7087
7088 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
7089
7090         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
7091
7092 2002-02-26  Richard Henderson  <rth@redhat.com>
7093
7094         * config/alpha/alpha.md (ashldi_se): Re-enable.
7095
7096 2002-02-26  Richard Henderson  <rth@redhat.com>
7097
7098         * config/alpha/alpha.c (alpha_encode_section_info): Examine
7099         MODULE_LOCAL_P; improve commentary.
7100
7101 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
7102
7103         * doc/cpp.texi: Clarify documentation of relationship between
7104         #line and #include.
7105
7106 2002-02-26  Kazu Hirata  <kazu@hxi.com>
7107
7108         * config/h8300/h8300-protos.h: Update the prototype for
7109         compute_logical_op_length.  Add the prototype for
7110         compute_logical_op_cc.
7111         * config/h8300/h8300.c (compute_logical_op_length): Figure out
7112         code from operands.
7113         (compute_logical_op_cc): New.
7114         * config/h8300/h8300.md: Combine all the logical op patterns
7115         in HImode and SImode.  Use compute_logical_op_cc.
7116
7117 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
7118
7119         * config/i386/i386.c (print_operand): Don't append ATT-style
7120         length suffixs to x87 opcodes when in Intel mode.
7121
7122 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
7123
7124         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
7125         (init_emit_once): Update calls.
7126         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
7127         (init_syntax_once): Prototype.
7128
7129 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7130
7131         * pa-linux.h (LIB_SPEC): Update definition.
7132         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7133
7134 2002-02-26  Richard Henderson  <rth@redhat.com>
7135
7136         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
7137         if we emitted a stop bit.
7138
7139 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7140
7141         * configure.in (libgcc_visibility): Substitute.
7142         * configure: Rebuilt.
7143         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
7144         defined symbols .hidden.
7145
7146 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7147
7148         * attribs.c (c_common_attribute_table): Add visibility.
7149         (handle_visibility_attribute): New function.
7150         * varasm.c (assemble_visibility): New function.
7151         * output.h (assemble_visibility): Add prototype.
7152         * tree.h (MODULE_LOCAL_P): Define.
7153         * crtstuff.c (__dso_handle): Use visibility attribute.
7154         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
7155         for MODULE_LOCAL_P symbols too.
7156         * config/ia64/ia64.c (ia64_encode_section_info): Handle
7157         MODULE_LOCAL_P symbols the same way as local symbols.
7158         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
7159         into .sdata/.sbss by the user.
7160         * doc/extend.texi (Function Attributes): Document visibility
7161         attribute.
7162
7163 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
7164
7165         PR debug/5770
7166         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
7167         STRING_CST initializer spanning the whole variable without
7168         embedded zeros.
7169         If expand_expr returned MEM, don't use it.
7170
7171 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
7172
7173         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
7174         generate a die for the lexical block.
7175
7176 2002-02-26  Kazu Hirata  <kazu@hxi.com>
7177
7178         * config/h8300/h8300-protos.h: Add a prototype for
7179         compute_logical_op_length.
7180         * config/h8300/h8300.c (compute_logical_op_length): New.
7181         * config/h8300/h8300.md (anonymous logical patterns): Use
7182         compute_logical_op_length for length.
7183
7184 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7185
7186         * dwarf2out.c (modified_type_die): Do not call type_main_variant
7187         for vectors.
7188         (gen_type_die): Same.
7189
7190         * attribs.c (handle_vector_size_attribute): Set debug information.
7191
7192 2002-02-26  Daniel Egger  <degger@fhm.edu>
7193
7194         * config/rs6000/rs6000.md: Swap define_insn attributes to
7195         fix incorrect generation of merge high instructions instead
7196         of merge low.
7197
7198 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7199
7200         * c-typeck.c (really_start_incremental_init): Use
7201         bitsize_zero_node for vectors.
7202
7203 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
7204
7205         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
7206         ("*set_vrsave_internal"): Same.
7207
7208 2002-02-25  Richard Henderson  <rth@redhat.com>
7209
7210         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
7211         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
7212
7213 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
7214
7215         PR target/5755
7216         * config/i386/i386.c (ix86_return_pops_args): Only pop
7217         fake structure return argument if it was passed on the stack.
7218
7219 2002-02-25  Jason Merrill  <jason@redhat.com>
7220
7221         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
7222         RESULT_DECL.
7223
7224 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
7225
7226         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
7227         link with shared_name only.
7228         * doc/invoke.texi (Link Options): Document new behavior.
7229
7230 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
7231
7232         * c-typeck.c (push_init_level): Handle vectors.
7233
7234 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
7235
7236         * config/sparc/sparc.c (const64_high_operand): Zero-extend
7237         operands of SPARC_SETHI_P.
7238         (input_operand): Likewise.
7239         (sparc_emit_set_const32): Likewise.
7240         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
7241         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
7242         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
7243         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
7244         (movdi_insn_sp64_vis): Likewise.
7245         (movdi split, movdf split): Use SETHI32.
7246         * doc/md.texi: Document SPARC constraints L, M and N.
7247
7248 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
7249
7250         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
7251         ("*set_vrsave_internal"): use mfspr for Darwin.
7252
7253         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
7254         gen_get_vrsave_internal.
7255
7256 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7257
7258         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
7259
7260 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7261
7262         * cpplex.c (cpp_interpret_charconst): Get signedness or
7263         otherwise of wide character constants correct.
7264         * cppexp.c (lex): Get signedness of wide charconsts correct.
7265
7266 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7267
7268         * optabs.c (widen_operand): Only call convert_modes for
7269         promoted SUBREG if signedness matches.
7270         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7271
7272 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7273
7274         * cpplib.c (glue_header_name): Use local buffer to build up
7275         header name.
7276
7277 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7278
7279         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7280
7281 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7282
7283         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7284         H8/300[HS] separately.
7285         * config/h8300/h8300.md: Remove the early clobber constraint
7286         from bit field patterns.
7287
7288 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7289
7290         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7291         register_operand.
7292         (mulhisi3): Likewise.
7293         (umulqisi3): Likewise.
7294         (umulhisi3): Likewise.
7295
7296 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7297
7298         * cppinit.c (output_deps): Correct test for stdout output.
7299         (init_dependency_output): Cure warning.
7300
7301 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7302
7303         * expr.c (store_expr): When converting expression to promoted
7304         equivalent type, allow using SUBREG_REG of TARGET as the target
7305         of the expansion of EXP.
7306         * loop.c (basic_induction_var, case SUBREG): Always look inside.
7307         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7308         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7309         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7310         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7311
7312 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
7313
7314         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7315         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7316         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7317
7318 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
7319
7320         PR optimization/5747
7321         * loop.c (scan_loop): Update reg info if move_movables created new
7322         pseudos.
7323
7324 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7325
7326         * gcc.c (init_gcc_spec): Revert last change.
7327
7328 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7329
7330         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7331         gpc_reg_operand constraint.
7332
7333 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
7334
7335         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7336         Simplify comparison of `low'.
7337         (add_operand): Fix formatting.
7338         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7339         (mask_operand): Disallow mask to wrap in 64-bit mode.
7340         (rs6000_stack_info): Remove redundant test setting push_p.
7341         (output_toc): Fix formatting.
7342         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7343         cc_reg_not_cr0_operand constraint.
7344         (booldi3, boolcdi3 splitters): Same.
7345
7346 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
7347
7348         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7349
7350 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
7351
7352         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7353         gcc invoked with -shared-libgcc.
7354
7355 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
7356
7357         PR c++/5748
7358         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7359         decl if any of elements was TREE_USED.
7360
7361 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
7362
7363         * config/sparc/sol2.h: Don't include sys/mman.h.
7364         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7365         (arith_4096_operand): Don't throw high bits away.
7366         (const64_operand): Take sign extension of CONST_INTs into account.
7367         (const64_high_operand, sparc_emit_set_const32): Likewise.
7368         (GEN_HIGHINT64): Likewise.
7369         (sparc_emit_set_const64_quick1): Likewise.
7370         (const64_is_2insns): Likewise.
7371         (print_operand): Use trunc_int_for_mode for sign extension.
7372         * config/sparc/sparc.h (SMALL_INT32): Likewise.
7373         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7374         chars.  Assume CONST_INT is already properly sign-extended.
7375         (movdi split): Sign-extend each SImode part.
7376         (andsi3 split): Don't mask high bits off, so that result
7377         remains properly sign-extend.
7378         (iorsi3 split): Likewise.
7379         (xorsi3 split): Likewise.
7380
7381 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
7382
7383         * fold-const.c (fold): Fix typo in comments.
7384
7385 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7386
7387         * Makefile.in (langhooks.o): Update dependencies.
7388
7389 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7390
7391         * langhooks.c: Include flags.h.
7392
7393 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
7394
7395         * testsuite/gcc.dg/attr-alwaysinline.c: New.
7396
7397         * c-common.c (c_common_post_options): Set inline trees by
7398         default.
7399
7400         * doc/extend.texi (Function Attributes): Document always_inline
7401         attribute.
7402         Update documentation about inlining when not optimizing.
7403
7404         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7405
7406         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7407         unless DECL_ALWAYS_INLINE.
7408
7409         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7410         unless DECL_ALWAYS_INLINE.
7411         (c_disregard_inline_limits): Disregard if always_inline set.
7412
7413         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7414         Disregard if always_inline set.
7415         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7416         unless DECL_ALWAYS_INLINE.
7417
7418         * attribs.c (handle_always_inline_attribute): New.
7419         (c_common_attribute_table): Add always_inline.
7420
7421         * config/rs6000/altivec.h: Add prototypes for builtins
7422         requiring the always_inline attribute.
7423
7424 2002-02-21  Eric Christopher  <echristo@redhat.com>
7425
7426         * expmed.c (store_bit_field): Try to simplify the subreg
7427         before generating a new one when when the mode size of
7428         value is less than maxmode.
7429
7430 2002-02-21  Richard Henderson  <rth@redhat.com>
7431
7432         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7433         than gen_rtx_PLUS to form the sum.
7434         * explow.c (force_reg): Rearrange to not allocate new pseudo
7435         when force_operand returns a register.
7436         * expr.c (expand_assignment): Allow offset_rtx expansion to
7437         return a sum.  Do not force addresses into registers.
7438         (expand_expr): Likewise.
7439         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7440         to canonicalize arithmetic that didn't simpify.
7441         (simplify_plus_minus): New argument force; update
7442         all callers.  Don't split CONST unless we can do something with it,
7443         and wouldn't lose the constness of the operands.
7444
7445         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7446         that we generated earlier.
7447
7448 2002-02-21  Tom Tromey  <tromey@redhat.com>
7449
7450         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7451         (output_line_info): Use constant `1', with a long explanatory
7452         comment.
7453         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7454
7455 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
7456
7457         * jump.c (redirect_jump): If old label has no UID, don't try to
7458         delete it.
7459
7460 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
7461
7462         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7463         If input is constant, do shifts at compile time.
7464
7465 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7466
7467         * doc/extend.texi: Fix some more overfull hboxes.
7468
7469 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7470
7471         PR optimization/4994
7472         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7473         register moves.
7474
7475 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7476
7477         PR c++/4574
7478         * expr.h (expand_and): Add mode argument.
7479         * expmed.c (expand_and): Add mode argument.
7480         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7481         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7482         * except.c (expand_builtin_extract_return_addr): Likewise.
7483         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7484         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7485         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7486         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7487         * config/c4x/c4x.md: Use GEN_INT (x) instead of
7488         gen_rtx (CONST_INT, VOIDmode, x).
7489
7490 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7491
7492         PR c/4697:
7493         * stmt.c (warn_if_unused_value): Move side effects test once more.
7494
7495 2002-02-20  Torbjorn Granlund  <tege@swox.com>
7496
7497         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7498         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7499
7500 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
7501
7502         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7503         SUBREG or ZERO_EXTEND.
7504
7505 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7506
7507         * sh.h (current_function_anonymous_args): Remove.
7508         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7509         of current_function_varargs and current_function_stdarg is set.
7510         * sh.c (sh_expand_prologue): Check current_function_varargs /
7511         current_function_stdarg / TARGET_SH5 instead of
7512         current_function_anonymous_args.
7513
7514         * sh64.h (TARGET_VERSION): Define.
7515
7516 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
7517
7518         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7519         VRSAVE_REGNO on TARGET_ALTIVEC.
7520
7521 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
7522
7523         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7524         bits of SImode const_int.
7525         (includes_rshift_p): Likewise.
7526         (print_operand): Call mask_operand and mask64_operand with correct
7527         mode.
7528         (rs6000_output_function_epilogue): Pad traceback table to word.
7529         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7530         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7531         mask64_operand with correct mode.
7532         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7533
7534 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7535
7536         PR debug/4461
7537         * varasm.c (get_pool_constant_mark): New.
7538         * rtl.h (get_pool_constant_mark): Add prototype.
7539         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7540         be represented if it has not been output.
7541
7542 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7543
7544         * combine.c (do_SUBST): Sanity check substitutions of
7545         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7546         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7547         CONST_INT into its operand.
7548         (known_cond): Likewise, for ZERO_EXTEND.
7549         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7550         allow for simplification of wide modes.  Reject CONST_INTs in
7551         ZERO_EXTEND when their actual mode is not given.
7552
7553 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7554
7555         * c-decl.c (pushdecl): If no global declaration is found for an
7556         extern declaration in block scope, try a limbo one.
7557
7558 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7559
7560         PR c++/4401
7561         * c-common.c (pointer_int_sum): Moved from...
7562         * c-typeck.c (pointer_int_sum): ...here.
7563         * c-common.h (pointer_int_sum): Add prototype.
7564
7565 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7566
7567         PR c++/5713
7568         * c-decl.c (duplicate_decls): Return 0 if issued error about
7569         redeclaration.
7570
7571 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7572             Jakub Jelinek  <jakub@redhat.com>
7573
7574         PR c/4389
7575         * tree.c (host_integerp): Ensure that the constant integer is
7576         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7577         when pos is zero or non-zero respectively.  Clarify comment.
7578         * c-format.c (check_format_info_recurse): Fix host_integerp
7579         usage; the pos argument should be zero when assigning to a
7580         signed HOST_WIDE_INT.
7581
7582 2002-02-20  Richard Henderson  <rth@redhat.com>
7583
7584         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7585         of the operand, rather than assuming TImode.
7586         (ix86_expand_binop_builtin): Cope with commutative patterns
7587         using nonimmediate_operand for both operands.
7588         (ix86_expand_timode_binop_builtin): Likewise.
7589         (ix86_expand_store_builtin): Validate operand 1.
7590         (ix86_expand_unop1_builtin): Likewise.
7591
7592 2002-02-20  Philip Blundell  <philb@gnu.org>
7593
7594         PR 5705
7595         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7596
7597 2002-02-20  Richard Henderson  <rth@redhat.com>
7598
7599         PR c/5615
7600         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7601
7602 2002-02-20  Tom Tromey  <tromey@redhat.com>
7603
7604         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7605         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7606         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7607         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7608         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7609         unconditionally.
7610
7611 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7612
7613         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7614           for (const_int 0) in X not just INTVAL.
7615
7616 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7617
7618         * doc/extend.texi: Avoid or reduce overfull hboxes.
7619
7620 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7621
7622         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7623         operations if the field does not start at a mode boundary.
7624
7625 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7626
7627         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7628         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7629         Also done for -Acpu and -Amachine.
7630
7631 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7632
7633         * cppinit.c (init_dependency_output): Take deps output file
7634         from -o if none given with -MF.  Suppress normal output.
7635         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7636         * doc/cpp.texi, doc/invoke.texi: Update.
7637
7638 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7639
7640         * toplev.c (output_quoted_string): Write unprintable
7641         characters with octal escapes.
7642
7643 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7644
7645         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7646         really_call_used[VRSAVE_REGNO] if not Altivec.
7647
7648 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7649
7650         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7651         MODE_MASK.
7652         (constant_pool_expr_1): Fix formatting.
7653         (rs6000_legitimize_reload_address): Likewise.
7654
7655 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7656
7657         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7658         now that we have one.
7659
7660 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7661
7662         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7663         end of first block of bitfields (which was only seven bits);
7664         rename dummy to unused_1; remove comment which is no longer true.
7665
7666 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7667
7668         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7669
7670 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7671
7672         PR 5399
7673         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7674         if generating PIC.
7675
7676         PR 5054
7677         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7678         arm_is_longcall_p rather than inspecting call-type cookie
7679         directly.
7680         (call_value_insn) [TARGET_THUMB]: Likewise.
7681
7682 2002-02-19  Graham Stott  <grahams@redhat.com>
7683
7684         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7685
7686 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7687
7688         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7689         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7690         (FP_SAVE_INLINE): Delete.
7691
7692         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7693         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7694         * config/rs6000/t-ppccomm: Build crtsavres.o.
7695         * config/rs6000/crtsavres.asm: New file.
7696
7697 2002-02-19  Philip Blundell  <philb@gnu.org>
7698
7699         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7700         functions.
7701         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7702         (output_return_instruction): Allow interrupt functions to return with
7703         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7704         (arm_expand_prologue): Subtract 4 before stacking LR in an
7705         interrupt function.
7706
7707 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7708
7709         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7710         decl, not just FUNCTION_DECL.
7711         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7712         (arm_assemble_integer): Likewise.
7713         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7714         marked local.
7715
7716 2002-02-19  matthew green  <mrg@eterna.com.au>
7717
7718         * config.gcc (sparc-*-netbsdelf*): Enable target.
7719         (sparc64-*-netbsd*): New target.
7720         * config/sparc/netbsd-elf.h: New file.
7721         * config/sparc/t-netbsd64: New file.
7722
7723 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7724
7725         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7726
7727 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7728
7729         * doc/invoke.texi: explicitly list the style guidelines that
7730         -Weffc++ checks for.
7731
7732 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7733
7734         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7735
7736 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7737
7738         PR other/5718
7739         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7740         only if not -E.  If -E, pass -o through to the preprocessor.
7741
7742 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7743
7744         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7745         register number with an appropriate macro.
7746
7747 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7748
7749         * doc/rtl.texi (Constants): Close @code tag.
7750
7751 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7752
7753         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7754         ("mmx_uavgv4hi3"): Same.
7755         ("pmulhrwv4hi3"): Same.
7756
7757         * tree-inline.c (walk_tree): Handle vectors.
7758
7759         * c-common.c (constant_expression_warning): Handle vectors.
7760         (overflow_warning): Same.
7761
7762         * sched-deps.c (sched_analyze_2): Handle vectors.
7763
7764         * rtlanal.c (rtx_unstable_p): Handle vectors.
7765         (rtx_varies_p): Same.
7766         (count_occurrences): Same.
7767         (regs_set_between_p): Same.
7768         (modified_between_p): Same.
7769         (modified_in_p): Same.
7770         (volatile_insn_p): Same.
7771         (volatile_refs_p): Same.
7772         (side_effects_p): Same.
7773         (may_trap_p): Same.
7774         (inequality_comparisons_p): Same.
7775         (replace_regs): Same.
7776         (computed_jump_p_1): Same.
7777
7778         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7779         argument.
7780         (inner_mode_array): New.
7781         (copy_rtx): Handle vectors.
7782         (copy_most_rtx): Same.
7783         (rtx_equal_p): Same.
7784         (get_mode_alignment): Adjust for vectors.
7785
7786         * resource.c (mark_referenced_resources): Handle vectors.
7787         (mark_set_resources): Same.
7788
7789         * reload1.c (eliminate_regs): Handle vectors.
7790         (elimination_effects): Same.
7791         (scan_paradoxical_subregs): Same.
7792
7793         * reload.c (subst_reg_equivs): Handle vectors.
7794
7795         * regrename.c (scan_rtx): Handle vectors.
7796
7797         * regclass.c (reg_scan_mark_refs): Handle vectors.
7798
7799         * recog.c (find_single_use_1): Handle vectors.
7800
7801         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7802         (contains_replace_regs): Same.
7803         (memref_referenced_p): Same.
7804
7805         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7806         (subst_constants): Same.
7807
7808         * genattrtab.c (attr_copy_rtx): Handle vectors.
7809         (encode_units_mask): Same.
7810         (clear_struct_flag): Same.
7811         (count_sub_rtxs): Same.
7812
7813         * gcse.c (want_to_gcse_p): Handle vectors.
7814         (oprs_unchanged_p): Same.
7815         (hash_expr_1): Same.
7816         (oprs_not_set_p): Same.
7817         (expr_killed_p): Same.
7818         (compute_transp): Same.
7819         (store_ops_ok): Same.
7820
7821         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7822         of vectors.
7823         (fixup_var_refs_1): Same.
7824         (instantiate_virtual_regs_1): Same.
7825
7826         * fold-const.c (operand_equal_p): Handle vectors.
7827         (fold): Same.
7828         (rtl_expr_nonnegative_p): Same.
7829
7830         * flow.c (mark_used_regs): Handle vectors.
7831
7832         * df.c (df_uses_record): Handle vectors.
7833
7834         * cselib.c (cselib_subst_to_values): Handle vectors.
7835         (cselib_mem_conflict_p): Same.
7836         (hash_rtx): Same.
7837
7838         * cse.c (canon_reg): Handle vectors.
7839         (fold_rt): Same.
7840         (cse_process_notes): Same.
7841         (count_reg_usage): Same.
7842         (canon_hash): Same.
7843
7844         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7845
7846         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7847
7848         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7849         (gen_rtx): Handle CONST_VECTOR.
7850         (gen_const_vector_0): New.
7851         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7852         (reset_used_flags): Same.
7853         (copy_insn_1): Same.
7854         (initializer_constant_valid_p): Handle VECTOR_CST.
7855
7856         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7857
7858         * doc/rtl.texi (Constants): Document const_vector.
7859         (CONST0_RTX): Update for vectors.
7860         (RTL sharing): Same.
7861
7862         * print-tree.c (print_node): Add case for VECTOR_CST.
7863
7864         * tree.h (TREE_VECTOR_CST_ELTS): New.
7865         (struct tree_vector): New.
7866         (union tree_node): Add vector node.
7867         (build_vector): Add prototype.
7868
7869         * tree.def (VECTOR_CST): New.
7870
7871         * tree.c (build_vector): New.
7872
7873         * expmed.c (make_tree): Handle CONST_VECTOR.
7874
7875         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7876         (CONST_VECTOR_ELT): New.
7877         (CONST_VECTOR_NUNITS): New.
7878
7879         * machmode.h (GET_MODE_INNER): New.
7880         (DEF_MACHMODE): Accept 8th arg.
7881
7882         * machmode.def: Add 8th argument for vector inner mode.
7883         Add inner vector modes for vectors.
7884
7885         * rtl.def (VEC_CONST): Remove.
7886         (CONST_VECTOR): New.
7887
7888         * expr.c (clear_storage): Allow vectors.
7889         (is_zeros_p): Handle VECTOR_CST.
7890
7891         * varasm.c (output_constant_pool): Handle vectors.
7892         (rtx_const): Add veclo and vechi fields.
7893         (kind): Add RTX_VECTOR.
7894         (decode_rtx_const): Add case for vector.
7895
7896         * config/rs6000/rs6000-protos.h: Add zero_constant.
7897
7898         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7899         constants.  Force easy vector constants into memory.
7900         (easy_vector_constant): New.
7901         (emit_easy_vector_constant): New.
7902         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7903         darwin.
7904
7905         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7906         instruction does.
7907         ("altivec_lvxl"): Same.
7908         (altivec_lvebx): Same.
7909         (altivec_lvehx): Same.
7910         (altivec_lvewx): Same.
7911         ("*movv4si_const0"): New.
7912         ("*movv4sf_const0"): New.
7913         ("*movv8hi_const0"): New.
7914         ("*movv16qi_const0"): New.
7915
7916 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7917
7918         * config/h8300/h8300.c (notice_update_cc): Use
7919         cc_status.value2.
7920
7921 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7922
7923         * config/h8300/h8300.md (divmod patterns): Change the
7924         constraints for operands[1] to register_operand.
7925
7926 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7927
7928         * config/h8300/h8300-protos.h: Remove the prototype for
7929         p_operand.
7930         * config/h8300/h8300.c (p_operand): Remove.
7931         * config/h8300/h8300.md: Replace p_operand with
7932         const_int_operand.
7933
7934 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7935
7936         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7937         comment.
7938         (output_return_instruction): Allow use of LDR to unstack
7939         return addresss even for interrupt handlers or when
7940         interworking.  If compiling for ARMv5, use interworking-safe
7941         return instructions by default.  Remove duplicated code and
7942         lengthy "strcat" sequences.
7943
7944 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7945
7946         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7947         (LINK_EH_SPEC): Define.
7948         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7949
7950 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7951
7952         * config/s390/s390.c (s390_emit_prologue): Do not set the
7953         frame_related flag for call-clobbered registers.
7954
7955 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7956
7957         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7958         (construct_container): Fix handling of SSE operands.
7959         (ix86_expand_builtin): Fix handling of 64bit pointers.
7960         (mmx_maskmovq_rex): New pattern.
7961
7962 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7963
7964         * regrename.c (kill_set_value): Handle subregs properly.
7965
7966 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7967
7968         * objc/objc-act.c (handle_impent): Remove leading '*'
7969         from objc_class_name.
7970
7971 2002-02-17  Richard Henderson  <rth@redhat.com>
7972
7973         * config/alpha/alpha.c (some_small_symbolic_operand,
7974         some_small_symbolic_operand_1, split_small_symbolic_operand,
7975         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7976         Handle small SYMBOL_REFs anywhere, not just inside memories.
7977         * config/alpha/alpha-protos.h: Update.
7978         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7979         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7980
7981 2002-02-17  Roland McGrath  <roland@frob.com>
7982
7983         * config.gcc (powerpc-*-gnu-gnualtivec*,
7984         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7985         * config/rs6000/gnu.h: New file.
7986         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7987         Grok "gnu" in rs6000_abi_name.
7988         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7989         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7990         Grok -mcall-gnu analogous to -mcall-linux et al.
7991         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7992         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7993         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7994
7995 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7996
7997         PR c/3444:
7998         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7999         shortening.
8000
8001 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8002
8003         * config/cris/cris.h: Undefine STARTFILE_SPEC and
8004         ENDFILE_SPEC before (re)defining them.
8005
8006 2002-02-17  Kazu Hirata  <kazu@hxi.com>
8007
8008         * config/h8300/h8300.c: Fix formatting.
8009         * config/h8300/h8300.h: Likewise.
8010
8011 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8012
8013         * doc/tm.texi: Explain why empty strings should not be
8014         marked for translation.
8015
8016 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8017
8018         * final.c (output_operand_lossage): Changed to accept
8019         printf style arguments. Change calls where necessary.
8020         * output.h (output_operand_lossage): Change declaration
8021         accordingly. Update copyright.
8022         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
8023         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
8024         Update copyright date where necessary.
8025
8026         * config/i386/i386.c (print_operand): Likewise. Remove use of
8027         sprintf.
8028
8029         * config/cris/cris.c (cris_operand_lossage): Likewise.
8030         Rename parameter so that exgettext recognizes it as
8031         translatable message.
8032         (LOSE_AND_RETURN): Rename parameter to msgid.
8033
8034 2002-02-17  Kazu Hirata  <kazu@hxi.com>
8035
8036         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
8037         hard coded register number with an appropriate macro.
8038         (HARD_REGNO_MODE_OK): Likewise.
8039         (ARG_POINTER_REGNUM): Likewise.
8040         (STATIC_CHAIN_REGNUM): Likewise.
8041         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8042         * config/h8300/h8300.md (define_constants): Define more
8043         register numbers.
8044
8045 2002-02-17  Philipp Thomas  <pthomas@suse.de>
8046
8047         * config/i386/i386.h: Don't mark empty strings for translation.
8048
8049 2002-02-16  H.J. Lu <hjl@gnu.org>
8050
8051         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
8052
8053 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
8054
8055         * cppinit.c (merge_include_chains): Check for brack being
8056         NULL before attempting to merge it with qtail.
8057
8058 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8059
8060         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
8061         DBX_DEBUG.
8062
8063 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8064
8065         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
8066
8067 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8068
8069         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
8070         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
8071         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
8072
8073 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8074
8075         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
8076         now only if !TARGET_FIX.
8077         (*movsi_nt_vms_fix): New pattern.
8078
8079 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
8080
8081         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
8082         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
8083         (alpha_sa_mask, alpha_sa_size): Reflect above change.
8084         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
8085         (alpha_start_function, alpha_expand_epilogue): Likewise.
8086         (unicosmk_gen_dsib): Likewise.
8087
8088 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8089
8090         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
8091
8092 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
8093
8094         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
8095         check_and_change_labels, s390_final_chunkify): Delete.
8096         (s390_split_branches, s390_chunkify_pool): New functions.
8097         (s390_function_prologue): Call them.
8098
8099         * config/s390/s390.h (S390_REL_MAX): Delete.
8100         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
8101
8102         * config/s390/s390.md (cjump, icjump, jump): Fix length
8103         attribute calculation.
8104
8105
8106 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
8107
8108         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
8109         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
8110
8111 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8112
8113         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
8114         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8115         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
8116
8117 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
8118
8119         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
8120
8121 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
8122
8123         * reload.c (find_dummy_reload): Check that an output register
8124         is valid for its mode.
8125
8126 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
8127
8128         * combine.c (known_cond): After replacing the REG of a SUBREG, try
8129         to simplify it.
8130
8131         * function.c (assign_parms): Demote promoted argument passed by
8132         transparent reference.
8133
8134 2001-02-14      Joel Sherrill <joel@OARcorp.com>
8135
8136         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
8137         -Acpu() and -Amachine() to eliminate warnings.
8138
8139 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
8140
8141         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
8142
8143 2002-02-14  Kazu Hirata  <kazu@hxi.com>
8144
8145         * config/h8300/h8300-protos.h: Update the prototype for
8146         const_costs.
8147         * config/h8300/h8300.c (const_costs): Treat SET as a little
8148         more expensive operation.
8149         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
8150         reference to const_costs.
8151
8152 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
8153
8154         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
8155
8156 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
8157
8158         PR c/5503:
8159         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
8160         use arguments from newtype.
8161
8162 2002-02-13  Eric Christopher  <echristo@redhat.com>
8163
8164         * config/mips/mips.c (override_options): Add check for march/mipsX
8165         on the same command line. Fix error message in cpu processing.
8166         Remove architecture and ISA checks.
8167
8168 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
8169
8170         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
8171
8172         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
8173
8174 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
8175
8176         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
8177         alternatives.
8178         ("*movv8hi_internal1"): Same.
8179         ("*movv16qi_internal1"): Same.
8180         ("*movv4sf_internal1"): Same.
8181
8182         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
8183         not push_reload for altivec modes.
8184
8185 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
8186
8187         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
8188         all RTEMS targets including removal of #includes from config/*/rtems*.h
8189         file and adding them to tm_file setting. Added xm_defines=POSIX to
8190         many targets.
8191         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
8192         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
8193         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
8194         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
8195         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
8196         config/m68k/rtemself.h: Ditto.
8197         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
8198         config/mips/rtems64.h: Ditto.
8199         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
8200         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
8201         Ditto.
8202         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
8203         config/sparc/rtemself.h: Ditto.
8204         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
8205         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
8206         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
8207         more like arm-elf.
8208         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
8209         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
8210         target made more similar to i386-elf.
8211         * config/i386/t-rtems-i386: Added soft float support and multilibs.
8212         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
8213         be similar to config/m68k/t-m68kelf.
8214         * gthr-rtems.h: Encapsulate with extern "C" for C++.
8215
8216 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
8217
8218         * regmove.c (kill_value): Handle subregs.
8219
8220 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8221
8222         * i386.md (mul patterns): Allow memory operand to be first;
8223         add expanders where needed; fix constraints.
8224         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
8225         Allow memory operand to be the first.
8226
8227         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
8228         operands.
8229
8230 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8231
8232         PR c/5681:
8233         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
8234         GET_MODE (x).
8235
8236 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
8237
8238         PR optimization/5547:
8239         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
8240         all valid IA-32 address modes involving non-scaled %ebx and
8241         GOT/GOTOFF as displacement.
8242
8243 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
8244
8245         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
8246         after emitting ltorg insns.
8247
8248         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
8249         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
8250         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
8251         *abssf2): Fix "op_type" attribute.
8252
8253 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
8254
8255         * mkconfig.sh: Avoid using a subshell redirect.
8256         ($output.T): Change to $(output)T.
8257         (ENABLE_NLS): Remove unneeded undef.
8258
8259         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
8260         * config/alpha/x-vms (libsubdir): Define.
8261
8262         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
8263         register frame procedures. Optimize retrieving context.
8264
8265         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
8266         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
8267         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8268
8269 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8270
8271         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8272         Make same change as for find_base_value.
8273
8274 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8275
8276         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8277         of QImode and SImode.
8278
8279 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8280
8281         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8282         length computation of movsi.
8283         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8284
8285 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8286
8287         * config/h8300/h8300.md (subqi3): Tighten the predicate for
8288         operands[2] to register_operand.
8289
8290 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8291
8292         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8293
8294 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
8295
8296         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8297         for altivec_lvx* and altivec_stvx*.
8298         ("*movv4si_internal"): Add constraint for loading from GPRs.
8299         ("*movv8hi_internal1"): Same.
8300         ("*movv16qi_internal1"): Same.
8301         ("*movv4sf_internal1"): Same.
8302
8303         * config/rs6000/rs6000.c (altivec_register_operand): New.
8304
8305         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8306         altivec_register_operand.
8307
8308 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
8309
8310         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8311         handle SYMBOL_REF.
8312
8313 2002-02-13  Stan Shebs  <shebs@apple.com>
8314
8315         * c-typeck.c (digest_init): Handle vectors.
8316         (really_start_incremental_init): Same.
8317         (pop_init_level): Same.
8318         (process_init_element): Same.
8319
8320         * varasm.c (output_constant): Same.
8321
8322         * expr.c (clear_storage): Same.
8323         (store_constructor): Same.
8324
8325 2002-02-12  Eric Christopher  <echristo@redhat.com>
8326
8327         * explow.c (hard_function_value): Add comment explaining
8328         signed/unsigned comparison.
8329
8330 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
8331
8332         * jump.c (never_reached_warning): Add finish argument.
8333         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8334         real insn after end.
8335         * rtl.h (never_reached_warning): Adjust prototype.
8336         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8337         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8338         never_reached_warning.
8339
8340 2002-02-12  Graham Stott  <grahams@redhat.com>
8341
8342         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8343
8344 2002-02-12  Kazu Hirata  <kazu@hxi.com>
8345
8346         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8347         logical shifts on H8/300.
8348         (shift_alg_si): Improve several shifts on H8/300.
8349         (get_shift_alg): Likewise.
8350
8351 2002-02-12  Graham Stott  <grahams@redhat.com>
8352
8353         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8354
8355 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8356
8357         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8358         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8359
8360 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
8361
8362         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8363         non-CONST_INT through default_assemble_integer.
8364         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8365         <case 8>: Abort for CONST_DOUBLE.
8366
8367 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8368
8369         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8370         is specified.
8371         * config/pa/pa-linux.h (LIB_SPEC): Delete.
8372         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8373
8374 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
8375
8376         * config/stormy16/stormy16.md (zero_extendqihi2): New.
8377
8378 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
8379
8380         * regrename.c (regrename_optimize): Don't accept a
8381         part-clobbered register if the replaced register is not part
8382         clobbered.
8383
8384         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8385         take padding into account when computing the argument value.
8386
8387         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8388
8389         * combine.c (try_combine): Apply substitutions in
8390         CALL_INSN_FUNCTION_USAGE too.
8391
8392 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
8393
8394         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8395         __builtin_altivec_abs*.
8396         (bdesc_abs): New.
8397
8398         * config/rs6000/rs6000.h (rs6000_builtins): Add
8399         ALTIVEC_BUILTIN_ABS*.
8400
8401         * config/rs6000/altivec.h: Use const char for builtins expecting
8402         literals.
8403         (vec_abs): New versions for C and C++.
8404         (vec_abss): Same.
8405
8406 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8407
8408         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8409         using Pmode.
8410
8411 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8412
8413         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8414         constant definition from h8300.md.
8415         (FRAME_POINTER_REGNUM): Likewise.
8416         * config/h8300/h8300.md (define_constants): Add FP_REG.
8417
8418 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8419
8420         * config/h8300/h8300.c (print_operand): Remove redundant code.
8421
8422 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8423
8424         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8425         * config/h8300/h8300.c (byte_reg): Make it static.
8426
8427 2002-02-10  Richard Henderson  <rth@redhat.com>
8428
8429         PR c/5623
8430         * c-typeck.c (incomplete_type_error): Handle flexible array members.
8431
8432 2002-02-10  Richard Henderson  <rth@redhat.com>
8433
8434         PR c++/5624
8435         * tree.c (append_random_chars): Don't abort if main_input_filename
8436         does not exist.
8437
8438 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
8439
8440         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8441
8442 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8443
8444         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8445         (pushhi1): Likewise.
8446
8447 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8448
8449         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8450         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8451
8452 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
8453
8454         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8455         remove MASK_VIS.
8456         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
8457
8458 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8459
8460         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8461         a half of an SImode register on H8/300.
8462
8463 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
8464
8465         * i386.md (movdi_2): Add missing '!'.
8466
8467 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8468
8469         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
8470         definitions.
8471
8472 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8473
8474         * config/h8300/h8300.md (length): Correct the distance valid
8475         for the short branch.
8476
8477 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8478
8479         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8480
8481 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8482
8483         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8484         registers in SImode.
8485         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8486         part-clobbered.
8487
8488         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8489         patch.
8490
8491         Contribute sh64-elf.
8492         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8493         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8494         (sh_cannot_modify_jumps_p): New function.
8495         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8496         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8497         (sh_ms_bitfield_layout_p): New function.
8498         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
8499                     Zack Weinberg  <zack@codesourcery.com>
8500         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8501         expand_simple_binop instead of expand_binop.
8502         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
8503         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8504         use of .quad and .uaquad.
8505         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8506         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8507         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8508         * config/sh/sh.md (movdi_const, movdi_const_32bit,
8509         movdi_const_16bit): Make sure all CONSTs have modes.
8510         (sym2PIC): Ditto, but by adjusting all callers.
8511         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8512         if the prologue calls the SHmedia argument decoder or register
8513         saver.
8514         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8515         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8516         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8517         (sh_expand_epilogue): Don't emit USE of return target register.
8518         (prepare_move_operands): Legitimize DImode PIC addresses.
8519         (sh_media_register_for_return): Skip tr0, used to initialize the
8520         PIC register.
8521         (sh_expand_prologue): Remove explicit USE of return register.
8522         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
8523         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
8524         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8525         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8526         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8527         EXTRA_CONSTRAINT_T.
8528         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8529         (MOVI_SHORI_BASE_OPERAND_P): New.
8530         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8531         (EXTRA_CONSTRAINT_T): Define in terms of them.
8532         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8533         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8534         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8535         alternatives supporting TARGET_REGS.
8536         (UNSPEC_GOTPLT): New constant.
8537         (movdi split): Move incrementing of LABEL_NUSES...
8538         (movdi_const, movdi_const_32bit): Here.  Use
8539         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8540         (movdi_const_16bit): New.
8541         (call, call_value) [flag_pic]: Use GOTPLT.
8542         (call_pop, call_value_pop): New expands.
8543         (call_pop_compact, call_pop_rettramp): New insns.
8544         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8545         (sibcall) [flag_pic]: Use GOT.
8546         (builtint_setjmp_receiver): Remove bogus, unused expand.
8547         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8548         (*pt, *ptb, ptrel): New insns.
8549         (sym2GOT): Handle DImode GOT.
8550         (sym2GOTPLT, symGOTPLT2reg): New expands.
8551         (sym2PIC): New expand.
8552         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8553         (shcompact_return_tramp_i): Use return register explicitly.
8554         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8555         disable flag_reorder_blocks.
8556         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8557         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8558         clobbers, for clarity.
8559         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8560         restoring of r0 in macl as MAYBE_DEAD.
8561         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8562         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8563         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8564         alter_subreg all over.
8565         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8566         reload, instead of emitting instructions that would require
8567         reloading.
8568         (casesi_load_media): Add missing modes.
8569         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8570         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8571         as used if the argument decoder is called.
8572         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8573         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8574         Pmode, then extend it to DImode if necessary.
8575         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8576         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8577         constants in FPU-enabled SHmedia, let them be loaded from memory.
8578         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8579         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8580         Adjust whitespace in assembly output templates.
8581         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8582         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8583         mode of if_then_else.
8584         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8585         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8586         sh.h.
8587         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8588                     Joern Rennecke <amylaar@redhat.com>
8589         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8590         (SUBTARGET_CPP_PTR_SPEC): New.
8591         (SUBTARGET_CPP_SPEC): Remove.
8592         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8593         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8594         Fix typo in previous checkin.
8595         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8596         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8597         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8598                     Alexandre Oliva  <aoliva@redhat.com>
8599         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8600         what single FP register can hold for SHmedia target.
8601         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8602                     Alexandre Oliva  <aoliva@redhat.com>
8603         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8604         Do not split into SUBREG.
8605         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8606         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8607         and added new functions as specified in SH5 ABI r9.
8608         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8609         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8610         8-byte boundary.
8611         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8612         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8613         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8614         and consttable_window_ends.
8615         2001-06-03  Graham Stott  <grahams@redhat,com>
8616         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8617         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8618         * config/sh/sh.c (print_operand): Handle floating-point pair,
8619         vector and matrix registers.
8620         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8621         vector modes into account.
8622         * config/sh/sh.md (movv2sf): Split move between registers into
8623         movdf.
8624         (movv4sf, movv16sf): Introduce insns that get split only after
8625         reload.
8626         * config/sh/shmedia.h: Fix Copyright dates.
8627         * config/sh/ushmedia.h: Likewise.  Move loop counter
8628         declarations into conditionals that uses them.
8629         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8630         loop boundary.
8631         * config/sh/sshmedia.h: Fix Copyright dates.
8632         (sh_media_PUTCFG): Fix constraints.
8633         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8634         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8635         ptrmemfunc_vbit_in_delta for SH5.
8636         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8637         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8638         * invoke.texi: Likewise.
8639         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8640         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8641         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8642         GCC_pop_shmedia_regs_nofpu): New global symbols.
8643         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8644         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8645         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8646         compact function with nonlocal labels.
8647         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8648         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8649         (initial_elimination_offset): Account for their stack space.
8650         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8651         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8652         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8653         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8654         least one of the operands to be a register.
8655         (movv2sf): Likewise.  Renamed to movv2sf_i.
8656         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8657         prepare_move_operands() before emitting SHmedia insns.
8658         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8659         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8660         Don't save nor initialize r12.  Don't mis-align the stack.
8661         Pad the code with a nop.
8662         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8663         stack.
8664         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8665         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8666         [__SHMEDIA__]: Implement.
8667         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8668         * config/sh/sh.md: Set latency of `pt' closer to reality.
8669         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8670         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8671         Set move, load and store type attributes.
8672         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8673         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8674         profiling.
8675         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8676         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8677         * config/sh/sh.c (sh_media_register_for_return): New function.
8678         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8679         branch-target register.
8680         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8681         * config/sh/sh.md (return_media_i): Use any call-clobbered
8682         branch-target register.
8683         (return_media): If r18 wasn't copied in the prologue, copy it
8684         here.
8685         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8686         Clear class FP0_REGS.
8687         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8688         from elf.h.
8689         2001-03-08  DJ Delorie  <dj@redhat.com>
8690         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8691         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8692         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8693         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8694         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8695         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8696         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8697         return value correctly for call_cookie.
8698         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8699         * config/sh/crt1.asm (start): Modified so as to call
8700         ___setup_argv_and_call_main.
8701         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8702         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8703         SHmedia mode.
8704         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8705         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8706         (STRIP_NAME_ENCODING): Use it.
8707         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8708         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8709         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8710         prepare_scc_operands().
8711         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8712         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8713         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8714         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8715         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8716         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8717         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8718         used in shcompact_incoming_args.
8719         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8720         change.
8721         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8722         mode.
8723         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8724         Adjust accordingly.
8725         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8726         Simplify.  Adjust.  Add sanity check.
8727         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8728         FPU_SINGLE_BIT.
8729         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8730         TARGET_SHCOMPACT.
8731         (udivsi3, divsi3): Use them.
8732         (force_mode_for_call): New insn.
8733         (call, call_value, sibcall_value): Emit it before SHcompact
8734         calls.
8735         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8736         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8737         call cookie is non-NULL before taking its value.
8738         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8739         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8740         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8741         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8742         block.
8743         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8744         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8745         temporary for stack adjusts.  Use MACL and MACH to pass
8746         arguments to shcompact_incoming_args.
8747         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8748         clobber r1.
8749         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8750         (nested_trampoline): Load static chain address into r1.
8751         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8752         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8753         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8754         fp_arith_reg_operand().
8755         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8756         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8757         and use signed compares for them.
8758         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8759         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8760         ones properly aligned.
8761         (find_barrier): Account for extra alignment needed for 8-byte wide
8762         constants.
8763         (machine_dependent_reorg): Require a label for the second 4-byte
8764         constant after an 8-byte one.
8765         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8766         change.
8767         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8768         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8769         last_float when switching float modes.
8770         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8771         auto-increment for general-purpose registers.
8772         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8773         result.
8774         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8775         for stack adjust.
8776         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8777         registers for varargs.
8778         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8779         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8780         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8781         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8782         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8783         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8784         call_cookie accordingly.
8785         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8786         (SHCOMPACT_BYREF): Likewise.
8787         (SHCOMPACT_FORCE_ON_STACK): New macro.
8788         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8789         (sh_builtin_saveregs): Likewise.
8790         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8791         shcompact_incoming_args): Use new shift values.  Support
8792         sequences of consecutive and non-consecutive pushes/pops.
8793         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8794         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8795         * config/sh/sh.h (TEXT_SECTION): Define.
8796         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8797         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8798         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8799         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8800         return values on FPU-enabled SHmedia.
8801         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8802         FPU-enabled SHmedia.
8803         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8804         value is returned in a non-FP reg and is not returned by
8805         reference.
8806         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8807         jump_ind.
8808         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8809         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8810         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8811         quad-aligned to be passed by callee-copy reference.
8812         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8813         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8814         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8815         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8816         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8817         copying low-numbered FP regs to r7 and r8.
8818         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8819         FP regs to general-purpose regs only if the copy was passed on the
8820         stack.
8821         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8822         copying FP reg to r9.
8823         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8824         copy FP regs to general-purpose regs only in outgoing calls.
8825         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8826         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8827         HOST_WIDE_INT.
8828         * config/sh/sh.h (struct sh_args): Document all fields.
8829         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8830         passed partially on the stack should not consider making
8831         sibcalls.
8832         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8833         stack_regs only for incoming calls.  When passing FP args,
8834         make sure there are FP regs available before modifying
8835         call_cookie.
8836         (SHCOMPACT_BYREF): Pass double args in general-purpose
8837         registers by reference.
8838         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8839         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8840         attempt to generate sibcalls if the caller got any arguments
8841         by reference.
8842         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8843         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8844         to 8-byte boundaries.
8845         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8846         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8847         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8848         stored in the stack.
8849         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8850         for the offsets to have the ISA bit set.
8851         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8852         invocation.  Use beq instead of bgt to mark end of sequence of
8853         loads.
8854         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8855         bgt to mark end of sequence of stores.
8856         * config/sh/sh.c (arith_operand): Don't check whether
8857         CONST_OK_FOR_J for now.
8858         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8859         instead of long for conversion.
8860         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8861         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8862         before passing it to fprintf.
8863         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8864         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8865         Call set_fpscr before reading/writing SR.
8866         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8867         Call set_fpscr.
8868         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8869         SHmedia code.
8870         (FMOVD_WORKS): Define on SH5 with FPU.
8871         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8872         setting.
8873         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8874         _fpscr_values.
8875         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8876         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8877         address.
8878         (ia_main_table): Ditto.
8879         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8880         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8881         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8882         the definitions from sh.h.
8883         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8884         TARGET_SH5.
8885         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8886         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8887         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8888         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8889         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8890         Increment LABEL_NUSES.
8891
8892         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8893         TARGET_SH5.
8894         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8895         defined.
8896         * config/sh/elf.h (SIZE_TYPE): Likewise.
8897         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8898         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8899         shcompact_incoming_args): Load switch table addresses using
8900         datalabel.
8901         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8902         (NO_BUILTIN_SIZE_TYPE): Define.
8903         (SIZE_TYPE): Don't define.
8904         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8905         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8906         definition of __SH5__=32 for -m5-compact-nofpu.
8907         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8908         ADDR_DIFF_VEC.
8909         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8910         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8911         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8912         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8913         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8914         (INSN_LENGTH_ALIGNMENT): Likewise.
8915         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8916         * config/sh/sh.md (call, call_value, sibcall): Simplify
8917         copying of non-branch-target register.
8918         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8919         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8920         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8921         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8922         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8923         floating-point values as structs.
8924         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8925         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8926         general-purpose register.
8927         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8928         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8929         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8930         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8931         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8932         (ENCODE_SECTION_INFO): Enclose variables and constants in
8933         DATALABEL unspecs.
8934         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8935         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8936         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8937         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8938         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8939         SH_DATALABEL_ENCODING to the symbol name.
8940         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8941         convert_mode().
8942         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8943         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8944         UNSPEC_DATALABEL.
8945         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8946         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8947         (DATALABEL_REF_P): Don't require CONST.
8948         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8949         REL label.
8950         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8951         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8952         right.
8953         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8954         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8955         Use shallow_copy_rtx and PUT_MODE to change the mode of
8956         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8957         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8958         on SHmedia using GENERAL_REGs.
8959         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8960         bltu_media_i): Fix reversion of conditions.
8961         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8962         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8963         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8964         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8965         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8966         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8967         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8968         (GCC_nested_trampoline): Likewise.
8969         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8970         * config/sh/sh.c (gen_datalabel_ref): Define.
8971         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8972         (INITIALIZE_TRAMPOLINE): Likewise.
8973         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8974         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8975         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8976         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8977         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8978         (ic_invalidate): Adjust for SH5.
8979         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8980         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8981         _nested_trampoline.
8982         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8983         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8984         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8985         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8986         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8987         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8988         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8989         * config/sh/sh.c (target_reg_operand): Match only target-branch
8990         registers and pseudos that aren't virtual registers.
8991         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8992         Copy operands that don't match target_reg_operand to pseudos.
8993         (call_media, call_value_media, sibcall_media): Use
8994         target_reg_operand instead of target_operand.
8995         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8996         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8997         * config/sh/sh.c (target_reg_operand): Match hardware registers
8998         other than branch-target registers.
8999         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
9000         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
9001         (fpscr_values) [SH5 == 32]: Define.
9002         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
9003         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
9004         Handle function addresses coming in SUBREGs.
9005         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
9006         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
9007         shcompact_return_trampoline): Use datalabel where appropriate.
9008         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
9009         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
9010         general-purpose register to copy one branch-target register to
9011         another.
9012         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
9013         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
9014         SYMBOL_REFs with VOIDmode.
9015         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
9016         bltu_media_i): New insns.
9017         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
9018         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
9019         (INIT_CUMULATIVE_ARGS): Likewise.
9020         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
9021         * machmode.def (V16SFmode): New mode.
9022         * c-common.c (type_for_mode): Support V2SF and V16SF.
9023         * tree.c (build_common_tree_nodes_2): Likewise.
9024         * tree.h (tree_index): Likewise.
9025         * calls.c (emit_call_1): Take args_so_far.  Adjust all
9026         callers.  Introduce CALL_POPS_ARGS.
9027         * tm.texi (CALL_POPS_ARGS): Document.
9028         * config/sh/crt1.asm: Implement in SHmedia mode.
9029         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
9030         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
9031         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
9032         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
9033         Implement divsi and udivsi in SHmedia mode.  Introduce
9034         SHcompact trampolines.
9035         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
9036         only in SHmedia64.
9037         (regno_reg_class): Rewrite.
9038         (fp_reg_names): Remove.
9039         (sh_register_names, sh_additional_register_names): New.
9040         (print_operand): Added `u'.  Support SUBREGs in addresses.
9041         Add parentheses around shifted CONSTs.
9042         (output_file_start): Output .mode and .abi directives.
9043         (shiftcosts, addsubcosts, multcosts): Adjust.
9044         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
9045         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
9046         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
9047         bytes, not registers.  Take into account the need for the
9048         SHcompact incoming args trampoline.  Adjust all callers.
9049         (sh_expand_prologue): Take stack_regs into account.  Call
9050         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
9051         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
9052         stack aligned as per SH5 ABI.
9053         (sh_builtin_saveregs): Support SH5 ABI.
9054         (sh_build_va_list, sh_va_start): Likewise.
9055         (initial_elimination_offset): Take alignment into account.
9056         Compute location of PR according to the SH5 stack frame.
9057         (arith_reg_operand): Reject branch-target registers.
9058         (shmedia_6bit_operand): New.
9059         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
9060         (target_reg_operand): Match DImode only.  Accept SUBREGs.
9061         (target_operand): New.
9062         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
9063         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
9064         SIBCALL_REGS for SHmedia.
9065         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
9066         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
9067         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
9068         (TARGET_SWITCHES): New SH5 flags.
9069         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
9070         VALID_REGISTER_P to disable unsupported registers.
9071         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
9072         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
9073         (FUNCTION_ARG_PADDING): Define.
9074         (FASTEST_ALIGNMENT): Adjust.
9075         (SH_REGISTER_NAMES_INITIALIZER): New.
9076         (sh_register_names): Declare.
9077         (DEBUG_REGISTER_NAMES): Define.
9078         (REGISTER_NAMES): Define based on sh_register_names.
9079         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
9080         (sh_additional_register_names): Declare.
9081         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
9082         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
9083         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
9084         (REGISTER_NATURAL_MODE): Define.
9085         (FIRST_PSEUDO_REGISTER): Adjust.
9086         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
9087         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
9088         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
9089         (VECTOR_MODE_SUPPORTED_P): Define.
9090         (REG_CLASS_CONTENTS): Adjust.
9091         (SMALL_REGISTER_CLASSES): Adjust.
9092         (REG_ALLOC_ORDER): Adjust.
9093         (INDEX_REG_CLASS): Adjust.
9094         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
9095         (CONST_OK_FOR_LETTER_P): Adjust.
9096         (PREFERRED_RELOAD_CLASS): Adjust.
9097         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
9098         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
9099         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
9100         (FIRST_FP_PARM_REG): Adjust.
9101         (CALL_POPS_ARGS): Define.
9102         (FUNCTION_ARG_REGNO_P): Adjust.
9103         (struct sh_args): New fields.
9104         (GET_SH_ARG_CLASS): Adjust.
9105         (INIT_CUMULATIVE_ARGS): Adjust.
9106         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
9107         (FUNCTION_ARG_ADVANCE): Adjust.
9108         (FUNCTION_ARG): Adjust.
9109         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
9110         (FUNCTION_ARG_CALLEE_COPIES): Define.
9111         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
9112         (STRICT_ARGUMENT_NAMING): Define.
9113         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
9114         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
9115         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
9116         (SETUP_INCOMING_VARARGS): Adjust.
9117         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
9118         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
9119         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
9120         (SUBREG_OK_FOR_INDEX_P): Adjust.
9121         (EXTRA_CONSTRAINT_S): Update.
9122         (EXTRA_CONSTRAINT_T): New.
9123         (EXTRA_CONSTRAINT): Adjust.
9124         (GO_IF_LEGITIMATE_INDEX): Adjust.
9125         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
9126         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
9127         (MOVE_MAX): Adjust.
9128         (MAX_MOVE_MAX): Define.
9129         (Pmode): Adjust.
9130         (CONST_COSTS): Adjust.
9131         (REGISTER_MOVE_COST): Adjust.
9132         (BRANCH_COST): Adjust.
9133         (TEXT_SECTION_ASM_OP): Adjust.
9134         (DBX_REGISTER_NUMBER): Adjust.
9135         (ASM_OUTPUT_DOUBLE_INT): New.
9136         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
9137         (PREDICATE_CODES): Adjust.
9138         (PROMOTE_MODE): Adjust.
9139         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
9140         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
9141         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
9142         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
9143         (DR0_REG, DR2_REG, DR4_REG): Renumber.
9144         (TR0_REG, TR1_REG, TR2_REG): New.
9145         (XD0_REG): Renumber.
9146         (UNSPEC_COMPACT_ARGS): New.
9147         (type): Added pt and ptabs.
9148         (length): Default to 4 on SHmedia.  Default pt length to 12
9149         and     20 on SHmedia32 and SHmedia64, respectively.
9150         (pt): New function unit.
9151         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
9152         Add whitespace between operands of SHmedia instructions.
9153         (movdicc): Fix.
9154         (adddi3_media, addsi3_media): Adjust constraints.
9155         (subsi3) [SHmedia]: Force operand 1 into a register.
9156         (udivsi3_i1_media, udivsi3_i4_media): New.
9157         (udivsi3): Support SHmedia.
9158         (divsi3_i1_media, divsi3_i4_media): New.
9159         (divsi3): Support SHmedia.
9160         (anddi3, iordi3, xordi3): Adjust constraints.
9161         (zero_extendhidi2, zero_extendqidi2): New.
9162         (extendsidi2, extendhidi2, extendqidi2): New.
9163         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
9164         (pop_e, pop_fpul, pop_4): Likewise.
9165         (movsi_media): Support FP and BT registers.
9166         (movsi_media_nofpu): New.  Adjust splits to DImode.
9167         (lduw, ldub): Renamed to zero_extend* above.
9168         (movqi_media): Fix typo.
9169         (movdi_media): Support FP and BT registers.
9170         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
9171         (movdi_const_32bit): New.
9172         (shori_media): Require immediate operand.  Use `u' for output.
9173         (movdf_media, movsf_media): Simplified.
9174         (movdf_media_nofpu, movsf_media_nofpu): New.
9175         (movdf, movsf): Adjust
9176         (movv2sf, movv2sf, movv16sf): New.
9177         (beq_media, beq_media_i): Adjust constraints.  Don't use
9178         scratch BT register.
9179         (bne_media, bne_media_i): Likewise.
9180         (bgt_media, bgt_media_i): Likewise.
9181         (bge_media, bge_media_i): Likewise.
9182         (bgtu_media, bgtu_media_i): Likewise.
9183         (bgeu_media, bgeu_media_i): Likewise.
9184         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
9185         bunordered): Emit jump insn.  Force operands to registers when
9186         needed.
9187         (jump_media, jump): Simplify.
9188         (call_compact, call_compact_rettramp): New.
9189         (call_value_compact, call_value_compact_rettramp): New.
9190         (call_media, call_value_media): Simplify.
9191         (sibcall_compact, sibcall_media): New.
9192         (call, call_value): Adjust for SHmedia and SHcompact.
9193         (sibcall, sibcall_value, untyped_call): Likewise.
9194         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
9195         (indirect_jump): Adjust for SHmedia.
9196         (casesi_jump_media): New.
9197         (nop): Re-enable for SHmedia.
9198         (call_site): Restrict to SH1.
9199         (casesi): Adjust for SHmedia.
9200         (casesi_shift_media, casesi_load_media): New.
9201         (return): Explicitly use PR register.  Call return trampoline
9202         on SHcompact.
9203         (return_i): Explicitly use PR register.
9204         (shcompact_return_tramp, shcompact_return_tramp_i): New.
9205         (return_media): Adjust.
9206         (shcompact_incoming_args): New.
9207         (epilogue): Adjust.
9208         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9209         (movstrsi): Disable on SH5.
9210         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
9211         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
9212         (subsf3, subsf3_media): Likewise.
9213         (mulsf3, mulsf3_media, mac_media): Likewise.
9214         (divsf3, divsf3_media): Likewise.
9215         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
9216         (floatsisf2, fux_truncsfsi2): Likewise.
9217         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
9218         constraints.
9219         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
9220         (cmpunsf_media, cmpsf): Likewise.
9221         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
9222         (abssf2, abssf2_media): Likewise.
9223         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
9224         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
9225         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
9226         (floatsidf2, fix_truncdfsi2): Likewise.
9227         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
9228         constraints.
9229         (cmpeqdf_media, cmpgtdf_media): Likewise.
9230         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
9231         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
9232         (absdf2, absdf2_media): Likewise.
9233         (extendsfdf2, extendsfdf2_media): Likewise.
9234         (truncsfdf2, truncsfdf2_media): Likewise.
9235         * config/sh/sh64.h: New file.
9236         * config/sh/t-sh64: New file.
9237         * config/sh/shmedia.h: New file.
9238         * config/sh/ushmedia.h: New file.
9239         * config/sh/sshmedia.h: New file.
9240         * configure.in: Added sh64-*-elf.
9241         * configure: Rebuilt.
9242         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
9243         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
9244         (reg_class_from_letter): Use `b' for TARGET_REGS.
9245         (print_operand): Support `%M', `%m', `AND' and
9246         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
9247         (andcosts): Adjust for SHmedia.
9248         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
9249         Likewise.
9250         (target_reg_operand): New function.
9251         * config/sh/sh-protos.h (target_reg_operand): Declare.
9252         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
9253         FP registers on SH5.
9254         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
9255         on SH4.
9256         (TARGET_REGISTER_P): New macro.
9257         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
9258         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
9259         (EXTRA_CONSTRAINT_S): New macro.
9260         (EXTRA_CONSTRAINT): Adjust.
9261         (FLOAT_TYPE_SIZE): Define to 32.
9262         (Pmode): DImode on SHmedia.
9263         (CONST_COSTS): Adjust for SHmedia literals.
9264         (PREDICATE_CODES): Added target_reg_operand.
9265         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
9266         * config/sh/sh.md: Remove all attrs from SHmedia insns.
9267         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
9268         (cmpdi): Accept SHmedia.
9269         (movdicc_false, movdicc_true): New insns.
9270         (movdicc): New expand.
9271         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9272         no_new_pseudos.
9273         (addsi3_media): Match `S' constraint.
9274         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9275         (negdi2): Expand for SHmedia.
9276         (one_cmpldi2): New expand.
9277         (zero_extendsidi2): Change from expand to insn.
9278         (extendsidi2): Add constraints.
9279         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
9280         LD/ST address.  Fix SI immediate loading split.
9281         (movhi_media, movqi_media, lduw, ldub): New insns.
9282         (movhi, movqi): Accept SHmedia.
9283         (shori_media, movdi_media): Relax input constraints.  Split
9284         symbolic constants.
9285         (movdf_media, movsf_media): New insn.  New split to movdi.
9286         (movdf, movsf): Match on SHmedia.
9287         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9288         bgeu_media): New insns and splits.  New insns with `_i' suffix.
9289         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9290         (bunordered): New expand.
9291         (jump_compact): Renamed from `jump'.
9292         (jump_media): New insn.
9293         (jump): New expand.
9294         (call_media, call_value_media): New insns.
9295         (call, call_value): Adjust.
9296         (indirect_jump_compact): Renamed from `indirect_jump'.
9297         (indirect_jump_media): New insn.
9298         (indirect_jump): New expand.
9299         (untyped_call, return): Accept SHmedia.
9300         (return_media): New insn.
9301         (prologue, epilogue, blockage): Accept SHmedia.
9302         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9303         (sunordered): New expand.
9304         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9305         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9306         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9307         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9308         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9309         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9310         abssf2_media): New insns.
9311         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9312         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9313         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9314         floatdidf2, floatsidf2_media, fix_truncdfdi2,
9315         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9316         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9317         absdf2_media): New insns.
9318         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9319         (extendsfdf2_media, truncdfsf2_media): New insns.
9320         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
9321         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9322         * config/sh/sh.h (CONST_OK_FOR_J): Document.
9323         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9324         * config/sh/sh.md (adddi3): New expand.
9325         (adddi3_media, adddi3z_media): New insns.
9326         (adddi3_compact): Renamed from adddi3.
9327         (addsi3_media): Use add.l r63 to add constant zero.
9328         (subdi3): New expand.
9329         (subdi3_media): New insn.
9330         (subdi3_compact): Renamed from subdi3.
9331         (mulsidi3): New expand.
9332         (mulsidi3_media): New insn.
9333         (mulsidi3_compact): Renamed from mulsidi3.
9334         (umulsidi3): New expand.
9335         (umulsidi3_media): New insn.
9336         (umulsidi3_compact): Renamed from umulsidi3.
9337         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9338         (ashlsi3, ashrsi3, lshrsi3): Use them.
9339         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9340         (ashldi3, ashrdi3, lshrdi3): Use them.
9341         (zero_extendsidi2): New expand.
9342         (extendsidi2): New insn.
9343         (movsi_media): New insn.  Split to movdi to load constants.
9344         (movsi): Enable for shmedia.
9345         (movdi_media): New insn.  Use shori_media to load wide constants.
9346         (short_media): New insn.
9347         (movdi): Enable for shmedia.
9348         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
9349         * config/sh/sh.h (CPP_SPEC): Added `m5'.
9350         (SUBTARGET_CPP_SPEC): Added `!m5'.
9351         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9352         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
9353         to all other SH variants.
9354         (TARGET_DEFAULT): Set to SH1_BIT.
9355         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9356         (BITS_PER_WORD): Raise to 64 on shmedia.
9357         (MAX_BITS_PER_WORD): Change to 64.
9358         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9359         (INT_TYPE_SIZE): Keep as 32.
9360         (UNITS_PER_WORD): Raise to 8 on shmedia.
9361         (MIN_UNITS_PER_WORD): Keep as 4.
9362         (POINTER_SIZE): Raise to 64 on shmedia.
9363         (CONST_OK_FOR_J): New macro.
9364         (CONST_OK_FOR_LETTER_P): Use it.
9365         (processor_type): Add PROCESSOR_SH5.
9366         * config/sh/sh.md: Conditionalize all expands, insns and
9367         splits to TARGET_SH1.
9368         (cpu): Added sh5.
9369         (addsi3_compact): Renamed from...
9370         (addsi3): Now an expand.
9371         (addsi3_media, subsi3_media): New insns.
9372         (subsi3): Don't negate constants with SHmedia.
9373
9374         * hooks.c: New file.
9375         * hooks.h: New file.
9376         * Makefile.in (HOOKS_H): New.
9377         (TARGET_DEF_H): Added $(HOOKS_H).
9378         (OBJS): Added hooks.o.
9379         (cfgcleanup.o, bb-reorder.o): Added target.h.
9380         (hooks.o): Added dependencies.
9381         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9382         (TARGET_INITIALIZER): this.
9383         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9384         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9385         * bb-reorder.c: Include target.h.
9386         (reorder_basic_blocks): Skip if cannot modify jumps.
9387         * cfgcleanup.c: Include target.h.
9388         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9389
9390 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9391
9392         * config/mips/mips.md (casesi_internal, casesi_internal_di):
9393         Protect jump delay slot instructions with .set noreorder and
9394         .set nomacro.
9395
9396 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9397
9398         * config/mips/mips.md (casesi_internal_di): Calculate
9399         the index into the target offset table correctly.
9400
9401 2002-02-08  Richard Henderson  <rth@redhat.com>
9402
9403         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9404         * final.c (output_addr_const): Accept and discard SUBREG.
9405         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9406         mark them unknown instead.
9407         (simplify_subtraction): Handle RTX_UNKNOWN.
9408         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9409
9410 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
9411
9412         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9413
9414 2002-02-08  Richard Henderson  <rth@redhat.com>
9415
9416         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9417
9418 2002-02-08  Andreas Jaeger  <aj@suse.de>
9419
9420         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9421         * config/i386/t-linux64: New file.
9422
9423 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
9424
9425         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9426         * c-parse.in (compstmt): Clear last_expr_type.
9427
9428 2002-02-07  Richard Henderson  <rth@redhat.com>
9429
9430         * loop.c (strength_reduce): Sink final_value when not
9431         eliminating a biv.
9432
9433 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
9434
9435         * config/sparc/freebsd.h: Fix mismatched spec {.
9436
9437 2002-02-07  Richard Henderson  <rth@redhat.com>
9438
9439         * cfgrtl.c: Include recog.h and insn-config.h.
9440         (keep_with_call_p): Fix general_operand invocation.
9441         * Makefile.in (cfgrtl.o): Update dependencies.
9442
9443 2002-02-07  Kazu Hirata  <kazu@hxi.com>
9444
9445         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9446         comment.  Accept HImode only if TARGET_H8300.
9447
9448 2002-02-07  Eric Christopher  <echristo@redhat.com>
9449
9450         * config/mips/crtn.asm: Cleanup #ifdefs.
9451
9452 2002-02-07  Eric Christopher  <echristo@redhat.com>
9453
9454         * config/mips/crti.asm: Add changes for mips16. mips16 uses
9455         register 7 as RA instead of $31.
9456         * config/mips/crtn.asm: Ditto.
9457         * config/mips/mips.c (mips_move_2words): Add case for
9458         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9459         (compute_frame_size): Fix typo.
9460         (save_restore_insns): Ditto.  Make documentation about using
9461         register $7 as return register more precise.
9462         (mips_expand_epilogue): Fix comment. Add code to work around not
9463         being able to add to the stack pointer directly.
9464         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9465         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9466         epilogue.
9467
9468 2002-02-07  Tom Rix  <trix@redhat.com>
9469
9470         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9471         immediates in ldu and stdu DS opcode field.
9472         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9473         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9474         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9475
9476 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
9477
9478         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9479         offset for stack bias.
9480
9481 2002-02-07  H.J. Lu <hjl@gnu.org>
9482
9483         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9484
9485 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
9486
9487         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9488
9489 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9490
9491         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9492         * i386.c (x86_order_regs_for_local_alloc): New global function.
9493         * i386.h (REG_ALLOC_ORDER): CLeanup.
9494         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9495
9496 2002-02-07  Richard Henderson  <rth@redhat.com>
9497
9498         PR optimization/2463
9499         * alias.c (find_base_value): Recall base values for fixed hard regs.
9500         * loop.c (loop_regs_update): Don't use single_set on non-insns.
9501
9502 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
9503
9504         * config/mips/mips.md (define_delay) [mips16]: Adjust required
9505         length.
9506
9507 2002-02-06  Richard Henderson  <rth@redhat.com>
9508
9509         PR c/5609
9510         * stmt.c (resolve_operand_name_1): Take more care with mixed
9511         named and unnamed operands.
9512
9513 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
9514             Jan Hubicka  <jh@suse.cz>
9515
9516         * loop.c (remove_constant_addition): Avoid clobbering a shared
9517         CONST expression.
9518
9519 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9520
9521         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9522         * config/s390/t-linux64: New file.
9523         * config/s390/libgcc-glibc.ver: New file.
9524
9525 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9526
9527         * config/s390/linux64.h: Delete file.
9528         * config/s390/s390x.h: New file.
9529         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9530         as target header file.
9531         * config/s390/linux.h (TARGET_VERSION): Define depending on
9532         DEFAULT_TARGET_64BIT.
9533         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9534         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9535         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9536         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9537         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9538         (EXTRA_SPEC): New define.
9539         * config/s390/s390.h (TARGET_VERSION): Define depending on
9540         DEFAULT_TARGET_64BIT.
9541         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9542
9543 2002-02-06  Jason Merrill  <jason@redhat.com>
9544
9545         * c-decl.c (finish_function): Warn about a non-void function with
9546         no return statement and no abnormal exit.
9547         (current_function_returns_abnormally): New variable.
9548         (start_function): Clear it.
9549         (struct c_language_function): Add returns_abnormally.
9550         (push_c_function_context): Save it.
9551         (pop_c_function_context): Restore it.
9552         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9553         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9554         an explicit return type.
9555         * c-tree.h: Declare current_function_returns_abnormally.
9556         (C_FUNCTION_IMPLICIT_INT): New macro.
9557         * c-typeck.c (build_function_call): Set it.
9558         (c_expand_return): Set current_function_returns_value even if the
9559         value is erroneous.
9560
9561 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9562
9563         PR c/5420:
9564         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9565         unsafe for reevaluation.
9566
9567 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9568
9569         PR c/5482:
9570         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9571         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9572
9573 2002-02-06  Richard Henderson  <rth@redhat.com>
9574
9575         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9576         be a general_operand.  Dest for function value must be a pseudo.
9577
9578 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9579
9580         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9581         as SYMBOL_REFs from the constant pool.
9582
9583 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9584
9585         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9586         passed by invisible reference.
9587
9588 2002-02-05  Richard Henderson  <rth@redhat.com>
9589
9590         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9591
9592 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9593
9594         Implement using "base addresses" in insn operands as default.
9595         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9596         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9597         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9598         used to read the rtx value.
9599         (mmix_target_asm_function_epilogue): Fix spacing.
9600         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9601         (mmix_legitimate_address): Ditto.
9602         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9603         should be loaded with a GETA insn.  Don't allocate needless extra
9604         char for nul termination and fix misleading comment.
9605         (mmix_print_operand_address): Handle constants if
9606         TARGET_BASE_ADDRESSES.
9607         (mmix_output_register_setting): Use base addressing if
9608         TARGET_BASE_ADDRESSES and the number of insns is 3.
9609         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9610         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9611         to use R as constraint, add LDA to match s.
9612         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9613         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9614         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9615         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9616         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9617         order with other fixed registers.
9618         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9619         other parameter/call-clobbered registers.
9620         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9621         -mbase-addresses, -mno-base-addresses.
9622         (MMIX Options): Ditto.
9623
9624 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9625
9626         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9627
9628 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9629
9630         * config/rs6000/altivec.h: Change elem to _S_elem.
9631
9632 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9633
9634         * config/netbsd.h (WCHAR_TYPE): Define.
9635         (WCHAR_TYPE_SIZE): Ditto.
9636         (WINT_TYPE): Ditto.
9637         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9638         (WCHAR_UNSIGNED): Ditto.
9639         (WCHAR_TYPE_SIZE): Ditto.
9640         (WINT_TYPE): Ditto.
9641         * config/arm/netbsd.h: Likewise.
9642         * config/i386/netbsd-elf.h: Likewise.
9643         * config/i386/netbsd.h: Likewise.
9644         * config/m68k/netbsd-elf.h: Likewise.
9645         * config/m68k/netbsd.h: Likewise.
9646         * config/ns32k/netbsd.h: Likewise.
9647         * config/sparc/netbsd.h: Likewise.
9648         * config/vax/netbsd.: Likewise.
9649
9650 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9651
9652         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9653         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9654         (TARGET_INITIALIZER): this.
9655         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9656         (BITFIELD_NBYTES_LIMITED): Markup fix.
9657         * tree.h (default_ms_bitfield_layout_p): Declare.
9658         (record_layout_info): Added prev_field.
9659         * tree.c (default_ms_bitfield_layout_p): New fn.
9660         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9661         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9662         * stor-layout.c: Include target.h.
9663         (start_record_layout): Initialize prev_field.
9664         (place_field): Handle MS bit-field layout, and disregard
9665         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9666         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9667         * Makefile.in (stor-layout.o): Adjust dependencies.
9668
9669 2002-02-05  Jason Merrill  <jason@redhat.com>
9670
9671         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9672
9673 2002-02-05  Andreas Jaeger  <aj@suse.de>
9674
9675         * crtstuff.c: Fix comments.
9676
9677 2002-02-05  Richard Henderson  <rth@redhat.com>
9678
9679         PR fortran/3393
9680         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9681         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9682
9683         PR fortran/3392
9684         * config/mips/mips.c (function_arg): Handle TImode.
9685         (function_arg_advance): Likewise.
9686
9687 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9688
9689         * config/rs6000/altivec.h (vec_step_help): Rename to
9690         __vec_step_help.
9691
9692 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9693
9694         * config/rs6000/altivec.h: Fix typos.
9695
9696 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9697
9698         * config/arm/netbsd.h: Correct a comment.
9699
9700 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9701
9702         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9703         building void typed builtins.
9704
9705         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9706         (vec_step): Implement for C++.
9707
9708 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9709
9710         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9711
9712 2002-02-04  Richard Henderson  <rth@redhat.com>
9713
9714         * combine.c (nonzero_bits): Re-introduce special case for
9715         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9716
9717 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9718
9719         * doc/extend.texi: Warn about unsupported usage of altivec
9720         builtins.
9721
9722         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9723         (altivec_predicate_*): New.
9724
9725         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9726         Add C++ version of vec_*() functions.
9727
9728         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9729         (bdesc_2arg): Remove altivec predicates.
9730         (altivec_expand_builtin): Handle predicates.
9731         (altivec_init_builtins): Handle predicates.
9732         (altivec_expand_predicate_builtin): New.
9733
9734 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9735
9736         * pa.c (DO_FRAME_NOTES): Move forward.
9737         (store_reg): Revise handling of frame notes.
9738         (load_reg): Likewise.
9739         (set_reg_plus_d): Likewise.
9740         (hppa_expand_prologue): Likewise.
9741         (hppa_expand_epilogue): Likewise.
9742
9743 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9744
9745         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9746
9747 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9748
9749         PR c/4475, c++/3780:
9750         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9751         * c-common.h (SWITCH_TYPE): Define.
9752         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9753         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9754         Rename spareness variable to sparseness.
9755         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9756         if non-NULL instead of TREE_TYPE (orig_index).
9757         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9758         (expand_end_case): Define using expand_end_case_type.
9759         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9760         to expand_end_case_type.
9761         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9762
9763 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9764
9765         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9766         (BIGGEST_ALIGNMENT): Change to 128.
9767
9768 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9769
9770         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9771
9772 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9773
9774         * pa.md (call_internal_reg_64bit): Remove unused variable.
9775
9776 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9777
9778         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9779         field.
9780         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9781         * config/arm/arm.c (current_function_anonymous_args): Delete,
9782         replace uses with cfun->machine->uses_anonymous_args.
9783         (arm_reorg): Do not reset uses_anonymous_args.
9784
9785         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9786         any geenral register.
9787
9788 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9789
9790         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9791         the entry block.
9792
9793 2002-02-04  Richard Henderson  <rth@redhat.com>
9794
9795         * combine.c (force_to_mode): Remove STACK_BIAS code.
9796         (nonzero_bits): Likewise.  Replace sp/fp special case with
9797         REGNO_POINTER_ALIGN.
9798
9799         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9800         (HARD_FRAME_POINTER_REGNUM): New.
9801         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9802         (FIXED_REGS, CALL_USED_REGS): Update.
9803         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9804         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9805         (HARD_REGNO_NREGS): Update for SFP.
9806         (STACK_POINTER_OFFSET): Include bias here ...
9807         (FIRST_PARM_OFFSET): ... not here.
9808         (STACK_BIAS): Remove.
9809         (INIT_EXPANDERS): New.
9810         (STARTING_FRAME_OFFSET): Do not include bias.
9811         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9812         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9813         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9814         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9815         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9816         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9817         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9818         (MUST_SAVE_REGISTER): Likewise.
9819         (sparc_flat_function_prologue): Likewise.
9820         (sparc_flat_function_epilogue): Likewise.
9821         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9822         (sparc_init_modes): SFP is GENERAL_REGS.
9823         (sparc_builtin_saveregs): SFP does not have bias applied.
9824
9825 2002-02-04  Richard Henderson  <rth@redhat.com>
9826
9827         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9828         current_function_is_thunk.
9829         (alpha_sa_mask): Distinguish between current_function_is_thunk
9830         called from ASM_OUTPUT_MI_THUNK and not.
9831         (alpha_does_function_need_gp): Thunks always need gp.
9832         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9833         (alpha_output_mi_thunk_osf): New.
9834         * config/alpha/alpha-protos.h: Update.
9835         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9836
9837 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9838
9839         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9840         function types, not when they're taken away.
9841
9842 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9843
9844         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9845         CODE_LABEL and jump table when replacing a table jump with a
9846         simple jump.
9847
9848 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9849
9850         * config/s390/s390-protos.h (legitimize_la_operand,
9851         s390_secondary_input_reload_class, s390_plus_operand,
9852         s390_expand_plus_operand): Add prototypes.
9853
9854         config/s390/s390.c (s390_secondary_input_reload_class,
9855         s390_plus_operand, s390_expand_plus_operand): New functions.
9856
9857         (struct s390_address): New member 'pointer'.
9858         (s390_decompose_address): Compute it.
9859         (legitimate_la_operand_p): Use it.
9860         (legitimize_la_operand): New function.
9861         (movti, movdi, movdf splitters): Call it.
9862
9863         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9864         (PREDICATE_CODES): Add s390_plus_operand.
9865
9866         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9867         (la_ccclobber): Allow GENERAL_REGS as output operand.
9868
9869         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9870         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9871         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9872
9873 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9874
9875         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9876         register names for regular asm () construct.
9877
9878 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9879
9880         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9881         registers.
9882
9883 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9884
9885         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9886         pat for recog.
9887
9888 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9889
9890         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9891         constant pool to be identical by string address and index.
9892
9893 2002-02-04  Anthony Green  <green@redhat.com>
9894
9895         * output.h (SECTION_OVERRIDE): Define.
9896         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9897
9898 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9899
9900         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9901         by existing arm*-*-netbsd* (a.out) target.
9902         (ns32k-*-netbsdelf*): Likewise.
9903         (sparc-*-netbsdelf*): Likewise.
9904         (vax-*-netbsdelf*): Likewise.
9905
9906 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9907
9908         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9909         headers and libobjc headers.
9910
9911 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9912
9913         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9914         (_mingw.h): Remove duplicate include.
9915
9916 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9917
9918         * config.gcc: Set cpu_type to m68k for 68010, as well.
9919         (m68010-*-netbsdelf*): New...
9920         (m68k*-*-netbsdelf*): ...targets.
9921         * config/m68k/netbsd-elf.h: New file.
9922
9923 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9924
9925         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9926
9927 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9928
9929         * config/h8300/h8300.c (h8_push_ops): Move inside
9930         h8300_init_once.
9931         (h8_pop_ops): Likewise.
9932         (h8_move_ops): Likewise.
9933
9934 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9935
9936         * config/h8300/h8300.c (os_task): Make it static.
9937         (monitor): Likewise.
9938         (pragma_saveall): Likewise.
9939
9940 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9941
9942         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9943         constant is a valid sign-extension for Pmode.
9944
9945 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9946
9947         * config/h8300/h8300.c: Fix formatting.
9948
9949 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9950
9951         * config/h8300/h8300.md: Fix formatting.
9952
9953 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9954
9955         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9956         predicates of operands[1].  Split the patterns for each
9957         processor variant.
9958
9959 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9960
9961         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9962         of operands[1] to register_operand.
9963
9964 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9965
9966         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9967         * cpphash.c (_cpp_init_hashtable): Similarly.
9968         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9969         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9970         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9971         (cpp_handle_option): Handle the new options.
9972         * cpplex.c (cpp_interpret_charconst): Use new flag.
9973         * cpplib.h (struct cpp_options): New member signed_char.
9974         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9975         (cpp_options): Handle -fsigned-char and -funsigned-char.
9976         (static_specs): Remove signed_char_spec.
9977         (do_spec1): Don't handle %c.
9978         * system.h: Poison SIGNED_CHAR_SPEC.
9979         * tradcif.y (yylex): Use flag_signed_char.
9980         * tradcpp.h (flag_signed_char): New.
9981         * tradcpp.c (flag_signed_char): New.
9982         (main): Handle new command-line options.
9983         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9984 config:
9985         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9986         * avr/avr.h: Remove old comments.
9987         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9988         (CC1_SPEC): Pass -fsigned-char if -mic*.
9989         (SIGNED_CHAR_SPEC): Remove.
9990 doc:
9991         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9992
9993 2002-02-01  Eric Christopher  <echristo@redhat.com>
9994
9995         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9996         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9997         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9998         (ASM_OUTPUT_REG_POP): Ditto.
9999
10000 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10001
10002         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
10003         patch.
10004
10005 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
10006
10007         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
10008
10009 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
10010
10011         PR c/5304:
10012         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
10013         unconditionally.
10014
10015 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
10016
10017         * cfganal.c: Include tm_p.h.
10018         (keep_with_call_p): Fix the test that determines if a register holds
10019         the return value of a call.
10020
10021 2002-02-01  DJ Delorie  <dj@redhat.com>
10022
10023         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
10024         we are given conflicting registers, switch to the other one we
10025         had allocated for us.
10026         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
10027         as TImode so we know when the "other" register is available.
10028
10029 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
10030
10031         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
10032         sparc/sparc_bi.h.
10033
10034 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
10035
10036         * cfganal.c (keep_with_call_p): New function.
10037         (flow_call_edges_add): Prevent splitting a block between a call and
10038         a single-set instruction that should be kept in the same block.
10039
10040 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10041
10042         * doc/install.texi (avr): Update outdated URL.
10043
10044 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
10045
10046         * config/stormy16/stormy16.md (pushqi): New.
10047         (popqi): New.
10048         (pushhi): New.
10049         (pophi): New.
10050         (movhi): Remove stack operands.
10051         (movqi): Likewise.
10052         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
10053         nonimmediate_nonstack_operand.
10054         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
10055         New.
10056         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
10057         New.
10058
10059 2002-01-31  Jason Merrill  <jason@redhat.com>
10060
10061         * Makefile.in (c-parse.c): Handle .output file.
10062         * objc/Make-lang.in (objc-parse.c): Likewise.
10063
10064 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
10065
10066         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
10067         the -me[lb] option is given.  Don't output the default flag
10068         twice.
10069
10070 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
10071
10072         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
10073         the primary source file; this has not been done yet.
10074         * c-decl.c (c_expand_body): Reset input_filename from
10075         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
10076
10077 2002-01-31  Kazu Hirata  <kazu@hxi.com>
10078
10079         * rtlanal.c (subreg_regno_offset): Do not use
10080         SUBREG_REGNO_OFFSET.
10081         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
10082         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
10083
10084 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
10085
10086         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
10087         version rather than GNATS version in --version output.
10088
10089 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
10090
10091         * ifcvt.c (noce_process_if_block): Make a copy of the destination
10092         when copying back from a temporary.
10093
10094 2002-01-30  Richard Henderson  <rth@redhat.com>
10095
10096         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
10097         and new_dest are the same.
10098
10099 2002-01-30  Richard Henderson  <rth@redhat.com>
10100
10101         PR opt/5076
10102         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
10103         * rtl.c (note_insn_name): Update.
10104         * emit-rtl.c (remove_unnecessary_notes): Kill it.
10105         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
10106         to perform loop rotation.
10107         (expand_exit_loop_top_cond): New.
10108         * tree.h (expand_exit_loop_top_cond): Declare it.
10109         * c-semantics.c (genrtl_while_stmt): Use it.
10110         (genrtl_for_stmt): Likewise.
10111
10112 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
10113
10114         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
10115         arguments to 64-bit boundaries on 64-bit ABIs.
10116
10117 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
10118
10119         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
10120
10121 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
10122
10123         * c-decl.c (grokdeclarator): Handle type being a typedef for an
10124         invalid type.
10125
10126 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
10127
10128         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
10129         * config/sparc/sparc_bi.h: Remove file.
10130         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
10131
10132 2002-01-30  Richard Henderson  <rth@redhat.com>
10133
10134         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
10135
10136 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
10137
10138         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
10139
10140 2002-01-30  Jason Merrill  <jason@redhat.com>
10141
10142         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
10143         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
10144         (reg_save): Use DW_CFA_offset_extended_sf instead.
10145
10146         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
10147
10148 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10149
10150         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
10151         in cselib_lookup.
10152
10153 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
10154
10155         * rs6000.md ("*call_value_local32"): Remove constraints.
10156         ("*call_value_local64"): Same.
10157         ("*call_value_indirect_nonlocal_aix32"): Same.
10158         ("*call_value_nonlocal_aix32"): Same.
10159         ("*call_value_indirect_nonlocal_aix64"): Same.
10160         ("*call_value_nonlocal_aix64"): Same.
10161         ("*call_value_nonlocal_sysv"): Same.
10162
10163 2002-01-29  Richard Henderson  <rth@redhat.com>
10164
10165         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
10166
10167 2002-01-29  Richard Henderson  <rth@redhat.com>
10168
10169         * expr.c (force_operand): Ignore flag_pic for detecting pic
10170         address loads.
10171         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
10172         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
10173         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
10174         instead of open-coded loop.
10175         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
10176         be fixed when in use.
10177
10178 2002-01-29  Richard Henderson  <rth@redhat.com>
10179
10180         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
10181         * sched-rgn.c (propagate_deps): Update them.
10182         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
10183         clobbers list when either gets too long.
10184
10185 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10186
10187         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
10188         and INDEX_REGS the same as GENERAL_REGS.
10189         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
10190
10191 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10192
10193         * tree.c (build_nonstandard_integer_type): Correct prototype.
10194
10195 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
10196
10197         * config/s390/s390.md (movstrsico, movstrdix_64,
10198         movstrsix_31): Remove, replace by ...
10199         (movstrdi_short, movstrsi_short, movstrdi_long,
10200         movstrsi_long): ... these.  New.
10201         (movstrdi, movstrsi): Adapt.
10202
10203         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
10204         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
10205         Remove unnecessary CC clobber.
10206         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
10207         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
10208
10209         (divmoddi4): Don't partially initialize TImode register.
10210
10211 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
10212
10213         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
10214
10215 2002-01-29  Richard Henderson  <rth@redhat.com>
10216
10217         * flow.c (print_rtl_and_abort): Remove.
10218         (print_rtl_and_abort_fcn): Remove.
10219         (verify_local_live_at_start): Use dump_bb instead.
10220         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
10221         (verify_wide_reg_1): Return 2 on mode test failure.
10222
10223 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10224
10225         PR c/3325, c/3326, c/2511, c/3347
10226         * c-decl.c (enum_decl_context): Remove BITFIELD.
10227         (grokdeclarator): Take bitfield width as an input.
10228         Ensure bitfields are given the correct type.  Perform
10229         bitfield width validation with build_bitfield_integer_type
10230         rather than waiting for finish_struct.
10231         (grok_typename, grok_typename_in_parm_context, start_decl,
10232         push_parmdecl, grokfield, start_function): Update calls to
10233         grokdeclarator.
10234         (build_bitfield_integer_type): New function.
10235         (finish_struct): Move bitfield validation to grokdeclarator
10236         and build_bitfield_integer_type.
10237         * tree.c (build_nonstandard_integer_type): New function.
10238         * tree.h (build_nonstandard_integer_type): New prototype.
10239 objc:
10240         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
10241
10242 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
10243
10244         PR other/1502:
10245         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
10246         don't ignore unrecognized -W* options.
10247         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
10248         * cpplib.h (cpp_handle_option): Adjust prototype.
10249         * c-decl.c (c_decode_options): Pass 0 as last argument to
10250         cpp_handle_option.
10251
10252         PR c/2896:
10253         * gcc.c (cpp_unique_options): Split from cpp_options.
10254         (cpp_options): Source cpp_unique_options.
10255         (default_compilers): Use cpp_unique_options instead of cpp_options
10256         when used together with cc1_options.
10257         (static_specs): Add cpp_unique_options.
10258         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
10259         when used together with cc1_options.
10260
10261 2002-01-29  Kazu Hirata  <kazu@hxi.com>
10262
10263         * config/h8300/h8300-protos.h: Update the prototype of
10264         output_a_shift.
10265         * config/h8300/h8300.c (output_a_shift): Remove an unused
10266         argument 'insn'.  Remove redundant code.
10267         * config/h8300/h8300.md: Adust to the new prototype of
10268         output_a_shift.
10269
10270 2002-01-29  Kazu Hirata  <kazu@hxi.com>
10271
10272         * config/h8300/h8300-protos.h: Update the prototypes of
10273         emit_a_rotate and expand_a_rotate.
10274         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10275         first argument to 'enum rtx_code'.
10276         (expand_a_rotate): Likewise.
10277
10278 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10279
10280         * config/h8300/h8300-protos.h: Update the prototype of
10281         output_simode_bld.
10282         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10283         'log2'.
10284         * config/h8300/h8300.md: Adjust to the new prototype.
10285
10286 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10287
10288         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10289         redundant code.
10290
10291 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10292
10293         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10294         is a fixed register before returning pic_offset_table_rtx.
10295         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10296         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10297
10298 2002-01-28  Jason Merrill  <jason@redhat.com>
10299
10300         * dwarf2.h: Sync with src version.
10301
10302 2002-01-28  Paul Koning  <pkoning@equallogic.com>
10303
10304         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10305         BT_FN_VOID_PTR_VAR.
10306         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10307         * doc/extend.texi (__builtin_prefetch): Update documentation:
10308         first argument is now const void ptr.
10309
10310 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10311
10312         * config/h8300/h8300-protos.h: Remove an unused prototype.
10313
10314 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
10315
10316         * toplev.c (lang_independent_init): Round up identifier size.
10317
10318 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10319
10320         * config.gcc: Revert previous change.
10321
10322 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
10323
10324         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10325
10326 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10327
10328         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10329         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
10330         other non-elf netbsd config frags.
10331         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10332         collect2 will does that.
10333         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10334         shared-lib frobbing will work.
10335
10336 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10337
10338         * config/h8300/h8300.h: Fix formatting.
10339         * config/h8300/h8300.md: Likewise.
10340
10341 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
10342
10343         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10344         the old, removed AAA_standards fix.
10345         * fixinc/fixincl.x: Rebuilt.
10346
10347 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
10348
10349         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10350         atexit call in crtbegin, hooked in after call to frame_dummy;
10351         register EH before registering __fini__start.
10352
10353 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
10354
10355         * config/rs6000/altivec.h: Remove spurious semicolons.
10356
10357 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10358
10359         * config/h8300/h8300.md: Replace dead bit extraction patterns
10360         with ones that work.
10361
10362 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10363
10364         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10365         if not STRICT_ALIGNMENT.
10366         * rtl.h (MEM_ALIGN): Likewise.
10367
10368 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10369
10370         * doc/invoke.texi (-fdump-translation-unit): Revert this
10371         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10372
10373 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10374
10375         * config/h8300/h8300.md (define_constants): New.
10376         (anonymous patterns) Use defined constants appropriately.
10377
10378 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10379
10380         * config/h8300/h8300.c (function_arg): Remove redundant code.
10381
10382 2002-01-26  Richard Henderson  <rth@redhat.com>
10383
10384         * sched-deps.c (reg_pending_uses_head): New.
10385         (reg_pending_barrier): Rename from reg_pending_sets_all.
10386         (find_insn_list): Don't mark inline.
10387         (find_insn_mem_list): Remove.
10388         (add_dependence_list, add_dependence_list_and_free): New.
10389         (flush_pending_lists): Replace only_write param with separate
10390         for_read and for_write parameters.  Update all callers.  Use
10391         add_dependence_list_and_free.
10392         (sched_analyze_1): Do not add reg dependencies here; just set
10393         the pending bits.  Use add_dependence_list.
10394         (sched_analyze_2): Likewise.
10395         (sched_analyze_insn): Replace schedule_barrier_found with
10396         reg_pending_barrier.  Add all dependencies for pending reg
10397         uses, sets, and clobbers.
10398         (sched_analyze): Don't add reg dependencies for calls, just
10399         set pending bits.  Use regs_invalidated_by_call.  Treat
10400         sched_before_next_call as a normal list, not a fake insn.
10401         (init_deps): No funny init for sched_before_next_call.
10402         (free_deps): Free pending mems lists.  Don't zero reg_last.
10403         (init_deps_global): Init reg_pending_uses.
10404         (finish_deps_global): Free it.
10405         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
10406         (find_insn_mem_list): Remove.
10407         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10408         (propagate_deps): Use them.  Zero temp mem lists.
10409
10410 2002-01-26  Richard Henderson  <rth@redhat.com>
10411
10412         * Makefile.in (CRTSTUFF_CFLAGS): New.
10413         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10414         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10415         crtstuff.c instead of alpha assembly version.
10416         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10417         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
10418         not FORCE_{INIT,FINI}_SECTION_ALIGN.
10419         (__do_global_dtors_aux): Mark used.
10420         (frame_dummy, __do_global_ctors_aux): Mark used.
10421         (fini_dummy, init_dummy): Remove.
10422
10423         * config/alpha/crtbegin.asm: Remove file.
10424         * config/alpha/crtend.asm: Remove file.
10425         * config/alpha/t-crtbe: Remove file.
10426         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10427         (LINK_EH_SPEC): New.
10428
10429         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10430         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
10431         calling constructors.
10432         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10433
10434         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10435         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10436         CRT_END_INIT_DUMMY hack.
10437         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10438         FORCE_{INIT,FINI}_SECTION_ALIGN.
10439
10440         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10441         FORCE_{INIT,FINI}_SECTION_ALIGN.
10442
10443         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10444         invocation sequence.
10445         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10446
10447         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10448         (FORCE_CODE_SECTION_ALIGN): New.
10449
10450 2002-01-26  Richard Henderson  <rth@redhat.com>
10451
10452         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10453
10454 2002-01-26  Richard Henderson  <rth@redhat.com>
10455
10456         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10457         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10458
10459 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10460
10461         * config/h8300/h8300.md: Remove bit extraction patterns that
10462         cannot be triggered.
10463         Restrict each bit extraction pattern to a variant on which the
10464         pattern is tested.
10465
10466 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10467
10468         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10469
10470 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10471
10472         * config/h8300/h8300.md: Remove bit test patterns that cannot
10473         be triggered.
10474         Restrict each bit test pattern to a variant on which the
10475         pattern is tested.
10476
10477 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10478
10479         * builtins.c (expand_builtin_strncat): Remove redundant check for
10480         INTEGER_CST.
10481
10482 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10483
10484         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10485         default setting.
10486         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10487         existing setting.
10488
10489 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10490
10491         * dbxout.c (dbxout_init): Use assemble_name rather than just
10492         stripping off the first character.
10493         (dbxout_source_file): Likewise.
10494
10495 2002-01-25  DJ Delorie  <dj@redhat.com>
10496
10497         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10498         using rtx_equal_p, not by comparing pointers.
10499
10500 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
10501
10502         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10503         for PIC_OFFSET_TABLE_REGNUM.
10504         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10505
10506 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10507
10508         * config.gcc (x86_64-*-freebsd*): New target.
10509         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10510         value.
10511         (i[34567]86-*-freebsd*): Don't include svr4.h.
10512         * config/i386/freebsd64.h: New file.
10513
10514 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
10515
10516         * config/alpha/x-vms (version): Make static.
10517
10518         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10519         in previous checkin.
10520
10521         * Makefile.in (install-headers-cp): New target.
10522         * config.gcc (alpha-dec-*vms*): Install headers with
10523         install-headers-cp
10524
10525 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10526
10527         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10528         avoid it's copies.
10529
10530 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10531
10532         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10533         of compare_tree_int.
10534         (expand_builtin_strncat): Likewise.
10535         * c-decl.c (finish_struct): Use tree_low_cst.
10536         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10537         * tree.c (compare_tree_int): Likewise.
10538
10539 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10540
10541         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10542         adjustments even if they are implemented by more than two insns.
10543
10544 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10545
10546         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10547         * df.h (struct ref): Kill B.
10548         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10549
10550         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10551         * flow.c (propagate_one_insn): Use it.
10552         (mark_used_regs): Handle NIL.
10553
10554 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10555
10556         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10557         to help folding.
10558
10559 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10560
10561         * rs6000.md (prefetch): Make address V4SI mode so that the address
10562         is restricted to legitimate form for instruction.
10563
10564 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10565
10566         * doc/install.texi (xtensa-*-elf): New target.
10567         (xtensa-*-linux*): New target.
10568         * doc/contrib.texi: Add myself.
10569
10570 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10571
10572         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10573         purpose register to hold an SImode (or smaller) value.
10574
10575 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10576
10577         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10578         registry only.
10579         * crtstuff.c: Likewise.
10580
10581 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10582
10583         * config/h8300/h8300.md (negation patterns): Tighten
10584         predicates to register_operand.
10585
10586 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10587
10588         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10589         mode, not Pmode.
10590
10591         * builtins.c (expand_builtin_prefetch): Same.
10592
10593 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10594
10595         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10596         modes.
10597
10598 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10599
10600         * config/h8300/h8300.c (print_operand): Remove support for
10601         operand character 'A'.
10602         * config/h8300/h8300.md (three anonymous patterns): Replace
10603         operand character 'A' with either 'T' or 'S'.
10604
10605 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10606
10607         * config/h8300/h8300.c (print_operand): Remove support for
10608         operand character 'U'.
10609
10610 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10611
10612         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10613
10614 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10615
10616         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10617         values to be assigned to the stack pointer.
10618
10619 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10620
10621         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10622         to const_double needs to be done right for big-endian systems.
10623
10624 2002-01-24  Jason Merrill  <jason@redhat.com>
10625
10626         PR c++/2432
10627         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10628         to can_throw_internal.
10629
10630 2002-01-23  Richard Henderson  <rth@redhat.com>
10631
10632         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10633         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10634
10635 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10636
10637         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10638         (symGOT2reg): Use them, then set as GOT value as unchanging.
10639         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10640         as a temporary, if possible.
10641         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10642         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10643
10644 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10645
10646         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10647         accept to accept 0x80 as operands[2].
10648
10649 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10650
10651         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10652
10653 2002-01-23  Richard Henderson  <rth@redhat.com>
10654
10655         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10656
10657 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10658
10659         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10660         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10661         an attribute.
10662
10663 2002-01-23  Richard Henderson  <rth@redhat.com>
10664
10665         * expr.c (move_by_pieces_1): Extend size before negation.
10666
10667         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10668         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10669         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10670         * config/m68k/t-m68kelf: Likewise.
10671
10672 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10673
10674         * config/xtensa/elf.h: New file.
10675         * config/xtensa/lib1funcs.asm: New file.
10676         * config/xtensa/lib2funcs.S: New file.
10677         * config/xtensa/linux.h: New file.
10678         * config/xtensa/t-xtensa: New file.
10679         * config/xtensa/xtensa-config.h: New file.
10680         * config/xtensa/xtensa-protos.h: New file.
10681         * config/xtensa/xtensa.c: New file.
10682         * config/xtensa/xtensa.h: New file.
10683         * config/xtensa/xtensa.md: New file.
10684         * config.gcc (xtensa-*-elf*): New target.
10685         (xtensa-*-linux*): New target.
10686         * cse.c (canon_hash): Compare rtx pointers instead of register
10687         numbers.  This is required for the Xtensa port.
10688         * integrate.c (copy_insn_list): Handle case where the static
10689         chain is in memory and the memory address has to be copied to
10690         a register.
10691         * doc/invoke.texi (Option Summary): Add Xtensa options.
10692         (Xtensa Options): New node.
10693         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10694
10695 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10696
10697         * diagnostic.c (internal_error): Do ICE suppression only
10698         when ENABLE_CHECKING is not defined.
10699
10700         * c-typeck.c (require_complete_type): Return error_mark_node
10701         if type is error_mark_node.
10702
10703 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10704
10705         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10706         -Os and issue a warning.
10707
10708 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10709
10710         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10711         current (lack of) need for host configuration by hand.
10712
10713         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10714         references.  Documentation of some target macros moved from
10715         hostconfig.texi to tm.texi.
10716
10717 2002-01-23  Will Cohen  <wcohen@redhat.com>
10718
10719         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10720         defined.
10721
10722 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10723
10724         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10725         operand[3].
10726
10727 2002-01-23  Jason Merrill  <jason@redhat.com>
10728
10729         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10730
10731         * function.c (assign_parms): Don't put args of inline functions
10732         into registers when not optimizing.
10733
10734 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10735
10736         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10737         (prologue_use): New pattern.
10738         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10739         preference to gen_rtx_USE.
10740         (thumb_expand_prologue): Use gen_prologue_use in preference to
10741         gen_rtx_USE.
10742         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10743         gen_rtx_USE.
10744
10745 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10746
10747         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10748
10749 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10750
10751         PR c/3504
10752         * doc/extend.texi: Correct documentation of __alignof__.
10753
10754 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10755
10756         * params.h: Rename arguments of DEFPARAM so that it will be
10757         recognized as a translation keyword.
10758
10759 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10760
10761         * extend.texi: Document altivec functions.
10762         Fix N-bit adjectives in X86 builtin documentation.
10763
10764 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10765
10766         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10767         auto_inc_dec values.
10768
10769 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10770
10771         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10772         after backslash.
10773         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10774
10775 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10776
10777         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10778
10779 2002-01-22  Richard Henderson  <rth@redhat.com>
10780
10781         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10782         copy_insn not copy_rtx.
10783
10784 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10785
10786         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10787         "nonzero" as that might add "1" bits.  Ensure "constop" is
10788         properly sign extened.
10789         (force_to_mode): Tweak for sign extended constop.
10790
10791 2002-01-22  Richard Henderson  <rth@redhat.com>
10792
10793         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10794         for_each_rtx instead of assuming we're already looking at the MEM.
10795         (split_small_symbolic_mem_operand): Likewise.
10796         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10797         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10798
10799 2002-01-22  Richard Henderson  <rth@redhat.com>
10800
10801         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10802         sequence number for the literal.
10803         (divmoddi_internal_er): Likewise.
10804
10805 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10806
10807         PR java/4972
10808         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10809         in LIBICONV variable.
10810         * configure: Regenerated.
10811
10812 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10813
10814         * dependence.c (build_def_use): Remove array_idx.
10815
10816         * dwarfout.c (last_filename): Remove.
10817         (output_compile_unit_die): Remove last_filename.
10818
10819 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10820             Richard Henderson  <rth@redhat.com>
10821
10822         PR opt/3640
10823         * fold-const.c (fold): Optimize unsigned comparisons against
10824         UINT_MAX (and similar unsigned constants).
10825
10826 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10827
10828         * Makefile.in (loop.o): Depend on OPTABS_H.
10829         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10830         against the predicate.
10831
10832         PR target/5379
10833         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10834         for the address operand.
10835
10836 2002-01-22  Richard Henderson  <rth@redhat.com>
10837
10838         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10839
10840 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10841
10842         PR other/5450
10843         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10844         preprocessor flags.
10845
10846 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10847
10848         * config.gcc (x86_64-*-netbsd*): New target.
10849         * config/i386/netbsd64.h: New file.
10850
10851 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10852
10853         * regrename.c (kill_value): Fix typo.
10854
10855 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10856
10857         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10858
10859         * config/rs6000/rs6000.h: Same.
10860
10861         * function.c (instantiate_virtual_regs): Remove
10862         STARTING_FRAME_PHASE.
10863         (assign_stack_local_1): Same.
10864         Calculate frame phase.
10865
10866 2002-01-22  Nick Clifton  <nickc@redhat.com>
10867
10868         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10869         variable declaration to outer scope in order to simplify
10870         future extensions.
10871         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10872         arm_hard_regno_mode_ok.
10873         * config/arm/arm-protos.h: Add a prototype for
10874         arm_hard_regno_mode_ok.
10875         * config/arm/arm.c (soft_df_operand): Remove now redundant
10876         check for DImode values using IP_REGNUM.
10877         (nonimmediate_soft_df_operand): Remove now redundant check for
10878         DImode values using IP_REGNUM.
10879         (arm_hard_regno_mode_ok): New function. New check: make sure
10880         that DImode values are not stored in IP_REGNUM.
10881
10882         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10883         note with a USE.
10884         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10885
10886 2002-01-22  Jason Merrill  <jason@redhat.com>
10887
10888         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10889         consistency if this COMPOUND_STMT is scoped.
10890
10891 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10892
10893         * predict.c: Fix formatting.
10894         * print-tree.c: Likewise.
10895         * protoize.c: Likewise.
10896         * real.h: Likewise.
10897         * rtl.h: Likewise.
10898         * sbitmap.h: Likewise.
10899         * scan.c: Likewise.
10900         * sched-deps.c: Likewise.
10901         * sched-vis.c: Likewise.
10902         * sdbout.c: Likewise.
10903         * sibcall.c: Likewise.
10904         * ssa.c: Likewise.
10905         * ssa-ccp.c: Likewise.
10906         * ssa-dce.c: Likewise.
10907         * stmt.c: Likewise.
10908         * stor-layout.c: Likewise.
10909         * system.h: Likewise.
10910
10911 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10912
10913         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10914         if fits in bounds of base type.
10915
10916         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10917         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10918         (add_bound_info, default): If can't find a context, make a
10919         SAVE_EXPR.
10920         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10921
10922 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10923
10924         * c-typeck.c (parser_build_binary_op): If result from
10925         build_binary_op is ERROR_MARK just return error_mark_node without
10926         further processing.
10927
10928 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10929
10930         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10931         Split a.out-specific bits into...
10932         * config/netbsd-aout.h: ...this.
10933         * config/netbsd-elf.h: New file.
10934         * config/alpha/netbsd-elf.h: Remove.
10935         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10936         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10937         (STARTFILE_SPEC): Remove redundant definition.
10938         (ENDFILE_SPEC): Likewise.
10939         (LINK_SPEC): Likewise.
10940         (CPP_SPEC): Likewise.
10941         (ASM_SPEC): Likewise.
10942         (LIB_SPEC): Likewise.
10943         (SWITCH_TAKES_ARG): Likewise.
10944         (TARGET_MEM_FUNCTIONS): Likewise.
10945         (CPP_PREDEFINES): Redefine.
10946         (ASM_FINAL_SPEC): Remove redefinition.
10947         (ASM_COMMENT_START): Redefine.
10948         (FUNCTION_PROFILER): Define.
10949         (TARGET_VERSION): Redefine.
10950         Comment and formatting cleanup.
10951         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10952         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10953         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10954         big- or little-endian.
10955         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10956         * config.gcc (*-*-netbsd*): Add definitions common to all
10957         NetBSD configs.
10958         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10959         gnu_ld definitions.  Add netbsd-elf.h to and remove
10960         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10961         tmake_file, and don't lose previous tmake_file contents.
10962         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10963         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10964         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10965         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10966         (mipsel-*-netbsd*): Rename this to...
10967         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10968         mips/little.h to tm_file for mips*el-*.
10969         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10970         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10971         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10972
10973 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10974
10975         * pa-protos.h (reg_before_reload_operand): New function prototype.
10976         * pa.c (reg_before_reload_operand): New function implementation.
10977         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10978         contraints to "*m".
10979
10980 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10981
10982         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10983
10984 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10985
10986         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10987         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10988         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10989         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10990         (ENDFILE_SPEC): Undefine.
10991         (STARTFILE_SPEC): Redefine for PA.
10992
10993 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10994
10995         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10996
10997 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10998
10999         * config.gcc: Add entries to supported PowerPC --with-cpu
11000         types.
11001
11002 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
11003
11004         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
11005         true for 64-bit mode only SSE registers in 32-bit mode.
11006
11007 2002-01-21  Kazu Hirata  <kazu@hxi.com>
11008
11009         * unwind-dw2.c: Fix formatting.
11010         * unwind-dw2-fde.c: Likewise.
11011         * unwind-dw2-fde.h: Likewise.
11012         * unwind-pe.h: Likewise.
11013         * varasm.c: Likewise.
11014         * varray.h: Likewise.
11015
11016 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
11017
11018         Remove workaround for register stack overwrite bug in mmix.
11019         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
11020         support for TARGET_REG_STACK_FILL_BUG.
11021         * config/mmix/mmix.h: Remove member has_call_without_parameters.
11022         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
11023         Delete.
11024         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
11025         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
11026         -mno-reg-stack-fill-bug-workaround.
11027         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
11028         machine member has_call_without_parameters.
11029         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
11030         -mreg-stack-fill-bug-workaround and
11031         -mno-reg-stack-fill-bug-workaround.
11032         (MMIX Options): Ditto.
11033
11034 2002-01-21  Kazu Hirata  <kazu@hxi.com>
11035
11036         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
11037         as appropriate.
11038         Remove redundant code.
11039
11040 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11041
11042         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
11043         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11044         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
11045         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
11046         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
11047         out target macro definitions and non-target-specific comments
11048         mostly taken from old versions of the manual.
11049
11050 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11051
11052         * config/h8300/h8300.h: Fix comment formatting.
11053         * config/ia64/aix.h: Likewise.
11054         * config/ia64/ia64-protos.h: Likewise.
11055         * config/ia64/ia64.c: Likewise.
11056         * config/ia64/ia64.h: Likewise.
11057         * config/ia64/ia64intrin.h: Likewise.
11058         * config/ia64/linux.h: Likewise.
11059         * config/ia64/unwind-aix.c: Likewise.
11060         * config/ia64/unwind-ia64.c: Likewise.
11061
11062 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11063
11064         * config/h8300/h8300.c: Revise comments about shift code.
11065
11066 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11067
11068         * config/h8300/h8300.c (function_arg): Update a comment.
11069
11070 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11071
11072         * config/h8300/h8300.md: Update the comments at the beginning
11073         of the file.
11074
11075 2002-01-20  Kazu Hirata  <kazu@hxi.com>
11076
11077         * config/i370/i370.c: Fix comment formatting.
11078         * config/i370/i370.h: Likewise.
11079         * config/i370/i370.md: Likewise.
11080         * config/i370/linux.h: Likewise.
11081
11082 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11083
11084         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
11085
11086         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
11087         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
11088         in incomplete case.
11089
11090 2002-01-20  Graham Stott  <grahams@redhat.com>
11091
11092         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
11093
11094 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11095
11096         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
11097
11098 2002-01-19  Tom Rix  <trix@redhat.com>
11099
11100         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
11101
11102 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
11103
11104         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
11105
11106         * function.c (assign_stack_local_1): Adjust x_frame_offset with
11107         STARTING_FRAME_PHASE.
11108         (STARTING_FRAME_PHASE): New.
11109         (instantiate_virtual_regs): Check saneness of
11110         STARTING_FRAME_PHASE.
11111
11112         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
11113
11114 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
11115
11116         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
11117
11118 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11119
11120         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
11121         be used for bootstrapping GCC 3.0.
11122
11123 2002-01-18  Kazu Hirata  <kazu@hxi.com>
11124
11125         * config/h8300/h8300.md: Fix an insn length.
11126
11127 2002-01-18  Kazu Hirata  <kazu@hxi.com>
11128
11129         * bitmap.h: Fix comment formatting.
11130         * combine.c: Likewise.
11131         * cppfiles.c: Likewise.
11132         * c-pragma.h: Likewise.
11133         * c-typeck.c: Likewise.
11134         * df.c: Likewise.
11135         * dwarf2out.c: Likewise.
11136         * function.c: Likewise.
11137         * gcc.c: Likewise.
11138         * genattrtab.c: Likewise.
11139         * gthr-win32.h: Likewise.
11140         * haifa-sched.c: Likewise.
11141         * predict.c: Likewise.
11142         * rtlanal.c: Likewise.
11143         * rtl.h: Likewise.
11144         * unwind-dw2-fde.h: Likewise.
11145         * unwind-pe.h: Likewise.
11146         * vmsdbgout.c: Likewise.
11147
11148 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11149
11150         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
11151         if type_required and passed decl.
11152
11153 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
11154
11155         * config.gcc (cpu_type): Include altivec.h in powerpc
11156         extra_headers.
11157         Same for darwin.
11158
11159         * config/rs6000/altivec.h: New.
11160
11161 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
11162
11163         * doc/install.texi (*-ibm-aix*): Update assembler and exception
11164         handling information.
11165         * doc/trouble.texi (Interoperation): Add libstdc++ information
11166         for AIX.
11167         (Misunderstandings): Add template instantiation and static template
11168         member information for AIX.
11169
11170 2002-01-17  Jason Merrill  <jason@redhat.com>
11171
11172         * dbxout.c (dbxout_type): Support const and volatile.
11173
11174         * except.c (add_partial_entry): Remove backwards compatibility code.
11175         (end_protect_partials): Likewise.
11176
11177 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
11178
11179         * config/ia64/ia64.md (prologue_use): New.
11180         * config/ia64/ia64.c (ia64_expand_prologue): Use
11181         gen_prologue_use instead of gen_rtx_USE.
11182         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
11183         as CODE_FOR_pred_rel_mutex.
11184         (ia64_sched_reorder2): Likewise.
11185
11186 2002-01-16  Eric Christopher  <echristo@redhat.com>
11187
11188         * config/mips/r3900.h: Reformat.
11189         (SUBTARGET_CPP_SIZE_SPEC): Remove.
11190         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
11191         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
11192         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
11193         * config/mips/t-elf: Remove mips3 multilib.
11194
11195 2002-01-16  H.J. Lu <hjl@gnu.org>
11196
11197         * config/mips/linux.h: Include "mips/abi64.h".
11198
11199 2002-01-16  H.J. Lu <hjl@gnu.org>
11200
11201         * config/mips/t-linux: New.
11202
11203         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
11204
11205         * config/mips/linux.h: Don't include "gofast.h".
11206         (INIT_SUBTARGET_OPTABS): Removed.
11207
11208 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11209
11210         * config/h8300/h8300-protos.h: Replace emit_a_shift with
11211         output_a_shift.
11212         * config/h8300/h8300.c: Likewise.
11213         * config/h8300/h8300.md: Likewise.
11214
11215 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11216
11217         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
11218         spaces after an opcode name.
11219         (pushqi1_h8300hs): Likewise.
11220         (pushhi1_h8300hs): Likewise.
11221
11222 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11223
11224         * doc/extend.texi: Replace "option" with "attribute"
11225         appropriately.
11226
11227 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11228
11229         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
11230         (and:DI () (const_int -8)).
11231         (split_small_symbolic_mem_operand): Split
11232         (mem (and:DI () (const_int -8)).
11233
11234 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11235
11236         PR target/5309:
11237         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
11238         same way as TYPE_IMUL.
11239         (ultrasparc_sched_reorder): Likewise.
11240         * config/sparc/sparc.md (type): Add comment to update
11241         ultrasparc_sched_reorder when making changes.
11242
11243 2002-01-16  Kazu Hirata  <kazu@hxi.com>
11244
11245         * doc/invoke.texi: Change the dump file name of block
11246         reordering pass from 28.bbro to 29.bbro.
11247         Mention -dk option.
11248
11249 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11250
11251         * i386.md (minsf splitter): Fix pasto.
11252
11253 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
11254
11255         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
11256         to frame pointer initialisation instruction.
11257         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
11258         initialisation instruction.
11259         (soft_df_operand): Do not accept the IP register.
11260         (nonimmediate_soft_df_operand): Do not accept the IP register.
11261
11262 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
11263
11264         PR target/5357:
11265         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
11266         MASK_V8 being both set.
11267
11268 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
11269
11270         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11271         insn for GOT register; add REG_MAYBE_DEAD notes instead.
11272         config/s390/s390.md (call, call_value): Add GOT register to
11273         CALL_INSN_FUNCTION_USAGE where needed.
11274         (call_exp, call_value_exp): New.
11275
11276 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
11277
11278         * config/arm/arm.c: General formatting tidy up.
11279
11280 2002-01-16  Graham Stott  <grahams@redhat.com>
11281
11282         * calls.c (try_to_integrate): Use "(size_t)" intermediate
11283         cast and when casting an integer literal to "rtx" pointer.
11284         (expand_call): Likewise.
11285         * flow.c (try_pre_increment): Likewise.
11286         (find_use_as_address): Likewise.
11287         * integrate.c (expand_iline_function): Likewise.
11288         * regmove.c (try_auto_increment): Likewise.
11289
11290 2002-01-16  Graham Stott  <grahams@redhat.com>
11291
11292         * sched-rgn.c (passed): Use sbitmap_free.
11293         (header): Likewise.
11294         (inner): Likewise.
11295         (in_queue): Likewise.
11296         (in_stack): Likewise.
11297
11298 2002-01-15  Eric Christopher  <echristo@redhat.com>
11299
11300         * flow.c (propagate_one_insn): Change to use fatal_insn.
11301
11302 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11303
11304         * expmed.c (extract_fixed_bit_field): Remove unused code.
11305         * system.h: Poison SLOW_ZERO_EXTEND.
11306         * doc/tm.texi: Remove.
11307         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11308         * config/arm/arm.h: Likewise.
11309         * config/avr/avr.h: Likewise.
11310         * config/clipper/clipper.h: Likewise.
11311         * config/convex/convex.h: Likewise.
11312         * config/d30v/d30v.h: Likewise.
11313         * config/dsp16xx/dsp16xx.h: Likewise.
11314         * config/elxsi/elxsi.h: Likewise.
11315         * config/fr30/fr30.h: Likewise.
11316         * config/h8300/h8300.h: Likewise.
11317         * config/i370/i370.h: Likewise.
11318         * config/i386/i386.h: Likewise.
11319         * config/m68k/m68k.h: Likewise.
11320         * config/mips/mips.h: Likewise.
11321         * config/ns32k/ns32k.h: Likewise.
11322         * config/pdp11/pdp11.h: Likewise.
11323         * config/pj/pj.h: Likewise.
11324         * config/s390/s390.h: Likewise.
11325         * config/sh/sh.h: Likewise.
11326         * config/stormy16/stormy16.h: Likewise.
11327         * config/v850/v850.h: Likewise.
11328         * config/vax/vax.h: Likewise.
11329         * config/we32k/we32k.h: Likewise.
11330
11331 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11332
11333         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11334         (altivec_lvsl): Change constraint to b.
11335         (altivec_lvsr): Same.
11336         (altivec_lvebx): Same.
11337         (altivec_lvehx): Same.
11338         (altivec_lvewx): Same.
11339         (altivec_lvxl): Same.
11340         (altivec_lvx): Same.
11341         (altivec_stvx): Add parallel.
11342         (altivec_stvxl): Same.
11343         (altivec_stvehx): Same.
11344         (altivec_stvebx): Same.
11345         (altivec_stvebx): Same.
11346
11347 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11348
11349         * config.gcc: Change altivec.h to altivec-defs.h.
11350
11351         * config/rs6000/altivec.h: Delete.
11352
11353         * config/rs6000/altivec-defs.h: Add.
11354
11355 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11356
11357         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11358         and UMOD modes.
11359
11360         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11361         less than or equal to eight bytes.
11362
11363         * vax.md (andsi3): Remove constraints and change SET destination
11364         operand type to nonimmediate_operand.
11365         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
11366         when it is a CONST_INT.
11367
11368 2002-01-15  Jason Merrill  <jason@redhat.com>
11369
11370         * c-common.def (FILE_STMT): New code.
11371         * c-common.c (statement_code_p): It's a statement.
11372         * c-common.h (stmt_tree_s): Add x_last_filename.
11373         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11374         (last_expr_filename): New macro.
11375         * c-semantics.c (begin_stmt_tree): Initialize it.
11376         (add_stmt): If the filename changed, also insert a
11377         FILE_STMT.
11378         (expand_stmt): Handle seeing one.
11379
11380 2002-01-15  Eric Christopher  <echristo@redhat.com>
11381
11382         * flow.c (propagate_one_insn): Add error message and print out
11383         insn for debugging.
11384
11385 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11386
11387         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11388         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11389         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11390         TRAMPOLINE_ALIGNMENT.
11391         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
11392         to be in bits.
11393         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11394         PCC_BITFIELD_TYPE_MATTERS.
11395         * config/interix.h (STDC_VALUE): Remove.  Use
11396         STDC_0_IN_SYSTEM_HEADERS.
11397         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11398         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11399         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11400
11401 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11402
11403         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11404         not work on this platform currently.
11405
11406 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11407
11408         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11409         readonly_warning in _().
11410
11411 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
11412
11413         * gcc.c (delete_if_ordinary): Backout previous change.
11414
11415 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11416
11417         * config/h8300/h8300.c (print_operand): Remove support for
11418         unused operand characters.
11419
11420         * read-rtl.c: Fix formatting.
11421         * real.c: Likewise.
11422         * recog.c: Likewise.
11423         * regclass.c: Likewise.
11424         * regmove.c: Likewise.
11425         * reg-stack.c: Likewise.
11426         * reload1.c: Likewise.
11427         * rtlanal.c: Likewise.
11428
11429 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11430
11431         * config/i386/i386.c: Fix formatting.
11432
11433 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
11434
11435         * c-typeck.c (process_init_element): Don't save_expr
11436         COMPOUND_LITERAL_EXPR if just its initializer will be used.
11437
11438 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
11439
11440         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11441         emit optional traceback table if optimize_size or TARGET_ELF.
11442         * config/rs6000/rs6000.md (prefetch): New.
11443
11444 2002-01-15  Andreas Jaeger  <aj@suse.de>
11445
11446         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11447
11448 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11449
11450         * mips-tfile.c: Fix formatting.
11451
11452 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11453
11454         * unroll.c (final_reg_note_copy): Fix previous commit.
11455
11456 2002-01-14  Kazu Hirata  <kazu@hxi.com>
11457
11458         * config/h8300/h8300-protos.h: Remove the prototype for
11459         eq_operator.
11460         * config/h8300/h8300.c (eq_operator): Remove.
11461
11462 2002-01-14  Richard Henderson  <rth@redhat.com>
11463
11464         * config/i386/i386.md (prefetch): Tidy.
11465         (prefetch_3dnow): Fix locality operand.
11466
11467 2002-01-14  Richard Henderson  <rth@redhat.com>
11468
11469         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11470         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11471
11472 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
11473
11474         * reload1.c (reload_combine): Pass reg_sum replacement through
11475         copy_rtx in loop performing multiple changes.
11476
11477 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
11478
11479         * except.c (remove_unreachable_regions): New.
11480         (free_eh_status): Clear exception_handler_labels.
11481         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11482         (find_exception_handler_labels): Don't add the same label more than
11483         once.
11484         (remove_exception_handler_label): Don't die if
11485         find_exception_handler_labels hasn't been called for the current
11486         function yet.
11487
11488 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
11489
11490         * toplev.c (rest_of_compilation): Rebuild jump labels after
11491         gcse.
11492
11493 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
11494
11495         * doc/extend.texi: Move documentation of X86 built-in functions
11496         here.
11497         * doc/invoke.texi: From here.
11498         * doc/sourcebuild.texi: Document location of documentation for
11499         machine built-in functions.
11500
11501 2002-01-13  Christopher Faylor  <cgf@redhat.com>
11502
11503         * cppfiles.c (TEST_THRESHOLD): New macro.
11504         (SHOULD_MMAP): Ditto.
11505         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11506         be used.
11507
11508 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11509
11510         * unroll.c (final_reg_note_copy): Properly handle
11511         REG_LABEL
11512         (unroll_loops): Fix LOOP_CONDITION heuristics.
11513
11514 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
11515
11516         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11517         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11518
11519 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11520
11521         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11522         threaded loop.
11523
11524 2002-01-14  Tom Rix  <trix@redhat.com>
11525
11526         * config/rs6000/rs6000.md: Fix typo with sradi.
11527
11528 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11529
11530         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11531         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11532         (clrstrdi, clrstrsi): Adapt callers.
11533
11534         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11535
11536         (movti splitter): Never use register 0 as base register.
11537
11538 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11539
11540         * combine.c (simplify_shift_const): Always generate new rtx
11541         for shift expression instead of reusing given expression.
11542
11543 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11544
11545         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11546         alpha_legitimize_address unless mode is Pmode.
11547
11548 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11549
11550         * doc/md.texi (Modifiers): Document the '*' constraint for the
11551         user.
11552
11553         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11554         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11555         for xstormy16 too.
11556
11557 2002-01-13  Richard Henderson  <rth@redhat.com>
11558
11559         * reload.c (find_reloads): Use a hard reg destination as reload reg
11560         for an input reload of the source.
11561
11562 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11563
11564         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11565         more generic.
11566
11567 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11568
11569         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11570         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11571
11572         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11573
11574 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11575
11576         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11577
11578 2002-01-12  Tom Rix  <trix@redhat.com>
11579
11580         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11581         TARGET_POWERPC64.
11582
11583 2002-01-12  Richard Henderson  <rth@redhat.com>
11584
11585         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11586
11587         * doc/invoke.texi: Update Alpha options.
11588
11589         * doc/invoke.texi: Update i386 built-in function lists.
11590
11591 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11592
11593         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11594         referencing outside.
11595
11596 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11597
11598         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11599         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11600         offsets, and change line folding.
11601         * optabs.c (expand_binop): Remove warnings.
11602         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11603
11604 2002-01-12  Graham Stott <grahams@redhat.com>
11605
11606         * attribs.c (handle_deprecated_attribute): constify WHAT.
11607         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11608         dangling else warning and constify WHAT.
11609         * except.h (struct function, struct inline_remap): Move
11610         struct tag forward defs before all prototypes.
11611         (duplicate_eh_regions): Whitespace.
11612
11613 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11614
11615         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11616         MODE_BASE_REG_CLASS.
11617         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11618
11619 2002-01-12  Richard Henderson  <rth@redhat.com>
11620
11621         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11622         (ix86_expand_vector_move): New.
11623         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11624         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11625         Remove old prefetch builtins.  Special case the logicals removed above.
11626         (ix86_expand_builtin): Likewise.
11627         (safe_vector_operand): Use V4SFmode, not TImode.
11628         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11629         (ix86_expand_timode_binop_builtin): New.
11630         * config/i386/i386-protos.h: Update.
11631         * config/i386/i386.h (enum ix86_builtins): Update.
11632         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11633         Use ix86_expand_vector_move in vector move expanders.
11634         (movti_internal, movti_rex64): Add xorps alternative.
11635         (sse_clrv4sf): Rename and adjust from sse_clrti.
11636         (prefetch): Don't work so hard.
11637         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11638         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11639         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11640
11641 2002-01-11  Richard Henderson  <rth@redhat.com>
11642
11643         * config/i386/mmintrin.h: New file.
11644         * config/i386/xmmintrin.h: New file.
11645         * config.gcc (i?86-*-*): Add extra_headers.
11646         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11647         truncation codes.
11648         (simplify_binary_operation): Handle saturating arithmetic codes.
11649         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11650         not the lowpart subreg.
11651         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11652         on error.
11653         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11654
11655 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11656
11657         * conflict.c (conflict_graph_compute): Free regsets when finished.
11658         * ssa.c (compute_coalesced_reg_partition): Likewise.
11659
11660 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11661
11662         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11663         every where we allocate a register.
11664
11665 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11666
11667         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11668         * lcm.c (compute_earliest, compute_farthest): Likewise.
11669
11670 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11671
11672         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11673
11674 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11675
11676         * doc/rtl.texi (Insns): Fix 2 typos.
11677
11678 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11679
11680         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11681         options.  Use @table @gcctabopt for MMIX options.  Add index
11682         entries for MMIX options.  Start new paragraph with first
11683         heading of the machine-dependent options.
11684
11685 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11686
11687         PR other/5299
11688         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11689         * combine.c (force_to_mode): Same.
11690         * reload1.c (clear_reload_reg_in_use): Same.
11691
11692 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11693
11694         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11695         and 'subtargets'.
11696
11697 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11698             Brad Lucier <lucier@math.purdue.edu>
11699
11700         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11701         mcpu.
11702
11703 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11704
11705         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11706         Protect with IN_LIBGCC.
11707         (LINK_EH_SPEC): Add required trailing space.
11708
11709 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11710
11711         * c-tree.h: Move function declarations so that they are listed
11712         under the filename which contains them.
11713         (check_identifier, finish_decl_top_level,
11714         lookup_name_current_level_global, shadow_record_fields): Remove.
11715
11716 2002-01-11  Andreas Jaeger  <aj@suse.de>
11717
11718         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11719         march.
11720
11721 2002-01-10  Richard Henderson  <rth@redhat.com>
11722
11723         * config/alpha/alpha.c (print_operand): Add 'J'.
11724         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11725         new operand with the sequence number for the lituse.  When splitting
11726         the insns, use gen_movdi_er_high_g and generate a sequence number.
11727         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11728
11729 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11730
11731         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11732         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11733         stvxl.
11734         (altivec_expand_builtin): Same.
11735         (altivec_expand_stv_builtin): New.
11736
11737         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11738
11739         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11740         ("altivec_lvehx"): New.
11741         ("altivec_lvewx"): New.
11742         ("altivec_lvxl"): New.
11743         ("altivec_lvx"): New.
11744         ("altivec_stvx"): New.
11745         ("altivec_stvebx"): New.
11746         ("altivec_stvehx"): New.
11747         ("altivec_stvewx"): New.
11748         ("altivec_stvxl"): New.
11749
11750 2002-01-10  Richard Henderson  <rth@redhat.com>
11751
11752         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11753         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11754         care not to delete instructions twice.
11755
11756 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11757
11758         * toplev.c: Don't declare environ (it's not used anywhere).
11759         * configure.in: Don't check for declaration of environ.
11760         * config/i386/xm-mingw32.h: Don't #define environ.
11761         * config.in, configure: Regenerate.
11762
11763 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11764
11765         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11766         * configure: Regenerate.
11767
11768         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11769         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11770         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11771         alpha/xm-vms.h.
11772         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11773         LIMITS_H_TEST here, not in m68k/x-next.
11774         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11775         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11776
11777         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11778         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11779         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11780
11781         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11782         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11783         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11784         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11785         replacement of quadlib.asm with quadlib.c.
11786
11787         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11788         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11789         config/rs6000/xm-beos.h: Delete file.
11790
11791         * config.gcc: Update to match above changes.
11792
11793 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11794
11795         * config/h8300/h8300.h: Fix comment typos.
11796         * config/h8300/h8300.md: Likewise.
11797         * config/h8300/lib1funcs.asm: Likewise.
11798
11799 2002-01-10  Dale Johannesen  <dalej@apple.com>
11800
11801         PR optimization/5269
11802         * unroll.c (precondition_loop_p): Make *increment be the correct
11803         sign when n_iterations known, to avoid confusing caller.
11804
11805 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11806
11807         * doc/extend.texi (deprecated): Fix a typo.
11808
11809 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11810
11811         * basic-block.h (update_br_prob_note): Declare.
11812         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11813         (try_forward_edges): Care negative frequencies and update note.
11814         (outgoing_edges_match): Tweek conditional merging heuristics.
11815         (try_crossjump_to_edge): use update_br_prob_note.
11816         * cfglayout.c (fixup_reorder_chain): Likewise.
11817         * cfrtl.c (update_br_prob_note): New.
11818         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11819
11820         * i386.c (ix86_decompose_address): Return -1 if address contains
11821         shift.
11822         (legitimate_address_p): Require ix86_decompose_address to return 1.
11823
11824         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11825         (cprop_insn): Likewise.
11826
11827 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11828
11829         * toplev.c: Fix formatting.
11830         * tree.c: Likewise.
11831         * tree-dump.c: Likewise.
11832         * unroll.c: Likewise.
11833         * unwind-dw2.c: Likewise.
11834         * unwind-dw2-fde.c: Likewise.
11835         * unwind-dw2-fde-glibc.c: Likewise.
11836         * unwind-sjlj.c: Likewise.
11837
11838 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11839
11840         * doc/invoke.texi: Document PDP-11 options.
11841
11842 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11843
11844         * config/h8300/h8300.h: Fix formatting.
11845
11846 2002-01-10  Ira Ruben   <ira@apple.com>
11847
11848         Add __attribute__ ((deprecated)).
11849         * extend.texi: Document __attribute__ ((deprecated)).
11850         * invoke.texi: Document -Wno-deprecated-declarations.
11851         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11852         * testsuite/gcc.dg/deprecated.c: New C test.
11853         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11854         (c_common_attribute_table): Add "deprecated" entry.
11855         (handle_deprecated_attribute): New function.
11856         * c-decl.c (deprecated_states): New enum.
11857         deprecated_state: State of "deprecated" handling.
11858         (start_decl): Set deprecated_state based on attributes.
11859         (grokdeclarator): Test for deprecated uses, propagate attribute.
11860         * c-typeck.c (build_component_ref): Test for deprecated fields.
11861         (build_external_ref): Test for deprecated primaries.
11862         * diagnostic.c (warn_deprecated_use) New function to issue
11863         warnings about __attribute__ ((depricated)) references.
11864         * flags.h (warn_deprecated_decl): Extern declared for
11865         -W[no-]deprecated-declarations option.
11866         * print-tree.c (print_node): Show deprecated flag status.
11867         * toplev.c (warn_deprecated_decl): Defined.
11868         (W_options): Added "deprecated-declaration".
11869         * toplev.h (warn_deprecated_use): Extern declared.
11870         * tree.h (struct tree_common): Define deprecated_flag.
11871         (TREE_DEPRECATED): New macro to access flag.
11872         * cp/call.c (build_call): Test for deprecated calls.
11873         * cp/class.c (add_implicitly_declared_members): Set global
11874         flag to tell grokdeclarator to not issue deprecated warnings.
11875         * cp/cp-tree.h: Add extern for adding_implicit_members.
11876         * cp/decl.c (deprecated_states): New enum.
11877         (start_decl): Set deprecated_state based on attributes.
11878         (grokdeclarator): Test for deprecated uses, propagate attribute.
11879         * cp/lex.c (do_identifier): Test for deprecated primaries.
11880         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11881
11882 2002-01-10  Ira Ruben   <ira@apple.com>
11883
11884         Fix to assign attributes to inline member functions.
11885         * cp/decl.c (start_method): Handle attrlist.
11886
11887 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11888
11889         * combine.c (expand_field_assignment): Use subreg_lsb().
11890
11891 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11892
11893         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11894         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11895         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11896         Recurse for any operand of AND as long as constant is non-zero.
11897
11898 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11899
11900         * config/h8300/h8300.md: Remove constraints from expanders.
11901
11902 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11903
11904         * varasm.c: Fix formatting.
11905         * varray.c: Likewise.
11906         * vmsdbgout.c: Likewise.
11907         * xcoffout.c: Likewise.
11908
11909 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11910
11911         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11912         update edge probabilities to match.
11913
11914 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11915
11916         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11917         dependencies.
11918         * doc/languages.texi, doc/sourcebuild.texi: New files.
11919         * doc/configfiles.texi: Make a subsubsection.  Update.
11920         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11921         instructions for building GCC.
11922         * doc/makefile.texi: Make a subsection.
11923         * doc/gccint.texi: Update.
11924
11925 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11926
11927         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11928
11929 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11930
11931         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11932
11933 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11934
11935         * optabs.c (expand_fix): Look for wider integer modes first.
11936
11937         * i386.md (mov?f): Avoid the fake const double trick for medium
11938         memory model.
11939         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11940         (fop_df_4): Disable for SSE compilation.
11941
11942 2002-01-10  Graham Stott  <grahams@redhat.com>
11943
11944         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11945         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11946
11947 2002-01-10  Richard Henderson  <rth@redhat.com>
11948
11949         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11950
11951 2002-01-10  Richard Henderson  <rth@redhat.com>
11952
11953         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11954         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11955
11956 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11957
11958         * combine.c (can_combine_p): Fix a comment typo.
11959
11960 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11961
11962         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11963         empty list correctly.  Change loop index $t to $f for
11964         consistency with rest of Makefile.
11965
11966 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11967
11968         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11969         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11970
11971         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11972         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11973         (altivec_init_builtins): Same.
11974         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11975         (altivec_expand_binop_builtin): Same.
11976         (altivec_expand_ternop_builtin): Same.
11977         (bdesc_dst): New.
11978
11979         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11980         ("altivec_vctuxs"): Fix typo.
11981         ("altivec_vnmsubfp"): Same.
11982         ("altivec_dssall"): New.
11983         ("altivec_mfvscr"): New.
11984         ("altivec_dss"): New.
11985         ("altivec_lvsl"): New.
11986         ("altivec_lvsr"): New.
11987         ("altivec_dstt"): New.
11988         ("altivec_dstst"): New.
11989         ("altivec_dststt"): New.
11990         ("altivec_dst"): New.
11991
11992         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11993         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11994
11995 2002-01-09  Richard Henderson  <rth@redhat.com>
11996
11997         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11998
11999 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
12000
12001         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
12002         function.
12003         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
12004         prototype.
12005         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
12006
12007 2002-01-09  Kazu Hirata  <kazu@hxi.com>
12008
12009         * read-rtl.c: Fix formatting.
12010         * real.c: Likewise.
12011         * regclass.c: Likewise.
12012         * regrename.c: Likewise.
12013         * reg-stack.c: Likewise.
12014         * reload1.c: Likewise.
12015         * reload.c: Likewise.
12016         * rtl.c: Likewise.
12017
12018 2002-01-09  Kazu Hirata  <kazu@hxi.com>
12019
12020         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
12021         to extract items in the expr_list chain.
12022
12023 2002-01-09  Richard Henderson  <rth@redhat.com>
12024
12025         * config/vax/vax.c (vax_rtx_cost): Never abort.
12026
12027         * config/vax/vax.h (REAL_ARITHMETIC): Define.
12028
12029 2002-01-09  Jan Hubicka  <jh@suse.cz>
12030
12031         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
12032
12033 2002-01-09  Richard Henderson  <rth@redhat.com>
12034
12035         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
12036         Unify code from various alternatives.
12037
12038 2002-01-09  Richard Henderson  <rth@redhat.com>
12039
12040         * regrename.c (copy_value): Ignore the copy if the source register
12041         is present in the value chain with a narrower mode.
12042
12043 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
12044
12045         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
12046         for the c4x target. Also improve layout.
12047
12048 2002-01-09  Richard Henderson  <rth@redhat.com>
12049
12050         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
12051         * config/m32r/m32r.md (and ior xor splitters): Swap operands
12052         to match insn patterns.
12053
12054 2002-01-09  Richard Henderson  <rth@redhat.com>
12055
12056         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
12057         (copyprop_hardreg_forward_1): Likewise.
12058
12059 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12060
12061         * pa.md (decrement_and_branch_until_zero): Change predicate for
12062         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
12063
12064 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12065
12066         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
12067         gets undefined. For Darwin.
12068
12069 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12070
12071         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
12072
12073 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12074
12075         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
12076
12077 2002-01-08  Richard Henderson  <rth@redhat.com>
12078
12079         * regrename.c (copy_value): Ignore overlapping copies.
12080
12081 2002-01-08  Richard Henderson  <rth@redhat.com>
12082
12083         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
12084         as needed to avoid shared structure.
12085
12086 2002-01-08  Kazu Hirata  <kazu@hxi.com>
12087
12088         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
12089         H8/300H and H8/S.
12090
12091 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12092
12093         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
12094         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
12095         documentation of obsolete macros.
12096         * system.h: Poison these macros.
12097         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
12098         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
12099         config/c4x/c4x.h, config/clipper/clipper.h,
12100         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
12101         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
12102         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
12103         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
12104         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12105         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12106         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12107         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
12108         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
12109         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12110         config/sparc/sparc.h, config/stormy16/stormy16.h,
12111         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
12112         definitions and commented out definitions of obsolete macros.
12113         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
12114         of MAX_INT_TYPE_SIZE.
12115
12116 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
12117
12118         * config/s390/s390.c (s390_preferred_reload_class): Never
12119         return ADDR_REGS if it isn't a subset of the given class.
12120         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
12121         FP_REGS, but all superclasses as well.
12122
12123         * config/s390/s390.c (s390_function_profiler): Fix thinko.
12124
12125         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
12126         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
12127         must not be a const_int.
12128
12129 2002-01-08  Richard Henderson  <rth@redhat.com>
12130
12131         * Makefile.in (toplev.o): Depend on options.h.
12132         (gcc.o): Depend on specs.h.
12133
12134 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
12135
12136         * expr.c (store_expr): Convert VOIDmode constants back to target's
12137         mode.
12138
12139 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12140
12141         * doc/invoke.texi: Markup gcc as @command.  Refer to
12142         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
12143         of http://gcc.gnu.org/thanks.html.
12144
12145 2002-01-08  Dale Johannesen  <dalej@apple.com>
12146
12147         * config/rs6000/rs6000.md: Add missing int register
12148         target case to movdf_low.
12149
12150 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
12151
12152         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
12153         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
12154         (cppinit.o): Depend on except.h.
12155         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
12156         s-specs): New rules.
12157
12158         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
12159         Don't create specs.h/options.h/gencheck.h here.  Remove
12160         unnecessary variable settings from last argument of AC_OUTPUT.
12161         * config.in, configure: Regenerate.
12162         * intl.c: Hardcode package name as "gcc".
12163
12164         * cppinit.c: Include except.h.
12165         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
12166         appropriate.
12167         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
12168         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
12169         (!)USING_SJLJ_EXCEPTIONS.
12170         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
12171
12172 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12173
12174         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
12175         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
12176         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
12177         documentation of obsolete macros.
12178         * system.h: Poison these macros.
12179         * config/d30v/d30v.h, config/ns32k/encore.h,
12180         config/stormy16/stormy16.h: Remove definitions and commented out
12181         definitions of obsolete macros.
12182
12183 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
12184
12185         * objc/objc-act.c (handle_class_ref): Mark the declaration of
12186         %sobjc_class_ref_%s as used - to prevent unwanted compiler
12187         warnings.
12188
12189 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
12190
12191         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
12192         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
12193         to insn adjusting stack/frame pointer.
12194         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
12195         accept operands that cause the insn to be non-splittable.
12196
12197 2002-01-08  Graham Stott  <grahams@redhat.com>
12198
12199         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
12200         (C_TYPE_FIELDS_VOLATILE): Likewise.
12201         (C_TYPE_BEING_DEFINED): Likewise.
12202         (C_IS_RESERVED_WORD): Likewise.
12203         (C_TYPE_VARIABLE_SIZE): Likewise.
12204         (C_DECL_VARIABLE_SIZE): Likewise.
12205         (C_MISSING_PROTOTYPE_WARNED): Likewise.
12206         (C_SET_EXP_ORIGINAL_CODE): Likewise.
12207         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
12208         parenthesis.
12209         (C_DECL_ANTICIPATED): Likewise.
12210         (c_build_type_variant): Add parenthesis.
12211
12212 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
12213
12214         * gcc.c (option_map): Remove --version.
12215         (process_command): Handle -fversion following the GNU Coding
12216         Standards.  Partially addresses PR other/704.
12217
12218 2002-01-08  Graham Stott  <grahams@redhat.com>
12219
12220         * combine.c (combine_instructions): Fix typo.
12221
12222 2002-01-08  Graham Stott  <grahams@redhat.com>
12223
12224         * debug.h: Use "tree" and "rtx" throughout.
12225
12226         * debug.c: Likewise.
12227
12228 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
12229
12230         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
12231         constant pool, use the pool's version of the symbol instead.
12232
12233 2002-01-07  Richard Henderson  <rth@redhat.com>
12234
12235         * regrename.c (find_oldest_value_reg): Ignore the value chain if
12236         the original register was copied in a mode with a fewer number of
12237         hard registers than the desired mode.
12238         (copyprop_hardreg_forward_1): Likewise.
12239         (debug_value_data): Fix loop test.
12240         * toplev.c (parse_options_and_default_flags): Reenable
12241         -fcprop-registers at -O1.
12242
12243 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12244
12245         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
12246         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
12247
12248         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
12249         predicates.
12250
12251         * config/rs6000/rs6000.md: Add altivec predicate patterns.
12252
12253 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12254
12255         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
12256         (pa_output_function_prologue): Output local label at the beginning of
12257         the prologue when profiling.
12258         (hppa_profile_hook): Use the local label rather than the function label.
12259         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
12260
12261 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12262
12263         * config/rs6000/rs6000.c (print_operand): Remove extra space.
12264         (altivec_expand_unop_builtin): Fix thinko.
12265         (altivec_expand_binop_builtin): Same.
12266         (altivec_expand_ternop_builtin): Same.
12267         (altivec_expand_builtin): Same.
12268
12269 2002-01-07  Richard Henderson  <rth@redhat.com>
12270
12271         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12272
12273 2002-01-07  Jason Merrill  <jason@redhat.com>
12274
12275         * unwind-dw2.c (execute_cfa_program): Use < again.
12276
12277 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12278
12279         * predict.c (combine_predictions_for_insn): Avoid division by zero.
12280
12281 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12282
12283         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12284         Don't allow -1 - x -> ~x simplifications in the first pass.
12285
12286 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12287
12288         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12289         arguments.
12290         (altivec_expand_binop_builtin): Same.
12291         (altivec_expand_unop_builtin): Same.
12292         (print_operand): Fix typo.
12293         (bdesc_1arg): Add vupk* variants.
12294
12295         * rs6000.h (rs6000_builtins): Add vupk* enums.
12296
12297         * rs6000.md: Add altivec_vupk* variants.
12298
12299 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
12300
12301         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12302         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12303         and last update dates.
12304
12305 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
12306
12307         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12308
12309 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12310
12311         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12312         * config/avr/avr.h (CPP_SPEC): Likewise.
12313         (LINK_SPEC): Likewise.
12314         (CRT_BINUTILS_SPECS): Likewise.
12315         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12316         * doc/invoke.texi (AVR Options): Document them.
12317
12318 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
12319
12320         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12321         LABEL_NUSES.
12322
12323 2002-01-07  Graham Stott  <grahams@redhat.com>
12324
12325         * config/i386/i386.h: Update copyright date.
12326         (HALF_PIC_PTR): Add parenthesis.
12327         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12328         (CONSTANT_ALIGNMENT): Add parenthesis.
12329         (DATA_ALIGNMENT): Likewise.
12330         (LOCAL_ALIGNMENT): Likewise.
12331         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12332         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12333         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12334         (HARD_REGNO_NREGS): Add paranethesis.
12335         (VALID_SSE_REG_MODE): Whitespace.
12336         (VALID_MMX_REG_MODE): Whitespace.
12337         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12338         (ix86_hard_regno_mode_ok): Add parenthesis.
12339         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12340         (RETURN_IN_MEMORY): Whitespace.
12341         (N_REG_CLASSES): Add parenthesis.
12342         (INTEGER_CLASS_P): Add parenthesis and wrap.
12343         (FLOAT_CLASS_P): Likewise.
12344         (SSE_CLASS_P): Likewise.
12345         (MMX_CLASS_P): Likewise.
12346         (MAYBE_INTEGER_CLASS_P): Likewise.
12347         (MAYBE_FLOAT_CLASS_P): Likewise.
12348         (MAYBE_SSE_CLASS_P): Likewise.
12349         (MAYBE_MMX_CLASS_P): Likewise.
12350         (Q_CLASS_P): Likewise.
12351         (GENERAL_REGNO_P): Uppercase macro parameter.
12352         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12353         (FP_REGNO_P): Likewise.
12354         (ANY_FP_REGNO_P): Uppercase macro parameter.
12355         (SSE_REGNO_P): Likewise.
12356         (SSE_REGNO): Likewise.
12357         (SSE_REG_P): Likewise.
12358         (SSE_FLOAT_MODE_P): Likewise.
12359         (MMX_REGNO_P): Likewise.
12360         (MMX_REG_P):Likewise.
12361         (STACK_REG_P): Likewise.
12362         (NON_STACK_REG_P): Likewise.
12363         (STACK_TOP_P): Likewise.
12364         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12365         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12366         (SECONDARY_MEMORY_NEEDED): Likewise.
12367         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12368         (MD_ASM_CLOBBERS): Whitespace and wrap.
12369         (MUST_PASS_IN_STACK): Whitespace and wrap.
12370         (RETURN_POPS_ARGS): Add parenthesis.
12371         (INIT_CUMULATIVE_ARGS): Likewise.
12372         (FUNCTION_ARG): Likewise.
12373         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12374         (SETUP_INCOMING_VARARGS): Likewise.
12375         (BUILD_VA_LIST_TYPE):  Add parenthesis.
12376         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12377         parenthsis.
12378         (EXPAND_BUILTIN_VA_ARG): Likewise.
12379         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12380         (INITIALIZE_TRAMPOLINE): Add parenthesis.
12381         (INITIAL_ELIMINATION_OFFSET): Likewise.
12382         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12383         (REGNO_OK_FOR_BASE_P): Likewise.
12384         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12385         (REGNO_OK_FOR_DIREG_P): Likewise.
12386         (REG_OK_FOR_INDEX_P): Whitespace.
12387         (REG_OK_FOR_BASE_P): Whitespace.
12388         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12389         parenthesis.
12390         (FIND_BASE_TERM): Fix typo.
12391         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
12392         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12393         (SYMBOLIC_CONST; Whitespace.
12394         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
12395         (ENCODE_SECTION_INFO): Whitespace.
12396         (FINALIZE_PIC): Remove do { ... } while (0).
12397         (PROMOTE_MODE): Wrap in do { ... } while (0).
12398         (CONST_COSTS): Whitespace.
12399         (RTX_COSTS): Add paramethesis, whitespace and wrap.
12400         (REGISTER_MOVE_COST): Add parenthesis.
12401         (MEMORY_MOVE_COST): Likewise.
12402         (EXTRA_CC_MODES): Whitespace.
12403         (SELECT_CC_MODE): Add parenthesis and whitespace.
12404         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12405         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12406         (ASM_OUTPUT_LABEL): Add paramethesis.
12407         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12408         (ASM_OUTPUT_REG_POP): Likewise.
12409         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12410         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12411
12412         * config/i386/i386.c: Update copyright.
12413         (CHECK_STACK_LIMIT): Add parenthesis.
12414         (AT_BP): Uppercase macro parameter.
12415         (x86_64_int_parameter_registers): Constify.
12416         (x86_64_int_return_registers): Likewise.
12417         (ix86_compare_op0): Use rtx.
12418         (construct_container): Constify INTREG parameter.
12419         (function_arg): Use rtx.
12420
12421         * diagnostic.h: Update copyright date.
12422         (output_buffer_state): Add parenthesis.
12423         (output_buffer_format_args): Likewise.
12424
12425         * combine.c (combine_instructions): Replace XEXP (links, 0)
12426         with link.
12427
12428 2002-01-06  H.J. Lu <hjl@gnu.org>
12429
12430         * cfgcleanup.c (thread_jump): Fix 2 typos.
12431
12432 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
12433
12434         * config.gcc: Add support for --enable-altivec.
12435
12436 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12437
12438         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12439
12440 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
12441
12442         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12443         __objc_class_name_*.
12444
12445 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12446
12447         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12448
12449 2002-01-06  Richard Henderson  <rth@redhat.com>
12450
12451         * reorg.c (emit_delay_sequence): Remove death notes, not merely
12452         nop them out.  Increment label reference count for REG_LABEL.
12453         (fill_slots_from_thread): Frob label reference count around
12454         delete_related_insns.
12455
12456 2002-01-05  Richard Henderson  <rth@redhat.com>
12457
12458         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12459         jump threading.
12460
12461 2002-01-05  Richard Henderson  <rth@redhat.com>
12462
12463         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12464         * integrate.c (output_inline_function): Likewise.
12465         * toplev.c (rest_of_compilation): Do it here instead.  Move call
12466         to remove_unnecessary_notes after emitting abstract instance.
12467         Force an emitted nested function to have its parent emited as well.
12468         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12469         for null.
12470         (rtl_for_decl_location): Do not look at reload data structures
12471         before reload has run.
12472
12473 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12474
12475         * cse.c: Fix formatting.
12476         * dwarf2asm.c: Likewise.
12477         * dwarf2out.c: Likewise.
12478         * explow.c: Likewise.
12479         * expmed.c: Likewise.
12480         * function.c: Likewise.
12481         * gcov.c: Likewise.
12482         * gencheck.c: Likewise.
12483         * genrecog.c: Likewise.
12484         * ggc-common.c: Likewise.
12485         * ggc-page.c: Likewise.
12486         * global.c: Likewise.
12487
12488 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12489
12490         * combine.c: Fix formatting.
12491
12492 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
12493
12494         PR middle-end/1557
12495         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12496
12497 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
12498
12499         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12500         as 1 for __powerpc64__ as well.
12501
12502         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12503
12504         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12505         return it.
12506
12507 2002-01-05  Daniel Berlin  <dan@dberlin.org>
12508
12509         * lcm.c: Revert change, due to performance regression it causes on
12510         SPEC because it's slightly more conservative (sigh, I hate
12511         edge-based LCM).
12512
12513 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12514
12515         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12516
12517 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12518
12519         * doc/cppinternals.texi: Update.
12520
12521 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
12522
12523         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12524         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12525         negatives.
12526         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
12527         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12528         kludge for pre-october-14th mmix versions to handle new-found bug
12529         with PUSHJ/PUSHGO and the register stack.
12530         * config/mmix/mmix.h (struct machine_function): Rename member
12531         has_call_value_without_parameters to has_call_without_parameters.
12532         All referers changed.
12533         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12534         TARGET_MASK_BRANCH_PREDICT): New macros.
12535         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12536         -mno-reg-stack-fill-bug-workaround.
12537         * config/mmix/mmix.md ("call"): Set struct machine member
12538         has_call_without_parameters.
12539
12540 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12541
12542         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12543
12544 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12545
12546         * cfgcleanup.c: Include tm_p.h
12547         (mark_effect): Fix handling of hard register; fix handling of SET
12548
12549 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12550
12551         * config/h8300/h8300.md (anonymous patterns): Check that
12552         operands are registers before using REGNO on them.
12553
12554 2002-01-03  Roland McGrath  <roland@frob.com>
12555
12556         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12557
12558 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12559
12560         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12561         * c-common.h (genrtl_expr_stmt_value): Likewise.
12562         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12563         (expand_expr_stmt_value): Add maybe_last argument.
12564         Don't warn about statement with no effect if it is the last statement
12565         in expression statement.
12566         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12567         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12568         expand_expr_stmt_value.
12569         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12570         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12571         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12572         as maybe_last to expand_expr_stmt_value.
12573
12574 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12575
12576         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12577         be passed in, do not build it.
12578         (c_begin_if_stmt): New function.
12579         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12580         * c-common.h (c_expand_start_cond): Update prototype.
12581         (c_begin_if_stmt): Prototype new function.
12582         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12583         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12584         c_begin_while_stmt and c_finish_while_stmt_cond.
12585
12586 2002-01-04  William Cohen  <wcohen@redhat.com>
12587
12588         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12589         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12590         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12591         * config/pa/som.h (ASM_FILE_START): Likewise.
12592
12593 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12594
12595         * lcm.c: Include df.h.
12596         Add available_transfer_function prototype.
12597         (compute_available): Rework to use iterative dataflow framework.
12598         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12599         with bb_info in df.h
12600         (available_transfer_function): New function.
12601
12602         * Makefile.in (lcm.o): add df.h to dependencies.
12603
12604 2002-01-04  Richard Henderson  <rth@redhat.com>
12605
12606         * config/alpha/alpha.c (some_operand): Accept HIGH.
12607         (input_operand): Likewise; accept simple references to globals.
12608         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12609         (alpha_const_double_ok_for_letter_p): Likewise.
12610         (alpha_extra_constraint): Likewise.
12611         (alpha_preferred_reload_class): Likewise.  Do not force
12612         symbolic constants to memory.
12613         (alpha_legitimate_address_p): Accept simple references
12614         to small_symbolic_operand.
12615         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12616         called when no_new_pseudos.  Emit simple symbolic references.
12617         Split integers into low, high, and rest.
12618         (alpha_expand_mov): Use alpha_legitimize_address.
12619         (some_small_symbolic_mem_operand): New.
12620         (split_small_symbolic_mem_operand): New.
12621         * config/alpha/alpha-protos.h: Update.
12622         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12623         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12624         (EXTRA_CONSTRAINT): Likewise.
12625         (PREFERRED_RELOAD_CLASS): Likewise.
12626         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12627         (PREDICATE_CODES): Update.
12628         * config/alpha/alpha.md: New post-reload splitters to convert
12629         simplfied symbolic operands to the form that references $29.
12630         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12631         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12632
12633 2002-01-03  Richard Henderson  <rth@redhat.com>
12634
12635         * local-alloc.c (function_invariant_p): Update commentary.
12636
12637 2002-01-04  H.J. Lu <hjl@gnu.org>
12638
12639         * toplev.c (rest_of_compilation): Fix a typo when calling
12640         cleanup_cfg.
12641
12642 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12643
12644         * c-common.c: Fix formatting.
12645         * diagnostic.c: Likewise.
12646         * doloop.c: Likewise.
12647         * dwarf2out.c: Likewise.
12648
12649 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12650
12651         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12652         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12653
12654 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12655
12656         * cpperror.c: Update comments and copyright.
12657         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12658         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12659
12660 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12661
12662         * collect2.c (main): Use strcmp when testing for "-shared".
12663
12664 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12665
12666         * cppmacro.c: Don't include intl.h.  Update comments.
12667         (new_number_token): Allocate enough buffer for 64-bit unsigned
12668         integers; update prototype.
12669         * cppmain.c: Update comments.
12670
12671 2002-01-03  William Cohen  <wcohen@redhat.com>
12672
12673         * function.h (struct function): Add profile.
12674         (current_function_profile): New.
12675         doc/extend.texi: Update documentation.
12676         * final.c (final_start_function): Use current_function_profile
12677         instead of profile_flag.
12678         (profile_after_prologue): Likewise.
12679         * function.c (expand_function_start): Likewise.
12680         (expand_function_start): Likewise.
12681         * config/alpha/alpha.c (direct_call_operand):
12682         (alpha_does_function_need_gp): Likewise.
12683         (alpha_expand_prologue): Likewise.
12684         * config/arm/arm.c (arm_expand_prologue): Likewise.
12685         thumb_expand_prologue: Likewise.
12686         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12687         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12688         (fr30_expand_prologue): Likewise.
12689         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12690         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12691         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12692         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12693         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12694         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12695         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12696         (m32r_expand_prologue): Likewise.
12697         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12698         (m88k_expand_prologue): Likewise.
12699         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12700         * config/mips/mips.c (compute_frame_size): Likewise.
12701         (mips_expand_prologue): Likewise.
12702         (mips_can_use_return_insn): Likewise.
12703         * config/pa/elf.h (ASM_FILE_START): Likewise.
12704         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12705         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12706         * config/pa/som.h (ASM_FILE_START): Likewise.
12707         * config/romp/romp.c (romp_using_r14): Likewise.
12708         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12709         (rs6000_stack_info): Likewise.
12710         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12711         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12712         * config/v850/v850.c (compute_register_save_size): Likewise.
12713
12714 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12715
12716         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12717         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12718
12719 2002-01-03  Turly O'Connor  <turly@apple.com>
12720
12721         * darwin.c (machopic_output_possible_stub_label): Don't generate
12722         stub routines for pseudo-stubs which we've just defined.
12723
12724 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12725
12726         * builtins.c: Fix formatting.
12727         * c-typeck.c: Likewise.
12728         * combine.c: Likewise.
12729         * expr.c: Likewise.
12730         * loop.c: Likewise.
12731
12732 2002-01-03  Andreas Schwab  <schwab@suse.de>
12733
12734         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12735         and return true if _cpp_push_next_buffer pushed a new include
12736         file.
12737         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12738         _cpp_pop_file_buffer did not push a new file.
12739         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12740
12741 2002-01-02  Eric Christopher  <echristo@redhat.com>
12742
12743         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12744         FIND_REG_INC_NOTE call. Update copyright.
12745         * loop.c (canonicalize_condition): Ditto.
12746         * reorg.c (delete_scheduled_jump): Ditto.
12747
12748 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12749
12750         * gcse.c: Fix formatting.
12751
12752 2002-01-03  Graham Stott  <grahams@redhat.com>
12753
12754         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12755         forward defs for struct tags rtx_def, union_tree, rtvec_def
12756         also output corresponding typedefs for rtx, tree, and rtvec.
12757
12758         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12759         rtvec_def along with corresponding typedefs for rtx, tree, and
12760         rtvec to config.h, hconfig.h, tconfig.h.
12761
12762 2002-01-03  Graham Stott  <grahams@redhat.com>
12763
12764         * tree.h: Update copyright date.
12765         (IS_EXPR_CODE_CLASS): Add parenthesis.
12766         (TREE_SET_CODE): Add whitespace.
12767         (TREE_CHECK): Add parenthesis.
12768         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12769         (CST_OR_CONSTRUCTOR_CHECK):
12770         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12771         (TREE_SYMBOL_REFERENCED): Whitespace.
12772         (INT_CST_LT): Likewise.
12773         (INT_CST_LT_UNSIGNED): Likewise.
12774         (tree_real_cst): Unwrap comment.
12775         (tree_string): Likewise.
12776         (tree_complex): Likewise.
12777         (IDENTIFIER_POINTER): correct cast.
12778         (SAVE_EXPR_CONTEXT): Whitespace.
12779         (EXPR_WFL_FILENAME_NODE): Likewise.
12780         (EXPR_WFL_FILENAME): Remove parenthesis.
12781         (DECL_ORIGIN): Add parenthesis.
12782         (DECL_FROM_INLINE): Use NULL_TREE.
12783         (build_int_2): Whitespace.
12784         (build_type_variant): Add parenthesis.
12785
12786         * gcc/jcf-parse.c: Update copyright date.
12787         (yyparse): Constify resource_filename.
12788
12789 2002-01-03  Graham Stott  <grahams@redhat.com>
12790
12791         * rtl.h: Update copyright date.
12792         (RTL_CHECK1): Wrap long line.
12793         (RTL_CHECK2): Likewise.
12794         (RTL_CHECKC1): Wrap long line and whitespace.
12795         (RTL_CHECKC2): Likewise.
12796         (XWINT): Whitespace.
12797         (XINT): Likewise.
12798         (XSTR): Likewise.
12799         (XEXP): Likewise.
12800         (XVEC): Likewise.
12801         (XMODE): Likewise.
12802         (XBITMAP): Likewise.
12803         (XTREE): Likewise.
12804         (XBBDEF): Likewise.
12805         (XTMPL): Likewise.
12806         (X0WINT): Likewise.
12807         (X0INT):Likewise.
12808         (X0UINT): Likewise.
12809         (X0STR): Likewise.
12810         (X0EXP): Likewise.
12811         (X0VEC): Likewise.
12812         (X0MODE): Likewise.
12813         (X0BITMAP): Likewise.
12814         (X0TREE): Likewise.
12815         (X0BBDEF): Likewise.
12816         (X0ADVFLAGS): Likewise.
12817         (X0CSELIB): Likewise.
12818         (X0MEMATTR): Likewise.
12819         (XCWINT): Likewise.
12820         (XCINT): Likewise.
12821         (XCUINT): Likewise.
12822         (XCSTR): Likewise.
12823         (XCEXP): Likewise.
12824         (XCVEC): Likewise.
12825         (XCMODE): Likewise.
12826         (XCBITMAP): Likewise.
12827         (XCTREE): Likewise.
12828         (XCBBDEF): Likewise.
12829         (XCADVFLAGS): Likewise.
12830         (XCCSELIB): Likewise.
12831         (XC2EXP): Likewise.
12832         (INSN_UID): Likewise.
12833         (PREV_INSN): Likewise.
12834         (PATTERN): Likewise.
12835         (INSN_CODE): Likewise.
12836         (PUT_REG_NOTE_KIND): Likewise.
12837         (CODE_LABEL_NUMBER): Likewise.
12838         (NOTE_SOURCE_FILE): Likewise.
12839         (NOTE_BLOCK): Likewise.
12840         (NOTE_EH_HANDLER): Likewise.
12841         (NOTE_RANGE_INFO): Likewise.
12842         (NOTE_LIVE_INFO): Likewise.
12843         (NOTE_BASIC_BLOCK): Likewise.
12844         (NOTE_EXPECTED_VALUE): Likewise.
12845         (NOTE_LINE_NUMBER): Likewise.
12846         (LABEL_NAME): Likewise.
12847         (LABEL_NUSES): Likewise.
12848         (LABEL_ALTERNATE_NAME): Likewise.
12849         (ADDRESSOF_DECL): Likewise.
12850         (JUMP_LABEL): Likewise.
12851         (LABEL_NEXTREF): Likewise.
12852         (REGNO): Likewise.
12853         (ORIGINAL_REGNO: Likewise.
12854         (HARD_REGISTER_NUM_P): Add parenthesis.
12855         (SUBREG_REG): Whitespace.
12856         (SUBREG_BYTE): Likewise.
12857         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12858         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12859         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12860         (ASM_OPERANDS_INPUT_VEC): Likewise.
12861         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12862         (ASM_OPERANDS_INPUT): Likewise.
12863         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12864         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12865         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12866         (ASM_OPERANDS_INPUT_MODE): Likewise.
12867         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12868         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12869         (MEM_SET_IN_STRUCT_P): Minor reformat.
12870         (TRAP_CONDITION): Whitespace.
12871         (TRAP_CODE): Likewise.
12872         (COND_EXEC_TEST): Likewise.
12873         (COND_EXEC_CODE): Likewise.
12874         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12875         (PHI_NODE_P): Add parenthesis.
12876         (plus_constant): Whitespace and add parenthesis.
12877
12878 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12879
12880         * config/avr/avr.c: Fix comment typos.
12881         * config/c4x/c4x.md: Likewise.
12882         * config/dsp16xx/dsp16xx.h: Likewise.
12883         * config/dsp16xx/dsp16xx.md: Likewise.
12884         * config/i386/i386.md: Likewise.
12885         * config/ia64/ia64.c: Likewise.
12886         * config/m32r/m32r.h: Likewise.
12887         * config/m68hc11/m68hc11.md: Likewise.
12888         * config/mmix/mmix.c: Likewise.
12889         * config/mn10200/mn10200.c: Likewise.
12890         * config/romp/romp.c: Likewise.
12891         * config/sh/sh.c: Likewise.
12892         * config/stormy16/stormy16.c: Likewise.
12893         * config/stormy16/stormy16.h: Likewise.
12894         * config/stormy16/stormy16.md: Likewise.
12895
12896 2002-01-03  Graham Stott  <grahams@redhat.com>
12897
12898         * loop.h: Update copyright date.
12899         (LOOP_MOVABLES): Fix typo.
12900         (LOOP_REGS): Likewise.
12901         (LOOP_IVS): Likewise.
12902
12903 2002-01-03  Graham Stott  <grahams@redhat.com>
12904
12905         * cppinit.c: Update copyright date.
12906         Don't include output.h
12907         * Makefile.in: Update copyright date.
12908         Update dependency.
12909
12910 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12911
12912         PR c/5226
12913         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12914         (-pthread) Add to RS/6000 options.
12915
12916 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12917
12918         * except.c: Fix comment typos.
12919         * loop.c: Likewise.
12920         * varasm.c: Likewise.
12921         * doc/tm.texi: Fix a typo.
12922
12923 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12924
12925         * c-typeck.c (output_init_element): Allow initializing static storage
12926         duration objects with compound literals.
12927
12928 2002-01-02  Richard Henderson  <rth@redhat.com>
12929
12930         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12931         after abusing it.
12932
12933 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12934
12935         * gcc.c (default_compilers): Const-ify.
12936         * mips-tdump.c (stab_names): Likewise.
12937         * mips-tfile.c (map_coff_types, map_coff_storage,
12938         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12939         pseudo_ops_t, pseudo_ops): Likewise.
12940         * protoize.c (default_include): Likewise
12941
12942         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12943         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12944         Add array size in declaration.
12945         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12946         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12947         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12948         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12949         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12950         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12951         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12952         emtens, make_nan): Const-ify.
12953         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12954         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12955
12956 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12957
12958         * config.gcc (ia64-*-*): Set extra_headers.
12959         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12960         * config/alpha/t-osf: Remove.
12961         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12962
12963 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12964
12965         * config/rs6000/t-aix43: Revert previous change.
12966
12967 2002-01-02  Jason Merrill  <jason@redhat.com>
12968
12969         * c-decl.c (c_expand_body): Call outlining_inline_function when
12970         emitting an inline function out of line.
12971
12972 2002-01-02  Richard Henderson  <rth@redhat.com>
12973
12974         * dwarf2out.c (limbo_die_node): Add created_for member.
12975         (new_die): New argument created_for.  Update all callers.
12976         (mark_limbo_die_list): New.
12977         (dwarf2out_init): Register limbo_die_list as a root.
12978         (dwarf2out_finish): Force insert limbo dies into their function
12979         context.
12980
12981 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12982
12983         PR c++/5089
12984         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12985
12986 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12987
12988         * config/h8300/fixunssfsi.c: Update copyright.
12989         Fix comment typos.
12990         Fix formatting.
12991         * config/h8300/h8300.c: Update copyright.
12992         Eliminate warnings.
12993
12994 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12995
12996         * config/romp/romp.c: Fix comment formatting.
12997         * config/romp/romp.h: Likewise.
12998         * config/romp/romp.md: Likewise.
12999         * config/s390/s390.c: Likewise.
13000         * config/stormy16/stormy16.c: Likewise.
13001         * config/stormy16/stormy16.h: Likewise.
13002
13003 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
13004
13005         * c-common.h (genrtl_expr_stmt_value): Declare.
13006         * c-semantics.c (genrtl_goto_stmt): Redirect to...
13007         (genrtl_goto_stmt_value): ... this new function.  Pass new
13008         argument down to expand_expr_stmt_value, taking
13009         TREE_ADDRESSABLE into account.
13010         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
13011         STMT_EXPR as addressable, i.e., one whose result we want.
13012         * expr.c (expand_expr): Don't save expression statement value
13013         of labeled_blocks or loop_exprs.
13014         * stmt.c (expand_expr_stmt): Redirect to...
13015         (expand_expr_stmt_value): ... this new function.  Use new
13016         argument to tell whether to save expression value.
13017         (expand_end_stmt_expr): Reset last_expr_type and
13018         last_expr_value if we don't have either.
13019         * tree-inline.c (declare_return_variable): Mark its use
13020         statement as addressable.
13021         * tree.h: Document new use of TREE_ADDRESSABLE.
13022         (expand_expr_stmt_value): Declare.
13023
13024 2002-01-01  Tom Rix  <trix@redhat.com>
13025
13026         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
13027         rs6000_emit_allocate_stack.
13028
13029 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
13030
13031         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
13032         ${srcdir}/ginclude/ to every entry in extra_headers.
13033         * configure: Regenerate.
13034         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
13035         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
13036         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
13037         * ginclude/proto.h: Rename to config/convex/proto.h.
13038
13039 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13040
13041         * attribs.c (handle_vector_size_attribute): Use host_integerp
13042         and tree_int_cst; remove warnings.
13043         * caller-save.c (insert_restore): Add cast to get rid of warning.
13044         (insert_save): Likewise.
13045         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13046         * regmove.c (find_matches): Add temporary var to kill a warning.
13047
13048 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
13049
13050         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
13051         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
13052         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
13053         (vms-dwarf2eh.o): Add Makefile rule.
13054         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
13055         * config/alpha/vms-dwarf2eh.asm: New file.
13056
13057         * gcc.c (delete_if_ordinary): Delete all versions.
13058
13059 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
13060
13061         * config/mmix/mmix.md: Update FIXME to not mention
13062         define_constants.
13063         (MMIX_rJ_REGNUM): New define_constants constant.
13064         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
13065         "*movdicc_real"): Adjust contraints formatting.
13066         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
13067         for branch prediction.
13068         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
13069         output template.
13070         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
13071         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
13072         number.  Delete related FIXMEs.
13073         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
13074         from number to MMIX_rJ_REGNUM.
13075         (TARGET_MASK_BRANCH_PREDICT): New.
13076         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
13077         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
13078         value.  Add -mbranch-predict and -mno-branch-predict.
13079         (TARGET_VERSION): Drop date.
13080         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
13081         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
13082         for finding out global symbols.
13083         (mmix_asm_output_labelref): Revert condition for global symbol.
13084         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
13085         (mmix_print_operand_punct_valid_p): A '+' is valid.
13086
13087 See ChangeLog.6 for earlier changes.