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