OSDN Git Service

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