OSDN Git Service

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