OSDN Git Service

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