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