OSDN Git Service

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