]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
freebsd.h, [...] (LOCAL_LABEL_PREFIX): Define.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2002-03-27 Richard Henderson <rth@redhat.com>
2
3 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
6
7 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8
9 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12 Remove unnecessary masks.
13 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
14 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
15 -mwindows, -mdll switches and their negations.
16
17 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
18
19 * gcc-common.c (lang_mark_false_label_stack): Remove.
20 * ggc.h (lang_mark_false_label_stack): Similarly.
21
22 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
23
24 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
25
26 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
27 or __rtems_ is defined.
28
29 2002-03-26 Richard Henderson <rth@redhat.com>
30
31 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
32 if a non-trivial load was emitted.
33 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
34 in high+extra+low case.
35
36 2002-03-26 Richard Henderson <rth@redhat.com>
37
38 * config.gcc (sparc*-solaris): Use float_format=sparc.
39
40 2002-03-26 Richard Henderson <rth@redhat.com>
41
42 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
43 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
44 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
45 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
46 (WINT_TYPE_SIZE): Fix at 32.
47
48 2002-03-26 Richard Henderson <rth@redhat.com>
49
50 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
51 until after eh landing pad generation.
52 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
53 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
54
55 2002-03-26 Richard Henderson <rth@redhat.com>
56
57 * expr.h (ADD_PARM_SIZE): One more convert for INC.
58
59 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
60
61 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
62 and warning switches.
63 (cc1_options): Likewise.
64
65 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
66
67 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
68 Restore more of the signal context. Set no_reg_stack_frame.
69 * config/ia64/unwind-ia64.c (unw_state_record):
70 Add no_reg_stack_frame, comments.
71 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
72 (uw_update_context): Adjust bsp when unwinding from leaf,
73 but not signal frame.
74
75 2002-03-26 David Edelsohn <edelsohn@gnu.org>
76
77 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
78
79 2002-03-26 Bob Wilson <bob.wilson@acm.org>
80
81 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
82
83 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
84
85 PR target/5621
86 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
87 "Add a pool_range attribute", which was lost during the ARM/Thumb
88 merge.
89
90 2002-03-26 Bob Wilson <bob.wilson@acm.org>
91
92 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
93 a register into the MAC16 accumulator.
94
95 2002-03-26 Andrew Cagney <ac131313@redhat.com>
96
97 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
98 (Warning Options): Document -Wswitch-enum.
99 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
100 -Wswitch.
101 (warn_switch_enum): Define variables.
102 * flags.h (warn_switch_enum): Declare variables.
103 * stmt.c (expand_end_case_type): When warn_switch_enum /
104 -Wswitch-enum, perform switch checks.
105 Fix PR c/5044.
106
107 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
108
109 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
110 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
111 (reload_muladdsi_compare0_scratch): Delete.
112
113 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
114
115 * doc/install.texi (*-*-freebsd*): Update.
116
117 2002-03-26 Richard Henderson <rth@redhat.com>
118
119 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
120 (SUB_PARM_SIZE): Cast DEC to ssizetype.
121
122 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
123 types from the normal argument frame.
124
125 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
126 variable sized objects by reference.
127 (sparc_va_arg): Receive them by reference too.
128
129 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
130
131 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
132 code to not restoring global registers.
133
134 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
135
136 * Makefile.in (ggc-common.o): Update.
137 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
138 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
139 * c-tree.h (c_mark_tree): New.
140 * ggc-common.c: Include langhooks.h.
141 (gcc_mark_trees): Use new langhook.
142 * ggc-callbacks.c: Delete file.
143 * ggc.h (lang_mark_tree): Remove.
144 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
145 (LANG_HOOKS_INITIALIZER): Update.
146 * langhooks.h (struct lang_hooks): New hook.
147 objc:
148 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
149
150 2002-03-25 Zack Weinberg <zack@codesourcery.com>
151
152 * doc/cpp.texi: Exclude entire Top node from printed manual.
153 Move option index after directive index. Insert page breaks
154 before GFDL and concept index. Index environment variables
155 with command line options.
156 * doc/cppenv.texi: Use @vtable for environment variable list.
157 Add paragraph explaining semantics of empty elements in path
158 variables. Exclude a cross-reference to Fishkill from the
159 manpage. Remove an unnecessary cross-reference of the entry
160 right above the referer. Don't use @anchor in text that goes
161 into manpage.
162 * doc/cppopts.texi: Cross-reference the environment variables
163 section, not the specific environment variable, for consistency.
164
165 2002-03-25 Richard Henderson <rth@redhat.com>
166
167 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
168 anywhere in the block. Don't refer to insns that have been
169 removed from the chain. Iterate backward through the new insns.
170 Don't refer to edges that have been removed.
171
172 2002-03-26 Alan Modra <amodra@bigpond.net.au>
173
174 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
175 test for overflow of constant.
176
177 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
178
179 PR target/2623
180 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
181 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
182 these patterns on arm_archv4.
183
184 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
185
186 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
187 int".
188
189 2002-03-25 Zack Weinberg <zack@codesourcery.com>
190
191 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
192 float_handled, float_handler, float_signal, set_float_handler,
193 and do_float_handler. Set handler for SIGFPE to crash_signal.
194 * toplev.h: Don't prototype do_float_handler.
195
196 * c-lex.c: Fold parse_float into lex_number. Make warning
197 about portability of hex float constants more informative, and
198 don't issue it on top of a syntax error.
199 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
200 their callers.
201 * real.h: Define REAL_VALUE_ABS here...
202 * simplify-rtx.c: ... not here. Fold check_fold_consts,
203 simplify_unary_real, simplify_binary_real, and
204 simplify_binary_is2orm1 into their callers.
205 * tree.c: Fold build_real_from_int_cst_1 into caller.
206
207 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
208
209 * tsystem.h: Include float.h here...
210 * libgcc2.c: ... not here.
211
212 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
213
214 Fixes for: PR bootstrap/3591, target/5676
215 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
216 defined. Do not disable exceptions or rtti.
217 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
218 mcore.h. Disable exceptions and rtti, since they are not
219 supported by EPOC.
220
221 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
222
223 * c-decl.c (maybe_build_cleanup): Remove.
224 * expr.c (expand_expr): Use langhook.
225 * langhooks-def.h (lhd_return_null_tree,
226 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
227 (LANGHOOKS_INITIALIZER): Update.
228 * langhooks.c (lhd_return_null_tree): New.
229 * langhooks.h (struct lang_hooks): New hook.
230 * tree-inline.c (initialize_inlined_parameters): Use langhook.
231 * tree.h (maybe_build_cleanup): Remove.
232
233 2002-03-25 Jakub Jelinek <jakub@redhat.com>
234
235 * regrename.c (build_def_use): Move recog_memoized
236 before extract_insn.
237
238 2002-03-25 Jakub Jelinek <jakub@redhat.com>
239
240 PR target/6043
241 * expr.c (emit_group_store): Handle storing into CONCAT.
242
243 2002-03-25 Jakub Jelinek <jakub@redhat.com>
244
245 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
246 corresponding MATCH_DUP.
247
248 2002-03-24 Richard Henderson <rth@redhat.com>
249
250 * unroll.c (unroll_loop): Zero label_map.
251
252 * gcse.c: Include except.h.
253 * Makefile.in (gcse.o): Update.
254
255 2002-03-24 Richard Henderson <rth@redhat.com>
256
257 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
258 Do resolve_unique_section before shared data clause.
259
260 2002-03-24 Richard Henderson <rth@redhat.com>
261
262 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
263
264 2002-03-24 Richard Henderson <rth@redhat.com>
265
266 * recog.c (peephole2_optimize): Split blocks when EH insns are
267 generated in the middle of a block. Do global life update if
268 zapped EH edges.
269
270 2002-03-24 Richard Henderson <rth@redhat.com>
271
272 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
273
274 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
275
276 preprocessor/3951
277 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
278 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
279 (init_dependency_output): Don't make no_output decision here.
280
281 2002-03-24 Andrew Cagney <ac131313@redhat.com>
282
283 * stmt.c (check_for_full_enumeration_handling): Remove tests of
284 warn_switch. Update description.
285 (expand_end_case_type): Call check_for_full_enumeration_handling
286 when warn_switch.
287
288 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
289
290 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
291 (m68hc11_split_move): Call it to see if the source and destination
292 operands use the same direction auto inc/dec mode, otherwise make the
293 source an offsetable memory operand and generate an add.
294
295 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
296
297 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
298 register for operand 2.
299 ("*subsi3_zero_extendqi"): Likewise.
300 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
301 bits so that it is compatible with a pop.
302 ("*andhi3_gen"): Likewise.
303 ("xorhi3"): Likewise.
304
305 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
306
307 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
308 -pedantic here...
309 (cpp_post_options): ... not here.
310
311 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
312 Aldy Hernandez <aldyh@redhat.com>
313
314 Removal of separate preprocessor cpp0.
315
316 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
317 cpp0, install-common): Update.
318 * c-common.c (flag_preprocess_only): New.
319 (c_common_init): Preprocess for -E.
320 * c-common.h (flag_preprocess_only): New.
321 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
322 * c-objc-common.c (c_init_decl_processing): Exit quickly
323 for NULL return from c_common_init.
324 * cpplib.h (cpp_preprocess_file): New.
325 * cppmain.c (main, general_init, pfile, progname): Remove.
326 (do_preprocessing): Rename cpp_preprocess_file, don't call
327 cpp_finish. Don't close stdout here.
328 (setup_callbacks): Update prototype.
329 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
330 Update.
331 * tradcpp.c (main): Ignore -quiet.
332 objc:
333 * lang-specs.h (default_compilers): Preprocess with cc1obj.
334
335 2002-03-24 Richard Henderson <rth@redhat.com>
336
337 PR optimization/5742
338 * machmode.def: Add inner mode field to complex modes.
339 * config/mips/mips.c (mips_function_value): Always define. Add
340 new argument to handle libcalls.
341 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
342 (FUNCTION_VALUE): Likewise.
343 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
344 * config/mips/mips-protos.h: Update.
345
346 2002-03-23 Richard Henderson <rth@redhat.com>
347
348 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
349 * config/sparc/sparc-protos.h: Update.
350 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
351
352 2002-03-23 Richard Henderson <rth@redhat.com>
353
354 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
355 _start or _init begins the text segment.
356
357 2002-03-23 David Edelsohn <edelsohn@gnu.org>
358
359 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
360 not HOST_WIDEST_INT.
361 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
362
363 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
364
365 PR java/5489
366 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
367 operand argument to output_return_instruction.
368 * arm.c (arm_print_operand, case 'd'): If the operand is
369 const_true_rtx then just return.
370 (arm_print_operand, case 'D'): If the operand is const_true_rtx
371 then abort.
372
373 2002-03-23 Andrew Cagney <ac131313@redhat.com>
374
375 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
376 (Warning Options): Document -Wswitch-default.
377 * toplev.c (W_options): Add -Wswitch-default. Update comment on
378 -Wswitch.
379 (warn_switch_default): Define variable.
380 (warn_switch): Update comment.
381 * flags.h (warn_switch_default): Declare variable.
382 (warn_switch): Update comment.
383 * stmt.c (expand_end_case): Check for and, when
384 warn_switch_no_default, warn of a missing default case.
385
386 2002-03-23 Alan Modra <amodra@bigpond.net.au>
387
388 * real.h (N): Special case 128 bit doubles.
389
390 * combine.c (simplify_comparison): When widening modes, ignore
391 sign extension on CONST_INTs.
392
393 2002-03-22 Bob Wilson <bob.wilson@acm.org>
394
395 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
396 passed to adjust_address. Fix comment formatting.
397
398
399 2002-03-22 Zack Weinberg <zack@codesourcery.com>
400
401 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
402 Always make REAL_VALUE_TYPE a struct containing an array of
403 HOST_WIDE_INT, not a double. Tidy up the code deciding how
404 big it is. Don't declare or use union real_extract.
405
406 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
407 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
408 (print_operand), config/arm/arm.c (output_move_double),
409 config/arm/arm.md (consttable_4, consttable_8),
410 config/romp/romp.c (output_fpops), config/s390/s390.h
411 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
412 (xtensa_output_literal): Don't use union real_extract.
413
414 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
415 (sfmode_constant_to_ulong), config/ns32k/merlin.h
416 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
417 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
418 (PRINT_OPERAND): Don't use local version of union
419 real_extract.
420
421 * config/convex/convex.c (check_float_value), config/vax/vax.c
422 (vax_float_literal), config/m88k/m88k.md (divdf3),
423 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
424 config/pdp11/pdp11.c (output_move_quad): Don't do host
425 arithmetic on target floating point quantities.
426
427 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
428 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
429
430 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
431 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
432
433 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
434 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
435 INFINITY.
436 * print-rtl.c (print_rtx): Disable code which needs
437 floating-point emulator.
438 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
439 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
440 depending on HOST_FLOAT_FORMAT to be defined properly.
441
442 * config/1750a/1750a.c (get_double, float_label): Delete.
443 (print_operand): Delete huge commented-out chunk. Use
444 REAL_VALUE_TO_DECIMAL.
445 * config/1750a/1750a-protos.h: Delete prototypes of deleted
446 functions.
447 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
448 IEEE_FLOAT_FORMAT.
449 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
450 Use REAL_VALUE_TO_DECIMAL as ELF version does.
451 * config/m88k/m88k.c (real_power_of_2_operand,
452 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
453 real_extract out of the union; run the input through
454 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
455 from that into the union.
456 * config/pdp11/pdp11.c (output_move_double): Rearrange
457 parentheses to make automatic indenter happy.
458
459 * doc/tm.texi (Cross-compilation): Rename node to "Floating
460 Point" and rewrite to describe current situation. Also adjust
461 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
462 match code.
463 * doc/rtl.texi: Adjust cross reference.
464
465 2002-03-22 Bob Wilson <bob.wilson@acm.org>
466
467 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
468 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
469 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
470 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
471 prevent use of sp as a reload register.
472 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
473 non_acc_reg_operand.
474 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
475 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
476 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
477 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
478
479 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
480
481 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
482 * cpplex.c (unterminated): Delete.
483 (parse_string): No string literal may extend over multiple
484 lines. Suppress the error when preprocessing assembly.
485 * cppmain.c (scan_translation_unit): Strings are single-line.
486
487 * doc/cpp.texi: Update to match.
488
489 2002-03-22 Jakub Jelinek <jakub@redhat.com>
490
491 PR optimization/5854
492 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
493 Shut up warnings.
494 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
495 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
496 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
497 const0 if scratch register was not allocated.
498 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
499 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
500 with GEN_INT (...).
501 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
502 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
503 with GEN_INT (...) everywhere. Remove constraints in define_split
504 patterns.
505 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
506 require scratch register for setting 0 into regs/non-pushable memory.
507
508 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
509
510 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
511 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
512
513 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
514
515 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
516 * cppinit.c (cpp_create_reader): On by default.
517 (cpp_handle_option): Handle -W[no-]endif-labels.
518 (cpp_post_options): Also enable if -pedantic.
519 * cpplib.c (do_else): Use it.
520 (do_endif): Likewise.
521 * doc/cppopts.texi: Document new option.
522 * doc/invoke.texi: Document new option.
523
524 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
525
526 * config/i386/i386.c, config/i386/i386.md: Change all occurences
527 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
528
529 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
530
531 * flow.c (calculate_global_regs_live): Clear aux fields of
532 ENTRY and EXIT.
533
534 2002-03-22 Jakub Jelinek <jakub@redhat.com>
535
536 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
537 REG or MEM subregs, pass rtx * instead of rtx to it.
538 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
539 rtx * instead of rtx to alter_subreg.
540 * config/m32r/m32r.c (gen_split_move_double): Likewise.
541 * config/pj/pj.c (pj_output_rval): Likewise.
542
543 2002-03-22 Richard Henderson <rth@redhat.com>
544
545 PR target/3177
546 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
547 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
548 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
549 (ia64_expand_prologue): Look at int_regs, not words, for number
550 of incomming int regs.
551
552 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
553
554 * expr.c (expand_expr): A RESULT_DECL is part of a call.
555
556 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
557
558 * toplev.c (flag_loop_optimize, flag_crossjumping):
559 New static variables.
560 (rest_of_compilation): Conditionalize crossjumping and
561 loop optimizer.
562 (parse_options_and_default_flags): Default loop_optimize and
563 crossjumping.
564 (lang_independent_options): Add -fcrossjumping and -floop-optimize
565 * invoke.texi (crossjumping, loop-optimize): Document.
566
567 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
568
569 * real.c (eiisneg): Move outside #ifdef NANS.
570
571 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
572
573 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
574 frequencies match; avoid match on different loop depths.
575 (try_crossjump_to_bb): Kill tests that no longer brings time
576 savings.
577 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
578 updating code.
579 (split_edge): Likewise.
580
581 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
582 variable.
583
584 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
585 * cfgrtl.c: Include insn-config.h
586 (split_block) Dirtify block in presence of conditional execution
587
588 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
589
590 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
591 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
592 (function_arg): Constify CUMULATIVE_ARGS.
593 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
594 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
595 (UNITS_PER_DOUBLE): New macro.
596 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
597 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
598 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
599 fp_regs and stack_words.
600 (EABI_FLOAT_VARARGS_P): New macro.
601 * config/mips/mips.c (struct mips_arg_info): New.
602 (mips_arg_info): New function.
603 (function_arg_advance): Use it. Add adjustment instructions here
604 rather than in function_arg.
605 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
606 for VOIDmode at the beginning of the function.
607 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
608 (function_arg_pass_by_reference): Likewise.
609 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
610 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
611 (mips_va_start): Likewise. Use the new stack_words field of
612 CUMULATIVE_ARGS to set up overflow area. Reformat.
613 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
614 doubles and other types, aligning the overflow pointer for non-doubles
615 too. Remove some code duplication. Replace hard-coded constants.
616
617 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
618
619 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
620 (CLASS_UNITS): Undefine.
621 (CLASS_MAX_NREGS): Use FP_INC.
622 * config/mips/mips.c (compute_frame_size): Likewise.
623 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
624
625 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
626
627 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
628 prototype, and handle lexing numbers and identifiers.
629 (parse_identifier): Update to new form of parse_slow.
630 (parse_number): Fast path only, use parse_slow otherwise.
631 (_cpp_lex_direct): Update calls to parse_number.
632
633 2002-03-21 DJ Delorie <dj@redhat.com>
634
635 * bb-reorder.c (make_reorder_chain_1): Protect against
636 when redundant edges are omitted.
637 * predict.c (dump_prediction): Likewise.
638
639 2002-03-21 Richard Henderson <rth@redhat.com>
640
641 PR target/5996
642 * fixinc/inclhack.def (solaris_stdio_tag): New.
643 * fixinc/fixincl.x: Regenerate.
644
645 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
646
647 PR c/5597
648 * c-typeck.c (process_init_element): Flag non-static
649 initialization of a flexible array member as illegal.
650
651 2002-03-22 Alan Modra <amodra@bigpond.net.au>
652
653 * config/rs6000/t-linux64: New.
654 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
655 t-ppccomm. Use t-rs6000 and t-linux64.
656 (powerpc64-*-gnu* <tmake_file>): Likewise.
657 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
658 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
659 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
660
661 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
662
663 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
664 flag_really_no_inline instead of optimize == 0.
665
666 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
667
668 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
669
670 * flags.h (flag_really_no_inline): New.
671
672 * c-common.c (c_common_post_options): Initialzie
673 flag_really_no_inline.
674
675 * toplev.c (flag_really_no_inline): New.
676
677 2002-03-21 Jakub Jelinek <jakub@redhat.com>
678
679 * config/avr/avr.md (length): Fix length computation for
680 conditional branches.
681
682 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
683
684 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
685 sdbout.o, profile.o): Update.
686 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
687 langhook.
688 * c-common.h (gettags): Move here from tree.h.
689 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
690 insert_block, getdecls, kept_level_p, global_bindings_p): New.
691 * dbxout.c (dbxout_init): Use getdecls langhook.
692 * expr.c (expand_expr): Use insert_block langhook.
693 * fold-const.c: Include langhooks.h.
694 (fold_range_test, fold_binary_op_with_conditional_arg,
695 fold): Use global_bindings_p langhook.
696 * integrate.c (expand_inline_function): Use insert_block langhook.
697 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
698 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
699 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
700 LANG_HOOKS_GETDECLS): New.
701 (LANG_HOOKS_INITIALIZER): Update.
702 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
703 langhook.
704 * langhooks.h (struct lang_hooks_for_decls): New.
705 (struct lang_hooks): Update.
706 * profile.c: Include langhooks.h.
707 (output_func_start_profiler): Use new langhooks.
708 * sdbout.c: Include langhooks.h.
709 (sdbout_init, sdbout_finish): Use getdecls langhook.
710 * stmt.c: Include langhooks.h.
711 (expand_fixup, fixup_gotos): Use new langhooks.
712 * stor-layout.c: Include langhooks.h.
713 (variable_size): Use global_bindings_p langhook.
714 * toplev.c (compile_file): Use getdecls langhook.
715 * tree-inline.c (remap_block): Use insert_block langhook.
716 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
717 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
718
719 2002-03-21 Richard Henderson <rth@redhat.com>
720
721 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
722 constants in .data when -fpic.
723
724 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
725
726 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
727 where appropriate.
728
729 2002-03-21 Tom Tromey <tromey@redhat.com>
730
731 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
732
733 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
734
735 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
736
737 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
738
739 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
740 Richard Henderson <rth@redhat.com>
741
742 PR c/5354
743 * c-common.c (c_expand_expr): Preserve result of a statement
744 expression if needed.
745
746 2002-03-21 Jakub Jelinek <jakub@redhat.com>
747
748 PR bootstrap/4195
749 * genrecog.c (maybe_both_true_mode): Remove.
750 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
751 * machmode.def (Pmode): Likewise.
752
753 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
754
755 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
756 (nonlocal_mentioned_p_1): New function.
757 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
758 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
759 (mark_constant_function): Recognize pure functions.
760 * rtl.h (global_reg_mentioned_p): New prototype.
761 * rtlanal.c (global_reg_mentioned_p,
762 global_reg_mentioned_p_1): New function.
763
764 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
765
766 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
767 UNIX assert.h.
768 * fixinc/fixincl.x: Regenerate.
769
770 2002-03-20 Jason Merrill <jason@redhat.com>
771
772 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
773
774 2002-03-20 Michael Meissner <meissner@redhat.com>
775
776 * doc/invoke.texi (Optimize Options): Document that -O2 sets
777 -fstrict-aliasing.
778
779 2002-03-20 Bob Wilson <bob.wilson@acm.org>
780
781 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
782 ".literal_position" directive before the constant pool.
783
784 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
785
786 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
787 Add Craig Rodrigues.
788 Add Brad Lucier to testers.
789
790 2002-03-20 Jakub Jelinek <jakub@redhat.com>
791
792 PR target/4792
793 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
794 to if_then_else.
795 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
796 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
797 instead of insn_extract.
798
799 2002-03-20 Jakub Jelinek <jakub@redhat.com>
800
801 PR bootstrap/4192
802 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
803
804 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
805 stmt if some case has been output.
806
807 2002-03-20 Jakub Jelinek <jakub@redhat.com>
808
809 PR c/5972
810 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
811 movsfcc_1, movdfcc_1): Add %O2.
812 * config/i386/i386.c (print_operand): Handle %ON.
813 Print . before float condition codes in Sun as cmov syntax.
814 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
815 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
816 no longer true.
817
818 2002-03-20 Philip Blundell <pb@nexus.co.uk>
819
820 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
821 return instruction if PC was popped.
822
823 2002-03-20 Bob Wilson <bob.wilson@acm.org>
824
825 * config/xtensa/xtensa.md: Remove unused type attributes.
826 (adddi_carry, subddi_carry): Change type attribute to "multi".
827
828 2002-03-19 Dale Johannesen <dalej@apple.com>
829
830 PR optimization/5999, middle-end/5731
831 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
832 multiplications by reciprocals.
833
834 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
835
836 * Makefile.in: Update.
837 * c-common.c: Include langhooks.h.
838 (inline_forbidden_p): Use new hook.
839 * diagnostic.c: Include langhooks.h.
840 (format_with_decl, announce_function,
841 default_print_error_function): Use new hook.
842 * dwarf2out.c (dwarf2_name): Use new hook.
843 * function.c: Include langhooks.h.
844 (init_function_start): Use new hook.
845 * langhooks-def.h (lhd_decl_printable_name): New.
846 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
847 (LANGHOOKS_INITIALIZER): Update.
848 * langhooks.c (lhd_decl_printable_name): New.
849 * langhooks.h (struct lang_hooks): New hook.
850 * toplev.c (decl_name, decl_printable_name): Remove.
851 (open_dump_file): Use new hook.
852 (process_options): Remove old hook.
853 * tree.h (decl_printable_name): Remove.
854 objc:
855 * objc-act.c (objc_init): Remove old hook.
856 (objc_printable_name): Export.
857 * objc-act.h (objc_printable_name): New.
858 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
859
860 2002-03-19 Jim Blandy <jimb@redhat.com>
861
862 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
863 the start_source_file debug hook, not the current line number.
864
865 2002-03-19 Richard Henderson <rth@redhat.com>
866
867 * flow.c (EH_USES): Provide default.
868 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
869 * doc/tm.texi (EH_USES): New.
870
871 * config/ia64/ia64.c (ia64_eh_uses): New.
872 * config/ia64/ia64-protos.h: Update.
873 * config/ia64/ia64.h (EH_USES): New.
874
875 2002-03-19 Richard Henderson <rth@redhat.com>
876
877 * varasm.c (output_constant_def): Fix stupid typo.
878
879 2002-03-19 Richard Henderson <rth@redhat.com>
880
881 PR 5879
882 * except.c (current_function_has_exception_handlers): New.
883 * except.h: Declare it.
884 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
885 Combine tests that disable all sibcalls for the function.
886
887 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
888
889 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
890 for INTEGER_CST.
891
892 2002-03-19 Richard Henderson <rth@redhat.com>
893
894 PR 5977, 5991
895 * config/ia64/ia64.c: Revert 2002-03-01 patch.
896 * config/ia64/ia64.h (INIT_EXPANDERS): New.
897
898 2002-03-19 Jim Blandy <jimb@redhat.com>
899
900 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
901 name, even if the replacement list contains no tokens, as required
902 by Dwarf.
903
904 2002-03-19 Jason Merrill <jason@redhat.com>
905
906 * varasm.c (globalize_decl): Get the name from the RTL, not
907 DECL_ASSEMBLER_NAME.
908
909 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
910
911 2002-03-19 Bob Wilson <bob.wilson@acm.org>
912
913 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
914 subdi_carry): Define.
915
916 2002-03-19 David Edelsohn <edelsohn@gnu.org>
917
918 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
919 about -fpic/-fPIC if extra_warnings set.
920
921 2002-03-19 David Edelsohn <edelsohn@gnu.org>
922
923 * expr.c (expand_expr): Sign-extend CONST_INT generated from
924 TREE_STRING_POINTER.
925 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
926
927 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
928
929 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
930 in favor of SP if FRAME_POINTER_REQUIRED is false.
931
932 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
933
934 * emit-rtl.c (gen_int_mode): New function.
935 * rtl.h: Prototype for it.
936 * combine.c (make_extraction, simplify_comparison), expmed.c
937 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
938 (convert_modes, store_field), optabs.c (expand_fix),
939 simplify-rtx.c (neg_const_int, simplify_unary_real),
940
941 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
942 Use it instead of GEN_INT (trunc_int_for_mode (...)).
943
944 2002-03-19 Jakub Jelinek <jakub@redhat.com>
945
946 PR c/5656
947 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
948 convert_parm_for_inlining.
949 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
950 Define.
951 * langhooks-def.h: Likewise.
952 * objc/objc-lang.c: Likewise.
953 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
954 function.
955 * tree-inline.c (initialize_inlined_parameters):
956 Call convert_parm_for_inlining lang hook if needed.
957 * c-typeck.c (c_convert_parm_for_inlining): New function.
958 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
959
960 2002-03-18 Mark Mitchell <mark@codesourcery.com>
961
962 * calls.c (precompute_arguments): Do not assume that temporaries
963 can be destroyed after expanding the argument.
964 (expand_call): Likewise.
965
966 2002-03-15 Eric Christopher <echristo@redhat.com>
967
968 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
969 Fix register preference on last change.
970 * config/mips/mips.c (mips_return_in_memory): New function.
971 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
972 * config/mips/mips-protos.h: Declare.
973 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
974 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
975
976 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
977
978 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
979 a register too.
980 (anddi3, iorsi3): Likewise.
981
982 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
983 use %gprel for symbols that are going to be placed in linkonce
984 sections.
985
986 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
987 RETURN_ADDRESS_POINTER_REGNUM to $ra.
988 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
989 not needed. Disregard leaf_function_p().
990 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
991 mips16 frame pointer.
992 * config/mips/mips.md (store ra): Only to small SP offsets.
993 2001-08-22 Graham Stott <grahams@redhat.com>
994 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
995 return a REG rtx for the return address register.
996
997 2002-03-18 Bob Wilson <bob.wilson@acm.org>
998
999 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
1000 constant-pool addresses as "mode-dependent".
1001 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
1002
1003 2002-03-18 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR target/5740
1006 * expr.c (emit_group_load): Use extract_bit_field if
1007 needed for CONCAT arguments.
1008
1009 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
1010
1011 PR target/4863
1012 * arm.md (tablejump): Make this a define_expand. For PIC add the
1013 offset to the base of the table.
1014 (thumb_tablejump): Matcher for Thumb tablejump insn.
1015 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
1016 as the difference of two labels.
1017 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1018 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
1019 tables in the code.
1020 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
1021 * arm.c (get_jump_table_size): If the table is not in the text
1022 section, return zero.
1023
1024 2002-03-18 Bernd Schmidt <bernds@redhat.com>
1025
1026 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
1027 of gen_rtx_SUBREG.
1028 (arm_reload_out_hi): Use gen_lowpart instead of
1029 gen_rtx_SUBREG to access QImode components.
1030 * config/arm/arm.md: Disable zero_extend split for QImode
1031 subregs in BIG_ENDIAN mode.
1032 (storehi_bigend): Match use of least significant byte.
1033 (storeinthi): Remove extraneous SUBREG.
1034 Add missing construction of operands[2].
1035 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
1036 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
1037 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
1038
1039 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
1040
1041 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
1042 any_operand.
1043
1044 2002-03-17 Richard Henderson <rth@redhat.com>
1045
1046 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
1047 explicitly.
1048
1049 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
1050
1051 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
1052 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
1053
1054 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1055
1056 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
1057
1058 * predict.c (estimate_bb_frequencies): Delete unused variables.
1059
1060 2002-03-17 Richard Henderson <rth@redhat.com>
1061
1062 * config/ia64/ia64.c (ia64_attribute_table): Move before
1063 targetm definition. Make static.
1064
1065 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
1066
1067 * c-common.h (yyparse, c_common_parse_file): New.
1068 * c-lang.c: Include c-common.h.
1069 (LANG_HOOKS_PARSE_FILE): Redefine.
1070 * c-lex.c: Include c-common.h.
1071 (yyparse): Rename c_common_parse_file. Call yyparse.
1072 * c-parse.in (yyparse): Remove macro.
1073 * c-tree.h (yyparse_1): Remove.
1074 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
1075 (LANG_HOOKS_INITIALIZER): Update.
1076 * langhooks.h (struct lang_hoooks): New hook parse_file.
1077 * toplev.c (compile_file): Use parse_file hook.
1078 * tree.h (yyparse): Remove.
1079 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
1080
1081 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
1082
1083 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
1084 float_truncate, not fix.
1085 ("*truncdfsf2_real"): Ditto.
1086 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
1087
1088 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
1089
1090 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
1091
1092 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
1093 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
1094 where appropriate. Make the second reference to
1095 leaf_function_p a function call, as intended. Reindented.
1096
1097 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
1098 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
1099
1100 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
1101 add register to non-constant into sp.
1102
1103 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
1104 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
1105 (mips16_gp_pseudo_rtx): Lose.
1106 (INIT_EXPANDERS): Deleted.
1107 * config/mips/mips.c (mips_init_machine_status): New.
1108 (mips_free_machine_status): New.
1109 (mips_mark_machine_status): New.
1110 (override_options): Set them.
1111 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
1112 (struct machine_function): ... new. Replaced all references.
1113 (mips_add_gc_roots): Don't mark them.
1114 (embedded_pic_fnaddr_reg): New, extracted from...
1115 (embedded_pic_offset): ... here.
1116 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
1117 (movsi): Likewise.
1118
1119 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
1120
1121 * cppinit.c: Revert -MD removal.
1122
1123 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1124
1125 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
1126 soft registers by default for 68HC12.
1127 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
1128 when compiling with -fomit-frame-pointer.
1129 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
1130 (expand_epilogue): Likewise.
1131 (m68hc11_gen_rotate): Use exg when rotating by 8.
1132
1133 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1134
1135 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
1136 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
1137 (splits): Remove unused add splits.
1138 ("*addhi3_68hc12"): Tune constraints.
1139 ("addhi_sp"): Try to use X instead of Y in all cases and if the
1140 constant fits in 8-bits and D is dead use abx/aby instructions.
1141 ("*addhi3"): Remove extern declaration of ix_reg.
1142 ("*subsi3"): Optimize and provide new split.
1143 ("subhi3"): Cleanup.
1144 ("*subhi3_sp"): Avoid saving X if we know it is dead.
1145 (arith splits): For 68hc12 save the address register on the stack
1146 and do the arithmetic operation with a pop.
1147
1148 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1149
1150 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
1151 allocating QImode in address registers.
1152 ("*movqi_m68hc11"): Likewise.
1153
1154 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
1155
1156 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
1157
1158 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
1159
1160 * cppinit.c (print_help): Display -MD and -MMD.
1161 Don't display usage string. Update assertion syntax and
1162 typo.
1163 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
1164 (cpp_handle_option): Update.
1165
1166 2002-03-15 Chris Demetriou <cgd@broadcom.com>
1167
1168 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
1169 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
1170 and define it so that regardless of target CPU size,
1171 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
1172 of "int" rather than "long."
1173
1174 2002-03-15 Richard Henderson <rth@redhat.com>
1175
1176 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
1177 size as a tree.
1178
1179 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1180
1181 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
1182 ("tstqi" split): Avoid using memory for tstqi on address register.
1183 (splits): Remove constraints.
1184 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
1185 ("cmpdf", "cmpsf"): Remove since not used.
1186 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
1187 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
1188
1189 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1190
1191 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
1192 ("neghi2"): Tighten constraints.
1193 ("one_cmplsi2"): Optimize and simplify split.
1194 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
1195
1196 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1197
1198 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
1199 and split of AND operation to clear the upper bits.
1200 ("*logicalsi3_zextqi"): Likewise.
1201 ("*logicallhi3_zexthi_ashift8"): Likewise.
1202 ("*logicalsi3_silshr16"): Likewise.
1203 ("logicalsi3_silshl16"): Likewise.
1204 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
1205
1206 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1207
1208 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
1209 (m68hc11_indirect_p): New function.
1210 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
1211 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
1212 TARGET_M6812.
1213 (asm_print_register): Likewise.
1214 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
1215 (m68hc11_indirect_p): Declare.
1216 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
1217 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
1218 (TARGET_SWITCHES): New option -mrelax.
1219 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
1220 destination.
1221 ("iorsi3", "xorsi3"): Likewise.
1222 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
1223 ("*andhi3_mem"): New to handle destination in memory with bclr
1224 and a scratch register.
1225 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
1226 ("*andhi3_const"): New when operand2 is constant.
1227 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
1228 ("*andhi3_gen"): Cleanup of the old "andhi3".
1229 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
1230 ("xorqi3"): Update constraints.
1231
1232 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1233
1234 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
1235 for reg_equiv_memory_loc when the operand is a register that does
1236 not get a hard register (stack location).
1237 (tst_operand): After reload, accept all memory operand.
1238 (symbolic_memory_operand): Fix detection of symbolic references.
1239 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
1240 accept symbols and any constant.
1241
1242 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1243
1244 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
1245 note on the insn that sets the soft frame register.
1246 (must_parenthesize): ix and iy are also reserved names.
1247 (print_operand_address): One more place where parenthesis are required
1248 to avoid confusion with register names.
1249 (m68hc11_gen_movhi): Allow push of stack pointer.
1250 (m68hc11_check_z_replacement): Fix handling of parallel with a
1251 clobber.
1252 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
1253 the replacement register is.
1254 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
1255 and D8_REGS classes.
1256 (MODES_TIEABLE_P): All modes are tieable except QImode.
1257
1258 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1259
1260 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
1261 (___subdi3): Likewise.
1262 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
1263 (__map_data_section): Optimize 68hc11 case.
1264
1265 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1266
1267 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
1268 than a shift to avoid adding a register with itself.
1269 (m68hc11_memory_move_cost): Take into account NO_REGS.
1270 (m68hc11_register_move_cost): Update and use memory move cost
1271 for soft registers.
1272 (m68hc11_address_cost): Make cost of valid offset not 0 so that
1273 it gives more opportunities to cse to optimize.
1274 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
1275 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
1276
1277 2002-03-15 Mark Mitchell <mark@codesourcery.com>
1278
1279 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
1280 * c-common.def (CLEANUP_STMT): New tree node.
1281 * c-common.h (CLEANUP_DECL): New macro.
1282 (CLEANUP_EXPR): Likewise.
1283 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
1284 * expr.c (expand_expr): Tidy.
1285 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
1286 * tree-inline.c (initialize_inlined_parameters): Clean up
1287 new local variables.
1288
1289 2002-03-15 Jakub Jelinek <jakub@redhat.com>
1290
1291 PR bootstrap/4128
1292 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
1293 before movrXX only, use reg_overlap_mentioned_p.
1294 Only special case NE if just one insn can be generated.
1295
1296 2002-03-15 Jason Merrill <jason@redhat.com>
1297
1298 * varasm.c (assemble_variable): Call resolve_unique_section before
1299 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
1300 of error_mark_node.
1301
1302 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
1303
1304 PR target/5170
1305 * arm.md (split pattern for thumb shiftable immediates): Add comment
1306 explaining non-obvious test.
1307
1308 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
1309
1310 PR target/5712
1311 * arm.md (movaddr, movaddr_insn): Delete.
1312
1313 2002-03-15 Jason Merrill <jason@redhat.com>
1314
1315 * toplev.c (wrapup_global_declarations): Clarify variable handling.
1316 -fkeep-static-consts doesn't apply to comdats.
1317
1318 2002-03-14 Richard Henderson <rth@redhat.com>
1319
1320 * c-decl.c: Include c-pragma.h.
1321 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
1322 (finish_function): Tidy.
1323 * c-pragma.c: Include c-common.h.
1324 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
1325 (handle_pragma_weak): Use them.
1326 (init_pragma): Register pending_weaks.
1327 * c-pragma.h (maybe_apply_pragma_weak): Declare.
1328 * print-tree.c (print_node): Print DECL_WEAK.
1329 * varasm.c (mark_weak_decls): Remove.
1330 (remove_from_pending_weak_list): Remove.
1331 (add_weak): Remove.
1332 (asm_emit_uninitialised): Call globalize_decl for weak commons.
1333 (weak_decls): Make a tree_list.
1334 (declare_weak): Cons weak_decls directly.
1335 (globalize_decl): Remove weak_decls elements directly.
1336 (weak_finish): Simplify weak_decls walk. Don't weaken unused
1337 symbols. Don't pretend to handle aliases.
1338 (init_varasm_once): Update weak_decls registry.
1339 * Makefile.in: Update dependencies.
1340
1341 2002-03-14 Richard Henderson <rth@redhat.com>
1342
1343 PR target/5312
1344 * config/ia64/ia64.c: Include tm_p.h last.
1345 (gen_nop_type): Remove duplicate definition.
1346 (cycle_end_fill_slots): Set sched_data for second L slot.
1347 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
1348 (nop_cycles_until): Fix typos.
1349
1350 2002-03-15 Jakub Jelinek <jakub@redhat.com>
1351
1352 PR optimization/5891
1353 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
1354
1355 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
1356
1357 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
1358 descriptors correctly.
1359
1360 2002-03-14 Michael Meissner <meissner@redhat.com>
1361
1362 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
1363 100, allowing MAX_UNROLLED_INSNS to be overridden.
1364
1365 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
1366 --param.
1367
1368 * unroll.c (params.h): Include.
1369 (MAX_UNROLLED_INSNS): Delete, now in params.h.
1370
1371 * doc/invoke.texi (--param max-unroll-insns): Document.
1372
1373 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
1374
1375 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
1376
1377 * arm.md: Fix warnings about constraints in peepholes and splits.
1378
1379 2002-03-14 Zack Weinberg <zack@codesourcery.com>
1380
1381 * cpphash.h (struct lexer_state): Remove line_extension member.
1382 * cpplib.c (dequote_string, do_linemarker): New functions.
1383 (linemarker_dir): New data object.
1384 (DIRECTIVE_TABLE): No longer need to interpret #line in
1385 preprocessed source. Delete obsolete comment about return
1386 values of handlers.
1387 (end_directive, directive_diagnostics, _cpp_handle_directive):
1388 Don't muck with line_extension.
1389 (directive_diagnostics): No need to issue warnings for
1390 linemarkers here.
1391 (_cpp_handle_directive): Issue warnings for linemarkers here,
1392 when appropriate. Dispatch linemarkers to do_linemarker, not
1393 do_line.
1394 (do_line): Code to handle linemarkers split out to do_linemarker.
1395 Convert escape sequences in filename argument, both places.
1396
1397 * cppmacro.c (quote_string): Rename cpp_quote_string and
1398 export. All callers changed.
1399 * cpplib.h (cpp_quote_string): Prototype.
1400 * cppmain.c (print_line): Call cpp_quote_string on to_file
1401 before printing it.
1402
1403 * doc/cpp.texi: Document that escapes are now interpreted in
1404 #line and in linemarkers, and that non-printing characters are
1405 converted to octal escapes when linemarkers are generated.
1406
1407 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
1408
1409 * emit-rtl.c (try_split): Use delete_insns.
1410 * recog.c (split_all_insns): Fix terminating condition.
1411
1412 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
1413 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1414
1415 PR target/5828
1416 * arm.c (arm_output_epilogue): Fix floating-point register save
1417 adjustment when using a frame pointer.
1418
1419 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
1420
1421 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
1422 * config/mips/mips.c (compute_frame_size): Retrofit them here.
1423 (save_restore_insns, mips_expand_epilogue): And here.
1424 (build_mips16_call_stub): And here.
1425 (mips_function_value): Use the new macros to decide whether a single
1426 or complex float can be returned in floating-point registers. Return
1427 a parallel rtx in the complex case.
1428
1429 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
1430
1431 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
1432 call after liveness analysis.
1433
1434 * recog.c (split_insn): Use delete_insn_and_edges.
1435
1436 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
1437 instructions to have branch prediction notes.
1438 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
1439
1440 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
1441
1442 * configure.in: Don't pass -Wno-long-long to a ADA compiler
1443 that doesn't support it.
1444 * configure: Regenerate.
1445
1446 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1447
1448 PR target/5626
1449 * config/sparc/sparc.md (normal_branch, inverted_branch,
1450 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
1451 inverted_fp_branch): Adjust calls to output_cbranch.
1452 Set length attribute.
1453 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
1454 output_v9branch. Set length attribute.
1455 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
1456 predicates.
1457 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
1458 (output_cbranch): Likewise. Handle far branches.
1459 (output_v9branch): Handle far branches.
1460 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
1461 Adjust prototypes.
1462 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
1463 noov_compare64_op predicates.
1464
1465 2002-03-13 Jason Merrill <jason@redhat.com>
1466
1467 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
1468 into the function and constify it.
1469 * gthr-dce.h, gthr-solaris.h: Likewise.
1470
1471 2002-03-13 David Edelsohn <edelsohn@gnu.org>
1472
1473 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
1474 * config/rs6000/rs6000.c (rs6000_va_arg): Use
1475 std_expand_builtin_va_arg if not ABI_V4.
1476
1477 2002-03-13 Jason Merrill <jason@redhat.com>
1478
1479 * varasm.c (globalize_decl): New fn.
1480 (assemble_start_function): Use it.
1481 (asm_emit_uninitialized): Use it.
1482 (assemble_alias): Use it.
1483 (assemble_variable): Use it.
1484
1485 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
1486
1487 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
1488 2002-03-12 internal visibility change.
1489 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
1490 visibility into SYMBOL_REF_FLAG.
1491
1492 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
1493
1494 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
1495 VOIDmode operand. Add compile-time optimization for constant results.
1496
1497 2002-03-12 Jason Merrill <jason@redhat.com>
1498
1499 * c-typeck.c (convert_for_assignment): Don't allow conversions
1500 between pointers and references. Only allow lvalues to convert to
1501 reference.
1502
1503 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
1504
1505 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
1506 before prologue, to avoid scheduling problems.
1507
1508 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1509
1510 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
1511 (ELIMINABLE_REGS): Add sfp->sp.
1512 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
1513
1514 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1515
1516 PR optimization/5892
1517 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
1518
1519 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1520
1521 * loop.c (basic_induction_var): Don't call convert_modes if mode
1522 classes are different.
1523
1524 2002-03-12 Richard Henderson <rth@redhat.com>
1525
1526 PR optimization/5901
1527 * function.c (reposition_prologue_and_epilogue_notes): Position
1528 the markers after/before the last/first insn not deleted.
1529
1530 2002-03-12 Richard Henderson <rth@redhat.com>
1531
1532 PR optimization/5878
1533 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
1534 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
1535 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1536
1537 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
1538 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
1539 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
1540
1541 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
1542 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
1543 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
1544 also. Don't set it if not flag_pic.
1545 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
1546 to be INVALID_REGNUM when not used.
1547
1548 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
1549
1550 * expmed.c (store_bit_field): Reset alias set for memory.
1551 (extract_bit_field): Same.
1552
1553 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1554
1555 * c-common.c (c_tree_code_type, c_tree_code_length,
1556 c_tree_code_name, add_c_tree_codes): Delete.
1557 * c-common.h (add_c_tree_codes): Delete.
1558 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
1559 Define.
1560 * c-objc-common.c (c_objc_common_init): Don't call
1561 add_c_tree_codes, instead set lang_unsafe_for_reeval.
1562 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
1563 objc_tree_code_name, add_objc_tree_codes): Delete.
1564 (objc_init): Don't call add_objc_tree_codes.
1565 * objc/objc-lang.c (tree_code_type, tree_code_length,
1566 tree_code_name): Define.
1567 * toplev.c (lang_independent_init): Don't set
1568 tree_code_length[IDENTIFIER_NODE].
1569 * tree.c (tree_code_type, tree_code_length, tree_code_name):
1570 Delete definitions, moved to language front-ends.
1571 * tree.def (IDENTIFIER_NODE): Hardwire the length.
1572 * tree.h (tree_code_type, tree_code_length, tree_code_name):
1573 Const-ify.
1574 (tree_code_length): Change type to unsigned char.
1575
1576 2002-03-12 Richard Henderson <rth@redhat.com>
1577
1578 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
1579 internal visibility change.
1580
1581 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1582
1583 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
1584 validize_mem() instead of change_address to avoid clobbering
1585 memory attributes.
1586
1587 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
1588
1589 * c-lex.h (position_after_whitespace): Remove.
1590
1591 2002-03-12 Jakub Jelinek <jakub@redhat.com>
1592
1593 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
1594 (lex_string): Use unsigned char pointers.
1595
1596 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
1597
1598 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
1599 is not a valid memory_operand.
1600
1601 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1602
1603 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
1604 * config/xtensa/lib1funcs.asm: Fix copyright to include
1605 special case for libgcc files.
1606 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
1607 (__divsi3): Likewise.
1608 (__umodsi3): Likewise.
1609 (__modsi3): Likewise.
1610 * config/xtensa/lib2funcs.S: Fix copyright to include
1611 special case for libgcc files.
1612
1613 2002-03-12 Tom Rix <trix@redhat.com>
1614
1615 * collect2.c (resolve_lib_name): Move outside of
1616 OBJECT_FORMAT_COFF ifdef.
1617 (ignore_library): Same.
1618
1619 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1620
1621 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
1622
1623 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1624
1625 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
1626 to function_section before writing out the constant pool.
1627
1628 2002-03-12 David Edelsohn <edelsohn@gnu.org>
1629
1630 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
1631 zero_constant.
1632 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
1633
1634 2002-03-12 Alan Modra <amodra@bigpond.net.au>
1635
1636 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
1637 (adddi3): Likewise.
1638 (movdf): Likewise.
1639 (movdi): Likewise.
1640 (cmpsi splitter): Likewise.
1641 (modsi3): Fail if <= 0.
1642 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
1643 redundant test when HOST_BITS_PER_WIDE_INT != 32.
1644 (reg_or_sub_cint64_operand): Likewise.
1645 (num_insns_constant_wide): Optimize sign extension.
1646 (rs6000_legitimize_address): Likewise.
1647
1648 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
1649
1650 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1651 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1652
1653 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
1654
1655 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
1656 address calculation.
1657
1658 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
1659
1660 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
1661 scratch register to DImode / TImode.
1662 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
1663 register used does not overlap the target.
1664
1665 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1666
1667 * Makefile.in (debug.o): Depend on debug.h.
1668 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
1669 * debug.c (do_nothing_debug_hooks): Likewise.
1670 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
1671 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
1672 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
1673 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1674 * dwarfout.c (dwarf_debug_hooks): Likewise.
1675 * integrate.c (output_inline_function): Likewise.
1676 * objc/objc-act.c (synth_module_prologue): Likewise.
1677 * sdbout.c (sdb_debug_hooks): Likewise.
1678 * toplev.c (debug_hooks): Likewise.
1679 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1680
1681 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1682
1683 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
1684 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
1685 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
1686 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
1687 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
1688 * defaults.h (POINTER_SIZE): Define.
1689 * doc/tm.texi (POINTER_SIZE): Document default.
1690
1691 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1692
1693 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
1694
1695 2002-03-11 Richard Henderson <rth@redhat.com>
1696
1697 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
1698 if rebuild_label_notes_after_reload.
1699
1700 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
1701
1702 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
1703 emit pic register load if "internal" visibility.
1704 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
1705 (cris_expand_builtin_va_arg): Do all computations on trees.
1706
1707 2002-03-11 Richard Henderson <rth@redhat.com>
1708
1709 * rtlanal.c: Include recog.h.
1710 (keep_with_call_p): Fix thinko.
1711 * Makefile.in (rtlanal.o): Update dependencies.
1712
1713 2002-03-11 Chris Meyer <cmeyer@gatan.com>
1714
1715 * genflags.c (gen_insn): Use IS_VSPACE.
1716 * genoutput.c (output_insn_data): Likewise.
1717 (process_template): Likewise.
1718
1719 2002-03-11 Richard Henderson <rth@redhat.com>
1720
1721 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
1722
1723 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
1724
1725 * Makefile.in: Update.
1726 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
1727 Update documentation.
1728 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
1729 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
1730
1731 2002-03-11 Zack Weinberg <zack@codesourcery.com>
1732
1733 * Makefile.in: Give texi2pod its input file as a command line
1734 argument, not on stdin.
1735
1736 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
1737 Daniel Berlin <dan@dberlin.org>
1738
1739 C++ alias analysis improvement.
1740 * alias.c (record_component_aliases): Record aliases for base
1741 classes too.
1742
1743 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1744
1745 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
1746
1747 2002-03-11 Douglas B Rupp <rupp@gnat.com>
1748
1749 * toplev.c (vms_fopen): Remove, not needed.
1750
1751 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
1752
1753 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
1754
1755 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
1756 for FP, already done later.
1757
1758 * toplev.c (debug_args): Add entry for VMS_DEBUG.
1759 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
1760
1761 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
1762
1763 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
1764 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
1765 LARGEST_EXPONENT_IS_NORMAL for the given mode.
1766 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
1767 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
1768 (ediv, emul, eldexp, esqrt): Likewise.
1769 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
1770 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
1771 (saturate): New function.
1772 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
1773 (make_nan): Use a saturation value instead of a NaN if
1774 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
1775 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
1776 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
1777 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
1778 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
1779 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
1780 !ROUND_TOWARDS_ZERO.
1781 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
1782 (ROUND_TOWARDS_ZERO): Document.
1783
1784 2002-03-11 Andreas Jaeger <aj@suse.de>
1785
1786 * cfg.c (dump_flow_info): Remove unused variable.
1787
1788 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
1789
1790 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
1791 computations on trees.
1792
1793 2002-03-10 Richard Henderson <rth@redhat.com>
1794
1795 PR 5693:
1796 * reload.c (copy_replacements_1): New.
1797 (copy_replacements): Use it to recurse through the rtx.
1798
1799 2002-03-10 Richard Henderson <rth@redhat.com>
1800
1801 * loop.c (strength_reduce): Compute number of iterations as
1802 unsigned HOST_WIDE_INT.
1803
1804 2002-03-10 Richard Henderson <rth@redhat.com>
1805
1806 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
1807 to move away from the end of the block.
1808
1809 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1810
1811 PR preprocessor/5899
1812 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
1813
1814 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1815
1816 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
1817
1818 * attribs.c (decl_attributes): Fix signed/unsigned warning.
1819
1820 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
1821
1822 * config/mmix/mmix.c: Improve comments.
1823 (mmix_target_asm_function_prologue): Drop variable
1824 empty_stack_frame. Don't allocate unused slot above fp.
1825 (mmix_target_asm_function_epilogue): Mirror prologue changes.
1826 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
1827 brace in first column.
1828 (enum reg_class): Ditto.
1829 (FIRST_PARM_OFFSET): Now 0.
1830 (USER_LABEL_PREFIX): Remove #if 0:d definition.
1831
1832 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1833
1834 * combine.c (make_extraction): Fix error in last change.
1835
1836 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1837
1838 * c4x.c (c4x_fp_reglist): Const-ify.
1839 * cris.c (cris_print_operand): Likewise.
1840 * i386.c (ix86_va_arg): Likewise.
1841 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
1842 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
1843 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
1844 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
1845 * mcore.h (regno_reg_class): Likewise.
1846 * mips.c (gen_int_relational): Likewise.
1847 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
1848 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
1849 * pdp11.c (move_costs): Likewise.
1850 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
1851 * s390.c (s390_branch_condition_mnemonic, regclass_map):
1852 Likewise.
1853 * s390.h (regclass_map): Likewise.
1854 * sh.c (shift_amounts): Likewise.
1855 * sh.md (rotlsi3): Likewise.
1856
1857 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1858
1859 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
1860 (ne0+5): Use new clobber to generate proper shift pattern.
1861 Patch by Michael Matz <matz@kde.org>.
1862
1863 2002-03-09 Andreas Schwab <schwab@suse.de>
1864
1865 * gcc.c (validate_all_switches): Also handle `%W{...}'.
1866
1867 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1868
1869 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
1870
1871 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1872
1873 PR middle-end/5877
1874 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
1875 even for non-representable constants.
1876
1877 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1878
1879 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
1880 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
1881 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
1882 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
1883 (pop_function_context): Compute MAY_SHARE parameter for
1884 fixup_var_refs.
1885 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
1886 (gen_mem_addressof): Call fixup_var_refs with new parm.
1887
1888 * combine.c (make_extraction): Don't make extension of CONST_INT.
1889
1890 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1891
1892 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
1893 in o32 and o64 ABIs.
1894 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
1895 but getting fixed-size structs passed in registers regardless of
1896 padding in o32 and o64 ABIs.
1897
1898 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
1899 offset before loading address of argument passed by transparent
1900 reference.
1901
1902 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1903
1904 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
1905
1906 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1907
1908 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
1909 marker such that registers after it are saved.
1910
1911 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1912
1913 * sparc.c (arith_4096_operand): Fix error in last change.
1914
1915 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1916
1917 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
1918 defaults for MEABI.
1919
1920 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1921
1922 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
1923 vectors.
1924
1925 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1926
1927 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
1928
1929 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
1930
1931 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
1932 removed; fix return value.
1933 * combine.c (combine_instructions): Dirtify blocks where we failed to
1934 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
1935 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
1936
1937 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1938
1939 * gcse.c (insert_insn_end_bb): Fix typo in last change.
1940
1941 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
1942
1943 * recog.c (peephole2_optimize): Re-distribute EH edges.
1944
1945 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
1946
1947 * expr.c (expand_expr): Use unsave lang hook.
1948 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
1949 (LANG_HOOKS_INITIALIZER): Update.
1950 * langhooks.h (struct lang_hooks): New hook unsave.
1951 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
1952 (unsave_expr_1): Remove unused lang_unsave_expr_now.
1953 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
1954 (unsave_expr_now): Remove.
1955 * tree.h (unsave_expr_now, lang_unsave,
1956 lang_unsave_expr_now): Remove.
1957 (lhd_unsave): New.
1958
1959 2002-03-08 Andreas Jaeger <aj@suse.de>
1960
1961 * flow.c (propagate_block_delete_insn): Remove unused variable.
1962
1963 2002-03-08 Kazu Hirata <kazu@hxi.com>
1964
1965 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
1966 insn length for memory load/store.
1967
1968 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1969
1970 * doc/install.texi (--with-libiconv-prefix): Document.
1971
1972 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
1973
1974 * doc/sourcebuild.texi: Fix typo.
1975
1976 2002-03-08 Jakub Jelinek <jakub@redhat.com>
1977
1978 PR c/3711
1979 * builtins.c (std_expand_builtin_va_arg): Do all computations on
1980 trees.
1981
1982 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1983
1984 * rtl.c (copy_most_rtx): Move from here ...
1985 * emit-rtl.c (copy_most_rtx): ... to here.
1986
1987 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1988
1989 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
1990 SUBTARGET_CPP_SIZE_SPEC.
1991 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
1992
1993 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
1994
1995 2002-03-07 Matt Hiller <hiller@redhat.com>
1996
1997 * gensupport.c (first_dir_md_include): Renamed from include;
1998 change all references.
1999 (last_dir_md_include): Renamed from last_include; change all
2000 references.
2001 (init_md_reader): Unconditionally initialize base_dir whether or
2002 not filename is a relative path.
2003
2004 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
2005
2006 * config/fp-bit.c (_unord_f2): Compile it in even if
2007 US_SOFTWARE_GOFAST is enabled.
2008
2009 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
2010 NULL_RTX. Set all HFmode operations as NULL_RTX.
2011 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
2012 NULL_RTX, try reversing the comparison and the operands.
2013
2014 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2015
2016 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
2017 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
2018 and MATCH_OP_DUP.
2019
2020 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
2021
2022 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
2023
2024 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
2025
2026 * basic-block.h (fixup_abnormal_edges): Declare.
2027 * reload1.c (fixup_abnormal_edges): New function.
2028 * reg-stack.c (convert_regs): Use it.
2029
2030 * gcse.c (insert_insn_end_bb): Handle trapping insns.
2031
2032 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
2033
2034 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
2035
2036 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
2037 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
2038 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
2039 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
2040 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
2041 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
2042 unless x and y could be infinite.
2043 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
2044 Check that the common type of both arguments is a real, even for
2045 targets without unordered comparisons. Allow an integer argument
2046 to be compared against a real.
2047 (expand_tree_builtin): Use expand_unordered_cmp.
2048 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
2049 * cse.c (fold_rtx): Likewise. Fix indentation.
2050 * fold-const.c (fold_real_zero_addition_p): New.
2051 (fold): Use it, and the new HONOR_... macros.
2052 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
2053 * jump.c (reversed_comparison_code_parts): After searching for
2054 the true comparison mode, use HONOR_NANS to decide whether it
2055 can be safely reversed.
2056 (reverse_condition_maybe_unordered): Remove IEEE check.
2057 * simplify-rtx.c (simplify_binary_operation): Use the new macros
2058 to decide which simplifications are valid. Allow the following
2059 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
2060 and (a - -b) to (a + b).
2061 (simplify_relational_operation): Use HONOR_NANS.
2062 * doc/tm.texi: Document the MODE_HAS_... macros.
2063
2064 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2065
2066 * combine.c (simplify_comparison): If simplifying a logical shift
2067 right and compare with constant, force the comparison to unsigned.
2068
2069 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
2070
2071 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
2072
2073 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
2074 -mabi=no-altivec
2075 (alt_reg_names): Remove % for vrsave.
2076
2077 2002-03-06 Richard Henderson <rth@redhat.com>
2078
2079 PR optimization/5844
2080 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
2081 if used indicates we've already emitted one copy of an operand.
2082 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
2083 (gen_split): Supply a non-null used.
2084
2085 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2086
2087 * reload1.c (reload): Unshare all rtl after reload is done.
2088
2089 * simplify-rtx.c (simplify_plus_minus): Do not abort,
2090 but simply fail if the expression is too complex to simplify.
2091 (simplify_gen_binary): Handle simplify_plus_minus failures.
2092
2093 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
2094
2095 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
2096 consistently call delete_trivially_dead_insns after CSE and GCSE;
2097 fix DFI_life dumping; do jump threading after liveness; do crossjumping
2098 after liveness2; update comment in last crossjumping.
2099 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
2100
2101 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
2102
2103 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
2104 after completing fast dead code elimination.
2105
2106 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
2107 COMPARE operator.
2108
2109 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
2110
2111 * version.c: Fix misplaced leading blanks on first line.
2112
2113 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
2114
2115 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
2116
2117 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
2118
2119 * cfgcleanup.c (mentions_nonequal_regs): New function.
2120 (thread_jump): Use it.
2121 * toplev.c (rest_of_compilation): Run jump threading after
2122 liveness.
2123
2124 2002-03-06 Jakub Jelinek <jakub@redhat.com>
2125
2126 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
2127 patch.
2128
2129 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
2130
2131 * predict.c (estimate_bb_frequencies): Do not reload the
2132 frequencies from notes.
2133
2134 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
2135
2136 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
2137 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
2138
2139 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
2140 delete_noop_moves): Return indeger.
2141 * flow.c (ndead): New variable.
2142 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
2143 BB argument; update callers.
2144 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
2145 (life_analysis): Do not call purge_all_dead_edges.
2146 (update_life_info): Return number of deleted insns; print statistics.
2147 (update_life_info_in_dirty_blocks): likewise.
2148 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
2149 return number of insns deleted.
2150
2151 * cse.c: Include timevar.h
2152 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
2153 iterate until stabilizes; print statistics; return number of killed
2154 insns.
2155 * Makefile.in: (cse.o): Add timevar.h dependency
2156 * rtl.h (delete_trivially_dead_insns): New.
2157 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
2158 * toplev.c (rest_of_compilation): Update callers.
2159
2160 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
2161 (try_optimize_cfg): Do not update liveness.
2162 (cleanup-cfg): Loop until try_optimize_cfg and dead code
2163 removal stabilizes; use delete_trivially_dead_insns.
2164
2165 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
2166
2167 2002-03-05 Zack Weinberg <zack@codesourcery.com>
2168
2169 * cppmain.c (setup_callbacks): Disable #pragma and #ident
2170 callbacks when processing assembly language.
2171
2172 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2173
2174 * pa.h (ASM_FILE_END): Define.
2175 * som.h (ASM_FILE_END): Delete.
2176
2177 * pa.c (function_arg): Don't pass floats in general registers in
2178 indirect calls if TARGET_ELF32.
2179
2180 2002-03-05 Richard Henderson <rth@redhat.com>
2181
2182 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
2183
2184 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
2185
2186 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
2187
2188 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2189
2190 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
2191 -r command line. Don't hide any symbols if not building
2192 shared libgcc.
2193
2194 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
2195
2196 * cfg.c (dump_flow_info): Warn about profile mismatches.
2197 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
2198 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
2199
2200 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2201
2202 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
2203 wide volatile memory by parts.
2204
2205 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2206
2207 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
2208 is NULL.
2209
2210 2002-03-05 Richard Henderson <rth@redhat.com>
2211
2212 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
2213
2214 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
2215
2216 * toplev.c (documented_lang_options): Document more
2217 language-specific options.
2218 * doc/invoke.texi (Warning Options): Correct documentation for
2219 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
2220 * c-decl.c (c_decode_option): Use a table to handle warning options.
2221
2222 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
2223
2224 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
2225 parameter to mmix_encode_section_info.
2226 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
2227 relocatably. Always produce ELF, not mmo if linking relocatably.
2228 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
2229 first is non-zero, don't add symbol prefix.
2230 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
2231 prototype accordingly.
2232
2233 2002-03-04 Krister Walfridsson <cato@df.lth.se>
2234
2235 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
2236
2237 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
2238
2239 * configure.in: Increase required makeinfo version to 4.1.
2240 * configure: Regenerate.
2241
2242 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
2243
2244 * .cvsignore: Remove *.info* and genrtl*; these files are generated
2245 elsewhere now.
2246
2247 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
2248
2249 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
2250 * doc/invoke.texi: Fix @math uses.
2251
2252 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
2253
2254 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
2255 removal
2256
2257 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
2258
2259 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
2260 (powerpc-*-eabisimaltivec*): Same.
2261
2262 * config/rs6000/t-ppcendian: New.
2263
2264 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2265
2266 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
2267 nonimmediate_src_operand and nonimmediate_lsrc_operand to
2268 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
2269
2270 2002-03-03 Richard Henderson <rth@redhat.com>
2271
2272 * toplev.c (rest_of_decl_compilation): Revert last two changes.
2273
2274 2002-03-03 Zack Weinberg <zack@codesourcery.com>
2275
2276 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
2277 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
2278 tree.c, config/m68k/m68k.c:
2279 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
2280 REAL_ARITHMETIC blocks unconditional. Delete some further
2281 #ifdef blocks predicated on REAL_ARITHMETIC.
2282 * flags.h, toplev.c: Delete remaining references to
2283 flag_pretend_float.
2284
2285 * doc/invoke.texi: Remove documentation of -fpretend-float.
2286 * doc/tm.texi: Describe the various REAL_* macros as provided by
2287 real.h, not by the target configuration files.
2288
2289 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
2290 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
2291 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
2292 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
2293 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
2294 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
2295 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
2296 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
2297 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
2298 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
2299 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
2300 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2301 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
2302 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
2303 config/xtensa/xtensa.h:
2304 Do not define, undefine, or mention in comments any of
2305 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
2306 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
2307 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
2308 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
2309 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
2310 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
2311 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
2312 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
2313 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
2314
2315 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2316
2317 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
2318 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
2319 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
2320 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
2321 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
2322 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
2323 Delete.
2324 * defaults.h (BITS_PER_WORD): Define.
2325 * doc/tm.texi (BITS_PER_WORD): Document default value.
2326
2327 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
2328 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
2329 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
2330
2331 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2332
2333 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
2334 lieu of explicit sizeof/sizeof.
2335 * i386.c (override_options, ix86_init_mmx_sse_builtins,
2336 ix86_expand_builtin): Likewise.
2337 * mips.c (mips_add_gc_roots): Likewise.
2338 * mmix.c (mmix_output_condition): Likewise.
2339 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
2340 altivec_init_builtins): Likewise.
2341 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
2342 * cppexp.c (Nsuff, parse_number): Likewise.
2343 * cppinit.c (builtin_array_end): Likewise.
2344 * gcc.c (n_default_compilers, process_command): Likewise.
2345 * genpreds.c (output_predicate_decls): Likewise.
2346 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
2347 * lcm.c (N_ENTITIES): Likewise.
2348 * stor-layout.c (set_sizetype): Likewise.
2349
2350 2002-03-03 Richard Henderson <rth@redhat.com>
2351
2352 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
2353 for types or labels.
2354
2355 2002-03-03 Richard Henderson <rth@redhat.com>
2356
2357 * c-decl.c (start_decl): Initialized variables are not common.
2358
2359 2002-03-02 Per Bothner <per@bothner.com>
2360
2361 * gcc.c (option_map): Suport new --bootclasspath option.
2362 --CLASSPATH is now just an alias for --classpath.
2363
2364 2002-03-02 Richard Henderson <rth@redhat.com>
2365
2366 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
2367 load if "internal" visibility.
2368 * doc/extend.texi: Document visibility meanings.
2369
2370 2002-03-02 Richard Henderson <rth@redhat.com>
2371
2372 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
2373 to functions as well.
2374
2375 2002-03-02 Richard Henderson <rth@redhat.com>
2376
2377 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
2378 (handle_visibility_attribute): Don't call assemble_visibility.
2379 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
2380 without asmspec. Invoke assemble_alias when needed.
2381 * varasm.c (maybe_assemble_visibility): New.
2382 (assemble_start_function, assemble_variable, assemble_alias): Use it.
2383
2384 2002-03-02 Richard Henderson <rth@redhat.com>
2385
2386 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
2387 invoke ENCODE_SECTION_INFO with first call flag.
2388
2389 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2390 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2391 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
2392 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
2393 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2394 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
2395 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
2396 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
2397 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
2398 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
2399 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
2400 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
2401 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2402 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
2403 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2404 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
2405 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
2406 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
2407 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
2408 config/sh/sh.h, config/sparc/sparc.h,
2409 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
2410 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
2411 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
2412 FIRST argument. As needed, examine it and do nothing.
2413
2414 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
2415 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
2416 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
2417
2418 * config/arm/t-pe (pe.o): Add dependencies.
2419
2420 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2421
2422 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
2423 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
2424 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
2425 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
2426 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
2427 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
2428 * defaults.h (BITS_PER_UNIT): Define.
2429 * doc/tm.texi (BITS_PER_UNIT): Document default value.
2430
2431 2002-03-02 Kazu Hirata <kazu@hxi.com>
2432
2433 * config/h8300/h8300-protos.h: Add a prototype for
2434 compute_a_shift_length.
2435 * config/h8300/h8300.c (h8300_asm_insn_count): New.
2436 (compute_a_shift_length): Likewise.
2437 (h8300_adjust_insn_length): Do not adjust insn length of shift
2438 insns.
2439 * config/h8300/h8300.md (anonymous shift patterns): Use
2440 compute_a_shift_length.
2441
2442 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2443
2444 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
2445 trunc_int_for_mode.
2446
2447 * emit-rtl.c (offset_address): Call update_temp_slot_address.
2448
2449 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2450
2451 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
2452 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
2453 * flags.h (flag_zero_initialized_in_bss): Declare.
2454 * toplev.c (flag_zero_initialized_in_bss): New flag.
2455 (lang_independent_options): Add flag_zero_initialized_in_bss.
2456 * tree.c (initializer_zerop): New function.
2457 * tree.h (initializer_zerop): Declare.
2458 * varasm.c (assemble_variable): If we can emit bss, put zero
2459 initializers in the bss section.
2460
2461 2002-03-02 Alan Modra <amodra@bigpond.net.au>
2462
2463 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
2464 like more than one symbol per .weak directive.
2465
2466 2002-03-01 Richard Henderson <rth@redhat.com>
2467
2468 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
2469 adjust argument_pointer by pretend_args_size.
2470 (ia64_va_start): Adjust va_start address by -pretend_args_size.
2471
2472 2002-03-01 Kazu Hirata <kazu@hxi.com>
2473
2474 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
2475
2476 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
2477
2478 * toplev.c (rest_of_compilation): Delete dead jumptables before
2479 loop.
2480 * flow.c (delete_dead_jumptables): Make global.
2481 * rtl.h (delete_dead_jumptables): Declare.
2482
2483 2002-03-01 David Edelsohn <edelsohn@gnu.org>
2484
2485 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
2486 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
2487 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
2488
2489 2002-03-01 Kazu Hirata <kazu@hxi.com>
2490
2491 * config/h8300/h8300-protos.h: Fix formatting.
2492 * config/h8300/h8300.c: Likewise.
2493 * config/h8300/h8300.h: Likewise.
2494
2495 2002-03-01 Kazu Hirata <kazu@hxi.com>
2496
2497 * config/h8300/h8300.c (print_operand): Support 16-bit
2498 constant addresses.
2499 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
2500
2501 2002-02-28 Richard Henderson <rth@redhat.com>
2502
2503 * expmed.c (store_bit_field): Prevent generation of CONCATs;
2504 pun complex values as integers; use gen_lowpart instead of
2505 gen_rtx_SUBREG.
2506 (extract_bit_field): Likewise.
2507
2508 2002-03-01 Alan Modra <amodra@bigpond.net.au>
2509 David Edelsohn <edelsohn@gnu.org>
2510
2511 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
2512 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
2513 (SUPPORTS_WEAK): Likewise.
2514 * output.h (add_weak): Add tree param.
2515 * varasm.c (add_weak): Likewise. Save decl.
2516 (struct weak_syms): Add decl field.
2517 (mark_weak_decls): New function.
2518 (init_varasm_once): ggc_add_root mark_weak_decls.
2519 (assemble_start_function): Use ASM_WEAKEN_DECL.
2520 (assemble_variable): Likewise.
2521 (assemble_alias): Likewise.
2522 (declare_weak): Pass decl to add_weak.
2523 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
2524 (remove_from_pending_weak_list): Declare and define for
2525 ASM_WEAKEN_DECL.
2526 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
2527 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
2528 * defaults.h (SUPPORTS_WEAK): Likewise.
2529 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
2530 .weak for code sym. Do emit .size for descriptor sym.
2531 (ASM_DECLARE_FUNCTION_SIZE): Define.
2532 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
2533 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
2534 .lglobl unless TARGET_XCOFF. Formatting fixes.
2535 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
2536 .weak for code sym.
2537 (HANDLE_PRAGMA_WEAK): Remove.
2538 (ASM_WEAKEN_LABEL): Remove.
2539 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
2540
2541 2002-03-01 Jason Merrill <jason@redhat.com>
2542
2543 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
2544 (TARGET_EXPR_CLEANUP): New macro.
2545
2546 2002-02-28 Steve Ellcey <sje@cup.hp.com>
2547
2548 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
2549 to take ptr_extend into account as third type of extension.
2550 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
2551 fields used by SUBREG_PROMOTED_UNSIGNED_P.
2552 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
2553 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
2554 * calls.c (precompute_arguments): Use new macro.
2555 (expand_call): Ditto.
2556 * combine.c (nonzero_bits): Ditto.
2557 (record_promoted_value): Ditto.
2558 * expr.c (store_expr): Ditto.
2559 (expand_expr): Ditto.
2560 * function.c (assign_parms): Ditto.
2561
2562 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
2563
2564 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
2565 override -shared and -shared-libgcc.
2566
2567 2002-02-28 David O'Brien <obrien@FreeBSD.org>
2568
2569 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
2570 of "ultrasparc".
2571 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
2572 to be broken.
2573
2574 2002-02-28 Richard Henderson <rth@redhat.com>
2575
2576 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
2577 4 cycle latency from MM producers.
2578 (ia64_internal_sched_reorder): Likewise with pipeline flush.
2579
2580 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2581
2582 * mklibgcc.in: Don't use GNU make extension.
2583
2584 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
2585
2586 * c-parse.in (STATIC): New terminal.
2587 (scspec): New non-terminal. Update productions accordingly.
2588 (program): Remove bogus ifc / end ifc.
2589 (array_declarator): Simplify production using STATIC.
2590
2591 2002-02-28 Jim Meyering <meyering@lucent.com>
2592
2593 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
2594 \a still means TARGET_BELL.
2595
2596 2002-02-28 Richard Henderson <rth@redhat.com>
2597
2598 * haifa-sched.c (sched_emit_insn): New.
2599 (schedule_block): Use last_scheduled_insn to track last insn.
2600 * sched-int.h (sched_emit_insn): Prototype.
2601 * config/ia64/ia64.c (last_issued): Remove.
2602 (ia64_variable_issue): Don't set it.
2603 (nop_cycles_until): Use sched_emit_insn.
2604
2605 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
2606
2607 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
2608 extended constants.
2609
2610 2002-02-28 Kazu Hirata <kazu@hxi.com>
2611
2612 * config/h8300/h8300.c: Fix formatting.
2613 * config/h8300/h8300.h: Likewise.
2614
2615 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
2616
2617 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
2618 which may overwrite the high byte of the frame pointer.
2619
2620 2002-02-28 Bo Thorsen <bo@suse.de>
2621
2622 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
2623 (STARTFILE_SPEC): Add 64 bit files.
2624 (ENDFILE_SPEC): Likewise.
2625
2626 2002-02-28 Jason Merrill <jason@redhat.com>
2627
2628 * c-decl.c (finish_function): Only warn about missing return
2629 statement with -Wreturn-type.
2630
2631 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
2632
2633 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
2634
2635 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
2636 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
2637
2638 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
2639
2640 * basic-block.h (BB_REACHABLE): Renumber.
2641 (BB_DIRTY, BB_NEW): New flags.
2642 (clear_bb_flags): Declare.
2643 (update_life_info_in_dirty_blocks): Declare.
2644 * cfg.c (clear_bb_flags): New function.
2645 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
2646 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
2647 reorder_insns, emit_insn_after): Mark block as dirty.
2648 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
2649 (update_life_info_in_dirty_blocks): New function.
2650 * recog.c (apply_change_group): Dirtify block.
2651
2652 * cse.c (cse_insn): Reorder emitting of jump insn to keep
2653 cfg consistent.
2654 * gcse.c (delete_null_pointer_checks): Likewise.
2655
2656 * toplev.c (dump_file_index): Move cse2 after bp,
2657 add DFI_null
2658 (dump_file_info): Similary.
2659 (rest_of_compilation): Avoid most of CFG rebuilds;
2660 do first if converision after null pointer checks, do cse2
2661 after branch prediction; avoid full liveness rebuild after
2662 initializing subregs.
2663 * invoke.texi (-d options): Document -du, renumber.
2664
2665 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
2666 (notice_new_block): Do not set BB_UPDATE_LIFE.
2667 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
2668 merge_blocks_move_successor_nojumps, merge_blocks,
2669 try_crossjump_to_edge): Likewise.
2670 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
2671 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
2672 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
2673 (merge_of_block): Do not use life_data_ok.
2674 (find_if_case_1): Do not use SET_UPDATE_LIFE.
2675 (if_convert): Use BB_DIRTY mechanizm to update life.
2676 * lcm.c (optimize_mode_switching): Update
2677 update_life_info_in_dirty_blocks
2678
2679 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
2680
2681 * Makefile.in (integrate.o): Update.
2682 * c-decl.c (copy_lang_decl): Rename.
2683 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2684 * integrate.c: Include langhooks.h.
2685 (copy_decl_for_inlining): Update to use langhook.
2686 * langhooks-def.h (lhd_do_nothing_t,
2687 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
2688 (LANG_HOOKS_INITIALIZER): Update.
2689 * langhooks.c (lhd_do_nothing_t): New.
2690 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
2691 * tree.h (copy_lang_decl): Remove.
2692 objc:
2693 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2694
2695 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
2696
2697 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
2698 POST_DEC, and POST_MODIFY.
2699
2700 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2701
2702 * c-typeck.c (digest_init): Remove unused parameter; all
2703 callers changed.
2704
2705 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
2706
2707 * expmed.c (expand_shift): Correctly test for low part of a
2708 subreg.
2709
2710 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2711
2712 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
2713 insn UIDs with insn addresses.
2714
2715 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2716
2717 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
2718 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
2719 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
2720 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
2721 gcc.c, toplev.c: Delete code implementing -traditional mode.
2722
2723 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
2724 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
2725 Document removal of -traditional mode for compilation, and
2726 remove documentation only relevant to that mode.
2727
2728 * config/nextstep.h, config/ptx4.h, config/svr4.h,
2729 config/convex/convex.h, config/d30v/d30v.h,
2730 config/i386/dgux.h, config/i386/osf1elf.h,
2731 config/i386/osfelf.h, config/i386/osfrose.h,
2732 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
2733 config/m68k/hp310.h, config/m88k/dgux.h,
2734 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
2735 config/m88k/m88k.h, config/m88k/openbsd.h,
2736 config/mips/abi64.h, config/mips/osfrose.h,
2737 config/mips/svr4-5.h, config/mips/svr4-t.h,
2738 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2739 config/stormy16/stormy16.h: Remove all references to
2740 -traditional from target specs. Delete all mention of the
2741 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
2742 delete a couple of commented-out definitions of
2743 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
2744 to -traditional.
2745
2746 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
2747 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
2748
2749 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2750
2751 * mklibgcc.in: Don't use \n in a line subject to
2752 interpretation by echo.
2753
2754 2002-02-27 Graham Stott <grahams@redhat.com>
2755
2756 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
2757 Constify NAME.
2758
2759 * loop.c (prescan_loop): Handle PARALLEL.
2760
2761 * unroll.c (loop_iterations): Return 0 if the add_val for
2762 a BIV is REG.
2763
2764 * final.c (output_operand_lossage): Constify PFX_STR.
2765
2766 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
2767
2768 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
2769
2770 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
2771 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
2772
2773 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
2774
2775 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2776
2777 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
2778
2779 * cpplex.c (_cpp_lex_token): Handle directives in macro
2780 arguments.
2781 * cpplib.c (_cpp_handle_directive): Save and restore state
2782 if parsing macro args when entering a directive.
2783 * cppmacro.c (collect_args): No need to handle directives
2784 in macro arguments.
2785 (enter_macro_context, replace_args): Use the original macro
2786 definition in case it was redefined whilst collecting arguments.
2787 doc:
2788 * cpp.texi: Update.
2789
2790 2002-02-26 David Edelsohn <edelsohn@gnu.org>
2791
2792 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
2793 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
2794 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
2795 method on AIX.
2796 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
2797 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
2798 (load_toc_v4_PIC_2): Same.
2799
2800 2002-02-26 Alan Modra <amodra@bigpond.net.au>
2801
2802 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
2803
2804 2002-02-26 Richard Henderson <rth@redhat.com>
2805
2806 * config/alpha/alpha.md (ashldi_se): Re-enable.
2807
2808 2002-02-26 Richard Henderson <rth@redhat.com>
2809
2810 * config/alpha/alpha.c (alpha_encode_section_info): Examine
2811 MODULE_LOCAL_P; improve commentary.
2812
2813 2002-02-26 Zack Weinberg <zack@codesourcery.com>
2814
2815 * doc/cpp.texi: Clarify documentation of relationship between
2816 #line and #include.
2817
2818 2002-02-26 Kazu Hirata <kazu@hxi.com>
2819
2820 * config/h8300/h8300-protos.h: Update the prototype for
2821 compute_logical_op_length. Add the prototype for
2822 compute_logical_op_cc.
2823 * config/h8300/h8300.c (compute_logical_op_length): Figure out
2824 code from operands.
2825 (compute_logical_op_cc): New.
2826 * config/h8300/h8300.md: Combine all the logical op patterns
2827 in HImode and SImode. Use compute_logical_op_cc.
2828
2829 2002-02-26 Kelley Cook <kelleycook@comcast.net>
2830
2831 * config/i386/i386.c (print_operand): Don't append ATT-style
2832 length suffixs to x87 opcodes when in Intel mode.
2833
2834 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
2835
2836 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
2837 (init_emit_once): Update calls.
2838 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
2839 (init_syntax_once): Prototype.
2840
2841 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2842
2843 * pa-linux.h (LIB_SPEC): Update definition.
2844 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
2845
2846 2002-02-26 Richard Henderson <rth@redhat.com>
2847
2848 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
2849 if we emitted a stop bit.
2850
2851 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2852
2853 * configure.in (libgcc_visibility): Substitute.
2854 * configure: Rebuilt.
2855 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
2856 defined symbols .hidden.
2857
2858 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2859
2860 * attribs.c (c_common_attribute_table): Add visibility.
2861 (handle_visibility_attribute): New function.
2862 * varasm.c (assemble_visibility): New function.
2863 * output.h (assemble_visibility): Add prototype.
2864 * tree.h (MODULE_LOCAL_P): Define.
2865 * crtstuff.c (__dso_handle): Use visibility attribute.
2866 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
2867 for MODULE_LOCAL_P symbols too.
2868 * config/ia64/ia64.c (ia64_encode_section_info): Handle
2869 MODULE_LOCAL_P symbols the same way as local symbols.
2870 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
2871 into .sdata/.sbss by the user.
2872 * doc/extend.texi (Function Attributes): Document visibility
2873 attribute.
2874
2875 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2876
2877 PR debug/5770
2878 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
2879 STRING_CST initializer spanning the whole variable without
2880 embedded zeros.
2881 If expand_expr returned MEM, don't use it.
2882
2883 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
2884
2885 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
2886 generate a die for the lexical block.
2887
2888 2002-02-26 Kazu Hirata <kazu@hxi.com>
2889
2890 * config/h8300/h8300-protos.h: Add a prototype for
2891 compute_logical_op_length.
2892 * config/h8300/h8300.c (compute_logical_op_length): New.
2893 * config/h8300/h8300.md (anonymous logical patterns): Use
2894 compute_logical_op_length for length.
2895
2896 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2897
2898 * dwarf2out.c (modified_type_die): Do not call type_main_variant
2899 for vectors.
2900 (gen_type_die): Same.
2901
2902 * attribs.c (handle_vector_size_attribute): Set debug information.
2903
2904 2002-02-26 Daniel Egger <degger@fhm.edu>
2905
2906 * config/rs6000/rs6000.md: Swap define_insn attributes to
2907 fix incorrect generation of merge high instructions instead
2908 of merge low.
2909
2910 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2911
2912 * c-typeck.c (really_start_incremental_init): Use
2913 bitsize_zero_node for vectors.
2914
2915 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2916
2917 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
2918 ("*set_vrsave_internal"): Same.
2919
2920 2002-02-25 Richard Henderson <rth@redhat.com>
2921
2922 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
2923 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
2924
2925 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR target/5755
2928 * config/i386/i386.c (ix86_return_pops_args): Only pop
2929 fake structure return argument if it was passed on the stack.
2930
2931 2002-02-25 Jason Merrill <jason@redhat.com>
2932
2933 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
2934 RESULT_DECL.
2935
2936 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2937
2938 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
2939 link with shared_name only.
2940 * doc/invoke.texi (Link Options): Document new behavior.
2941
2942 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2943
2944 * c-typeck.c (push_init_level): Handle vectors.
2945
2946 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2947
2948 * config/sparc/sparc.c (const64_high_operand): Zero-extend
2949 operands of SPARC_SETHI_P.
2950 (input_operand): Likewise.
2951 (sparc_emit_set_const32): Likewise.
2952 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
2953 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
2954 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
2955 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
2956 (movdi_insn_sp64_vis): Likewise.
2957 (movdi split, movdf split): Use SETHI32.
2958 * doc/md.texi: Document SPARC constraints L, M and N.
2959
2960 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2961
2962 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
2963 ("*set_vrsave_internal"): use mfspr for Darwin.
2964
2965 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
2966 gen_get_vrsave_internal.
2967
2968 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2969
2970 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2971
2972 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
2973
2974 * cpplex.c (cpp_interpret_charconst): Get signedness or
2975 otherwise of wide character constants correct.
2976 * cppexp.c (lex): Get signedness of wide charconsts correct.
2977
2978 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2979
2980 * optabs.c (widen_operand): Only call convert_modes for
2981 promoted SUBREG if signedness matches.
2982 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
2983
2984 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2985
2986 * cpplib.c (glue_header_name): Use local buffer to build up
2987 header name.
2988
2989 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2990
2991 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
2992
2993 2002-02-23 Kazu Hirata <kazu@hxi.com>
2994
2995 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
2996 H8/300[HS] separately.
2997 * config/h8300/h8300.md: Remove the early clobber constraint
2998 from bit field patterns.
2999
3000 2002-02-23 Kazu Hirata <kazu@hxi.com>
3001
3002 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
3003 register_operand.
3004 (mulhisi3): Likewise.
3005 (umulqisi3): Likewise.
3006 (umulhisi3): Likewise.
3007
3008 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
3009
3010 * cppinit.c (output_deps): Correct test for stdout output.
3011 (init_dependency_output): Cure warning.
3012
3013 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3014
3015 * expr.c (store_expr): When converting expression to promoted
3016 equivalent type, allow using SUBREG_REG of TARGET as the target
3017 of the expansion of EXP.
3018 * loop.c (basic_induction_var, case SUBREG): Always look inside.
3019 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
3020 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
3021 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
3022 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
3023
3024 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
3025
3026 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
3027 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
3028 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
3029
3030 2002-02-23 Jakub Jelinek <jakub@redhat.com>
3031
3032 PR optimization/5747
3033 * loop.c (scan_loop): Update reg info if move_movables created new
3034 pseudos.
3035
3036 2002-02-23 David Edelsohn <edelsohn@gnu.org>
3037
3038 * gcc.c (init_gcc_spec): Revert last change.
3039
3040 2002-02-23 David Edelsohn <edelsohn@gnu.org>
3041
3042 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
3043 gpc_reg_operand constraint.
3044
3045 2002-02-23 Alan Modra <amodra@bigpond.net.au>
3046
3047 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
3048 Simplify comparison of `low'.
3049 (add_operand): Fix formatting.
3050 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
3051 (mask_operand): Disallow mask to wrap in 64-bit mode.
3052 (rs6000_stack_info): Remove redundant test setting push_p.
3053 (output_toc): Fix formatting.
3054 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
3055 cc_reg_not_cr0_operand constraint.
3056 (booldi3, boolcdi3 splitters): Same.
3057
3058 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
3059
3060 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
3061
3062 2002-02-22 David Edelsohn <edelsohn@gnu.org>
3063
3064 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
3065 gcc invoked with -shared-libgcc.
3066
3067 2002-02-22 Jakub Jelinek <jakub@redhat.com>
3068
3069 PR c++/5748
3070 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
3071 decl if any of elements was TREE_USED.
3072
3073 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
3074
3075 * config/sparc/sol2.h: Don't include sys/mman.h.
3076 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
3077 (arith_4096_operand): Don't throw high bits away.
3078 (const64_operand): Take sign extension of CONST_INTs into account.
3079 (const64_high_operand, sparc_emit_set_const32): Likewise.
3080 (GEN_HIGHINT64): Likewise.
3081 (sparc_emit_set_const64_quick1): Likewise.
3082 (const64_is_2insns): Likewise.
3083 (print_operand): Use trunc_int_for_mode for sign extension.
3084 * config/sparc/sparc.h (SMALL_INT32): Likewise.
3085 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
3086 chars. Assume CONST_INT is already properly sign-extended.
3087 (movdi split): Sign-extend each SImode part.
3088 (andsi3 split): Don't mask high bits off, so that result
3089 remains properly sign-extend.
3090 (iorsi3 split): Likewise.
3091 (xorsi3 split): Likewise.
3092
3093 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
3094
3095 * fold-const.c (fold): Fix typo in comments.
3096
3097 2002-02-21 Diego Novillo <dnovillo@redhat.com>
3098
3099 * Makefile.in (langhooks.o): Update dependencies.
3100
3101 2002-02-21 Diego Novillo <dnovillo@redhat.com>
3102
3103 * langhooks.c: Include flags.h.
3104
3105 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
3106
3107 * testsuite/gcc.dg/attr-alwaysinline.c: New.
3108
3109 * c-common.c (c_common_post_options): Set inline trees by
3110 default.
3111
3112 * doc/extend.texi (Function Attributes): Document always_inline
3113 attribute.
3114 Update documentation about inlining when not optimizing.
3115
3116 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
3117
3118 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
3119 unless DECL_ALWAYS_INLINE.
3120
3121 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
3122 unless DECL_ALWAYS_INLINE.
3123 (c_disregard_inline_limits): Disregard if always_inline set.
3124
3125 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
3126 Disregard if always_inline set.
3127 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
3128 unless DECL_ALWAYS_INLINE.
3129
3130 * attribs.c (handle_always_inline_attribute): New.
3131 (c_common_attribute_table): Add always_inline.
3132
3133 * config/rs6000/altivec.h: Add prototypes for builtins
3134 requiring the always_inline attribute.
3135
3136 2002-02-21 Eric Christopher <echristo@redhat.com>
3137
3138 * expmed.c (store_bit_field): Try to simplify the subreg
3139 before generating a new one when when the mode size of
3140 value is less than maxmode.
3141
3142 2002-02-21 Richard Henderson <rth@redhat.com>
3143
3144 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
3145 than gen_rtx_PLUS to form the sum.
3146 * explow.c (force_reg): Rearrange to not allocate new pseudo
3147 when force_operand returns a register.
3148 * expr.c (expand_assignment): Allow offset_rtx expansion to
3149 return a sum. Do not force addresses into registers.
3150 (expand_expr): Likewise.
3151 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
3152 to canonicalize arithmetic that didn't simpify.
3153 (simplify_plus_minus): New argument force; update
3154 all callers. Don't split CONST unless we can do something with it,
3155 and wouldn't lose the constness of the operands.
3156
3157 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
3158 that we generated earlier.
3159
3160 2002-02-21 Tom Tromey <tromey@redhat.com>
3161
3162 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
3163 (output_line_info): Use constant `1', with a long explanatory
3164 comment.
3165 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
3166
3167 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
3168
3169 * jump.c (redirect_jump): If old label has no UID, don't try to
3170 delete it.
3171
3172 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
3173
3174 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
3175 If input is constant, do shifts at compile time.
3176
3177 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
3178
3179 * doc/extend.texi: Fix some more overfull hboxes.
3180
3181 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3182
3183 PR optimization/4994
3184 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
3185 register moves.
3186
3187 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3188
3189 PR c++/4574
3190 * expr.h (expand_and): Add mode argument.
3191 * expmed.c (expand_and): Add mode argument.
3192 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
3193 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
3194 * except.c (expand_builtin_extract_return_addr): Likewise.
3195 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
3196 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
3197 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
3198 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
3199 * config/c4x/c4x.md: Use GEN_INT (x) instead of
3200 gen_rtx (CONST_INT, VOIDmode, x).
3201
3202 2002-02-21 Jakub Jelinek <jakub@redhat.com>
3203
3204 PR c/4697:
3205 * stmt.c (warn_if_unused_value): Move side effects test once more.
3206
3207 2002-02-20 Torbjorn Granlund <tege@swox.com>
3208
3209 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
3210 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
3211
3212 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
3213
3214 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
3215 SUBREG or ZERO_EXTEND.
3216
3217 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
3218
3219 * sh.h (current_function_anonymous_args): Remove.
3220 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
3221 of current_function_varargs and current_function_stdarg is set.
3222 * sh.c (sh_expand_prologue): Check current_function_varargs /
3223 current_function_stdarg / TARGET_SH5 instead of
3224 current_function_anonymous_args.
3225
3226 * sh64.h (TARGET_VERSION): Define.
3227
3228 2002-02-20 David Edelsohn <edelsohn@gnu.org>
3229
3230 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
3231 VRSAVE_REGNO on TARGET_ALTIVEC.
3232
3233 2002-02-20 Alan Modra <amodra@bigpond.net.au>
3234
3235 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
3236 bits of SImode const_int.
3237 (includes_rshift_p): Likewise.
3238 (print_operand): Call mask_operand and mask64_operand with correct
3239 mode.
3240 (rs6000_output_function_epilogue): Pad traceback table to word.
3241 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
3242 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
3243 mask64_operand with correct mode.
3244 (FUNCTION_ARG_REGNO_P): Correct parentheses.
3245
3246 2002-02-20 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR debug/4461
3249 * varasm.c (get_pool_constant_mark): New.
3250 * rtl.h (get_pool_constant_mark): Add prototype.
3251 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
3252 be represented if it has not been output.
3253
3254 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
3255
3256 * combine.c (do_SUBST): Sanity check substitutions of
3257 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
3258 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
3259 CONST_INT into its operand.
3260 (known_cond): Likewise, for ZERO_EXTEND.
3261 * simplify-rtx.c (simplify_unary_operation): Fix condition to
3262 allow for simplification of wide modes. Reject CONST_INTs in
3263 ZERO_EXTEND when their actual mode is not given.
3264
3265 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
3266
3267 * c-decl.c (pushdecl): If no global declaration is found for an
3268 extern declaration in block scope, try a limbo one.
3269
3270 2002-02-20 Jakub Jelinek <jakub@redhat.com>
3271
3272 PR c++/4401
3273 * c-common.c (pointer_int_sum): Moved from...
3274 * c-typeck.c (pointer_int_sum): ...here.
3275 * c-common.h (pointer_int_sum): Add prototype.
3276
3277 2002-02-20 Jakub Jelinek <jakub@redhat.com>
3278
3279 PR c++/5713
3280 * c-decl.c (duplicate_decls): Return 0 if issued error about
3281 redeclaration.
3282
3283 2002-02-20 Roger Sayle <roger@eyesopen.com>
3284 Jakub Jelinek <jakub@redhat.com>
3285
3286 PR c/4389
3287 * tree.c (host_integerp): Ensure that the constant integer is
3288 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
3289 when pos is zero or non-zero respectively. Clarify comment.
3290 * c-format.c (check_format_info_recurse): Fix host_integerp
3291 usage; the pos argument should be zero when assigning to a
3292 signed HOST_WIDE_INT.
3293
3294 2002-02-20 Richard Henderson <rth@redhat.com>
3295
3296 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
3297 of the operand, rather than assuming TImode.
3298 (ix86_expand_binop_builtin): Cope with commutative patterns
3299 using nonimmediate_operand for both operands.
3300 (ix86_expand_timode_binop_builtin): Likewise.
3301 (ix86_expand_store_builtin): Validate operand 1.
3302 (ix86_expand_unop1_builtin): Likewise.
3303
3304 2002-02-20 Philip Blundell <philb@gnu.org>
3305
3306 PR 5705
3307 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
3308
3309 2002-02-20 Richard Henderson <rth@redhat.com>
3310
3311 PR c/5615
3312 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
3313
3314 2002-02-20 Tom Tromey <tromey@redhat.com>
3315
3316 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
3317 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
3318 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
3319 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
3320 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
3321 unconditionally.
3322
3323 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
3324
3325 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
3326 for (const_int 0) in X not just INTVAL.
3327
3328 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
3329
3330 * doc/extend.texi: Avoid or reduce overfull hboxes.
3331
3332 2002-02-20 Diego Novillo <dnovillo@redhat.com>
3333
3334 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
3335 operations if the field does not start at a mode boundary.
3336
3337 2001-02-20 Joel Sherrill <joel@OARcorp.com>
3338
3339 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
3340 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
3341 Also done for -Acpu and -Amachine.
3342
3343 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
3344
3345 * cppinit.c (init_dependency_output): Take deps output file
3346 from -o if none given with -MF. Suppress normal output.
3347 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
3348 * doc/cpp.texi, doc/invoke.texi: Update.
3349
3350 2002-02-19 Zack Weinberg <zack@codesourcery.com>
3351
3352 * toplev.c (output_quoted_string): Write unprintable
3353 characters with octal escapes.
3354
3355 2002-02-19 David Edelsohn <edelsohn@gnu.org>
3356
3357 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
3358 really_call_used[VRSAVE_REGNO] if not Altivec.
3359
3360 2002-02-19 Alan Modra <amodra@bigpond.net.au>
3361
3362 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
3363 MODE_MASK.
3364 (constant_pool_expr_1): Fix formatting.
3365 (rs6000_legitimize_reload_address): Likewise.
3366
3367 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3368
3369 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
3370 now that we have one.
3371
3372 2002-02-19 Zack Weinberg <zack@codesourcery.com>
3373
3374 * tree.h (struct tree_common): Remove aux. Add unused_0 at
3375 end of first block of bitfields (which was only seven bits);
3376 rename dummy to unused_1; remove comment which is no longer true.
3377
3378 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
3379
3380 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
3381
3382 2002-02-19 Philip Blundell <pb@nexus.co.uk>
3383
3384 PR 5399
3385 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
3386 if generating PIC.
3387
3388 PR 5054
3389 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
3390 arm_is_longcall_p rather than inspecting call-type cookie
3391 directly.
3392 (call_value_insn) [TARGET_THUMB]: Likewise.
3393
3394 2002-02-19 Graham Stott <grahams@redhat.com>
3395
3396 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
3397
3398 2002-02-19 David Edelsohn <edelsohn@gnu.org>
3399
3400 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
3401 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
3402 (FP_SAVE_INLINE): Delete.
3403
3404 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
3405 * config/rs6000/eabi.asm: Remove ABI save restore routines.
3406 * config/rs6000/t-ppccomm: Build crtsavres.o.
3407 * config/rs6000/crtsavres.asm: New file.
3408
3409 2002-02-19 Philip Blundell <philb@gnu.org>
3410
3411 * config/arm/arm.c (use_return_insn): Don't reject interrupt
3412 functions.
3413 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
3414 (output_return_instruction): Allow interrupt functions to return with
3415 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
3416 (arm_expand_prologue): Subtract 4 before stacking LR in an
3417 interrupt function.
3418
3419 2002-02-19 Philip Blundell <pb@nexus.co.uk>
3420
3421 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
3422 decl, not just FUNCTION_DECL.
3423 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
3424 (arm_assemble_integer): Likewise.
3425 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
3426 marked local.
3427
3428 2002-02-19 matthew green <mrg@eterna.com.au>
3429
3430 * config.gcc (sparc-*-netbsdelf*): Enable target.
3431 (sparc64-*-netbsd*): New target.
3432 * config/sparc/netbsd-elf.h: New file.
3433 * config/sparc/t-netbsd64: New file.
3434
3435 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
3436
3437 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
3438
3439 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
3440
3441 * doc/invoke.texi: explicitly list the style guidelines that
3442 -Weffc++ checks for.
3443
3444 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
3445
3446 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
3447
3448 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
3449
3450 PR other/5718
3451 * gcc.c (cpp_unique_options): Treat -o as indicating object file
3452 only if not -E. If -E, pass -o through to the preprocessor.
3453
3454 2002-02-19 Kazu Hirata <kazu@hxi.com>
3455
3456 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
3457 register number with an appropriate macro.
3458
3459 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3460
3461 * doc/rtl.texi (Constants): Close @code tag.
3462
3463 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
3464
3465 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
3466 ("mmx_uavgv4hi3"): Same.
3467 ("pmulhrwv4hi3"): Same.
3468
3469 * tree-inline.c (walk_tree): Handle vectors.
3470
3471 * c-common.c (constant_expression_warning): Handle vectors.
3472 (overflow_warning): Same.
3473
3474 * sched-deps.c (sched_analyze_2): Handle vectors.
3475
3476 * rtlanal.c (rtx_unstable_p): Handle vectors.
3477 (rtx_varies_p): Same.
3478 (count_occurrences): Same.
3479 (regs_set_between_p): Same.
3480 (modified_between_p): Same.
3481 (modified_in_p): Same.
3482 (volatile_insn_p): Same.
3483 (volatile_refs_p): Same.
3484 (side_effects_p): Same.
3485 (may_trap_p): Same.
3486 (inequality_comparisons_p): Same.
3487 (replace_regs): Same.
3488 (computed_jump_p_1): Same.
3489
3490 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
3491 argument.
3492 (inner_mode_array): New.
3493 (copy_rtx): Handle vectors.
3494 (copy_most_rtx): Same.
3495 (rtx_equal_p): Same.
3496 (get_mode_alignment): Adjust for vectors.
3497
3498 * resource.c (mark_referenced_resources): Handle vectors.
3499 (mark_set_resources): Same.
3500
3501 * reload1.c (eliminate_regs): Handle vectors.
3502 (elimination_effects): Same.
3503 (scan_paradoxical_subregs): Same.
3504
3505 * reload.c (subst_reg_equivs): Handle vectors.
3506
3507 * regrename.c (scan_rtx): Handle vectors.
3508
3509 * regclass.c (reg_scan_mark_refs): Handle vectors.
3510
3511 * recog.c (find_single_use_1): Handle vectors.
3512
3513 * local-alloc.c (equiv_init_varies_p): Handle vectors.
3514 (contains_replace_regs): Same.
3515 (memref_referenced_p): Same.
3516
3517 * integrate.c (copy_rtx_and_substitute): Handle vectors.
3518 (subst_constants): Same.
3519
3520 * genattrtab.c (attr_copy_rtx): Handle vectors.
3521 (encode_units_mask): Same.
3522 (clear_struct_flag): Same.
3523 (count_sub_rtxs): Same.
3524
3525 * gcse.c (want_to_gcse_p): Handle vectors.
3526 (oprs_unchanged_p): Same.
3527 (hash_expr_1): Same.
3528 (oprs_not_set_p): Same.
3529 (expr_killed_p): Same.
3530 (compute_transp): Same.
3531 (store_ops_ok): Same.
3532
3533 * function.c (purge_addressof_1): Do not allow paradoxical subregs
3534 of vectors.
3535 (fixup_var_refs_1): Same.
3536 (instantiate_virtual_regs_1): Same.
3537
3538 * fold-const.c (operand_equal_p): Handle vectors.
3539 (fold): Same.
3540 (rtl_expr_nonnegative_p): Same.
3541
3542 * flow.c (mark_used_regs): Handle vectors.
3543
3544 * df.c (df_uses_record): Handle vectors.
3545
3546 * cselib.c (cselib_subst_to_values): Handle vectors.
3547 (cselib_mem_conflict_p): Same.
3548 (hash_rtx): Same.
3549
3550 * cse.c (canon_reg): Handle vectors.
3551 (fold_rt): Same.
3552 (cse_process_notes): Same.
3553 (count_reg_usage): Same.
3554 (canon_hash): Same.
3555
3556 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
3557
3558 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
3559
3560 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
3561 (gen_rtx): Handle CONST_VECTOR.
3562 (gen_const_vector_0): New.
3563 (copy_rtx_if_shared): CONST_VECTORs can be shared.
3564 (reset_used_flags): Same.
3565 (copy_insn_1): Same.
3566 (initializer_constant_valid_p): Handle VECTOR_CST.
3567
3568 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
3569
3570 * doc/rtl.texi (Constants): Document const_vector.
3571 (CONST0_RTX): Update for vectors.
3572 (RTL sharing): Same.
3573
3574 * print-tree.c (print_node): Add case for VECTOR_CST.
3575
3576 * tree.h (TREE_VECTOR_CST_ELTS): New.
3577 (struct tree_vector): New.
3578 (union tree_node): Add vector node.
3579 (build_vector): Add prototype.
3580
3581 * tree.def (VECTOR_CST): New.
3582
3583 * tree.c (build_vector): New.
3584
3585 * expmed.c (make_tree): Handle CONST_VECTOR.
3586
3587 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
3588 (CONST_VECTOR_ELT): New.
3589 (CONST_VECTOR_NUNITS): New.
3590
3591 * machmode.h (GET_MODE_INNER): New.
3592 (DEF_MACHMODE): Accept 8th arg.
3593
3594 * machmode.def: Add 8th argument for vector inner mode.
3595 Add inner vector modes for vectors.
3596
3597 * rtl.def (VEC_CONST): Remove.
3598 (CONST_VECTOR): New.
3599
3600 * expr.c (clear_storage): Allow vectors.
3601 (is_zeros_p): Handle VECTOR_CST.
3602
3603 * varasm.c (output_constant_pool): Handle vectors.
3604 (rtx_const): Add veclo and vechi fields.
3605 (kind): Add RTX_VECTOR.
3606 (decode_rtx_const): Add case for vector.
3607
3608 * config/rs6000/rs6000-protos.h: Add zero_constant.
3609
3610 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
3611 constants. Force easy vector constants into memory.
3612 (easy_vector_constant): New.
3613 (emit_easy_vector_constant): New.
3614 (rs6000_legitimize_reload_address): Do not generate bad reloads on
3615 darwin.
3616
3617 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
3618 instruction does.
3619 ("altivec_lvxl"): Same.
3620 (altivec_lvebx): Same.
3621 (altivec_lvehx): Same.
3622 (altivec_lvewx): Same.
3623 ("*movv4si_const0"): New.
3624 ("*movv4sf_const0"): New.
3625 ("*movv8hi_const0"): New.
3626 ("*movv16qi_const0"): New.
3627
3628 2002-02-18 Kazu Hirata <kazu@hxi.com>
3629
3630 * config/h8300/h8300.c (notice_update_cc): Use
3631 cc_status.value2.
3632
3633 2002-02-18 Kazu Hirata <kazu@hxi.com>
3634
3635 * config/h8300/h8300.md (divmod patterns): Change the
3636 constraints for operands[1] to register_operand.
3637
3638 2002-02-18 Kazu Hirata <kazu@hxi.com>
3639
3640 * config/h8300/h8300-protos.h: Remove the prototype for
3641 p_operand.
3642 * config/h8300/h8300.c (p_operand): Remove.
3643 * config/h8300/h8300.md: Replace p_operand with
3644 const_int_operand.
3645
3646 2002-02-18 Philip Blundell <pb@nexus.co.uk>
3647
3648 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
3649 comment.
3650 (output_return_instruction): Allow use of LDR to unstack
3651 return addresss even for interrupt handlers or when
3652 interworking. If compiling for ARMv5, use interworking-safe
3653 return instructions by default. Remove duplicated code and
3654 lengthy "strcat" sequences.
3655
3656 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3657
3658 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
3659 (LINK_EH_SPEC): Define.
3660 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
3661
3662 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
3663
3664 * config/s390/s390.c (s390_emit_prologue): Do not set the
3665 frame_related flag for call-clobbered registers.
3666
3667 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
3668
3669 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
3670 (construct_container): Fix handling of SSE operands.
3671 (ix86_expand_builtin): Fix handling of 64bit pointers.
3672 (mmx_maskmovq_rex): New pattern.
3673
3674 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
3675
3676 * regrename.c (kill_set_value): Handle subregs properly.
3677
3678 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
3679
3680 * objc/objc-act.c (handle_impent): Remove leading '*'
3681 from objc_class_name.
3682
3683 2002-02-17 Richard Henderson <rth@redhat.com>
3684
3685 * config/alpha/alpha.c (some_small_symbolic_operand,
3686 some_small_symbolic_operand_1, split_small_symbolic_operand,
3687 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
3688 Handle small SYMBOL_REFs anywhere, not just inside memories.
3689 * config/alpha/alpha-protos.h: Update.
3690 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3691 * config/alpha/alpha.md (small symbolic operand splitter): Update.
3692
3693 2002-02-17 Roland McGrath <roland@frob.com>
3694
3695 * config.gcc (powerpc-*-gnu-gnualtivec*,
3696 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
3697 * config/rs6000/gnu.h: New file.
3698 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
3699 Grok "gnu" in rs6000_abi_name.
3700 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
3701 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
3702 Grok -mcall-gnu analogous to -mcall-linux et al.
3703 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3704 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
3705 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
3706
3707 2002-02-17 Jakub Jelinek <jakub@redhat.com>
3708
3709 PR c/3444:
3710 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
3711 shortening.
3712
3713 2002-02-17 Philipp Thomas <pthomas@suse.de>
3714
3715 * config/cris/cris.h: Undefine STARTFILE_SPEC and
3716 ENDFILE_SPEC before (re)defining them.
3717
3718 2002-02-17 Kazu Hirata <kazu@hxi.com>
3719
3720 * config/h8300/h8300.c: Fix formatting.
3721 * config/h8300/h8300.h: Likewise.
3722
3723 2002-02-17 Philipp Thomas <pthomas@suse.de>
3724
3725 * doc/tm.texi: Explain why empty strings should not be
3726 marked for translation.
3727
3728 2002-02-17 Philipp Thomas <pthomas@suse.de>
3729
3730 * final.c (output_operand_lossage): Changed to accept
3731 printf style arguments. Change calls where necessary.
3732 * output.h (output_operand_lossage): Change declaration
3733 accordingly. Update copyright.
3734 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
3735 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
3736 Update copyright date where necessary.
3737
3738 * config/i386/i386.c (print_operand): Likewise. Remove use of
3739 sprintf.
3740
3741 * config/cris/cris.c (cris_operand_lossage): Likewise.
3742 Rename parameter so that exgettext recognizes it as
3743 translatable message.
3744 (LOSE_AND_RETURN): Rename parameter to msgid.
3745
3746 2002-02-17 Kazu Hirata <kazu@hxi.com>
3747
3748 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
3749 hard coded register number with an appropriate macro.
3750 (HARD_REGNO_MODE_OK): Likewise.
3751 (ARG_POINTER_REGNUM): Likewise.
3752 (STATIC_CHAIN_REGNUM): Likewise.
3753 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
3754 * config/h8300/h8300.md (define_constants): Define more
3755 register numbers.
3756
3757 2002-02-17 Philipp Thomas <pthomas@suse.de>
3758
3759 * config/i386/i386.h: Don't mark empty strings for translation.
3760
3761 2002-02-16 H.J. Lu <hjl@gnu.org>
3762
3763 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
3764
3765 2002-02-16 Zack Weinberg <zack@codesourcery.com>
3766
3767 * cppinit.c (merge_include_chains): Check for brack being
3768 NULL before attempting to merge it with qtail.
3769
3770 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3771
3772 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
3773 DBX_DEBUG.
3774
3775 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3776
3777 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
3778
3779 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3780
3781 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
3782 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
3783 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
3784
3785 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3786
3787 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
3788 now only if !TARGET_FIX.
3789 (*movsi_nt_vms_fix): New pattern.
3790
3791 2002-02-16 Douglas B Rupp <rupp@gnat.com>
3792
3793 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
3794 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
3795 (alpha_sa_mask, alpha_sa_size): Reflect above change.
3796 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
3797 (alpha_start_function, alpha_expand_epilogue): Likewise.
3798 (unicosmk_gen_dsib): Likewise.
3799
3800 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3801
3802 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
3803
3804 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
3805
3806 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
3807 check_and_change_labels, s390_final_chunkify): Delete.
3808 (s390_split_branches, s390_chunkify_pool): New functions.
3809 (s390_function_prologue): Call them.
3810
3811 * config/s390/s390.h (S390_REL_MAX): Delete.
3812 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
3813
3814 * config/s390/s390.md (cjump, icjump, jump): Fix length
3815 attribute calculation.
3816
3817
3818 2002-02-15 David Edelsohn <edelsohn@gnu.org>
3819
3820 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
3821 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
3822
3823 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3824
3825 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
3826 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
3827 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
3828
3829 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3830
3831 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
3832
3833 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3834
3835 * reload.c (find_dummy_reload): Check that an output register
3836 is valid for its mode.
3837
3838 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
3839
3840 * combine.c (known_cond): After replacing the REG of a SUBREG, try
3841 to simplify it.
3842
3843 * function.c (assign_parms): Demote promoted argument passed by
3844 transparent reference.
3845
3846 2001-02-14 Joel Sherrill <joel@OARcorp.com>
3847
3848 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
3849 -Acpu() and -Amachine() to eliminate warnings.
3850
3851 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
3852
3853 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
3854
3855 2002-02-14 Kazu Hirata <kazu@hxi.com>
3856
3857 * config/h8300/h8300-protos.h: Update the prototype for
3858 const_costs.
3859 * config/h8300/h8300.c (const_costs): Treat SET as a little
3860 more expensive operation.
3861 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
3862 reference to const_costs.
3863
3864 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
3865
3866 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
3867
3868 2002-02-14 Jakub Jelinek <jakub@redhat.com>
3869
3870 PR c/5503:
3871 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
3872 use arguments from newtype.
3873
3874 2002-02-13 Eric Christopher <echristo@redhat.com>
3875
3876 * config/mips/mips.c (override_options): Add check for march/mipsX
3877 on the same command line. Fix error message in cpu processing.
3878 Remove architecture and ISA checks.
3879
3880 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3881
3882 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
3883
3884 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
3885
3886 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3887
3888 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
3889 alternatives.
3890 ("*movv8hi_internal1"): Same.
3891 ("*movv16qi_internal1"): Same.
3892 ("*movv4sf_internal1"): Same.
3893
3894 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
3895 not push_reload for altivec modes.
3896
3897 2002-02-13 Joel Sherrill <joel@OARcorp.com>
3898
3899 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
3900 all RTEMS targets including removal of #includes from config/*/rtems*.h
3901 file and adding them to tm_file setting. Added xm_defines=POSIX to
3902 many targets.
3903 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
3904 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
3905 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
3906 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
3907 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
3908 config/m68k/rtemself.h: Ditto.
3909 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
3910 config/mips/rtems64.h: Ditto.
3911 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
3912 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
3913 Ditto.
3914 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
3915 config/sparc/rtemself.h: Ditto.
3916 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
3917 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
3918 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
3919 more like arm-elf.
3920 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
3921 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
3922 target made more similar to i386-elf.
3923 * config/i386/t-rtems-i386: Added soft float support and multilibs.
3924 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
3925 be similar to config/m68k/t-m68kelf.
3926 * gthr-rtems.h: Encapsulate with extern "C" for C++.
3927
3928 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
3929
3930 * regmove.c (kill_value): Handle subregs.
3931
3932 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
3933
3934 * i386.md (mul patterns): Allow memory operand to be first;
3935 add expanders where needed; fix constraints.
3936 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
3937 Allow memory operand to be the first.
3938
3939 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
3940 operands.
3941
3942 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3943
3944 PR c/5681:
3945 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
3946 GET_MODE (x).
3947
3948 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3949
3950 PR optimization/5547:
3951 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
3952 all valid IA-32 address modes involving non-scaled %ebx and
3953 GOT/GOTOFF as displacement.
3954
3955 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
3956
3957 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
3958 after emitting ltorg insns.
3959
3960 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
3961 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
3962 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
3963 *abssf2): Fix "op_type" attribute.
3964
3965 2002-02-13 Douglas B Rupp <rupp@gnat.com>
3966
3967 * mkconfig.sh: Avoid using a subshell redirect.
3968 ($output.T): Change to $(output)T.
3969 (ENABLE_NLS): Remove unneeded undef.
3970
3971 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
3972 * config/alpha/x-vms (libsubdir): Define.
3973
3974 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
3975 register frame procedures. Optimize retrieving context.
3976
3977 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
3978 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
3979 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
3980
3981 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3982
3983 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
3984 Make same change as for find_base_value.
3985
3986 2002-02-13 Kazu Hirata <kazu@hxi.com>
3987
3988 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
3989 of QImode and SImode.
3990
3991 2002-02-13 Kazu Hirata <kazu@hxi.com>
3992
3993 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
3994 length computation of movsi.
3995 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
3996
3997 2002-02-13 Kazu Hirata <kazu@hxi.com>
3998
3999 * config/h8300/h8300.md (subqi3): Tighten the predicate for
4000 operands[2] to register_operand.
4001
4002 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
4003
4004 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
4005
4006 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
4007
4008 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
4009 for altivec_lvx* and altivec_stvx*.
4010 ("*movv4si_internal"): Add constraint for loading from GPRs.
4011 ("*movv8hi_internal1"): Same.
4012 ("*movv16qi_internal1"): Same.
4013 ("*movv4sf_internal1"): Same.
4014
4015 * config/rs6000/rs6000.c (altivec_register_operand): New.
4016
4017 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
4018 altivec_register_operand.
4019
4020 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
4021
4022 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
4023 handle SYMBOL_REF.
4024
4025 2002-02-13 Stan Shebs <shebs@apple.com>
4026
4027 * c-typeck.c (digest_init): Handle vectors.
4028 (really_start_incremental_init): Same.
4029 (pop_init_level): Same.
4030 (process_init_element): Same.
4031
4032 * varasm.c (output_constant): Same.
4033
4034 * expr.c (clear_storage): Same.
4035 (store_constructor): Same.
4036
4037 2002-02-12 Eric Christopher <echristo@redhat.com>
4038
4039 * explow.c (hard_function_value): Add comment explaining
4040 signed/unsigned comparison.
4041
4042 2002-02-12 Jakub Jelinek <jakub@redhat.com>
4043
4044 * jump.c (never_reached_warning): Add finish argument.
4045 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
4046 real insn after end.
4047 * rtl.h (never_reached_warning): Adjust prototype.
4048 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
4049 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
4050 never_reached_warning.
4051
4052 2002-02-12 Graham Stott <grahams@redhat.com>
4053
4054 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
4055
4056 2002-02-12 Kazu Hirata <kazu@hxi.com>
4057
4058 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
4059 logical shifts on H8/300.
4060 (shift_alg_si): Improve several shifts on H8/300.
4061 (get_shift_alg): Likewise.
4062
4063 2002-02-12 Graham Stott <grahams@redhat.com>
4064
4065 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
4066
4067 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4068
4069 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
4070 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
4071
4072 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
4073
4074 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
4075 non-CONST_INT through default_assemble_integer.
4076 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
4077 <case 8>: Abort for CONST_DOUBLE.
4078
4079 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
4080
4081 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
4082 is specified.
4083 * config/pa/pa-linux.h (LIB_SPEC): Delete.
4084 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4085
4086 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
4087
4088 * config/stormy16/stormy16.md (zero_extendqihi2): New.
4089
4090 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4091
4092 * regrename.c (regrename_optimize): Don't accept a
4093 part-clobbered register if the replaced register is not part
4094 clobbered.
4095
4096 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
4097 take padding into account when computing the argument value.
4098
4099 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
4100
4101 * combine.c (try_combine): Apply substitutions in
4102 CALL_INSN_FUNCTION_USAGE too.
4103
4104 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
4105
4106 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
4107 __builtin_altivec_abs*.
4108 (bdesc_abs): New.
4109
4110 * config/rs6000/rs6000.h (rs6000_builtins): Add
4111 ALTIVEC_BUILTIN_ABS*.
4112
4113 * config/rs6000/altivec.h: Use const char for builtins expecting
4114 literals.
4115 (vec_abs): New versions for C and C++.
4116 (vec_abss): Same.
4117
4118 2002-02-10 Kazu Hirata <kazu@hxi.com>
4119
4120 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
4121 using Pmode.
4122
4123 2002-02-10 Kazu Hirata <kazu@hxi.com>
4124
4125 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
4126 constant definition from h8300.md.
4127 (FRAME_POINTER_REGNUM): Likewise.
4128 * config/h8300/h8300.md (define_constants): Add FP_REG.
4129
4130 2002-02-10 Kazu Hirata <kazu@hxi.com>
4131
4132 * config/h8300/h8300.c (print_operand): Remove redundant code.
4133
4134 2002-02-10 Kazu Hirata <kazu@hxi.com>
4135
4136 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
4137 * config/h8300/h8300.c (byte_reg): Make it static.
4138
4139 2002-02-10 Richard Henderson <rth@redhat.com>
4140
4141 PR c/5623
4142 * c-typeck.c (incomplete_type_error): Handle flexible array members.
4143
4144 2002-02-10 Richard Henderson <rth@redhat.com>
4145
4146 PR c++/5624
4147 * tree.c (append_random_chars): Don't abort if main_input_filename
4148 does not exist.
4149
4150 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
4151
4152 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
4153
4154 2002-02-10 Kazu Hirata <kazu@hxi.com>
4155
4156 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
4157 (pushhi1): Likewise.
4158
4159 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
4160
4161 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
4162 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
4163
4164 2002-02-09 David O'Brien <obrien@FreeBSD.org>
4165
4166 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
4167 remove MASK_VIS.
4168 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
4169
4170 2002-02-09 Kazu Hirata <kazu@hxi.com>
4171
4172 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
4173 a half of an SImode register on H8/300.
4174
4175 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
4176
4177 * i386.md (movdi_2): Add missing '!'.
4178
4179 2002-02-09 Kazu Hirata <kazu@hxi.com>
4180
4181 * config/h8300/h8300.h: Fix formatting. Remove commented-out
4182 definitions.
4183
4184 2002-02-09 Kazu Hirata <kazu@hxi.com>
4185
4186 * config/h8300/h8300.md (length): Correct the distance valid
4187 for the short branch.
4188
4189 2002-02-09 Kazu Hirata <kazu@hxi.com>
4190
4191 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
4192
4193 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
4194
4195 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
4196 registers in SImode.
4197 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
4198 part-clobbered.
4199
4200 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
4201 patch.
4202
4203 Contribute sh64-elf.
4204 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
4205 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
4206 (sh_cannot_modify_jumps_p): New function.
4207 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
4208 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
4209 (sh_ms_bitfield_layout_p): New function.
4210 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
4211 Zack Weinberg <zack@codesourcery.com>
4212 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
4213 expand_simple_binop instead of expand_binop.
4214 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
4215 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
4216 use of .quad and .uaquad.
4217 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
4218 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
4219 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4220 * config/sh/sh.md (movdi_const, movdi_const_32bit,
4221 movdi_const_16bit): Make sure all CONSTs have modes.
4222 (sym2PIC): Ditto, but by adjusting all callers.
4223 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
4224 if the prologue calls the SHmedia argument decoder or register
4225 saver.
4226 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4227 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
4228 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4229 (sh_expand_epilogue): Don't emit USE of return target register.
4230 (prepare_move_operands): Legitimize DImode PIC addresses.
4231 (sh_media_register_for_return): Skip tr0, used to initialize the
4232 PIC register.
4233 (sh_expand_prologue): Remove explicit USE of return register.
4234 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
4235 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
4236 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
4237 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
4238 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
4239 EXTRA_CONSTRAINT_T.
4240 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
4241 (MOVI_SHORI_BASE_OPERAND_P): New.
4242 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
4243 (EXTRA_CONSTRAINT_T): Define in terms of them.
4244 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
4245 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
4246 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
4247 alternatives supporting TARGET_REGS.
4248 (UNSPEC_GOTPLT): New constant.
4249 (movdi split): Move incrementing of LABEL_NUSES...
4250 (movdi_const, movdi_const_32bit): Here. Use
4251 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
4252 (movdi_const_16bit): New.
4253 (call, call_value) [flag_pic]: Use GOTPLT.
4254 (call_pop, call_value_pop): New expands.
4255 (call_pop_compact, call_pop_rettramp): New insns.
4256 (call_value_pop_compact, call_value_pop_rettramp): New insns.
4257 (sibcall) [flag_pic]: Use GOT.
4258 (builtint_setjmp_receiver): Remove bogus, unused expand.
4259 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
4260 (*pt, *ptb, ptrel): New insns.
4261 (sym2GOT): Handle DImode GOT.
4262 (sym2GOTPLT, symGOTPLT2reg): New expands.
4263 (sym2PIC): New expand.
4264 (shcompact_return_tramp): Use GOTPLT to return trampoline.
4265 (shcompact_return_tramp_i): Use return register explicitly.
4266 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
4267 disable flag_reorder_blocks.
4268 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
4269 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
4270 clobbers, for clarity.
4271 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
4272 restoring of r0 in macl as MAYBE_DEAD.
4273 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4274 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
4275 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
4276 alter_subreg all over.
4277 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
4278 reload, instead of emitting instructions that would require
4279 reloading.
4280 (casesi_load_media): Add missing modes.
4281 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
4282 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
4283 as used if the argument decoder is called.
4284 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
4285 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
4286 Pmode, then extend it to DImode if necessary.
4287 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
4288 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
4289 constants in FPU-enabled SHmedia, let them be loaded from memory.
4290 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
4291 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
4292 Adjust whitespace in assembly output templates.
4293 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
4294 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
4295 mode of if_then_else.
4296 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
4297 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
4298 sh.h.
4299 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
4300 Joern Rennecke <amylaar@redhat.com>
4301 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
4302 (SUBTARGET_CPP_PTR_SPEC): New.
4303 (SUBTARGET_CPP_SPEC): Remove.
4304 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
4305 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
4306 Fix typo in previous checkin.
4307 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
4308 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
4309 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
4310 Alexandre Oliva <aoliva@redhat.com>
4311 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
4312 what single FP register can hold for SHmedia target.
4313 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
4314 Alexandre Oliva <aoliva@redhat.com>
4315 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
4316 Do not split into SUBREG.
4317 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
4318 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
4319 and added new functions as specified in SH5 ABI r9.
4320 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
4321 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
4322 8-byte boundary.
4323 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
4324 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
4325 gen_consttable_4 and gen_consttable_8. Emit multiple labels
4326 and consttable_window_ends.
4327 2001-06-03 Graham Stott <grahams@redhat,com>
4328 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
4329 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
4330 * config/sh/sh.c (print_operand): Handle floating-point pair,
4331 vector and matrix registers.
4332 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
4333 vector modes into account.
4334 * config/sh/sh.md (movv2sf): Split move between registers into
4335 movdf.
4336 (movv4sf, movv16sf): Introduce insns that get split only after
4337 reload.
4338 * config/sh/shmedia.h: Fix Copyright dates.
4339 * config/sh/ushmedia.h: Likewise. Move loop counter
4340 declarations into conditionals that uses them.
4341 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
4342 loop boundary.
4343 * config/sh/sshmedia.h: Fix Copyright dates.
4344 (sh_media_PUTCFG): Fix constraints.
4345 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
4346 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
4347 ptrmemfunc_vbit_in_delta for SH5.
4348 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
4349 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
4350 * invoke.texi: Likewise.
4351 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
4352 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
4353 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
4354 GCC_pop_shmedia_regs_nofpu): New global symbols.
4355 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
4356 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
4357 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
4358 compact function with nonlocal labels.
4359 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
4360 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
4361 (initial_elimination_offset): Account for their stack space.
4362 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
4363 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
4364 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
4365 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
4366 least one of the operands to be a register.
4367 (movv2sf): Likewise. Renamed to movv2sf_i.
4368 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
4369 prepare_move_operands() before emitting SHmedia insns.
4370 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
4371 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
4372 Don't save nor initialize r12. Don't mis-align the stack.
4373 Pad the code with a nop.
4374 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
4375 stack.
4376 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
4377 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
4378 [__SHMEDIA__]: Implement.
4379 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
4380 * config/sh/sh.md: Set latency of `pt' closer to reality.
4381 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
4382 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
4383 Set move, load and store type attributes.
4384 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
4385 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
4386 profiling.
4387 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
4388 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
4389 * config/sh/sh.c (sh_media_register_for_return): New function.
4390 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
4391 branch-target register.
4392 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
4393 * config/sh/sh.md (return_media_i): Use any call-clobbered
4394 branch-target register.
4395 (return_media): If r18 wasn't copied in the prologue, copy it
4396 here.
4397 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
4398 Clear class FP0_REGS.
4399 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
4400 from elf.h.
4401 2001-03-08 DJ Delorie <dj@redhat.com>
4402 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
4403 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
4404 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
4405 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
4406 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
4407 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
4408 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
4409 return value correctly for call_cookie.
4410 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
4411 * config/sh/crt1.asm (start): Modified so as to call
4412 ___setup_argv_and_call_main.
4413 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
4414 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
4415 SHmedia mode.
4416 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
4417 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
4418 (STRIP_NAME_ENCODING): Use it.
4419 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
4420 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
4421 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
4422 prepare_scc_operands().
4423 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
4424 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
4425 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
4426 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
4427 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
4428 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
4429 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
4430 used in shcompact_incoming_args.
4431 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
4432 change.
4433 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
4434 mode.
4435 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
4436 Adjust accordingly.
4437 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
4438 Simplify. Adjust. Add sanity check.
4439 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
4440 FPU_SINGLE_BIT.
4441 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
4442 TARGET_SHCOMPACT.
4443 (udivsi3, divsi3): Use them.
4444 (force_mode_for_call): New insn.
4445 (call, call_value, sibcall_value): Emit it before SHcompact
4446 calls.
4447 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
4448 * config/sh/sh.md (call, call_value, sibcall): Make sure the
4449 call cookie is non-NULL before taking its value.
4450 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
4451 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
4452 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
4453 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
4454 block.
4455 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
4456 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
4457 temporary for stack adjusts. Use MACL and MACH to pass
4458 arguments to shcompact_incoming_args.
4459 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
4460 clobber r1.
4461 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
4462 (nested_trampoline): Load static chain address into r1.
4463 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
4464 2001-01-07 Alexandre Oliva <aoliva@redhat.com
4465 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
4466 fp_arith_reg_operand().
4467 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
4468 * config/sh/sh.md (casesi): Sign-extend the first two operands,
4469 and use signed compares for them.
4470 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
4471 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
4472 ones properly aligned.
4473 (find_barrier): Account for extra alignment needed for 8-byte wide
4474 constants.
4475 (machine_dependent_reorg): Require a label for the second 4-byte
4476 constant after an 8-byte one.
4477 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
4478 change.
4479 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
4480 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
4481 last_float when switching float modes.
4482 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
4483 auto-increment for general-purpose registers.
4484 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
4485 result.
4486 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
4487 for stack adjust.
4488 * config/sh/sh.c (sh_builtin_saveregs): Support using all
4489 registers for varargs.
4490 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
4491 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
4492 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
4493 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
4494 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
4495 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
4496 call_cookie accordingly.
4497 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
4498 (SHCOMPACT_BYREF): Likewise.
4499 (SHCOMPACT_FORCE_ON_STACK): New macro.
4500 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
4501 (sh_builtin_saveregs): Likewise.
4502 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
4503 shcompact_incoming_args): Use new shift values. Support
4504 sequences of consecutive and non-consecutive pushes/pops.
4505 * config/sh/sh.md (return): Don't explicitly use PR_REG.
4506 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4507 * config/sh/sh.h (TEXT_SECTION): Define.
4508 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
4509 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
4510 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
4511 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
4512 return values on FPU-enabled SHmedia.
4513 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
4514 FPU-enabled SHmedia.
4515 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
4516 value is returned in a non-FP reg and is not returned by
4517 reference.
4518 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
4519 jump_ind.
4520 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
4521 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
4522 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
4523 quad-aligned to be passed by callee-copy reference.
4524 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
4525 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
4526 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
4527 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
4528 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
4529 copying low-numbered FP regs to r7 and r8.
4530 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
4531 FP regs to general-purpose regs only if the copy was passed on the
4532 stack.
4533 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
4534 copying FP reg to r9.
4535 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
4536 copy FP regs to general-purpose regs only in outgoing calls.
4537 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
4538 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
4539 HOST_WIDE_INT.
4540 * config/sh/sh.h (struct sh_args): Document all fields.
4541 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
4542 passed partially on the stack should not consider making
4543 sibcalls.
4544 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
4545 stack_regs only for incoming calls. When passing FP args,
4546 make sure there are FP regs available before modifying
4547 call_cookie.
4548 (SHCOMPACT_BYREF): Pass double args in general-purpose
4549 registers by reference.
4550 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
4551 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
4552 attempt to generate sibcalls if the caller got any arguments
4553 by reference.
4554 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
4555 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
4556 to 8-byte boundaries.
4557 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
4558 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
4559 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
4560 stored in the stack.
4561 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
4562 for the offsets to have the ISA bit set.
4563 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
4564 invocation. Use beq instead of bgt to mark end of sequence of
4565 loads.
4566 (shcompact_incoming_args): Fix store of r2. Use beq instead of
4567 bgt to mark end of sequence of stores.
4568 * config/sh/sh.c (arith_operand): Don't check whether
4569 CONST_OK_FOR_J for now.
4570 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
4571 instead of long for conversion.
4572 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
4573 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
4574 before passing it to fprintf.
4575 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
4576 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
4577 Call set_fpscr before reading/writing SR.
4578 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
4579 Call set_fpscr.
4580 * config/sh/lib1funcs.asm: Add `.align 2' directives before
4581 SHmedia code.
4582 (FMOVD_WORKS): Define on SH5 with FPU.
4583 (set_fpscr): Define on SH5. Remove separate _fpscr_values
4584 setting.
4585 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
4586 _fpscr_values.
4587 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
4588 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
4589 address.
4590 (ia_main_table): Ditto.
4591 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
4592 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4593 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
4594 the definitions from sh.h.
4595 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
4596 TARGET_SH5.
4597 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
4598 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
4599 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
4600 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
4601 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
4602 Increment LABEL_NUSES.
4603
4604 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
4605 TARGET_SH5.
4606 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
4607 defined.
4608 * config/sh/elf.h (SIZE_TYPE): Likewise.
4609 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
4610 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
4611 shcompact_incoming_args): Load switch table addresses using
4612 datalabel.
4613 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
4614 (NO_BUILTIN_SIZE_TYPE): Define.
4615 (SIZE_TYPE): Don't define.
4616 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
4617 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
4618 definition of __SH5__=32 for -m5-compact-nofpu.
4619 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
4620 ADDR_DIFF_VEC.
4621 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
4622 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
4623 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
4624 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
4625 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
4626 (INSN_LENGTH_ALIGNMENT): Likewise.
4627 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
4628 * config/sh/sh.md (call, call_value, sibcall): Simplify
4629 copying of non-branch-target register.
4630 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
4631 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
4632 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
4633 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
4634 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
4635 floating-point values as structs.
4636 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
4637 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
4638 general-purpose register.
4639 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
4640 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
4641 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
4642 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
4643 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
4644 (ENCODE_SECTION_INFO): Enclose variables and constants in
4645 DATALABEL unspecs.
4646 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
4647 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
4648 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
4649 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
4650 only for LABEL_REFs. For SYMBOL_REFs, prepend
4651 SH_DATALABEL_ENCODING to the symbol name.
4652 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
4653 convert_mode().
4654 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
4655 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
4656 UNSPEC_DATALABEL.
4657 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
4658 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
4659 (DATALABEL_REF_P): Don't require CONST.
4660 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
4661 REL label.
4662 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
4663 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
4664 right.
4665 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
4666 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
4667 Use shallow_copy_rtx and PUT_MODE to change the mode of
4668 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
4669 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
4670 on SHmedia using GENERAL_REGs.
4671 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
4672 bltu_media_i): Fix reversion of conditions.
4673 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
4674 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
4675 * config/sh/sh.c (output_far_jump): Save r13 in macl.
4676 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
4677 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
4678 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
4679 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
4680 (GCC_nested_trampoline): Likewise.
4681 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
4682 * config/sh/sh.c (gen_datalabel_ref): Define.
4683 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
4684 (INITIALIZE_TRAMPOLINE): Likewise.
4685 (TRAMPOLINE_ADJUST_ADDRESS): Define.
4686 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
4687 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
4688 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
4689 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
4690 (ic_invalidate): Adjust for SH5.
4691 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
4692 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
4693 _nested_trampoline.
4694 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
4695 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
4696 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
4697 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
4698 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
4699 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
4700 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
4701 * config/sh/sh.c (target_reg_operand): Match only target-branch
4702 registers and pseudos that aren't virtual registers.
4703 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
4704 Copy operands that don't match target_reg_operand to pseudos.
4705 (call_media, call_value_media, sibcall_media): Use
4706 target_reg_operand instead of target_operand.
4707 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
4708 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
4709 * config/sh/sh.c (target_reg_operand): Match hardware registers
4710 other than branch-target registers.
4711 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
4712 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
4713 (fpscr_values) [SH5 == 32]: Define.
4714 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
4715 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
4716 Handle function addresses coming in SUBREGs.
4717 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
4718 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
4719 shcompact_return_trampoline): Use datalabel where appropriate.
4720 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
4721 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
4722 general-purpose register to copy one branch-target register to
4723 another.
4724 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
4725 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
4726 SYMBOL_REFs with VOIDmode.
4727 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
4728 bltu_media_i): New insns.
4729 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
4730 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
4731 (INIT_CUMULATIVE_ARGS): Likewise.
4732 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
4733 * machmode.def (V16SFmode): New mode.
4734 * c-common.c (type_for_mode): Support V2SF and V16SF.
4735 * tree.c (build_common_tree_nodes_2): Likewise.
4736 * tree.h (tree_index): Likewise.
4737 * calls.c (emit_call_1): Take args_so_far. Adjust all
4738 callers. Introduce CALL_POPS_ARGS.
4739 * tm.texi (CALL_POPS_ARGS): Document.
4740 * config/sh/crt1.asm: Implement in SHmedia mode.
4741 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
4742 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
4743 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
4744 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
4745 Implement divsi and udivsi in SHmedia mode. Introduce
4746 SHcompact trampolines.
4747 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
4748 only in SHmedia64.
4749 (regno_reg_class): Rewrite.
4750 (fp_reg_names): Remove.
4751 (sh_register_names, sh_additional_register_names): New.
4752 (print_operand): Added `u'. Support SUBREGs in addresses.
4753 Add parentheses around shifted CONSTs.
4754 (output_file_start): Output .mode and .abi directives.
4755 (shiftcosts, addsubcosts, multcosts): Adjust.
4756 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
4757 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
4758 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
4759 bytes, not registers. Take into account the need for the
4760 SHcompact incoming args trampoline. Adjust all callers.
4761 (sh_expand_prologue): Take stack_regs into account. Call
4762 incoming args trampoline. Keep stack aligned as per SH5 ABI.
4763 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
4764 stack aligned as per SH5 ABI.
4765 (sh_builtin_saveregs): Support SH5 ABI.
4766 (sh_build_va_list, sh_va_start): Likewise.
4767 (initial_elimination_offset): Take alignment into account.
4768 Compute location of PR according to the SH5 stack frame.
4769 (arith_reg_operand): Reject branch-target registers.
4770 (shmedia_6bit_operand): New.
4771 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
4772 (target_reg_operand): Match DImode only. Accept SUBREGs.
4773 (target_operand): New.
4774 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
4775 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
4776 SIBCALL_REGS for SHmedia.
4777 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
4778 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
4779 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
4780 (TARGET_SWITCHES): New SH5 flags.
4781 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
4782 VALID_REGISTER_P to disable unsupported registers.
4783 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
4784 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
4785 (FUNCTION_ARG_PADDING): Define.
4786 (FASTEST_ALIGNMENT): Adjust.
4787 (SH_REGISTER_NAMES_INITIALIZER): New.
4788 (sh_register_names): Declare.
4789 (DEBUG_REGISTER_NAMES): Define.
4790 (REGISTER_NAMES): Define based on sh_register_names.
4791 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
4792 (sh_additional_register_names): Declare.
4793 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
4794 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
4795 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
4796 (REGISTER_NATURAL_MODE): Define.
4797 (FIRST_PSEUDO_REGISTER): Adjust.
4798 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
4799 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4800 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
4801 (VECTOR_MODE_SUPPORTED_P): Define.
4802 (REG_CLASS_CONTENTS): Adjust.
4803 (SMALL_REGISTER_CLASSES): Adjust.
4804 (REG_ALLOC_ORDER): Adjust.
4805 (INDEX_REG_CLASS): Adjust.
4806 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
4807 (CONST_OK_FOR_LETTER_P): Adjust.
4808 (PREFERRED_RELOAD_CLASS): Adjust.
4809 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
4810 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
4811 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
4812 (FIRST_FP_PARM_REG): Adjust.
4813 (CALL_POPS_ARGS): Define.
4814 (FUNCTION_ARG_REGNO_P): Adjust.
4815 (struct sh_args): New fields.
4816 (GET_SH_ARG_CLASS): Adjust.
4817 (INIT_CUMULATIVE_ARGS): Adjust.
4818 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
4819 (FUNCTION_ARG_ADVANCE): Adjust.
4820 (FUNCTION_ARG): Adjust.
4821 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
4822 (FUNCTION_ARG_CALLEE_COPIES): Define.
4823 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
4824 (STRICT_ARGUMENT_NAMING): Define.
4825 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
4826 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
4827 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
4828 (SETUP_INCOMING_VARARGS): Adjust.
4829 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
4830 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
4831 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
4832 (SUBREG_OK_FOR_INDEX_P): Adjust.
4833 (EXTRA_CONSTRAINT_S): Update.
4834 (EXTRA_CONSTRAINT_T): New.
4835 (EXTRA_CONSTRAINT): Adjust.
4836 (GO_IF_LEGITIMATE_INDEX): Adjust.
4837 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
4838 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
4839 (MOVE_MAX): Adjust.
4840 (MAX_MOVE_MAX): Define.
4841 (Pmode): Adjust.
4842 (CONST_COSTS): Adjust.
4843 (REGISTER_MOVE_COST): Adjust.
4844 (BRANCH_COST): Adjust.
4845 (TEXT_SECTION_ASM_OP): Adjust.
4846 (DBX_REGISTER_NUMBER): Adjust.
4847 (ASM_OUTPUT_DOUBLE_INT): New.
4848 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
4849 (PREDICATE_CODES): Adjust.
4850 (PROMOTE_MODE): Adjust.
4851 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
4852 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
4853 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
4854 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
4855 (DR0_REG, DR2_REG, DR4_REG): Renumber.
4856 (TR0_REG, TR1_REG, TR2_REG): New.
4857 (XD0_REG): Renumber.
4858 (UNSPEC_COMPACT_ARGS): New.
4859 (type): Added pt and ptabs.
4860 (length): Default to 4 on SHmedia. Default pt length to 12
4861 and 20 on SHmedia32 and SHmedia64, respectively.
4862 (pt): New function unit.
4863 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
4864 Add whitespace between operands of SHmedia instructions.
4865 (movdicc): Fix.
4866 (adddi3_media, addsi3_media): Adjust constraints.
4867 (subsi3) [SHmedia]: Force operand 1 into a register.
4868 (udivsi3_i1_media, udivsi3_i4_media): New.
4869 (udivsi3): Support SHmedia.
4870 (divsi3_i1_media, divsi3_i4_media): New.
4871 (divsi3): Support SHmedia.
4872 (anddi3, iordi3, xordi3): Adjust constraints.
4873 (zero_extendhidi2, zero_extendqidi2): New.
4874 (extendsidi2, extendhidi2, extendqidi2): New.
4875 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
4876 (pop_e, pop_fpul, pop_4): Likewise.
4877 (movsi_media): Support FP and BT registers.
4878 (movsi_media_nofpu): New. Adjust splits to DImode.
4879 (lduw, ldub): Renamed to zero_extend* above.
4880 (movqi_media): Fix typo.
4881 (movdi_media): Support FP and BT registers.
4882 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
4883 (movdi_const_32bit): New.
4884 (shori_media): Require immediate operand. Use `u' for output.
4885 (movdf_media, movsf_media): Simplified.
4886 (movdf_media_nofpu, movsf_media_nofpu): New.
4887 (movdf, movsf): Adjust
4888 (movv2sf, movv2sf, movv16sf): New.
4889 (beq_media, beq_media_i): Adjust constraints. Don't use
4890 scratch BT register.
4891 (bne_media, bne_media_i): Likewise.
4892 (bgt_media, bgt_media_i): Likewise.
4893 (bge_media, bge_media_i): Likewise.
4894 (bgtu_media, bgtu_media_i): Likewise.
4895 (bgeu_media, bgeu_media_i): Likewise.
4896 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
4897 bunordered): Emit jump insn. Force operands to registers when
4898 needed.
4899 (jump_media, jump): Simplify.
4900 (call_compact, call_compact_rettramp): New.
4901 (call_value_compact, call_value_compact_rettramp): New.
4902 (call_media, call_value_media): Simplify.
4903 (sibcall_compact, sibcall_media): New.
4904 (call, call_value): Adjust for SHmedia and SHcompact.
4905 (sibcall, sibcall_value, untyped_call): Likewise.
4906 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
4907 (indirect_jump): Adjust for SHmedia.
4908 (casesi_jump_media): New.
4909 (nop): Re-enable for SHmedia.
4910 (call_site): Restrict to SH1.
4911 (casesi): Adjust for SHmedia.
4912 (casesi_shift_media, casesi_load_media): New.
4913 (return): Explicitly use PR register. Call return trampoline
4914 on SHcompact.
4915 (return_i): Explicitly use PR register.
4916 (shcompact_return_tramp, shcompact_return_tramp_i): New.
4917 (return_media): Adjust.
4918 (shcompact_incoming_args): New.
4919 (epilogue): Adjust.
4920 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4921 (movstrsi): Disable on SH5.
4922 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
4923 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
4924 (subsf3, subsf3_media): Likewise.
4925 (mulsf3, mulsf3_media, mac_media): Likewise.
4926 (divsf3, divsf3_media): Likewise.
4927 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
4928 (floatsisf2, fux_truncsfsi2): Likewise.
4929 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
4930 constraints.
4931 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
4932 (cmpunsf_media, cmpsf): Likewise.
4933 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
4934 (abssf2, abssf2_media): Likewise.
4935 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
4936 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
4937 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
4938 (floatsidf2, fix_truncdfsi2): Likewise.
4939 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
4940 constraints.
4941 (cmpeqdf_media, cmpgtdf_media): Likewise.
4942 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
4943 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
4944 (absdf2, absdf2_media): Likewise.
4945 (extendsfdf2, extendsfdf2_media): Likewise.
4946 (truncsfdf2, truncsfdf2_media): Likewise.
4947 * config/sh/sh64.h: New file.
4948 * config/sh/t-sh64: New file.
4949 * config/sh/shmedia.h: New file.
4950 * config/sh/ushmedia.h: New file.
4951 * config/sh/sshmedia.h: New file.
4952 * configure.in: Added sh64-*-elf.
4953 * configure: Rebuilt.
4954 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
4955 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
4956 (reg_class_from_letter): Use `b' for TARGET_REGS.
4957 (print_operand): Support `%M', `%m', `AND' and
4958 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
4959 (andcosts): Adjust for SHmedia.
4960 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
4961 Likewise.
4962 (target_reg_operand): New function.
4963 * config/sh/sh-protos.h (target_reg_operand): Declare.
4964 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
4965 FP registers on SH5.
4966 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
4967 on SH4.
4968 (TARGET_REGISTER_P): New macro.
4969 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
4970 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
4971 (EXTRA_CONSTRAINT_S): New macro.
4972 (EXTRA_CONSTRAINT): Adjust.
4973 (FLOAT_TYPE_SIZE): Define to 32.
4974 (Pmode): DImode on SHmedia.
4975 (CONST_COSTS): Adjust for SHmedia literals.
4976 (PREDICATE_CODES): Added target_reg_operand.
4977 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
4978 * config/sh/sh.md: Remove all attrs from SHmedia insns.
4979 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
4980 (cmpdi): Accept SHmedia.
4981 (movdicc_false, movdicc_true): New insns.
4982 (movdicc): New expand.
4983 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
4984 no_new_pseudos.
4985 (addsi3_media): Match `S' constraint.
4986 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
4987 (negdi2): Expand for SHmedia.
4988 (one_cmpldi2): New expand.
4989 (zero_extendsidi2): Change from expand to insn.
4990 (extendsidi2): Add constraints.
4991 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
4992 LD/ST address. Fix SI immediate loading split.
4993 (movhi_media, movqi_media, lduw, ldub): New insns.
4994 (movhi, movqi): Accept SHmedia.
4995 (shori_media, movdi_media): Relax input constraints. Split
4996 symbolic constants.
4997 (movdf_media, movsf_media): New insn. New split to movdi.
4998 (movdf, movsf): Match on SHmedia.
4999 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
5000 bgeu_media): New insns and splits. New insns with `_i' suffix.
5001 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
5002 (bunordered): New expand.
5003 (jump_compact): Renamed from `jump'.
5004 (jump_media): New insn.
5005 (jump): New expand.
5006 (call_media, call_value_media): New insns.
5007 (call, call_value): Adjust.
5008 (indirect_jump_compact): Renamed from `indirect_jump'.
5009 (indirect_jump_media): New insn.
5010 (indirect_jump): New expand.
5011 (untyped_call, return): Accept SHmedia.
5012 (return_media): New insn.
5013 (prologue, epilogue, blockage): Accept SHmedia.
5014 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
5015 (sunordered): New expand.
5016 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
5017 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
5018 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
5019 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
5020 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
5021 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
5022 abssf2_media): New insns.
5023 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
5024 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
5025 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
5026 floatdidf2, floatsidf2_media, fix_truncdfdi2,
5027 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
5028 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
5029 absdf2_media): New insns.
5030 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
5031 (extendsfdf2_media, truncdfsf2_media): New insns.
5032 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5033 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
5034 * config/sh/sh.h (CONST_OK_FOR_J): Document.
5035 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
5036 * config/sh/sh.md (adddi3): New expand.
5037 (adddi3_media, adddi3z_media): New insns.
5038 (adddi3_compact): Renamed from adddi3.
5039 (addsi3_media): Use add.l r63 to add constant zero.
5040 (subdi3): New expand.
5041 (subdi3_media): New insn.
5042 (subdi3_compact): Renamed from subdi3.
5043 (mulsidi3): New expand.
5044 (mulsidi3_media): New insn.
5045 (mulsidi3_compact): Renamed from mulsidi3.
5046 (umulsidi3): New expand.
5047 (umulsidi3_media): New insn.
5048 (umulsidi3_compact): Renamed from umulsidi3.
5049 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
5050 (ashlsi3, ashrsi3, lshrsi3): Use them.
5051 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
5052 (ashldi3, ashrdi3, lshrdi3): Use them.
5053 (zero_extendsidi2): New expand.
5054 (extendsidi2): New insn.
5055 (movsi_media): New insn. Split to movdi to load constants.
5056 (movsi): Enable for shmedia.
5057 (movdi_media): New insn. Use shori_media to load wide constants.
5058 (short_media): New insn.
5059 (movdi): Enable for shmedia.
5060 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
5061 * config/sh/sh.h (CPP_SPEC): Added `m5'.
5062 (SUBTARGET_CPP_SPEC): Added `!m5'.
5063 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
5064 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
5065 to all other SH variants.
5066 (TARGET_DEFAULT): Set to SH1_BIT.
5067 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
5068 (BITS_PER_WORD): Raise to 64 on shmedia.
5069 (MAX_BITS_PER_WORD): Change to 64.
5070 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
5071 (INT_TYPE_SIZE): Keep as 32.
5072 (UNITS_PER_WORD): Raise to 8 on shmedia.
5073 (MIN_UNITS_PER_WORD): Keep as 4.
5074 (POINTER_SIZE): Raise to 64 on shmedia.
5075 (CONST_OK_FOR_J): New macro.
5076 (CONST_OK_FOR_LETTER_P): Use it.
5077 (processor_type): Add PROCESSOR_SH5.
5078 * config/sh/sh.md: Conditionalize all expands, insns and
5079 splits to TARGET_SH1.
5080 (cpu): Added sh5.
5081 (addsi3_compact): Renamed from...
5082 (addsi3): Now an expand.
5083 (addsi3_media, subsi3_media): New insns.
5084 (subsi3): Don't negate constants with SHmedia.
5085
5086 * hooks.c: New file.
5087 * hooks.h: New file.
5088 * Makefile.in (HOOKS_H): New.
5089 (TARGET_DEF_H): Added $(HOOKS_H).
5090 (OBJS): Added hooks.o.
5091 (cfgcleanup.o, bb-reorder.o): Added target.h.
5092 (hooks.o): Added dependencies.
5093 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
5094 (TARGET_INITIALIZER): this.
5095 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
5096 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
5097 * bb-reorder.c: Include target.h.
5098 (reorder_basic_blocks): Skip if cannot modify jumps.
5099 * cfgcleanup.c: Include target.h.
5100 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
5101
5102 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5103
5104 * config/mips/mips.md (casesi_internal, casesi_internal_di):
5105 Protect jump delay slot instructions with .set noreorder and
5106 .set nomacro.
5107
5108 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5109
5110 * config/mips/mips.md (casesi_internal_di): Calculate
5111 the index into the target offset table correctly.
5112
5113 2002-02-08 Richard Henderson <rth@redhat.com>
5114
5115 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
5116 * final.c (output_addr_const): Accept and discard SUBREG.
5117 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
5118 mark them unknown instead.
5119 (simplify_subtraction): Handle RTX_UNKNOWN.
5120 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
5121
5122 2002-02-08 David Edelsohn <edelsohn@gnu.org>
5123
5124 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
5125
5126 2002-02-08 Richard Henderson <rth@redhat.com>
5127
5128 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
5129
5130 2002-02-08 Andreas Jaeger <aj@suse.de>
5131
5132 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
5133 * config/i386/t-linux64: New file.
5134
5135 2002-02-08 Jakub Jelinek <jakub@redhat.com>
5136
5137 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
5138 * c-parse.in (compstmt): Clear last_expr_type.
5139
5140 2002-02-07 Richard Henderson <rth@redhat.com>
5141
5142 * loop.c (strength_reduce): Sink final_value when not
5143 eliminating a biv.
5144
5145 2002-02-07 David O'Brien <obrien@FreeBSD.org>
5146
5147 * config/sparc/freebsd.h: Fix mismatched spec {.
5148
5149 2002-02-07 Richard Henderson <rth@redhat.com>
5150
5151 * cfgrtl.c: Include recog.h and insn-config.h.
5152 (keep_with_call_p): Fix general_operand invocation.
5153 * Makefile.in (cfgrtl.o): Update dependencies.
5154
5155 2002-02-07 Kazu Hirata <kazu@hxi.com>
5156
5157 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
5158 comment. Accept HImode only if TARGET_H8300.
5159
5160 2002-02-07 Eric Christopher <echristo@redhat.com>
5161
5162 * config/mips/crtn.asm: Cleanup #ifdefs.
5163
5164 2002-02-07 Eric Christopher <echristo@redhat.com>
5165
5166 * config/mips/crti.asm: Add changes for mips16. mips16 uses
5167 register 7 as RA instead of $31.
5168 * config/mips/crtn.asm: Ditto.
5169 * config/mips/mips.c (mips_move_2words): Add case for
5170 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
5171 (compute_frame_size): Fix typo.
5172 (save_restore_insns): Ditto. Make documentation about using
5173 register $7 as return register more precise.
5174 (mips_expand_epilogue): Fix comment. Add code to work around not
5175 being able to add to the stack pointer directly.
5176 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
5177 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
5178 epilogue.
5179
5180 2002-02-07 Tom Rix <trix@redhat.com>
5181
5182 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
5183 immediates in ldu and stdu DS opcode field.
5184 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
5185 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
5186 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
5187
5188 2002-02-07 Jeff Sturm <jsturm@one-point.com>
5189
5190 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
5191 offset for stack bias.
5192
5193 2002-02-07 H.J. Lu <hjl@gnu.org>
5194
5195 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
5196
5197 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
5198
5199 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
5200
5201 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
5202
5203 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
5204 * i386.c (x86_order_regs_for_local_alloc): New global function.
5205 * i386.h (REG_ALLOC_ORDER): CLeanup.
5206 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
5207
5208 2002-02-07 Richard Henderson <rth@redhat.com>
5209
5210 PR optimization/2463
5211 * alias.c (find_base_value): Recall base values for fixed hard regs.
5212 * loop.c (loop_regs_update): Don't use single_set on non-insns.
5213
5214 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
5215
5216 * config/mips/mips.md (define_delay) [mips16]: Adjust required
5217 length.
5218
5219 2002-02-06 Richard Henderson <rth@redhat.com>
5220
5221 PR c/5609
5222 * stmt.c (resolve_operand_name_1): Take more care with mixed
5223 named and unnamed operands.
5224
5225 2002-02-06 Janis Johnson <janis187@us.ibm.com>
5226 Jan Hubicka <jh@suse.cz>
5227
5228 * loop.c (remove_constant_addition): Avoid clobbering a shared
5229 CONST expression.
5230
5231 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
5232
5233 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
5234 * config/s390/t-linux64: New file.
5235 * config/s390/libgcc-glibc.ver: New file.
5236
5237 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
5238
5239 * config/s390/linux64.h: Delete file.
5240 * config/s390/s390x.h: New file.
5241 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
5242 as target header file.
5243 * config/s390/linux.h (TARGET_VERSION): Define depending on
5244 DEFAULT_TARGET_64BIT.
5245 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
5246 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
5247 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
5248 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
5249 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
5250 (EXTRA_SPEC): New define.
5251 * config/s390/s390.h (TARGET_VERSION): Define depending on
5252 DEFAULT_TARGET_64BIT.
5253 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
5254
5255 2002-02-06 Jason Merrill <jason@redhat.com>
5256
5257 * c-decl.c (finish_function): Warn about a non-void function with
5258 no return statement and no abnormal exit.
5259 (current_function_returns_abnormally): New variable.
5260 (start_function): Clear it.
5261 (struct c_language_function): Add returns_abnormally.
5262 (push_c_function_context): Save it.
5263 (pop_c_function_context): Restore it.
5264 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
5265 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
5266 an explicit return type.
5267 * c-tree.h: Declare current_function_returns_abnormally.
5268 (C_FUNCTION_IMPLICIT_INT): New macro.
5269 * c-typeck.c (build_function_call): Set it.
5270 (c_expand_return): Set current_function_returns_value even if the
5271 value is erroneous.
5272
5273 2002-02-06 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR c/5420:
5276 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
5277 unsafe for reevaluation.
5278
5279 2002-02-06 Jakub Jelinek <jakub@redhat.com>
5280
5281 PR c/5482:
5282 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
5283 EXPR_STMT, but COMPOUND_STMT, recurse into it.
5284
5285 2002-02-06 Richard Henderson <rth@redhat.com>
5286
5287 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
5288 be a general_operand. Dest for function value must be a pseudo.
5289
5290 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5291
5292 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
5293 as SYMBOL_REFs from the constant pool.
5294
5295 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5296
5297 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
5298 passed by invisible reference.
5299
5300 2002-02-05 Richard Henderson <rth@redhat.com>
5301
5302 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
5303
5304 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
5305
5306 Implement using "base addresses" in insn operands as default.
5307 * config/mmix/mmix.c (mmix_conditional_register_usage): if
5308 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
5309 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
5310 used to read the rtx value.
5311 (mmix_target_asm_function_epilogue): Fix spacing.
5312 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
5313 (mmix_legitimate_address): Ditto.
5314 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
5315 should be loaded with a GETA insn. Don't allocate needless extra
5316 char for nul termination and fix misleading comment.
5317 (mmix_print_operand_address): Handle constants if
5318 TARGET_BASE_ADDRESSES.
5319 (mmix_output_register_setting): Use base addressing if
5320 TARGET_BASE_ADDRESSES and the number of insns is 3.
5321 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
5322 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
5323 to use R as constraint, add LDA to match s.
5324 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
5325 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
5326 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
5327 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
5328 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
5329 order with other fixed registers.
5330 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
5331 other parameter/call-clobbered registers.
5332 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
5333 -mbase-addresses, -mno-base-addresses.
5334 (MMIX Options): Ditto.
5335
5336 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5337
5338 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
5339
5340 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
5341
5342 * config/rs6000/altivec.h: Change elem to _S_elem.
5343
5344 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
5345
5346 * config/netbsd.h (WCHAR_TYPE): Define.
5347 (WCHAR_TYPE_SIZE): Ditto.
5348 (WINT_TYPE): Ditto.
5349 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
5350 (WCHAR_UNSIGNED): Ditto.
5351 (WCHAR_TYPE_SIZE): Ditto.
5352 (WINT_TYPE): Ditto.
5353 * config/arm/netbsd.h: Likewise.
5354 * config/i386/netbsd-elf.h: Likewise.
5355 * config/i386/netbsd.h: Likewise.
5356 * config/m68k/netbsd-elf.h: Likewise.
5357 * config/m68k/netbsd.h: Likewise.
5358 * config/ns32k/netbsd.h: Likewise.
5359 * config/sparc/netbsd.h: Likewise.
5360 * config/vax/netbsd.: Likewise.
5361
5362 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
5363
5364 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
5365 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
5366 (TARGET_INITIALIZER): this.
5367 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
5368 (BITFIELD_NBYTES_LIMITED): Markup fix.
5369 * tree.h (default_ms_bitfield_layout_p): Declare.
5370 (record_layout_info): Added prev_field.
5371 * tree.c (default_ms_bitfield_layout_p): New fn.
5372 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
5373 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
5374 * stor-layout.c: Include target.h.
5375 (start_record_layout): Initialize prev_field.
5376 (place_field): Handle MS bit-field layout, and disregard
5377 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
5378 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
5379 * Makefile.in (stor-layout.o): Adjust dependencies.
5380
5381 2002-02-05 Jason Merrill <jason@redhat.com>
5382
5383 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
5384
5385 2002-02-05 Andreas Jaeger <aj@suse.de>
5386
5387 * crtstuff.c: Fix comments.
5388
5389 2002-02-05 Richard Henderson <rth@redhat.com>
5390
5391 PR fortran/3393
5392 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
5393 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
5394
5395 PR fortran/3392
5396 * config/mips/mips.c (function_arg): Handle TImode.
5397 (function_arg_advance): Likewise.
5398
5399 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
5400
5401 * config/rs6000/altivec.h (vec_step_help): Rename to
5402 __vec_step_help.
5403
5404 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
5405
5406 * config/rs6000/altivec.h: Fix typos.
5407
5408 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
5409
5410 * config/arm/netbsd.h: Correct a comment.
5411
5412 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
5413
5414 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
5415 building void typed builtins.
5416
5417 * config/rs6000/altivec.h (vec_ld*): Fix typos.
5418 (vec_step): Implement for C++.
5419
5420 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5421
5422 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
5423
5424 2002-02-04 Richard Henderson <rth@redhat.com>
5425
5426 * combine.c (nonzero_bits): Re-introduce special case for
5427 sp/fp/ap wrt REGNO_POINTER_ALIGN.
5428
5429 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
5430
5431 * doc/extend.texi: Warn about unsupported usage of altivec
5432 builtins.
5433
5434 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
5435 (altivec_predicate_*): New.
5436
5437 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
5438 Add C++ version of vec_*() functions.
5439
5440 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
5441 (bdesc_2arg): Remove altivec predicates.
5442 (altivec_expand_builtin): Handle predicates.
5443 (altivec_init_builtins): Handle predicates.
5444 (altivec_expand_predicate_builtin): New.
5445
5446 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5447
5448 * pa.c (DO_FRAME_NOTES): Move forward.
5449 (store_reg): Revise handling of frame notes.
5450 (load_reg): Likewise.
5451 (set_reg_plus_d): Likewise.
5452 (hppa_expand_prologue): Likewise.
5453 (hppa_expand_epilogue): Likewise.
5454
5455 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5456
5457 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
5458
5459 2002-02-04 Jakub Jelinek <jakub@redhat.com>
5460
5461 PR c/4475, c++/3780:
5462 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
5463 * c-common.h (SWITCH_TYPE): Define.
5464 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
5465 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
5466 Rename spareness variable to sparseness.
5467 (expand_end_case_type): Renamed from expand_end_case, use orig_type
5468 if non-NULL instead of TREE_TYPE (orig_index).
5469 * tree.h (expand_end_case_type): Renamed from expand_end_case.
5470 (expand_end_case): Define using expand_end_case_type.
5471 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
5472 to expand_end_case_type.
5473 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
5474
5475 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5476
5477 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
5478 (BIGGEST_ALIGNMENT): Change to 128.
5479
5480 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5481
5482 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
5483
5484 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5485
5486 * pa.md (call_internal_reg_64bit): Remove unused variable.
5487
5488 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
5489
5490 * config/arm/arm.h (machine_function): Add uses_anonymous_args
5491 field.
5492 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
5493 * config/arm/arm.c (current_function_anonymous_args): Delete,
5494 replace uses with cfun->machine->uses_anonymous_args.
5495 (arm_reorg): Do not reset uses_anonymous_args.
5496
5497 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
5498 any geenral register.
5499
5500 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
5501
5502 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
5503 the entry block.
5504
5505 2002-02-04 Richard Henderson <rth@redhat.com>
5506
5507 * combine.c (force_to_mode): Remove STACK_BIAS code.
5508 (nonzero_bits): Likewise. Replace sp/fp special case with
5509 REGNO_POINTER_ALIGN.
5510
5511 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
5512 (HARD_FRAME_POINTER_REGNUM): New.
5513 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
5514 (FIXED_REGS, CALL_USED_REGS): Update.
5515 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
5516 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
5517 (HARD_REGNO_NREGS): Update for SFP.
5518 (STACK_POINTER_OFFSET): Include bias here ...
5519 (FIRST_PARM_OFFSET): ... not here.
5520 (STACK_BIAS): Remove.
5521 (INIT_EXPANDERS): New.
5522 (STARTING_FRAME_OFFSET): Do not include bias.
5523 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
5524 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
5525 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
5526 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
5527 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
5528 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
5529 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
5530 (MUST_SAVE_REGISTER): Likewise.
5531 (sparc_flat_function_prologue): Likewise.
5532 (sparc_flat_function_epilogue): Likewise.
5533 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
5534 (sparc_init_modes): SFP is GENERAL_REGS.
5535 (sparc_builtin_saveregs): SFP does not have bias applied.
5536
5537 2002-02-04 Richard Henderson <rth@redhat.com>
5538
5539 * config/alpha/alpha.c (current_function_is_thunk): Don't check
5540 current_function_is_thunk.
5541 (alpha_sa_mask): Distinguish between current_function_is_thunk
5542 called from ASM_OUTPUT_MI_THUNK and not.
5543 (alpha_does_function_need_gp): Thunks always need gp.
5544 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5545 (alpha_output_mi_thunk_osf): New.
5546 * config/alpha/alpha-protos.h: Update.
5547 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
5548
5549 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
5550
5551 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
5552 function types, not when they're taken away.
5553
5554 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
5555
5556 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
5557 CODE_LABEL and jump table when replacing a table jump with a
5558 simple jump.
5559
5560 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5561
5562 * config/s390/s390-protos.h (legitimize_la_operand,
5563 s390_secondary_input_reload_class, s390_plus_operand,
5564 s390_expand_plus_operand): Add prototypes.
5565
5566 config/s390/s390.c (s390_secondary_input_reload_class,
5567 s390_plus_operand, s390_expand_plus_operand): New functions.
5568
5569 (struct s390_address): New member 'pointer'.
5570 (s390_decompose_address): Compute it.
5571 (legitimate_la_operand_p): Use it.
5572 (legitimize_la_operand): New function.
5573 (movti, movdi, movdf splitters): Call it.
5574
5575 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
5576 (PREDICATE_CODES): Add s390_plus_operand.
5577
5578 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
5579 (la_ccclobber): Allow GENERAL_REGS as output operand.
5580
5581 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
5582 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
5583 (*la_64, *la_31, reload_indi, reload_insi): ... these.
5584
5585 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
5586
5587 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
5588 register names for regular asm () construct.
5589
5590 2002-02-04 Jakub Jelinek <jakub@redhat.com>
5591
5592 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
5593 registers.
5594
5595 2002-02-04 Jakub Jelinek <jakub@redhat.com>
5596
5597 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
5598 pat for recog.
5599
5600 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
5601
5602 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
5603 constant pool to be identical by string address and index.
5604
5605 2002-02-04 Anthony Green <green@redhat.com>
5606
5607 * output.h (SECTION_OVERRIDE): Define.
5608 * varasm.c (named_section): Obey SECTION_OVERRIDE.
5609
5610 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
5611
5612 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
5613 by existing arm*-*-netbsd* (a.out) target.
5614 (ns32k-*-netbsdelf*): Likewise.
5615 (sparc-*-netbsdelf*): Likewise.
5616 (vax-*-netbsdelf*): Likewise.
5617
5618 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
5619
5620 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
5621 headers and libobjc headers.
5622
5623 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
5624
5625 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
5626 (_mingw.h): Remove duplicate include.
5627
5628 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
5629
5630 * config.gcc: Set cpu_type to m68k for 68010, as well.
5631 (m68010-*-netbsdelf*): New...
5632 (m68k*-*-netbsdelf*): ...targets.
5633 * config/m68k/netbsd-elf.h: New file.
5634
5635 2002-02-02 Kazu Hirata <kazu@hxi.com>
5636
5637 * config/h8300/h8300.c (hand_list): Move inside function_arg.
5638
5639 2002-02-02 Kazu Hirata <kazu@hxi.com>
5640
5641 * config/h8300/h8300.c (h8_push_ops): Move inside
5642 h8300_init_once.
5643 (h8_pop_ops): Likewise.
5644 (h8_move_ops): Likewise.
5645
5646 2002-02-02 Kazu Hirata <kazu@hxi.com>
5647
5648 * config/h8300/h8300.c (os_task): Make it static.
5649 (monitor): Likewise.
5650 (pragma_saveall): Likewise.
5651
5652 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
5653
5654 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
5655 constant is a valid sign-extension for Pmode.
5656
5657 2002-02-02 Kazu Hirata <kazu@hxi.com>
5658
5659 * config/h8300/h8300.c: Fix formatting.
5660
5661 2002-02-02 Kazu Hirata <kazu@hxi.com>
5662
5663 * config/h8300/h8300.md: Fix formatting.
5664
5665 2002-02-02 Kazu Hirata <kazu@hxi.com>
5666
5667 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
5668 predicates of operands[1]. Split the patterns for each
5669 processor variant.
5670
5671 2002-02-02 Kazu Hirata <kazu@hxi.com>
5672
5673 * config/h8300/h8300.md (xor patterns): Tighten the predicates
5674 of operands[1] to register_operand.
5675
5676 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
5677
5678 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
5679 * cpphash.c (_cpp_init_hashtable): Similarly.
5680 * cppinit.c (cpp_create_reader): Default the signed_char flag.
5681 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
5682 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
5683 (cpp_handle_option): Handle the new options.
5684 * cpplex.c (cpp_interpret_charconst): Use new flag.
5685 * cpplib.h (struct cpp_options): New member signed_char.
5686 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
5687 (cpp_options): Handle -fsigned-char and -funsigned-char.
5688 (static_specs): Remove signed_char_spec.
5689 (do_spec1): Don't handle %c.
5690 * system.h: Poison SIGNED_CHAR_SPEC.
5691 * tradcif.y (yylex): Use flag_signed_char.
5692 * tradcpp.h (flag_signed_char): New.
5693 * tradcpp.c (flag_signed_char): New.
5694 (main): Handle new command-line options.
5695 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
5696 config:
5697 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
5698 * avr/avr.h: Remove old comments.
5699 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
5700 (CC1_SPEC): Pass -fsigned-char if -mic*.
5701 (SIGNED_CHAR_SPEC): Remove.
5702 doc:
5703 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
5704
5705 2002-02-01 Eric Christopher <echristo@redhat.com>
5706
5707 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
5708 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
5709 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
5710 (ASM_OUTPUT_REG_POP): Ditto.
5711
5712 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
5713
5714 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
5715 patch.
5716
5717 2002-02-02 Jakub Jelinek <jakub@redhat.com>
5718
5719 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
5720
5721 2002-02-02 Jakub Jelinek <jakub@redhat.com>
5722
5723 PR c/5304:
5724 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
5725 unconditionally.
5726
5727 2002-02-01 Janis Johnson <janis187@us.ibm.com>
5728
5729 * cfganal.c: Include tm_p.h.
5730 (keep_with_call_p): Fix the test that determines if a register holds
5731 the return value of a call.
5732
5733 2002-02-01 DJ Delorie <dj@redhat.com>
5734
5735 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
5736 we are given conflicting registers, switch to the other one we
5737 had allocated for us.
5738 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
5739 as TImode so we know when the "other" register is available.
5740
5741 2002-02-01 David O'Brien <obrien@FreeBSD.org>
5742
5743 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
5744 sparc/sparc_bi.h.
5745
5746 2002-02-01 Janis Johnson <janis187@us.ibm.com>
5747
5748 * cfganal.c (keep_with_call_p): New function.
5749 (flow_call_edges_add): Prevent splitting a block between a call and
5750 a single-set instruction that should be kept in the same block.
5751
5752 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
5753
5754 * doc/install.texi (avr): Update outdated URL.
5755
5756 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
5757
5758 * config/stormy16/stormy16.md (pushqi): New.
5759 (popqi): New.
5760 (pushhi): New.
5761 (pophi): New.
5762 (movhi): Remove stack operands.
5763 (movqi): Likewise.
5764 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
5765 nonimmediate_nonstack_operand.
5766 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
5767 New.
5768 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
5769 New.
5770
5771 2002-01-31 Jason Merrill <jason@redhat.com>
5772
5773 * Makefile.in (c-parse.c): Handle .output file.
5774 * objc/Make-lang.in (objc-parse.c): Likewise.
5775
5776 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
5777
5778 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
5779 the -me[lb] option is given. Don't output the default flag
5780 twice.
5781
5782 2002-01-31 Zack Weinberg <zack@codesourcery.com>
5783
5784 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
5785 the primary source file; this has not been done yet.
5786 * c-decl.c (c_expand_body): Reset input_filename from
5787 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
5788
5789 2002-01-31 Kazu Hirata <kazu@hxi.com>
5790
5791 * rtlanal.c (subreg_regno_offset): Do not use
5792 SUBREG_REGNO_OFFSET.
5793 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
5794 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
5795
5796 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
5797
5798 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
5799 version rather than GNATS version in --version output.
5800
5801 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
5802
5803 * ifcvt.c (noce_process_if_block): Make a copy of the destination
5804 when copying back from a temporary.
5805
5806 2002-01-30 Richard Henderson <rth@redhat.com>
5807
5808 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
5809 and new_dest are the same.
5810
5811 2002-01-30 Richard Henderson <rth@redhat.com>
5812
5813 PR opt/5076
5814 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
5815 * rtl.c (note_insn_name): Update.
5816 * emit-rtl.c (remove_unnecessary_notes): Kill it.
5817 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
5818 to perform loop rotation.
5819 (expand_exit_loop_top_cond): New.
5820 * tree.h (expand_exit_loop_top_cond): Declare it.
5821 * c-semantics.c (genrtl_while_stmt): Use it.
5822 (genrtl_for_stmt): Likewise.
5823
5824 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
5825
5826 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
5827 arguments to 64-bit boundaries on 64-bit ABIs.
5828
5829 2002-01-30 Steve Ellcey <sje@cup.hp.com>
5830
5831 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
5832
5833 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
5834
5835 * c-decl.c (grokdeclarator): Handle type being a typedef for an
5836 invalid type.
5837
5838 2002-01-30 David O'Brien <obrien@FreeBSD.org>
5839
5840 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
5841 * config/sparc/sparc_bi.h: Remove file.
5842 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
5843
5844 2002-01-30 Richard Henderson <rth@redhat.com>
5845
5846 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
5847
5848 2002-01-30 Zack Weinberg <zack@codesourcery.com>
5849
5850 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
5851
5852 2002-01-30 Jason Merrill <jason@redhat.com>
5853
5854 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
5855 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
5856 (reg_save): Use DW_CFA_offset_extended_sf instead.
5857
5858 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
5859
5860 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5861
5862 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
5863 in cselib_lookup.
5864
5865 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
5866
5867 * rs6000.md ("*call_value_local32"): Remove constraints.
5868 ("*call_value_local64"): Same.
5869 ("*call_value_indirect_nonlocal_aix32"): Same.
5870 ("*call_value_nonlocal_aix32"): Same.
5871 ("*call_value_indirect_nonlocal_aix64"): Same.
5872 ("*call_value_nonlocal_aix64"): Same.
5873 ("*call_value_nonlocal_sysv"): Same.
5874
5875 2002-01-29 Richard Henderson <rth@redhat.com>
5876
5877 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
5878
5879 2002-01-29 Richard Henderson <rth@redhat.com>
5880
5881 * expr.c (force_operand): Ignore flag_pic for detecting pic
5882 address loads.
5883 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
5884 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
5885 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
5886 instead of open-coded loop.
5887 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
5888 be fixed when in use.
5889
5890 2002-01-29 Richard Henderson <rth@redhat.com>
5891
5892 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
5893 * sched-rgn.c (propagate_deps): Update them.
5894 * sched-deps.c (sched_analyze_insn): Update them. Flush the
5895 clobbers list when either gets too long.
5896
5897 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5898
5899 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
5900 and INDEX_REGS the same as GENERAL_REGS.
5901 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5902
5903 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
5904
5905 * tree.c (build_nonstandard_integer_type): Correct prototype.
5906
5907 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
5908
5909 * config/s390/s390.md (movstrsico, movstrdix_64,
5910 movstrsix_31): Remove, replace by ...
5911 (movstrdi_short, movstrsi_short, movstrdi_long,
5912 movstrsi_long): ... these. New.
5913 (movstrdi, movstrsi): Adapt.
5914
5915 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
5916 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
5917 Remove unnecessary CC clobber.
5918 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
5919 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
5920
5921 (divmoddi4): Don't partially initialize TImode register.
5922
5923 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
5924
5925 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
5926
5927 2002-01-29 Richard Henderson <rth@redhat.com>
5928
5929 * flow.c (print_rtl_and_abort): Remove.
5930 (print_rtl_and_abort_fcn): Remove.
5931 (verify_local_live_at_start): Use dump_bb instead.
5932 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
5933 (verify_wide_reg_1): Return 2 on mode test failure.
5934
5935 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
5936
5937 PR c/3325, c/3326, c/2511, c/3347
5938 * c-decl.c (enum_decl_context): Remove BITFIELD.
5939 (grokdeclarator): Take bitfield width as an input.
5940 Ensure bitfields are given the correct type. Perform
5941 bitfield width validation with build_bitfield_integer_type
5942 rather than waiting for finish_struct.
5943 (grok_typename, grok_typename_in_parm_context, start_decl,
5944 push_parmdecl, grokfield, start_function): Update calls to
5945 grokdeclarator.
5946 (build_bitfield_integer_type): New function.
5947 (finish_struct): Move bitfield validation to grokdeclarator
5948 and build_bitfield_integer_type.
5949 * tree.c (build_nonstandard_integer_type): New function.
5950 * tree.h (build_nonstandard_integer_type): New prototype.
5951 objc:
5952 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
5953
5954 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5955
5956 PR other/1502:
5957 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
5958 don't ignore unrecognized -W* options.
5959 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
5960 * cpplib.h (cpp_handle_option): Adjust prototype.
5961 * c-decl.c (c_decode_options): Pass 0 as last argument to
5962 cpp_handle_option.
5963
5964 PR c/2896:
5965 * gcc.c (cpp_unique_options): Split from cpp_options.
5966 (cpp_options): Source cpp_unique_options.
5967 (default_compilers): Use cpp_unique_options instead of cpp_options
5968 when used together with cc1_options.
5969 (static_specs): Add cpp_unique_options.
5970 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
5971 when used together with cc1_options.
5972
5973 2002-01-29 Kazu Hirata <kazu@hxi.com>
5974
5975 * config/h8300/h8300-protos.h: Update the prototype of
5976 output_a_shift.
5977 * config/h8300/h8300.c (output_a_shift): Remove an unused
5978 argument 'insn'. Remove redundant code.
5979 * config/h8300/h8300.md: Adust to the new prototype of
5980 output_a_shift.
5981
5982 2002-01-29 Kazu Hirata <kazu@hxi.com>
5983
5984 * config/h8300/h8300-protos.h: Update the prototypes of
5985 emit_a_rotate and expand_a_rotate.
5986 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
5987 first argument to 'enum rtx_code'.
5988 (expand_a_rotate): Likewise.
5989
5990 2002-01-28 Kazu Hirata <kazu@hxi.com>
5991
5992 * config/h8300/h8300-protos.h: Update the prototype of
5993 output_simode_bld.
5994 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
5995 'log2'.
5996 * config/h8300/h8300.md: Adjust to the new prototype.
5997
5998 2002-01-28 Kazu Hirata <kazu@hxi.com>
5999
6000 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
6001 redundant code.
6002
6003 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
6004
6005 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
6006 is a fixed register before returning pic_offset_table_rtx.
6007 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
6008 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
6009
6010 2002-01-28 Jason Merrill <jason@redhat.com>
6011
6012 * dwarf2.h: Sync with src version.
6013
6014 2002-01-28 Paul Koning <pkoning@equallogic.com>
6015
6016 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
6017 BT_FN_VOID_PTR_VAR.
6018 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
6019 * doc/extend.texi (__builtin_prefetch): Update documentation:
6020 first argument is now const void ptr.
6021
6022 2002-01-28 Kazu Hirata <kazu@hxi.com>
6023
6024 * config/h8300/h8300-protos.h: Remove an unused prototype.
6025
6026 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
6027
6028 * toplev.c (lang_independent_init): Round up identifier size.
6029
6030 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
6031
6032 * config.gcc: Revert previous change.
6033
6034 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
6035
6036 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
6037
6038 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
6039
6040 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
6041 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
6042 other non-elf netbsd config frags.
6043 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
6044 collect2 will does that.
6045 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
6046 shared-lib frobbing will work.
6047
6048 2002-01-28 Kazu Hirata <kazu@hxi.com>
6049
6050 * config/h8300/h8300.h: Fix formatting.
6051 * config/h8300/h8300.md: Likewise.
6052
6053 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
6054
6055 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
6056 the old, removed AAA_standards fix.
6057 * fixinc/fixincl.x: Rebuilt.
6058
6059 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
6060
6061 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
6062 atexit call in crtbegin, hooked in after call to frame_dummy;
6063 register EH before registering __fini__start.
6064
6065 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
6066
6067 * config/rs6000/altivec.h: Remove spurious semicolons.
6068
6069 2002-01-27 Kazu Hirata <kazu@hxi.com>
6070
6071 * config/h8300/h8300.md: Replace dead bit extraction patterns
6072 with ones that work.
6073
6074 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6075
6076 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
6077 if not STRICT_ALIGNMENT.
6078 * rtl.h (MEM_ALIGN): Likewise.
6079
6080 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
6081
6082 * doc/invoke.texi (-fdump-translation-unit): Revert this
6083 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
6084
6085 2002-01-27 Kazu Hirata <kazu@hxi.com>
6086
6087 * config/h8300/h8300.md (define_constants): New.
6088 (anonymous patterns) Use defined constants appropriately.
6089
6090 2002-01-27 Kazu Hirata <kazu@hxi.com>
6091
6092 * config/h8300/h8300.c (function_arg): Remove redundant code.
6093
6094 2002-01-26 Richard Henderson <rth@redhat.com>
6095
6096 * sched-deps.c (reg_pending_uses_head): New.
6097 (reg_pending_barrier): Rename from reg_pending_sets_all.
6098 (find_insn_list): Don't mark inline.
6099 (find_insn_mem_list): Remove.
6100 (add_dependence_list, add_dependence_list_and_free): New.
6101 (flush_pending_lists): Replace only_write param with separate
6102 for_read and for_write parameters. Update all callers. Use
6103 add_dependence_list_and_free.
6104 (sched_analyze_1): Do not add reg dependencies here; just set
6105 the pending bits. Use add_dependence_list.
6106 (sched_analyze_2): Likewise.
6107 (sched_analyze_insn): Replace schedule_barrier_found with
6108 reg_pending_barrier. Add all dependencies for pending reg
6109 uses, sets, and clobbers.
6110 (sched_analyze): Don't add reg dependencies for calls, just
6111 set pending bits. Use regs_invalidated_by_call. Treat
6112 sched_before_next_call as a normal list, not a fake insn.
6113 (init_deps): No funny init for sched_before_next_call.
6114 (free_deps): Free pending mems lists. Don't zero reg_last.
6115 (init_deps_global): Init reg_pending_uses.
6116 (finish_deps_global): Free it.
6117 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
6118 (find_insn_mem_list): Remove.
6119 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
6120 (propagate_deps): Use them. Zero temp mem lists.
6121
6122 2002-01-26 Richard Henderson <rth@redhat.com>
6123
6124 * Makefile.in (CRTSTUFF_CFLAGS): New.
6125 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
6126 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
6127 crtstuff.c instead of alpha assembly version.
6128 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
6129 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
6130 not FORCE_{INIT,FINI}_SECTION_ALIGN.
6131 (__do_global_dtors_aux): Mark used.
6132 (frame_dummy, __do_global_ctors_aux): Mark used.
6133 (fini_dummy, init_dummy): Remove.
6134
6135 * config/alpha/crtbegin.asm: Remove file.
6136 * config/alpha/crtend.asm: Remove file.
6137 * config/alpha/t-crtbe: Remove file.
6138 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
6139 (LINK_EH_SPEC): New.
6140
6141 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
6142 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
6143 calling constructors.
6144 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
6145
6146 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
6147 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
6148 CRT_END_INIT_DUMMY hack.
6149 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
6150 FORCE_{INIT,FINI}_SECTION_ALIGN.
6151
6152 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
6153 FORCE_{INIT,FINI}_SECTION_ALIGN.
6154
6155 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
6156 invocation sequence.
6157 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
6158
6159 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
6160 (FORCE_CODE_SECTION_ALIGN): New.
6161
6162 2002-01-26 Richard Henderson <rth@redhat.com>
6163
6164 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
6165
6166 2002-01-26 Richard Henderson <rth@redhat.com>
6167
6168 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
6169 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
6170
6171 2002-01-26 Kazu Hirata <kazu@hxi.com>
6172
6173 * config/h8300/h8300.md: Remove bit extraction patterns that
6174 cannot be triggered.
6175 Restrict each bit extraction pattern to a variant on which the
6176 pattern is tested.
6177
6178 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
6179
6180 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
6181
6182 2002-01-26 Kazu Hirata <kazu@hxi.com>
6183
6184 * config/h8300/h8300.md: Remove bit test patterns that cannot
6185 be triggered.
6186 Restrict each bit test pattern to a variant on which the
6187 pattern is tested.
6188
6189 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6190
6191 * builtins.c (expand_builtin_strncat): Remove redundant check for
6192 INTEGER_CST.
6193
6194 2002-01-25 David O'Brien <obrien@FreeBSD.org>
6195
6196 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
6197 default setting.
6198 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
6199 existing setting.
6200
6201 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
6202
6203 * dbxout.c (dbxout_init): Use assemble_name rather than just
6204 stripping off the first character.
6205 (dbxout_source_file): Likewise.
6206
6207 2002-01-25 DJ Delorie <dj@redhat.com>
6208
6209 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
6210 using rtx_equal_p, not by comparing pointers.
6211
6212 2002-01-25 Steve Ellcey <sje@cup.hp.com>
6213
6214 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
6215 for PIC_OFFSET_TABLE_REGNUM.
6216 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
6217
6218 2002-01-25 David O'Brien <obrien@FreeBSD.org>
6219
6220 * config.gcc (x86_64-*-freebsd*): New target.
6221 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
6222 value.
6223 (i[34567]86-*-freebsd*): Don't include svr4.h.
6224 * config/i386/freebsd64.h: New file.
6225
6226 2002-01-25 Douglas B Rupp <rupp@gnat.com>
6227
6228 * config/alpha/x-vms (version): Make static.
6229
6230 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
6231 in previous checkin.
6232
6233 * Makefile.in (install-headers-cp): New target.
6234 * config.gcc (alpha-dec-*vms*): Install headers with
6235 install-headers-cp
6236
6237 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
6238
6239 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
6240 avoid it's copies.
6241
6242 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6243
6244 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
6245 of compare_tree_int.
6246 (expand_builtin_strncat): Likewise.
6247 * c-decl.c (finish_struct): Use tree_low_cst.
6248 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
6249 * tree.c (compare_tree_int): Likewise.
6250
6251 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
6252
6253 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
6254 adjustments even if they are implemented by more than two insns.
6255
6256 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
6257
6258 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
6259 * df.h (struct ref): Kill B.
6260 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
6261
6262 * basic-block.h (PROP_EQUAL_NOTES): New flag.
6263 * flow.c (propagate_one_insn): Use it.
6264 (mark_used_regs): Handle NIL.
6265
6266 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
6267
6268 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
6269 to help folding.
6270
6271 2002-01-25 David Edelsohn <edelsohn@gnu.org>
6272
6273 * rs6000.md (prefetch): Make address V4SI mode so that the address
6274 is restricted to legitimate form for instruction.
6275
6276 2002-01-25 Bob Wilson <bob.wilson@acm.org>
6277
6278 * doc/install.texi (xtensa-*-elf): New target.
6279 (xtensa-*-linux*): New target.
6280 * doc/contrib.texi: Add myself.
6281
6282 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
6283
6284 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
6285 purpose register to hold an SImode (or smaller) value.
6286
6287 2002-01-25 Jakub Jelinek <jakub@redhat.com>
6288
6289 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
6290 registry only.
6291 * crtstuff.c: Likewise.
6292
6293 2002-01-25 Kazu Hirata <kazu@hxi.com>
6294
6295 * config/h8300/h8300.md (negation patterns): Tighten
6296 predicates to register_operand.
6297
6298 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
6299
6300 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
6301 mode, not Pmode.
6302
6303 * builtins.c (expand_builtin_prefetch): Same.
6304
6305 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6306
6307 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
6308 modes.
6309
6310 2002-01-24 Kazu Hirata <kazu@hxi.com>
6311
6312 * config/h8300/h8300.c (print_operand): Remove support for
6313 operand character 'A'.
6314 * config/h8300/h8300.md (three anonymous patterns): Replace
6315 operand character 'A' with either 'T' or 'S'.
6316
6317 2002-01-24 Kazu Hirata <kazu@hxi.com>
6318
6319 * config/h8300/h8300.c (print_operand): Remove support for
6320 operand character 'U'.
6321
6322 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
6323
6324 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
6325
6326 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
6327
6328 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
6329 values to be assigned to the stack pointer.
6330
6331 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
6332
6333 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
6334 to const_double needs to be done right for big-endian systems.
6335
6336 2002-01-24 Jason Merrill <jason@redhat.com>
6337
6338 PR c++/2432
6339 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
6340 to can_throw_internal.
6341
6342 2002-01-23 Richard Henderson <rth@redhat.com>
6343
6344 * fold-const.c (fold): Change UINT_MAX test to check vs precision
6345 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
6346
6347 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6348
6349 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
6350 (symGOT2reg): Use them, then set as GOT value as unchanging.
6351 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
6352 as a temporary, if possible.
6353 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
6354 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
6355
6356 2002-01-23 Kazu Hirata <kazu@hxi.com>
6357
6358 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
6359 accept to accept 0x80 as operands[2].
6360
6361 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6362
6363 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
6364
6365 2002-01-23 Richard Henderson <rth@redhat.com>
6366
6367 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
6368
6369 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
6370
6371 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
6372 (parmlist_or_identifiers_1): Verify that only a parmlist follows
6373 an attribute.
6374
6375 2002-01-23 Richard Henderson <rth@redhat.com>
6376
6377 * expr.c (move_by_pieces_1): Extend size before negation.
6378
6379 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
6380 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
6381 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
6382 * config/m68k/t-m68kelf: Likewise.
6383
6384 2002-01-23 Bob Wilson <bob.wilson@acm.org>
6385
6386 * config/xtensa/elf.h: New file.
6387 * config/xtensa/lib1funcs.asm: New file.
6388 * config/xtensa/lib2funcs.S: New file.
6389 * config/xtensa/linux.h: New file.
6390 * config/xtensa/t-xtensa: New file.
6391 * config/xtensa/xtensa-config.h: New file.
6392 * config/xtensa/xtensa-protos.h: New file.
6393 * config/xtensa/xtensa.c: New file.
6394 * config/xtensa/xtensa.h: New file.
6395 * config/xtensa/xtensa.md: New file.
6396 * config.gcc (xtensa-*-elf*): New target.
6397 (xtensa-*-linux*): New target.
6398 * cse.c (canon_hash): Compare rtx pointers instead of register
6399 numbers. This is required for the Xtensa port.
6400 * integrate.c (copy_insn_list): Handle case where the static
6401 chain is in memory and the memory address has to be copied to
6402 a register.
6403 * doc/invoke.texi (Option Summary): Add Xtensa options.
6404 (Xtensa Options): New node.
6405 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
6406
6407 2002-01-23 Zack Weinberg <zack@codesourcery.com>
6408
6409 * diagnostic.c (internal_error): Do ICE suppression only
6410 when ENABLE_CHECKING is not defined.
6411
6412 * c-typeck.c (require_complete_type): Return error_mark_node
6413 if type is error_mark_node.
6414
6415 2002-01-23 Janis Johnson <janis187@us.ibm.com>
6416
6417 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
6418 -Os and issue a warning.
6419
6420 2002-01-23 Zack Weinberg <zack@codesourcery.com>
6421
6422 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
6423 current (lack of) need for host configuration by hand.
6424
6425 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
6426 references. Documentation of some target macros moved from
6427 hostconfig.texi to tm.texi.
6428
6429 2002-01-23 Will Cohen <wcohen@redhat.com>
6430
6431 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
6432 defined.
6433
6434 2002-01-23 Kazu Hirata <kazu@hxi.com>
6435
6436 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
6437 operand[3].
6438
6439 2002-01-23 Jason Merrill <jason@redhat.com>
6440
6441 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
6442
6443 * function.c (assign_parms): Don't put args of inline functions
6444 into registers when not optimizing.
6445
6446 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
6447
6448 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
6449 (prologue_use): New pattern.
6450 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
6451 preference to gen_rtx_USE.
6452 (thumb_expand_prologue): Use gen_prologue_use in preference to
6453 gen_rtx_USE.
6454 (thumb_expand_epilogue): Use gen_prologue_use in preference to
6455 gen_rtx_USE.
6456
6457 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
6458
6459 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
6460
6461 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
6462
6463 PR c/3504
6464 * doc/extend.texi: Correct documentation of __alignof__.
6465
6466 2002-01-22 Zack Weinberg <zack@codesourcery.com>
6467
6468 * params.h: Rename arguments of DEFPARAM so that it will be
6469 recognized as a translation keyword.
6470
6471 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
6472
6473 * extend.texi: Document altivec functions.
6474 Fix N-bit adjectives in X86 builtin documentation.
6475
6476 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6477
6478 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
6479 auto_inc_dec values.
6480
6481 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
6482
6483 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
6484 after backslash.
6485 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
6486
6487 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6488
6489 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
6490
6491 2002-01-22 Richard Henderson <rth@redhat.com>
6492
6493 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
6494 copy_insn not copy_rtx.
6495
6496 2002-01-23 Alan Modra <amodra@bigpond.net.au>
6497
6498 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
6499 "nonzero" as that might add "1" bits. Ensure "constop" is
6500 properly sign extened.
6501 (force_to_mode): Tweak for sign extended constop.
6502
6503 2002-01-22 Richard Henderson <rth@redhat.com>
6504
6505 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
6506 for_each_rtx instead of assuming we're already looking at the MEM.
6507 (split_small_symbolic_mem_operand): Likewise.
6508 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6509 * config/alpha/alpha.md (small symbolic memory splitters): Update.
6510
6511 2002-01-22 Richard Henderson <rth@redhat.com>
6512
6513 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
6514 sequence number for the literal.
6515 (divmoddi_internal_er): Likewise.
6516
6517 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
6518
6519 PR java/4972
6520 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
6521 in LIBICONV variable.
6522 * configure: Regenerated.
6523
6524 2002-01-22 Krister Walfridsson <cato@df.lth.se>
6525
6526 * dependence.c (build_def_use): Remove array_idx.
6527
6528 * dwarfout.c (last_filename): Remove.
6529 (output_compile_unit_die): Remove last_filename.
6530
6531 2002-01-22 Roger Sayle <roger@eyesopen.com>
6532 Richard Henderson <rth@redhat.com>
6533
6534 PR opt/3640
6535 * fold-const.c (fold): Optimize unsigned comparisons against
6536 UINT_MAX (and similar unsigned constants).
6537
6538 2002-01-22 Janis Johnson <janis187@us.ibm.com>
6539
6540 * Makefile.in (loop.o): Depend on OPTABS_H.
6541 * loop.c (emit_prefetch_instructions): Check the prefetch operand
6542 against the predicate.
6543
6544 PR target/5379
6545 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
6546 for the address operand.
6547
6548 2002-01-22 Richard Henderson <rth@redhat.com>
6549
6550 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
6551
6552 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
6553
6554 PR other/5450
6555 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
6556 preprocessor flags.
6557
6558 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
6559
6560 * config.gcc (x86_64-*-netbsd*): New target.
6561 * config/i386/netbsd64.h: New file.
6562
6563 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
6564
6565 * regrename.c (kill_value): Fix typo.
6566
6567 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
6568
6569 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
6570
6571 * config/rs6000/rs6000.h: Same.
6572
6573 * function.c (instantiate_virtual_regs): Remove
6574 STARTING_FRAME_PHASE.
6575 (assign_stack_local_1): Same.
6576 Calculate frame phase.
6577
6578 2002-01-22 Nick Clifton <nickc@redhat.com>
6579
6580 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
6581 variable declaration to outer scope in order to simplify
6582 future extensions.
6583 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
6584 arm_hard_regno_mode_ok.
6585 * config/arm/arm-protos.h: Add a prototype for
6586 arm_hard_regno_mode_ok.
6587 * config/arm/arm.c (soft_df_operand): Remove now redundant
6588 check for DImode values using IP_REGNUM.
6589 (nonimmediate_soft_df_operand): Remove now redundant check for
6590 DImode values using IP_REGNUM.
6591 (arm_hard_regno_mode_ok): New function. New check: make sure
6592 that DImode values are not stored in IP_REGNUM.
6593
6594 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
6595 note with a USE.
6596 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
6597
6598 2002-01-22 Jason Merrill <jason@redhat.com>
6599
6600 * c-semantics.c (genrtl_compound_stmt): Only check nesting
6601 consistency if this COMPOUND_STMT is scoped.
6602
6603 2002-01-22 Kazu Hirata <kazu@hxi.com>
6604
6605 * predict.c: Fix formatting.
6606 * print-tree.c: Likewise.
6607 * protoize.c: Likewise.
6608 * real.h: Likewise.
6609 * rtl.h: Likewise.
6610 * sbitmap.h: Likewise.
6611 * scan.c: Likewise.
6612 * sched-deps.c: Likewise.
6613 * sched-vis.c: Likewise.
6614 * sdbout.c: Likewise.
6615 * sibcall.c: Likewise.
6616 * ssa.c: Likewise.
6617 * ssa-ccp.c: Likewise.
6618 * ssa-dce.c: Likewise.
6619 * stmt.c: Likewise.
6620 * stor-layout.c: Likewise.
6621 * system.h: Likewise.
6622
6623 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6624
6625 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
6626 if fits in bounds of base type.
6627
6628 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
6629 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
6630 (add_bound_info, default): If can't find a context, make a
6631 SAVE_EXPR.
6632 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
6633
6634 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
6635
6636 * c-typeck.c (parser_build_binary_op): If result from
6637 build_binary_op is ERROR_MARK just return error_mark_node without
6638 further processing.
6639
6640 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
6643 Split a.out-specific bits into...
6644 * config/netbsd-aout.h: ...this.
6645 * config/netbsd-elf.h: New file.
6646 * config/alpha/netbsd-elf.h: Remove.
6647 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
6648 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
6649 (STARTFILE_SPEC): Remove redundant definition.
6650 (ENDFILE_SPEC): Likewise.
6651 (LINK_SPEC): Likewise.
6652 (CPP_SPEC): Likewise.
6653 (ASM_SPEC): Likewise.
6654 (LIB_SPEC): Likewise.
6655 (SWITCH_TAKES_ARG): Likewise.
6656 (TARGET_MEM_FUNCTIONS): Likewise.
6657 (CPP_PREDEFINES): Redefine.
6658 (ASM_FINAL_SPEC): Remove redefinition.
6659 (ASM_COMMENT_START): Redefine.
6660 (FUNCTION_PROFILER): Define.
6661 (TARGET_VERSION): Redefine.
6662 Comment and formatting cleanup.
6663 * config/i386/netbsd.h: Include <netbsd-aout.h>.
6664 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
6665 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
6666 big- or little-endian.
6667 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
6668 * config.gcc (*-*-netbsd*): Add definitions common to all
6669 NetBSD configs.
6670 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
6671 gnu_ld definitions. Add netbsd-elf.h to and remove
6672 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
6673 tmake_file, and don't lose previous tmake_file contents.
6674 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
6675 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
6676 gnu_ld definitions. Add netbsd-elf.h to tm_file.
6677 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
6678 (mipsel-*-netbsd*): Rename this to...
6679 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
6680 mips/little.h to tm_file for mips*el-*.
6681 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
6682 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
6683 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
6684
6685 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
6686
6687 * pa-protos.h (reg_before_reload_operand): New function prototype.
6688 * pa.c (reg_before_reload_operand): New function implementation.
6689 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
6690 contraints to "*m".
6691
6692 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6693
6694 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
6695
6696 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
6697
6698 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
6699 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
6700 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
6701 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
6702 (ENDFILE_SPEC): Undefine.
6703 (STARTFILE_SPEC): Redefine for PA.
6704
6705 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6706
6707 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
6708
6709 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
6710
6711 * config.gcc: Add entries to supported PowerPC --with-cpu
6712 types.
6713
6714 2002-01-21 Jakub Jelinek <jakub@redhat.com>
6715
6716 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
6717 true for 64-bit mode only SSE registers in 32-bit mode.
6718
6719 2002-01-21 Kazu Hirata <kazu@hxi.com>
6720
6721 * unwind-dw2.c: Fix formatting.
6722 * unwind-dw2-fde.c: Likewise.
6723 * unwind-dw2-fde.h: Likewise.
6724 * unwind-pe.h: Likewise.
6725 * varasm.c: Likewise.
6726 * varray.h: Likewise.
6727
6728 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6729
6730 Remove workaround for register stack overwrite bug in mmix.
6731 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
6732 support for TARGET_REG_STACK_FILL_BUG.
6733 * config/mmix/mmix.h: Remove member has_call_without_parameters.
6734 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
6735 Delete.
6736 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
6737 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
6738 -mno-reg-stack-fill-bug-workaround.
6739 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
6740 machine member has_call_without_parameters.
6741 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
6742 -mreg-stack-fill-bug-workaround and
6743 -mno-reg-stack-fill-bug-workaround.
6744 (MMIX Options): Ditto.
6745
6746 2002-01-21 Kazu Hirata <kazu@hxi.com>
6747
6748 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
6749 as appropriate.
6750 Remove redundant code.
6751
6752 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
6753
6754 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
6755 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6756 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6757 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
6758 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
6759 out target macro definitions and non-target-specific comments
6760 mostly taken from old versions of the manual.
6761
6762 2002-01-20 Kazu Hirata <kazu@hxi.com>
6763
6764 * config/h8300/h8300.h: Fix comment formatting.
6765 * config/ia64/aix.h: Likewise.
6766 * config/ia64/ia64-protos.h: Likewise.
6767 * config/ia64/ia64.c: Likewise.
6768 * config/ia64/ia64.h: Likewise.
6769 * config/ia64/ia64intrin.h: Likewise.
6770 * config/ia64/linux.h: Likewise.
6771 * config/ia64/unwind-aix.c: Likewise.
6772 * config/ia64/unwind-ia64.c: Likewise.
6773
6774 2002-01-20 Kazu Hirata <kazu@hxi.com>
6775
6776 * config/h8300/h8300.c: Revise comments about shift code.
6777
6778 2002-01-20 Kazu Hirata <kazu@hxi.com>
6779
6780 * config/h8300/h8300.c (function_arg): Update a comment.
6781
6782 2002-01-20 Kazu Hirata <kazu@hxi.com>
6783
6784 * config/h8300/h8300.md: Update the comments at the beginning
6785 of the file.
6786
6787 2002-01-20 Kazu Hirata <kazu@hxi.com>
6788
6789 * config/i370/i370.c: Fix comment formatting.
6790 * config/i370/i370.h: Likewise.
6791 * config/i370/i370.md: Likewise.
6792 * config/i370/linux.h: Likewise.
6793
6794 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6795
6796 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
6797
6798 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
6799 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
6800 in incomplete case.
6801
6802 2002-01-20 Graham Stott <grahams@redhat.com>
6803
6804 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
6805
6806 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
6807
6808 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
6809
6810 2002-01-19 Tom Rix <trix@redhat.com>
6811
6812 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
6813
6814 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
6815
6816 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
6817
6818 * function.c (assign_stack_local_1): Adjust x_frame_offset with
6819 STARTING_FRAME_PHASE.
6820 (STARTING_FRAME_PHASE): New.
6821 (instantiate_virtual_regs): Check saneness of
6822 STARTING_FRAME_PHASE.
6823
6824 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
6825
6826 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6827
6828 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
6829
6830 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
6831
6832 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
6833 be used for bootstrapping GCC 3.0.
6834
6835 2002-01-18 Kazu Hirata <kazu@hxi.com>
6836
6837 * config/h8300/h8300.md: Fix an insn length.
6838
6839 2002-01-18 Kazu Hirata <kazu@hxi.com>
6840
6841 * bitmap.h: Fix comment formatting.
6842 * combine.c: Likewise.
6843 * cppfiles.c: Likewise.
6844 * c-pragma.h: Likewise.
6845 * c-typeck.c: Likewise.
6846 * df.c: Likewise.
6847 * dwarf2out.c: Likewise.
6848 * function.c: Likewise.
6849 * gcc.c: Likewise.
6850 * genattrtab.c: Likewise.
6851 * gthr-win32.h: Likewise.
6852 * haifa-sched.c: Likewise.
6853 * predict.c: Likewise.
6854 * rtlanal.c: Likewise.
6855 * rtl.h: Likewise.
6856 * unwind-dw2-fde.h: Likewise.
6857 * unwind-pe.h: Likewise.
6858 * vmsdbgout.c: Likewise.
6859
6860 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6861
6862 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
6863 if type_required and passed decl.
6864
6865 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
6866
6867 * config.gcc (cpu_type): Include altivec.h in powerpc
6868 extra_headers.
6869 Same for darwin.
6870
6871 * config/rs6000/altivec.h: New.
6872
6873 2002-01-17 David Edelsohn <edelsohn@gnu.org>
6874
6875 * doc/install.texi (*-ibm-aix*): Update assembler and exception
6876 handling information.
6877 * doc/trouble.texi (Interoperation): Add libstdc++ information
6878 for AIX.
6879 (Misunderstandings): Add template instantiation and static template
6880 member information for AIX.
6881
6882 2002-01-17 Jason Merrill <jason@redhat.com>
6883
6884 * dbxout.c (dbxout_type): Support const and volatile.
6885
6886 * except.c (add_partial_entry): Remove backwards compatibility code.
6887 (end_protect_partials): Likewise.
6888
6889 2002-01-17 Jakub Jelinek <jakub@redhat.com>
6890
6891 * config/ia64/ia64.md (prologue_use): New.
6892 * config/ia64/ia64.c (ia64_expand_prologue): Use
6893 gen_prologue_use instead of gen_rtx_USE.
6894 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
6895 as CODE_FOR_pred_rel_mutex.
6896 (ia64_sched_reorder2): Likewise.
6897
6898 2002-01-16 Eric Christopher <echristo@redhat.com>
6899
6900 * config/mips/r3900.h: Reformat.
6901 (SUBTARGET_CPP_SIZE_SPEC): Remove.
6902 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6903 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
6904 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
6905 * config/mips/t-elf: Remove mips3 multilib.
6906
6907 2002-01-16 H.J. Lu <hjl@gnu.org>
6908
6909 * config/mips/linux.h: Include "mips/abi64.h".
6910
6911 2002-01-16 H.J. Lu <hjl@gnu.org>
6912
6913 * config/mips/t-linux: New.
6914
6915 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
6916
6917 * config/mips/linux.h: Don't include "gofast.h".
6918 (INIT_SUBTARGET_OPTABS): Removed.
6919
6920 2002-01-16 Kazu Hirata <kazu@hxi.com>
6921
6922 * config/h8300/h8300-protos.h: Replace emit_a_shift with
6923 output_a_shift.
6924 * config/h8300/h8300.c: Likewise.
6925 * config/h8300/h8300.md: Likewise.
6926
6927 2002-01-16 Kazu Hirata <kazu@hxi.com>
6928
6929 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
6930 spaces after an opcode name.
6931 (pushqi1_h8300hs): Likewise.
6932 (pushhi1_h8300hs): Likewise.
6933
6934 2002-01-16 Kazu Hirata <kazu@hxi.com>
6935
6936 * doc/extend.texi: Replace "option" with "attribute"
6937 appropriately.
6938
6939 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6940
6941 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
6942 (and:DI () (const_int -8)).
6943 (split_small_symbolic_mem_operand): Split
6944 (mem (and:DI () (const_int -8)).
6945
6946 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6947
6948 PR target/5309:
6949 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
6950 same way as TYPE_IMUL.
6951 (ultrasparc_sched_reorder): Likewise.
6952 * config/sparc/sparc.md (type): Add comment to update
6953 ultrasparc_sched_reorder when making changes.
6954
6955 2002-01-16 Kazu Hirata <kazu@hxi.com>
6956
6957 * doc/invoke.texi: Change the dump file name of block
6958 reordering pass from 28.bbro to 29.bbro.
6959 Mention -dk option.
6960
6961 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
6962
6963 * i386.md (minsf splitter): Fix pasto.
6964
6965 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6966
6967 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
6968 to frame pointer initialisation instruction.
6969 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
6970 initialisation instruction.
6971 (soft_df_operand): Do not accept the IP register.
6972 (nonimmediate_soft_df_operand): Do not accept the IP register.
6973
6974 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6975
6976 PR target/5357:
6977 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
6978 MASK_V8 being both set.
6979
6980 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
6981
6982 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
6983 insn for GOT register; add REG_MAYBE_DEAD notes instead.
6984 config/s390/s390.md (call, call_value): Add GOT register to
6985 CALL_INSN_FUNCTION_USAGE where needed.
6986 (call_exp, call_value_exp): New.
6987
6988 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6989
6990 * config/arm/arm.c: General formatting tidy up.
6991
6992 2002-01-16 Graham Stott <grahams@redhat.com>
6993
6994 * calls.c (try_to_integrate): Use "(size_t)" intermediate
6995 cast and when casting an integer literal to "rtx" pointer.
6996 (expand_call): Likewise.
6997 * flow.c (try_pre_increment): Likewise.
6998 (find_use_as_address): Likewise.
6999 * integrate.c (expand_iline_function): Likewise.
7000 * regmove.c (try_auto_increment): Likewise.
7001
7002 2002-01-16 Graham Stott <grahams@redhat.com>
7003
7004 * sched-rgn.c (passed): Use sbitmap_free.
7005 (header): Likewise.
7006 (inner): Likewise.
7007 (in_queue): Likewise.
7008 (in_stack): Likewise.
7009
7010 2002-01-15 Eric Christopher <echristo@redhat.com>
7011
7012 * flow.c (propagate_one_insn): Change to use fatal_insn.
7013
7014 2002-01-15 Kazu Hirata <kazu@hxi.com>
7015
7016 * expmed.c (extract_fixed_bit_field): Remove unused code.
7017 * system.h: Poison SLOW_ZERO_EXTEND.
7018 * doc/tm.texi: Remove.
7019 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
7020 * config/arm/arm.h: Likewise.
7021 * config/avr/avr.h: Likewise.
7022 * config/clipper/clipper.h: Likewise.
7023 * config/convex/convex.h: Likewise.
7024 * config/d30v/d30v.h: Likewise.
7025 * config/dsp16xx/dsp16xx.h: Likewise.
7026 * config/elxsi/elxsi.h: Likewise.
7027 * config/fr30/fr30.h: Likewise.
7028 * config/h8300/h8300.h: Likewise.
7029 * config/i370/i370.h: Likewise.
7030 * config/i386/i386.h: Likewise.
7031 * config/m68k/m68k.h: Likewise.
7032 * config/mips/mips.h: Likewise.
7033 * config/ns32k/ns32k.h: Likewise.
7034 * config/pdp11/pdp11.h: Likewise.
7035 * config/pj/pj.h: Likewise.
7036 * config/s390/s390.h: Likewise.
7037 * config/sh/sh.h: Likewise.
7038 * config/stormy16/stormy16.h: Likewise.
7039 * config/v850/v850.h: Likewise.
7040 * config/vax/vax.h: Likewise.
7041 * config/we32k/we32k.h: Likewise.
7042
7043 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
7044
7045 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
7046 (altivec_lvsl): Change constraint to b.
7047 (altivec_lvsr): Same.
7048 (altivec_lvebx): Same.
7049 (altivec_lvehx): Same.
7050 (altivec_lvewx): Same.
7051 (altivec_lvxl): Same.
7052 (altivec_lvx): Same.
7053 (altivec_stvx): Add parallel.
7054 (altivec_stvxl): Same.
7055 (altivec_stvehx): Same.
7056 (altivec_stvebx): Same.
7057 (altivec_stvebx): Same.
7058
7059 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
7060
7061 * config.gcc: Change altivec.h to altivec-defs.h.
7062
7063 * config/rs6000/altivec.h: Delete.
7064
7065 * config/rs6000/altivec-defs.h: Add.
7066
7067 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7068
7069 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
7070 and UMOD modes.
7071
7072 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
7073 less than or equal to eight bytes.
7074
7075 * vax.md (andsi3): Remove constraints and change SET destination
7076 operand type to nonimmediate_operand.
7077 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
7078 when it is a CONST_INT.
7079
7080 2002-01-15 Jason Merrill <jason@redhat.com>
7081
7082 * c-common.def (FILE_STMT): New code.
7083 * c-common.c (statement_code_p): It's a statement.
7084 * c-common.h (stmt_tree_s): Add x_last_filename.
7085 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
7086 (last_expr_filename): New macro.
7087 * c-semantics.c (begin_stmt_tree): Initialize it.
7088 (add_stmt): If the filename changed, also insert a
7089 FILE_STMT.
7090 (expand_stmt): Handle seeing one.
7091
7092 2002-01-15 Eric Christopher <echristo@redhat.com>
7093
7094 * flow.c (propagate_one_insn): Add error message and print out
7095 insn for debugging.
7096
7097 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
7098
7099 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
7100 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
7101 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
7102 TRAMPOLINE_ALIGNMENT.
7103 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
7104 to be in bits.
7105 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
7106 PCC_BITFIELD_TYPE_MATTERS.
7107 * config/interix.h (STDC_VALUE): Remove. Use
7108 STDC_0_IN_SYSTEM_HEADERS.
7109 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
7110 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
7111 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
7112
7113 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
7114
7115 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
7116 not work on this platform currently.
7117
7118 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
7119
7120 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
7121 readonly_warning in _().
7122
7123 2002-01-15 Douglas B Rupp <rupp@gnat.com>
7124
7125 * gcc.c (delete_if_ordinary): Backout previous change.
7126
7127 2002-01-15 Kazu Hirata <kazu@hxi.com>
7128
7129 * config/h8300/h8300.c (print_operand): Remove support for
7130 unused operand characters.
7131
7132 * read-rtl.c: Fix formatting.
7133 * real.c: Likewise.
7134 * recog.c: Likewise.
7135 * regclass.c: Likewise.
7136 * regmove.c: Likewise.
7137 * reg-stack.c: Likewise.
7138 * reload1.c: Likewise.
7139 * rtlanal.c: Likewise.
7140
7141 2002-01-15 Kazu Hirata <kazu@hxi.com>
7142
7143 * config/i386/i386.c: Fix formatting.
7144
7145 2002-01-15 Jakub Jelinek <jakub@redhat.com>
7146
7147 * c-typeck.c (process_init_element): Don't save_expr
7148 COMPOUND_LITERAL_EXPR if just its initializer will be used.
7149
7150 2002-01-15 David Edelsohn <edelsohn@gnu.org>
7151
7152 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
7153 emit optional traceback table if optimize_size or TARGET_ELF.
7154 * config/rs6000/rs6000.md (prefetch): New.
7155
7156 2002-01-15 Andreas Jaeger <aj@suse.de>
7157
7158 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
7159
7160 2002-01-15 Kazu Hirata <kazu@hxi.com>
7161
7162 * mips-tfile.c: Fix formatting.
7163
7164 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
7165
7166 * unroll.c (final_reg_note_copy): Fix previous commit.
7167
7168 2002-01-14 Kazu Hirata <kazu@hxi.com>
7169
7170 * config/h8300/h8300-protos.h: Remove the prototype for
7171 eq_operator.
7172 * config/h8300/h8300.c (eq_operator): Remove.
7173
7174 2002-01-14 Richard Henderson <rth@redhat.com>
7175
7176 * config/i386/i386.md (prefetch): Tidy.
7177 (prefetch_3dnow): Fix locality operand.
7178
7179 2002-01-14 Richard Henderson <rth@redhat.com>
7180
7181 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
7182 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
7183
7184 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
7185
7186 * reload1.c (reload_combine): Pass reg_sum replacement through
7187 copy_rtx in loop performing multiple changes.
7188
7189 2002-01-14 Jakub Jelinek <jakub@redhat.com>
7190
7191 * except.c (remove_unreachable_regions): New.
7192 (free_eh_status): Clear exception_handler_labels.
7193 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
7194 (find_exception_handler_labels): Don't add the same label more than
7195 once.
7196 (remove_exception_handler_label): Don't die if
7197 find_exception_handler_labels hasn't been called for the current
7198 function yet.
7199
7200 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
7201
7202 * toplev.c (rest_of_compilation): Rebuild jump labels after
7203 gcse.
7204
7205 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
7206
7207 * doc/extend.texi: Move documentation of X86 built-in functions
7208 here.
7209 * doc/invoke.texi: From here.
7210 * doc/sourcebuild.texi: Document location of documentation for
7211 machine built-in functions.
7212
7213 2002-01-13 Christopher Faylor <cgf@redhat.com>
7214
7215 * cppfiles.c (TEST_THRESHOLD): New macro.
7216 (SHOULD_MMAP): Ditto.
7217 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
7218 be used.
7219
7220 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
7221
7222 * unroll.c (final_reg_note_copy): Properly handle
7223 REG_LABEL
7224 (unroll_loops): Fix LOOP_CONDITION heuristics.
7225
7226 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
7227
7228 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
7229 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
7230
7231 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
7232
7233 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
7234 threaded loop.
7235
7236 2002-01-14 Tom Rix <trix@redhat.com>
7237
7238 * config/rs6000/rs6000.md: Fix typo with sradi.
7239
7240 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
7241
7242 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
7243 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
7244 (clrstrdi, clrstrsi): Adapt callers.
7245
7246 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
7247
7248 (movti splitter): Never use register 0 as base register.
7249
7250 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
7251
7252 * combine.c (simplify_shift_const): Always generate new rtx
7253 for shift expression instead of reusing given expression.
7254
7255 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7256
7257 * config/alpha/alpha.c (alpha_expand_mov): Don't call
7258 alpha_legitimize_address unless mode is Pmode.
7259
7260 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
7261
7262 * doc/md.texi (Modifiers): Document the '*' constraint for the
7263 user.
7264
7265 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
7266 * doc/extend.texi (Function Attributes): 'interrupt' is valid
7267 for xstormy16 too.
7268
7269 2002-01-13 Richard Henderson <rth@redhat.com>
7270
7271 * reload.c (find_reloads): Use a hard reg destination as reload reg
7272 for an input reload of the source.
7273
7274 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7275
7276 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
7277 more generic.
7278
7279 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
7280
7281 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
7282 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
7283
7284 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
7285
7286 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7287
7288 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
7289
7290 2002-01-12 Tom Rix <trix@redhat.com>
7291
7292 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
7293 TARGET_POWERPC64.
7294
7295 2002-01-12 Richard Henderson <rth@redhat.com>
7296
7297 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
7298
7299 * doc/invoke.texi: Update Alpha options.
7300
7301 * doc/invoke.texi: Update i386 built-in function lists.
7302
7303 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
7304
7305 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
7306 referencing outside.
7307
7308 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7309
7310 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
7311 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
7312 offsets, and change line folding.
7313 * optabs.c (expand_binop): Remove warnings.
7314 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
7315
7316 2002-01-12 Graham Stott <grahams@redhat.com>
7317
7318 * attribs.c (handle_deprecated_attribute): constify WHAT.
7319 * diagnostic.c (warn_deprecated_use): Add braces, fixes
7320 dangling else warning and constify WHAT.
7321 * except.h (struct function, struct inline_remap): Move
7322 struct tag forward defs before all prototypes.
7323 (duplicate_eh_regions): Whitespace.
7324
7325 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
7326
7327 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7328 MODE_BASE_REG_CLASS.
7329 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
7330
7331 2002-01-12 Richard Henderson <rth@redhat.com>
7332
7333 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
7334 (ix86_expand_vector_move): New.
7335 (bdesc_2arg): Remove andps, andnps, orps, xorps.
7336 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
7337 Remove old prefetch builtins. Special case the logicals removed above.
7338 (ix86_expand_builtin): Likewise.
7339 (safe_vector_operand): Use V4SFmode, not TImode.
7340 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
7341 (ix86_expand_timode_binop_builtin): New.
7342 * config/i386/i386-protos.h: Update.
7343 * config/i386/i386.h (enum ix86_builtins): Update.
7344 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
7345 Use ix86_expand_vector_move in vector move expanders.
7346 (movti_internal, movti_rex64): Add xorps alternative.
7347 (sse_clrv4sf): Rename and adjust from sse_clrti.
7348 (prefetch): Don't work so hard.
7349 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
7350 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
7351 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
7352
7353 2002-01-11 Richard Henderson <rth@redhat.com>
7354
7355 * config/i386/mmintrin.h: New file.
7356 * config/i386/xmmintrin.h: New file.
7357 * config.gcc (i?86-*-*): Add extra_headers.
7358 * simplify-rtx.c (simplify_unary_operation): Handle saturating
7359 truncation codes.
7360 (simplify_binary_operation): Handle saturating arithmetic codes.
7361 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
7362 not the lowpart subreg.
7363 (ix86_expand_builtin): Return a TImode dummy register instead of 0
7364 on error.
7365 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
7366
7367 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7368
7369 * conflict.c (conflict_graph_compute): Free regsets when finished.
7370 * ssa.c (compute_coalesced_reg_partition): Likewise.
7371
7372 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7373
7374 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
7375 every where we allocate a register.
7376
7377 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7378
7379 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
7380 * lcm.c (compute_earliest, compute_farthest): Likewise.
7381
7382 2002-01-11 Janis Johnson <janis187@us.ibm.com>
7383
7384 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
7385
7386 2002-01-11 Janis Johnson <janis187@us.ibm.com>
7387
7388 * doc/rtl.texi (Insns): Fix 2 typos.
7389
7390 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
7391
7392 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
7393 options. Use @table @gcctabopt for MMIX options. Add index
7394 entries for MMIX options. Start new paragraph with first
7395 heading of the machine-dependent options.
7396
7397 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
7398
7399 PR other/5299
7400 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
7401 * combine.c (force_to_mode): Same.
7402 * reload1.c (clear_reload_reg_in_use): Same.
7403
7404 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
7405
7406 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
7407 and 'subtargets'.
7408
7409 2002-01-11 Andreas Jaeger <aj@suse.de>,
7410 Brad Lucier <lucier@math.purdue.edu>
7411
7412 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
7413 mcpu.
7414
7415 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
7416
7417 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
7418 Protect with IN_LIBGCC.
7419 (LINK_EH_SPEC): Add required trailing space.
7420
7421 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
7422
7423 * c-tree.h: Move function declarations so that they are listed
7424 under the filename which contains them.
7425 (check_identifier, finish_decl_top_level,
7426 lookup_name_current_level_global, shadow_record_fields): Remove.
7427
7428 2002-01-11 Andreas Jaeger <aj@suse.de>
7429
7430 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
7431 march.
7432
7433 2002-01-10 Richard Henderson <rth@redhat.com>
7434
7435 * config/alpha/alpha.c (print_operand): Add 'J'.
7436 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
7437 new operand with the sequence number for the lituse. When splitting
7438 the insns, use gen_movdi_er_high_g and generate a sequence number.
7439 (gen_movdi_er_high_g): Print the sequence number if non-zero.
7440
7441 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
7442
7443 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
7444 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
7445 stvxl.
7446 (altivec_expand_builtin): Same.
7447 (altivec_expand_stv_builtin): New.
7448
7449 * config/rs6000/rs6000.h (rs6000_builtins): Same.
7450
7451 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
7452 ("altivec_lvehx"): New.
7453 ("altivec_lvewx"): New.
7454 ("altivec_lvxl"): New.
7455 ("altivec_lvx"): New.
7456 ("altivec_stvx"): New.
7457 ("altivec_stvebx"): New.
7458 ("altivec_stvehx"): New.
7459 ("altivec_stvewx"): New.
7460 ("altivec_stvxl"): New.
7461
7462 2002-01-10 Richard Henderson <rth@redhat.com>
7463
7464 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
7465 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
7466 care not to delete instructions twice.
7467
7468 2002-01-10 Zack Weinberg <zack@codesourcery.com>
7469
7470 * toplev.c: Don't declare environ (it's not used anywhere).
7471 * configure.in: Don't check for declaration of environ.
7472 * config/i386/xm-mingw32.h: Don't #define environ.
7473 * config.in, configure: Regenerate.
7474
7475 2002-01-10 Zack Weinberg <zack@codesourcery.com>
7476
7477 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
7478 * configure: Regenerate.
7479
7480 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
7481 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
7482 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
7483 alpha/xm-vms.h.
7484 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
7485 LIMITS_H_TEST here, not in m68k/x-next.
7486 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
7487 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
7488
7489 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
7490 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
7491 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
7492
7493 * config/i386/x-djgpp: Renamed i386/t-djgpp.
7494 * config/m88k/x-dolph: Renamed m88k/t-dolph.
7495 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
7496 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
7497 replacement of quadlib.asm with quadlib.c.
7498
7499 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
7500 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
7501 config/rs6000/xm-beos.h: Delete file.
7502
7503 * config.gcc: Update to match above changes.
7504
7505 2002-01-10 Kazu Hirata <kazu@hxi.com>
7506
7507 * config/h8300/h8300.h: Fix comment typos.
7508 * config/h8300/h8300.md: Likewise.
7509 * config/h8300/lib1funcs.asm: Likewise.
7510
7511 2002-01-10 Dale Johannesen <dalej@apple.com>
7512
7513 PR optimization/5269
7514 * unroll.c (precondition_loop_p): Make *increment be the correct
7515 sign when n_iterations known, to avoid confusing caller.
7516
7517 2002-01-10 Kazu Hirata <kazu@hxi.com>
7518
7519 * doc/extend.texi (deprecated): Fix a typo.
7520
7521 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
7522
7523 * basic-block.h (update_br_prob_note): Declare.
7524 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
7525 (try_forward_edges): Care negative frequencies and update note.
7526 (outgoing_edges_match): Tweek conditional merging heuristics.
7527 (try_crossjump_to_edge): use update_br_prob_note.
7528 * cfglayout.c (fixup_reorder_chain): Likewise.
7529 * cfrtl.c (update_br_prob_note): New.
7530 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
7531
7532 * i386.c (ix86_decompose_address): Return -1 if address contains
7533 shift.
7534 (legitimate_address_p): Require ix86_decompose_address to return 1.
7535
7536 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
7537 (cprop_insn): Likewise.
7538
7539 2002-01-10 Kazu Hirata <kazu@hxi.com>
7540
7541 * toplev.c: Fix formatting.
7542 * tree.c: Likewise.
7543 * tree-dump.c: Likewise.
7544 * unroll.c: Likewise.
7545 * unwind-dw2.c: Likewise.
7546 * unwind-dw2-fde.c: Likewise.
7547 * unwind-dw2-fde-glibc.c: Likewise.
7548 * unwind-sjlj.c: Likewise.
7549
7550 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
7551
7552 * doc/invoke.texi: Document PDP-11 options.
7553
7554 2002-01-10 Kazu Hirata <kazu@hxi.com>
7555
7556 * config/h8300/h8300.h: Fix formatting.
7557
7558 2002-01-10 Ira Ruben <ira@apple.com>
7559
7560 Add __attribute__ ((deprecated)).
7561 * extend.texi: Document __attribute__ ((deprecated)).
7562 * invoke.texi: Document -Wno-deprecated-declarations.
7563 * testsuite/g++.dg/other/deprecated.C: New C++ test.
7564 * testsuite/gcc.dg/deprecated.c: New C test.
7565 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
7566 (c_common_attribute_table): Add "deprecated" entry.
7567 (handle_deprecated_attribute): New function.
7568 * c-decl.c (deprecated_states): New enum.
7569 deprecated_state: State of "deprecated" handling.
7570 (start_decl): Set deprecated_state based on attributes.
7571 (grokdeclarator): Test for deprecated uses, propagate attribute.
7572 * c-typeck.c (build_component_ref): Test for deprecated fields.
7573 (build_external_ref): Test for deprecated primaries.
7574 * diagnostic.c (warn_deprecated_use) New function to issue
7575 warnings about __attribute__ ((depricated)) references.
7576 * flags.h (warn_deprecated_decl): Extern declared for
7577 -W[no-]deprecated-declarations option.
7578 * print-tree.c (print_node): Show deprecated flag status.
7579 * toplev.c (warn_deprecated_decl): Defined.
7580 (W_options): Added "deprecated-declaration".
7581 * toplev.h (warn_deprecated_use): Extern declared.
7582 * tree.h (struct tree_common): Define deprecated_flag.
7583 (TREE_DEPRECATED): New macro to access flag.
7584 * cp/call.c (build_call): Test for deprecated calls.
7585 * cp/class.c (add_implicitly_declared_members): Set global
7586 flag to tell grokdeclarator to not issue deprecated warnings.
7587 * cp/cp-tree.h: Add extern for adding_implicit_members.
7588 * cp/decl.c (deprecated_states): New enum.
7589 (start_decl): Set deprecated_state based on attributes.
7590 (grokdeclarator): Test for deprecated uses, propagate attribute.
7591 * cp/lex.c (do_identifier): Test for deprecated primaries.
7592 * cp/typeck.c (build_component_ref): Test for deprecated fields.
7593
7594 2002-01-10 Ira Ruben <ira@apple.com>
7595
7596 Fix to assign attributes to inline member functions.
7597 * cp/decl.c (start_method): Handle attrlist.
7598
7599 2002-01-10 Kazu Hirata <kazu@hxi.com>
7600
7601 * combine.c (expand_field_assignment): Use subreg_lsb().
7602
7603 2002-01-10 David Edelsohn <edelsohn@gnu.org>
7604
7605 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
7606 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
7607 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
7608 Recurse for any operand of AND as long as constant is non-zero.
7609
7610 2002-01-10 Kazu Hirata <kazu@hxi.com>
7611
7612 * config/h8300/h8300.md: Remove constraints from expanders.
7613
7614 2002-01-10 Kazu Hirata <kazu@hxi.com>
7615
7616 * varasm.c: Fix formatting.
7617 * varray.c: Likewise.
7618 * vmsdbgout.c: Likewise.
7619 * xcoffout.c: Likewise.
7620
7621 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
7622
7623 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
7624 update edge probabilities to match.
7625
7626 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
7627
7628 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
7629 dependencies.
7630 * doc/languages.texi, doc/sourcebuild.texi: New files.
7631 * doc/configfiles.texi: Make a subsubsection. Update.
7632 * doc/configterms.texi: Add @node. Remove warning that this isn't
7633 instructions for building GCC.
7634 * doc/makefile.texi: Make a subsection.
7635 * doc/gccint.texi: Update.
7636
7637 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
7638
7639 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
7640
7641 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
7642
7643 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
7644
7645 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
7646
7647 * optabs.c (expand_fix): Look for wider integer modes first.
7648
7649 * i386.md (mov?f): Avoid the fake const double trick for medium
7650 memory model.
7651 (min?f*/max?f*): Prohibit memory operands for i387 variant.
7652 (fop_df_4): Disable for SSE compilation.
7653
7654 2002-01-10 Graham Stott <grahams@redhat.com>
7655
7656 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
7657 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
7658
7659 2002-01-10 Richard Henderson <rth@redhat.com>
7660
7661 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
7662
7663 2002-01-10 Richard Henderson <rth@redhat.com>
7664
7665 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
7666 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
7667
7668 2002-01-10 Kazu Hirata <kazu@hxi.com>
7669
7670 * combine.c (can_combine_p): Fix a comment typo.
7671
7672 2002-01-09 Zack Weinberg <zack@codesourcery.com>
7673
7674 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
7675 empty list correctly. Change loop index $t to $f for
7676 consistency with rest of Makefile.
7677
7678 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
7679
7680 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
7681 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
7682
7683 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
7684 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
7685 (altivec_init_builtins): Same.
7686 (altivec_expand_unop_builtin): Return NULL_RTX on error.
7687 (altivec_expand_binop_builtin): Same.
7688 (altivec_expand_ternop_builtin): Same.
7689 (bdesc_dst): New.
7690
7691 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
7692 ("altivec_vctuxs"): Fix typo.
7693 ("altivec_vnmsubfp"): Same.
7694 ("altivec_dssall"): New.
7695 ("altivec_mfvscr"): New.
7696 ("altivec_dss"): New.
7697 ("altivec_lvsl"): New.
7698 ("altivec_lvsr"): New.
7699 ("altivec_dstt"): New.
7700 ("altivec_dstst"): New.
7701 ("altivec_dststt"): New.
7702 ("altivec_dst"): New.
7703
7704 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
7705 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
7706
7707 2002-01-09 Richard Henderson <rth@redhat.com>
7708
7709 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
7710
7711 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
7712
7713 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
7714 function.
7715 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
7716 prototype.
7717 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
7718
7719 2002-01-09 Kazu Hirata <kazu@hxi.com>
7720
7721 * read-rtl.c: Fix formatting.
7722 * real.c: Likewise.
7723 * regclass.c: Likewise.
7724 * regrename.c: Likewise.
7725 * reg-stack.c: Likewise.
7726 * reload1.c: Likewise.
7727 * reload.c: Likewise.
7728 * rtl.c: Likewise.
7729
7730 2002-01-09 Kazu Hirata <kazu@hxi.com>
7731
7732 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
7733 to extract items in the expr_list chain.
7734
7735 2002-01-09 Richard Henderson <rth@redhat.com>
7736
7737 * config/vax/vax.c (vax_rtx_cost): Never abort.
7738
7739 * config/vax/vax.h (REAL_ARITHMETIC): Define.
7740
7741 2002-01-09 Jan Hubicka <jh@suse.cz>
7742
7743 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
7744
7745 2002-01-09 Richard Henderson <rth@redhat.com>
7746
7747 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
7748 Unify code from various alternatives.
7749
7750 2002-01-09 Richard Henderson <rth@redhat.com>
7751
7752 * regrename.c (copy_value): Ignore the copy if the source register
7753 is present in the value chain with a narrower mode.
7754
7755 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7756
7757 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
7758 for the c4x target. Also improve layout.
7759
7760 2002-01-09 Richard Henderson <rth@redhat.com>
7761
7762 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
7763 * config/m32r/m32r.md (and ior xor splitters): Swap operands
7764 to match insn patterns.
7765
7766 2002-01-09 Richard Henderson <rth@redhat.com>
7767
7768 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
7769 (copyprop_hardreg_forward_1): Likewise.
7770
7771 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
7772
7773 * pa.md (decrement_and_branch_until_zero): Change predicate for
7774 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
7775
7776 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7777
7778 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
7779 gets undefined. For Darwin.
7780
7781 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7782
7783 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
7784
7785 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7786
7787 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
7788
7789 2002-01-08 Richard Henderson <rth@redhat.com>
7790
7791 * regrename.c (copy_value): Ignore overlapping copies.
7792
7793 2002-01-08 Richard Henderson <rth@redhat.com>
7794
7795 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
7796 as needed to avoid shared structure.
7797
7798 2002-01-08 Kazu Hirata <kazu@hxi.com>
7799
7800 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
7801 H8/300H and H8/S.
7802
7803 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7804
7805 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
7806 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
7807 documentation of obsolete macros.
7808 * system.h: Poison these macros.
7809 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
7810 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
7811 config/c4x/c4x.h, config/clipper/clipper.h,
7812 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
7813 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
7814 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
7815 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
7816 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
7817 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
7818 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7819 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
7820 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
7821 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7822 config/sparc/sparc.h, config/stormy16/stormy16.h,
7823 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
7824 definitions and commented out definitions of obsolete macros.
7825 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
7826 of MAX_INT_TYPE_SIZE.
7827
7828 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7829
7830 * config/s390/s390.c (s390_preferred_reload_class): Never
7831 return ADDR_REGS if it isn't a subset of the given class.
7832 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
7833 FP_REGS, but all superclasses as well.
7834
7835 * config/s390/s390.c (s390_function_profiler): Fix thinko.
7836
7837 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
7838 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
7839 must not be a const_int.
7840
7841 2002-01-08 Richard Henderson <rth@redhat.com>
7842
7843 * Makefile.in (toplev.o): Depend on options.h.
7844 (gcc.o): Depend on specs.h.
7845
7846 2002-01-08 Jakub Jelinek <jakub@redhat.com>
7847
7848 * expr.c (store_expr): Convert VOIDmode constants back to target's
7849 mode.
7850
7851 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7852
7853 * doc/invoke.texi: Markup gcc as @command. Refer to
7854 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
7855 of http://gcc.gnu.org/thanks.html.
7856
7857 2002-01-08 Dale Johannesen <dalej@apple.com>
7858
7859 * config/rs6000/rs6000.md: Add missing int register
7860 target case to movdf_low.
7861
7862 2002-01-08 Zack Weinberg <zack@codesourcery.com>
7863
7864 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
7865 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
7866 (cppinit.o): Depend on except.h.
7867 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
7868 s-specs): New rules.
7869
7870 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
7871 Don't create specs.h/options.h/gencheck.h here. Remove
7872 unnecessary variable settings from last argument of AC_OUTPUT.
7873 * config.in, configure: Regenerate.
7874 * intl.c: Hardcode package name as "gcc".
7875
7876 * cppinit.c: Include except.h.
7877 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
7878 appropriate.
7879 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
7880 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
7881 (!)USING_SJLJ_EXCEPTIONS.
7882 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
7883
7884 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7885
7886 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
7887 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
7888 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
7889 documentation of obsolete macros.
7890 * system.h: Poison these macros.
7891 * config/d30v/d30v.h, config/ns32k/encore.h,
7892 config/stormy16/stormy16.h: Remove definitions and commented out
7893 definitions of obsolete macros.
7894
7895 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
7896
7897 * objc/objc-act.c (handle_class_ref): Mark the declaration of
7898 %sobjc_class_ref_%s as used - to prevent unwanted compiler
7899 warnings.
7900
7901 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7902
7903 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
7904 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
7905 to insn adjusting stack/frame pointer.
7906 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
7907 accept operands that cause the insn to be non-splittable.
7908
7909 2002-01-08 Graham Stott <grahams@redhat.com>
7910
7911 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
7912 (C_TYPE_FIELDS_VOLATILE): Likewise.
7913 (C_TYPE_BEING_DEFINED): Likewise.
7914 (C_IS_RESERVED_WORD): Likewise.
7915 (C_TYPE_VARIABLE_SIZE): Likewise.
7916 (C_DECL_VARIABLE_SIZE): Likewise.
7917 (C_MISSING_PROTOTYPE_WARNED): Likewise.
7918 (C_SET_EXP_ORIGINAL_CODE): Likewise.
7919 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
7920 parenthesis.
7921 (C_DECL_ANTICIPATED): Likewise.
7922 (c_build_type_variant): Add parenthesis.
7923
7924 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7925
7926 * gcc.c (option_map): Remove --version.
7927 (process_command): Handle -fversion following the GNU Coding
7928 Standards. Partially addresses PR other/704.
7929
7930 2002-01-08 Graham Stott <grahams@redhat.com>
7931
7932 * combine.c (combine_instructions): Fix typo.
7933
7934 2002-01-08 Graham Stott <grahams@redhat.com>
7935
7936 * debug.h: Use "tree" and "rtx" throughout.
7937
7938 * debug.c: Likewise.
7939
7940 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
7941
7942 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
7943 constant pool, use the pool's version of the symbol instead.
7944
7945 2002-01-07 Richard Henderson <rth@redhat.com>
7946
7947 * regrename.c (find_oldest_value_reg): Ignore the value chain if
7948 the original register was copied in a mode with a fewer number of
7949 hard registers than the desired mode.
7950 (copyprop_hardreg_forward_1): Likewise.
7951 (debug_value_data): Fix loop test.
7952 * toplev.c (parse_options_and_default_flags): Reenable
7953 -fcprop-registers at -O1.
7954
7955 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7956
7957 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
7958 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
7959
7960 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
7961 predicates.
7962
7963 * config/rs6000/rs6000.md: Add altivec predicate patterns.
7964
7965 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7966
7967 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
7968 (pa_output_function_prologue): Output local label at the beginning of
7969 the prologue when profiling.
7970 (hppa_profile_hook): Use the local label rather than the function label.
7971 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
7972
7973 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7974
7975 * config/rs6000/rs6000.c (print_operand): Remove extra space.
7976 (altivec_expand_unop_builtin): Fix thinko.
7977 (altivec_expand_binop_builtin): Same.
7978 (altivec_expand_ternop_builtin): Same.
7979 (altivec_expand_builtin): Same.
7980
7981 2002-01-07 Richard Henderson <rth@redhat.com>
7982
7983 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
7984
7985 2002-01-07 Jason Merrill <jason@redhat.com>
7986
7987 * unwind-dw2.c (execute_cfa_program): Use < again.
7988
7989 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7990
7991 * predict.c (combine_predictions_for_insn): Avoid division by zero.
7992
7993 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7994
7995 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
7996 Don't allow -1 - x -> ~x simplifications in the first pass.
7997
7998 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7999
8000 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
8001 arguments.
8002 (altivec_expand_binop_builtin): Same.
8003 (altivec_expand_unop_builtin): Same.
8004 (print_operand): Fix typo.
8005 (bdesc_1arg): Add vupk* variants.
8006
8007 * rs6000.h (rs6000_builtins): Add vupk* enums.
8008
8009 * rs6000.md: Add altivec_vupk* variants.
8010
8011 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
8012
8013 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
8014 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
8015 and last update dates.
8016
8017 2002-01-07 Janis Johnson <janis187@us.ibm.com>
8018
8019 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
8020
8021 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
8022
8023 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
8024 * config/avr/avr.h (CPP_SPEC): Likewise.
8025 (LINK_SPEC): Likewise.
8026 (CRT_BINUTILS_SPECS): Likewise.
8027 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
8028 * doc/invoke.texi (AVR Options): Document them.
8029
8030 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
8031
8032 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
8033 LABEL_NUSES.
8034
8035 2002-01-07 Graham Stott <grahams@redhat.com>
8036
8037 * config/i386/i386.h: Update copyright date.
8038 (HALF_PIC_PTR): Add parenthesis.
8039 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
8040 (CONSTANT_ALIGNMENT): Add parenthesis.
8041 (DATA_ALIGNMENT): Likewise.
8042 (LOCAL_ALIGNMENT): Likewise.
8043 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
8044 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
8045 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
8046 (HARD_REGNO_NREGS): Add paranethesis.
8047 (VALID_SSE_REG_MODE): Whitespace.
8048 (VALID_MMX_REG_MODE): Whitespace.
8049 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
8050 (ix86_hard_regno_mode_ok): Add parenthesis.
8051 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
8052 (RETURN_IN_MEMORY): Whitespace.
8053 (N_REG_CLASSES): Add parenthesis.
8054 (INTEGER_CLASS_P): Add parenthesis and wrap.
8055 (FLOAT_CLASS_P): Likewise.
8056 (SSE_CLASS_P): Likewise.
8057 (MMX_CLASS_P): Likewise.
8058 (MAYBE_INTEGER_CLASS_P): Likewise.
8059 (MAYBE_FLOAT_CLASS_P): Likewise.
8060 (MAYBE_SSE_CLASS_P): Likewise.
8061 (MAYBE_MMX_CLASS_P): Likewise.
8062 (Q_CLASS_P): Likewise.
8063 (GENERAL_REGNO_P): Uppercase macro parameter.
8064 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
8065 (FP_REGNO_P): Likewise.
8066 (ANY_FP_REGNO_P): Uppercase macro parameter.
8067 (SSE_REGNO_P): Likewise.
8068 (SSE_REGNO): Likewise.
8069 (SSE_REG_P): Likewise.
8070 (SSE_FLOAT_MODE_P): Likewise.
8071 (MMX_REGNO_P): Likewise.
8072 (MMX_REG_P):Likewise.
8073 (STACK_REG_P): Likewise.
8074 (NON_STACK_REG_P): Likewise.
8075 (STACK_TOP_P): Likewise.
8076 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
8077 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
8078 (SECONDARY_MEMORY_NEEDED): Likewise.
8079 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
8080 (MD_ASM_CLOBBERS): Whitespace and wrap.
8081 (MUST_PASS_IN_STACK): Whitespace and wrap.
8082 (RETURN_POPS_ARGS): Add parenthesis.
8083 (INIT_CUMULATIVE_ARGS): Likewise.
8084 (FUNCTION_ARG): Likewise.
8085 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
8086 (SETUP_INCOMING_VARARGS): Likewise.
8087 (BUILD_VA_LIST_TYPE): Add parenthesis.
8088 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
8089 parenthsis.
8090 (EXPAND_BUILTIN_VA_ARG): Likewise.
8091 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
8092 (INITIALIZE_TRAMPOLINE): Add parenthesis.
8093 (INITIAL_ELIMINATION_OFFSET): Likewise.
8094 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
8095 (REGNO_OK_FOR_BASE_P): Likewise.
8096 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
8097 (REGNO_OK_FOR_DIREG_P): Likewise.
8098 (REG_OK_FOR_INDEX_P): Whitespace.
8099 (REG_OK_FOR_BASE_P): Whitespace.
8100 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
8101 parenthesis.
8102 (FIND_BASE_TERM): Fix typo.
8103 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
8104 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
8105 (SYMBOLIC_CONST; Whitespace.
8106 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
8107 (ENCODE_SECTION_INFO): Whitespace.
8108 (FINALIZE_PIC): Remove do { ... } while (0).
8109 (PROMOTE_MODE): Wrap in do { ... } while (0).
8110 (CONST_COSTS): Whitespace.
8111 (RTX_COSTS): Add paramethesis, whitespace and wrap.
8112 (REGISTER_MOVE_COST): Add parenthesis.
8113 (MEMORY_MOVE_COST): Likewise.
8114 (EXTRA_CC_MODES): Whitespace.
8115 (SELECT_CC_MODE): Add parenthesis and whitespace.
8116 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
8117 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
8118 (ASM_OUTPUT_LABEL): Add paramethesis.
8119 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
8120 (ASM_OUTPUT_REG_POP): Likewise.
8121 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
8122 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8123
8124 * config/i386/i386.c: Update copyright.
8125 (CHECK_STACK_LIMIT): Add parenthesis.
8126 (AT_BP): Uppercase macro parameter.
8127 (x86_64_int_parameter_registers): Constify.
8128 (x86_64_int_return_registers): Likewise.
8129 (ix86_compare_op0): Use rtx.
8130 (construct_container): Constify INTREG parameter.
8131 (function_arg): Use rtx.
8132
8133 * diagnostic.h: Update copyright date.
8134 (output_buffer_state): Add parenthesis.
8135 (output_buffer_format_args): Likewise.
8136
8137 * combine.c (combine_instructions): Replace XEXP (links, 0)
8138 with link.
8139
8140 2002-01-06 H.J. Lu <hjl@gnu.org>
8141
8142 * cfgcleanup.c (thread_jump): Fix 2 typos.
8143
8144 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
8145
8146 * config.gcc: Add support for --enable-altivec.
8147
8148 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
8149
8150 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
8151
8152 2002-01-06 Jakub Jelinek <jakub@redhat.com>
8153
8154 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
8155 __objc_class_name_*.
8156
8157 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
8158
8159 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
8160
8161 2002-01-06 Richard Henderson <rth@redhat.com>
8162
8163 * reorg.c (emit_delay_sequence): Remove death notes, not merely
8164 nop them out. Increment label reference count for REG_LABEL.
8165 (fill_slots_from_thread): Frob label reference count around
8166 delete_related_insns.
8167
8168 2002-01-05 Richard Henderson <rth@redhat.com>
8169
8170 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
8171 jump threading.
8172
8173 2002-01-05 Richard Henderson <rth@redhat.com>
8174
8175 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
8176 * integrate.c (output_inline_function): Likewise.
8177 * toplev.c (rest_of_compilation): Do it here instead. Move call
8178 to remove_unnecessary_notes after emitting abstract instance.
8179 Force an emitted nested function to have its parent emited as well.
8180 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
8181 for null.
8182 (rtl_for_decl_location): Do not look at reload data structures
8183 before reload has run.
8184
8185 2002-01-05 Kazu Hirata <kazu@hxi.com>
8186
8187 * cse.c: Fix formatting.
8188 * dwarf2asm.c: Likewise.
8189 * dwarf2out.c: Likewise.
8190 * explow.c: Likewise.
8191 * expmed.c: Likewise.
8192 * function.c: Likewise.
8193 * gcov.c: Likewise.
8194 * gencheck.c: Likewise.
8195 * genrecog.c: Likewise.
8196 * ggc-common.c: Likewise.
8197 * ggc-page.c: Likewise.
8198 * global.c: Likewise.
8199
8200 2002-01-05 Kazu Hirata <kazu@hxi.com>
8201
8202 * combine.c: Fix formatting.
8203
8204 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
8205
8206 PR middle-end/1557
8207 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
8208
8209 2002-01-05 David Edelsohn <edelsohn@gnu.org>
8210
8211 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
8212 as 1 for __powerpc64__ as well.
8213
8214 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
8215
8216 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
8217 return it.
8218
8219 2002-01-05 Daniel Berlin <dan@dberlin.org>
8220
8221 * lcm.c: Revert change, due to performance regression it causes on
8222 SPEC because it's slightly more conservative (sigh, I hate
8223 edge-based LCM).
8224
8225 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
8226
8227 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
8228
8229 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
8230
8231 * doc/cppinternals.texi: Update.
8232
8233 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
8234
8235 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
8236 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
8237 negatives.
8238 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
8239 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
8240 kludge for pre-october-14th mmix versions to handle new-found bug
8241 with PUSHJ/PUSHGO and the register stack.
8242 * config/mmix/mmix.h (struct machine_function): Rename member
8243 has_call_value_without_parameters to has_call_without_parameters.
8244 All referers changed.
8245 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
8246 TARGET_MASK_BRANCH_PREDICT): New macros.
8247 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
8248 -mno-reg-stack-fill-bug-workaround.
8249 * config/mmix/mmix.md ("call"): Set struct machine member
8250 has_call_without_parameters.
8251
8252 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
8253
8254 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
8255
8256 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
8257
8258 * cfgcleanup.c: Include tm_p.h
8259 (mark_effect): Fix handling of hard register; fix handling of SET
8260
8261 2002-01-04 Kazu Hirata <kazu@hxi.com>
8262
8263 * config/h8300/h8300.md (anonymous patterns): Check that
8264 operands are registers before using REGNO on them.
8265
8266 2002-01-03 Roland McGrath <roland@frob.com>
8267
8268 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
8269
8270 2002-01-04 Jakub Jelinek <jakub@redhat.com>
8271
8272 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
8273 * c-common.h (genrtl_expr_stmt_value): Likewise.
8274 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
8275 (expand_expr_stmt_value): Add maybe_last argument.
8276 Don't warn about statement with no effect if it is the last statement
8277 in expression statement.
8278 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
8279 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
8280 expand_expr_stmt_value.
8281 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
8282 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
8283 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
8284 as maybe_last to expand_expr_stmt_value.
8285
8286 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
8287
8288 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
8289 be passed in, do not build it.
8290 (c_begin_if_stmt): New function.
8291 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
8292 * c-common.h (c_expand_start_cond): Update prototype.
8293 (c_begin_if_stmt): Prototype new function.
8294 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
8295 * c-parse.in (if_prefix): Use c_begin_if_stmt,
8296 c_begin_while_stmt and c_finish_while_stmt_cond.
8297
8298 2002-01-04 William Cohen <wcohen@redhat.com>
8299
8300 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
8301 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
8302 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
8303 * config/pa/som.h (ASM_FILE_START): Likewise.
8304
8305 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
8306
8307 * lcm.c: Include df.h.
8308 Add available_transfer_function prototype.
8309 (compute_available): Rework to use iterative dataflow framework.
8310 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
8311 with bb_info in df.h
8312 (available_transfer_function): New function.
8313
8314 * Makefile.in (lcm.o): add df.h to dependencies.
8315
8316 2002-01-04 Richard Henderson <rth@redhat.com>
8317
8318 * config/alpha/alpha.c (some_operand): Accept HIGH.
8319 (input_operand): Likewise; accept simple references to globals.
8320 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
8321 (alpha_const_double_ok_for_letter_p): Likewise.
8322 (alpha_extra_constraint): Likewise.
8323 (alpha_preferred_reload_class): Likewise. Do not force
8324 symbolic constants to memory.
8325 (alpha_legitimate_address_p): Accept simple references
8326 to small_symbolic_operand.
8327 (alpha_legitimize_address): New arg scratch. Be prepared to be
8328 called when no_new_pseudos. Emit simple symbolic references.
8329 Split integers into low, high, and rest.
8330 (alpha_expand_mov): Use alpha_legitimize_address.
8331 (some_small_symbolic_mem_operand): New.
8332 (split_small_symbolic_mem_operand): New.
8333 * config/alpha/alpha-protos.h: Update.
8334 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
8335 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
8336 (EXTRA_CONSTRAINT): Likewise.
8337 (PREFERRED_RELOAD_CLASS): Likewise.
8338 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
8339 (PREDICATE_CODES): Update.
8340 * config/alpha/alpha.md: New post-reload splitters to convert
8341 simplfied symbolic operands to the form that references $29.
8342 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
8343 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
8344
8345 2002-01-03 Richard Henderson <rth@redhat.com>
8346
8347 * local-alloc.c (function_invariant_p): Update commentary.
8348
8349 2002-01-04 H.J. Lu <hjl@gnu.org>
8350
8351 * toplev.c (rest_of_compilation): Fix a typo when calling
8352 cleanup_cfg.
8353
8354 2002-01-03 Kazu Hirata <kazu@hxi.com>
8355
8356 * c-common.c: Fix formatting.
8357 * diagnostic.c: Likewise.
8358 * doloop.c: Likewise.
8359 * dwarf2out.c: Likewise.
8360
8361 2002-01-03 Kazu Hirata <kazu@hxi.com>
8362
8363 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
8364 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
8365
8366 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
8367
8368 * cpperror.c: Update comments and copyright.
8369 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
8370 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
8371
8372 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
8373
8374 * collect2.c (main): Use strcmp when testing for "-shared".
8375
8376 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
8377
8378 * cppmacro.c: Don't include intl.h. Update comments.
8379 (new_number_token): Allocate enough buffer for 64-bit unsigned
8380 integers; update prototype.
8381 * cppmain.c: Update comments.
8382
8383 2002-01-03 William Cohen <wcohen@redhat.com>
8384
8385 * function.h (struct function): Add profile.
8386 (current_function_profile): New.
8387 doc/extend.texi: Update documentation.
8388 * final.c (final_start_function): Use current_function_profile
8389 instead of profile_flag.
8390 (profile_after_prologue): Likewise.
8391 * function.c (expand_function_start): Likewise.
8392 (expand_function_start): Likewise.
8393 * config/alpha/alpha.c (direct_call_operand):
8394 (alpha_does_function_need_gp): Likewise.
8395 (alpha_expand_prologue): Likewise.
8396 * config/arm/arm.c (arm_expand_prologue): Likewise.
8397 thumb_expand_prologue: Likewise.
8398 * config/d30v/d30v.c (d30v_stack_info): Likewise.
8399 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
8400 (fr30_expand_prologue): Likewise.
8401 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
8402 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
8403 * config/i386/i386.h (FINALIZE_PIC): Likewise.
8404 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
8405 * config/i960/i960.c (i960_output_function_prologue): Likewise.
8406 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
8407 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
8408 (m32r_expand_prologue): Likewise.
8409 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
8410 (m88k_expand_prologue): Likewise.
8411 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
8412 * config/mips/mips.c (compute_frame_size): Likewise.
8413 (mips_expand_prologue): Likewise.
8414 (mips_can_use_return_insn): Likewise.
8415 * config/pa/elf.h (ASM_FILE_START): Likewise.
8416 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
8417 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
8418 * config/pa/som.h (ASM_FILE_START): Likewise.
8419 * config/romp/romp.c (romp_using_r14): Likewise.
8420 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
8421 (rs6000_stack_info): Likewise.
8422 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8423 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
8424 * config/v850/v850.c (compute_register_save_size): Likewise.
8425
8426 2002-01-03 Jakub Jelinek <jakub@redhat.com>
8427
8428 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
8429 gen_lowpart_common fails, use gen_lowpart_SUBREG.
8430
8431 2002-01-03 Turly O'Connor <turly@apple.com>
8432
8433 * darwin.c (machopic_output_possible_stub_label): Don't generate
8434 stub routines for pseudo-stubs which we've just defined.
8435
8436 2002-01-03 Kazu Hirata <kazu@hxi.com>
8437
8438 * builtins.c: Fix formatting.
8439 * c-typeck.c: Likewise.
8440 * combine.c: Likewise.
8441 * expr.c: Likewise.
8442 * loop.c: Likewise.
8443
8444 2002-01-03 Andreas Schwab <schwab@suse.de>
8445
8446 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
8447 and return true if _cpp_push_next_buffer pushed a new include
8448 file.
8449 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
8450 _cpp_pop_file_buffer did not push a new file.
8451 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
8452
8453 2002-01-02 Eric Christopher <echristo@redhat.com>
8454
8455 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
8456 FIND_REG_INC_NOTE call. Update copyright.
8457 * loop.c (canonicalize_condition): Ditto.
8458 * reorg.c (delete_scheduled_jump): Ditto.
8459
8460 2002-01-03 Kazu Hirata <kazu@hxi.com>
8461
8462 * gcse.c: Fix formatting.
8463
8464 2002-01-03 Graham Stott <grahams@redhat.com>
8465
8466 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
8467 forward defs for struct tags rtx_def, union_tree, rtvec_def
8468 also output corresponding typedefs for rtx, tree, and rtvec.
8469
8470 * system.h: Move forward defs for struct tags rtx_def, union_tree,
8471 rtvec_def along with corresponding typedefs for rtx, tree, and
8472 rtvec to config.h, hconfig.h, tconfig.h.
8473
8474 2002-01-03 Graham Stott <grahams@redhat.com>
8475
8476 * tree.h: Update copyright date.
8477 (IS_EXPR_CODE_CLASS): Add parenthesis.
8478 (TREE_SET_CODE): Add whitespace.
8479 (TREE_CHECK): Add parenthesis.
8480 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
8481 (CST_OR_CONSTRUCTOR_CHECK):
8482 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
8483 (TREE_SYMBOL_REFERENCED): Whitespace.
8484 (INT_CST_LT): Likewise.
8485 (INT_CST_LT_UNSIGNED): Likewise.
8486 (tree_real_cst): Unwrap comment.
8487 (tree_string): Likewise.
8488 (tree_complex): Likewise.
8489 (IDENTIFIER_POINTER): correct cast.
8490 (SAVE_EXPR_CONTEXT): Whitespace.
8491 (EXPR_WFL_FILENAME_NODE): Likewise.
8492 (EXPR_WFL_FILENAME): Remove parenthesis.
8493 (DECL_ORIGIN): Add parenthesis.
8494 (DECL_FROM_INLINE): Use NULL_TREE.
8495 (build_int_2): Whitespace.
8496 (build_type_variant): Add parenthesis.
8497
8498 * gcc/jcf-parse.c: Update copyright date.
8499 (yyparse): Constify resource_filename.
8500
8501 2002-01-03 Graham Stott <grahams@redhat.com>
8502
8503 * rtl.h: Update copyright date.
8504 (RTL_CHECK1): Wrap long line.
8505 (RTL_CHECK2): Likewise.
8506 (RTL_CHECKC1): Wrap long line and whitespace.
8507 (RTL_CHECKC2): Likewise.
8508 (XWINT): Whitespace.
8509 (XINT): Likewise.
8510 (XSTR): Likewise.
8511 (XEXP): Likewise.
8512 (XVEC): Likewise.
8513 (XMODE): Likewise.
8514 (XBITMAP): Likewise.
8515 (XTREE): Likewise.
8516 (XBBDEF): Likewise.
8517 (XTMPL): Likewise.
8518 (X0WINT): Likewise.
8519 (X0INT):Likewise.
8520 (X0UINT): Likewise.
8521 (X0STR): Likewise.
8522 (X0EXP): Likewise.
8523 (X0VEC): Likewise.
8524 (X0MODE): Likewise.
8525 (X0BITMAP): Likewise.
8526 (X0TREE): Likewise.
8527 (X0BBDEF): Likewise.
8528 (X0ADVFLAGS): Likewise.
8529 (X0CSELIB): Likewise.
8530 (X0MEMATTR): Likewise.
8531 (XCWINT): Likewise.
8532 (XCINT): Likewise.
8533 (XCUINT): Likewise.
8534 (XCSTR): Likewise.
8535 (XCEXP): Likewise.
8536 (XCVEC): Likewise.
8537 (XCMODE): Likewise.
8538 (XCBITMAP): Likewise.
8539 (XCTREE): Likewise.
8540 (XCBBDEF): Likewise.
8541 (XCADVFLAGS): Likewise.
8542 (XCCSELIB): Likewise.
8543 (XC2EXP): Likewise.
8544 (INSN_UID): Likewise.
8545 (PREV_INSN): Likewise.
8546 (PATTERN): Likewise.
8547 (INSN_CODE): Likewise.
8548 (PUT_REG_NOTE_KIND): Likewise.
8549 (CODE_LABEL_NUMBER): Likewise.
8550 (NOTE_SOURCE_FILE): Likewise.
8551 (NOTE_BLOCK): Likewise.
8552 (NOTE_EH_HANDLER): Likewise.
8553 (NOTE_RANGE_INFO): Likewise.
8554 (NOTE_LIVE_INFO): Likewise.
8555 (NOTE_BASIC_BLOCK): Likewise.
8556 (NOTE_EXPECTED_VALUE): Likewise.
8557 (NOTE_LINE_NUMBER): Likewise.
8558 (LABEL_NAME): Likewise.
8559 (LABEL_NUSES): Likewise.
8560 (LABEL_ALTERNATE_NAME): Likewise.
8561 (ADDRESSOF_DECL): Likewise.
8562 (JUMP_LABEL): Likewise.
8563 (LABEL_NEXTREF): Likewise.
8564 (REGNO): Likewise.
8565 (ORIGINAL_REGNO: Likewise.
8566 (HARD_REGISTER_NUM_P): Add parenthesis.
8567 (SUBREG_REG): Whitespace.
8568 (SUBREG_BYTE): Likewise.
8569 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
8570 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
8571 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
8572 (ASM_OPERANDS_INPUT_VEC): Likewise.
8573 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
8574 (ASM_OPERANDS_INPUT): Likewise.
8575 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
8576 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
8577 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
8578 (ASM_OPERANDS_INPUT_MODE): Likewise.
8579 (ASM_OPERANDS_SOURCE_FILE): Likewise.
8580 (ASM_OPERANDS_SOURCE_LINE): Likewise.
8581 (MEM_SET_IN_STRUCT_P): Minor reformat.
8582 (TRAP_CONDITION): Whitespace.
8583 (TRAP_CODE): Likewise.
8584 (COND_EXEC_TEST): Likewise.
8585 (COND_EXEC_CODE): Likewise.
8586 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
8587 (PHI_NODE_P): Add parenthesis.
8588 (plus_constant): Whitespace and add parenthesis.
8589
8590 2002-01-03 Kazu Hirata <kazu@hxi.com>
8591
8592 * config/avr/avr.c: Fix comment typos.
8593 * config/c4x/c4x.md: Likewise.
8594 * config/dsp16xx/dsp16xx.h: Likewise.
8595 * config/dsp16xx/dsp16xx.md: Likewise.
8596 * config/i386/i386.md: Likewise.
8597 * config/ia64/ia64.c: Likewise.
8598 * config/m32r/m32r.h: Likewise.
8599 * config/m68hc11/m68hc11.md: Likewise.
8600 * config/mmix/mmix.c: Likewise.
8601 * config/mn10200/mn10200.c: Likewise.
8602 * config/romp/romp.c: Likewise.
8603 * config/sh/sh.c: Likewise.
8604 * config/stormy16/stormy16.c: Likewise.
8605 * config/stormy16/stormy16.h: Likewise.
8606 * config/stormy16/stormy16.md: Likewise.
8607
8608 2002-01-03 Graham Stott <grahams@redhat.com>
8609
8610 * loop.h: Update copyright date.
8611 (LOOP_MOVABLES): Fix typo.
8612 (LOOP_REGS): Likewise.
8613 (LOOP_IVS): Likewise.
8614
8615 2002-01-03 Graham Stott <grahams@redhat.com>
8616
8617 * cppinit.c: Update copyright date.
8618 Don't include output.h
8619 * Makefile.in: Update copyright date.
8620 Update dependency.
8621
8622 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
8623
8624 PR c/5226
8625 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
8626 (-pthread) Add to RS/6000 options.
8627
8628 2002-01-02 Kazu Hirata <kazu@hxi.com>
8629
8630 * except.c: Fix comment typos.
8631 * loop.c: Likewise.
8632 * varasm.c: Likewise.
8633 * doc/tm.texi: Fix a typo.
8634
8635 2002-01-02 Jakub Jelinek <jakub@redhat.com>
8636
8637 * c-typeck.c (output_init_element): Allow initializing static storage
8638 duration objects with compound literals.
8639
8640 2002-01-02 Richard Henderson <rth@redhat.com>
8641
8642 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
8643 after abusing it.
8644
8645 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8646
8647 * gcc.c (default_compilers): Const-ify.
8648 * mips-tdump.c (stab_names): Likewise.
8649 * mips-tfile.c (map_coff_types, map_coff_storage,
8650 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
8651 pseudo_ops_t, pseudo_ops): Likewise.
8652 * protoize.c (default_include): Likewise
8653
8654 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
8655 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
8656 Add array size in declaration.
8657 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
8658 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
8659 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
8660 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
8661 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
8662 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
8663 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
8664 emtens, make_nan): Const-ify.
8665 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
8666 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
8667
8668 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
8669
8670 * config.gcc (ia64-*-*): Set extra_headers.
8671 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
8672 * config/alpha/t-osf: Remove.
8673 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
8674
8675 2002-01-02 David Edelsohn <edelsohn@gnu.org>
8676
8677 * config/rs6000/t-aix43: Revert previous change.
8678
8679 2002-01-02 Jason Merrill <jason@redhat.com>
8680
8681 * c-decl.c (c_expand_body): Call outlining_inline_function when
8682 emitting an inline function out of line.
8683
8684 2002-01-02 Richard Henderson <rth@redhat.com>
8685
8686 * dwarf2out.c (limbo_die_node): Add created_for member.
8687 (new_die): New argument created_for. Update all callers.
8688 (mark_limbo_die_list): New.
8689 (dwarf2out_init): Register limbo_die_list as a root.
8690 (dwarf2out_finish): Force insert limbo dies into their function
8691 context.
8692
8693 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
8694
8695 PR c++/5089
8696 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
8697
8698 2002-01-02 Kazu Hirata <kazu@hxi.com>
8699
8700 * config/h8300/fixunssfsi.c: Update copyright.
8701 Fix comment typos.
8702 Fix formatting.
8703 * config/h8300/h8300.c: Update copyright.
8704 Eliminate warnings.
8705
8706 2002-01-02 Kazu Hirata <kazu@hxi.com>
8707
8708 * config/romp/romp.c: Fix comment formatting.
8709 * config/romp/romp.h: Likewise.
8710 * config/romp/romp.md: Likewise.
8711 * config/s390/s390.c: Likewise.
8712 * config/stormy16/stormy16.c: Likewise.
8713 * config/stormy16/stormy16.h: Likewise.
8714
8715 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
8716
8717 * c-common.h (genrtl_expr_stmt_value): Declare.
8718 * c-semantics.c (genrtl_goto_stmt): Redirect to...
8719 (genrtl_goto_stmt_value): ... this new function. Pass new
8720 argument down to expand_expr_stmt_value, taking
8721 TREE_ADDRESSABLE into account.
8722 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
8723 STMT_EXPR as addressable, i.e., one whose result we want.
8724 * expr.c (expand_expr): Don't save expression statement value
8725 of labeled_blocks or loop_exprs.
8726 * stmt.c (expand_expr_stmt): Redirect to...
8727 (expand_expr_stmt_value): ... this new function. Use new
8728 argument to tell whether to save expression value.
8729 (expand_end_stmt_expr): Reset last_expr_type and
8730 last_expr_value if we don't have either.
8731 * tree-inline.c (declare_return_variable): Mark its use
8732 statement as addressable.
8733 * tree.h: Document new use of TREE_ADDRESSABLE.
8734 (expand_expr_stmt_value): Declare.
8735
8736 2002-01-01 Tom Rix <trix@redhat.com>
8737
8738 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
8739 rs6000_emit_allocate_stack.
8740
8741 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
8742
8743 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
8744 ${srcdir}/ginclude/ to every entry in extra_headers.
8745 * configure: Regenerate.
8746 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
8747 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
8748 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
8749 * ginclude/proto.h: Rename to config/convex/proto.h.
8750
8751 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8752
8753 * attribs.c (handle_vector_size_attribute): Use host_integerp
8754 and tree_int_cst; remove warnings.
8755 * caller-save.c (insert_restore): Add cast to get rid of warning.
8756 (insert_save): Likewise.
8757 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
8758 * regmove.c (find_matches): Add temporary var to kill a warning.
8759
8760 2002-01-01 Douglas B Rupp <rupp@gnat.com>
8761
8762 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
8763 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
8764 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
8765 (vms-dwarf2eh.o): Add Makefile rule.
8766 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
8767 * config/alpha/vms-dwarf2eh.asm: New file.
8768
8769 * gcc.c (delete_if_ordinary): Delete all versions.
8770
8771 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
8772
8773 * config/mmix/mmix.md: Update FIXME to not mention
8774 define_constants.
8775 (MMIX_rJ_REGNUM): New define_constants constant.
8776 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
8777 "*movdicc_real"): Adjust contraints formatting.
8778 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
8779 for branch prediction.
8780 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
8781 output template.
8782 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
8783 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
8784 number. Delete related FIXMEs.
8785 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
8786 from number to MMIX_rJ_REGNUM.
8787 (TARGET_MASK_BRANCH_PREDICT): New.
8788 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
8789 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
8790 value. Add -mbranch-predict and -mno-branch-predict.
8791 (TARGET_VERSION): Drop date.
8792 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
8793 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
8794 for finding out global symbols.
8795 (mmix_asm_output_labelref): Revert condition for global symbol.
8796 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
8797 (mmix_print_operand_punct_valid_p): A '+' is valid.
8798
8799 See ChangeLog.6 for earlier changes.