OSDN Git Service

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