OSDN Git Service

* doc/extend.texi (deprecated): Fix a typo.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-01-10  Kazu Hirata  <kazu@hxi.com>
2
3         * doc/extend.texi (deprecated): Fix a typo.
4
5 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6
7         * basic-block.h (update_br_prob_note): Declare.
8         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9         (try_forward_edges): Care negative frequencies and update note.
10         (outgoing_edges_match): Tweek conditional merging heuristics.
11         (try_crossjump_to_edge): use update_br_prob_note.
12         * cfglayout.c (fixup_reorder_chain): Likewise.
13         * cfrtl.c (update_br_prob_note): New.
14         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15
16         * i386.c (ix86_decompose_address): Return -1 if address contains
17         shift.
18         (legitimate_address_p): Require ix86_decompose_address to return 1.
19
20         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
21         (cprop_insn): Likewise.
22
23 2002-01-10  Kazu Hirata  <kazu@hxi.com>
24
25         * toplev.c: Fix formatting.
26         * tree.c: Likewise.
27         * tree-dump.c: Likewise.
28         * unroll.c: Likewise.
29         * unwind-dw2.c: Likewise.
30         * unwind-dw2-fde.c: Likewise.
31         * unwind-dw2-fde-glibc.c: Likewise.
32         * unwind-sjlj.c: Likewise.
33
34 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
35
36         * doc/invoke.texi: Document PDP-11 options.
37
38 2002-01-10  Kazu Hirata  <kazu@hxi.com>
39
40         * config/h8300/h8300.h: Fix formatting.
41
42 2001-01-10  Ira Ruben   <ira@apple.com>
43
44         Add __attribute__ ((deprecated)).
45         * extend.texi: Document __attribute__ ((deprecated)).
46         * invoke.texi: Document -Wno-deprecated-declarations.
47         * testsuite/g++.dg/other/deprecated.C: New C++ test.
48         * testsuite/gcc.dg/deprecated.c: New C test.
49         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
50         (c_common_attribute_table): Add "deprecated" entry.
51         (handle_deprecated_attribute): New function.
52         * c-decl.c (deprecated_states): New enum.
53         deprecated_state: State of "deprecated" handling.
54         (start_decl): Set deprecated_state based on attributes.
55         (grokdeclarator): Test for deprecated uses, propagate attribute.
56         * c-typeck.c (build_component_ref): Test for deprecated fields.
57         (build_external_ref): Test for deprecated primaries.
58         * diagnostic.c (warn_deprecated_use) New function to issue
59         warnings about __attribute__ ((depricated)) references.
60         * flags.h (warn_deprecated_decl): Extern declared for
61         -W[no-]deprecated-declarations option.
62         * print-tree.c (print_node): Show deprecated flag status.
63         * toplev.c (warn_deprecated_decl): Defined.
64         (W_options): Added "deprecated-declaration".
65         * toplev.h (warn_deprecated_use): Extern declared.
66         * tree.h (struct tree_common): Define deprecated_flag.
67         (TREE_DEPRECATED): New macro to access flag.
68         * cp/call.c (build_call): Test for deprecated calls.
69         * cp/class.c (add_implicitly_declared_members): Set global
70         flag to tell grokdeclarator to not issue deprecated warnings.
71         * cp/cp-tree.h: Add extern for adding_implicit_members.
72         * cp/decl.c (deprecated_states): New enum.
73         (start_decl): Set deprecated_state based on attributes.
74         (grokdeclarator): Test for deprecated uses, propagate attribute.
75         * cp/lex.c (do_identifier): Test for deprecated primaries.
76         * cp/typeck.c (build_component_ref): Test for deprecated fields.
77
78 2001-01-10  Ira Ruben   <ira@apple.com>
79
80         Fix to assign attributes to inline member functions.
81         * cp/decl.c (start_method): Handle attrlist.
82
83 2002-01-10  Kazu Hirata  <kazu@hxi.com>
84
85         * combine.c (expand_field_assignment): Use subreg_lsb().
86
87 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
88
89         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
90         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
91         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
92         Recurse for any operand of AND as long as constant is non-zero.
93
94 2002-01-10  Kazu Hirata  <kazu@hxi.com>
95
96         * config/h8300/h8300.md: Remove constraints from expanders.
97
98 2002-01-10  Kazu Hirata  <kazu@hxi.com>
99
100         * varasm.c: Fix formatting.
101         * varray.c: Likewise.
102         * vmsdbgout.c: Likewise.
103         * xcoffout.c: Likewise.
104
105 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
106
107         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
108         update edge probabilities to match.
109
110 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
111
112         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
113         dependencies.
114         * doc/languages.texi, doc/sourcebuild.texi: New files.
115         * doc/configfiles.texi: Make a subsubsection.  Update.
116         * doc/configterms.texi: Add @node.  Remove warning that this isn't
117         instructions for building GCC.
118         * doc/makefile.texi: Make a subsection.
119         * doc/gccint.texi: Update.
120
121 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
122
123         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
124
125 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
126
127         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
128
129 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
130
131         * optabs.c (expand_fix): Look for wider integer modes first.
132
133         * i386.md (mov?f): Avoid the fake const double trick for medium
134         memory model.
135         (min?f*/max?f*): Prohibit memory operands for i387 variant.
136         (fop_df_4): Disable for SSE compilation.
137
138 2002-01-20  Graham Stott  <grahams@redhat.com>
139
140         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
141         Move prototype into DWARF2_DEBUGGING_INFO conditional block. 
142
143 2002-01-10  Richard Henderson  <rth@redhat.com>
144
145         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
146
147 2002-01-10  Richard Henderson  <rth@redhat.com>
148
149         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
150         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
151
152 2002-01-10  Kazu Hirata  <kazu@hxi.com>
153
154         * combine.c (can_combine_p): Fix a comment typo.
155
156 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
157
158         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
159         empty list correctly.  Change loop index $t to $f for
160         consistency with rest of Makefile.
161
162 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
163
164         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
165         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
166
167         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
168         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
169         (altivec_init_builtins): Same.
170         (altivec_expand_unop_builtin): Return NULL_RTX on error.
171         (altivec_expand_binop_builtin): Same.
172         (altivec_expand_ternop_builtin): Same.
173         (bdesc_dst): New.
174
175         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
176         ("altivec_vctuxs"): Fix typo.
177         ("altivec_vnmsubfp"): Same.
178         ("altivec_dssall"): New.
179         ("altivec_mfvscr"): New.
180         ("altivec_dss"): New.
181         ("altivec_lvsl"): New.
182         ("altivec_lvsr"): New.
183         ("altivec_dstt"): New.
184         ("altivec_dstst"): New.
185         ("altivec_dststt"): New.
186         ("altivec_dst"): New.
187
188         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
189         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
190
191 2002-01-09  Richard Henderson  <rth@redhat.com>
192
193         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
194
195 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
196
197         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
198         function.
199         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
200         prototype.
201         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
202
203 2002-01-09  Kazu Hirata  <kazu@hxi.com>
204
205         * read-rtl.c: Fix formatting.
206         * real.c: Likewise.
207         * regclass.c: Likewise.
208         * regrename.c: Likewise.
209         * reg-stack.c: Likewise.
210         * reload1.c: Likewise.
211         * reload.c: Likewise.
212         * rtl.c: Likewise.
213
214 2002-01-09  Kazu Hirata  <kazu@hxi.com>
215
216         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
217         to extract items in the expr_list chain.
218
219 2002-01-09  Richard Henderson  <rth@redhat.com>
220
221         * config/vax/vax.c (vax_rtx_cost): Never abort.
222
223         * config/vax/vax.h (REAL_ARITHMETIC): Define.
224
225 2002-01-09  Jan Hubicka  <jh@suse.cz>
226
227         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
228
229 2002-01-09  Richard Henderson  <rth@redhat.com>
230
231         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
232         Unify code from various alternatives.
233
234 2002-01-09  Richard Henderson  <rth@redhat.com>
235
236         * regrename.c (copy_value): Ignore the copy if the source register
237         is present in the value chain with a narrower mode.
238
239 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
240
241         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
242         for the c4x target. Also improve layout.
243
244 2002-01-09  Richard Henderson  <rth@redhat.com>
245
246         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
247         * config/m32r/m32r.md (and ior xor splitters): Swap operands
248         to match insn patterns.
249
250 2002-01-09  Richard Henderson  <rth@redhat.com>
251
252         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
253         (copyprop_hardreg_forward_1): Likewise.
254
255 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
256
257         * pa.md (decrement_and_branch_until_zero): Change predicate for
258         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
259
260 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
261
262         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
263         gets undefined. For Darwin.
264
265 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
266
267         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
268
269 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
270
271         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
272
273 2002-01-08  Richard Henderson  <rth@redhat.com>
274
275         * regrename.c (copy_value): Ignore overlapping copies.
276
277 2002-01-08  Richard Henderson  <rth@redhat.com>
278
279         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
280         as needed to avoid shared structure.
281
282 2002-01-08  Kazu Hirata  <kazu@hxi.com>
283
284         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
285         H8/300H and H8/S.
286
287 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
288
289         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
290         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
291         documentation of obsolete macros.
292         * system.h: Poison these macros.
293         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
294         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
295         config/c4x/c4x.h, config/clipper/clipper.h,
296         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
297         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
298         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
299         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
300         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
301         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
302         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
303         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
304         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
305         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
306         config/sparc/sparc.h, config/stormy16/stormy16.h,
307         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
308         definitions and commented out definitions of obsolete macros.
309         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
310         of MAX_INT_TYPE_SIZE.
311
312 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
313
314         * config/s390/s390.c (s390_preferred_reload_class): Never
315         return ADDR_REGS if it isn't a subset of the given class.
316         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
317         FP_REGS, but all superclasses as well.
318
319         * config/s390/s390.c (s390_function_profiler): Fix thinko.
320
321         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
322         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
323         must not be a const_int.
324
325 2002-01-08  Richard Henderson  <rth@redhat.com>
326
327         * Makefile.in (toplev.o): Depend on options.h.
328         (gcc.o): Depend on specs.h.
329
330 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
331
332         * expr.c (store_expr): Convert VOIDmode constants back to target's
333         mode.
334
335 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
336
337         * doc/invoke.texi: Markup gcc as @command.  Refer to
338         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
339         of http://gcc.gnu.org/thanks.html.
340
341 2002-01-08  Dale Johannesen  <dalej@apple.com>
342
343         * config/rs6000/rs6000.md: Add missing int register
344         target case to movdf_low.
345
346 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
347
348         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
349         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
350         (cppinit.o): Depend on except.h.
351         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
352         s-specs): New rules.
353
354         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
355         Don't create specs.h/options.h/gencheck.h here.  Remove
356         unnecessary variable settings from last argument of AC_OUTPUT.
357         * config.in, configure: Regenerate.
358         * intl.c: Hardcode package name as "gcc".
359
360         * cppinit.c: Include except.h.
361         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
362         appropriate.
363         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
364         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
365         (!)USING_SJLJ_EXCEPTIONS.
366         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
367
368 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
369
370         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
371         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
372         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
373         documentation of obsolete macros.
374         * system.h: Poison these macros.
375         * config/d30v/d30v.h, config/ns32k/encore.h,
376         config/stormy16/stormy16.h: Remove definitions and commented out
377         definitions of obsolete macros.
378
379 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
380
381         * objc/objc-act.c (handle_class_ref): Mark the declaration of
382         %sobjc_class_ref_%s as used - to prevent unwanted compiler
383         warnings.
384
385 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
386
387         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
388         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
389         to insn adjusting stack/frame pointer.
390         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
391         accept operands that cause the insn to be non-splittable.
392
393 2002-01-08  Graham Stott  <grahams@redhat.com>
394
395         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
396         (C_TYPE_FIELDS_VOLATILE): Likewise.
397         (C_TYPE_BEING_DEFINED): Likewise.
398         (C_IS_RESERVED_WORD): Likewise.
399         (C_TYPE_VARIABLE_SIZE): Likewise.
400         (C_DECL_VARIABLE_SIZE): Likewise.
401         (C_MISSING_PROTOTYPE_WARNED): Likewise.
402         (C_SET_EXP_ORIGINAL_CODE): Likewise.
403         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
404         parenthesis.
405         (C_DECL_ANTICIPATED): Likewise.
406         (c_build_type_variant): Add parenthesis.
407
408 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
409
410         * gcc.c (option_map): Remove --version.
411         (process_command): Handle -fversion following the GNU Coding
412         Standards.  Partially addresses PR other/704.
413
414 2002-01-08  Graham Stott  <grahams@redhat.com>
415
416         * combine.c (combine_instructions): Fix typo.
417
418 2002-01-08  Graham Stott  <grahams@redhat.com>
419
420         * debug.h: Use "tree" and "rtx" throughout.
421
422         * debug.c: Likewise.
423
424 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
425
426         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
427         constant pool, use the pool's version of the symbol instead.
428
429 2002-01-07  Richard Henderson  <rth@redhat.com>
430
431         * regrename.c (find_oldest_value_reg): Ignore the value chain if
432         the original register was copied in a mode with a fewer number of
433         hard registers than the desired mode.
434         (copyprop_hardreg_forward_1): Likewise.
435         (debug_value_data): Fix loop test.
436         * toplev.c (parse_options_and_default_flags): Reenable
437         -fcprop-registers at -O1.
438
439 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
440
441         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
442         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
443
444         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
445         predicates.
446
447         * config/rs6000/rs6000.md: Add altivec predicate patterns.
448
449 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
450
451         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
452         (pa_output_function_prologue): Output local label at the beginning of
453         the prologue when profiling.
454         (hppa_profile_hook): Use the local label rather than the function label.
455         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
456
457 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
458
459         * config/rs6000/rs6000.c (print_operand): Remove extra space.
460         (altivec_expand_unop_builtin): Fix thinko.
461         (altivec_expand_binop_builtin): Same.
462         (altivec_expand_ternop_builtin): Same.
463         (altivec_expand_builtin): Same.
464
465 2002-01-07  Richard Henderson  <rth@redhat.com>
466
467         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
468
469 2002-01-07  Jason Merrill  <jason@redhat.com>
470
471         * unwind-dw2.c (execute_cfa_program): Use < again.
472
473 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
474
475         * predict.c (combine_predictions_for_insn): Avoid division by zero.
476
477 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
478
479         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
480         Don't allow -1 - x -> ~x simplifications in the first pass.
481
482 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
483
484         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
485         arguments.
486         (altivec_expand_binop_builtin): Same.
487         (altivec_expand_unop_builtin): Same.
488         (print_operand): Fix typo.
489         (bdesc_1arg): Add vupk* variants.
490
491         * rs6000.h (rs6000_builtins): Add vupk* enums.
492
493         * rs6000.md: Add altivec_vupk* variants.
494
495 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
496
497         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
498         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
499         and last update dates.
500
501 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
502
503         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
504
505 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
506
507         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
508         * config/avr/avr.h (CPP_SPEC): Likewise.
509         (LINK_SPEC): Likewise.
510         (CRT_BINUTILS_SPECS): Likewise.
511         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
512         * doc/invoke.texi (AVR Options): Document them.
513
514 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
515
516         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
517         LABEL_NUSES.
518
519 2002-01-07  Graham Stott  <grahams@redhat.com>
520
521         * config/i386/i386.h: Update copyright date.
522         (HALF_PIC_PTR): Add parenthesis.
523         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
524         (CONSTANT_ALIGNMENT): Add parenthesis.
525         (DATA_ALIGNMENT): Likewise.
526         (LOCAL_ALIGNMENT): Likewise.
527         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
528         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
529         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
530         (HARD_REGNO_NREGS): Add paranethesis.
531         (VALID_SSE_REG_MODE): Whitespace.
532         (VALID_MMX_REG_MODE): Whitespace.
533         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
534         (ix86_hard_regno_mode_ok): Add parenthesis.
535         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
536         (RETURN_IN_MEMORY): Whitespace.
537         (N_REG_CLASSES): Add parenthesis.
538         (INTEGER_CLASS_P): Add parenthesis and wrap.
539         (FLOAT_CLASS_P): Likewise.
540         (SSE_CLASS_P): Likewise.
541         (MMX_CLASS_P): Likewise.
542         (MAYBE_INTEGER_CLASS_P): Likewise.
543         (MAYBE_FLOAT_CLASS_P): Likewise.
544         (MAYBE_SSE_CLASS_P): Likewise.
545         (MAYBE_MMX_CLASS_P): Likewise.
546         (Q_CLASS_P): Likewise.
547         (GENERAL_REGNO_P): Uppercase macro parameter.
548         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
549         (FP_REGNO_P): Likewise.
550         (ANY_FP_REGNO_P): Uppercase macro parameter.
551         (SSE_REGNO_P): Likewise.
552         (SSE_REGNO): Likewise.
553         (SSE_REG_P): Likewise.
554         (SSE_FLOAT_MODE_P): Likewise.
555         (MMX_REGNO_P): Likewise.
556         (MMX_REG_P):Likewise.
557         (STACK_REG_P): Likewise.
558         (NON_STACK_REG_P): Likewise.
559         (STACK_TOP_P): Likewise.
560         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
561         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
562         (SECONDARY_MEMORY_NEEDED): Likewise.
563         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
564         (MD_ASM_CLOBBERS): Whitespace and wrap.
565         (MUST_PASS_IN_STACK): Whitespace and wrap.
566         (RETURN_POPS_ARGS): Add parenthesis.
567         (INIT_CUMULATIVE_ARGS): Likewise.
568         (FUNCTION_ARG): Likewise.
569         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
570         (SETUP_INCOMING_VARARGS): Likewise.
571         (BUILD_VA_LIST_TYPE):  Add parenthesis.
572         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
573         parenthsis.
574         (EXPAND_BUILTIN_VA_ARG): Likewise.
575         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
576         (INITIALIZE_TRAMPOLINE): Add parenthesis.
577         (INITIAL_ELIMINATION_OFFSET): Likewise.
578         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
579         (REGNO_OK_FOR_BASE_P): Likewise.
580         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
581         (REGNO_OK_FOR_DIREG_P): Likewise.
582         (REG_OK_FOR_INDEX_P): Whitespace.
583         (REG_OK_FOR_BASE_P): Whitespace.
584         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
585         parenthesis.
586         (FIND_BASE_TERM): Fix typo.
587         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
588         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
589         (SYMBOLIC_CONST; Whitespace.
590         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
591         (ENCODE_SECTION_INFO): Whitespace.
592         (FINALIZE_PIC): Remove do { ... } while (0).
593         (PROMOTE_MODE): Wrap in do { ... } while (0).
594         (CONST_COSTS): Whitespace.
595         (RTX_COSTS): Add paramethesis, whitespace and wrap.
596         (REGISTER_MOVE_COST): Add parenthesis.
597         (MEMORY_MOVE_COST): Likewise.
598         (EXTRA_CC_MODES): Whitespace.
599         (SELECT_CC_MODE): Add parenthesis and whitespace.
600         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
601         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
602         (ASM_OUTPUT_LABEL): Add paramethesis.
603         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
604         (ASM_OUTPUT_REG_POP): Likewise.
605         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
606         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
607
608         * config/i386/i386.c: Update copyright.
609         (CHECK_STACK_LIMIT): Add parenthesis.
610         (AT_BP): Uppercase macro parameter.
611         (x86_64_int_parameter_registers): Constify.
612         (x86_64_int_return_registers): Likewise.
613         (ix86_compare_op0): Use rtx.
614         (construct_container): Constify INTREG parameter.
615         (function_arg): Use rtx.
616
617         * diagnostic.h: Update copyright date.
618         (output_buffer_state): Add parenthesis.
619         (output_buffer_format_args): Likewise.
620
621         * combine.c (combine_instructions): Replace XEXP (links, 0)
622         with link.
623
624 2002-01-06  H.J. Lu <hjl@gnu.org>
625
626         * cfgcleanup.c (thread_jump): Fix 2 typos.
627
628 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
629
630         * config.gcc: Add support for --enable-altivec.
631
632 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
633
634         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
635
636 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
637
638         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
639         __objc_class_name_*.
640
641 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
642
643         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
644
645 2002-01-06  Richard Henderson  <rth@redhat.com>
646
647         * reorg.c (emit_delay_sequence): Remove death notes, not merely
648         nop them out.  Increment label reference count for REG_LABEL.
649         (fill_slots_from_thread): Frob label reference count around
650         delete_related_insns.
651
652 2002-01-05  Richard Henderson  <rth@redhat.com>
653
654         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
655         jump threading.
656
657 2002-01-05  Richard Henderson  <rth@redhat.com>
658
659         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
660         * integrate.c (output_inline_function): Likewise.
661         * toplev.c (rest_of_compilation): Do it here instead.  Move call
662         to remove_unnecessary_notes after emitting abstract instance.
663         Force an emitted nested function to have its parent emited as well.
664         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
665         for null.
666         (rtl_for_decl_location): Do not look at reload data structures
667         before reload has run.
668
669 2002-01-05  Kazu Hirata  <kazu@hxi.com>
670
671         * cse.c: Fix formatting.
672         * dwarf2asm.c: Likewise.
673         * dwarf2out.c: Likewise.
674         * explow.c: Likewise.
675         * expmed.c: Likewise.
676         * function.c: Likewise.
677         * gcov.c: Likewise.
678         * gencheck.c: Likewise.
679         * genrecog.c: Likewise.
680         * ggc-common.c: Likewise.
681         * ggc-page.c: Likewise.
682         * global.c: Likewise.
683
684 2002-01-05  Kazu Hirata  <kazu@hxi.com>
685
686         * combine.c: Fix formatting.
687
688 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
689
690         PR middle-end/1557
691         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
692
693 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
694
695         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
696         as 1 for __powerpc64__ as well.
697
698         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
699
700         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
701         return it.
702
703 2002-01-05  Daniel Berlin  <dan@dberlin.org>
704
705         * lcm.c: Revert change, due to performance regression it causes on
706         SPEC because it's slightly more conservative (sigh, I hate
707         edge-based LCM).
708
709 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
710
711         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
712
713 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
714
715         * doc/cppinternals.texi: Update.
716
717 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
718
719         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
720         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
721         negatives.
722         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
723         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
724         kludge for pre-october-14th mmix versions to handle new-found bug
725         with PUSHJ/PUSHGO and the register stack.
726         * config/mmix/mmix.h (struct machine_function): Rename member
727         has_call_value_without_parameters to has_call_without_parameters.
728         All referers changed.
729         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
730         TARGET_MASK_BRANCH_PREDICT): New macros.
731         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
732         -mno-reg-stack-fill-bug-workaround.
733         * config/mmix/mmix.md ("call"): Set struct machine member
734         has_call_without_parameters.
735
736 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
737
738         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
739
740 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
741
742         * cfgcleanup.c: Include tm_p.h
743         (mark_effect): Fix handling of hard register; fix handling of SET
744
745 2002-01-04  Kazu Hirata  <kazu@hxi.com>
746
747         * config/h8300/h8300.md (anonymous patterns): Check that
748         operands are registers before using REGNO on them.
749
750 2002-01-03  Roland McGrath  <roland@frob.com>
751
752         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
753
754 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
755
756         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
757         * c-common.h (genrtl_expr_stmt_value): Likewise.
758         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
759         (expand_expr_stmt_value): Add maybe_last argument.
760         Don't warn about statement with no effect if it is the last statement
761         in expression statement.
762         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
763         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
764         expand_expr_stmt_value.
765         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
766         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
767         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
768         as maybe_last to expand_expr_stmt_value.
769
770 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
771
772         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
773         be passed in, do not build it.
774         (c_begin_if_stmt): New function.
775         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
776         * c-common.h (c_expand_start_cond): Update prototype.
777         (c_begin_if_stmt): Prototype new function.
778         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
779         * c-parse.in (if_prefix): Use c_begin_if_stmt,
780         c_begin_while_stmt and c_finish_while_stmt_cond.
781
782 2002-01-04  William Cohen  <wcohen@redhat.com>
783
784         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
785         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
786         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
787         * config/pa/som.h (ASM_FILE_START): Likewise.
788
789 2001-01-04  Daniel Berlin  <dan@cgsoftware.com>
790
791         * lcm.c: Include df.h.
792         Add available_transfer_function prototype.
793         (compute_available): Rework to use iterative dataflow framework.
794         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
795         with bb_info in df.h
796         (available_transfer_function): New function.
797
798         * Makefile.in (lcm.o): add df.h to dependencies.
799
800 2002-01-04  Richard Henderson  <rth@redhat.com>
801
802         * config/alpha/alpha.c (some_operand): Accept HIGH.
803         (input_operand): Likewise; accept simple references to globals.
804         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
805         (alpha_const_double_ok_for_letter_p): Likewise.
806         (alpha_extra_constraint): Likewise.
807         (alpha_preferred_reload_class): Likewise.  Do not force
808         symbolic constants to memory.
809         (alpha_legitimate_address_p): Accept simple references
810         to small_symbolic_operand.
811         (alpha_legitimize_address): New arg scratch.  Be prepared to be
812         called when no_new_pseudos.  Emit simple symbolic references.
813         Split integers into low, high, and rest.
814         (alpha_expand_mov): Use alpha_legitimize_address.
815         (some_small_symbolic_mem_operand): New.
816         (split_small_symbolic_mem_operand): New.
817         * config/alpha/alpha-protos.h: Update.
818         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
819         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
820         (EXTRA_CONSTRAINT): Likewise.
821         (PREFERRED_RELOAD_CLASS): Likewise.
822         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
823         (PREDICATE_CODES): Update.
824         * config/alpha/alpha.md: New post-reload splitters to convert
825         simplfied symbolic operands to the form that references $29.
826         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
827         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
828
829 2002-01-03  Richard Henderson  <rth@redhat.com>
830
831         * local-alloc.c (function_invariant_p): Update commentary.
832
833 2002-01-04  H.J. Lu <hjl@gnu.org>
834
835         * toplev.c (rest_of_compilation): Fix a typo when calling
836         cleanup_cfg.
837
838 2002-01-03  Kazu Hirata  <kazu@hxi.com>
839
840         * c-common.c: Fix formatting.
841         * diagnostic.c: Likewise.
842         * doloop.c: Likewise.
843         * dwarf2out.c: Likewise.
844
845 2002-01-03  Kazu Hirata  <kazu@hxi.com>
846
847         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
848         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
849
850 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
851
852         * cpperror.c: Update comments and copyright.
853         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
854         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
855
856 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
857
858         * collect2.c (main): Use strcmp when testing for "-shared".
859
860 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
861
862         * cppmacro.c: Don't include intl.h.  Update comments.
863         (new_number_token): Allocate enough buffer for 64-bit unsigned
864         integers; update prototype.
865         * cppmain.c: Update comments.
866
867 2002-01-03  William Cohen  <wcohen@redhat.com>
868
869         * function.h (struct function): Add profile.
870         (current_function_profile): New.
871         doc/extend.texi: Update documentation.
872         * final.c (final_start_function): Use current_function_profile
873         instead of profile_flag.
874         (profile_after_prologue): Likewise.
875         * function.c (expand_function_start): Likewise.
876         (expand_function_start): Likewise.
877         * config/alpha/alpha.c (direct_call_operand):
878         (alpha_does_function_need_gp): Likewise.
879         (alpha_expand_prologue): Likewise.
880         * config/arm/arm.c (arm_expand_prologue): Likewise.
881         thumb_expand_prologue: Likewise.
882         * config/d30v/d30v.c (d30v_stack_info): Likewise.
883         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
884         (fr30_expand_prologue): Likewise.
885         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
886         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
887         * config/i386/i386.h (FINALIZE_PIC): Likewise.
888         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
889         * config/i960/i960.c (i960_output_function_prologue): Likewise.
890         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
891         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
892         (m32r_expand_prologue): Likewise.
893         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
894         (m88k_expand_prologue): Likewise.
895         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
896         * config/mips/mips.c (compute_frame_size): Likewise.
897         (mips_expand_prologue): Likewise.
898         (mips_can_use_return_insn): Likewise.
899         * config/pa/elf.h (ASM_FILE_START): Likewise.
900         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
901         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
902         * config/pa/som.h (ASM_FILE_START): Likewise.
903         * config/romp/romp.c (romp_using_r14): Likewise.
904         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
905         (rs6000_stack_info): Likewise.
906         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
907         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
908         * config/v850/v850.c (compute_register_save_size): Likewise.
909
910 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
911
912         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
913         gen_lowpart_common fails, use gen_lowpart_SUBREG.
914
915 2002-01-03  Turly O'Connor  <turly@apple.com>
916
917         * darwin.c (machopic_output_possible_stub_label): Don't generate
918         stub routines for pseudo-stubs which we've just defined.
919
920 2002-01-03  Kazu Hirata  <kazu@hxi.com>
921
922         * builtins.c: Fix formatting.
923         * c-typeck.c: Likewise.
924         * combine.c: Likewise.
925         * expr.c: Likewise.
926         * loop.c: Likewise.
927
928 2002-01-03  Andreas Schwab  <schwab@suse.de>
929
930         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
931         and return true if _cpp_push_next_buffer pushed a new include
932         file.
933         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
934         _cpp_pop_file_buffer did not push a new file.
935         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
936
937 2002-01-02  Eric Christopher  <echristo@redhat.com>
938
939         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
940         FIND_REG_INC_NOTE call. Update copyright.
941         * loop.c (canonicalize_condition): Ditto.
942         * reorg.c (delete_scheduled_jump): Ditto.
943
944 2002-01-03  Kazu Hirata  <kazu@hxi.com>
945
946         * gcse.c: Fix formatting.
947
948 2002-01-03  Graham Stott  <grahams@redhat.com>
949
950         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
951         forward defs for struct tags rtx_def, union_tree, rtvec_def
952         also output corresponding typedefs for rtx, tree, and rtvec.
953
954         * system.h: Move forward defs for struct tags rtx_def, union_tree,
955         rtvec_def along with corresponding typedefs for rtx, tree, and
956         rtvec to config.h, hconfig.h, tconfig.h.
957
958 2002-01-03  Graham Stott  <grahams@redhat.com>
959
960         * tree.h: Update copyright date.
961         (IS_EXPR_CODE_CLASS): Add parenthesis.
962         (TREE_SET_CODE): Add whitespace.
963         (TREE_CHECK): Add parenthesis.
964         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
965         (CST_OR_CONSTRUCTOR_CHECK):
966         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
967         (TREE_SYMBOL_REFERENCED): Whitespace.
968         (INT_CST_LT): Likewise.
969         (INT_CST_LT_UNSIGNED): Likewise.
970         (tree_real_cst): Unwrap comment.
971         (tree_string): Likewise.
972         (tree_complex): Likewise.
973         (IDENTIFIER_POINTER): correct cast.
974         (SAVE_EXPR_CONTEXT): Whitespace.
975         (EXPR_WFL_FILENAME_NODE): Likewise.
976         (EXPR_WFL_FILENAME): Remove parenthesis.
977         (DECL_ORIGIN): Add parenthesis.
978         (DECL_FROM_INLINE): Use NULL_TREE.
979         (build_int_2): Whitespace.
980         (build_type_variant): Add parenthesis.
981
982         * gcc/jcf-parse.c: Update copyright date.
983         (yyparse): Constify resource_filename.
984
985 2002-01-03  Graham Stott  <grahams@redhat.com>
986
987         * rtl.h: Update copyright date.
988         (RTL_CHECK1): Wrap long line.
989         (RTL_CHECK2): Likewise.
990         (RTL_CHECKC1): Wrap long line and whitespace.
991         (RTL_CHECKC2): Likewise.
992         (XWINT): Whitespace.
993         (XINT): Likewise.
994         (XSTR): Likewise.
995         (XEXP): Likewise.
996         (XVEC): Likewise.
997         (XMODE): Likewise.
998         (XBITMAP): Likewise.
999         (XTREE): Likewise.
1000         (XBBDEF): Likewise.
1001         (XTMPL): Likewise.
1002         (X0WINT): Likewise.
1003         (X0INT):Likewise.
1004         (X0UINT): Likewise.
1005         (X0STR): Likewise.
1006         (X0EXP): Likewise.
1007         (X0VEC): Likewise.
1008         (X0MODE): Likewise.
1009         (X0BITMAP): Likewise.
1010         (X0TREE): Likewise.
1011         (X0BBDEF): Likewise.
1012         (X0ADVFLAGS): Likewise.
1013         (X0CSELIB): Likewise.
1014         (X0MEMATTR): Likewise.
1015         (XCWINT): Likewise.
1016         (XCINT): Likewise.
1017         (XCUINT): Likewise.
1018         (XCSTR): Likewise.
1019         (XCEXP): Likewise.
1020         (XCVEC): Likewise.
1021         (XCMODE): Likewise.
1022         (XCBITMAP): Likewise.
1023         (XCTREE): Likewise.
1024         (XCBBDEF): Likewise.
1025         (XCADVFLAGS): Likewise.
1026         (XCCSELIB): Likewise.
1027         (XC2EXP): Likewise.
1028         (INSN_UID): Likewise.
1029         (PREV_INSN): Likewise.
1030         (PATTERN): Likewise.
1031         (INSN_CODE): Likewise.
1032         (PUT_REG_NOTE_KIND): Likewise.
1033         (CODE_LABEL_NUMBER): Likewise.
1034         (NOTE_SOURCE_FILE): Likewise.
1035         (NOTE_BLOCK): Likewise.
1036         (NOTE_EH_HANDLER): Likewise.
1037         (NOTE_RANGE_INFO): Likewise.
1038         (NOTE_LIVE_INFO): Likewise.
1039         (NOTE_BASIC_BLOCK): Likewise.
1040         (NOTE_EXPECTED_VALUE): Likewise.
1041         (NOTE_LINE_NUMBER): Likewise.
1042         (LABEL_NAME): Likewise.
1043         (LABEL_NUSES): Likewise.
1044         (LABEL_ALTERNATE_NAME): Likewise.
1045         (ADDRESSOF_DECL): Likewise.
1046         (JUMP_LABEL): Likewise.
1047         (LABEL_NEXTREF): Likewise.
1048         (REGNO): Likewise.
1049         (ORIGINAL_REGNO: Likewise.
1050         (HARD_REGISTER_NUM_P): Add parenthesis.
1051         (SUBREG_REG): Whitespace.
1052         (SUBREG_BYTE): Likewise.
1053         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
1054         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
1055         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
1056         (ASM_OPERANDS_INPUT_VEC): Likewise.
1057         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
1058         (ASM_OPERANDS_INPUT): Likewise.
1059         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
1060         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
1061         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
1062         (ASM_OPERANDS_INPUT_MODE): Likewise.
1063         (ASM_OPERANDS_SOURCE_FILE): Likewise.
1064         (ASM_OPERANDS_SOURCE_LINE): Likewise.
1065         (MEM_SET_IN_STRUCT_P): Minor reformat.
1066         (TRAP_CONDITION): Whitespace.
1067         (TRAP_CODE): Likewise.
1068         (COND_EXEC_TEST): Likewise.
1069         (COND_EXEC_CODE): Likewise.
1070         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
1071         (PHI_NODE_P): Add parenthesis.
1072         (plus_constant): Whitespace and add parenthesis.
1073
1074 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1075
1076         * config/avr/avr.c: Fix comment typos.
1077         * config/c4x/c4x.md: Likewise.
1078         * config/dsp16xx/dsp16xx.h: Likewise.
1079         * config/dsp16xx/dsp16xx.md: Likewise.
1080         * config/i386/i386.md: Likewise.
1081         * config/ia64/ia64.c: Likewise.
1082         * config/m32r/m32r.h: Likewise.
1083         * config/m68hc11/m68hc11.md: Likewise.
1084         * config/mmix/mmix.c: Likewise.
1085         * config/mn10200/mn10200.c: Likewise.
1086         * config/romp/romp.c: Likewise.
1087         * config/sh/sh.c: Likewise.
1088         * config/stormy16/stormy16.c: Likewise.
1089         * config/stormy16/stormy16.h: Likewise.
1090         * config/stormy16/stormy16.md: Likewise.
1091
1092 2002-01-03  Graham Stott  <grahams@redhat.com>
1093
1094         * loop.h: Update copyright date.
1095         (LOOP_MOVABLES): Fix typo.
1096         (LOOP_REGS): Likewise.
1097         (LOOP_IVS): Likewise.
1098
1099 2002-01-03  Graham Stott  <grahams@redhat.com>
1100
1101         * cppinit.c: Update copyright date.
1102         Don't include output.h
1103         * Makefile.in: Update copyright date.
1104         Update dependency.
1105
1106 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1107
1108         PR c/5226
1109         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
1110         (-pthread) Add to RS/6000 options.
1111
1112 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1113
1114         * except.c: Fix comment typos.
1115         * loop.c: Likewise.
1116         * varasm.c: Likewise.
1117         * doc/tm.texi: Fix a typo.
1118
1119 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
1120
1121         * c-typeck.c (output_init_element): Allow initializing static storage
1122         duration objects with compound literals.
1123
1124 2002-01-02  Richard Henderson  <rth@redhat.com>
1125
1126         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
1127         after abusing it.
1128
1129 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1130
1131         * gcc.c (default_compilers): Const-ify.
1132         * mips-tdump.c (stab_names): Likewise.
1133         * mips-tfile.c (map_coff_types, map_coff_storage,
1134         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
1135         pseudo_ops_t, pseudo_ops): Likewise.
1136         * protoize.c (default_include): Likewise
1137
1138         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
1139         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
1140         Add array size in declaration.
1141         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
1142         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
1143         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
1144         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
1145         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
1146         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
1147         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
1148         emtens, make_nan): Const-ify.
1149         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
1150         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
1151
1152 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1153
1154         * config.gcc (ia64-*-*): Set extra_headers.
1155         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
1156         * config/alpha/t-osf: Remove.
1157         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
1158
1159 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
1160
1161         * config/rs6000/t-aix43: Revert previous change.
1162
1163 2002-01-02  Jason Merrill  <jason@redhat.com>
1164
1165         * c-decl.c (c_expand_body): Call outlining_inline_function when
1166         emitting an inline function out of line.
1167
1168 2002-01-02  Richard Henderson  <rth@redhat.com>
1169
1170         * dwarf2out.c (limbo_die_node): Add created_for member.
1171         (new_die): New argument created_for.  Update all callers.
1172         (mark_limbo_die_list): New.
1173         (dwarf2out_init): Register limbo_die_list as a root.
1174         (dwarf2out_finish): Force insert limbo dies into their function
1175         context.
1176
1177 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1178
1179         PR c++/5089
1180         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
1181
1182 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1183
1184         * config/h8300/fixunssfsi.c: Update copyright.
1185         Fix comment typos.
1186         Fix formatting.
1187         * config/h8300/h8300.c: Update copyright.
1188         Eliminate warnings.
1189
1190 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1191
1192         * config/romp/romp.c: Fix comment formatting.
1193         * config/romp/romp.h: Likewise.
1194         * config/romp/romp.md: Likewise.
1195         * config/s390/s390.c: Likewise.
1196         * config/stormy16/stormy16.c: Likewise.
1197         * config/stormy16/stormy16.h: Likewise.
1198
1199 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
1200
1201         * c-common.h (genrtl_expr_stmt_value): Declare.
1202         * c-semantics.c (genrtl_goto_stmt): Redirect to...
1203         (genrtl_goto_stmt_value): ... this new function.  Pass new
1204         argument down to expand_expr_stmt_value, taking
1205         TREE_ADDRESSABLE into account.
1206         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
1207         STMT_EXPR as addressable, i.e., one whose result we want.
1208         * expr.c (expand_expr): Don't save expression statement value
1209         of labeled_blocks or loop_exprs.
1210         * stmt.c (expand_expr_stmt): Redirect to...
1211         (expand_expr_stmt_value): ... this new function.  Use new
1212         argument to tell whether to save expression value.
1213         (expand_end_stmt_expr): Reset last_expr_type and
1214         last_expr_value if we don't have either.
1215         * tree-inline.c (declare_return_variable): Mark its use
1216         statement as addressable.
1217         * tree.h: Document new use of TREE_ADDRESSABLE.
1218         (expand_expr_stmt_value): Declare.
1219
1220 2002-01-01  Tom Rix  <trix@redhat.com>
1221
1222         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
1223         rs6000_emit_allocate_stack.
1224
1225 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1226
1227         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
1228         ${srcdir}/ginclude/ to every entry in extra_headers.
1229         * configure: Regenerate.
1230         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
1231         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
1232         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
1233         * ginclude/proto.h: Rename to config/convex/proto.h.
1234
1235 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1236
1237         * attribs.c (handle_vector_size_attribute): Use host_integerp
1238         and tree_int_cst; remove warnings.
1239         * caller-save.c (insert_restore): Add cast to get rid of warning.
1240         (insert_save): Likewise.
1241         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
1242         * regmove.c (find_matches): Add temporary var to kill a warning.
1243
1244 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
1245
1246         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
1247         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
1248         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
1249         (vms-dwarf2eh.o): Add Makefile rule.
1250         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
1251         * config/alpha/vms-dwarf2eh.asm: New file.
1252
1253         * gcc.c (delete_if_ordinary): Delete all versions.
1254
1255 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
1256
1257         * config/mmix/mmix.md: Update FIXME to not mention
1258         define_constants.
1259         (MMIX_rJ_REGNUM): New define_constants constant.
1260         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
1261         "*movdicc_real"): Adjust contraints formatting.
1262         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
1263         for branch prediction.
1264         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
1265         output template.
1266         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
1267         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
1268         number.  Delete related FIXMEs.
1269         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
1270         from number to MMIX_rJ_REGNUM.
1271         (TARGET_MASK_BRANCH_PREDICT): New.
1272         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
1273         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
1274         value.  Add -mbranch-predict and -mno-branch-predict.
1275         (TARGET_VERSION): Drop date.
1276         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
1277         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
1278         for finding out global symbols.
1279         (mmix_asm_output_labelref): Revert condition for global symbol.
1280         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
1281         (mmix_print_operand_punct_valid_p): A '+' is valid.
1282
1283 See ChangeLog.6 for earlier changes.