re PR target/6500 (Sparc.md's prefetch is buggy)
[gcc.git] / gcc / ChangeLog
1 2002-04-28 David S. Miller <davem@redhat.com>
2
3 PR target/6500
4 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
6 several {reads,writes} instead.
7 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8 Define.
9
10 2002-04-27 David S. Miller <davem@redhat.com>
11
12 PR target/6494
13 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
14 of the stack bias.
15
16 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
17 including signal.h and sys/ucontext.h, not needed.
18
19 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
20
21 * varasm.c (output_constant_def): Correct test for not calling
22 ENCODE_SECTION_INFO for INTEGER_CST.
23
24 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
25
26 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
27 keep most cases as function eval_token.
28 (eval_token): New function.
29 (_cpp_parse_expr): Read token here for improved diagnostics.
30 Don't use op_as_text. Detect bad ':' here.
31 (reduce): Don't detect bad ':' here.
32 (op_as_text): Remove.
33 * cpphash.h (_cpp_test_assertion): Change prototype.
34 * cpplib.c (_cpp_test_assertion): Change prototype.
35
36 2002-04-28 Richard Henderson <rth@redhat.com>
37
38 PR c/5154
39 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
40 (ggc_mark_rtx_children): New.
41
42 2002-04-28 Jakub Jelinek <jakub@redhat.com>
43
44 PR target/6496
45 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
46 after call peepholes for UltraSPARC.
47 (call + jump 64-bit peepholes): Remove.
48
49 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
50
51 PR c/6497
52 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
53 result as temporary value.
54
55 2002-04-28 Jakub Jelinek <jakub@redhat.com>
56
57 PR c++/6396
58 * toplev.c (rest_of_compilation): Only run regrename and copy
59 propagation if optimizing.
60
61 2002-04-28 Jakub Jelinek <jakub@redhat.com>
62
63 PR optimization/6475
64 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
65 register of REGNO_DECL (i).
66 * Makefile.in (reload1.o): Add $(TREE_H).
67
68 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
69
70 * cppexp.c (lex): Update to use state.skip_eval.
71 (struct op): Remove prio and flags members.
72 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
73 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
74 (LEFT_ASSOC): New macro.
75 (optab): New table of operator priorities and flags.
76 (SHIFT): Update.
77 (_cpp_parse_expr): Clean up logic. Return bool. Use a
78 malloc-ed parser stack.
79 (reduce): New; reduce the operator stack.
80 (_cpp_expand_op_stack): Expand the operator stack as necessary.
81 * cpphash.h (struct op): Predeclare.
82 (struct cpp_reader): New members op_stack, op_limit.
83 (struct lexer_state): New member skip_eval.
84 (_cpp_parse_expr): Update.
85 (_cpp_expand_op_stack): New.
86 * cpplib.c (do_if): Update.
87 * cppinit.c (cpp_create_reader): Create op stack.
88 (cpp_destroy): And destroy it.
89 * cpplib.h (CPP_LAST_CPP_OP): Correct.
90 (TTYPE_TABLE): Correct.
91
92 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
93
94 PR c/6343
95 * c-decl.c (duplicate_decls): Call merge_weak.
96 * c-pragma.c (apply_pragma_weak): Warn about misuse.
97 * output.h (merge_weak): Prototype merge_weak.
98 * varasm.c (merge_weak): New function.
99 (declare_weak): Make sure we don't give an error on VAR_DECLs.
100 Mark RTL with SYMBOL_REF_WEAK.
101
102 2002-04-27 Kurt Garloff <garloff@suse.de>
103
104 * tree-inline.c (inlinable_function_p): Improve heuristics
105 by using a smoother function to cut down allowable inlinable size.
106 * param.def: Add parameters max-inline-insns-single,
107 max-inline-slope, min-inline-insns that determine the exact
108 shape of the above function.
109 * param.h: Likewise.
110
111 2002-04-26 Richard Henderson <rth@redhat.com>
112
113 * c-parse.in (malloced_yyss, malloced_yyvs): New.
114 (yyoverflow): Re-add. Set them.
115 (free_parser_stacks): New.
116 * c-common.h: Declare it.
117 * c-lex.c (c_common_parse_file): Call it.
118
119 2002-04-26 Richard Henderson <rth@redhat.com>
120
121 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
122 for fallthru search.
123
124 2002-04-26 Eric Christopher <echristo@redhat.com>
125
126 PR optimization/3700
127 * config/mips/mips.c (mips_issue_rate): Define. New function.
128 (TARGET_SCHED_ISSUE_RATE): Use.
129
130 2002-04-25 David S. Miller <davem@redhat.com>
131
132 PR target/6422
133 * reorg.c (optimize_skip): Do not allow exception causing
134 instructions to be considered for delay slots.
135 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
136 (relax_delay_slots): Do not try to consider exception causing
137 instructions as redundant.
138
139 2002-04-26 Richard Henderson <rth@redhat.com>
140
141 PR c/5225
142 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
143
144 2002-04-26 Mark Mitchell <mark@codesourcery.com>
145
146 PR bootstrap/6445
147 * config/i386/i386.md (untyped_call): Return the value in a float
148 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
149 TARGET_80387.
150
151 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
152
153 * tree.c (tree_int_cst_lt): Compare constants whose types differ
154 in unsigned-ness correctly.
155
156 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
157
158 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
159 portable runtime model.
160
161 2002-04-26 Richard Henderson <rth@redhat.com>
162
163 * c-parse.in (yyoverflow): Revert.
164
165 2002-04-26 David Edelsohn <edelsohn@gnu.org>
166 Richard Henderson <rth@redhat.com>
167
168 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
169 result as temporary value.
170
171 2002-04-26 Richard Henderson <rth@redhat.com>
172
173 PR c/3581
174 * c-common.c (fix_string_type): Split out of ...
175 (combine_strings): ... here. Take a varray, not a tree list.
176 (c_expand_builtin_printf): Use fix_string_type.
177 * c-common.h: Update decls.
178 * c-parse.in (string): Remove. Update all uses to use STRING
179 instead, and not call combine_strings.
180 (yylexstring): New.
181 (_yylex): Use it.
182 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
183 (build_asm_stmt): Likewise.
184 * objc/objc-act.c (my_build_string): Use fix_string_type.
185 (build_objc_string_object): Build varray for combine_strings.
186
187 2002-04-26 Bo Thorsen <bo@suse.co.uk>
188
189 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
190 x86-64.
191
192 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
193
194 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
195 (HAVE_NO_R_OPERAND): Remove.
196 (HAVE_VALUE): Remove.
197 (op_to_prio): Update.
198 (UNARY): Don't alter flags.
199 (_cpp_parse_expr): want_value used to indicate whether
200 a number or unary operator is expected next. Distinguish
201 unary and binary +/-.
202 (op_as_text): Update for unary operators.
203
204 2002-04-25 Richard Henderson <rth@redhat.com>
205
206 PR c/2161
207 * c-parse.in (yyoverflow): New.
208
209 2002-04-25 Richard Henderson <rth@redhat.com>
210
211 PR c/2098
212 * c-common.c (shorten_compare): Simplfy conditions leading to
213 the generation of a warning.
214
215 2002-04-25 Richard Henderson <rth@redhat.com>
216
217 PR c/2035
218 * expmed.c (extract_bit_field): Fall through to generic code rather
219 than aborting on subreg special case.
220
221 2002-04-25 David S. Miller <davem@redhat.com>
222
223 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
224 for DECL being NULL.
225
226 2002-04-25 Steve Christiansen <smc@us.ibm.com>
227
228 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
229
230 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
231
232 * c-decl.c (grokdeclarator): Remove outdated ??? note
233 on invalid declaration of flexible array members.
234
235 2002-04-25 Richard Henderson <rth@redhat.com>
236
237 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
238
239 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
240
241 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
242 needed by the compiler, even if they are used as global regs.
243
244 2002-04-25 Matt Hiller <hiller@redhat.com>
245
246 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
247 functions.
248 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
249 of the corresponding functions.
250 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
251 New prototypes.
252
253 2002-04-25 Matt Hiller <hiller@redhat.com>
254
255 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
256
257 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
258 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
259 registers, adjust comment accordingly.
260 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
261 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
262 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
263 for coprocessor registers.
264 (ADDITIONAL_REGISTER_NAMES): Include
265 ALL_COP_ADDITIONAL_REGISTER_NAMES.
266
267 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
268 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
269 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
270 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
271 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
272
273 (mips_char_to_class): Adjust comment to include coprocessor
274 constraint letters.
275
276 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
277 New functions.
278 (mips_reg_names, mips_regno_to_class): Include coprocessor
279 information.
280 (mips_sw_reg_names): Ditto, make non-static.
281 (mips_move_1word): Handle moves to and from coprocessor registers.
282 (mips_move_2words): Handle moves to and from coprocessor
283 registers.
284 (mips_class_max_nregs, mips_register_move_cost): Handle
285 coprocessor register classes.
286 (override_options): Initialize mips_char_to_class and
287 mips_hard_regno_mode_ok properly for coprocessor registers.
288
289 * config/mips/mips.md (movdi_internal, movdi_internal2,
290 movsi_internal1, movsi_internal2): Add constraint-sets for
291 coprocessor registers.
292 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
293 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
294 isn't mips.
295 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
296 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
297 isn't mips.
298 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
299 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
300 isn't mips.
301 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
302 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
303 isn't mips.
304
305 * doc/tm.texi: Document feature.
306
307 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
308
309 * integrate.c (function_attribute_inlinable_p): Simplify.
310 Check the table pointer is not NULL.
311
312 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
313
314 * doc/c-tree.texi: Fix typo in introduction.
315
316 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
317
318 * c-common.h (c_common_parse_file): Update.
319 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
320 * c-lex.c (YYDEBUG): Get from c-lex.h.
321 (c_common_parse_file): Update.
322 * c-lex.h (YYDEBUG, yydebug): New.
323 * c-parse.in (YYDEBUG): Get from c-lex.h.
324 (c_set_yydebug): Remove.
325 * c-tree.h (c_set_yydebug): Remove.
326 * langhooks-def.h (lhd_do_nothing_i): New.
327 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
328 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
329 * langhooks.c (lhd_do_nothing_i): New.
330 (lhd_set_yydebug): Remove.
331 * langhooks.h (struct lang_hooks): Update.
332 * toplev.c (set_yydebug): New.
333 (compile_file): Update call to parse_file hook.
334 (decode_d_option): Update.
335 objc:
336 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
337
338 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
339
340 * loop.c (load_mems): Don't change the interface of called functions.
341
342 * calls.c (expand_call): Take current_function_pretend_args_size
343 into account when setting argblock for sibcalls.
344
345 2002-04-24 Matt Hiller <hiller@redhat.com>
346
347 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
348 * c-lex.c: Ditto.
349
350 * cpplex.c (skip_line_comment): Process comment one multibyte
351 character at a time rather than one char at a time, if
352 appropriate.
353 (parse_string): Process string one multibyte character at a time
354 rather than one char at a time, if appropriate.
355 * c-lex.c (lex_string): Lex and copy multibyte strings
356 appropriately.
357 * cpplib.h (cppchar_t): Change to unsigned.
358
359 2002-04-24 Richard Henderson <rth@redhat.com>
360
361 PR c/3467
362 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
363 for c99.
364
365 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
366
367 * sh.c (sh_va_arg): If argument was passed by reference,
368 dereference the pointer.
369
370 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
371
372 * sh.md (divsi3_i4_media): Use match_operand for input values
373 rather than hard registers.
374 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
375 unnecessarily through hard registers. Keep copies of pseudo
376 registers outside of the libcall sequence.
377
378 * sh.md (casesi_shift_media): Add modes.
379
380 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
381 values in memory.
382
383 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
384
385 * attribs.c (c_common_attribute_table): Move table and handlers
386 to c-common.c.
387 (format_attribute_table, lang_attribute_table,
388 lang_attribute_common): Remove.
389 (init_attributes): Replace NULL pointers with pointers to the
390 empty table.
391 (handle_packed_attribute, handle_nocommon_attribute,
392 handle_common_attribute, handle_noreturn_attribute,
393 handle_noinline_attribute, handle_always_inline_attribute,
394 handle_used_attribute, handle_unused_attribute,
395 handle_const_attribute, handle_transparent_union_attribute,
396 handle_constructor_attribute, handle_destructor_attribute,
397 handle_mode_attribute, handle_section_attribute,
398 handle_aligned_attribute, handle_weak_attribute,
399 handle_alias_attribute, handle_visibility_attribute,
400 handle_no_instrument_function_attribute, handle_malloc_attribute,
401 handle_no_limit_stack_attribute, handle_pure_attribute,
402 handle_deprecated_attribute, handle_vector_size_attribute,
403 vector_size_helper): Move to c-common.c.
404 * c-common.c (c_common_attribute_table,
405 handle_packed_attribute, handle_nocommon_attribute,
406 handle_common_attribute, handle_noreturn_attribute,
407 handle_noinline_attribute, handle_always_inline_attribute,
408 handle_used_attribute, handle_unused_attribute,
409 handle_const_attribute, handle_transparent_union_attribute,
410 handle_constructor_attribute, handle_destructor_attribute,
411 handle_mode_attribute, handle_section_attribute,
412 handle_aligned_attribute, handle_weak_attribute,
413 handle_alias_attribute, handle_visibility_attribute,
414 handle_no_instrument_function_attribute, handle_malloc_attribute,
415 handle_no_limit_stack_attribute, handle_pure_attribute,
416 handle_deprecated_attribute, handle_vector_size_attribute,
417 vector_size_helper): Move from attribs.c.
418 * c-common.h (c_common_attribute_table,
419 c_common_format_attribute_table): New.
420 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
421 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
422 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
423 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
424 (LANG_HOOKS_INITIALIZER): Update.
425 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
426 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
427 * target.h: Update comment.
428 * tree.c (default_target_attribute_table): Remove.
429 * tree.h (default_target_attribute_table, format_attribute_table,
430 lang_attribute_table, lang_attribute_common): Remove.
431 objc:
432 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
433 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
434
435 2002-04-24 Jason Merrill <jason@redhat.com>
436
437 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
438 * dwarf2out.c (dwarf_attr_name): Support it.
439 (gen_array_type_die): Emit it.
440 (lookup_type_die): No special handling for VECTOR_TYPE.
441 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
442
443 2002-04-24 Richard Henderson <rth@redhat.com>
444
445 * config/mips/mips.md (movdi_usd): Renumber.
446
447 2002-04-24 David S. Miller <davem@redhat.com>
448
449 PR target/6420
450 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
451 32-bit Sparc and current_function_returns_struct is true.
452
453 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
454
455 * loop.c (canonicalize_condition): Use gen_int_mode.
456
457 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
458
459 * config/rs6000/altivec.h: Cleanup file. Add non individual
460 variants.
461 (vec_vaddubm): New.
462 (vec_vadduhm): New.
463 (vec_vadduwm): New.
464 (vec_vaddfp): New.
465 (vec_vaddcuw): New.
466 (vec_vaddubs): New.
467 (vec_vaddsbs): New.
468 (vec_vadduhs): New.
469 (vec_vadduws): New.
470 (vec_vaddsws): New.
471 (vec_vand): New.
472 (vec_vandc): New.
473 (vec_vavgub): New.
474 (vec_vavgsb): New.
475 (vec_vavguh): New.
476 (vec_vavgsh): New.
477 (vec_vavguw): New.
478 (vec_vavgsw): New.
479 (vec_vrfip): New.
480 (vec_vcmpbfp): New.
481 (vec_vcmpequb): New.
482 (vec_vcmpequh): New.
483 (vec_vcmpequw): New.
484 (vec_vcmpeqfp): New.
485 (vec_vcmpgefp): New.
486 (vec_vcmpgtub): New.
487 (vec_vcmpgtsb): New.
488 (vec_vcmpgtuh): New.
489 (vec_vcmpgtsh): New.
490 (vec_vcmpgtuw): New.
491 (vec_vcmpgtsw): New.
492 (vec_vcmpgtfp): New.
493 (vec_vcmpgefp): New.
494 (vec_vcfux): New.
495 (vec_vcfsx): New.
496 (vec_vctsxs): New.
497 (vec_vctuxs): New.
498 (vec_vexptefp): New.
499 (vec_vrfim): New.
500 (vec_lvx): New.
501 (vec_lvebx): New.
502 (vec_lvehx): New.
503 (vec_lde): Add vector float variant.
504 (vec_lvewx): New.
505 (vec_lvxl): New.
506 (vec_vlogefp): New.
507 (vec_vmaddfp): New.
508 (vec_vmhaddshs): New.
509 (vec_vmaxub): New.
510 (vec_vmaxsb): New.
511 (vec_vmaxuh): New.
512 (vec_vmaxsh): New.
513 (vec_vmaxuw): New.
514 (vec_vmaxsw): New.
515 (vec_vmaxsw): New.
516 (vec_vmaxfp): New.
517 (vec_vmrghb): New.
518 (vec_vmrghh): New.
519 (vec_vmrghw): New.
520 (vec_vmrglb): New.
521 (vec_vmrglh): New.
522 (vec_vmrglw): New.
523 (vec_vminub): New.
524 (vec_vminsb): New.
525 (vec_vminuh): New.
526 (vec_vminsh): New.
527 (vec_vminuw): New.
528 (vec_vminsw): New.
529 (vec_vminfp): New.
530 (vec_vmladduhm): New.
531 (vec_vmhraddshs): New.
532 (vec_msumubm): New.
533 (vec_vmsummbm): New.
534 (vec_vmsumuhm): New.
535 (vec_vmsumshm): New.
536 (vec_vmsumuhs): New.
537 (vec_vmsumshs): New.
538 (vec_vmuleub): New.
539 (vec_vmulesb): New.
540 (vec_vmuleuh): New.
541 (vec_vmulesh): New.
542 (vec_vmuloub): New.
543 (vec_mulosb): New.
544 (vec_vmulouh): New.
545 (vec_vmulosh): New.
546 (vec_vnmsubfp): New.
547 (vec_vnor): New.
548 (vec_vor): New.
549 (vec_vpkuhum): New.
550 (vec_vpkuwum): New.
551 (vec_vpkpx): New.
552 (vec_vpkuhus): New.
553 (vec_vpkshss): New.
554 (vec_vpkuwus): New.
555 (vec_vpkswss): New.
556 (vec_vpkshus): New.
557 (vec_vpkswus): New.
558 (vec_vperm): New.
559 (vec_vrefp): New.
560 (vec_vrlb): New.
561 (vec_vrlh): New.
562 (vec_vrlw): New.
563 (vec_vrfin): New.
564 (vec_vrsqrtefp): New.
565 (vec_vsel): New.
566 (vec_vslb): New.
567 (vec_vslh): New.
568 (vec_vslw): New.
569 (vec_vsldoi): New.
570 (vec_vsl): New.
571 (vec_vslo): New.
572 (vec_vspltb): New.
573 (vec_vsplth): New.
574 (vec_vspltw): New.
575 (vec_vspltisb): New.
576 (vec_vspltish): New.
577 (vec_vspltisw): New.
578 (vec_vsrb): New.
579 (vec_vsrh): New.
580 (vec_vsrw): New.
581 (vec_vsrab): New.
582 (vec_vsrah): New.
583 (vec_vsraw): New.
584 (vec_vsr): New.
585 (vec_vsro): New.
586 (vec_stvx): New.
587 (vec_stvebx): New.
588 (vec_stvehx): New.
589 (vec_stvewx): New.
590 (vec_stvxl): New.
591 (vec_vsububm): New.
592 (vec_vsubuhm): New.
593 (vec_vsubuwm): New.
594 (vec_vsubfp): New.
595 (vec_vsubcuw): New.
596 (vec_vsububs): New.
597 (vec_vsubsbs): New.
598 (vec_vsubuhs): New.
599 (vec_vsubshs): New.
600 (vec_vsubuws): New.
601 (vec_vsubsws): New.
602 (vec_vsum4ubs): New.
603 (vec_vsum4sbs): New.
604 (vec_vsum4shs): New.
605 (vec_vsum2sws): New.
606 (vec_vsumsws): New.
607 (vec_vrfiz): New.
608 (vec_vupkhsb): New.
609 (vec_vupkhpx): New.
610 (vec_vupkhsh): New.
611 (vec_vupklsb): New.
612 (vec_vupklpx): New.
613 (vec_vupklsh): New.
614 (vec_vxor): New.
615
616 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
617
618 PR c/5430
619 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
620 added literals from substracted literals.
621 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
622 (fold) [associate]: Preserve MINUS_EXPR if needed.
623
624 2002-04-23 Zack Weinberg <zack@codesourcery.com>
625
626 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
627 are obsoleted.
628
629 2002-04-23 Tom Tromey <tromey@redhat.com>
630
631 * gcc.c: Added --resource. For PR java/6314.
632
633 2002-04-23 David O'Brien <obrien@FreeBSD.org>
634
635 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
636 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
637 these libraries.
638
639 2002-04-23 David O'Brien <obrien@FreeBSD.org>
640
641 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
642
643 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
644
645 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
646 workaround.
647 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
648 (ix86_expand_clrstr): Fix typo.
649 * loop.c (gen_load_of_final_value): New.
650 (loop_givs_rescan, strength_reduce, check_dbra_loop):
651 Use it.
652
653 2002-04-23 Roger Sayle <roger@eyesopen.com>
654
655 * builtins.c (builtin_memset_gen_str): New function.
656 (expand_builtin_memset): Optimize the case of constant length, but
657 unknown value.
658
659 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
660
661 * config/rs6000/altivec.h (vec_step): Remove extraneous
662 parentheses.
663 (vec_ctu): Cast return.
664
665 2002-04-23 Alan Modra <amodra@bigpond.net.au>
666
667 PR target/6413
668 * function.h: (struct function): Add profile_label_no field.
669 (current_function_profile_label_no): Define.
670 * function.c: (profile_label_no): New static var.
671 (expand_function_start): Increment it, and copy to
672 current_function_profile_label_no.
673 * output.h (profile_label_no): Delete.
674 * final.c (profile_label_no): Delete.
675 (profile_function): Use current_function_profile_label_no.
676 (final_end_function): Don't increment profile_label_no here.
677 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
678 profile_label_no with current_function_profile_label_no.
679 * config/pa/pa.c (current_function_number): Delete.
680 (pa_output_function_prologue): Don't output profile label here.
681 (hppa_profile_hook): Use label_no param rather than
682 current_function_number.
683 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
684 * config/pa/pa.h: .. here.
685 (FUNCTION_PROFILER): Output profile label here.
686
687 2002-04-22 Eric Christopher <echristo@redhat.com>
688
689 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
690 patch of 2002-04-09 due to binutils issues.
691 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
692
693 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
694
695 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
696 constraint to 'o' for m=r and r=m alternatives.
697 ("*movv8hi_internal1"): Same.
698 ("*movv16qi_internal1"): Same.
699 ("*movv4sf_internal1"): Same.
700
701 2002-04-22 Janis Johnson <janis187@us.ibm.com>
702
703 * rtl.h (RTX_FLAG): New macro.
704 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
705 * final.c (alter_subreg): Use macro to access rtx flag.
706 * integrate.c (copy_rtx_and_substitute): Use new access macro.
707 * print-rtl.c (print_rtx): Use new access macro.
708
709 * cse.c (insert): Check rtx code before accessing flag.
710
711 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
712 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
713 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
714 convert_const_symbol_ref, make_canonical, make_alternative_compare,
715 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
716 simplify_test_exp, optimize_attrs, simplify_by_exploding,
717 find_and_mark_used_attributes, unmark_used_attributes,
718 add_values_to_cover, simplify_with_current_value,
719 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
720 copy_rtx_unchanging, main): Use new access macros.
721
722 2002-04-22 Tom Rix <trix@redhat.com>
723
724 * expmed.c (init_expmed): Generate shifted constant once.
725
726 2002-04-22 Zack Weinberg <zack@codesourcery.com>
727
728 * c-lex.c (lex_charconst): Call convert to get constant in
729 proper type; don't just smash the type field.
730 Fixes PR c/6300.
731
732 * config.gcc: Add list of obsolete configurations. Disallow
733 building these without --enable-obsolete.
734 * doc/install.texi: Document --enable-obsolete and obsoletion
735 policy. Mention obsoletion of individual targets in
736 appropriate places.
737
738 2002-04-22 Richard Henderson <rth@redhat.com>
739
740 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
741
742 2002-04-22 Mark Mitchell <mark@codesourcery.com>
743
744 PR f/6138.
745 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
746 (walk_fixup_memory_subreg): Likewise.
747 (fixup_var_refs_insn): Adjust accordingly.
748 (fixup_var_refs_1): Likewise.
749
750 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
751
752 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
753 LIBPATH_ARCH64_SPEC): Define.
754 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
755 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
756 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
757 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
758
759 2002-04-22 Joel Sherrill <joel@OARcorp.com>
760
761 * gthr-rtems.h: Correct prototypes to remove warnings.
762
763 2002-04-22 Richard Henderson <rth@redhat.com>
764
765 PR c/6344
766 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
767
768 * gcse.c (free_insn_expr_list_list): New.
769 (clear_modify_mem_tables): Use it. Fix bit set usage.
770 (canon_list_insert): Use EXPR_LISTs for expressions.
771 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
772
773 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
774
775 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
776 file change and include code to _cpp_pop_buffer.
777 * cpphash.h (struct pending_option): Predeclare.
778 (struct cpp_reader): New member next_include_file.
779 (_cpp_pop_file_buffer): Update.
780 (_cpp_push_next_buffer): Update, rename.
781 * cppinit.c (cpp_destroy): Free include chain and pending here.
782 (cpp_finish_options): Simplify.
783 (_cpp_push_next_buffer): Rename and clean up.
784 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
785 Clarify.
786 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
787
788 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
789
790 * config/rs6000/altivec.h (vec_xor): Add variant for both args
791 being vector signed int.
792 (vec_andc): Same.
793 (vec_xor): Add variant for both args being vector signed char.
794 Remove redundant variant.
795 (vec_andc): Same.
796
797 2002-04-21 David S. Miller <davem@redhat.com>
798
799 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
800 compare mode in output RTL.
801
802 2002-04-22 David Edelsohn <edelsohn@gnu.org>
803
804 * config/rs6000/rs6000.c (rs6000_override_options): Correct
805 style and formatting of previous patch.
806
807 2002-04-22 Alan Modra <amodra@bigpond.net.au>
808
809 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
810 flag_pic for ABI_AIX.
811
812 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
813
814 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
815 * cppfiles.c (read_include_file): Similarly.
816 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
817 uxstrdup ustrchr, ufputs): Similarly.
818 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
819 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
820 cpp_ideq, parse_identifier, parse_number): Similarly.
821 * cpplib.c (struct directive, dequote_string, D, run_directive,
822 cpp_push_buffer): Similarly.
823 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
824 _cpp_create_definition, check_trad_stringification,
825 cpp_macro_definition): Similarly.
826
827 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
828
829 * cppmacro.c (funlike_invocation_p): Don't step back
830 over CPP_EOF.
831
832 2002-04-21 David Edelsohn <edelsohn@gnu.org>
833
834 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
835 labelno.
836
837 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
838
839 * doc/invoke.texi: Remove Chill references.
840 * doc/gcc.texi: Update last modified date.
841
842 2002-04-20 Kazu Hirata <kazu@hxi.com>
843
844 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
845 push and pop. Replace add.l with add.w.
846
847 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
848
849 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
850 multiply instructions for H8/300H case.
851
852 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
853
854 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
855 Bum three instructions from each routine.
856
857 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
858
859 * Makefile.in: Update.
860 * decl.c (push_c_function_context, pop_c_function_context,
861 mark_c_function_context): Rename for consistency.
862 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
863 * c-tree.h (push_c_function_context, pop_c_function_context,
864 mark_c_function_context): Rename for consistency.
865 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
866 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
867 * function.c (init_lang_status, save_lang_status,
868 restore_lang_status, mark_lang_status, free_lang_status):
869 Move to langhooks.h.
870 (push_function_context_to, pop_function_context_from,
871 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
872 Update.
873 * function.h (init_lang_status, save_lang_status,
874 restore_lang_status, mark_lang_status, free_lang_status):
875 Move to langhooks.h.
876 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
877 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
878 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
879 LANG_HOOKS_FUNCTION_INITIALIZER): New.
880 (LANG_HOOKS_INITIALIZER): Update.
881 (lhd_do_nothing_f): New.
882 * langhooks.h (struct lang_hooks_for_functions): New.
883 (struct lang_hooks): New hooks.
884 * langhooks.c (lhd_do_nothing_f): New.
885 objc:
886 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
887 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
888
889 2002-04-19 David S. Miller <davem@redhat.com>
890
891 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
892 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
893
894 2002-04-19 Jakub Jelinek <jakub@redhat.com>
895
896 PR optimization/3756
897 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
898 x = ((int) y < 0) ? cst1 : cst2.
899
900 2002-04-19 Jakub Jelinek <jakub@redhat.com>
901
902 PR c/6358
903 * function.c: Reapply patch for c/6358.
904 (expand_function_end): Copy decl_rtl's mode, not
905 current_function_return_rtx mode.
906
907 2002-04-19 Joel Sherrill <joel@OARcorp.com>
908
909 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
910 targets.
911
912 2002-04-19 Tom Tromey <tromey@redhat.com>
913
914 * doc/install.texi (Specific): Update status of Solaris 2.8.
915 For PR libgcj/6158.
916
917 2002-04-19 Andreas Schwab <schwab@suse.de>
918
919 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
920 (PUT_REAL): Restore old definition.
921
922 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
923 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
924
925 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
926 binutils 2.11.2 and higher generate smaller binaries than Sun's
927 native tools.
928
929 2002-04-19 Mark Mitchell <mark@codesourcery.com>
930
931 PR c++/6352
932 * toplev.c (rest_of_compilation): Do not defer functions for which
933 TREE_SYMBOL_REFERENCED has already been set.
934
935 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
936
937 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
938 alternative.
939
940 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
941
942 * builtins.c: Include langhooks.h.
943 (lang_type_promotes_to): Remove.
944 (expand_builtin_va_arg): Use new hook.
945 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
946 (simple_type_promotes_to): Move to c-typeck.c.
947 * c-common.h (simple_type_promotes_to): Remove.
948 * c-decl.c (duplicate_decls, grokdeclarator): Update.
949 * c-format.c: Include langhooks.h.
950 (check_format_types): Update.
951 * c-tree.h (c_type_promotes_to): New.
952 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
953 (type_lists_compatible_p): Update.
954 * langhooks-def.h (lhd_type_promotes_to): New.
955 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
956 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
957 * langhooks.c (lhd_type_promotes_to): New.
958 * langhooks.h (struct lang_hooks_for_types): New hook.
959 * tree.h (lang_type_promotes_to): Remove.
960 objc:
961 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
962
963 2002-04-18 Richard Henderson <rth@redhat.com>
964
965 * function.c: Revert patch for c/6358.
966
967 2002-04-18 Richard Henderson <rth@redhat.com>
968
969 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
970 blocks. Handle multiple references to the TRAP block. Handle
971 non-adjacent THEN and OTHER blocks.
972
973 2002-04-18 Richard Henderson <rth@redhat.com>
974
975 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
976 crash with no type for by-mode libcalls.
977
978 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
979
980 2002-04-18 Bob Wilson <bob.wilson@acm.org>
981
982 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
983 __xtensa_nonlocal_goto): Use a syscall instructions to flush
984 the register windows.
985
986 2002-04-18 Zack Weinberg <zack@codesourcery.com>
987
988 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
989 appropriate. Document need for extended precision even when
990 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
991 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
992 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
993 instead of relying on later syntax error when REAL_WIDTH > 5.
994 * real.c: Define NE based only on whether or not we have a
995 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
996 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
997 define GET_REAL and PUT_REAL as simple memcpy operations; no
998 need to byteswap or round.
999 Use #error instead of #ifdef-ing out the entire file, for
1000 prompt error detection.
1001
1002 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1003
1004 2002-04-18 David S. Miller <davem@redhat.com>
1005
1006 * config/sparc/sparc.h (BRANCH_COST): Define.
1007
1008 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1009 does it.
1010
1011 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1012
1013 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1014 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1015 propagate_block calls after relaxation loop using new variable
1016 stabilized_prop_flags.
1017
1018 2002-04-18 Richard Henderson <rth@redhat.com>
1019
1020 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1021 (ia64_va_arg): Expect variable sized types by reference.
1022 * config/ia64/ia64-protos.h: Update.
1023 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1024 ia64_function_arg_pass_by_reference.
1025
1026 2002-04-18 Richard Henderson <rth@redhat.com>
1027
1028 * ifcvt.c: Include except.h.
1029 (block_has_only_trap): Break out from find_cond_trap.
1030 (find_cond_trap): Use it. Always delete the trap block.
1031 (merge_if_block): Allow then block null. Be less simplistic about
1032 what insns can end a block.
1033 * Makefile.in (ifcvt.o): Depend on except.h.
1034
1035 * config/ia64/ia64.md (trap, conditional_trap): New.
1036
1037 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR c/6358
1040 * function.c (assign_parms): Assign hard current_function_return_rtx
1041 register here...
1042 (expand_function_end): ...not here.
1043
1044 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1045
1046 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1047 * c-tree.h (c_incomplete_type_error): New.
1048 * c-typeck.c (require_complete_type, build_component_ref): Update.
1049 (incomplete_type_error): Rename.
1050 * langhooks-def.h (lhd_incomplete_type_error): New.
1051 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1052 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1053 * langhooks.c (lhd_incomplete_type_error): New.
1054 * langhooks.h (struct lang_hooks_for_types): New hook.
1055 * tree.c (size_in_bytes): Use new hook.
1056 * tree.h (incomplete_type_error): Remove.
1057 objc:
1058 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1059
1060 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1061
1062 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1063 TARGET_FLOAT_FORMAT blocks.
1064
1065 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1066
1067 * doc/install.texi (Downloading the source): Do not mention Chill
1068 any longer, but mention Ada.
1069 (Configuration): Do not mention Chill any longer.
1070
1071 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1072
1073 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1074
1075 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1076
1077 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1078 in last patch.
1079
1080 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1081
1082 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1083 instead of unsigned_type.
1084
1085 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1086
1087 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1088 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1089 later.
1090
1091 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1092
1093 * attribs.c (vector_type_node_list): New static variable.
1094 (handle_vector_size_attribute): Use it to avoid generating a
1095 new type node each time we are called.
1096
1097 * combine.c (subst): Avoid trying to make a vector mode subreg of
1098 an integer constant.
1099 (gen_lowpart_for_combine): Likewise.
1100
1101 2002-04-18 Roger Sayle <roger@eyesopen.com>
1102 Jakub Jelinek <jakub@redhat.com>
1103
1104 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1105 for integer constant c (if x has unsigned type or sign bit is not
1106 set in c). This folds the zero/sign extension into the bit-wise and
1107 operation.
1108
1109 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1110
1111 PR middle-end/6205
1112 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1113 otherwise xorps.
1114
1115 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1116
1117 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1118
1119 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1120
1121 * gcc.c (read_specs): Detect and fail if an attempt is made to
1122 rename a spec string to an already existing string.
1123
1124 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1125
1126 * config/s390/s390.c (legitimize_pic_address): Do not generate
1127 illegal address constant without CONST.
1128
1129 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1130
1131 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1132 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1133
1134 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1135
1136 PR optimization/6305
1137 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1138 to make sure previous reloads are taken into account. Generate
1139 better code if one operand is an in-range immediate constant.
1140
1141 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1142
1143 * doc/install.texi (Building): libgcj requires GNU make.
1144
1145 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1146
1147 PR bootstrap/6315
1148 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1149 even if hard quad and register is not floating.
1150 (movtf reg<-mem split): Disallow splitting if hard quad and
1151 register is floating.
1152 (movtf mem<-reg split): Likewise.
1153 * config/sparc/sparc.c (fp_register_operand): New predicate.
1154 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1155
1156 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1157
1158 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1159 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1160 (unprotoize.o): Ditto. Build from protoize.c. Define
1161 UNPROTOIZE on command line.
1162 * protoize.c: Include cppdefault.h. Delete include_defaults.
1163 (in_system_include_dir): Use cpp_include_defaults (defined in
1164 cppdefault.o).
1165 * unprotoize.c: Delete file.
1166
1167 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1168
1169 * config/rs6000/altivec.h (vec_ld): Add array variants.
1170 (vec_lde): Same.
1171 (vec_ldl): Same.
1172
1173 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1174 Aldy Hernandez <aldyh@redhat.com>
1175
1176 * config/rs6000/altivec.h: Define __ALTIVEC__.
1177 (bool): New.
1178 (__pixel): New.
1179 (pixel): New.
1180 (vec_cfux): New.
1181 (vec_vmaddfp): New.
1182 (vec_vsldoi): New.
1183 Add parentheses to all macro arguments.
1184
1185 2002-04-16 Richard Henderson <rth@redhat.com>
1186
1187 PR c++/6320
1188 * except.c (remove_eh_handler): Insert inner regions at beginning
1189 of sibling chain. Refactor expressions.
1190
1191 2002-04-16 Richard Henderson <rth@redhat.com>
1192
1193 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1194 * config/sparc/sol2-gas-bi.h: New file.
1195 * config.gcc (sparc*-solaris): Add it as needed.
1196 * configure.in (AS_SPARC64_FLAG): Remove check.
1197 * config.in, configure: Regenerate.
1198
1199 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1200
1201 2002-04-16 Richard Henderson <rth@redhat.com>
1202
1203 * config/mips/mips.c (override_options): Don't override N32 for
1204 a 64-bit ISA.
1205
1206 PR 6202
1207 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1208 (HILO_delay): Set can_delay false.
1209
1210 2002-04-16 Dale Johannesen <dalej@apple.com>
1211
1212 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1213 instruction addresses.
1214 (rs6000_output_function_epilogue): Likewise.
1215
1216 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1217
1218 * c-parse.in (poplevel, compstmt_start,
1219 compstmt_primary_start): Add ending ';', in accordance
1220 with POSIX.
1221
1222 2002-04-16 Richard Henderson <rth@redhat.com>
1223
1224 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1225 Adjust tm_file order to get TARGET_DEFAULT set properly.
1226 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1227 * doc/install.texi (sparc-solaris): Update.
1228
1229 2002-04-16 Dale Johannesen <dalej@apple.com>
1230
1231 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1232 comparison operands do not match each other or if modes of
1233 conditions do not match result.
1234
1235 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1236
1237 PR target/6305
1238 * config/s390/s390.md (mulsidi3): Set both subregs of the
1239 multiword register.
1240
1241 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1242
1243 * config/rs6000/altivec.h (vec_addc): Type check.
1244
1245 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1246
1247 PR middle-end/6279
1248 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1249
1250 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1251
1252 2002-04-15 Richard Henderson <rth@redhat.com>
1253
1254 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1255 call_really_used_regs too.
1256
1257 2002-04-15 Richard Henderson <rth@redhat.com>
1258
1259 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1260
1261 2002-04-15 David S. Miller <davem@redhat.com>
1262
1263 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1264 as being CLOBBERed.
1265
1266 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1267
1268 PR c/6290
1269 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1270 CONST_VECTOR is { 0, ... 0 }.
1271
1272 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1273
1274 * doc/install.texi (Installing GCC: Configuration): Clarify
1275 the only supported ways to configure gcc.
1276
1277 2002-04-15 Roland McGrath <roland@frob.com>
1278
1279 * config.gcc (alpha*-*-gnu*): New target configuration.
1280 * config/alpha/gnu.h: New file for it.
1281 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1282
1283 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1284
1285 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1286 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1287 * tree.h (expand_start_stmt_expr): Update prototype.
1288 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1289 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1290 on the STMT_EXPR created for the inline function.
1291
1292 2002-04-15 Richard Henderson <rth@redhat.com>
1293
1294 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1295 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1296 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1297 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1298 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1299 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1300 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1301 Define __gnu_linux__, not gnu_linux.
1302 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1303
1304 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1305
1306 Remove Chill front end.
1307 * gcc.c (default_compilers): Remove Chill entries.
1308 * ch: Remove directory.
1309 * doc/frontends.texi: Remove information about Chill.
1310 * doc/sourcebuild.texi: Likewise.
1311 * doc/standards.texi: Likewise.
1312
1313 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1314
1315 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1316 (LONGLONG_STANDALONE): Define.
1317
1318 2002-04-15 David S. Miller <davem@redhat.com>
1319
1320 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1321 Call emit_library_call with LCT_NORMAL.
1322 (sparc_initialize_trampoline): Use LCT_foo instead of
1323 magic constant in emit_library_call invocations.
1324 (sparc64_initialize_trampoline): Likewise.
1325 (sparc_profile_hook): Likewise.
1326 * config/sparc/sparc.md: Likewise.
1327
1328 * config/sparc/sparc.c (sparc_extra_constraint_check):
1329 Fix type of argument 'c'.
1330 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1331 Likewise.
1332
1333 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1334
1335 * diagnostic.h (output_buffer_state): Redefine.
1336 (output_format_decoder): New macro.
1337 (output_prefixing_rule): Likewise.
1338 (output_line_cutoff): Likewise.
1339 (diagnostic_format_decoder): Adjust.
1340 (diagnostic_prefixing_rule): Likewise.
1341 (diagnostic_line_cutoff): Likewise.
1342 (diagnostic_state): Likewise.
1343 (diagnostic_kind_count): Likewise.
1344 (diagnostic_buffer): Now a macro.
1345
1346 * diagnostic.c (diagnostic_buffer): Remove definition.
1347 (output_is_line_wrapping): Adjust.
1348 (set_real_maximum_length): Likewise.
1349 (output_set_maximum_length): Likewise.
1350 (init_output_buffer): Likewise.
1351 (lhd_print_error_function): Likewise.
1352 (output_do_verbatim): Likewise.
1353
1354 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1355
1356 * cpperror.c (print_location): Don't print include chain
1357 if line == 0.
1358 (cpp_begin_message): Update to use DL_ macros.
1359 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1360 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1361 cpp_notice, cpp_notice_from_errno): Remove.
1362 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1363 level.
1364 (cpp_errno): New.
1365 * cppexp.c (CPP_ICE): Remove.
1366 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1367 lex, integer_overflow, _cpp_parse_expr): Update.
1368 * cppfiles.c (read_include_file, find_include_file,
1369 handle_missing_header, _cpp_read_file, remap_filename): Update.
1370 * cpphash.h (enum error_type): Remove.
1371 (_cpp_begin_message): Update.
1372 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1373 cpp_handle_option, cpp_post_options): Update.
1374 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1375 skip_whitespace, parse_identifier, parse_slow, parse_string,
1376 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1377 cpp_interpret_charconst): Update.
1378 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1379 lex_macro_node, do_undef, glue_header_name, parse_include,
1380 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1381 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1382 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1383 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1384 _cpp_pop_buffer, do_diagnostic): Update.
1385 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1386 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1387 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1388 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1389 cpp_notice, cpp_notice_from_errno): Remove.
1390 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1391 level.
1392 (cpp_errno): New.
1393 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1394 collect_args, enter_macro_context, save_parameter, parse_params,
1395 _cpp_create_definition, check_trad_stringification,
1396 cpp_macro_definition): Update.
1397 * cppmain.c (cpp_preprocess_file): Update.
1398 * fix-header.c (read_scan_file): Update.
1399
1400 2002-04-14 Andreas Schwab <schwab@suse.de>
1401
1402 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1403
1404 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1405
1406 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1407
1408 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1409
1410 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1411 not gnu_hurd.
1412
1413 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1414
1415 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1416
1417 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1418
1419 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1420 sparc-elf and sparc-rtems targets.
1421
1422 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1423
1424 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1425 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1426 * arm/linux-elf.h: Likewise.
1427 * cris/aout.h: Likewise.
1428 * cris/linux.h: Likewise.
1429 * i370/linux.h: Likewise.
1430 * i386/gnu.h: Likewise.
1431 * i386/linux-aout.h: Likewise.
1432 * i386/linux-oldld.h: Likewise.
1433 * i386/linux.h: Likewise.
1434 * i386/linux64.h: Likewise.
1435 * ia64/linux.h: Likewise.
1436 * m68k/linux-aout.h: Likewise.
1437 * m68k/linux.h: Likewise.
1438 * mips/linux.h: Likewise.
1439 * pa/pa-linux.h: Likewise.
1440 * pj/linux.h: Likewise.
1441 * rs6000/sysv4.h: Likewise.
1442 * s390/linux.h: Likewise.
1443 * sh/linux.h: Likewise.
1444 * sparc/linux-aout.h: Likewise.
1445 * sparc/linux.h: Likewise.
1446 * sparc/linux64.h: Likewise.
1447 * xtensa/linux.h: Likewise.
1448
1449 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1450
1451 * stmt.c (check_unique_operand_names): Expect operand names to
1452 be strings rather than identifiers. Use simple_cst_equal to
1453 compare them.
1454 (resolve_operand_name_1): Make same identifier to string change here.
1455 * c-parse.in (asm_operand): Convert a named operand into a string.
1456 * cp/parse.y (asm_operand): Likewise.
1457
1458 2002-04-13 Andreas Schwab <schwab@suse.de>
1459
1460 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1461
1462 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1463
1464 Revert these changes:
1465
1466 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1467
1468 PR c++/5571
1469 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1470
1471 2002-04-12 Richard Henderson <rth@redhat.com>
1472
1473 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1474 (sparc*-*-solaris): Clean up header files.
1475 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1476 and plan on generating 64-bit code.
1477 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1478 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1479 * config/sparc/sol2-sld-64.h: Rename ...
1480 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1481 for AS_SPARC64_FLAG not defined.
1482 * config/sparc/sol2-gld-bi.h: New.
1483 * config/sparc/sol2-sld.h: Remove.
1484 * config/sparc/sol26-sld.h: New.
1485 * config/sparc/sol2.h: Tidy comments.
1486 * doc/install.texi: Document sparc-solaris configury changes.
1487
1488 2002-04-12 Richard Henderson <rth@redhat.com>
1489
1490 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1491
1492 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1493 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1494
1495 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1496
1497 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1498
1499 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1500
1501 * pa.c (pa_can_combine_p): Call extract_insn before calling
1502 constrain_operands.
1503
1504 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1505
1506 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1507 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1508 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1509 (CPP_PREDEFINES): Handle __declspec.
1510 * config/i386/t-interix (USER_H): Remove.
1511
1512 2002-04-12 DJ Delorie <dj@redhat.com>
1513
1514 * integrate.c (compare_blocks): Make comparisons safe for when
1515 sizeof(int) < sizeof(char *).
1516 (find_block): Likewise.
1517
1518 2002-04-12 Jan Hubicka <jh@suse.cz>
1519 David Edelsohn <edelsohn@gnu.org>
1520
1521 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1522 registers.
1523 (symbol_ref_operand): New.
1524 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1525 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1526
1527 2002-04-12 Andreas Schwab <schwab@suse.de>
1528
1529 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1530 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1531 overrides the definition in config/svr4.h.
1532
1533 2002-04-12 Eric Norum <eric.norum@usask.ca>
1534
1535 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1536 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1537 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1538 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1539 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1540 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1541 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1542 definitions to config/rtems.h and make the targets more similar.
1543
1544 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1545
1546 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1547 POINTERS_EXTEND_UNSIGNED.
1548 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1549 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1550
1551 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1552 not specified.
1553
1554 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1555
1556 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1557 depends on TARGET_SHMEDIA, not TARGET_SH5.
1558
1559 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1560
1561 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1562 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1563
1564 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1565
1566 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1567 no r0 clobber.
1568
1569 2002-04-12 Andreas Schwab <schwab@suse.de>
1570
1571 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1572
1573 2002-04-12 Richard Henderson <rth@redhat.com>
1574
1575 PR bootstrap/4191
1576 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1577
1578 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1579 modes spanning multiple hard regs.
1580
1581 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1582
1583 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1584
1585 * pa.c (pa_output_function_prologue): Don't accumulate the total
1586 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1587 the portable runtime.
1588 (output_deferred_plabels): Handle 64bit plabels.
1589 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1590 generating pic code using the GAS assembler for object formats that
1591 are not SOM (ie., ELF32 and ELF64).
1592 (output_millicode_call): Check attribute type if attribute length is 28.
1593 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1594 dbr_sequence_length once.
1595 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1596 dbr_sequence_length once.
1597 * pa.h (TARGET_SOM): Define if not defined.
1598 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1599 with GAS and not SOM.
1600 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1601 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1602
1603 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1604
1605 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1606 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1607 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1608 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1609 elfos.h and dbxelf.h values are fine now.
1610 * config/i386/freebsd.h, config/alpha/freebsd.h
1611 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1612
1613 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1614
1615 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1616 or set Acpu or Amachine. Reformat.
1617 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1618 define.
1619 (LINK_SPEC): Do not need to undef.
1620 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1621 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1622 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1623 define.
1624 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1625 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1626 (LINK_SPEC): Do not need to undef.
1627 (DONT_USE_BUILTIN_SETJMP): Do not define.
1628 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1629 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1630 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1631 Remove trailing spaces.
1632 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1633 __ELF__, or set Acpu or Amachine. Reformat.
1634 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1635 define.
1636
1637 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1638
1639 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1640 all other *-*-freebsd* targets.
1641
1642 2002-04-11 Richard Henderson <rth@redhat.com>
1643
1644 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1645
1646 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1647
1648 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1649 Include {cpu}/{cpu}.h thru tm_file.
1650 (alpha*-*-linux*ecoff): Remove target.
1651 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1652 (LINK_SPEC): Remove, is not OS independent.
1653 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1654 (LINK_SPEC): Do not need to #undef any longer.
1655 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1656 any longer.
1657 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1658 __ELF__.
1659 (LINK_SPEC): Moved here from alpha/elf.h.
1660 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1661 SUB_CPP_PREDEFINES.
1662 * config/alpha/linux-ecoff.h: Remove.
1663 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1664 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1665 (CPP_SUBTARGET_SPEC): Do not define.
1666 (LINK_SPEC): Do not need to #undef any longer.
1667 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1668 * config/alpha/vms.h: Likewise.
1669
1670 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1671
1672 * doc/extend.texi: Remove old claim that typedefs cannot have
1673 an alignment attribute.
1674
1675 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1676
1677 PR optimization/6177
1678 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1679 bitpos is 0 and bitsize CONCAT size.
1680
1681 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR c/6223
1684 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1685
1686 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1687
1688 * config/alpha/freebsd.h: Minor reformatting.
1689 (CPP_SPEC): Define ELF and add cpp_subtarget.
1690 (ASM_SPEC): No longer needed.
1691
1692 2002-04-11 Richard Henderson <rth@redhat.com>
1693
1694 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1695 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1696 (dimode mem/zero splitter): New.
1697
1698 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1699
1700 * config/cris/cris.c (cris_override_options): Tweak error message
1701 for PIC not implemented.
1702
1703 * config/cris/cris.h: Tweak comments related to parameter-passing.
1704
1705 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1706
1707 2002-04-10 Richard Henderson <rth@redhat.com>
1708
1709 * except.c (add_ehl_entry): Allow duplicates after landing pad
1710 creation.
1711
1712 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1713
1714 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1715
1716 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1717
1718 * c-decl.c (c_init_decl_processing): Move generation of
1719 decls for g77_integer_type_node and friends from here ...
1720 * c-common.c (c_common_nodes_and_builtins): ... to here.
1721
1722 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1723
1724 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1725 is only used as frame pointer when frame_pointer_needed is true.
1726
1727 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1728
1729 PR target/817
1730 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1731 for the fact that the pool entry uses two words.
1732 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1733 1k bytes.
1734 (movdf_soft_insn): Similarly.
1735 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1736 for the fact that the pool entry uses three words.
1737
1738 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1739
1740 * config/mips/mips.c (mips_va_arg): When using the struct version
1741 of the EABI va_list, allow arguments in the register save area to
1742 take up less room than a stack argument.
1743
1744 2002-04-10 Richard Henderson <rth@redhat.com>
1745
1746 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1747 if EXPAND_INITIALIZER.
1748
1749 2002-04-09 Richard Henderson <rth@redhat.com>
1750
1751 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1752 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1753
1754 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1755
1756 PR optimization/6233
1757 * rtlanal.c (pure_call_p): New function.
1758 * rtl.h (pure_call_p): Declare.
1759 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1760 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1761
1762 2002-04-09 Eric Christopher <echristo@redhat.com>
1763
1764 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1765 information to .comm directive.
1766
1767 2002-04-09 Richard Henderson <rth@redhat.com>
1768
1769 PR c/5078
1770 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1771
1772 2002-04-09 Richard Henderson <rth@redhat.com>
1773
1774 * basic-block.h (flow_delete_block_noexpunge): Declare.
1775 (expunge_block_nocompact): Declare.
1776 * cfg.c (expunge_block_nocompact): Split out from ...
1777 (expunge_block): ... here.
1778 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1779 (flow_delete_block_noexpunge): Split out from ...
1780 (flow_delete_block): ... here.
1781 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1782 removing dead blocks.
1783 * except.c (exception_handler_labels): Remove.
1784 (exception_handler_label_map): New.
1785 (struct eh_region): Add aka member.
1786 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1787 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1788 (for_each_eh_label, for_each_eh_label_1): New.
1789 (init_eh): Register exception_handler_label_map.
1790 (free_eh_status): Use free_region.
1791 (find_exception_handler_labels): Use the map, not the list.
1792 (remove_exception_handler_label): Likewise.
1793 (maybe_remove_eh_handler): Likewise.
1794 (remove_eh_handler): Use the region aka bitmap.
1795 * except.h (exception_handler_labels): Remove.
1796 (for_each_eh_label): Declare.
1797 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1798 * loop.c (invalidate_loops_containing_label): New.
1799 (find_and_verify_loops): Use it. Use for_each_eh_label.
1800 * sched-rgn.c (is_cfg_nonregular): Use
1801 current_function_has_exception_handlers.
1802
1803 2002-04-09 Richard Henderson <rth@redhat.com>
1804
1805 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1806 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1807 Do not return changed status.
1808 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1809 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1810 New functions that do return changed status.
1811 * sbitmap.h: Update decls.
1812 * gcse.c, lcm.c: Use _cg functions as needed.
1813
1814 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1815
1816 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1817 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1818 * config/sh/embed_bb.c: New file.
1819 * config/sh/embed-elf.h: New file.
1820 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1821 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1822 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1823 __PTRDIFF_TYPE__ .
1824 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1825 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1826 Add subtarget_asm_endian_spec.
1827 (ASM_SPEC): Use subtarget_asm_endian_spec.
1828 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1829 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1830 (WCHAR_UNSIGNED): Define.
1831 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1832 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1833 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1834 Fix value.
1835 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1836 (sh_adjust_cost): Likewise.
1837 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1838 __PTRDIFF_TYPE__ .
1839 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1840 (WCHAR_TYPE_SIZE): Likewise.
1841 (ASM_SPEC): Use subtarget_asm_endian_spec.
1842 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1843 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1844 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1845 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1846 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1847 (USER_LABEL_PREFIX): Don't #undef /#define .
1848 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1849 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1850 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1851 (ASM_SPEC): Likewise.
1852 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1853 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1854 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1855 (LIB2FUNCS_EXTRA): Define.
1856 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1857 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1858 (LIB1ASMFUNCS_CACHE): Define.
1859 (LIB2FUNCS_EXTRA): Redefine empty.
1860
1861 2002-04-08 Richard Henderson <rth@redhat.com>
1862
1863 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1864
1865 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1866
1867 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1868 and optimize for size.
1869 (__do_global_ctors): Fix pointer comparison.
1870 (__do_global_dtors): Likewise.
1871
1872 2002-04-09 David S. Miller <davem@redhat.com>
1873
1874 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1875 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1876 allow reloading pseudos.
1877 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1878 * config/sparc/sparc-protos.h: Declare it.
1879
1880 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1881 unsigned comparison warning.
1882 (output_restore_regs): Mark leaf_function as unused.
1883
1884 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1885
1886 * expr.c (is_aligning_offset): New function.
1887 (expand_expr, case COMPONENT_EXPR): Call it.
1888
1889 2002-04-08 David S. Miller <davem@redhat.com>
1890
1891 PR target/6082
1892 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1893
1894 Make init_priority work on Sparc when using GNU ld.
1895 * config/sparc/linux.h, config/sparc/linux64.h,
1896 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1897 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1898 * config/sparc/sol2-gld.h: New file to do the same.
1899 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1900 sparc/sol2-gld.h to tm_file.
1901
1902 PR optimization/4328
1903 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1904 * doc/md.texi: Document it.
1905 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1906 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1907 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1908 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1909 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1910
1911 2002-04-08 Andreas Jaeger <aj@suse.de>
1912
1913 * stmt.c (expand_asm_operands): Revert last patch from Richard
1914 Henderson.
1915
1916 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1917
1918 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1919 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1920
1921 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1922
1923 * doc/contrib.texi (Contributors): Add David O'Brien.
1924
1925 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1926
1927 * configure.in (auto-build.h): Use target_alias and build_alias
1928 when running configure.
1929 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1930 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1931 * configure: Regenerate.
1932
1933 2002-04-07 David S. Miller <davem@redhat.com>
1934
1935 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1936
1937 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1938
1939 PR 5933
1940 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1941 generating 32-bit pic code.
1942
1943 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1944
1945 * cppinit.c (cpp_create_reader): Initialize
1946 discard_comments_in_macro_exp.
1947 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1948 (cpp_handle_option): Handle "-CC" option.
1949 * cpplex.c (save_comment): If saving a C++ comment in
1950 a directive, convert it to a C comment.
1951 (_cpp_lex_direct): Pass second comment start character to
1952 save_comment to indicate comment type.
1953 * cpplib.c (_cpp_handle_directive): If processing
1954 a "#define" directive and discard_comments_in_macro_exp
1955 is false, re-enable saving of comments.
1956 (lex_macro_node): If discard_comments_in_macro_exp is false,
1957 discard any comments before the macro identifier.
1958 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1959 member.
1960 * cppmacro.c (cpp_get_token): If expanding a macro while
1961 processing a directive, discard any comments we might encounter.
1962 (parse_params): If discard_comments_in_macro_exp is false,
1963 ignore comments in the macro parameter list.
1964 * gcc.c (cpp_unique_options): Add "-CC" option.
1965 (option_map): Map "--comments-in-macros" to "-CC".
1966 * doc/cppopts.texi: Document "-CC" option.
1967 * f/lang-specs.h: Add "-CC" option.
1968 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1969 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1970 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1971 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1972 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1973 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1974
1975 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1976
1977 PR middle-end/6180
1978 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1979
1980 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1981
1982 PR c++/5571
1983 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1984
1985 PR opt/5120
1986 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1987 RTX_UNCHANGING_P for the functions arguments when a tail call
1988 is made.
1989
1990 2002-04-06 Jason Merrill <jason@redhat.com>
1991
1992 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1993 (parse_options_and_default_flags): Set them appropriately.
1994 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1995
1996 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1997
1998 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1999 here.
2000
2001 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2002 semicolon.
2003
2004 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2005 types come in by-reference. Fix typo in comment.
2006
2007 2002-04-05 David S. Miller <davem@redhat.com>
2008
2009 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2010 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2011 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2012 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2013
2014 2002-04-05 David S. Miller <davem@redhat.com>
2015
2016 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2017 are not going to emit return instructions, emit at least a nop
2018 for the sake of sane backtraces.
2019
2020 2002-04-05 Richard Henderson <rth@redhat.com>
2021
2022 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2023
2024 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2025
2026 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2027
2028 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2029
2030 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2031 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2032 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2033
2034 2002-04-05 Andreas Schwab <schwab@suse.de>
2035
2036 * c-convert.c: Include c-common.h.
2037 * Makefile.in (c-convert.o): Updated.
2038
2039 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2040
2041 * mklibgcc.in: Use separate libgcc.map for each multilib.
2042 * Makefile.in (distclean): Don't remove libgcc.map here.
2043
2044 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2045
2046 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2047 genmultilib invocation.
2048
2049 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2050
2051 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2052 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2053 to num_gprs for symmetry.
2054 * config/mips/mips.c: Adjust accordingly.
2055
2056 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2057
2058 * c-common.c (truthvalue_conversion): Rename, update.
2059 * c-common.h (c_common_truthvalue_conversion): New.
2060 * c-convert.c (convert): Update.
2061 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2062 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2063 * c-typeck.c (build_binary_op, build_unary_op,
2064 build_conditional_expr): Update.
2065 * fold-const.c (constant_boolean_node, fold): Use langhook.
2066 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2067 * langhooks.h (struct lang_hooks): New hook.
2068 * stmt.c (expand_decl_cleanup): Use langhook.
2069 * tree.h (truthvalue_conversion): Remove.
2070 objc:
2071 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2072
2073 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2074
2075 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2076 Add rules to make null object file.
2077
2078 2002-04-04 Jim Blandy <jimb@redhat.com>
2079
2080 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2081 macro formal parameter names.
2082
2083 2002-04-04 David S. Miller <davem@redhat.com>
2084
2085 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2086
2087 2002-04-04 Richard Henderson <rth@redhat.com>
2088
2089 PR middle-end/5099
2090 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2091 Support copies into and out of memory. Don't accept allows_reg
2092 and allows_mem as gospel.
2093
2094 2002-04-04 Richard Henderson <rth@redhat.com>
2095
2096 PR opt/6165
2097 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2098 (write_dependence_p): Likewise.
2099
2100 2002-04-04 Richard Henderson <rth@redhat.com>
2101
2102 * predict.c (estimate_bb_frequencies): Do frequency calculation
2103 with a volatile temporary.
2104
2105 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2106
2107 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2108
2109 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2110
2111 PR c++/6119
2112 * final.c (final_start_function): Don't bump profile_label_no here...
2113 (final_end_function): ...but here.
2114
2115 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2116
2117 * config/sparc/sparc.md (pic): New attribute.
2118 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2119 into stack slots.
2120 (split after do_builtin_setjmp_setup): New.
2121
2122 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2123
2124 PR fortran/6106
2125 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2126 change.
2127
2128 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2129
2130 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2131 UNITS_PER_WORD for zero sized aggregates.
2132
2133 2002-04-03 David S. Miller <davem@redhat.com>
2134
2135 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2136 one-character spec for this, just use %(link_gcc_c_sequence).
2137
2138 2002-04-03 David S. Miller <davem@redhat.com>
2139
2140 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2141 handling.
2142
2143 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2144
2145 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2146 (DWARF_FRAME_RETURN_COLUMN): Move.
2147 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2148 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2149 * pa.c (except.h, predict.h): Include.
2150 (FRP): Delete.
2151 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2152 (output_ascii): Add cast.
2153 (store_reg_modify): Revise to add frame notes.
2154 (set_reg_plus_d): Likewise.
2155 (compute_frame_size): Include space for eh data registers in frame if
2156 the current function calls eh_return.
2157 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2158 function calls eh_return. Save eh data registers if the current
2159 function calls eh_return. Fix code to add frame notes. Emit
2160 blockage to prevent insns with frame notes being scheduled in the
2161 delay slot of calls.
2162 (hppa_expand_epilogue): Restore eh data registers and do final stack
2163 adjustment if the current function calls eh_return. Don't add frame
2164 notes.
2165 (output_call): Revise for change in length of call insn. Don't do
2166 return pointer adjustment for an unconditional jump in the delay slot
2167 of a call when using frame notes.
2168 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2169 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2170 (ARG_POINTER_CFA_OFFSET): Define.
2171 * pa.md (return_external_pic): New pattern.
2172 (prologue): Correct formatting. Use return_external_pic if current
2173 function calls eh_return.
2174 (call_internal_symref, call_value_internal_symref,
2175 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2176 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2177 respectively.
2178 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2179
2180 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2181 list of targets to check using "nop" insn.
2182 * configure: Rebuilt.
2183
2184 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2185
2186 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2187
2188 2002-04-03 David S. Miller <davem@redhat.com>
2189
2190 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2191 library sequence passed to the linker.
2192 (LINK_COMMAND_SPEC): Use it.
2193 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2194 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2195 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2196
2197 2002-04-03 Jason Merrill <jason@redhat.com>
2198
2199 * except.c (struct eh_status): Remove protect_list.
2200 (begin_protect_partials, end_protect_partials): Remove.
2201 (add_partial_entry): Remove.
2202 * except.h: Remove prototypes.
2203
2204 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2205 expand_decl_cleanup_eh.
2206
2207 PR c++/5636
2208 * tree.h (CLEANUP_EH_ONLY): New macro.
2209 * stmt.c (expand_decl_cleanup_eh): New fn.
2210 (expand_cleanups): Check CLEANUP_EH_ONLY.
2211 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2212 Use expand_decl_cleanup_eh.
2213 (expand_stmt): Adjust.
2214 * c-common.h: Adjust prototype.
2215
2216 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2217
2218 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2219 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2220 (cris_target_asm_function_epilogue): Ditto.
2221 (cris_initial_frame_pointer_offset): Ditto.
2222 (cris_simple_epilogue): Ditto.
2223 (cris_expand_builtin_va_arg): Variable-size types come in
2224 by-reference.
2225
2226 2002-04-03 David S. Miller <davem@redhat.com>
2227
2228 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2229 little-endian.
2230 (set_fast_math): Correct 'fsr' type.
2231
2232 2002-04-03 Richard Henderson <rth@redhat.com>
2233
2234 PR opt/3569
2235 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2236 * toplev.c (check_global_declarations): Use it.
2237 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2238 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2239 (LANG_HOOKS_DECLS): Add it.
2240 * langhooks.c (lhd_warn_unused_global_decl): New.
2241 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2242 * c-objc-common.c (c_warn_unused_global_decl): New.
2243 * c-tree.h (c_warn_unused_global_decl): Declare.
2244 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2245
2246 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2247
2248 * langhooks-def.h (lhd_set_decl_assembler_name,
2249 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2250 (LANG_HOOKS_INITIALIZER): Update.
2251 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2252 * langhooks.h (struct lang_hooks): New hook.
2253 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2254 (lang_set_decl_assembler_name): Remove.
2255 (init_obstacks): Don't set hook.
2256 (decl_assembler_name): New function.
2257 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2258 (decl_assembler_name): New.
2259 (lang_set_decl_assembler_name): Remove.
2260
2261 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2262
2263 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2264 works properly with .hidden symbols.
2265 * configure: Rebuilt.
2266 * config.in: Rebuilt.
2267 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2268 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2269 properly with .hidden symbols.
2270
2271 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2272
2273 PR middle-end/6102
2274 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2275 USE argument.
2276
2277 2002-04-03 Richard Henderson <rth@redhat.com>
2278
2279 PR opt/4120
2280 * sched-rgn.c (sets_likely_spilled): New.
2281 (sets_likely_spilled_1): New.
2282 (add_branch_dependences): Use it.
2283
2284 2002-04-02 Richard Henderson <rth@redhat.com>
2285
2286 PR opt/4311
2287 * loop.h (LOOP_FIRST_PASS): New.
2288 * loop.c (strength_reduce): Mind it when deciding to unroll.
2289 * toplev.c (rest_of_compilation): Set it.
2290
2291 2002-04-02 David S. Miller <davem@redhat.com>
2292
2293 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2294 mems_ok_for_ldd_peep when the order of the loads being examined
2295 is reversed.
2296 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2297 existing comment to increase comprehension of this situation.
2298
2299 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2300
2301 * config/sh/sh.md: Don't use union real_extract.
2302
2303 2002-04-02 Richard Henderson <rth@redhat.com>
2304
2305 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2306
2307 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2308
2309 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2310 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2311 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2312 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2313 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2314 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2315 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2316 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2317 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2318 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2319 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2320 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2321 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2322 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2323 Include as many configury headers via tm_file as possible. This
2324 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2325 * config/openbsd-oldgas.h: New file.
2326 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2327 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2328 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2329 config/i386/i386-coff.h, config/i386/i386-interix.h,
2330 config/i386/iscdbx.h, config/i386/linux-aout.h,
2331 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2332 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2333 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2334 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2335 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2336 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2337 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2338 config/i386/vxi386.h: Do not directly include configury headers.
2339 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2340 Directly include configury headers that are no longer automatically
2341 included by the above headers.
2342 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2343 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2344 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2345 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2346 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2347 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2348 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2349 (TARGET_VERSION): Define.
2350 * config/i386/beos-elf.h, config/i386/freebsd.h,
2351 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2352 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2353 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2354 config/i386/sco5.h, config/i386/sysv4.h
2355 (TARGET_VERSION): Do not need to protect.
2356 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2357 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2358 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2359 config/i386/i386-interix.h, config/i386/linux-aout.h,
2360 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2361 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2362 (YES_UNDERSCORES): Do not define - not needed.
2363 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2364 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2365 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2366 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2367 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2368 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2369 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2370 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2371
2372 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2373 Richard Henderson <rth@redhat.com>
2374
2375 PR c/5484
2376 * function.c (assign_temp): Accept either type or decl argument.
2377 Detect variables whose size is too large to fit into an integer.
2378 * stmt.c (expand_decl): Pass the decl, not the type.
2379
2380 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2381
2382 * protoize.c: Match include directory usage with cppdefault.c.
2383
2384 2002-04-03 Jeffrey A Law (law@redhat.com)
2385 Hans-Peter Nilsson <hp@bitrange.com>
2386
2387 * combine.c (simplify_comparison): Avoid narrowing a comparison
2388 with a paradoxical subreg when doing so would drop signficant bits.
2389
2390 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2391
2392 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2393 if POINTERS_EXTEND_UNSIGNED is defined.
2394
2395 2002-04-02 Richard Henderson <rth@redhat.com>
2396
2397 PR opt/3967
2398 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2399 replace regs.
2400
2401 2002-04-02 Richard Henderson <rth@redhat.com>
2402
2403 * doc/standards.texi: Document required freestanding libc entry points.
2404
2405 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2406
2407 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2408 associated splitter. Remove MQ constraint.
2409 (ctrdi_internal4): Correct CCmode clobber.
2410
2411 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2412
2413 * milli64.S ($$dyncall): New function.
2414 * t-linux (LIB1ASMFUNCS): Revise module list.
2415 (LIB1ASMSRC): Use pa/milli64.S.
2416
2417 2002-04-02 Richard Henderson <rth@redhat.com>
2418
2419 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2420 rename solaris_sys_varargs_h.
2421
2422 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2423
2424 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2425 the same mode as its component.
2426
2427 2002-04-02 Richard Henderson <rth@redhat.com>
2428
2429 PR opt/190
2430 * final.c (this_is_asm_operands): Export.
2431 * output.h (this_is_asm_operands): Declare.
2432 * config/i386/i386.c (print_operand): Error odd asm operands.
2433
2434 2002-04-02 Richard Henderson <rth@redhat.com>
2435
2436 PR opt/420
2437 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2438
2439 2002-04-01 Richard Henderson <rth@redhat.com>
2440
2441 PR target/1538
2442 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2443 * fixinc/fixincl.x: Rebuild.
2444
2445 2002-04-01 Richard Henderson <rth@redhat.com>
2446
2447 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2448 (atomic_alloc, atomic_free): New.
2449 (SIZE, MASK_FOR, PTR_IN): New.
2450 (emergency_reg_state, emergency_reg_state_free): New.
2451 (emergency_labeled_state, emergency_labeled_state_free): New.
2452 (reg_state_alloced, labeled_state_alloced): New.
2453 (alloc_reg_state, free_reg_state): New.
2454 (alloc_label_state, free_label_state, free_label_states): New.
2455 (push, pop, dup_state_stack, free_state_stack): Use them.
2456 (desc_label_state): Likewise.
2457 (uw_frame_state_for): Free label states and state stack.
2458 (uw_update_reg_address): Eliminate warnings.
2459
2460 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2461
2462 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2463 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2464
2465 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2466
2467 * c-decl.c (grokdeclarator): Update.
2468 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2469 * c-tree.h (c_mark_addressable): New.
2470 * c-typeck.c (default_function_array_conversion, build_unary_op,
2471 build_array_ref, convert_for_assignment): Update.
2472 (mark_addressable): Rename.
2473 * calls.c (try_to_integrate, expand_call): Use langhook.
2474 * expr.c (expand_expr): Use langhook.
2475 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2476 * langhooks.h (struct lang_hooks): New hook.
2477 * stmt.c (expand_asm_operands): Use langhook.
2478 * tree.h (mark_addressable): Remove.
2479 objc:
2480 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2481
2482 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2483
2484 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2485 in previous change.
2486
2487 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2488
2489 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2490 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2491
2492 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2493
2494 * c-common.c (unsigned_conversion_warning, convert_and_check,
2495 unsigned_type, signed_type, shorten_compare,
2496 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2497 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2498 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2499 New.
2500 * c-decl.c (grokdeclarator): Update.
2501 * c-format.c (check_format_types): Update.
2502 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2503 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2504 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2505 * convert.c (convert_to_integer): Use new hooks.
2506 * expmed.c (make_tree): Use new hooks.
2507 * expr.c (store_expr): Use new hooks.
2508 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2509 all_ones_mask_p, unextend, fold): Use new hooks.
2510 * langhooks.h (struct lang_hooks_for_types): New hooks.
2511 * tree.h (signed_or_unsigned_type, signed_type,
2512 unsigned_type): Remove.
2513 objc:
2514 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2515 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2516
2517 2002-03-31 Richard Henderson <rth@redhat.com>
2518
2519 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2520 (desc_frgr_mem): Fix reference to f16-f31.
2521
2522 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2523
2524 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2525 RTVEC_ELT): Const-ify.
2526 * varray.h (VARRAY_CHECK): Const-ify.
2527 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2528 ggc_mark_rtvec, ggc_mark): Const-ify.
2529
2530 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2531
2532 * diagnostic.c: Include langhooks-def.h.
2533 * Makefile.in (diagnostic.o): Update.
2534
2535 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2536
2537 * c-common.c (c_unsafe_for_reeval): Rename.
2538 * c-common.h (c_unsafe_for_reeval): Rename.
2539 * c-decl.c (finish_incomplete_decl): Rename.
2540 (c_init_decl_processing): Don't set langhook.
2541 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2542 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2543 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2544 * c-tree.h (finish_incomplete_decl): Rename.
2545 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2546 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2547 (LANG_HOOKS_INITIALIZER): Update.
2548 * langhooks.c (lhd_unsafe_For_reeval): New.
2549 * langhooks.h (struct langhooks): New hooks.
2550 * toplev.c (incomplete_decl_finalize_hook): Remove.
2551 (wrapup_global_declarations): Update.
2552 * tree.c (lang_unsafe_for_reeval): Remove.
2553 (unsafe_for_reeval): Update.
2554 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2555 Remove.
2556 objc:
2557 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2558 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2559
2560 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2561
2562 * diagnostic.c (print_error_function): Remove.
2563 (default_print_error_function): Rename.
2564 (report_error_function): Update.
2565 * diagnostic.h (print_error_function): Remove.
2566 (default_print_error_function): Remove.
2567 * langhooks-def.h (struct diagnostic_context): Predeclare.
2568 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2569 (LANG_HOOKS_INITIALIZER): Update.
2570 * langhooks.h (struct diagnostic context): Predeclare.
2571 (struct lang_hooks): New hook.
2572
2573 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2574
2575 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2576 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2577 !flag_pic.
2578 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2579 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2580 of PIC_OFFSET_TABLE_REGNUM thruout.
2581 * config/rs6000/rs6000.md: Likewise.
2582 * config/rs6000/darwin.h: Likewise.
2583
2584 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2585
2586 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2587 unsigned HOST_WIDE_INT, not unsigned int.
2588
2589 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2590
2591 PR middle-end/6096, middle-end/6098, middle-end/6099
2592 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2593 CODE_LABELs.
2594 (fill_slots_from_thread): Likewise.
2595
2596 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2597
2598 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2599 floating fields in float regs.
2600 (function_arg_record_value_2): Likewise.
2601
2602 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2603
2604 * config/mmix/mmix.md (define_constants): Remove misleading
2605 FIXME. Add MMIX_fp_rO_OFFSET.
2606 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2607 saved rO as part of the pattern. Remove FIXME.
2608 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2609 here, at output-time.
2610
2611 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2612
2613 PR middle-end/6100
2614 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2615 REG_BR_PRED.
2616 (output_v9branch): Likewise.
2617
2618 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2619
2620 * gcc.c: Revert previous patch for now.
2621 * config/i386/djgpp.h: Likewise.
2622
2623 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2624
2625 * config/mmix/crti.asm (_init): Register _fini with atexit.
2626 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2627
2628 2002-03-31 Richard Henderson <rth@redhat.com>
2629
2630 PR target/3997
2631 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2632 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2633
2634 2002-03-31 Richard Henderson <rth@redhat.com>
2635
2636 * libgcc2.c (__bb_exit_func): Make static.
2637
2638 * config/alpha/alpha.md (trap): New.
2639
2640 2002-03-31 Richard Henderson <rth@redhat.com>
2641
2642 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2643 promoted argument types; build trap.
2644 (expand_builtin_trap): New.
2645 (expand_builtin): Use it.
2646 * stmt.c (expand_nl_goto_receivers): Likewise.
2647 * expr.h (expand_builtin_trap): Declare.
2648 * libfuncs.h (LTI_abort, abort_libfunc): New.
2649 * optabs.c (init_optabs): Init abort_libfunc.
2650
2651 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2652
2653 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2654 (LINK_COMMAND_SPEC): ... from here.
2655 (init_gcc_specs): Duplicate it here too, omitting
2656 shared_name in the second copy.
2657 (init_spec): Test for duplicate
2658 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2659
2660 2002-03-30 David S. Miller <davem@redhat.com>
2661
2662 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2663 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2664
2665 2002-03-30 Roger Sayle <roger@eyesopen.com>
2666 Richard Henderson <rth@redhat.com>
2667
2668 * regmove.c (combine_stack_adjustments_for_block): Avoid
2669 emitting a stack adjustment of zero bytes. Let delete_insn
2670 update bb->head.
2671
2672 2002-03-30 Richard Henderson <rth@redhat.com>
2673
2674 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2675 (sparc_emitting_epilogue): New.
2676 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2677 * config/sparc/sparc-protos.h: Update.
2678 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2679 (TARGET_SWITCHES): Update.
2680 * config/sparc/sparc.md (return): Remove.
2681 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2682 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2683 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2684 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2685 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2686 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2687 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2688 Remove MASK_EPILOGUE.
2689 * doc/invoke.texi: Update.
2690
2691 2002-03-30 Daniel Berlin <dan@dberlin.org>
2692
2693 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2694 CPP will start the file for us.
2695
2696 2002-03-30 Richard Henderson <rth@redhat.com>
2697
2698 PR target/5446
2699 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2700 prologue_allocate_stack.
2701 (ia64_single_set): Use insn codes for recognition of special
2702 cases, not rtl matching.
2703 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2704
2705 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2706
2707 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2708
2709 2002-03-30 Richard Henderson <rth@redhat.com>
2710
2711 PR target/6032
2712 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2713 or -fomit-frame-pointer with profiling.
2714 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2715 (FUNCTION_PROFILER): Do nothing.
2716 (PROFILE_HOOK): New.
2717 * config/sparc/sparc.c (sparc_override_options): Don't check
2718 code models for profiling.
2719 (sparc_function_profiler): Remove.
2720 (sparc_profile_hook): New.
2721 * config/sparc/sparc-protos.h: Update.
2722
2723 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2724
2725 PR optimization/6086
2726 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2727 of SUBREG of volatile MEM or because the MEM was mode dependent,
2728 return CLOBBER instead of unmodified SUBREG.
2729
2730 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2731
2732 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2733 when not optimizing.
2734
2735 * toplev.c (rest_of_compilation): Cann mark_constant_function
2736 only when optimizing.
2737
2738 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2739 are NULL.
2740
2741 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2742 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2743 (try_optimize_cfg): clear all AUX fields.
2744
2745 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2746 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2747 (ix86_address_cost): Be prepared for SUBREGed registers.
2748 (legitimate_address_p): Accept SUBREGed registers.
2749
2750 2002-03-29 Richard Henderson <rth@redhat.com>
2751
2752 PR target/5672
2753 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2754
2755 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2756
2757 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2758 for aggregate and TFmode types.
2759
2760 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2761
2762 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2763
2764 2002-03-29 Richard Henderson <rth@redhat.com>
2765
2766 PR target/5886
2767 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2768 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2769
2770 2002-03-29 Richard Henderson <rth@redhat.com>
2771
2772 PR target/6041
2773 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2774 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2775 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2776 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2777 conditional.
2778 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2779
2780 2002-03-29 Dale Johannesen <dalej@apple.com>
2781
2782 * loop.c (combine_movables): Do allow combination of pseudos.
2783
2784 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2785
2786 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2787 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2788 No functional change except ...
2789 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2790 * doc/install.texi (*-*-freebsd*): Document port configuration.
2791
2792 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2793
2794 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2795 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2796 Use new hooks.
2797 * builtin-types.def (BT_PTRMODE): Update.
2798 * c-common.c (type_for_size): Rename c_common_type_for_size.
2799 (type_for_mode): Similarly.
2800 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2801 Use new hook.
2802 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2803 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2804 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2805 Redefine.
2806 * c-typeck.c (common_type, comptypes, default_conversion):
2807 Use new hooks.
2808 * calls.c: Include langhooks.h.
2809 (emit_library_call_value_1): Use new hooks. Avoid redundant
2810 calls.
2811 * convert.c: Include langhooks.h
2812 (convert_to_pointer, convert_to_integer): Use new hooks.
2813 * except.c (init_eh): Similarly.
2814 * expmed.c: Include langhooks.h.
2815 (expand_mult_add): Use new hooks.
2816 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2817 try_casesi): Similarly.
2818 * fold-const.c (optimize_bit_field_compare, make_range,
2819 decode_field_reference, fold_truthop, fold): Similarly.
2820 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2821 put_var_into_stack): Similarly.
2822 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2823 LANG_HOOKS_TYPE_FOR_SIZE): New.
2824 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2825 * langhooks.h (lang_hooks_for_types): New hooks.
2826 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2827 * tree.c (get_unwidened, get_narrower): Similarly.
2828 * tree.h (type_for_mode, type_for_size): Remove.
2829 * varasm.c (force_const_mem): Use new hooks.
2830 * utils2.c (nonbinary_modular_operation): Update.
2831 objc:
2832 * objc-act.c (handle_impent): Update.
2833 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2834 Redefine.
2835
2836 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2837
2838 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2839 * config/ia64/ia64.c (basereg_operand): New.
2840 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2841 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2842
2843 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2844
2845 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2846 unwind information when frame_pointer_needed.
2847 (mmix_assemble_integer): Tweak wording in comment.
2848
2849 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2850
2851 * Makefile.in (except.o): Update.
2852 * except.c: Include langhooks.h.
2853 (init_eh): Use langhook.
2854 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2855 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2856 (LANG_HOOKS_INITIALIZER): Update.
2857 * langhooks.h (lang_hooks_for_types): New.
2858 (struct lang_hooks): Add it.
2859 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2860 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2861 config:
2862 * alpha/alpha.c: Include langhooks.h.
2863 (alpha_build_va_list): Use langhook.
2864 * d30v/d30v.c: Include langhooks.h.
2865 (d30v_build_va_list): Use langhook.
2866 * i386/i386.c: Include langhooks.h.
2867 (ix86_build_va_list): Use langhook.
2868 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2869 * s390/s390.c: Include langhooks.h.
2870 (s390_build_va_list): Use langhook.
2871 * stormy16/stormy16.c: Include langhooks.h.
2872 (stormy16_build_va_list): Use langhook.
2873
2874 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2875
2876 PR c++/5964
2877 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2878 attributes.
2879 (length): Compute variable length for branches/calls/jumps here.
2880 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2881 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2882 define branch_type attribute.
2883 (divsi3_sp32): Maximum length is 6 not 7.
2884 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2885 call_address_untyped_struct_value_sp32,
2886 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2887 * config/sparc/sparc.c (empty_delay_slot): New function.
2888 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2889 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2890
2891 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2892
2893 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2894 nonzero_bits if not needed.
2895 (nonzero_bits) [XOR]: Likewise.
2896 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2897 reg_last_set_mode and mode are both MODE_INT, but not equal.
2898 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2899 in nonzero_bits_mode for MODE_INT modes.
2900
2901 2002-03-28 Richard Henderson <rth@redhat.com>
2902
2903 PR target/5715
2904 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2905 to GAS. Correct drift between alternatives.
2906
2907 2002-03-28 Richard Henderson <rth@redhat.com>
2908
2909 PR target/6087
2910 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2911
2912 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2913
2914 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2915 emulation to the linker.
2916
2917 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2918
2919 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2920 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2921
2922 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2923
2924 * combine.c (simplify_and_const_int): Make sure to apply mask
2925 when force_to_mode returns a constant integer. PR3311.
2926
2927 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2928
2929 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2930
2931 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2932
2933 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2934 and Objective-C Dialect Options.
2935
2936 2002-03-28 Richard Henderson <rth@redhat.com>
2937
2938 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2939 comparison should be done vs !=0 not >0 return code. Tidy cases.
2940
2941 2002-03-28 Richard Henderson <rth@redhat.com>
2942
2943 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2944 on to c_expand_body.
2945 * c-tree.h (finish_function): Update decl.
2946 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2947
2948 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2949
2950 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2951
2952 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2953
2954 * rtlanal.c: Include flags.h
2955 (may_trap_p): Do not mark FP operations if trapping
2956 if !flag_trapping_math
2957 * Makefile.in (rtlanal.o): Add dependency on flag.h
2958 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2959
2960 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2961
2962 * mips.md: Use dconst1, not 1.0, as first argument of
2963 REAL_VALUE_LDEXP. Don't use union real_extract.
2964
2965 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2966
2967 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2968 rather than $target. Heed program_prefix and
2969 program_transform_name. Search for gas in cross-compiler case too.
2970 "test -x" rather than "test -f".
2971 (gcc_cv_ld): Likewise.
2972 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2973 (gcc_cv_objdump): Likewise.
2974 * configure: Regenerate.
2975
2976 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2977
2978 * Makefile.in (attribs.o): Update.
2979 * attribs.c: Include langhooks.h.
2980 (decl_attributes): Use langhook.
2981 * c-decl.c (insert_default_attributes): Rename.
2982 * c-tree.h (c_insert_default_attributes): New.
2983 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2984 (LANG_HOOKS_INITIALIZER): Update.
2985 * langhooks.h (struct lang_hooks): New hook.
2986 * tree.h (insert_default_attributes): Remove.
2987 objc:
2988 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2989
2990 2002-03-27 Andreas Schwab <schwab@suse.de>
2991
2992 * config/i386/i386.c (classify_argument): Also check for
2993 QUAL_UNION_TYPE.
2994
2995 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2996
2997 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2998 any more.
2999
3000 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3001
3002 * i960.md (ret): Set PC.
3003 (nonlocal_goto): Fix expander.
3004 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3005 some jump or call.
3006
3007 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3008
3009 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3010 of libcall regions.
3011
3012 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3013
3014 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3015 assigning to BLOCK_FOR_INSN directly.
3016
3017 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3018
3019 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3020
3021 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3022
3023 * c-common.c (c_expand_expr): Fix prototype.
3024 * c-common.h (c_expand_expr): Always declare, update.
3025 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3026 * c-objc-common.c (c_objc_common_init): No global hook.
3027 * expr.c (expand_expr): Use langhook.
3028 * expr.h (enum expand_modifier): Conditionally declare.
3029 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3030 (LANG_HOOKS_INITIALIZER): Update.
3031 * langhooks.c (lhd_expand_expr): New.
3032 * langhooks.h (struct lang_hooks): New hook.
3033 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3034 (lang_independent_init): Don't default hook.
3035 objc:
3036 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3037
3038 2002-03-27 Richard Henderson <rth@redhat.com>
3039
3040 PR target/6054
3041 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3042 TARGET_CONST_GP. Simplify conditions.
3043
3044 2002-03-27 Richard Henderson <rth@redhat.com>
3045
3046 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3047 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3048 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3049
3050 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3051
3052 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3053 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3054 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3055 Remove unnecessary masks.
3056 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3057 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3058 -mwindows, -mdll switches and their negations.
3059
3060 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3061
3062 * gcc-common.c (lang_mark_false_label_stack): Remove.
3063 * ggc.h (lang_mark_false_label_stack): Similarly.
3064
3065 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3066
3067 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3068
3069 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3070 or __rtems_ is defined.
3071
3072 2002-03-26 Richard Henderson <rth@redhat.com>
3073
3074 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3075 if a non-trivial load was emitted.
3076 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3077 in high+extra+low case.
3078
3079 2002-03-26 Richard Henderson <rth@redhat.com>
3080
3081 * config.gcc (sparc*-solaris): Use float_format=sparc.
3082
3083 2002-03-26 Richard Henderson <rth@redhat.com>
3084
3085 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3086 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3087 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3088 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3089 (WINT_TYPE_SIZE): Fix at 32.
3090
3091 2002-03-26 Richard Henderson <rth@redhat.com>
3092
3093 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3094 until after eh landing pad generation.
3095 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3096 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3097
3098 2002-03-26 Richard Henderson <rth@redhat.com>
3099
3100 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3101
3102 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3103
3104 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3105 and warning switches.
3106 (cc1_options): Likewise.
3107
3108 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3109
3110 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3111 Restore more of the signal context. Set no_reg_stack_frame.
3112 * config/ia64/unwind-ia64.c (unw_state_record):
3113 Add no_reg_stack_frame, comments.
3114 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3115 (uw_update_context): Adjust bsp when unwinding from leaf,
3116 but not signal frame.
3117
3118 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3119
3120 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3121
3122 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3123
3124 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3125
3126 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3127
3128 PR target/5621
3129 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3130 "Add a pool_range attribute", which was lost during the ARM/Thumb
3131 merge.
3132
3133 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3134
3135 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3136 a register into the MAC16 accumulator.
3137
3138 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3139
3140 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3141 (Warning Options): Document -Wswitch-enum.
3142 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3143 -Wswitch.
3144 (warn_switch_enum): Define variables.
3145 * flags.h (warn_switch_enum): Declare variables.
3146 * stmt.c (expand_end_case_type): When warn_switch_enum /
3147 -Wswitch-enum, perform switch checks.
3148 Fix PR c/5044.
3149
3150 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3151
3152 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3153 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3154 (reload_muladdsi_compare0_scratch): Delete.
3155
3156 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3157
3158 * doc/install.texi (*-*-freebsd*): Update.
3159
3160 2002-03-26 Richard Henderson <rth@redhat.com>
3161
3162 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3163 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3164
3165 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3166 types from the normal argument frame.
3167
3168 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3169 variable sized objects by reference.
3170 (sparc_va_arg): Receive them by reference too.
3171
3172 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3173
3174 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3175 code to not restoring global registers.
3176
3177 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3178
3179 * Makefile.in (ggc-common.o): Update.
3180 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3181 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3182 * c-tree.h (c_mark_tree): New.
3183 * ggc-common.c: Include langhooks.h.
3184 (gcc_mark_trees): Use new langhook.
3185 * ggc-callbacks.c: Delete file.
3186 * ggc.h (lang_mark_tree): Remove.
3187 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3188 (LANG_HOOKS_INITIALIZER): Update.
3189 * langhooks.h (struct lang_hooks): New hook.
3190 objc:
3191 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3192
3193 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3194
3195 * doc/cpp.texi: Exclude entire Top node from printed manual.
3196 Move option index after directive index. Insert page breaks
3197 before GFDL and concept index. Index environment variables
3198 with command line options.
3199 * doc/cppenv.texi: Use @vtable for environment variable list.
3200 Add paragraph explaining semantics of empty elements in path
3201 variables. Exclude a cross-reference to Fishkill from the
3202 manpage. Remove an unnecessary cross-reference of the entry
3203 right above the referer. Don't use @anchor in text that goes
3204 into manpage.
3205 * doc/cppopts.texi: Cross-reference the environment variables
3206 section, not the specific environment variable, for consistency.
3207
3208 2002-03-25 Richard Henderson <rth@redhat.com>
3209
3210 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3211 anywhere in the block. Don't refer to insns that have been
3212 removed from the chain. Iterate backward through the new insns.
3213 Don't refer to edges that have been removed.
3214
3215 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3216
3217 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3218 test for overflow of constant.
3219
3220 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3221
3222 PR target/2623
3223 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3224 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3225 these patterns on arm_archv4.
3226
3227 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3228
3229 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3230 int".
3231
3232 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3233
3234 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3235 float_handled, float_handler, float_signal, set_float_handler,
3236 and do_float_handler. Set handler for SIGFPE to crash_signal.
3237 * toplev.h: Don't prototype do_float_handler.
3238
3239 * c-lex.c: Fold parse_float into lex_number. Make warning
3240 about portability of hex float constants more informative, and
3241 don't issue it on top of a syntax error.
3242 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3243 their callers.
3244 * real.h: Define REAL_VALUE_ABS here...
3245 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3246 simplify_unary_real, simplify_binary_real, and
3247 simplify_binary_is2orm1 into their callers.
3248 * tree.c: Fold build_real_from_int_cst_1 into caller.
3249
3250 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3251
3252 * tsystem.h: Include float.h here...
3253 * libgcc2.c: ... not here.
3254
3255 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3256
3257 Fixes for: PR bootstrap/3591, target/5676
3258 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3259 defined. Do not disable exceptions or rtti.
3260 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3261 mcore.h. Disable exceptions and rtti, since they are not
3262 supported by EPOC.
3263
3264 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3265
3266 * c-decl.c (maybe_build_cleanup): Remove.
3267 * expr.c (expand_expr): Use langhook.
3268 * langhooks-def.h (lhd_return_null_tree,
3269 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3270 (LANGHOOKS_INITIALIZER): Update.
3271 * langhooks.c (lhd_return_null_tree): New.
3272 * langhooks.h (struct lang_hooks): New hook.
3273 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3274 * tree.h (maybe_build_cleanup): Remove.
3275
3276 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3277
3278 * regrename.c (build_def_use): Move recog_memoized
3279 before extract_insn.
3280
3281 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3282
3283 PR target/6043
3284 * expr.c (emit_group_store): Handle storing into CONCAT.
3285
3286 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3287
3288 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3289 corresponding MATCH_DUP.
3290
3291 2002-03-24 Richard Henderson <rth@redhat.com>
3292
3293 * unroll.c (unroll_loop): Zero label_map.
3294
3295 * gcse.c: Include except.h.
3296 * Makefile.in (gcse.o): Update.
3297
3298 2002-03-24 Richard Henderson <rth@redhat.com>
3299
3300 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3301 Do resolve_unique_section before shared data clause.
3302
3303 2002-03-24 Richard Henderson <rth@redhat.com>
3304
3305 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3306
3307 2002-03-24 Richard Henderson <rth@redhat.com>
3308
3309 * recog.c (peephole2_optimize): Split blocks when EH insns are
3310 generated in the middle of a block. Do global life update if
3311 zapped EH edges.
3312
3313 2002-03-24 Richard Henderson <rth@redhat.com>
3314
3315 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3316
3317 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3318
3319 preprocessor/3951
3320 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3321 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3322 (init_dependency_output): Don't make no_output decision here.
3323
3324 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3325
3326 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3327 warn_switch. Update description.
3328 (expand_end_case_type): Call check_for_full_enumeration_handling
3329 when warn_switch.
3330
3331 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3332
3333 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3334 (m68hc11_split_move): Call it to see if the source and destination
3335 operands use the same direction auto inc/dec mode, otherwise make the
3336 source an offsetable memory operand and generate an add.
3337
3338 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3339
3340 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3341 register for operand 2.
3342 ("*subsi3_zero_extendqi"): Likewise.
3343 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3344 bits so that it is compatible with a pop.
3345 ("*andhi3_gen"): Likewise.
3346 ("xorhi3"): Likewise.
3347
3348 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3349
3350 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3351 -pedantic here...
3352 (cpp_post_options): ... not here.
3353
3354 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3355 Aldy Hernandez <aldyh@redhat.com>
3356
3357 Removal of separate preprocessor cpp0.
3358
3359 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3360 cpp0, install-common): Update.
3361 * c-common.c (flag_preprocess_only): New.
3362 (c_common_init): Preprocess for -E.
3363 * c-common.h (flag_preprocess_only): New.
3364 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3365 * c-objc-common.c (c_init_decl_processing): Exit quickly
3366 for NULL return from c_common_init.
3367 * cpplib.h (cpp_preprocess_file): New.
3368 * cppmain.c (main, general_init, pfile, progname): Remove.
3369 (do_preprocessing): Rename cpp_preprocess_file, don't call
3370 cpp_finish. Don't close stdout here.
3371 (setup_callbacks): Update prototype.
3372 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3373 Update.
3374 * tradcpp.c (main): Ignore -quiet.
3375 objc:
3376 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3377
3378 2002-03-24 Richard Henderson <rth@redhat.com>
3379
3380 PR optimization/5742
3381 * machmode.def: Add inner mode field to complex modes.
3382 * config/mips/mips.c (mips_function_value): Always define. Add
3383 new argument to handle libcalls.
3384 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3385 (FUNCTION_VALUE): Likewise.
3386 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3387 * config/mips/mips-protos.h: Update.
3388
3389 2002-03-23 Richard Henderson <rth@redhat.com>
3390
3391 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3392 * config/sparc/sparc-protos.h: Update.
3393 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3394
3395 2002-03-23 Richard Henderson <rth@redhat.com>
3396
3397 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3398 _start or _init begins the text segment.
3399
3400 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3401
3402 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3403 not HOST_WIDEST_INT.
3404 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3405
3406 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3407
3408 PR java/5489
3409 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3410 operand argument to output_return_instruction.
3411 * arm.c (arm_print_operand, case 'd'): If the operand is
3412 const_true_rtx then just return.
3413 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3414 then abort.
3415
3416 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3417
3418 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3419 (Warning Options): Document -Wswitch-default.
3420 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3421 -Wswitch.
3422 (warn_switch_default): Define variable.
3423 (warn_switch): Update comment.
3424 * flags.h (warn_switch_default): Declare variable.
3425 (warn_switch): Update comment.
3426 * stmt.c (expand_end_case): Check for and, when
3427 warn_switch_no_default, warn of a missing default case.
3428
3429 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3430
3431 * real.h (N): Special case 128 bit doubles.
3432
3433 * combine.c (simplify_comparison): When widening modes, ignore
3434 sign extension on CONST_INTs.
3435
3436 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3437
3438 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3439 passed to adjust_address. Fix comment formatting.
3440
3441
3442 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3443
3444 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3445 Always make REAL_VALUE_TYPE a struct containing an array of
3446 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3447 big it is. Don't declare or use union real_extract.
3448
3449 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3450 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3451 (print_operand), config/arm/arm.c (output_move_double),
3452 config/arm/arm.md (consttable_4, consttable_8),
3453 config/romp/romp.c (output_fpops), config/s390/s390.h
3454 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3455 (xtensa_output_literal): Don't use union real_extract.
3456
3457 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3458 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3459 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3460 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3461 (PRINT_OPERAND): Don't use local version of union
3462 real_extract.
3463
3464 * config/convex/convex.c (check_float_value), config/vax/vax.c
3465 (vax_float_literal), config/m88k/m88k.md (divdf3),
3466 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3467 config/pdp11/pdp11.c (output_move_quad): Don't do host
3468 arithmetic on target floating point quantities.
3469
3470 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3471 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3472
3473 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3474 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3475
3476 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3477 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3478 INFINITY.
3479 * print-rtl.c (print_rtx): Disable code which needs
3480 floating-point emulator.
3481 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3482 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3483 depending on HOST_FLOAT_FORMAT to be defined properly.
3484
3485 * config/1750a/1750a.c (get_double, float_label): Delete.
3486 (print_operand): Delete huge commented-out chunk. Use
3487 REAL_VALUE_TO_DECIMAL.
3488 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3489 functions.
3490 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3491 IEEE_FLOAT_FORMAT.
3492 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3493 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3494 * config/m88k/m88k.c (real_power_of_2_operand,
3495 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3496 real_extract out of the union; run the input through
3497 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3498 from that into the union.
3499 * config/pdp11/pdp11.c (output_move_double): Rearrange
3500 parentheses to make automatic indenter happy.
3501
3502 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3503 Point" and rewrite to describe current situation. Also adjust
3504 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3505 match code.
3506 * doc/rtl.texi: Adjust cross reference.
3507
3508 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3509
3510 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3511 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3512 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3513 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3514 prevent use of sp as a reload register.
3515 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3516 non_acc_reg_operand.
3517 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3518 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3519 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3520 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3521
3522 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3523
3524 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3525 * cpplex.c (unterminated): Delete.
3526 (parse_string): No string literal may extend over multiple
3527 lines. Suppress the error when preprocessing assembly.
3528 * cppmain.c (scan_translation_unit): Strings are single-line.
3529
3530 * doc/cpp.texi: Update to match.
3531
3532 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3533
3534 PR optimization/5854
3535 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3536 Shut up warnings.
3537 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3538 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3539 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3540 const0 if scratch register was not allocated.
3541 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3542 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3543 with GEN_INT (...).
3544 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3545 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3546 with GEN_INT (...) everywhere. Remove constraints in define_split
3547 patterns.
3548 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3549 require scratch register for setting 0 into regs/non-pushable memory.
3550
3551 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3552
3553 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3554 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3555
3556 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3557
3558 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3559 * cppinit.c (cpp_create_reader): On by default.
3560 (cpp_handle_option): Handle -W[no-]endif-labels.
3561 (cpp_post_options): Also enable if -pedantic.
3562 * cpplib.c (do_else): Use it.
3563 (do_endif): Likewise.
3564 * doc/cppopts.texi: Document new option.
3565 * doc/invoke.texi: Document new option.
3566
3567 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3568
3569 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3570 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3571
3572 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3573
3574 * flow.c (calculate_global_regs_live): Clear aux fields of
3575 ENTRY and EXIT.
3576
3577 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3578
3579 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3580 REG or MEM subregs, pass rtx * instead of rtx to it.
3581 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3582 rtx * instead of rtx to alter_subreg.
3583 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3584 * config/pj/pj.c (pj_output_rval): Likewise.
3585
3586 2002-03-22 Richard Henderson <rth@redhat.com>
3587
3588 PR target/3177
3589 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3590 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3591 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3592 (ia64_expand_prologue): Look at int_regs, not words, for number
3593 of incomming int regs.
3594
3595 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3596
3597 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3598
3599 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3600
3601 * toplev.c (flag_loop_optimize, flag_crossjumping):
3602 New static variables.
3603 (rest_of_compilation): Conditionalize crossjumping and
3604 loop optimizer.
3605 (parse_options_and_default_flags): Default loop_optimize and
3606 crossjumping.
3607 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3608 * invoke.texi (crossjumping, loop-optimize): Document.
3609
3610 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3611
3612 * real.c (eiisneg): Move outside #ifdef NANS.
3613
3614 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3615
3616 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3617 frequencies match; avoid match on different loop depths.
3618 (try_crossjump_to_bb): Kill tests that no longer brings time
3619 savings.
3620 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3621 updating code.
3622 (split_edge): Likewise.
3623
3624 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3625 variable.
3626
3627 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3628 * cfgrtl.c: Include insn-config.h
3629 (split_block) Dirtify block in presence of conditional execution
3630
3631 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3632
3633 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3634 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3635 (function_arg): Constify CUMULATIVE_ARGS.
3636 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3637 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3638 (UNITS_PER_DOUBLE): New macro.
3639 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3640 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3641 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3642 fp_regs and stack_words.
3643 (EABI_FLOAT_VARARGS_P): New macro.
3644 * config/mips/mips.c (struct mips_arg_info): New.
3645 (mips_arg_info): New function.
3646 (function_arg_advance): Use it. Add adjustment instructions here
3647 rather than in function_arg.
3648 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3649 for VOIDmode at the beginning of the function.
3650 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3651 (function_arg_pass_by_reference): Likewise.
3652 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3653 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3654 (mips_va_start): Likewise. Use the new stack_words field of
3655 CUMULATIVE_ARGS to set up overflow area. Reformat.
3656 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3657 doubles and other types, aligning the overflow pointer for non-doubles
3658 too. Remove some code duplication. Replace hard-coded constants.
3659
3660 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3661
3662 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3663 (CLASS_UNITS): Undefine.
3664 (CLASS_MAX_NREGS): Use FP_INC.
3665 * config/mips/mips.c (compute_frame_size): Likewise.
3666 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3667
3668 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3669
3670 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3671 prototype, and handle lexing numbers and identifiers.
3672 (parse_identifier): Update to new form of parse_slow.
3673 (parse_number): Fast path only, use parse_slow otherwise.
3674 (_cpp_lex_direct): Update calls to parse_number.
3675
3676 2002-03-21 DJ Delorie <dj@redhat.com>
3677
3678 * bb-reorder.c (make_reorder_chain_1): Protect against
3679 when redundant edges are omitted.
3680 * predict.c (dump_prediction): Likewise.
3681
3682 2002-03-21 Richard Henderson <rth@redhat.com>
3683
3684 PR target/5996
3685 * fixinc/inclhack.def (solaris_stdio_tag): New.
3686 * fixinc/fixincl.x: Regenerate.
3687
3688 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3689
3690 PR c/5597
3691 * c-typeck.c (process_init_element): Flag non-static
3692 initialization of a flexible array member as illegal.
3693
3694 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3695
3696 * config/rs6000/t-linux64: New.
3697 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3698 t-ppccomm. Use t-rs6000 and t-linux64.
3699 (powerpc64-*-gnu* <tmake_file>): Likewise.
3700 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3701 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3702 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3703
3704 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3705
3706 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3707 flag_really_no_inline instead of optimize == 0.
3708
3709 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3710
3711 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3712
3713 * flags.h (flag_really_no_inline): New.
3714
3715 * c-common.c (c_common_post_options): Initialize
3716 flag_really_no_inline.
3717
3718 * toplev.c (flag_really_no_inline): New.
3719
3720 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3721
3722 * config/avr/avr.md (length): Fix length computation for
3723 conditional branches.
3724
3725 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3726
3727 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3728 sdbout.o, profile.o): Update.
3729 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3730 langhook.
3731 * c-common.h (gettags): Move here from tree.h.
3732 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3733 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3734 * dbxout.c (dbxout_init): Use getdecls langhook.
3735 * expr.c (expand_expr): Use insert_block langhook.
3736 * fold-const.c: Include langhooks.h.
3737 (fold_range_test, fold_binary_op_with_conditional_arg,
3738 fold): Use global_bindings_p langhook.
3739 * integrate.c (expand_inline_function): Use insert_block langhook.
3740 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3741 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3742 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3743 LANG_HOOKS_GETDECLS): New.
3744 (LANG_HOOKS_INITIALIZER): Update.
3745 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3746 langhook.
3747 * langhooks.h (struct lang_hooks_for_decls): New.
3748 (struct lang_hooks): Update.
3749 * profile.c: Include langhooks.h.
3750 (output_func_start_profiler): Use new langhooks.
3751 * sdbout.c: Include langhooks.h.
3752 (sdbout_init, sdbout_finish): Use getdecls langhook.
3753 * stmt.c: Include langhooks.h.
3754 (expand_fixup, fixup_gotos): Use new langhooks.
3755 * stor-layout.c: Include langhooks.h.
3756 (variable_size): Use global_bindings_p langhook.
3757 * toplev.c (compile_file): Use getdecls langhook.
3758 * tree-inline.c (remap_block): Use insert_block langhook.
3759 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3760 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3761
3762 2002-03-21 Richard Henderson <rth@redhat.com>
3763
3764 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3765 constants in .data when -fpic.
3766
3767 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3768
3769 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3770 where appropriate.
3771
3772 2002-03-21 Tom Tromey <tromey@redhat.com>
3773
3774 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3775
3776 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3777
3778 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3779
3780 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3781
3782 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3783 Richard Henderson <rth@redhat.com>
3784
3785 PR c/5354
3786 * c-common.c (c_expand_expr): Preserve result of a statement
3787 expression if needed.
3788
3789 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3790
3791 PR bootstrap/4195
3792 * genrecog.c (maybe_both_true_mode): Remove.
3793 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3794 * machmode.def (Pmode): Likewise.
3795
3796 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3797
3798 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3799 (nonlocal_mentioned_p_1): New function.
3800 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3801 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3802 (mark_constant_function): Recognize pure functions.
3803 * rtl.h (global_reg_mentioned_p): New prototype.
3804 * rtlanal.c (global_reg_mentioned_p,
3805 global_reg_mentioned_p_1): New function.
3806
3807 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3808
3809 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3810 UNIX assert.h.
3811 * fixinc/fixincl.x: Regenerate.
3812
3813 2002-03-20 Jason Merrill <jason@redhat.com>
3814
3815 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3816
3817 2002-03-20 Michael Meissner <meissner@redhat.com>
3818
3819 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3820 -fstrict-aliasing.
3821
3822 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3823
3824 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3825 ".literal_position" directive before the constant pool.
3826
3827 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3828
3829 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3830 Add Craig Rodrigues.
3831 Add Brad Lucier to testers.
3832
3833 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3834
3835 PR target/4792
3836 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3837 to if_then_else.
3838 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3839 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3840 instead of insn_extract.
3841
3842 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3843
3844 PR bootstrap/4192
3845 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3846
3847 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3848 stmt if some case has been output.
3849
3850 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3851
3852 PR c/5972
3853 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3854 movsfcc_1, movdfcc_1): Add %O2.
3855 * config/i386/i386.c (print_operand): Handle %ON.
3856 Print . before float condition codes in Sun as cmov syntax.
3857 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3858 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3859 no longer true.
3860
3861 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3862
3863 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3864 return instruction if PC was popped.
3865
3866 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3867
3868 * config/xtensa/xtensa.md: Remove unused type attributes.
3869 (adddi_carry, subddi_carry): Change type attribute to "multi".
3870
3871 2002-03-19 Dale Johannesen <dalej@apple.com>
3872
3873 PR optimization/5999, middle-end/5731
3874 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3875 multiplications by reciprocals.
3876
3877 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3878
3879 * Makefile.in: Update.
3880 * c-common.c: Include langhooks.h.
3881 (inline_forbidden_p): Use new hook.
3882 * diagnostic.c: Include langhooks.h.
3883 (format_with_decl, announce_function,
3884 default_print_error_function): Use new hook.
3885 * dwarf2out.c (dwarf2_name): Use new hook.
3886 * function.c: Include langhooks.h.
3887 (init_function_start): Use new hook.
3888 * langhooks-def.h (lhd_decl_printable_name): New.
3889 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3890 (LANGHOOKS_INITIALIZER): Update.
3891 * langhooks.c (lhd_decl_printable_name): New.
3892 * langhooks.h (struct lang_hooks): New hook.
3893 * toplev.c (decl_name, decl_printable_name): Remove.
3894 (open_dump_file): Use new hook.
3895 (process_options): Remove old hook.
3896 * tree.h (decl_printable_name): Remove.
3897 objc:
3898 * objc-act.c (objc_init): Remove old hook.
3899 (objc_printable_name): Export.
3900 * objc-act.h (objc_printable_name): New.
3901 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3902
3903 2002-03-19 Jim Blandy <jimb@redhat.com>
3904
3905 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3906 the start_source_file debug hook, not the current line number.
3907
3908 2002-03-19 Richard Henderson <rth@redhat.com>
3909
3910 * flow.c (EH_USES): Provide default.
3911 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3912 * doc/tm.texi (EH_USES): New.
3913
3914 * config/ia64/ia64.c (ia64_eh_uses): New.
3915 * config/ia64/ia64-protos.h: Update.
3916 * config/ia64/ia64.h (EH_USES): New.
3917
3918 2002-03-19 Richard Henderson <rth@redhat.com>
3919
3920 * varasm.c (output_constant_def): Fix stupid typo.
3921
3922 2002-03-19 Richard Henderson <rth@redhat.com>
3923
3924 PR 5879
3925 * except.c (current_function_has_exception_handlers): New.
3926 * except.h: Declare it.
3927 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3928 Combine tests that disable all sibcalls for the function.
3929
3930 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3931
3932 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3933 for INTEGER_CST.
3934
3935 2002-03-19 Richard Henderson <rth@redhat.com>
3936
3937 PR 5977, 5991
3938 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3939 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3940
3941 2002-03-19 Jim Blandy <jimb@redhat.com>
3942
3943 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3944 name, even if the replacement list contains no tokens, as required
3945 by Dwarf.
3946
3947 2002-03-19 Jason Merrill <jason@redhat.com>
3948
3949 * varasm.c (globalize_decl): Get the name from the RTL, not
3950 DECL_ASSEMBLER_NAME.
3951
3952 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3953
3954 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3955
3956 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3957 subdi_carry): Define.
3958
3959 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3960
3961 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3962 about -fpic/-fPIC if extra_warnings set.
3963
3964 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3965
3966 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3967 TREE_STRING_POINTER.
3968 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3969
3970 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3971
3972 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3973 in favor of SP if FRAME_POINTER_REQUIRED is false.
3974
3975 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3976
3977 * emit-rtl.c (gen_int_mode): New function.
3978 * rtl.h: Prototype for it.
3979 * combine.c (make_extraction, simplify_comparison), expmed.c
3980 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3981 (convert_modes, store_field), optabs.c (expand_fix),
3982 simplify-rtx.c (neg_const_int, simplify_unary_real),
3983
3984 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3985 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3986
3987 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3988
3989 PR c/5656
3990 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3991 convert_parm_for_inlining.
3992 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3993 Define.
3994 * langhooks-def.h: Likewise.
3995 * objc/objc-lang.c: Likewise.
3996 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3997 function.
3998 * tree-inline.c (initialize_inlined_parameters):
3999 Call convert_parm_for_inlining lang hook if needed.
4000 * c-typeck.c (c_convert_parm_for_inlining): New function.
4001 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4002
4003 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4004
4005 * calls.c (precompute_arguments): Do not assume that temporaries
4006 can be destroyed after expanding the argument.
4007 (expand_call): Likewise.
4008
4009 2002-03-15 Eric Christopher <echristo@redhat.com>
4010
4011 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4012 Fix register preference on last change.
4013 * config/mips/mips.c (mips_return_in_memory): New function.
4014 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4015 * config/mips/mips-protos.h: Declare.
4016 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4017 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4018
4019 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4020
4021 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4022 a register too.
4023 (anddi3, iorsi3): Likewise.
4024
4025 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4026 use %gprel for symbols that are going to be placed in linkonce
4027 sections.
4028
4029 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4030 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4031 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4032 not needed. Disregard leaf_function_p().
4033 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4034 mips16 frame pointer.
4035 * config/mips/mips.md (store ra): Only to small SP offsets.
4036 2001-08-22 Graham Stott <grahams@redhat.com>
4037 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4038 return a REG rtx for the return address register.
4039
4040 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4041
4042 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4043 constant-pool addresses as "mode-dependent".
4044 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4045
4046 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4047
4048 PR target/5740
4049 * expr.c (emit_group_load): Use extract_bit_field if
4050 needed for CONCAT arguments.
4051
4052 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4053
4054 PR target/4863
4055 * arm.md (tablejump): Make this a define_expand. For PIC add the
4056 offset to the base of the table.
4057 (thumb_tablejump): Matcher for Thumb tablejump insn.
4058 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4059 as the difference of two labels.
4060 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4061 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4062 tables in the code.
4063 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4064 * arm.c (get_jump_table_size): If the table is not in the text
4065 section, return zero.
4066
4067 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4068
4069 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4070 of gen_rtx_SUBREG.
4071 (arm_reload_out_hi): Use gen_lowpart instead of
4072 gen_rtx_SUBREG to access QImode components.
4073 * config/arm/arm.md: Disable zero_extend split for QImode
4074 subregs in BIG_ENDIAN mode.
4075 (storehi_bigend): Match use of least significant byte.
4076 (storeinthi): Remove extraneous SUBREG.
4077 Add missing construction of operands[2].
4078 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4079 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4080 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4081
4082 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4083
4084 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4085 any_operand.
4086
4087 2002-03-17 Richard Henderson <rth@redhat.com>
4088
4089 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4090 explicitly.
4091
4092 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4093
4094 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4095 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4096
4097 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4098
4099 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4100
4101 * predict.c (estimate_bb_frequencies): Delete unused variables.
4102
4103 2002-03-17 Richard Henderson <rth@redhat.com>
4104
4105 * config/ia64/ia64.c (ia64_attribute_table): Move before
4106 targetm definition. Make static.
4107
4108 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4109
4110 * c-common.h (yyparse, c_common_parse_file): New.
4111 * c-lang.c: Include c-common.h.
4112 (LANG_HOOKS_PARSE_FILE): Redefine.
4113 * c-lex.c: Include c-common.h.
4114 (yyparse): Rename c_common_parse_file. Call yyparse.
4115 * c-parse.in (yyparse): Remove macro.
4116 * c-tree.h (yyparse_1): Remove.
4117 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4118 (LANG_HOOKS_INITIALIZER): Update.
4119 * langhooks.h (struct lang_hoooks): New hook parse_file.
4120 * toplev.c (compile_file): Use parse_file hook.
4121 * tree.h (yyparse): Remove.
4122 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4123
4124 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4125
4126 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4127 float_truncate, not fix.
4128 ("*truncdfsf2_real"): Ditto.
4129 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4130
4131 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4132
4133 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4134
4135 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4136 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4137 where appropriate. Make the second reference to
4138 leaf_function_p a function call, as intended. Reindented.
4139
4140 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4141 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4142
4143 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4144 add register to non-constant into sp.
4145
4146 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4147 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4148 (mips16_gp_pseudo_rtx): Lose.
4149 (INIT_EXPANDERS): Deleted.
4150 * config/mips/mips.c (mips_init_machine_status): New.
4151 (mips_free_machine_status): New.
4152 (mips_mark_machine_status): New.
4153 (override_options): Set them.
4154 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4155 (struct machine_function): ... new. Replaced all references.
4156 (mips_add_gc_roots): Don't mark them.
4157 (embedded_pic_fnaddr_reg): New, extracted from...
4158 (embedded_pic_offset): ... here.
4159 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4160 (movsi): Likewise.
4161
4162 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4163
4164 * cppinit.c: Revert -MD removal.
4165
4166 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4167
4168 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4169 soft registers by default for 68HC12.
4170 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4171 when compiling with -fomit-frame-pointer.
4172 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4173 (expand_epilogue): Likewise.
4174 (m68hc11_gen_rotate): Use exg when rotating by 8.
4175
4176 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4177
4178 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4179 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4180 (splits): Remove unused add splits.
4181 ("*addhi3_68hc12"): Tune constraints.
4182 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4183 constant fits in 8-bits and D is dead use abx/aby instructions.
4184 ("*addhi3"): Remove extern declaration of ix_reg.
4185 ("*subsi3"): Optimize and provide new split.
4186 ("subhi3"): Cleanup.
4187 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4188 (arith splits): For 68hc12 save the address register on the stack
4189 and do the arithmetic operation with a pop.
4190
4191 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4192
4193 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4194 allocating QImode in address registers.
4195 ("*movqi_m68hc11"): Likewise.
4196
4197 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4198
4199 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4200
4201 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4202
4203 * cppinit.c (print_help): Display -MD and -MMD.
4204 Don't display usage string. Update assertion syntax and
4205 typo.
4206 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4207 (cpp_handle_option): Update.
4208
4209 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4210
4211 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4212 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4213 and define it so that regardless of target CPU size,
4214 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4215 of "int" rather than "long."
4216
4217 2002-03-15 Richard Henderson <rth@redhat.com>
4218
4219 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4220 size as a tree.
4221
4222 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4223
4224 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4225 ("tstqi" split): Avoid using memory for tstqi on address register.
4226 (splits): Remove constraints.
4227 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4228 ("cmpdf", "cmpsf"): Remove since not used.
4229 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4230 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4231
4232 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4233
4234 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4235 ("neghi2"): Tighten constraints.
4236 ("one_cmplsi2"): Optimize and simplify split.
4237 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4238
4239 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4240
4241 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4242 and split of AND operation to clear the upper bits.
4243 ("*logicalsi3_zextqi"): Likewise.
4244 ("*logicallhi3_zexthi_ashift8"): Likewise.
4245 ("*logicalsi3_silshr16"): Likewise.
4246 ("logicalsi3_silshl16"): Likewise.
4247 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4248
4249 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4250
4251 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4252 (m68hc11_indirect_p): New function.
4253 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4254 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4255 TARGET_M6812.
4256 (asm_print_register): Likewise.
4257 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4258 (m68hc11_indirect_p): Declare.
4259 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4260 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4261 (TARGET_SWITCHES): New option -mrelax.
4262 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4263 destination.
4264 ("iorsi3", "xorsi3"): Likewise.
4265 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4266 ("*andhi3_mem"): New to handle destination in memory with bclr
4267 and a scratch register.
4268 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4269 ("*andhi3_const"): New when operand2 is constant.
4270 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4271 ("*andhi3_gen"): Cleanup of the old "andhi3".
4272 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4273 ("xorqi3"): Update constraints.
4274
4275 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4276
4277 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4278 for reg_equiv_memory_loc when the operand is a register that does
4279 not get a hard register (stack location).
4280 (tst_operand): After reload, accept all memory operand.
4281 (symbolic_memory_operand): Fix detection of symbolic references.
4282 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4283 accept symbols and any constant.
4284
4285 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4286
4287 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4288 note on the insn that sets the soft frame register.
4289 (must_parenthesize): ix and iy are also reserved names.
4290 (print_operand_address): One more place where parenthesis are required
4291 to avoid confusion with register names.
4292 (m68hc11_gen_movhi): Allow push of stack pointer.
4293 (m68hc11_check_z_replacement): Fix handling of parallel with a
4294 clobber.
4295 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4296 the replacement register is.
4297 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4298 and D8_REGS classes.
4299 (MODES_TIEABLE_P): All modes are tieable except QImode.
4300
4301 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4302
4303 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4304 (___subdi3): Likewise.
4305 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4306 (__map_data_section): Optimize 68hc11 case.
4307
4308 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4309
4310 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4311 than a shift to avoid adding a register with itself.
4312 (m68hc11_memory_move_cost): Take into account NO_REGS.
4313 (m68hc11_register_move_cost): Update and use memory move cost
4314 for soft registers.
4315 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4316 it gives more opportunities to cse to optimize.
4317 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4318 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4319
4320 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4321
4322 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4323 * c-common.def (CLEANUP_STMT): New tree node.
4324 * c-common.h (CLEANUP_DECL): New macro.
4325 (CLEANUP_EXPR): Likewise.
4326 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4327 * expr.c (expand_expr): Tidy.
4328 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4329 * tree-inline.c (initialize_inlined_parameters): Clean up
4330 new local variables.
4331
4332 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4333
4334 PR bootstrap/4128
4335 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4336 before movrXX only, use reg_overlap_mentioned_p.
4337 Only special case NE if just one insn can be generated.
4338
4339 2002-03-15 Jason Merrill <jason@redhat.com>
4340
4341 * varasm.c (assemble_variable): Call resolve_unique_section before
4342 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4343 of error_mark_node.
4344
4345 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4346
4347 PR target/5170
4348 * arm.md (split pattern for thumb shiftable immediates): Add comment
4349 explaining non-obvious test.
4350
4351 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4352
4353 PR target/5712
4354 * arm.md (movaddr, movaddr_insn): Delete.
4355
4356 2002-03-15 Jason Merrill <jason@redhat.com>
4357
4358 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4359 -fkeep-static-consts doesn't apply to comdats.
4360
4361 2002-03-14 Richard Henderson <rth@redhat.com>
4362
4363 * c-decl.c: Include c-pragma.h.
4364 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4365 (finish_function): Tidy.
4366 * c-pragma.c: Include c-common.h.
4367 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4368 (handle_pragma_weak): Use them.
4369 (init_pragma): Register pending_weaks.
4370 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4371 * print-tree.c (print_node): Print DECL_WEAK.
4372 * varasm.c (mark_weak_decls): Remove.
4373 (remove_from_pending_weak_list): Remove.
4374 (add_weak): Remove.
4375 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4376 (weak_decls): Make a tree_list.
4377 (declare_weak): Cons weak_decls directly.
4378 (globalize_decl): Remove weak_decls elements directly.
4379 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4380 symbols. Don't pretend to handle aliases.
4381 (init_varasm_once): Update weak_decls registry.
4382 * Makefile.in: Update dependencies.
4383
4384 2002-03-14 Richard Henderson <rth@redhat.com>
4385
4386 PR target/5312
4387 * config/ia64/ia64.c: Include tm_p.h last.
4388 (gen_nop_type): Remove duplicate definition.
4389 (cycle_end_fill_slots): Set sched_data for second L slot.
4390 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4391 (nop_cycles_until): Fix typos.
4392
4393 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4394
4395 PR optimization/5891
4396 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4397
4398 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4399
4400 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4401 descriptors correctly.
4402
4403 2002-03-14 Michael Meissner <meissner@redhat.com>
4404
4405 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4406 100, allowing MAX_UNROLLED_INSNS to be overridden.
4407
4408 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4409 --param.
4410
4411 * unroll.c (params.h): Include.
4412 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4413
4414 * doc/invoke.texi (--param max-unroll-insns): Document.
4415
4416 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4417
4418 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4419
4420 * arm.md: Fix warnings about constraints in peepholes and splits.
4421
4422 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4423
4424 * cpphash.h (struct lexer_state): Remove line_extension member.
4425 * cpplib.c (dequote_string, do_linemarker): New functions.
4426 (linemarker_dir): New data object.
4427 (DIRECTIVE_TABLE): No longer need to interpret #line in
4428 preprocessed source. Delete obsolete comment about return
4429 values of handlers.
4430 (end_directive, directive_diagnostics, _cpp_handle_directive):
4431 Don't muck with line_extension.
4432 (directive_diagnostics): No need to issue warnings for
4433 linemarkers here.
4434 (_cpp_handle_directive): Issue warnings for linemarkers here,
4435 when appropriate. Dispatch linemarkers to do_linemarker, not
4436 do_line.
4437 (do_line): Code to handle linemarkers split out to do_linemarker.
4438 Convert escape sequences in filename argument, both places.
4439
4440 * cppmacro.c (quote_string): Rename cpp_quote_string and
4441 export. All callers changed.
4442 * cpplib.h (cpp_quote_string): Prototype.
4443 * cppmain.c (print_line): Call cpp_quote_string on to_file
4444 before printing it.
4445
4446 * doc/cpp.texi: Document that escapes are now interpreted in
4447 #line and in linemarkers, and that non-printing characters are
4448 converted to octal escapes when linemarkers are generated.
4449
4450 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4451
4452 * emit-rtl.c (try_split): Use delete_insns.
4453 * recog.c (split_all_insns): Fix terminating condition.
4454
4455 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4456 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4457
4458 PR target/5828
4459 * arm.c (arm_output_epilogue): Fix floating-point register save
4460 adjustment when using a frame pointer.
4461
4462 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4463
4464 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4465 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4466 (save_restore_insns, mips_expand_epilogue): And here.
4467 (build_mips16_call_stub): And here.
4468 (mips_function_value): Use the new macros to decide whether a single
4469 or complex float can be returned in floating-point registers. Return
4470 a parallel rtx in the complex case.
4471
4472 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4473
4474 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4475 call after liveness analysis.
4476
4477 * recog.c (split_insn): Use delete_insn_and_edges.
4478
4479 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4480 instructions to have branch prediction notes.
4481 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4482
4483 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4484
4485 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4486 that doesn't support it.
4487 * configure: Regenerate.
4488
4489 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4490
4491 PR target/5626
4492 * config/sparc/sparc.md (normal_branch, inverted_branch,
4493 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4494 inverted_fp_branch): Adjust calls to output_cbranch.
4495 Set length attribute.
4496 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4497 output_v9branch. Set length attribute.
4498 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4499 predicates.
4500 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4501 (output_cbranch): Likewise. Handle far branches.
4502 (output_v9branch): Handle far branches.
4503 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4504 Adjust prototypes.
4505 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4506 noov_compare64_op predicates.
4507
4508 2002-03-13 Jason Merrill <jason@redhat.com>
4509
4510 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4511 into the function and constify it.
4512 * gthr-dce.h, gthr-solaris.h: Likewise.
4513
4514 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4515
4516 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4517 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4518 std_expand_builtin_va_arg if not ABI_V4.
4519
4520 2002-03-13 Jason Merrill <jason@redhat.com>
4521
4522 * varasm.c (globalize_decl): New fn.
4523 (assemble_start_function): Use it.
4524 (asm_emit_uninitialized): Use it.
4525 (assemble_alias): Use it.
4526 (assemble_variable): Use it.
4527
4528 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4529
4530 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4531 2002-03-12 internal visibility change.
4532 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4533 visibility into SYMBOL_REF_FLAG.
4534
4535 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4536
4537 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4538 VOIDmode operand. Add compile-time optimization for constant results.
4539
4540 2002-03-12 Jason Merrill <jason@redhat.com>
4541
4542 * c-typeck.c (convert_for_assignment): Don't allow conversions
4543 between pointers and references. Only allow lvalues to convert to
4544 reference.
4545
4546 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4547
4548 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4549 before prologue, to avoid scheduling problems.
4550
4551 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4552
4553 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4554 (ELIMINABLE_REGS): Add sfp->sp.
4555 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4556
4557 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4558
4559 PR optimization/5892
4560 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4561
4562 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4563
4564 * loop.c (basic_induction_var): Don't call convert_modes if mode
4565 classes are different.
4566
4567 2002-03-12 Richard Henderson <rth@redhat.com>
4568
4569 PR optimization/5901
4570 * function.c (reposition_prologue_and_epilogue_notes): Position
4571 the markers after/before the last/first insn not deleted.
4572
4573 2002-03-12 Richard Henderson <rth@redhat.com>
4574
4575 PR optimization/5878
4576 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4577 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4578 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4579
4580 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4581 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4582 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4583
4584 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4585 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4586 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4587 also. Don't set it if not flag_pic.
4588 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4589 to be INVALID_REGNUM when not used.
4590
4591 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4592
4593 * expmed.c (store_bit_field): Reset alias set for memory.
4594 (extract_bit_field): Same.
4595
4596 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4597
4598 * c-common.c (c_tree_code_type, c_tree_code_length,
4599 c_tree_code_name, add_c_tree_codes): Delete.
4600 * c-common.h (add_c_tree_codes): Delete.
4601 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4602 Define.
4603 * c-objc-common.c (c_objc_common_init): Don't call
4604 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4605 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4606 objc_tree_code_name, add_objc_tree_codes): Delete.
4607 (objc_init): Don't call add_objc_tree_codes.
4608 * objc/objc-lang.c (tree_code_type, tree_code_length,
4609 tree_code_name): Define.
4610 * toplev.c (lang_independent_init): Don't set
4611 tree_code_length[IDENTIFIER_NODE].
4612 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4613 Delete definitions, moved to language front-ends.
4614 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4615 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4616 Const-ify.
4617 (tree_code_length): Change type to unsigned char.
4618
4619 2002-03-12 Richard Henderson <rth@redhat.com>
4620
4621 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4622 internal visibility change.
4623
4624 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4625
4626 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4627 validize_mem() instead of change_address to avoid clobbering
4628 memory attributes.
4629
4630 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4631
4632 * c-lex.h (position_after_whitespace): Remove.
4633
4634 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4635
4636 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4637 (lex_string): Use unsigned char pointers.
4638
4639 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4640
4641 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4642 is not a valid memory_operand.
4643
4644 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4645
4646 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4647 * config/xtensa/lib1funcs.asm: Fix copyright to include
4648 special case for libgcc files.
4649 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4650 (__divsi3): Likewise.
4651 (__umodsi3): Likewise.
4652 (__modsi3): Likewise.
4653 * config/xtensa/lib2funcs.S: Fix copyright to include
4654 special case for libgcc files.
4655
4656 2002-03-12 Tom Rix <trix@redhat.com>
4657
4658 * collect2.c (resolve_lib_name): Move outside of
4659 OBJECT_FORMAT_COFF ifdef.
4660 (ignore_library): Same.
4661
4662 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4663
4664 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4665
4666 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4667
4668 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4669 to function_section before writing out the constant pool.
4670
4671 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4672
4673 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4674 zero_constant.
4675 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4676
4677 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4678
4679 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4680 (adddi3): Likewise.
4681 (movdf): Likewise.
4682 (movdi): Likewise.
4683 (cmpsi splitter): Likewise.
4684 (modsi3): Fail if <= 0.
4685 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4686 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4687 (reg_or_sub_cint64_operand): Likewise.
4688 (num_insns_constant_wide): Optimize sign extension.
4689 (rs6000_legitimize_address): Likewise.
4690
4691 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4692
4693 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4694 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4695
4696 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4697
4698 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4699 address calculation.
4700
4701 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4702
4703 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4704 scratch register to DImode / TImode.
4705 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4706 register used does not overlap the target.
4707
4708 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4709
4710 * Makefile.in (debug.o): Depend on debug.h.
4711 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4712 * debug.c (do_nothing_debug_hooks): Likewise.
4713 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4714 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4715 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4716 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4717 * dwarfout.c (dwarf_debug_hooks): Likewise.
4718 * integrate.c (output_inline_function): Likewise.
4719 * objc/objc-act.c (synth_module_prologue): Likewise.
4720 * sdbout.c (sdb_debug_hooks): Likewise.
4721 * toplev.c (debug_hooks): Likewise.
4722 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4723
4724 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4725
4726 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4727 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4728 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4729 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4730 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4731 * defaults.h (POINTER_SIZE): Define.
4732 * doc/tm.texi (POINTER_SIZE): Document default.
4733
4734 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4735
4736 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4737
4738 2002-03-11 Richard Henderson <rth@redhat.com>
4739
4740 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4741 if rebuild_label_notes_after_reload.
4742
4743 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4744
4745 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4746 emit pic register load if "internal" visibility.
4747 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4748 (cris_expand_builtin_va_arg): Do all computations on trees.
4749
4750 2002-03-11 Richard Henderson <rth@redhat.com>
4751
4752 * rtlanal.c: Include recog.h.
4753 (keep_with_call_p): Fix thinko.
4754 * Makefile.in (rtlanal.o): Update dependencies.
4755
4756 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4757
4758 * genflags.c (gen_insn): Use IS_VSPACE.
4759 * genoutput.c (output_insn_data): Likewise.
4760 (process_template): Likewise.
4761
4762 2002-03-11 Richard Henderson <rth@redhat.com>
4763
4764 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4765
4766 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4767
4768 * Makefile.in: Update.
4769 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4770 Update documentation.
4771 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4772 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4773
4774 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4775
4776 * Makefile.in: Give texi2pod its input file as a command line
4777 argument, not on stdin.
4778
4779 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4780 Daniel Berlin <dan@dberlin.org>
4781
4782 C++ alias analysis improvement.
4783 * alias.c (record_component_aliases): Record aliases for base
4784 classes too.
4785
4786 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4789
4790 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4791
4792 * toplev.c (vms_fopen): Remove, not needed.
4793
4794 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4795
4796 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4797
4798 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4799 for FP, already done later.
4800
4801 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4802 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4803
4804 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4805
4806 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4807 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4808 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4809 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4810 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4811 (ediv, emul, eldexp, esqrt): Likewise.
4812 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4813 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4814 (saturate): New function.
4815 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4816 (make_nan): Use a saturation value instead of a NaN if
4817 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4818 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4819 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4820 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4821 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4822 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4823 !ROUND_TOWARDS_ZERO.
4824 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4825 (ROUND_TOWARDS_ZERO): Document.
4826
4827 2002-03-11 Andreas Jaeger <aj@suse.de>
4828
4829 * cfg.c (dump_flow_info): Remove unused variable.
4830
4831 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4832
4833 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4834 computations on trees.
4835
4836 2002-03-10 Richard Henderson <rth@redhat.com>
4837
4838 PR 5693:
4839 * reload.c (copy_replacements_1): New.
4840 (copy_replacements): Use it to recurse through the rtx.
4841
4842 2002-03-10 Richard Henderson <rth@redhat.com>
4843
4844 * loop.c (strength_reduce): Compute number of iterations as
4845 unsigned HOST_WIDE_INT.
4846
4847 2002-03-10 Richard Henderson <rth@redhat.com>
4848
4849 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4850 to move away from the end of the block.
4851
4852 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4853
4854 PR preprocessor/5899
4855 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4856
4857 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4858
4859 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4860
4861 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4862
4863 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4864
4865 * config/mmix/mmix.c: Improve comments.
4866 (mmix_target_asm_function_prologue): Drop variable
4867 empty_stack_frame. Don't allocate unused slot above fp.
4868 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4869 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4870 brace in first column.
4871 (enum reg_class): Ditto.
4872 (FIRST_PARM_OFFSET): Now 0.
4873 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4874
4875 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4876
4877 * combine.c (make_extraction): Fix error in last change.
4878
4879 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4880
4881 * c4x.c (c4x_fp_reglist): Const-ify.
4882 * cris.c (cris_print_operand): Likewise.
4883 * i386.c (ix86_va_arg): Likewise.
4884 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4885 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4886 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4887 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4888 * mcore.h (regno_reg_class): Likewise.
4889 * mips.c (gen_int_relational): Likewise.
4890 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4891 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4892 * pdp11.c (move_costs): Likewise.
4893 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4894 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4895 Likewise.
4896 * s390.h (regclass_map): Likewise.
4897 * sh.c (shift_amounts): Likewise.
4898 * sh.md (rotlsi3): Likewise.
4899
4900 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4901
4902 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4903 (ne0+5): Use new clobber to generate proper shift pattern.
4904 Patch by Michael Matz <matz@kde.org>.
4905
4906 2002-03-09 Andreas Schwab <schwab@suse.de>
4907
4908 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4909
4910 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4911
4912 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4913
4914 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4915
4916 PR middle-end/5877
4917 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4918 even for non-representable constants.
4919
4920 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4921
4922 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4923 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4924 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4925 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4926 (pop_function_context): Compute MAY_SHARE parameter for
4927 fixup_var_refs.
4928 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4929 (gen_mem_addressof): Call fixup_var_refs with new parm.
4930
4931 * combine.c (make_extraction): Don't make extension of CONST_INT.
4932
4933 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4934
4935 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4936 in o32 and o64 ABIs.
4937 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4938 but getting fixed-size structs passed in registers regardless of
4939 padding in o32 and o64 ABIs.
4940
4941 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4942 offset before loading address of argument passed by transparent
4943 reference.
4944
4945 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4946
4947 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4948
4949 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4950
4951 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4952 marker such that registers after it are saved.
4953
4954 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4955
4956 * sparc.c (arith_4096_operand): Fix error in last change.
4957
4958 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4959
4960 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4961 defaults for MEABI.
4962
4963 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4964
4965 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4966 vectors.
4967
4968 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4969
4970 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4971
4972 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4973
4974 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4975 removed; fix return value.
4976 * combine.c (combine_instructions): Dirtify blocks where we failed to
4977 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4978 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4979
4980 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4981
4982 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4983
4984 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4985
4986 * recog.c (peephole2_optimize): Re-distribute EH edges.
4987
4988 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4989
4990 * expr.c (expand_expr): Use unsave lang hook.
4991 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4992 (LANG_HOOKS_INITIALIZER): Update.
4993 * langhooks.h (struct lang_hooks): New hook unsave.
4994 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4995 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4996 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4997 (unsave_expr_now): Remove.
4998 * tree.h (unsave_expr_now, lang_unsave,
4999 lang_unsave_expr_now): Remove.
5000 (lhd_unsave): New.
5001
5002 2002-03-08 Andreas Jaeger <aj@suse.de>
5003
5004 * flow.c (propagate_block_delete_insn): Remove unused variable.
5005
5006 2002-03-08 Kazu Hirata <kazu@hxi.com>
5007
5008 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5009 insn length for memory load/store.
5010
5011 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5012
5013 * doc/install.texi (--with-libiconv-prefix): Document.
5014
5015 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5016
5017 * doc/sourcebuild.texi: Fix typo.
5018
5019 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5020
5021 PR c/3711
5022 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5023 trees.
5024
5025 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5026
5027 * rtl.c (copy_most_rtx): Move from here ...
5028 * emit-rtl.c (copy_most_rtx): ... to here.
5029
5030 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5031
5032 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5033 SUBTARGET_CPP_SIZE_SPEC.
5034 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5035
5036 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5037
5038 2002-03-07 Matt Hiller <hiller@redhat.com>
5039
5040 * gensupport.c (first_dir_md_include): Renamed from include;
5041 change all references.
5042 (last_dir_md_include): Renamed from last_include; change all
5043 references.
5044 (init_md_reader): Unconditionally initialize base_dir whether or
5045 not filename is a relative path.
5046
5047 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5048
5049 * config/fp-bit.c (_unord_f2): Compile it in even if
5050 US_SOFTWARE_GOFAST is enabled.
5051
5052 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5053 NULL_RTX. Set all HFmode operations as NULL_RTX.
5054 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5055 NULL_RTX, try reversing the comparison and the operands.
5056
5057 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5058
5059 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5060 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5061 and MATCH_OP_DUP.
5062
5063 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5064
5065 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5066
5067 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5068
5069 * basic-block.h (fixup_abnormal_edges): Declare.
5070 * reload1.c (fixup_abnormal_edges): New function.
5071 * reg-stack.c (convert_regs): Use it.
5072
5073 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5074
5075 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5076
5077 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5078
5079 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5080 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5081 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5082 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5083 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5084 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5085 unless x and y could be infinite.
5086 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5087 Check that the common type of both arguments is a real, even for
5088 targets without unordered comparisons. Allow an integer argument
5089 to be compared against a real.
5090 (expand_tree_builtin): Use expand_unordered_cmp.
5091 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5092 * cse.c (fold_rtx): Likewise. Fix indentation.
5093 * fold-const.c (fold_real_zero_addition_p): New.
5094 (fold): Use it, and the new HONOR_... macros.
5095 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5096 * jump.c (reversed_comparison_code_parts): After searching for
5097 the true comparison mode, use HONOR_NANS to decide whether it
5098 can be safely reversed.
5099 (reverse_condition_maybe_unordered): Remove IEEE check.
5100 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5101 to decide which simplifications are valid. Allow the following
5102 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5103 and (a - -b) to (a + b).
5104 (simplify_relational_operation): Use HONOR_NANS.
5105 * doc/tm.texi: Document the MODE_HAS_... macros.
5106
5107 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5108
5109 * combine.c (simplify_comparison): If simplifying a logical shift
5110 right and compare with constant, force the comparison to unsigned.
5111
5112 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5113
5114 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5115
5116 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5117 -mabi=no-altivec
5118 (alt_reg_names): Remove % for vrsave.
5119
5120 2002-03-06 Richard Henderson <rth@redhat.com>
5121
5122 PR optimization/5844
5123 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5124 if used indicates we've already emitted one copy of an operand.
5125 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5126 (gen_split): Supply a non-null used.
5127
5128 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5129
5130 * reload1.c (reload): Unshare all rtl after reload is done.
5131
5132 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5133 but simply fail if the expression is too complex to simplify.
5134 (simplify_gen_binary): Handle simplify_plus_minus failures.
5135
5136 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5137
5138 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5139 consistently call delete_trivially_dead_insns after CSE and GCSE;
5140 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5141 after liveness2; update comment in last crossjumping.
5142 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5143
5144 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5145
5146 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5147 after completing fast dead code elimination.
5148
5149 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5150 COMPARE operator.
5151
5152 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5153
5154 * version.c: Fix misplaced leading blanks on first line.
5155
5156 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5157
5158 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5159
5160 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5161
5162 * cfgcleanup.c (mentions_nonequal_regs): New function.
5163 (thread_jump): Use it.
5164 * toplev.c (rest_of_compilation): Run jump threading after
5165 liveness.
5166
5167 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5168
5169 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5170 patch.
5171
5172 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5173
5174 * predict.c (estimate_bb_frequencies): Do not reload the
5175 frequencies from notes.
5176
5177 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5178
5179 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5180 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5181
5182 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5183 delete_noop_moves): Return indeger.
5184 * flow.c (ndead): New variable.
5185 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5186 BB argument; update callers.
5187 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5188 (life_analysis): Do not call purge_all_dead_edges.
5189 (update_life_info): Return number of deleted insns; print statistics.
5190 (update_life_info_in_dirty_blocks): likewise.
5191 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5192 return number of insns deleted.
5193
5194 * cse.c: Include timevar.h
5195 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5196 iterate until stabilizes; print statistics; return number of killed
5197 insns.
5198 * Makefile.in: (cse.o): Add timevar.h dependency
5199 * rtl.h (delete_trivially_dead_insns): New.
5200 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5201 * toplev.c (rest_of_compilation): Update callers.
5202
5203 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5204 (try_optimize_cfg): Do not update liveness.
5205 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5206 removal stabilizes; use delete_trivially_dead_insns.
5207
5208 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5209
5210 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5211
5212 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5213 callbacks when processing assembly language.
5214
5215 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5216
5217 * pa.h (ASM_FILE_END): Define.
5218 * som.h (ASM_FILE_END): Delete.
5219
5220 * pa.c (function_arg): Don't pass floats in general registers in
5221 indirect calls if TARGET_ELF32.
5222
5223 2002-03-05 Richard Henderson <rth@redhat.com>
5224
5225 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5226
5227 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5228
5229 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5230
5231 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5232
5233 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5234 -r command line. Don't hide any symbols if not building
5235 shared libgcc.
5236
5237 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5238
5239 * cfg.c (dump_flow_info): Warn about profile mismatches.
5240 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5241 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5242
5243 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5244
5245 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5246 wide volatile memory by parts.
5247
5248 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5249
5250 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5251 is NULL.
5252
5253 2002-03-05 Richard Henderson <rth@redhat.com>
5254
5255 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5256
5257 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5258
5259 * toplev.c (documented_lang_options): Document more
5260 language-specific options.
5261 * doc/invoke.texi (Warning Options): Correct documentation for
5262 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5263 * c-decl.c (c_decode_option): Use a table to handle warning options.
5264
5265 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5266
5267 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5268 parameter to mmix_encode_section_info.
5269 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5270 relocatably. Always produce ELF, not mmo if linking relocatably.
5271 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5272 first is non-zero, don't add symbol prefix.
5273 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5274 prototype accordingly.
5275
5276 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5277
5278 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5279
5280 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5281
5282 * configure.in: Increase required makeinfo version to 4.1.
5283 * configure: Regenerate.
5284
5285 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5286
5287 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5288 elsewhere now.
5289
5290 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5291
5292 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5293 * doc/invoke.texi: Fix @math uses.
5294
5295 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5296
5297 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5298 removal
5299
5300 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5301
5302 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5303 (powerpc-*-eabisimaltivec*): Same.
5304
5305 * config/rs6000/t-ppcendian: New.
5306
5307 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5308
5309 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5310 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5311 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5312
5313 2002-03-03 Richard Henderson <rth@redhat.com>
5314
5315 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5316
5317 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5318
5319 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5320 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5321 tree.c, config/m68k/m68k.c:
5322 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5323 REAL_ARITHMETIC blocks unconditional. Delete some further
5324 #ifdef blocks predicated on REAL_ARITHMETIC.
5325 * flags.h, toplev.c: Delete remaining references to
5326 flag_pretend_float.
5327
5328 * doc/invoke.texi: Remove documentation of -fpretend-float.
5329 * doc/tm.texi: Describe the various REAL_* macros as provided by
5330 real.h, not by the target configuration files.
5331
5332 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5333 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5334 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5335 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5336 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5337 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5338 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5339 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5340 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5341 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5342 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5343 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5344 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5345 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5346 config/xtensa/xtensa.h:
5347 Do not define, undefine, or mention in comments any of
5348 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5349 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5350 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5351 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5352 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5353 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5354 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5355 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5356 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5357
5358 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5359
5360 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5361 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5362 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5363 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5364 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5365 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5366 Delete.
5367 * defaults.h (BITS_PER_WORD): Define.
5368 * doc/tm.texi (BITS_PER_WORD): Document default value.
5369
5370 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5371 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5372 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5373
5374 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5375
5376 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5377 lieu of explicit sizeof/sizeof.
5378 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5379 ix86_expand_builtin): Likewise.
5380 * mips.c (mips_add_gc_roots): Likewise.
5381 * mmix.c (mmix_output_condition): Likewise.
5382 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5383 altivec_init_builtins): Likewise.
5384 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5385 * cppexp.c (Nsuff, parse_number): Likewise.
5386 * cppinit.c (builtin_array_end): Likewise.
5387 * gcc.c (n_default_compilers, process_command): Likewise.
5388 * genpreds.c (output_predicate_decls): Likewise.
5389 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5390 * lcm.c (N_ENTITIES): Likewise.
5391 * stor-layout.c (set_sizetype): Likewise.
5392
5393 2002-03-03 Richard Henderson <rth@redhat.com>
5394
5395 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5396 for types or labels.
5397
5398 2002-03-03 Richard Henderson <rth@redhat.com>
5399
5400 * c-decl.c (start_decl): Initialized variables are not common.
5401
5402 2002-03-02 Per Bothner <per@bothner.com>
5403
5404 * gcc.c (option_map): Suport new --bootclasspath option.
5405 --CLASSPATH is now just an alias for --classpath.
5406
5407 2002-03-02 Richard Henderson <rth@redhat.com>
5408
5409 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5410 load if "internal" visibility.
5411 * doc/extend.texi: Document visibility meanings.
5412
5413 2002-03-02 Richard Henderson <rth@redhat.com>
5414
5415 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5416 to functions as well.
5417
5418 2002-03-02 Richard Henderson <rth@redhat.com>
5419
5420 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5421 (handle_visibility_attribute): Don't call assemble_visibility.
5422 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5423 without asmspec. Invoke assemble_alias when needed.
5424 * varasm.c (maybe_assemble_visibility): New.
5425 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5426
5427 2002-03-02 Richard Henderson <rth@redhat.com>
5428
5429 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5430 invoke ENCODE_SECTION_INFO with first call flag.
5431
5432 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5433 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5434 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5435 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5436 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5437 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5438 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5439 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5440 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5441 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5442 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5443 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5444 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5445 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5446 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5447 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5448 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5449 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5450 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5451 config/sh/sh.h, config/sparc/sparc.h,
5452 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5453 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5454 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5455 FIRST argument. As needed, examine it and do nothing.
5456
5457 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5458 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5459 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5460
5461 * config/arm/t-pe (pe.o): Add dependencies.
5462
5463 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5464
5465 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5466 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5467 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5468 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5469 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5470 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5471 * defaults.h (BITS_PER_UNIT): Define.
5472 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5473
5474 2002-03-02 Kazu Hirata <kazu@hxi.com>
5475
5476 * config/h8300/h8300-protos.h: Add a prototype for
5477 compute_a_shift_length.
5478 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5479 (compute_a_shift_length): Likewise.
5480 (h8300_adjust_insn_length): Do not adjust insn length of shift
5481 insns.
5482 * config/h8300/h8300.md (anonymous shift patterns): Use
5483 compute_a_shift_length.
5484
5485 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5486
5487 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5488 trunc_int_for_mode.
5489
5490 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5491
5492 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5493
5494 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5495 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5496 * flags.h (flag_zero_initialized_in_bss): Declare.
5497 * toplev.c (flag_zero_initialized_in_bss): New flag.
5498 (lang_independent_options): Add flag_zero_initialized_in_bss.
5499 * tree.c (initializer_zerop): New function.
5500 * tree.h (initializer_zerop): Declare.
5501 * varasm.c (assemble_variable): If we can emit bss, put zero
5502 initializers in the bss section.
5503
5504 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5505
5506 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5507 like more than one symbol per .weak directive.
5508
5509 2002-03-01 Richard Henderson <rth@redhat.com>
5510
5511 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5512 adjust argument_pointer by pretend_args_size.
5513 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5514
5515 2002-03-01 Kazu Hirata <kazu@hxi.com>
5516
5517 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5518
5519 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5520
5521 * toplev.c (rest_of_compilation): Delete dead jumptables before
5522 loop.
5523 * flow.c (delete_dead_jumptables): Make global.
5524 * rtl.h (delete_dead_jumptables): Declare.
5525
5526 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5527
5528 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5529 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5530 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5531
5532 2002-03-01 Kazu Hirata <kazu@hxi.com>
5533
5534 * config/h8300/h8300-protos.h: Fix formatting.
5535 * config/h8300/h8300.c: Likewise.
5536 * config/h8300/h8300.h: Likewise.
5537
5538 2002-03-01 Kazu Hirata <kazu@hxi.com>
5539
5540 * config/h8300/h8300.c (print_operand): Support 16-bit
5541 constant addresses.
5542 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5543
5544 2002-02-28 Richard Henderson <rth@redhat.com>
5545
5546 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5547 pun complex values as integers; use gen_lowpart instead of
5548 gen_rtx_SUBREG.
5549 (extract_bit_field): Likewise.
5550
5551 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5552 David Edelsohn <edelsohn@gnu.org>
5553
5554 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5555 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5556 (SUPPORTS_WEAK): Likewise.
5557 * output.h (add_weak): Add tree param.
5558 * varasm.c (add_weak): Likewise. Save decl.
5559 (struct weak_syms): Add decl field.
5560 (mark_weak_decls): New function.
5561 (init_varasm_once): ggc_add_root mark_weak_decls.
5562 (assemble_start_function): Use ASM_WEAKEN_DECL.
5563 (assemble_variable): Likewise.
5564 (assemble_alias): Likewise.
5565 (declare_weak): Pass decl to add_weak.
5566 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5567 (remove_from_pending_weak_list): Declare and define for
5568 ASM_WEAKEN_DECL.
5569 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5570 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5571 * defaults.h (SUPPORTS_WEAK): Likewise.
5572 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5573 .weak for code sym. Do emit .size for descriptor sym.
5574 (ASM_DECLARE_FUNCTION_SIZE): Define.
5575 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5576 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5577 .lglobl unless TARGET_XCOFF. Formatting fixes.
5578 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5579 .weak for code sym.
5580 (HANDLE_PRAGMA_WEAK): Remove.
5581 (ASM_WEAKEN_LABEL): Remove.
5582 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5583
5584 2002-03-01 Jason Merrill <jason@redhat.com>
5585
5586 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5587 (TARGET_EXPR_CLEANUP): New macro.
5588
5589 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5590
5591 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5592 to take ptr_extend into account as third type of extension.
5593 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5594 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5595 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5596 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5597 * calls.c (precompute_arguments): Use new macro.
5598 (expand_call): Ditto.
5599 * combine.c (nonzero_bits): Ditto.
5600 (record_promoted_value): Ditto.
5601 * expr.c (store_expr): Ditto.
5602 (expand_expr): Ditto.
5603 * function.c (assign_parms): Ditto.
5604
5605 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5606
5607 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5608 override -shared and -shared-libgcc.
5609
5610 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5611
5612 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5613 of "ultrasparc".
5614 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5615 to be broken.
5616
5617 2002-02-28 Richard Henderson <rth@redhat.com>
5618
5619 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5620 4 cycle latency from MM producers.
5621 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5622
5623 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5624
5625 * mklibgcc.in: Don't use GNU make extension.
5626
5627 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5628
5629 * c-parse.in (STATIC): New terminal.
5630 (scspec): New non-terminal. Update productions accordingly.
5631 (program): Remove bogus ifc / end ifc.
5632 (array_declarator): Simplify production using STATIC.
5633
5634 2002-02-28 Jim Meyering <meyering@lucent.com>
5635
5636 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5637 \a still means TARGET_BELL.
5638
5639 2002-02-28 Richard Henderson <rth@redhat.com>
5640
5641 * haifa-sched.c (sched_emit_insn): New.
5642 (schedule_block): Use last_scheduled_insn to track last insn.
5643 * sched-int.h (sched_emit_insn): Prototype.
5644 * config/ia64/ia64.c (last_issued): Remove.
5645 (ia64_variable_issue): Don't set it.
5646 (nop_cycles_until): Use sched_emit_insn.
5647
5648 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5649
5650 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5651 extended constants.
5652
5653 2002-02-28 Kazu Hirata <kazu@hxi.com>
5654
5655 * config/h8300/h8300.c: Fix formatting.
5656 * config/h8300/h8300.h: Likewise.
5657
5658 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5659
5660 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5661 which may overwrite the high byte of the frame pointer.
5662
5663 2002-02-28 Bo Thorsen <bo@suse.de>
5664
5665 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5666 (STARTFILE_SPEC): Add 64 bit files.
5667 (ENDFILE_SPEC): Likewise.
5668
5669 2002-02-28 Jason Merrill <jason@redhat.com>
5670
5671 * c-decl.c (finish_function): Only warn about missing return
5672 statement with -Wreturn-type.
5673
5674 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5675
5676 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5677
5678 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5679 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5680
5681 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5682
5683 * basic-block.h (BB_REACHABLE): Renumber.
5684 (BB_DIRTY, BB_NEW): New flags.
5685 (clear_bb_flags): Declare.
5686 (update_life_info_in_dirty_blocks): Declare.
5687 * cfg.c (clear_bb_flags): New function.
5688 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5689 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5690 reorder_insns, emit_insn_after): Mark block as dirty.
5691 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5692 (update_life_info_in_dirty_blocks): New function.
5693 * recog.c (apply_change_group): Dirtify block.
5694
5695 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5696 cfg consistent.
5697 * gcse.c (delete_null_pointer_checks): Likewise.
5698
5699 * toplev.c (dump_file_index): Move cse2 after bp,
5700 add DFI_null
5701 (dump_file_info): Similary.
5702 (rest_of_compilation): Avoid most of CFG rebuilds;
5703 do first if converision after null pointer checks, do cse2
5704 after branch prediction; avoid full liveness rebuild after
5705 initializing subregs.
5706 * invoke.texi (-d options): Document -du, renumber.
5707
5708 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5709 (notice_new_block): Do not set BB_UPDATE_LIFE.
5710 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5711 merge_blocks_move_successor_nojumps, merge_blocks,
5712 try_crossjump_to_edge): Likewise.
5713 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5714 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5715 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5716 (merge_of_block): Do not use life_data_ok.
5717 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5718 (if_convert): Use BB_DIRTY mechanizm to update life.
5719 * lcm.c (optimize_mode_switching): Update
5720 update_life_info_in_dirty_blocks
5721
5722 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5723
5724 * Makefile.in (integrate.o): Update.
5725 * c-decl.c (copy_lang_decl): Rename.
5726 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5727 * integrate.c: Include langhooks.h.
5728 (copy_decl_for_inlining): Update to use langhook.
5729 * langhooks-def.h (lhd_do_nothing_t,
5730 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5731 (LANG_HOOKS_INITIALIZER): Update.
5732 * langhooks.c (lhd_do_nothing_t): New.
5733 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5734 * tree.h (copy_lang_decl): Remove.
5735 objc:
5736 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5737
5738 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5739
5740 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5741 POST_DEC, and POST_MODIFY.
5742
5743 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5744
5745 * c-typeck.c (digest_init): Remove unused parameter; all
5746 callers changed.
5747
5748 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5749
5750 * expmed.c (expand_shift): Correctly test for low part of a
5751 subreg.
5752
5753 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5754
5755 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5756 insn UIDs with insn addresses.
5757
5758 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5759
5760 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5761 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5762 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5763 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5764 gcc.c, toplev.c: Delete code implementing -traditional mode.
5765
5766 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5767 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5768 Document removal of -traditional mode for compilation, and
5769 remove documentation only relevant to that mode.
5770
5771 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5772 config/convex/convex.h, config/d30v/d30v.h,
5773 config/i386/dgux.h, config/i386/osf1elf.h,
5774 config/i386/osfelf.h, config/i386/osfrose.h,
5775 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5776 config/m68k/hp310.h, config/m88k/dgux.h,
5777 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5778 config/m88k/m88k.h, config/m88k/openbsd.h,
5779 config/mips/abi64.h, config/mips/osfrose.h,
5780 config/mips/svr4-5.h, config/mips/svr4-t.h,
5781 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5782 config/stormy16/stormy16.h: Remove all references to
5783 -traditional from target specs. Delete all mention of the
5784 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5785 delete a couple of commented-out definitions of
5786 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5787 to -traditional.
5788
5789 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5790 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5791
5792 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5793
5794 * mklibgcc.in: Don't use \n in a line subject to
5795 interpretation by echo.
5796
5797 2002-02-27 Graham Stott <grahams@redhat.com>
5798
5799 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5800 Constify NAME.
5801
5802 * loop.c (prescan_loop): Handle PARALLEL.
5803
5804 * unroll.c (loop_iterations): Return 0 if the add_val for
5805 a BIV is REG.
5806
5807 * final.c (output_operand_lossage): Constify PFX_STR.
5808
5809 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5810
5811 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5812
5813 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5814 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5815
5816 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5817
5818 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5819
5820 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5821
5822 * cpplex.c (_cpp_lex_token): Handle directives in macro
5823 arguments.
5824 * cpplib.c (_cpp_handle_directive): Save and restore state
5825 if parsing macro args when entering a directive.
5826 * cppmacro.c (collect_args): No need to handle directives
5827 in macro arguments.
5828 (enter_macro_context, replace_args): Use the original macro
5829 definition in case it was redefined whilst collecting arguments.
5830 doc:
5831 * cpp.texi: Update.
5832
5833 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5834
5835 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5836 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5837 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5838 method on AIX.
5839 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5840 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5841 (load_toc_v4_PIC_2): Same.
5842
5843 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5844
5845 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5846
5847 2002-02-26 Richard Henderson <rth@redhat.com>
5848
5849 * config/alpha/alpha.md (ashldi_se): Re-enable.
5850
5851 2002-02-26 Richard Henderson <rth@redhat.com>
5852
5853 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5854 MODULE_LOCAL_P; improve commentary.
5855
5856 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5857
5858 * doc/cpp.texi: Clarify documentation of relationship between
5859 #line and #include.
5860
5861 2002-02-26 Kazu Hirata <kazu@hxi.com>
5862
5863 * config/h8300/h8300-protos.h: Update the prototype for
5864 compute_logical_op_length. Add the prototype for
5865 compute_logical_op_cc.
5866 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5867 code from operands.
5868 (compute_logical_op_cc): New.
5869 * config/h8300/h8300.md: Combine all the logical op patterns
5870 in HImode and SImode. Use compute_logical_op_cc.
5871
5872 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5873
5874 * config/i386/i386.c (print_operand): Don't append ATT-style
5875 length suffixs to x87 opcodes when in Intel mode.
5876
5877 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5878
5879 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5880 (init_emit_once): Update calls.
5881 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5882 (init_syntax_once): Prototype.
5883
5884 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5885
5886 * pa-linux.h (LIB_SPEC): Update definition.
5887 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5888
5889 2002-02-26 Richard Henderson <rth@redhat.com>
5890
5891 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5892 if we emitted a stop bit.
5893
5894 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5895
5896 * configure.in (libgcc_visibility): Substitute.
5897 * configure: Rebuilt.
5898 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5899 defined symbols .hidden.
5900
5901 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5902
5903 * attribs.c (c_common_attribute_table): Add visibility.
5904 (handle_visibility_attribute): New function.
5905 * varasm.c (assemble_visibility): New function.
5906 * output.h (assemble_visibility): Add prototype.
5907 * tree.h (MODULE_LOCAL_P): Define.
5908 * crtstuff.c (__dso_handle): Use visibility attribute.
5909 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5910 for MODULE_LOCAL_P symbols too.
5911 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5912 MODULE_LOCAL_P symbols the same way as local symbols.
5913 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5914 into .sdata/.sbss by the user.
5915 * doc/extend.texi (Function Attributes): Document visibility
5916 attribute.
5917
5918 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR debug/5770
5921 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5922 STRING_CST initializer spanning the whole variable without
5923 embedded zeros.
5924 If expand_expr returned MEM, don't use it.
5925
5926 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5927
5928 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5929 generate a die for the lexical block.
5930
5931 2002-02-26 Kazu Hirata <kazu@hxi.com>
5932
5933 * config/h8300/h8300-protos.h: Add a prototype for
5934 compute_logical_op_length.
5935 * config/h8300/h8300.c (compute_logical_op_length): New.
5936 * config/h8300/h8300.md (anonymous logical patterns): Use
5937 compute_logical_op_length for length.
5938
5939 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5940
5941 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5942 for vectors.
5943 (gen_type_die): Same.
5944
5945 * attribs.c (handle_vector_size_attribute): Set debug information.
5946
5947 2002-02-26 Daniel Egger <degger@fhm.edu>
5948
5949 * config/rs6000/rs6000.md: Swap define_insn attributes to
5950 fix incorrect generation of merge high instructions instead
5951 of merge low.
5952
5953 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5954
5955 * c-typeck.c (really_start_incremental_init): Use
5956 bitsize_zero_node for vectors.
5957
5958 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5959
5960 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5961 ("*set_vrsave_internal"): Same.
5962
5963 2002-02-25 Richard Henderson <rth@redhat.com>
5964
5965 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5966 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5967
5968 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5969
5970 PR target/5755
5971 * config/i386/i386.c (ix86_return_pops_args): Only pop
5972 fake structure return argument if it was passed on the stack.
5973
5974 2002-02-25 Jason Merrill <jason@redhat.com>
5975
5976 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5977 RESULT_DECL.
5978
5979 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5980
5981 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5982 link with shared_name only.
5983 * doc/invoke.texi (Link Options): Document new behavior.
5984
5985 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5986
5987 * c-typeck.c (push_init_level): Handle vectors.
5988
5989 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5990
5991 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5992 operands of SPARC_SETHI_P.
5993 (input_operand): Likewise.
5994 (sparc_emit_set_const32): Likewise.
5995 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5996 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5997 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5998 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5999 (movdi_insn_sp64_vis): Likewise.
6000 (movdi split, movdf split): Use SETHI32.
6001 * doc/md.texi: Document SPARC constraints L, M and N.
6002
6003 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6004
6005 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6006 ("*set_vrsave_internal"): use mfspr for Darwin.
6007
6008 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6009 gen_get_vrsave_internal.
6010
6011 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6012
6013 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6014
6015 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6016
6017 * cpplex.c (cpp_interpret_charconst): Get signedness or
6018 otherwise of wide character constants correct.
6019 * cppexp.c (lex): Get signedness of wide charconsts correct.
6020
6021 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6022
6023 * optabs.c (widen_operand): Only call convert_modes for
6024 promoted SUBREG if signedness matches.
6025 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6026
6027 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6028
6029 * cpplib.c (glue_header_name): Use local buffer to build up
6030 header name.
6031
6032 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6033
6034 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6035
6036 2002-02-23 Kazu Hirata <kazu@hxi.com>
6037
6038 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6039 H8/300[HS] separately.
6040 * config/h8300/h8300.md: Remove the early clobber constraint
6041 from bit field patterns.
6042
6043 2002-02-23 Kazu Hirata <kazu@hxi.com>
6044
6045 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6046 register_operand.
6047 (mulhisi3): Likewise.
6048 (umulqisi3): Likewise.
6049 (umulhisi3): Likewise.
6050
6051 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6052
6053 * cppinit.c (output_deps): Correct test for stdout output.
6054 (init_dependency_output): Cure warning.
6055
6056 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6057
6058 * expr.c (store_expr): When converting expression to promoted
6059 equivalent type, allow using SUBREG_REG of TARGET as the target
6060 of the expansion of EXP.
6061 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6062 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6063 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6064 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6065 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6066
6067 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6068
6069 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6070 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6071 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6072
6073 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6074
6075 PR optimization/5747
6076 * loop.c (scan_loop): Update reg info if move_movables created new
6077 pseudos.
6078
6079 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6080
6081 * gcc.c (init_gcc_spec): Revert last change.
6082
6083 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6084
6085 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6086 gpc_reg_operand constraint.
6087
6088 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6089
6090 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6091 Simplify comparison of `low'.
6092 (add_operand): Fix formatting.
6093 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6094 (mask_operand): Disallow mask to wrap in 64-bit mode.
6095 (rs6000_stack_info): Remove redundant test setting push_p.
6096 (output_toc): Fix formatting.
6097 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6098 cc_reg_not_cr0_operand constraint.
6099 (booldi3, boolcdi3 splitters): Same.
6100
6101 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6102
6103 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6104
6105 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6106
6107 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6108 gcc invoked with -shared-libgcc.
6109
6110 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6111
6112 PR c++/5748
6113 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6114 decl if any of elements was TREE_USED.
6115
6116 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6117
6118 * config/sparc/sol2.h: Don't include sys/mman.h.
6119 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6120 (arith_4096_operand): Don't throw high bits away.
6121 (const64_operand): Take sign extension of CONST_INTs into account.
6122 (const64_high_operand, sparc_emit_set_const32): Likewise.
6123 (GEN_HIGHINT64): Likewise.
6124 (sparc_emit_set_const64_quick1): Likewise.
6125 (const64_is_2insns): Likewise.
6126 (print_operand): Use trunc_int_for_mode for sign extension.
6127 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6128 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6129 chars. Assume CONST_INT is already properly sign-extended.
6130 (movdi split): Sign-extend each SImode part.
6131 (andsi3 split): Don't mask high bits off, so that result
6132 remains properly sign-extend.
6133 (iorsi3 split): Likewise.
6134 (xorsi3 split): Likewise.
6135
6136 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6137
6138 * fold-const.c (fold): Fix typo in comments.
6139
6140 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6141
6142 * Makefile.in (langhooks.o): Update dependencies.
6143
6144 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6145
6146 * langhooks.c: Include flags.h.
6147
6148 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6149
6150 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6151
6152 * c-common.c (c_common_post_options): Set inline trees by
6153 default.
6154
6155 * doc/extend.texi (Function Attributes): Document always_inline
6156 attribute.
6157 Update documentation about inlining when not optimizing.
6158
6159 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6160
6161 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6162 unless DECL_ALWAYS_INLINE.
6163
6164 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6165 unless DECL_ALWAYS_INLINE.
6166 (c_disregard_inline_limits): Disregard if always_inline set.
6167
6168 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6169 Disregard if always_inline set.
6170 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6171 unless DECL_ALWAYS_INLINE.
6172
6173 * attribs.c (handle_always_inline_attribute): New.
6174 (c_common_attribute_table): Add always_inline.
6175
6176 * config/rs6000/altivec.h: Add prototypes for builtins
6177 requiring the always_inline attribute.
6178
6179 2002-02-21 Eric Christopher <echristo@redhat.com>
6180
6181 * expmed.c (store_bit_field): Try to simplify the subreg
6182 before generating a new one when when the mode size of
6183 value is less than maxmode.
6184
6185 2002-02-21 Richard Henderson <rth@redhat.com>
6186
6187 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6188 than gen_rtx_PLUS to form the sum.
6189 * explow.c (force_reg): Rearrange to not allocate new pseudo
6190 when force_operand returns a register.
6191 * expr.c (expand_assignment): Allow offset_rtx expansion to
6192 return a sum. Do not force addresses into registers.
6193 (expand_expr): Likewise.
6194 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6195 to canonicalize arithmetic that didn't simpify.
6196 (simplify_plus_minus): New argument force; update
6197 all callers. Don't split CONST unless we can do something with it,
6198 and wouldn't lose the constness of the operands.
6199
6200 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6201 that we generated earlier.
6202
6203 2002-02-21 Tom Tromey <tromey@redhat.com>
6204
6205 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6206 (output_line_info): Use constant `1', with a long explanatory
6207 comment.
6208 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6209
6210 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6211
6212 * jump.c (redirect_jump): If old label has no UID, don't try to
6213 delete it.
6214
6215 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6216
6217 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6218 If input is constant, do shifts at compile time.
6219
6220 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6221
6222 * doc/extend.texi: Fix some more overfull hboxes.
6223
6224 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6225
6226 PR optimization/4994
6227 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6228 register moves.
6229
6230 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6231
6232 PR c++/4574
6233 * expr.h (expand_and): Add mode argument.
6234 * expmed.c (expand_and): Add mode argument.
6235 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6236 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6237 * except.c (expand_builtin_extract_return_addr): Likewise.
6238 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6239 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6240 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6241 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6242 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6243 gen_rtx (CONST_INT, VOIDmode, x).
6244
6245 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6246
6247 PR c/4697:
6248 * stmt.c (warn_if_unused_value): Move side effects test once more.
6249
6250 2002-02-20 Torbjorn Granlund <tege@swox.com>
6251
6252 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6253 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6254
6255 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6256
6257 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6258 SUBREG or ZERO_EXTEND.
6259
6260 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6261
6262 * sh.h (current_function_anonymous_args): Remove.
6263 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6264 of current_function_varargs and current_function_stdarg is set.
6265 * sh.c (sh_expand_prologue): Check current_function_varargs /
6266 current_function_stdarg / TARGET_SH5 instead of
6267 current_function_anonymous_args.
6268
6269 * sh64.h (TARGET_VERSION): Define.
6270
6271 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6272
6273 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6274 VRSAVE_REGNO on TARGET_ALTIVEC.
6275
6276 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6277
6278 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6279 bits of SImode const_int.
6280 (includes_rshift_p): Likewise.
6281 (print_operand): Call mask_operand and mask64_operand with correct
6282 mode.
6283 (rs6000_output_function_epilogue): Pad traceback table to word.
6284 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6285 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6286 mask64_operand with correct mode.
6287 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6288
6289 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6290
6291 PR debug/4461
6292 * varasm.c (get_pool_constant_mark): New.
6293 * rtl.h (get_pool_constant_mark): Add prototype.
6294 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6295 be represented if it has not been output.
6296
6297 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6298
6299 * combine.c (do_SUBST): Sanity check substitutions of
6300 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6301 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6302 CONST_INT into its operand.
6303 (known_cond): Likewise, for ZERO_EXTEND.
6304 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6305 allow for simplification of wide modes. Reject CONST_INTs in
6306 ZERO_EXTEND when their actual mode is not given.
6307
6308 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6309
6310 * c-decl.c (pushdecl): If no global declaration is found for an
6311 extern declaration in block scope, try a limbo one.
6312
6313 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6314
6315 PR c++/4401
6316 * c-common.c (pointer_int_sum): Moved from...
6317 * c-typeck.c (pointer_int_sum): ...here.
6318 * c-common.h (pointer_int_sum): Add prototype.
6319
6320 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6321
6322 PR c++/5713
6323 * c-decl.c (duplicate_decls): Return 0 if issued error about
6324 redeclaration.
6325
6326 2002-02-20 Roger Sayle <roger@eyesopen.com>
6327 Jakub Jelinek <jakub@redhat.com>
6328
6329 PR c/4389
6330 * tree.c (host_integerp): Ensure that the constant integer is
6331 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6332 when pos is zero or non-zero respectively. Clarify comment.
6333 * c-format.c (check_format_info_recurse): Fix host_integerp
6334 usage; the pos argument should be zero when assigning to a
6335 signed HOST_WIDE_INT.
6336
6337 2002-02-20 Richard Henderson <rth@redhat.com>
6338
6339 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6340 of the operand, rather than assuming TImode.
6341 (ix86_expand_binop_builtin): Cope with commutative patterns
6342 using nonimmediate_operand for both operands.
6343 (ix86_expand_timode_binop_builtin): Likewise.
6344 (ix86_expand_store_builtin): Validate operand 1.
6345 (ix86_expand_unop1_builtin): Likewise.
6346
6347 2002-02-20 Philip Blundell <philb@gnu.org>
6348
6349 PR 5705
6350 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6351
6352 2002-02-20 Richard Henderson <rth@redhat.com>
6353
6354 PR c/5615
6355 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6356
6357 2002-02-20 Tom Tromey <tromey@redhat.com>
6358
6359 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6360 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6361 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6362 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6363 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6364 unconditionally.
6365
6366 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6367
6368 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6369 for (const_int 0) in X not just INTVAL.
6370
6371 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6372
6373 * doc/extend.texi: Avoid or reduce overfull hboxes.
6374
6375 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6376
6377 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6378 operations if the field does not start at a mode boundary.
6379
6380 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6381
6382 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6383 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6384 Also done for -Acpu and -Amachine.
6385
6386 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6387
6388 * cppinit.c (init_dependency_output): Take deps output file
6389 from -o if none given with -MF. Suppress normal output.
6390 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6391 * doc/cpp.texi, doc/invoke.texi: Update.
6392
6393 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6394
6395 * toplev.c (output_quoted_string): Write unprintable
6396 characters with octal escapes.
6397
6398 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6399
6400 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6401 really_call_used[VRSAVE_REGNO] if not Altivec.
6402
6403 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6404
6405 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6406 MODE_MASK.
6407 (constant_pool_expr_1): Fix formatting.
6408 (rs6000_legitimize_reload_address): Likewise.
6409
6410 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6411
6412 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6413 now that we have one.
6414
6415 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6416
6417 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6418 end of first block of bitfields (which was only seven bits);
6419 rename dummy to unused_1; remove comment which is no longer true.
6420
6421 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6422
6423 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6424
6425 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6426
6427 PR 5399
6428 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6429 if generating PIC.
6430
6431 PR 5054
6432 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6433 arm_is_longcall_p rather than inspecting call-type cookie
6434 directly.
6435 (call_value_insn) [TARGET_THUMB]: Likewise.
6436
6437 2002-02-19 Graham Stott <grahams@redhat.com>
6438
6439 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6440
6441 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6442
6443 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6444 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6445 (FP_SAVE_INLINE): Delete.
6446
6447 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6448 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6449 * config/rs6000/t-ppccomm: Build crtsavres.o.
6450 * config/rs6000/crtsavres.asm: New file.
6451
6452 2002-02-19 Philip Blundell <philb@gnu.org>
6453
6454 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6455 functions.
6456 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6457 (output_return_instruction): Allow interrupt functions to return with
6458 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6459 (arm_expand_prologue): Subtract 4 before stacking LR in an
6460 interrupt function.
6461
6462 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6463
6464 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6465 decl, not just FUNCTION_DECL.
6466 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6467 (arm_assemble_integer): Likewise.
6468 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6469 marked local.
6470
6471 2002-02-19 matthew green <mrg@eterna.com.au>
6472
6473 * config.gcc (sparc-*-netbsdelf*): Enable target.
6474 (sparc64-*-netbsd*): New target.
6475 * config/sparc/netbsd-elf.h: New file.
6476 * config/sparc/t-netbsd64: New file.
6477
6478 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6479
6480 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6481
6482 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6483
6484 * doc/invoke.texi: explicitly list the style guidelines that
6485 -Weffc++ checks for.
6486
6487 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6488
6489 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6490
6491 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6492
6493 PR other/5718
6494 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6495 only if not -E. If -E, pass -o through to the preprocessor.
6496
6497 2002-02-19 Kazu Hirata <kazu@hxi.com>
6498
6499 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6500 register number with an appropriate macro.
6501
6502 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6503
6504 * doc/rtl.texi (Constants): Close @code tag.
6505
6506 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6507
6508 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6509 ("mmx_uavgv4hi3"): Same.
6510 ("pmulhrwv4hi3"): Same.
6511
6512 * tree-inline.c (walk_tree): Handle vectors.
6513
6514 * c-common.c (constant_expression_warning): Handle vectors.
6515 (overflow_warning): Same.
6516
6517 * sched-deps.c (sched_analyze_2): Handle vectors.
6518
6519 * rtlanal.c (rtx_unstable_p): Handle vectors.
6520 (rtx_varies_p): Same.
6521 (count_occurrences): Same.
6522 (regs_set_between_p): Same.
6523 (modified_between_p): Same.
6524 (modified_in_p): Same.
6525 (volatile_insn_p): Same.
6526 (volatile_refs_p): Same.
6527 (side_effects_p): Same.
6528 (may_trap_p): Same.
6529 (inequality_comparisons_p): Same.
6530 (replace_regs): Same.
6531 (computed_jump_p_1): Same.
6532
6533 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6534 argument.
6535 (inner_mode_array): New.
6536 (copy_rtx): Handle vectors.
6537 (copy_most_rtx): Same.
6538 (rtx_equal_p): Same.
6539 (get_mode_alignment): Adjust for vectors.
6540
6541 * resource.c (mark_referenced_resources): Handle vectors.
6542 (mark_set_resources): Same.
6543
6544 * reload1.c (eliminate_regs): Handle vectors.
6545 (elimination_effects): Same.
6546 (scan_paradoxical_subregs): Same.
6547
6548 * reload.c (subst_reg_equivs): Handle vectors.
6549
6550 * regrename.c (scan_rtx): Handle vectors.
6551
6552 * regclass.c (reg_scan_mark_refs): Handle vectors.
6553
6554 * recog.c (find_single_use_1): Handle vectors.
6555
6556 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6557 (contains_replace_regs): Same.
6558 (memref_referenced_p): Same.
6559
6560 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6561 (subst_constants): Same.
6562
6563 * genattrtab.c (attr_copy_rtx): Handle vectors.
6564 (encode_units_mask): Same.
6565 (clear_struct_flag): Same.
6566 (count_sub_rtxs): Same.
6567
6568 * gcse.c (want_to_gcse_p): Handle vectors.
6569 (oprs_unchanged_p): Same.
6570 (hash_expr_1): Same.
6571 (oprs_not_set_p): Same.
6572 (expr_killed_p): Same.
6573 (compute_transp): Same.
6574 (store_ops_ok): Same.
6575
6576 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6577 of vectors.
6578 (fixup_var_refs_1): Same.
6579 (instantiate_virtual_regs_1): Same.
6580
6581 * fold-const.c (operand_equal_p): Handle vectors.
6582 (fold): Same.
6583 (rtl_expr_nonnegative_p): Same.
6584
6585 * flow.c (mark_used_regs): Handle vectors.
6586
6587 * df.c (df_uses_record): Handle vectors.
6588
6589 * cselib.c (cselib_subst_to_values): Handle vectors.
6590 (cselib_mem_conflict_p): Same.
6591 (hash_rtx): Same.
6592
6593 * cse.c (canon_reg): Handle vectors.
6594 (fold_rt): Same.
6595 (cse_process_notes): Same.
6596 (count_reg_usage): Same.
6597 (canon_hash): Same.
6598
6599 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6600
6601 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6602
6603 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6604 (gen_rtx): Handle CONST_VECTOR.
6605 (gen_const_vector_0): New.
6606 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6607 (reset_used_flags): Same.
6608 (copy_insn_1): Same.
6609 (initializer_constant_valid_p): Handle VECTOR_CST.
6610
6611 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6612
6613 * doc/rtl.texi (Constants): Document const_vector.
6614 (CONST0_RTX): Update for vectors.
6615 (RTL sharing): Same.
6616
6617 * print-tree.c (print_node): Add case for VECTOR_CST.
6618
6619 * tree.h (TREE_VECTOR_CST_ELTS): New.
6620 (struct tree_vector): New.
6621 (union tree_node): Add vector node.
6622 (build_vector): Add prototype.
6623
6624 * tree.def (VECTOR_CST): New.
6625
6626 * tree.c (build_vector): New.
6627
6628 * expmed.c (make_tree): Handle CONST_VECTOR.
6629
6630 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6631 (CONST_VECTOR_ELT): New.
6632 (CONST_VECTOR_NUNITS): New.
6633
6634 * machmode.h (GET_MODE_INNER): New.
6635 (DEF_MACHMODE): Accept 8th arg.
6636
6637 * machmode.def: Add 8th argument for vector inner mode.
6638 Add inner vector modes for vectors.
6639
6640 * rtl.def (VEC_CONST): Remove.
6641 (CONST_VECTOR): New.
6642
6643 * expr.c (clear_storage): Allow vectors.
6644 (is_zeros_p): Handle VECTOR_CST.
6645
6646 * varasm.c (output_constant_pool): Handle vectors.
6647 (rtx_const): Add veclo and vechi fields.
6648 (kind): Add RTX_VECTOR.
6649 (decode_rtx_const): Add case for vector.
6650
6651 * config/rs6000/rs6000-protos.h: Add zero_constant.
6652
6653 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6654 constants. Force easy vector constants into memory.
6655 (easy_vector_constant): New.
6656 (emit_easy_vector_constant): New.
6657 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6658 darwin.
6659
6660 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6661 instruction does.
6662 ("altivec_lvxl"): Same.
6663 (altivec_lvebx): Same.
6664 (altivec_lvehx): Same.
6665 (altivec_lvewx): Same.
6666 ("*movv4si_const0"): New.
6667 ("*movv4sf_const0"): New.
6668 ("*movv8hi_const0"): New.
6669 ("*movv16qi_const0"): New.
6670
6671 2002-02-18 Kazu Hirata <kazu@hxi.com>
6672
6673 * config/h8300/h8300.c (notice_update_cc): Use
6674 cc_status.value2.
6675
6676 2002-02-18 Kazu Hirata <kazu@hxi.com>
6677
6678 * config/h8300/h8300.md (divmod patterns): Change the
6679 constraints for operands[1] to register_operand.
6680
6681 2002-02-18 Kazu Hirata <kazu@hxi.com>
6682
6683 * config/h8300/h8300-protos.h: Remove the prototype for
6684 p_operand.
6685 * config/h8300/h8300.c (p_operand): Remove.
6686 * config/h8300/h8300.md: Replace p_operand with
6687 const_int_operand.
6688
6689 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6690
6691 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6692 comment.
6693 (output_return_instruction): Allow use of LDR to unstack
6694 return addresss even for interrupt handlers or when
6695 interworking. If compiling for ARMv5, use interworking-safe
6696 return instructions by default. Remove duplicated code and
6697 lengthy "strcat" sequences.
6698
6699 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6700
6701 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6702 (LINK_EH_SPEC): Define.
6703 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6704
6705 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6706
6707 * config/s390/s390.c (s390_emit_prologue): Do not set the
6708 frame_related flag for call-clobbered registers.
6709
6710 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6711
6712 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6713 (construct_container): Fix handling of SSE operands.
6714 (ix86_expand_builtin): Fix handling of 64bit pointers.
6715 (mmx_maskmovq_rex): New pattern.
6716
6717 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6718
6719 * regrename.c (kill_set_value): Handle subregs properly.
6720
6721 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6722
6723 * objc/objc-act.c (handle_impent): Remove leading '*'
6724 from objc_class_name.
6725
6726 2002-02-17 Richard Henderson <rth@redhat.com>
6727
6728 * config/alpha/alpha.c (some_small_symbolic_operand,
6729 some_small_symbolic_operand_1, split_small_symbolic_operand,
6730 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6731 Handle small SYMBOL_REFs anywhere, not just inside memories.
6732 * config/alpha/alpha-protos.h: Update.
6733 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6734 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6735
6736 2002-02-17 Roland McGrath <roland@frob.com>
6737
6738 * config.gcc (powerpc-*-gnu-gnualtivec*,
6739 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6740 * config/rs6000/gnu.h: New file.
6741 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6742 Grok "gnu" in rs6000_abi_name.
6743 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6744 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6745 Grok -mcall-gnu analogous to -mcall-linux et al.
6746 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6747 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6748 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6749
6750 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6751
6752 PR c/3444:
6753 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6754 shortening.
6755
6756 2002-02-17 Philipp Thomas <pthomas@suse.de>
6757
6758 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6759 ENDFILE_SPEC before (re)defining them.
6760
6761 2002-02-17 Kazu Hirata <kazu@hxi.com>
6762
6763 * config/h8300/h8300.c: Fix formatting.
6764 * config/h8300/h8300.h: Likewise.
6765
6766 2002-02-17 Philipp Thomas <pthomas@suse.de>
6767
6768 * doc/tm.texi: Explain why empty strings should not be
6769 marked for translation.
6770
6771 2002-02-17 Philipp Thomas <pthomas@suse.de>
6772
6773 * final.c (output_operand_lossage): Changed to accept
6774 printf style arguments. Change calls where necessary.
6775 * output.h (output_operand_lossage): Change declaration
6776 accordingly. Update copyright.
6777 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6778 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6779 Update copyright date where necessary.
6780
6781 * config/i386/i386.c (print_operand): Likewise. Remove use of
6782 sprintf.
6783
6784 * config/cris/cris.c (cris_operand_lossage): Likewise.
6785 Rename parameter so that exgettext recognizes it as
6786 translatable message.
6787 (LOSE_AND_RETURN): Rename parameter to msgid.
6788
6789 2002-02-17 Kazu Hirata <kazu@hxi.com>
6790
6791 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6792 hard coded register number with an appropriate macro.
6793 (HARD_REGNO_MODE_OK): Likewise.
6794 (ARG_POINTER_REGNUM): Likewise.
6795 (STATIC_CHAIN_REGNUM): Likewise.
6796 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6797 * config/h8300/h8300.md (define_constants): Define more
6798 register numbers.
6799
6800 2002-02-17 Philipp Thomas <pthomas@suse.de>
6801
6802 * config/i386/i386.h: Don't mark empty strings for translation.
6803
6804 2002-02-16 H.J. Lu <hjl@gnu.org>
6805
6806 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6807
6808 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6809
6810 * cppinit.c (merge_include_chains): Check for brack being
6811 NULL before attempting to merge it with qtail.
6812
6813 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6814
6815 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6816 DBX_DEBUG.
6817
6818 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6819
6820 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6821
6822 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6823
6824 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6825 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6826 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6827
6828 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6829
6830 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6831 now only if !TARGET_FIX.
6832 (*movsi_nt_vms_fix): New pattern.
6833
6834 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6835
6836 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6837 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6838 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6839 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6840 (alpha_start_function, alpha_expand_epilogue): Likewise.
6841 (unicosmk_gen_dsib): Likewise.
6842
6843 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6844
6845 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6846
6847 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6848
6849 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6850 check_and_change_labels, s390_final_chunkify): Delete.
6851 (s390_split_branches, s390_chunkify_pool): New functions.
6852 (s390_function_prologue): Call them.
6853
6854 * config/s390/s390.h (S390_REL_MAX): Delete.
6855 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6856
6857 * config/s390/s390.md (cjump, icjump, jump): Fix length
6858 attribute calculation.
6859
6860
6861 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6862
6863 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6864 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6865
6866 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6867
6868 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6869 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6870 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6871
6872 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6873
6874 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6875
6876 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6877
6878 * reload.c (find_dummy_reload): Check that an output register
6879 is valid for its mode.
6880
6881 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6882
6883 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6884 to simplify it.
6885
6886 * function.c (assign_parms): Demote promoted argument passed by
6887 transparent reference.
6888
6889 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6890
6891 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6892 -Acpu() and -Amachine() to eliminate warnings.
6893
6894 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6895
6896 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6897
6898 2002-02-14 Kazu Hirata <kazu@hxi.com>
6899
6900 * config/h8300/h8300-protos.h: Update the prototype for
6901 const_costs.
6902 * config/h8300/h8300.c (const_costs): Treat SET as a little
6903 more expensive operation.
6904 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6905 reference to const_costs.
6906
6907 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6908
6909 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6910
6911 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6912
6913 PR c/5503:
6914 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6915 use arguments from newtype.
6916
6917 2002-02-13 Eric Christopher <echristo@redhat.com>
6918
6919 * config/mips/mips.c (override_options): Add check for march/mipsX
6920 on the same command line. Fix error message in cpu processing.
6921 Remove architecture and ISA checks.
6922
6923 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6924
6925 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6926
6927 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6928
6929 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6930
6931 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6932 alternatives.
6933 ("*movv8hi_internal1"): Same.
6934 ("*movv16qi_internal1"): Same.
6935 ("*movv4sf_internal1"): Same.
6936
6937 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6938 not push_reload for altivec modes.
6939
6940 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6941
6942 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6943 all RTEMS targets including removal of #includes from config/*/rtems*.h
6944 file and adding them to tm_file setting. Added xm_defines=POSIX to
6945 many targets.
6946 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6947 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6948 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6949 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6950 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6951 config/m68k/rtemself.h: Ditto.
6952 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6953 config/mips/rtems64.h: Ditto.
6954 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6955 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6956 Ditto.
6957 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6958 config/sparc/rtemself.h: Ditto.
6959 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6960 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6961 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6962 more like arm-elf.
6963 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6964 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6965 target made more similar to i386-elf.
6966 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6967 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6968 be similar to config/m68k/t-m68kelf.
6969 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6970
6971 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6972
6973 * regmove.c (kill_value): Handle subregs.
6974
6975 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6976
6977 * i386.md (mul patterns): Allow memory operand to be first;
6978 add expanders where needed; fix constraints.
6979 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6980 Allow memory operand to be the first.
6981
6982 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6983 operands.
6984
6985 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6986
6987 PR c/5681:
6988 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6989 GET_MODE (x).
6990
6991 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6992
6993 PR optimization/5547:
6994 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6995 all valid IA-32 address modes involving non-scaled %ebx and
6996 GOT/GOTOFF as displacement.
6997
6998 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6999
7000 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7001 after emitting ltorg insns.
7002
7003 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7004 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7005 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7006 *abssf2): Fix "op_type" attribute.
7007
7008 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7009
7010 * mkconfig.sh: Avoid using a subshell redirect.
7011 ($output.T): Change to $(output)T.
7012 (ENABLE_NLS): Remove unneeded undef.
7013
7014 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7015 * config/alpha/x-vms (libsubdir): Define.
7016
7017 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7018 register frame procedures. Optimize retrieving context.
7019
7020 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7021 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7022 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7023
7024 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7025
7026 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7027 Make same change as for find_base_value.
7028
7029 2002-02-13 Kazu Hirata <kazu@hxi.com>
7030
7031 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7032 of QImode and SImode.
7033
7034 2002-02-13 Kazu Hirata <kazu@hxi.com>
7035
7036 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7037 length computation of movsi.
7038 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7039
7040 2002-02-13 Kazu Hirata <kazu@hxi.com>
7041
7042 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7043 operands[2] to register_operand.
7044
7045 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7046
7047 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7048
7049 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7050
7051 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7052 for altivec_lvx* and altivec_stvx*.
7053 ("*movv4si_internal"): Add constraint for loading from GPRs.
7054 ("*movv8hi_internal1"): Same.
7055 ("*movv16qi_internal1"): Same.
7056 ("*movv4sf_internal1"): Same.
7057
7058 * config/rs6000/rs6000.c (altivec_register_operand): New.
7059
7060 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7061 altivec_register_operand.
7062
7063 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7064
7065 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7066 handle SYMBOL_REF.
7067
7068 2002-02-13 Stan Shebs <shebs@apple.com>
7069
7070 * c-typeck.c (digest_init): Handle vectors.
7071 (really_start_incremental_init): Same.
7072 (pop_init_level): Same.
7073 (process_init_element): Same.
7074
7075 * varasm.c (output_constant): Same.
7076
7077 * expr.c (clear_storage): Same.
7078 (store_constructor): Same.
7079
7080 2002-02-12 Eric Christopher <echristo@redhat.com>
7081
7082 * explow.c (hard_function_value): Add comment explaining
7083 signed/unsigned comparison.
7084
7085 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7086
7087 * jump.c (never_reached_warning): Add finish argument.
7088 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7089 real insn after end.
7090 * rtl.h (never_reached_warning): Adjust prototype.
7091 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7092 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7093 never_reached_warning.
7094
7095 2002-02-12 Graham Stott <grahams@redhat.com>
7096
7097 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7098
7099 2002-02-12 Kazu Hirata <kazu@hxi.com>
7100
7101 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7102 logical shifts on H8/300.
7103 (shift_alg_si): Improve several shifts on H8/300.
7104 (get_shift_alg): Likewise.
7105
7106 2002-02-12 Graham Stott <grahams@redhat.com>
7107
7108 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7109
7110 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7111
7112 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7113 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7114
7115 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7116
7117 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7118 non-CONST_INT through default_assemble_integer.
7119 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7120 <case 8>: Abort for CONST_DOUBLE.
7121
7122 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7123
7124 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7125 is specified.
7126 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7127 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7128
7129 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7130
7131 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7132
7133 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7134
7135 * regrename.c (regrename_optimize): Don't accept a
7136 part-clobbered register if the replaced register is not part
7137 clobbered.
7138
7139 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7140 take padding into account when computing the argument value.
7141
7142 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7143
7144 * combine.c (try_combine): Apply substitutions in
7145 CALL_INSN_FUNCTION_USAGE too.
7146
7147 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7148
7149 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7150 __builtin_altivec_abs*.
7151 (bdesc_abs): New.
7152
7153 * config/rs6000/rs6000.h (rs6000_builtins): Add
7154 ALTIVEC_BUILTIN_ABS*.
7155
7156 * config/rs6000/altivec.h: Use const char for builtins expecting
7157 literals.
7158 (vec_abs): New versions for C and C++.
7159 (vec_abss): Same.
7160
7161 2002-02-10 Kazu Hirata <kazu@hxi.com>
7162
7163 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7164 using Pmode.
7165
7166 2002-02-10 Kazu Hirata <kazu@hxi.com>
7167
7168 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7169 constant definition from h8300.md.
7170 (FRAME_POINTER_REGNUM): Likewise.
7171 * config/h8300/h8300.md (define_constants): Add FP_REG.
7172
7173 2002-02-10 Kazu Hirata <kazu@hxi.com>
7174
7175 * config/h8300/h8300.c (print_operand): Remove redundant code.
7176
7177 2002-02-10 Kazu Hirata <kazu@hxi.com>
7178
7179 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7180 * config/h8300/h8300.c (byte_reg): Make it static.
7181
7182 2002-02-10 Richard Henderson <rth@redhat.com>
7183
7184 PR c/5623
7185 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7186
7187 2002-02-10 Richard Henderson <rth@redhat.com>
7188
7189 PR c++/5624
7190 * tree.c (append_random_chars): Don't abort if main_input_filename
7191 does not exist.
7192
7193 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7194
7195 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7196
7197 2002-02-10 Kazu Hirata <kazu@hxi.com>
7198
7199 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7200 (pushhi1): Likewise.
7201
7202 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7203
7204 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7205 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7206
7207 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7208
7209 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7210 remove MASK_VIS.
7211 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7212
7213 2002-02-09 Kazu Hirata <kazu@hxi.com>
7214
7215 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7216 a half of an SImode register on H8/300.
7217
7218 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7219
7220 * i386.md (movdi_2): Add missing '!'.
7221
7222 2002-02-09 Kazu Hirata <kazu@hxi.com>
7223
7224 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7225 definitions.
7226
7227 2002-02-09 Kazu Hirata <kazu@hxi.com>
7228
7229 * config/h8300/h8300.md (length): Correct the distance valid
7230 for the short branch.
7231
7232 2002-02-09 Kazu Hirata <kazu@hxi.com>
7233
7234 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7235
7236 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7237
7238 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7239 registers in SImode.
7240 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7241 part-clobbered.
7242
7243 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7244 patch.
7245
7246 Contribute sh64-elf.
7247 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7248 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7249 (sh_cannot_modify_jumps_p): New function.
7250 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7251 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7252 (sh_ms_bitfield_layout_p): New function.
7253 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7254 Zack Weinberg <zack@codesourcery.com>
7255 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7256 expand_simple_binop instead of expand_binop.
7257 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7258 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7259 use of .quad and .uaquad.
7260 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7261 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7262 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7263 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7264 movdi_const_16bit): Make sure all CONSTs have modes.
7265 (sym2PIC): Ditto, but by adjusting all callers.
7266 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7267 if the prologue calls the SHmedia argument decoder or register
7268 saver.
7269 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7270 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7271 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7272 (sh_expand_epilogue): Don't emit USE of return target register.
7273 (prepare_move_operands): Legitimize DImode PIC addresses.
7274 (sh_media_register_for_return): Skip tr0, used to initialize the
7275 PIC register.
7276 (sh_expand_prologue): Remove explicit USE of return register.
7277 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7278 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7279 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7280 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7281 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7282 EXTRA_CONSTRAINT_T.
7283 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7284 (MOVI_SHORI_BASE_OPERAND_P): New.
7285 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7286 (EXTRA_CONSTRAINT_T): Define in terms of them.
7287 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7288 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7289 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7290 alternatives supporting TARGET_REGS.
7291 (UNSPEC_GOTPLT): New constant.
7292 (movdi split): Move incrementing of LABEL_NUSES...
7293 (movdi_const, movdi_const_32bit): Here. Use
7294 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7295 (movdi_const_16bit): New.
7296 (call, call_value) [flag_pic]: Use GOTPLT.
7297 (call_pop, call_value_pop): New expands.
7298 (call_pop_compact, call_pop_rettramp): New insns.
7299 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7300 (sibcall) [flag_pic]: Use GOT.
7301 (builtint_setjmp_receiver): Remove bogus, unused expand.
7302 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7303 (*pt, *ptb, ptrel): New insns.
7304 (sym2GOT): Handle DImode GOT.
7305 (sym2GOTPLT, symGOTPLT2reg): New expands.
7306 (sym2PIC): New expand.
7307 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7308 (shcompact_return_tramp_i): Use return register explicitly.
7309 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7310 disable flag_reorder_blocks.
7311 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7312 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7313 clobbers, for clarity.
7314 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7315 restoring of r0 in macl as MAYBE_DEAD.
7316 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7317 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7318 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7319 alter_subreg all over.
7320 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7321 reload, instead of emitting instructions that would require
7322 reloading.
7323 (casesi_load_media): Add missing modes.
7324 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7325 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7326 as used if the argument decoder is called.
7327 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7328 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7329 Pmode, then extend it to DImode if necessary.
7330 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7331 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7332 constants in FPU-enabled SHmedia, let them be loaded from memory.
7333 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7334 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7335 Adjust whitespace in assembly output templates.
7336 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7337 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7338 mode of if_then_else.
7339 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7340 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7341 sh.h.
7342 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7343 Joern Rennecke <amylaar@redhat.com>
7344 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7345 (SUBTARGET_CPP_PTR_SPEC): New.
7346 (SUBTARGET_CPP_SPEC): Remove.
7347 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7348 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7349 Fix typo in previous checkin.
7350 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7351 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7352 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7353 Alexandre Oliva <aoliva@redhat.com>
7354 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7355 what single FP register can hold for SHmedia target.
7356 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7357 Alexandre Oliva <aoliva@redhat.com>
7358 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7359 Do not split into SUBREG.
7360 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7361 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7362 and added new functions as specified in SH5 ABI r9.
7363 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7364 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7365 8-byte boundary.
7366 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7367 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7368 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7369 and consttable_window_ends.
7370 2001-06-03 Graham Stott <grahams@redhat,com>
7371 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7372 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7373 * config/sh/sh.c (print_operand): Handle floating-point pair,
7374 vector and matrix registers.
7375 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7376 vector modes into account.
7377 * config/sh/sh.md (movv2sf): Split move between registers into
7378 movdf.
7379 (movv4sf, movv16sf): Introduce insns that get split only after
7380 reload.
7381 * config/sh/shmedia.h: Fix Copyright dates.
7382 * config/sh/ushmedia.h: Likewise. Move loop counter
7383 declarations into conditionals that uses them.
7384 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7385 loop boundary.
7386 * config/sh/sshmedia.h: Fix Copyright dates.
7387 (sh_media_PUTCFG): Fix constraints.
7388 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7389 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7390 ptrmemfunc_vbit_in_delta for SH5.
7391 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7392 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7393 * invoke.texi: Likewise.
7394 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7395 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7396 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7397 GCC_pop_shmedia_regs_nofpu): New global symbols.
7398 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7399 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7400 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7401 compact function with nonlocal labels.
7402 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7403 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7404 (initial_elimination_offset): Account for their stack space.
7405 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7406 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7407 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7408 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7409 least one of the operands to be a register.
7410 (movv2sf): Likewise. Renamed to movv2sf_i.
7411 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7412 prepare_move_operands() before emitting SHmedia insns.
7413 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7414 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7415 Don't save nor initialize r12. Don't mis-align the stack.
7416 Pad the code with a nop.
7417 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7418 stack.
7419 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7420 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7421 [__SHMEDIA__]: Implement.
7422 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7423 * config/sh/sh.md: Set latency of `pt' closer to reality.
7424 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7425 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7426 Set move, load and store type attributes.
7427 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7428 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7429 profiling.
7430 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7431 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7432 * config/sh/sh.c (sh_media_register_for_return): New function.
7433 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7434 branch-target register.
7435 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7436 * config/sh/sh.md (return_media_i): Use any call-clobbered
7437 branch-target register.
7438 (return_media): If r18 wasn't copied in the prologue, copy it
7439 here.
7440 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7441 Clear class FP0_REGS.
7442 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7443 from elf.h.
7444 2001-03-08 DJ Delorie <dj@redhat.com>
7445 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7446 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7447 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7448 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7449 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7450 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7451 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7452 return value correctly for call_cookie.
7453 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7454 * config/sh/crt1.asm (start): Modified so as to call
7455 ___setup_argv_and_call_main.
7456 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7457 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7458 SHmedia mode.
7459 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7460 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7461 (STRIP_NAME_ENCODING): Use it.
7462 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7463 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7464 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7465 prepare_scc_operands().
7466 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7467 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7468 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7469 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7470 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7471 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7472 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7473 used in shcompact_incoming_args.
7474 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7475 change.
7476 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7477 mode.
7478 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7479 Adjust accordingly.
7480 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7481 Simplify. Adjust. Add sanity check.
7482 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7483 FPU_SINGLE_BIT.
7484 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7485 TARGET_SHCOMPACT.
7486 (udivsi3, divsi3): Use them.
7487 (force_mode_for_call): New insn.
7488 (call, call_value, sibcall_value): Emit it before SHcompact
7489 calls.
7490 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7491 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7492 call cookie is non-NULL before taking its value.
7493 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7494 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7495 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7496 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7497 block.
7498 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7499 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7500 temporary for stack adjusts. Use MACL and MACH to pass
7501 arguments to shcompact_incoming_args.
7502 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7503 clobber r1.
7504 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7505 (nested_trampoline): Load static chain address into r1.
7506 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7507 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7508 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7509 fp_arith_reg_operand().
7510 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7511 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7512 and use signed compares for them.
7513 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7514 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7515 ones properly aligned.
7516 (find_barrier): Account for extra alignment needed for 8-byte wide
7517 constants.
7518 (machine_dependent_reorg): Require a label for the second 4-byte
7519 constant after an 8-byte one.
7520 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7521 change.
7522 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7523 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7524 last_float when switching float modes.
7525 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7526 auto-increment for general-purpose registers.
7527 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7528 result.
7529 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7530 for stack adjust.
7531 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7532 registers for varargs.
7533 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7534 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7535 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7536 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7537 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7538 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7539 call_cookie accordingly.
7540 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7541 (SHCOMPACT_BYREF): Likewise.
7542 (SHCOMPACT_FORCE_ON_STACK): New macro.
7543 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7544 (sh_builtin_saveregs): Likewise.
7545 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7546 shcompact_incoming_args): Use new shift values. Support
7547 sequences of consecutive and non-consecutive pushes/pops.
7548 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7549 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7550 * config/sh/sh.h (TEXT_SECTION): Define.
7551 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7552 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7553 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7554 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7555 return values on FPU-enabled SHmedia.
7556 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7557 FPU-enabled SHmedia.
7558 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7559 value is returned in a non-FP reg and is not returned by
7560 reference.
7561 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7562 jump_ind.
7563 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7564 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7565 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7566 quad-aligned to be passed by callee-copy reference.
7567 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7568 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7569 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7570 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7571 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7572 copying low-numbered FP regs to r7 and r8.
7573 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7574 FP regs to general-purpose regs only if the copy was passed on the
7575 stack.
7576 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7577 copying FP reg to r9.
7578 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7579 copy FP regs to general-purpose regs only in outgoing calls.
7580 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7581 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7582 HOST_WIDE_INT.
7583 * config/sh/sh.h (struct sh_args): Document all fields.
7584 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7585 passed partially on the stack should not consider making
7586 sibcalls.
7587 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7588 stack_regs only for incoming calls. When passing FP args,
7589 make sure there are FP regs available before modifying
7590 call_cookie.
7591 (SHCOMPACT_BYREF): Pass double args in general-purpose
7592 registers by reference.
7593 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7594 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7595 attempt to generate sibcalls if the caller got any arguments
7596 by reference.
7597 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7598 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7599 to 8-byte boundaries.
7600 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7601 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7602 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7603 stored in the stack.
7604 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7605 for the offsets to have the ISA bit set.
7606 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7607 invocation. Use beq instead of bgt to mark end of sequence of
7608 loads.
7609 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7610 bgt to mark end of sequence of stores.
7611 * config/sh/sh.c (arith_operand): Don't check whether
7612 CONST_OK_FOR_J for now.
7613 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7614 instead of long for conversion.
7615 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7616 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7617 before passing it to fprintf.
7618 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7619 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7620 Call set_fpscr before reading/writing SR.
7621 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7622 Call set_fpscr.
7623 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7624 SHmedia code.
7625 (FMOVD_WORKS): Define on SH5 with FPU.
7626 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7627 setting.
7628 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7629 _fpscr_values.
7630 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7631 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7632 address.
7633 (ia_main_table): Ditto.
7634 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7635 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7636 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7637 the definitions from sh.h.
7638 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7639 TARGET_SH5.
7640 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7641 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7642 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7643 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7644 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7645 Increment LABEL_NUSES.
7646
7647 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7648 TARGET_SH5.
7649 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7650 defined.
7651 * config/sh/elf.h (SIZE_TYPE): Likewise.
7652 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7653 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7654 shcompact_incoming_args): Load switch table addresses using
7655 datalabel.
7656 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7657 (NO_BUILTIN_SIZE_TYPE): Define.
7658 (SIZE_TYPE): Don't define.
7659 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7660 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7661 definition of __SH5__=32 for -m5-compact-nofpu.
7662 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7663 ADDR_DIFF_VEC.
7664 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7665 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7666 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7667 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7668 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7669 (INSN_LENGTH_ALIGNMENT): Likewise.
7670 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7671 * config/sh/sh.md (call, call_value, sibcall): Simplify
7672 copying of non-branch-target register.
7673 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7674 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7675 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7676 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7677 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7678 floating-point values as structs.
7679 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7680 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7681 general-purpose register.
7682 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7683 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7684 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7685 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7686 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7687 (ENCODE_SECTION_INFO): Enclose variables and constants in
7688 DATALABEL unspecs.
7689 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7690 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7691 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7692 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7693 only for LABEL_REFs. For SYMBOL_REFs, prepend
7694 SH_DATALABEL_ENCODING to the symbol name.
7695 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7696 convert_mode().
7697 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7698 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7699 UNSPEC_DATALABEL.
7700 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7701 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7702 (DATALABEL_REF_P): Don't require CONST.
7703 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7704 REL label.
7705 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7706 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7707 right.
7708 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7709 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7710 Use shallow_copy_rtx and PUT_MODE to change the mode of
7711 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7712 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7713 on SHmedia using GENERAL_REGs.
7714 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7715 bltu_media_i): Fix reversion of conditions.
7716 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7717 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7718 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7719 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7720 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7721 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7722 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7723 (GCC_nested_trampoline): Likewise.
7724 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7725 * config/sh/sh.c (gen_datalabel_ref): Define.
7726 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7727 (INITIALIZE_TRAMPOLINE): Likewise.
7728 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7729 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7730 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7731 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7732 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7733 (ic_invalidate): Adjust for SH5.
7734 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7735 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7736 _nested_trampoline.
7737 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7738 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7739 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7740 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7741 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7742 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7743 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7744 * config/sh/sh.c (target_reg_operand): Match only target-branch
7745 registers and pseudos that aren't virtual registers.
7746 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7747 Copy operands that don't match target_reg_operand to pseudos.
7748 (call_media, call_value_media, sibcall_media): Use
7749 target_reg_operand instead of target_operand.
7750 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7751 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7752 * config/sh/sh.c (target_reg_operand): Match hardware registers
7753 other than branch-target registers.
7754 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7755 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7756 (fpscr_values) [SH5 == 32]: Define.
7757 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7758 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7759 Handle function addresses coming in SUBREGs.
7760 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7761 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7762 shcompact_return_trampoline): Use datalabel where appropriate.
7763 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7764 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7765 general-purpose register to copy one branch-target register to
7766 another.
7767 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7768 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7769 SYMBOL_REFs with VOIDmode.
7770 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7771 bltu_media_i): New insns.
7772 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7773 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7774 (INIT_CUMULATIVE_ARGS): Likewise.
7775 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7776 * machmode.def (V16SFmode): New mode.
7777 * c-common.c (type_for_mode): Support V2SF and V16SF.
7778 * tree.c (build_common_tree_nodes_2): Likewise.
7779 * tree.h (tree_index): Likewise.
7780 * calls.c (emit_call_1): Take args_so_far. Adjust all
7781 callers. Introduce CALL_POPS_ARGS.
7782 * tm.texi (CALL_POPS_ARGS): Document.
7783 * config/sh/crt1.asm: Implement in SHmedia mode.
7784 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7785 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7786 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7787 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7788 Implement divsi and udivsi in SHmedia mode. Introduce
7789 SHcompact trampolines.
7790 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7791 only in SHmedia64.
7792 (regno_reg_class): Rewrite.
7793 (fp_reg_names): Remove.
7794 (sh_register_names, sh_additional_register_names): New.
7795 (print_operand): Added `u'. Support SUBREGs in addresses.
7796 Add parentheses around shifted CONSTs.
7797 (output_file_start): Output .mode and .abi directives.
7798 (shiftcosts, addsubcosts, multcosts): Adjust.
7799 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7800 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7801 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7802 bytes, not registers. Take into account the need for the
7803 SHcompact incoming args trampoline. Adjust all callers.
7804 (sh_expand_prologue): Take stack_regs into account. Call
7805 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7806 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7807 stack aligned as per SH5 ABI.
7808 (sh_builtin_saveregs): Support SH5 ABI.
7809 (sh_build_va_list, sh_va_start): Likewise.
7810 (initial_elimination_offset): Take alignment into account.
7811 Compute location of PR according to the SH5 stack frame.
7812 (arith_reg_operand): Reject branch-target registers.
7813 (shmedia_6bit_operand): New.
7814 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7815 (target_reg_operand): Match DImode only. Accept SUBREGs.
7816 (target_operand): New.
7817 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7818 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7819 SIBCALL_REGS for SHmedia.
7820 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7821 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7822 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7823 (TARGET_SWITCHES): New SH5 flags.
7824 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7825 VALID_REGISTER_P to disable unsupported registers.
7826 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7827 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7828 (FUNCTION_ARG_PADDING): Define.
7829 (FASTEST_ALIGNMENT): Adjust.
7830 (SH_REGISTER_NAMES_INITIALIZER): New.
7831 (sh_register_names): Declare.
7832 (DEBUG_REGISTER_NAMES): Define.
7833 (REGISTER_NAMES): Define based on sh_register_names.
7834 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7835 (sh_additional_register_names): Declare.
7836 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7837 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7838 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7839 (REGISTER_NATURAL_MODE): Define.
7840 (FIRST_PSEUDO_REGISTER): Adjust.
7841 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7842 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7843 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7844 (VECTOR_MODE_SUPPORTED_P): Define.
7845 (REG_CLASS_CONTENTS): Adjust.
7846 (SMALL_REGISTER_CLASSES): Adjust.
7847 (REG_ALLOC_ORDER): Adjust.
7848 (INDEX_REG_CLASS): Adjust.
7849 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7850 (CONST_OK_FOR_LETTER_P): Adjust.
7851 (PREFERRED_RELOAD_CLASS): Adjust.
7852 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7853 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7854 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7855 (FIRST_FP_PARM_REG): Adjust.
7856 (CALL_POPS_ARGS): Define.
7857 (FUNCTION_ARG_REGNO_P): Adjust.
7858 (struct sh_args): New fields.
7859 (GET_SH_ARG_CLASS): Adjust.
7860 (INIT_CUMULATIVE_ARGS): Adjust.
7861 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7862 (FUNCTION_ARG_ADVANCE): Adjust.
7863 (FUNCTION_ARG): Adjust.
7864 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7865 (FUNCTION_ARG_CALLEE_COPIES): Define.
7866 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7867 (STRICT_ARGUMENT_NAMING): Define.
7868 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7869 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7870 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7871 (SETUP_INCOMING_VARARGS): Adjust.
7872 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7873 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7874 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7875 (SUBREG_OK_FOR_INDEX_P): Adjust.
7876 (EXTRA_CONSTRAINT_S): Update.
7877 (EXTRA_CONSTRAINT_T): New.
7878 (EXTRA_CONSTRAINT): Adjust.
7879 (GO_IF_LEGITIMATE_INDEX): Adjust.
7880 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7881 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7882 (MOVE_MAX): Adjust.
7883 (MAX_MOVE_MAX): Define.
7884 (Pmode): Adjust.
7885 (CONST_COSTS): Adjust.
7886 (REGISTER_MOVE_COST): Adjust.
7887 (BRANCH_COST): Adjust.
7888 (TEXT_SECTION_ASM_OP): Adjust.
7889 (DBX_REGISTER_NUMBER): Adjust.
7890 (ASM_OUTPUT_DOUBLE_INT): New.
7891 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7892 (PREDICATE_CODES): Adjust.
7893 (PROMOTE_MODE): Adjust.
7894 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7895 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7896 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7897 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7898 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7899 (TR0_REG, TR1_REG, TR2_REG): New.
7900 (XD0_REG): Renumber.
7901 (UNSPEC_COMPACT_ARGS): New.
7902 (type): Added pt and ptabs.
7903 (length): Default to 4 on SHmedia. Default pt length to 12
7904 and 20 on SHmedia32 and SHmedia64, respectively.
7905 (pt): New function unit.
7906 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7907 Add whitespace between operands of SHmedia instructions.
7908 (movdicc): Fix.
7909 (adddi3_media, addsi3_media): Adjust constraints.
7910 (subsi3) [SHmedia]: Force operand 1 into a register.
7911 (udivsi3_i1_media, udivsi3_i4_media): New.
7912 (udivsi3): Support SHmedia.
7913 (divsi3_i1_media, divsi3_i4_media): New.
7914 (divsi3): Support SHmedia.
7915 (anddi3, iordi3, xordi3): Adjust constraints.
7916 (zero_extendhidi2, zero_extendqidi2): New.
7917 (extendsidi2, extendhidi2, extendqidi2): New.
7918 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7919 (pop_e, pop_fpul, pop_4): Likewise.
7920 (movsi_media): Support FP and BT registers.
7921 (movsi_media_nofpu): New. Adjust splits to DImode.
7922 (lduw, ldub): Renamed to zero_extend* above.
7923 (movqi_media): Fix typo.
7924 (movdi_media): Support FP and BT registers.
7925 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7926 (movdi_const_32bit): New.
7927 (shori_media): Require immediate operand. Use `u' for output.
7928 (movdf_media, movsf_media): Simplified.
7929 (movdf_media_nofpu, movsf_media_nofpu): New.
7930 (movdf, movsf): Adjust
7931 (movv2sf, movv2sf, movv16sf): New.
7932 (beq_media, beq_media_i): Adjust constraints. Don't use
7933 scratch BT register.
7934 (bne_media, bne_media_i): Likewise.
7935 (bgt_media, bgt_media_i): Likewise.
7936 (bge_media, bge_media_i): Likewise.
7937 (bgtu_media, bgtu_media_i): Likewise.
7938 (bgeu_media, bgeu_media_i): Likewise.
7939 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7940 bunordered): Emit jump insn. Force operands to registers when
7941 needed.
7942 (jump_media, jump): Simplify.
7943 (call_compact, call_compact_rettramp): New.
7944 (call_value_compact, call_value_compact_rettramp): New.
7945 (call_media, call_value_media): Simplify.
7946 (sibcall_compact, sibcall_media): New.
7947 (call, call_value): Adjust for SHmedia and SHcompact.
7948 (sibcall, sibcall_value, untyped_call): Likewise.
7949 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7950 (indirect_jump): Adjust for SHmedia.
7951 (casesi_jump_media): New.
7952 (nop): Re-enable for SHmedia.
7953 (call_site): Restrict to SH1.
7954 (casesi): Adjust for SHmedia.
7955 (casesi_shift_media, casesi_load_media): New.
7956 (return): Explicitly use PR register. Call return trampoline
7957 on SHcompact.
7958 (return_i): Explicitly use PR register.
7959 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7960 (return_media): Adjust.
7961 (shcompact_incoming_args): New.
7962 (epilogue): Adjust.
7963 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7964 (movstrsi): Disable on SH5.
7965 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7966 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7967 (subsf3, subsf3_media): Likewise.
7968 (mulsf3, mulsf3_media, mac_media): Likewise.
7969 (divsf3, divsf3_media): Likewise.
7970 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7971 (floatsisf2, fux_truncsfsi2): Likewise.
7972 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7973 constraints.
7974 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7975 (cmpunsf_media, cmpsf): Likewise.
7976 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7977 (abssf2, abssf2_media): Likewise.
7978 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7979 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7980 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7981 (floatsidf2, fix_truncdfsi2): Likewise.
7982 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7983 constraints.
7984 (cmpeqdf_media, cmpgtdf_media): Likewise.
7985 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7986 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7987 (absdf2, absdf2_media): Likewise.
7988 (extendsfdf2, extendsfdf2_media): Likewise.
7989 (truncsfdf2, truncsfdf2_media): Likewise.
7990 * config/sh/sh64.h: New file.
7991 * config/sh/t-sh64: New file.
7992 * config/sh/shmedia.h: New file.
7993 * config/sh/ushmedia.h: New file.
7994 * config/sh/sshmedia.h: New file.
7995 * configure.in: Added sh64-*-elf.
7996 * configure: Rebuilt.
7997 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7998 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7999 (reg_class_from_letter): Use `b' for TARGET_REGS.
8000 (print_operand): Support `%M', `%m', `AND' and
8001 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8002 (andcosts): Adjust for SHmedia.
8003 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8004 Likewise.
8005 (target_reg_operand): New function.
8006 * config/sh/sh-protos.h (target_reg_operand): Declare.
8007 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8008 FP registers on SH5.
8009 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8010 on SH4.
8011 (TARGET_REGISTER_P): New macro.
8012 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8013 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8014 (EXTRA_CONSTRAINT_S): New macro.
8015 (EXTRA_CONSTRAINT): Adjust.
8016 (FLOAT_TYPE_SIZE): Define to 32.
8017 (Pmode): DImode on SHmedia.
8018 (CONST_COSTS): Adjust for SHmedia literals.
8019 (PREDICATE_CODES): Added target_reg_operand.
8020 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8021 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8022 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8023 (cmpdi): Accept SHmedia.
8024 (movdicc_false, movdicc_true): New insns.
8025 (movdicc): New expand.
8026 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8027 no_new_pseudos.
8028 (addsi3_media): Match `S' constraint.
8029 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8030 (negdi2): Expand for SHmedia.
8031 (one_cmpldi2): New expand.
8032 (zero_extendsidi2): Change from expand to insn.
8033 (extendsidi2): Add constraints.
8034 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8035 LD/ST address. Fix SI immediate loading split.
8036 (movhi_media, movqi_media, lduw, ldub): New insns.
8037 (movhi, movqi): Accept SHmedia.
8038 (shori_media, movdi_media): Relax input constraints. Split
8039 symbolic constants.
8040 (movdf_media, movsf_media): New insn. New split to movdi.
8041 (movdf, movsf): Match on SHmedia.
8042 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8043 bgeu_media): New insns and splits. New insns with `_i' suffix.
8044 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8045 (bunordered): New expand.
8046 (jump_compact): Renamed from `jump'.
8047 (jump_media): New insn.
8048 (jump): New expand.
8049 (call_media, call_value_media): New insns.
8050 (call, call_value): Adjust.
8051 (indirect_jump_compact): Renamed from `indirect_jump'.
8052 (indirect_jump_media): New insn.
8053 (indirect_jump): New expand.
8054 (untyped_call, return): Accept SHmedia.
8055 (return_media): New insn.
8056 (prologue, epilogue, blockage): Accept SHmedia.
8057 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8058 (sunordered): New expand.
8059 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8060 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8061 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8062 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8063 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8064 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8065 abssf2_media): New insns.
8066 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8067 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8068 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8069 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8070 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8071 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8072 absdf2_media): New insns.
8073 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8074 (extendsfdf2_media, truncdfsf2_media): New insns.
8075 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8076 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8077 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8078 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8079 * config/sh/sh.md (adddi3): New expand.
8080 (adddi3_media, adddi3z_media): New insns.
8081 (adddi3_compact): Renamed from adddi3.
8082 (addsi3_media): Use add.l r63 to add constant zero.
8083 (subdi3): New expand.
8084 (subdi3_media): New insn.
8085 (subdi3_compact): Renamed from subdi3.
8086 (mulsidi3): New expand.
8087 (mulsidi3_media): New insn.
8088 (mulsidi3_compact): Renamed from mulsidi3.
8089 (umulsidi3): New expand.
8090 (umulsidi3_media): New insn.
8091 (umulsidi3_compact): Renamed from umulsidi3.
8092 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8093 (ashlsi3, ashrsi3, lshrsi3): Use them.
8094 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8095 (ashldi3, ashrdi3, lshrdi3): Use them.
8096 (zero_extendsidi2): New expand.
8097 (extendsidi2): New insn.
8098 (movsi_media): New insn. Split to movdi to load constants.
8099 (movsi): Enable for shmedia.
8100 (movdi_media): New insn. Use shori_media to load wide constants.
8101 (short_media): New insn.
8102 (movdi): Enable for shmedia.
8103 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8104 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8105 (SUBTARGET_CPP_SPEC): Added `!m5'.
8106 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8107 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8108 to all other SH variants.
8109 (TARGET_DEFAULT): Set to SH1_BIT.
8110 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8111 (BITS_PER_WORD): Raise to 64 on shmedia.
8112 (MAX_BITS_PER_WORD): Change to 64.
8113 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8114 (INT_TYPE_SIZE): Keep as 32.
8115 (UNITS_PER_WORD): Raise to 8 on shmedia.
8116 (MIN_UNITS_PER_WORD): Keep as 4.
8117 (POINTER_SIZE): Raise to 64 on shmedia.
8118 (CONST_OK_FOR_J): New macro.
8119 (CONST_OK_FOR_LETTER_P): Use it.
8120 (processor_type): Add PROCESSOR_SH5.
8121 * config/sh/sh.md: Conditionalize all expands, insns and
8122 splits to TARGET_SH1.
8123 (cpu): Added sh5.
8124 (addsi3_compact): Renamed from...
8125 (addsi3): Now an expand.
8126 (addsi3_media, subsi3_media): New insns.
8127 (subsi3): Don't negate constants with SHmedia.
8128
8129 * hooks.c: New file.
8130 * hooks.h: New file.
8131 * Makefile.in (HOOKS_H): New.
8132 (TARGET_DEF_H): Added $(HOOKS_H).
8133 (OBJS): Added hooks.o.
8134 (cfgcleanup.o, bb-reorder.o): Added target.h.
8135 (hooks.o): Added dependencies.
8136 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8137 (TARGET_INITIALIZER): this.
8138 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8139 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8140 * bb-reorder.c: Include target.h.
8141 (reorder_basic_blocks): Skip if cannot modify jumps.
8142 * cfgcleanup.c: Include target.h.
8143 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8144
8145 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8146
8147 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8148 Protect jump delay slot instructions with .set noreorder and
8149 .set nomacro.
8150
8151 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8152
8153 * config/mips/mips.md (casesi_internal_di): Calculate
8154 the index into the target offset table correctly.
8155
8156 2002-02-08 Richard Henderson <rth@redhat.com>
8157
8158 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8159 * final.c (output_addr_const): Accept and discard SUBREG.
8160 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8161 mark them unknown instead.
8162 (simplify_subtraction): Handle RTX_UNKNOWN.
8163 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8164
8165 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8166
8167 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8168
8169 2002-02-08 Richard Henderson <rth@redhat.com>
8170
8171 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8172
8173 2002-02-08 Andreas Jaeger <aj@suse.de>
8174
8175 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8176 * config/i386/t-linux64: New file.
8177
8178 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8179
8180 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8181 * c-parse.in (compstmt): Clear last_expr_type.
8182
8183 2002-02-07 Richard Henderson <rth@redhat.com>
8184
8185 * loop.c (strength_reduce): Sink final_value when not
8186 eliminating a biv.
8187
8188 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8189
8190 * config/sparc/freebsd.h: Fix mismatched spec {.
8191
8192 2002-02-07 Richard Henderson <rth@redhat.com>
8193
8194 * cfgrtl.c: Include recog.h and insn-config.h.
8195 (keep_with_call_p): Fix general_operand invocation.
8196 * Makefile.in (cfgrtl.o): Update dependencies.
8197
8198 2002-02-07 Kazu Hirata <kazu@hxi.com>
8199
8200 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8201 comment. Accept HImode only if TARGET_H8300.
8202
8203 2002-02-07 Eric Christopher <echristo@redhat.com>
8204
8205 * config/mips/crtn.asm: Cleanup #ifdefs.
8206
8207 2002-02-07 Eric Christopher <echristo@redhat.com>
8208
8209 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8210 register 7 as RA instead of $31.
8211 * config/mips/crtn.asm: Ditto.
8212 * config/mips/mips.c (mips_move_2words): Add case for
8213 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8214 (compute_frame_size): Fix typo.
8215 (save_restore_insns): Ditto. Make documentation about using
8216 register $7 as return register more precise.
8217 (mips_expand_epilogue): Fix comment. Add code to work around not
8218 being able to add to the stack pointer directly.
8219 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8220 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8221 epilogue.
8222
8223 2002-02-07 Tom Rix <trix@redhat.com>
8224
8225 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8226 immediates in ldu and stdu DS opcode field.
8227 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8228 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8229 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8230
8231 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8232
8233 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8234 offset for stack bias.
8235
8236 2002-02-07 H.J. Lu <hjl@gnu.org>
8237
8238 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8239
8240 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8241
8242 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8243
8244 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8245
8246 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8247 * i386.c (x86_order_regs_for_local_alloc): New global function.
8248 * i386.h (REG_ALLOC_ORDER): CLeanup.
8249 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8250
8251 2002-02-07 Richard Henderson <rth@redhat.com>
8252
8253 PR optimization/2463
8254 * alias.c (find_base_value): Recall base values for fixed hard regs.
8255 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8256
8257 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8258
8259 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8260 length.
8261
8262 2002-02-06 Richard Henderson <rth@redhat.com>
8263
8264 PR c/5609
8265 * stmt.c (resolve_operand_name_1): Take more care with mixed
8266 named and unnamed operands.
8267
8268 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8269 Jan Hubicka <jh@suse.cz>
8270
8271 * loop.c (remove_constant_addition): Avoid clobbering a shared
8272 CONST expression.
8273
8274 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8275
8276 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8277 * config/s390/t-linux64: New file.
8278 * config/s390/libgcc-glibc.ver: New file.
8279
8280 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8281
8282 * config/s390/linux64.h: Delete file.
8283 * config/s390/s390x.h: New file.
8284 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8285 as target header file.
8286 * config/s390/linux.h (TARGET_VERSION): Define depending on
8287 DEFAULT_TARGET_64BIT.
8288 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8289 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8290 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8291 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8292 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8293 (EXTRA_SPEC): New define.
8294 * config/s390/s390.h (TARGET_VERSION): Define depending on
8295 DEFAULT_TARGET_64BIT.
8296 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8297
8298 2002-02-06 Jason Merrill <jason@redhat.com>
8299
8300 * c-decl.c (finish_function): Warn about a non-void function with
8301 no return statement and no abnormal exit.
8302 (current_function_returns_abnormally): New variable.
8303 (start_function): Clear it.
8304 (struct c_language_function): Add returns_abnormally.
8305 (push_c_function_context): Save it.
8306 (pop_c_function_context): Restore it.
8307 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8308 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8309 an explicit return type.
8310 * c-tree.h: Declare current_function_returns_abnormally.
8311 (C_FUNCTION_IMPLICIT_INT): New macro.
8312 * c-typeck.c (build_function_call): Set it.
8313 (c_expand_return): Set current_function_returns_value even if the
8314 value is erroneous.
8315
8316 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8317
8318 PR c/5420:
8319 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8320 unsafe for reevaluation.
8321
8322 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8323
8324 PR c/5482:
8325 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8326 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8327
8328 2002-02-06 Richard Henderson <rth@redhat.com>
8329
8330 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8331 be a general_operand. Dest for function value must be a pseudo.
8332
8333 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8334
8335 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8336 as SYMBOL_REFs from the constant pool.
8337
8338 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8339
8340 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8341 passed by invisible reference.
8342
8343 2002-02-05 Richard Henderson <rth@redhat.com>
8344
8345 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8346
8347 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8348
8349 Implement using "base addresses" in insn operands as default.
8350 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8351 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8352 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8353 used to read the rtx value.
8354 (mmix_target_asm_function_epilogue): Fix spacing.
8355 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8356 (mmix_legitimate_address): Ditto.
8357 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8358 should be loaded with a GETA insn. Don't allocate needless extra
8359 char for nul termination and fix misleading comment.
8360 (mmix_print_operand_address): Handle constants if
8361 TARGET_BASE_ADDRESSES.
8362 (mmix_output_register_setting): Use base addressing if
8363 TARGET_BASE_ADDRESSES and the number of insns is 3.
8364 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8365 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8366 to use R as constraint, add LDA to match s.
8367 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8368 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8369 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8370 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8371 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8372 order with other fixed registers.
8373 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8374 other parameter/call-clobbered registers.
8375 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8376 -mbase-addresses, -mno-base-addresses.
8377 (MMIX Options): Ditto.
8378
8379 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8380
8381 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8382
8383 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8384
8385 * config/rs6000/altivec.h: Change elem to _S_elem.
8386
8387 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8388
8389 * config/netbsd.h (WCHAR_TYPE): Define.
8390 (WCHAR_TYPE_SIZE): Ditto.
8391 (WINT_TYPE): Ditto.
8392 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8393 (WCHAR_UNSIGNED): Ditto.
8394 (WCHAR_TYPE_SIZE): Ditto.
8395 (WINT_TYPE): Ditto.
8396 * config/arm/netbsd.h: Likewise.
8397 * config/i386/netbsd-elf.h: Likewise.
8398 * config/i386/netbsd.h: Likewise.
8399 * config/m68k/netbsd-elf.h: Likewise.
8400 * config/m68k/netbsd.h: Likewise.
8401 * config/ns32k/netbsd.h: Likewise.
8402 * config/sparc/netbsd.h: Likewise.
8403 * config/vax/netbsd.: Likewise.
8404
8405 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8406
8407 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8408 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8409 (TARGET_INITIALIZER): this.
8410 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8411 (BITFIELD_NBYTES_LIMITED): Markup fix.
8412 * tree.h (default_ms_bitfield_layout_p): Declare.
8413 (record_layout_info): Added prev_field.
8414 * tree.c (default_ms_bitfield_layout_p): New fn.
8415 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8416 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8417 * stor-layout.c: Include target.h.
8418 (start_record_layout): Initialize prev_field.
8419 (place_field): Handle MS bit-field layout, and disregard
8420 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8421 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8422 * Makefile.in (stor-layout.o): Adjust dependencies.
8423
8424 2002-02-05 Jason Merrill <jason@redhat.com>
8425
8426 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8427
8428 2002-02-05 Andreas Jaeger <aj@suse.de>
8429
8430 * crtstuff.c: Fix comments.
8431
8432 2002-02-05 Richard Henderson <rth@redhat.com>
8433
8434 PR fortran/3393
8435 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8436 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8437
8438 PR fortran/3392
8439 * config/mips/mips.c (function_arg): Handle TImode.
8440 (function_arg_advance): Likewise.
8441
8442 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8443
8444 * config/rs6000/altivec.h (vec_step_help): Rename to
8445 __vec_step_help.
8446
8447 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8448
8449 * config/rs6000/altivec.h: Fix typos.
8450
8451 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8452
8453 * config/arm/netbsd.h: Correct a comment.
8454
8455 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8456
8457 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8458 building void typed builtins.
8459
8460 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8461 (vec_step): Implement for C++.
8462
8463 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8464
8465 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8466
8467 2002-02-04 Richard Henderson <rth@redhat.com>
8468
8469 * combine.c (nonzero_bits): Re-introduce special case for
8470 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8471
8472 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8473
8474 * doc/extend.texi: Warn about unsupported usage of altivec
8475 builtins.
8476
8477 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8478 (altivec_predicate_*): New.
8479
8480 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8481 Add C++ version of vec_*() functions.
8482
8483 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8484 (bdesc_2arg): Remove altivec predicates.
8485 (altivec_expand_builtin): Handle predicates.
8486 (altivec_init_builtins): Handle predicates.
8487 (altivec_expand_predicate_builtin): New.
8488
8489 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8490
8491 * pa.c (DO_FRAME_NOTES): Move forward.
8492 (store_reg): Revise handling of frame notes.
8493 (load_reg): Likewise.
8494 (set_reg_plus_d): Likewise.
8495 (hppa_expand_prologue): Likewise.
8496 (hppa_expand_epilogue): Likewise.
8497
8498 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8499
8500 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8501
8502 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8503
8504 PR c/4475, c++/3780:
8505 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8506 * c-common.h (SWITCH_TYPE): Define.
8507 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8508 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8509 Rename spareness variable to sparseness.
8510 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8511 if non-NULL instead of TREE_TYPE (orig_index).
8512 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8513 (expand_end_case): Define using expand_end_case_type.
8514 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8515 to expand_end_case_type.
8516 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8517
8518 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8519
8520 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8521 (BIGGEST_ALIGNMENT): Change to 128.
8522
8523 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8524
8525 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8526
8527 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8528
8529 * pa.md (call_internal_reg_64bit): Remove unused variable.
8530
8531 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8532
8533 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8534 field.
8535 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8536 * config/arm/arm.c (current_function_anonymous_args): Delete,
8537 replace uses with cfun->machine->uses_anonymous_args.
8538 (arm_reorg): Do not reset uses_anonymous_args.
8539
8540 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8541 any geenral register.
8542
8543 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8544
8545 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8546 the entry block.
8547
8548 2002-02-04 Richard Henderson <rth@redhat.com>
8549
8550 * combine.c (force_to_mode): Remove STACK_BIAS code.
8551 (nonzero_bits): Likewise. Replace sp/fp special case with
8552 REGNO_POINTER_ALIGN.
8553
8554 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8555 (HARD_FRAME_POINTER_REGNUM): New.
8556 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8557 (FIXED_REGS, CALL_USED_REGS): Update.
8558 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8559 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8560 (HARD_REGNO_NREGS): Update for SFP.
8561 (STACK_POINTER_OFFSET): Include bias here ...
8562 (FIRST_PARM_OFFSET): ... not here.
8563 (STACK_BIAS): Remove.
8564 (INIT_EXPANDERS): New.
8565 (STARTING_FRAME_OFFSET): Do not include bias.
8566 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8567 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8568 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8569 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8570 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8571 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8572 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8573 (MUST_SAVE_REGISTER): Likewise.
8574 (sparc_flat_function_prologue): Likewise.
8575 (sparc_flat_function_epilogue): Likewise.
8576 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8577 (sparc_init_modes): SFP is GENERAL_REGS.
8578 (sparc_builtin_saveregs): SFP does not have bias applied.
8579
8580 2002-02-04 Richard Henderson <rth@redhat.com>
8581
8582 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8583 current_function_is_thunk.
8584 (alpha_sa_mask): Distinguish between current_function_is_thunk
8585 called from ASM_OUTPUT_MI_THUNK and not.
8586 (alpha_does_function_need_gp): Thunks always need gp.
8587 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8588 (alpha_output_mi_thunk_osf): New.
8589 * config/alpha/alpha-protos.h: Update.
8590 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8591
8592 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8593
8594 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8595 function types, not when they're taken away.
8596
8597 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8598
8599 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8600 CODE_LABEL and jump table when replacing a table jump with a
8601 simple jump.
8602
8603 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8604
8605 * config/s390/s390-protos.h (legitimize_la_operand,
8606 s390_secondary_input_reload_class, s390_plus_operand,
8607 s390_expand_plus_operand): Add prototypes.
8608
8609 config/s390/s390.c (s390_secondary_input_reload_class,
8610 s390_plus_operand, s390_expand_plus_operand): New functions.
8611
8612 (struct s390_address): New member 'pointer'.
8613 (s390_decompose_address): Compute it.
8614 (legitimate_la_operand_p): Use it.
8615 (legitimize_la_operand): New function.
8616 (movti, movdi, movdf splitters): Call it.
8617
8618 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8619 (PREDICATE_CODES): Add s390_plus_operand.
8620
8621 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8622 (la_ccclobber): Allow GENERAL_REGS as output operand.
8623
8624 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8625 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8626 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8627
8628 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8629
8630 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8631 register names for regular asm () construct.
8632
8633 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8634
8635 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8636 registers.
8637
8638 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8639
8640 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8641 pat for recog.
8642
8643 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8644
8645 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8646 constant pool to be identical by string address and index.
8647
8648 2002-02-04 Anthony Green <green@redhat.com>
8649
8650 * output.h (SECTION_OVERRIDE): Define.
8651 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8652
8653 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8654
8655 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8656 by existing arm*-*-netbsd* (a.out) target.
8657 (ns32k-*-netbsdelf*): Likewise.
8658 (sparc-*-netbsdelf*): Likewise.
8659 (vax-*-netbsdelf*): Likewise.
8660
8661 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8662
8663 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8664 headers and libobjc headers.
8665
8666 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8667
8668 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8669 (_mingw.h): Remove duplicate include.
8670
8671 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8672
8673 * config.gcc: Set cpu_type to m68k for 68010, as well.
8674 (m68010-*-netbsdelf*): New...
8675 (m68k*-*-netbsdelf*): ...targets.
8676 * config/m68k/netbsd-elf.h: New file.
8677
8678 2002-02-02 Kazu Hirata <kazu@hxi.com>
8679
8680 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8681
8682 2002-02-02 Kazu Hirata <kazu@hxi.com>
8683
8684 * config/h8300/h8300.c (h8_push_ops): Move inside
8685 h8300_init_once.
8686 (h8_pop_ops): Likewise.
8687 (h8_move_ops): Likewise.
8688
8689 2002-02-02 Kazu Hirata <kazu@hxi.com>
8690
8691 * config/h8300/h8300.c (os_task): Make it static.
8692 (monitor): Likewise.
8693 (pragma_saveall): Likewise.
8694
8695 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8696
8697 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8698 constant is a valid sign-extension for Pmode.
8699
8700 2002-02-02 Kazu Hirata <kazu@hxi.com>
8701
8702 * config/h8300/h8300.c: Fix formatting.
8703
8704 2002-02-02 Kazu Hirata <kazu@hxi.com>
8705
8706 * config/h8300/h8300.md: Fix formatting.
8707
8708 2002-02-02 Kazu Hirata <kazu@hxi.com>
8709
8710 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8711 predicates of operands[1]. Split the patterns for each
8712 processor variant.
8713
8714 2002-02-02 Kazu Hirata <kazu@hxi.com>
8715
8716 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8717 of operands[1] to register_operand.
8718
8719 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8720
8721 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8722 * cpphash.c (_cpp_init_hashtable): Similarly.
8723 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8724 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8725 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8726 (cpp_handle_option): Handle the new options.
8727 * cpplex.c (cpp_interpret_charconst): Use new flag.
8728 * cpplib.h (struct cpp_options): New member signed_char.
8729 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8730 (cpp_options): Handle -fsigned-char and -funsigned-char.
8731 (static_specs): Remove signed_char_spec.
8732 (do_spec1): Don't handle %c.
8733 * system.h: Poison SIGNED_CHAR_SPEC.
8734 * tradcif.y (yylex): Use flag_signed_char.
8735 * tradcpp.h (flag_signed_char): New.
8736 * tradcpp.c (flag_signed_char): New.
8737 (main): Handle new command-line options.
8738 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8739 config:
8740 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8741 * avr/avr.h: Remove old comments.
8742 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8743 (CC1_SPEC): Pass -fsigned-char if -mic*.
8744 (SIGNED_CHAR_SPEC): Remove.
8745 doc:
8746 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8747
8748 2002-02-01 Eric Christopher <echristo@redhat.com>
8749
8750 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8751 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8752 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8753 (ASM_OUTPUT_REG_POP): Ditto.
8754
8755 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8756
8757 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8758 patch.
8759
8760 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8761
8762 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8763
8764 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8765
8766 PR c/5304:
8767 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8768 unconditionally.
8769
8770 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8771
8772 * cfganal.c: Include tm_p.h.
8773 (keep_with_call_p): Fix the test that determines if a register holds
8774 the return value of a call.
8775
8776 2002-02-01 DJ Delorie <dj@redhat.com>
8777
8778 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8779 we are given conflicting registers, switch to the other one we
8780 had allocated for us.
8781 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8782 as TImode so we know when the "other" register is available.
8783
8784 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8785
8786 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8787 sparc/sparc_bi.h.
8788
8789 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8790
8791 * cfganal.c (keep_with_call_p): New function.
8792 (flow_call_edges_add): Prevent splitting a block between a call and
8793 a single-set instruction that should be kept in the same block.
8794
8795 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8796
8797 * doc/install.texi (avr): Update outdated URL.
8798
8799 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8800
8801 * config/stormy16/stormy16.md (pushqi): New.
8802 (popqi): New.
8803 (pushhi): New.
8804 (pophi): New.
8805 (movhi): Remove stack operands.
8806 (movqi): Likewise.
8807 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8808 nonimmediate_nonstack_operand.
8809 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8810 New.
8811 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8812 New.
8813
8814 2002-01-31 Jason Merrill <jason@redhat.com>
8815
8816 * Makefile.in (c-parse.c): Handle .output file.
8817 * objc/Make-lang.in (objc-parse.c): Likewise.
8818
8819 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8820
8821 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8822 the -me[lb] option is given. Don't output the default flag
8823 twice.
8824
8825 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8826
8827 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8828 the primary source file; this has not been done yet.
8829 * c-decl.c (c_expand_body): Reset input_filename from
8830 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8831
8832 2002-01-31 Kazu Hirata <kazu@hxi.com>
8833
8834 * rtlanal.c (subreg_regno_offset): Do not use
8835 SUBREG_REGNO_OFFSET.
8836 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8837 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8838
8839 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8840
8841 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8842 version rather than GNATS version in --version output.
8843
8844 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8845
8846 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8847 when copying back from a temporary.
8848
8849 2002-01-30 Richard Henderson <rth@redhat.com>
8850
8851 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8852 and new_dest are the same.
8853
8854 2002-01-30 Richard Henderson <rth@redhat.com>
8855
8856 PR opt/5076
8857 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8858 * rtl.c (note_insn_name): Update.
8859 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8860 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8861 to perform loop rotation.
8862 (expand_exit_loop_top_cond): New.
8863 * tree.h (expand_exit_loop_top_cond): Declare it.
8864 * c-semantics.c (genrtl_while_stmt): Use it.
8865 (genrtl_for_stmt): Likewise.
8866
8867 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8868
8869 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8870 arguments to 64-bit boundaries on 64-bit ABIs.
8871
8872 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8873
8874 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8875
8876 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8877
8878 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8879 invalid type.
8880
8881 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8882
8883 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8884 * config/sparc/sparc_bi.h: Remove file.
8885 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8886
8887 2002-01-30 Richard Henderson <rth@redhat.com>
8888
8889 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8890
8891 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8892
8893 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8894
8895 2002-01-30 Jason Merrill <jason@redhat.com>
8896
8897 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8898 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8899 (reg_save): Use DW_CFA_offset_extended_sf instead.
8900
8901 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8902
8903 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8904
8905 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8906 in cselib_lookup.
8907
8908 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8909
8910 * rs6000.md ("*call_value_local32"): Remove constraints.
8911 ("*call_value_local64"): Same.
8912 ("*call_value_indirect_nonlocal_aix32"): Same.
8913 ("*call_value_nonlocal_aix32"): Same.
8914 ("*call_value_indirect_nonlocal_aix64"): Same.
8915 ("*call_value_nonlocal_aix64"): Same.
8916 ("*call_value_nonlocal_sysv"): Same.
8917
8918 2002-01-29 Richard Henderson <rth@redhat.com>
8919
8920 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8921
8922 2002-01-29 Richard Henderson <rth@redhat.com>
8923
8924 * expr.c (force_operand): Ignore flag_pic for detecting pic
8925 address loads.
8926 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8927 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8928 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8929 instead of open-coded loop.
8930 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8931 be fixed when in use.
8932
8933 2002-01-29 Richard Henderson <rth@redhat.com>
8934
8935 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8936 * sched-rgn.c (propagate_deps): Update them.
8937 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8938 clobbers list when either gets too long.
8939
8940 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8941
8942 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8943 and INDEX_REGS the same as GENERAL_REGS.
8944 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8945
8946 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8947
8948 * tree.c (build_nonstandard_integer_type): Correct prototype.
8949
8950 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8951
8952 * config/s390/s390.md (movstrsico, movstrdix_64,
8953 movstrsix_31): Remove, replace by ...
8954 (movstrdi_short, movstrsi_short, movstrdi_long,
8955 movstrsi_long): ... these. New.
8956 (movstrdi, movstrsi): Adapt.
8957
8958 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8959 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8960 Remove unnecessary CC clobber.
8961 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8962 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8963
8964 (divmoddi4): Don't partially initialize TImode register.
8965
8966 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8967
8968 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8969
8970 2002-01-29 Richard Henderson <rth@redhat.com>
8971
8972 * flow.c (print_rtl_and_abort): Remove.
8973 (print_rtl_and_abort_fcn): Remove.
8974 (verify_local_live_at_start): Use dump_bb instead.
8975 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8976 (verify_wide_reg_1): Return 2 on mode test failure.
8977
8978 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8979
8980 PR c/3325, c/3326, c/2511, c/3347
8981 * c-decl.c (enum_decl_context): Remove BITFIELD.
8982 (grokdeclarator): Take bitfield width as an input.
8983 Ensure bitfields are given the correct type. Perform
8984 bitfield width validation with build_bitfield_integer_type
8985 rather than waiting for finish_struct.
8986 (grok_typename, grok_typename_in_parm_context, start_decl,
8987 push_parmdecl, grokfield, start_function): Update calls to
8988 grokdeclarator.
8989 (build_bitfield_integer_type): New function.
8990 (finish_struct): Move bitfield validation to grokdeclarator
8991 and build_bitfield_integer_type.
8992 * tree.c (build_nonstandard_integer_type): New function.
8993 * tree.h (build_nonstandard_integer_type): New prototype.
8994 objc:
8995 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8996
8997 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8998
8999 PR other/1502:
9000 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9001 don't ignore unrecognized -W* options.
9002 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9003 * cpplib.h (cpp_handle_option): Adjust prototype.
9004 * c-decl.c (c_decode_options): Pass 0 as last argument to
9005 cpp_handle_option.
9006
9007 PR c/2896:
9008 * gcc.c (cpp_unique_options): Split from cpp_options.
9009 (cpp_options): Source cpp_unique_options.
9010 (default_compilers): Use cpp_unique_options instead of cpp_options
9011 when used together with cc1_options.
9012 (static_specs): Add cpp_unique_options.
9013 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9014 when used together with cc1_options.
9015
9016 2002-01-29 Kazu Hirata <kazu@hxi.com>
9017
9018 * config/h8300/h8300-protos.h: Update the prototype of
9019 output_a_shift.
9020 * config/h8300/h8300.c (output_a_shift): Remove an unused
9021 argument 'insn'. Remove redundant code.
9022 * config/h8300/h8300.md: Adust to the new prototype of
9023 output_a_shift.
9024
9025 2002-01-29 Kazu Hirata <kazu@hxi.com>
9026
9027 * config/h8300/h8300-protos.h: Update the prototypes of
9028 emit_a_rotate and expand_a_rotate.
9029 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9030 first argument to 'enum rtx_code'.
9031 (expand_a_rotate): Likewise.
9032
9033 2002-01-28 Kazu Hirata <kazu@hxi.com>
9034
9035 * config/h8300/h8300-protos.h: Update the prototype of
9036 output_simode_bld.
9037 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9038 'log2'.
9039 * config/h8300/h8300.md: Adjust to the new prototype.
9040
9041 2002-01-28 Kazu Hirata <kazu@hxi.com>
9042
9043 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9044 redundant code.
9045
9046 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9047
9048 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9049 is a fixed register before returning pic_offset_table_rtx.
9050 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9051 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9052
9053 2002-01-28 Jason Merrill <jason@redhat.com>
9054
9055 * dwarf2.h: Sync with src version.
9056
9057 2002-01-28 Paul Koning <pkoning@equallogic.com>
9058
9059 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9060 BT_FN_VOID_PTR_VAR.
9061 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9062 * doc/extend.texi (__builtin_prefetch): Update documentation:
9063 first argument is now const void ptr.
9064
9065 2002-01-28 Kazu Hirata <kazu@hxi.com>
9066
9067 * config/h8300/h8300-protos.h: Remove an unused prototype.
9068
9069 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9070
9071 * toplev.c (lang_independent_init): Round up identifier size.
9072
9073 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9074
9075 * config.gcc: Revert previous change.
9076
9077 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9078
9079 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9080
9081 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9084 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9085 other non-elf netbsd config frags.
9086 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9087 collect2 will does that.
9088 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9089 shared-lib frobbing will work.
9090
9091 2002-01-28 Kazu Hirata <kazu@hxi.com>
9092
9093 * config/h8300/h8300.h: Fix formatting.
9094 * config/h8300/h8300.md: Likewise.
9095
9096 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9097
9098 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9099 the old, removed AAA_standards fix.
9100 * fixinc/fixincl.x: Rebuilt.
9101
9102 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9103
9104 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9105 atexit call in crtbegin, hooked in after call to frame_dummy;
9106 register EH before registering __fini__start.
9107
9108 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9109
9110 * config/rs6000/altivec.h: Remove spurious semicolons.
9111
9112 2002-01-27 Kazu Hirata <kazu@hxi.com>
9113
9114 * config/h8300/h8300.md: Replace dead bit extraction patterns
9115 with ones that work.
9116
9117 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9118
9119 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9120 if not STRICT_ALIGNMENT.
9121 * rtl.h (MEM_ALIGN): Likewise.
9122
9123 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9124
9125 * doc/invoke.texi (-fdump-translation-unit): Revert this
9126 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9127
9128 2002-01-27 Kazu Hirata <kazu@hxi.com>
9129
9130 * config/h8300/h8300.md (define_constants): New.
9131 (anonymous patterns) Use defined constants appropriately.
9132
9133 2002-01-27 Kazu Hirata <kazu@hxi.com>
9134
9135 * config/h8300/h8300.c (function_arg): Remove redundant code.
9136
9137 2002-01-26 Richard Henderson <rth@redhat.com>
9138
9139 * sched-deps.c (reg_pending_uses_head): New.
9140 (reg_pending_barrier): Rename from reg_pending_sets_all.
9141 (find_insn_list): Don't mark inline.
9142 (find_insn_mem_list): Remove.
9143 (add_dependence_list, add_dependence_list_and_free): New.
9144 (flush_pending_lists): Replace only_write param with separate
9145 for_read and for_write parameters. Update all callers. Use
9146 add_dependence_list_and_free.
9147 (sched_analyze_1): Do not add reg dependencies here; just set
9148 the pending bits. Use add_dependence_list.
9149 (sched_analyze_2): Likewise.
9150 (sched_analyze_insn): Replace schedule_barrier_found with
9151 reg_pending_barrier. Add all dependencies for pending reg
9152 uses, sets, and clobbers.
9153 (sched_analyze): Don't add reg dependencies for calls, just
9154 set pending bits. Use regs_invalidated_by_call. Treat
9155 sched_before_next_call as a normal list, not a fake insn.
9156 (init_deps): No funny init for sched_before_next_call.
9157 (free_deps): Free pending mems lists. Don't zero reg_last.
9158 (init_deps_global): Init reg_pending_uses.
9159 (finish_deps_global): Free it.
9160 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9161 (find_insn_mem_list): Remove.
9162 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9163 (propagate_deps): Use them. Zero temp mem lists.
9164
9165 2002-01-26 Richard Henderson <rth@redhat.com>
9166
9167 * Makefile.in (CRTSTUFF_CFLAGS): New.
9168 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9169 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9170 crtstuff.c instead of alpha assembly version.
9171 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9172 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9173 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9174 (__do_global_dtors_aux): Mark used.
9175 (frame_dummy, __do_global_ctors_aux): Mark used.
9176 (fini_dummy, init_dummy): Remove.
9177
9178 * config/alpha/crtbegin.asm: Remove file.
9179 * config/alpha/crtend.asm: Remove file.
9180 * config/alpha/t-crtbe: Remove file.
9181 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9182 (LINK_EH_SPEC): New.
9183
9184 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9185 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9186 calling constructors.
9187 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9188
9189 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9190 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9191 CRT_END_INIT_DUMMY hack.
9192 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9193 FORCE_{INIT,FINI}_SECTION_ALIGN.
9194
9195 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9196 FORCE_{INIT,FINI}_SECTION_ALIGN.
9197
9198 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9199 invocation sequence.
9200 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9201
9202 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9203 (FORCE_CODE_SECTION_ALIGN): New.
9204
9205 2002-01-26 Richard Henderson <rth@redhat.com>
9206
9207 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9208
9209 2002-01-26 Richard Henderson <rth@redhat.com>
9210
9211 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9212 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9213
9214 2002-01-26 Kazu Hirata <kazu@hxi.com>
9215
9216 * config/h8300/h8300.md: Remove bit extraction patterns that
9217 cannot be triggered.
9218 Restrict each bit extraction pattern to a variant on which the
9219 pattern is tested.
9220
9221 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9222
9223 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9224
9225 2002-01-26 Kazu Hirata <kazu@hxi.com>
9226
9227 * config/h8300/h8300.md: Remove bit test patterns that cannot
9228 be triggered.
9229 Restrict each bit test pattern to a variant on which the
9230 pattern is tested.
9231
9232 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9233
9234 * builtins.c (expand_builtin_strncat): Remove redundant check for
9235 INTEGER_CST.
9236
9237 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9238
9239 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9240 default setting.
9241 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9242 existing setting.
9243
9244 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9245
9246 * dbxout.c (dbxout_init): Use assemble_name rather than just
9247 stripping off the first character.
9248 (dbxout_source_file): Likewise.
9249
9250 2002-01-25 DJ Delorie <dj@redhat.com>
9251
9252 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9253 using rtx_equal_p, not by comparing pointers.
9254
9255 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9256
9257 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9258 for PIC_OFFSET_TABLE_REGNUM.
9259 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9260
9261 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9262
9263 * config.gcc (x86_64-*-freebsd*): New target.
9264 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9265 value.
9266 (i[34567]86-*-freebsd*): Don't include svr4.h.
9267 * config/i386/freebsd64.h: New file.
9268
9269 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9270
9271 * config/alpha/x-vms (version): Make static.
9272
9273 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9274 in previous checkin.
9275
9276 * Makefile.in (install-headers-cp): New target.
9277 * config.gcc (alpha-dec-*vms*): Install headers with
9278 install-headers-cp
9279
9280 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9281
9282 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9283 avoid it's copies.
9284
9285 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9286
9287 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9288 of compare_tree_int.
9289 (expand_builtin_strncat): Likewise.
9290 * c-decl.c (finish_struct): Use tree_low_cst.
9291 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9292 * tree.c (compare_tree_int): Likewise.
9293
9294 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9295
9296 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9297 adjustments even if they are implemented by more than two insns.
9298
9299 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9300
9301 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9302 * df.h (struct ref): Kill B.
9303 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9304
9305 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9306 * flow.c (propagate_one_insn): Use it.
9307 (mark_used_regs): Handle NIL.
9308
9309 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9310
9311 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9312 to help folding.
9313
9314 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9315
9316 * rs6000.md (prefetch): Make address V4SI mode so that the address
9317 is restricted to legitimate form for instruction.
9318
9319 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9320
9321 * doc/install.texi (xtensa-*-elf): New target.
9322 (xtensa-*-linux*): New target.
9323 * doc/contrib.texi: Add myself.
9324
9325 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9326
9327 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9328 purpose register to hold an SImode (or smaller) value.
9329
9330 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9331
9332 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9333 registry only.
9334 * crtstuff.c: Likewise.
9335
9336 2002-01-25 Kazu Hirata <kazu@hxi.com>
9337
9338 * config/h8300/h8300.md (negation patterns): Tighten
9339 predicates to register_operand.
9340
9341 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9342
9343 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9344 mode, not Pmode.
9345
9346 * builtins.c (expand_builtin_prefetch): Same.
9347
9348 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9349
9350 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9351 modes.
9352
9353 2002-01-24 Kazu Hirata <kazu@hxi.com>
9354
9355 * config/h8300/h8300.c (print_operand): Remove support for
9356 operand character 'A'.
9357 * config/h8300/h8300.md (three anonymous patterns): Replace
9358 operand character 'A' with either 'T' or 'S'.
9359
9360 2002-01-24 Kazu Hirata <kazu@hxi.com>
9361
9362 * config/h8300/h8300.c (print_operand): Remove support for
9363 operand character 'U'.
9364
9365 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9366
9367 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9368
9369 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9370
9371 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9372 values to be assigned to the stack pointer.
9373
9374 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9375
9376 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9377 to const_double needs to be done right for big-endian systems.
9378
9379 2002-01-24 Jason Merrill <jason@redhat.com>
9380
9381 PR c++/2432
9382 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9383 to can_throw_internal.
9384
9385 2002-01-23 Richard Henderson <rth@redhat.com>
9386
9387 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9388 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9389
9390 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9391
9392 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9393 (symGOT2reg): Use them, then set as GOT value as unchanging.
9394 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9395 as a temporary, if possible.
9396 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9397 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9398
9399 2002-01-23 Kazu Hirata <kazu@hxi.com>
9400
9401 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9402 accept to accept 0x80 as operands[2].
9403
9404 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9405
9406 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9407
9408 2002-01-23 Richard Henderson <rth@redhat.com>
9409
9410 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9411
9412 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9413
9414 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9415 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9416 an attribute.
9417
9418 2002-01-23 Richard Henderson <rth@redhat.com>
9419
9420 * expr.c (move_by_pieces_1): Extend size before negation.
9421
9422 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9423 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9424 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9425 * config/m68k/t-m68kelf: Likewise.
9426
9427 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9428
9429 * config/xtensa/elf.h: New file.
9430 * config/xtensa/lib1funcs.asm: New file.
9431 * config/xtensa/lib2funcs.S: New file.
9432 * config/xtensa/linux.h: New file.
9433 * config/xtensa/t-xtensa: New file.
9434 * config/xtensa/xtensa-config.h: New file.
9435 * config/xtensa/xtensa-protos.h: New file.
9436 * config/xtensa/xtensa.c: New file.
9437 * config/xtensa/xtensa.h: New file.
9438 * config/xtensa/xtensa.md: New file.
9439 * config.gcc (xtensa-*-elf*): New target.
9440 (xtensa-*-linux*): New target.
9441 * cse.c (canon_hash): Compare rtx pointers instead of register
9442 numbers. This is required for the Xtensa port.
9443 * integrate.c (copy_insn_list): Handle case where the static
9444 chain is in memory and the memory address has to be copied to
9445 a register.
9446 * doc/invoke.texi (Option Summary): Add Xtensa options.
9447 (Xtensa Options): New node.
9448 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9449
9450 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9451
9452 * diagnostic.c (internal_error): Do ICE suppression only
9453 when ENABLE_CHECKING is not defined.
9454
9455 * c-typeck.c (require_complete_type): Return error_mark_node
9456 if type is error_mark_node.
9457
9458 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9459
9460 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9461 -Os and issue a warning.
9462
9463 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9464
9465 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9466 current (lack of) need for host configuration by hand.
9467
9468 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9469 references. Documentation of some target macros moved from
9470 hostconfig.texi to tm.texi.
9471
9472 2002-01-23 Will Cohen <wcohen@redhat.com>
9473
9474 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9475 defined.
9476
9477 2002-01-23 Kazu Hirata <kazu@hxi.com>
9478
9479 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9480 operand[3].
9481
9482 2002-01-23 Jason Merrill <jason@redhat.com>
9483
9484 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9485
9486 * function.c (assign_parms): Don't put args of inline functions
9487 into registers when not optimizing.
9488
9489 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9490
9491 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9492 (prologue_use): New pattern.
9493 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9494 preference to gen_rtx_USE.
9495 (thumb_expand_prologue): Use gen_prologue_use in preference to
9496 gen_rtx_USE.
9497 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9498 gen_rtx_USE.
9499
9500 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9501
9502 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9503
9504 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9505
9506 PR c/3504
9507 * doc/extend.texi: Correct documentation of __alignof__.
9508
9509 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9510
9511 * params.h: Rename arguments of DEFPARAM so that it will be
9512 recognized as a translation keyword.
9513
9514 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9515
9516 * extend.texi: Document altivec functions.
9517 Fix N-bit adjectives in X86 builtin documentation.
9518
9519 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9520
9521 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9522 auto_inc_dec values.
9523
9524 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9525
9526 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9527 after backslash.
9528 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9529
9530 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9531
9532 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9533
9534 2002-01-22 Richard Henderson <rth@redhat.com>
9535
9536 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9537 copy_insn not copy_rtx.
9538
9539 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9540
9541 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9542 "nonzero" as that might add "1" bits. Ensure "constop" is
9543 properly sign extened.
9544 (force_to_mode): Tweak for sign extended constop.
9545
9546 2002-01-22 Richard Henderson <rth@redhat.com>
9547
9548 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9549 for_each_rtx instead of assuming we're already looking at the MEM.
9550 (split_small_symbolic_mem_operand): Likewise.
9551 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9552 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9553
9554 2002-01-22 Richard Henderson <rth@redhat.com>
9555
9556 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9557 sequence number for the literal.
9558 (divmoddi_internal_er): Likewise.
9559
9560 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9561
9562 PR java/4972
9563 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9564 in LIBICONV variable.
9565 * configure: Regenerated.
9566
9567 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9568
9569 * dependence.c (build_def_use): Remove array_idx.
9570
9571 * dwarfout.c (last_filename): Remove.
9572 (output_compile_unit_die): Remove last_filename.
9573
9574 2002-01-22 Roger Sayle <roger@eyesopen.com>
9575 Richard Henderson <rth@redhat.com>
9576
9577 PR opt/3640
9578 * fold-const.c (fold): Optimize unsigned comparisons against
9579 UINT_MAX (and similar unsigned constants).
9580
9581 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9582
9583 * Makefile.in (loop.o): Depend on OPTABS_H.
9584 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9585 against the predicate.
9586
9587 PR target/5379
9588 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9589 for the address operand.
9590
9591 2002-01-22 Richard Henderson <rth@redhat.com>
9592
9593 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9594
9595 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9596
9597 PR other/5450
9598 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9599 preprocessor flags.
9600
9601 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9602
9603 * config.gcc (x86_64-*-netbsd*): New target.
9604 * config/i386/netbsd64.h: New file.
9605
9606 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9607
9608 * regrename.c (kill_value): Fix typo.
9609
9610 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9611
9612 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9613
9614 * config/rs6000/rs6000.h: Same.
9615
9616 * function.c (instantiate_virtual_regs): Remove
9617 STARTING_FRAME_PHASE.
9618 (assign_stack_local_1): Same.
9619 Calculate frame phase.
9620
9621 2002-01-22 Nick Clifton <nickc@redhat.com>
9622
9623 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9624 variable declaration to outer scope in order to simplify
9625 future extensions.
9626 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9627 arm_hard_regno_mode_ok.
9628 * config/arm/arm-protos.h: Add a prototype for
9629 arm_hard_regno_mode_ok.
9630 * config/arm/arm.c (soft_df_operand): Remove now redundant
9631 check for DImode values using IP_REGNUM.
9632 (nonimmediate_soft_df_operand): Remove now redundant check for
9633 DImode values using IP_REGNUM.
9634 (arm_hard_regno_mode_ok): New function. New check: make sure
9635 that DImode values are not stored in IP_REGNUM.
9636
9637 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9638 note with a USE.
9639 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9640
9641 2002-01-22 Jason Merrill <jason@redhat.com>
9642
9643 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9644 consistency if this COMPOUND_STMT is scoped.
9645
9646 2002-01-22 Kazu Hirata <kazu@hxi.com>
9647
9648 * predict.c: Fix formatting.
9649 * print-tree.c: Likewise.
9650 * protoize.c: Likewise.
9651 * real.h: Likewise.
9652 * rtl.h: Likewise.
9653 * sbitmap.h: Likewise.
9654 * scan.c: Likewise.
9655 * sched-deps.c: Likewise.
9656 * sched-vis.c: Likewise.
9657 * sdbout.c: Likewise.
9658 * sibcall.c: Likewise.
9659 * ssa.c: Likewise.
9660 * ssa-ccp.c: Likewise.
9661 * ssa-dce.c: Likewise.
9662 * stmt.c: Likewise.
9663 * stor-layout.c: Likewise.
9664 * system.h: Likewise.
9665
9666 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9667
9668 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9669 if fits in bounds of base type.
9670
9671 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9672 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9673 (add_bound_info, default): If can't find a context, make a
9674 SAVE_EXPR.
9675 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9676
9677 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9678
9679 * c-typeck.c (parser_build_binary_op): If result from
9680 build_binary_op is ERROR_MARK just return error_mark_node without
9681 further processing.
9682
9683 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9684
9685 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9686 Split a.out-specific bits into...
9687 * config/netbsd-aout.h: ...this.
9688 * config/netbsd-elf.h: New file.
9689 * config/alpha/netbsd-elf.h: Remove.
9690 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9691 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9692 (STARTFILE_SPEC): Remove redundant definition.
9693 (ENDFILE_SPEC): Likewise.
9694 (LINK_SPEC): Likewise.
9695 (CPP_SPEC): Likewise.
9696 (ASM_SPEC): Likewise.
9697 (LIB_SPEC): Likewise.
9698 (SWITCH_TAKES_ARG): Likewise.
9699 (TARGET_MEM_FUNCTIONS): Likewise.
9700 (CPP_PREDEFINES): Redefine.
9701 (ASM_FINAL_SPEC): Remove redefinition.
9702 (ASM_COMMENT_START): Redefine.
9703 (FUNCTION_PROFILER): Define.
9704 (TARGET_VERSION): Redefine.
9705 Comment and formatting cleanup.
9706 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9707 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9708 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9709 big- or little-endian.
9710 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9711 * config.gcc (*-*-netbsd*): Add definitions common to all
9712 NetBSD configs.
9713 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9714 gnu_ld definitions. Add netbsd-elf.h to and remove
9715 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9716 tmake_file, and don't lose previous tmake_file contents.
9717 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9718 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9719 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9720 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9721 (mipsel-*-netbsd*): Rename this to...
9722 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9723 mips/little.h to tm_file for mips*el-*.
9724 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9725 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9726 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9727
9728 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9729
9730 * pa-protos.h (reg_before_reload_operand): New function prototype.
9731 * pa.c (reg_before_reload_operand): New function implementation.
9732 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9733 contraints to "*m".
9734
9735 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9736
9737 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9738
9739 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9740
9741 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9742 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9743 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9744 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9745 (ENDFILE_SPEC): Undefine.
9746 (STARTFILE_SPEC): Redefine for PA.
9747
9748 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9749
9750 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9751
9752 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9753
9754 * config.gcc: Add entries to supported PowerPC --with-cpu
9755 types.
9756
9757 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9758
9759 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9760 true for 64-bit mode only SSE registers in 32-bit mode.
9761
9762 2002-01-21 Kazu Hirata <kazu@hxi.com>
9763
9764 * unwind-dw2.c: Fix formatting.
9765 * unwind-dw2-fde.c: Likewise.
9766 * unwind-dw2-fde.h: Likewise.
9767 * unwind-pe.h: Likewise.
9768 * varasm.c: Likewise.
9769 * varray.h: Likewise.
9770
9771 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9772
9773 Remove workaround for register stack overwrite bug in mmix.
9774 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9775 support for TARGET_REG_STACK_FILL_BUG.
9776 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9777 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9778 Delete.
9779 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9780 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9781 -mno-reg-stack-fill-bug-workaround.
9782 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9783 machine member has_call_without_parameters.
9784 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9785 -mreg-stack-fill-bug-workaround and
9786 -mno-reg-stack-fill-bug-workaround.
9787 (MMIX Options): Ditto.
9788
9789 2002-01-21 Kazu Hirata <kazu@hxi.com>
9790
9791 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9792 as appropriate.
9793 Remove redundant code.
9794
9795 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9796
9797 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9798 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9799 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9800 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9801 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9802 out target macro definitions and non-target-specific comments
9803 mostly taken from old versions of the manual.
9804
9805 2002-01-20 Kazu Hirata <kazu@hxi.com>
9806
9807 * config/h8300/h8300.h: Fix comment formatting.
9808 * config/ia64/aix.h: Likewise.
9809 * config/ia64/ia64-protos.h: Likewise.
9810 * config/ia64/ia64.c: Likewise.
9811 * config/ia64/ia64.h: Likewise.
9812 * config/ia64/ia64intrin.h: Likewise.
9813 * config/ia64/linux.h: Likewise.
9814 * config/ia64/unwind-aix.c: Likewise.
9815 * config/ia64/unwind-ia64.c: Likewise.
9816
9817 2002-01-20 Kazu Hirata <kazu@hxi.com>
9818
9819 * config/h8300/h8300.c: Revise comments about shift code.
9820
9821 2002-01-20 Kazu Hirata <kazu@hxi.com>
9822
9823 * config/h8300/h8300.c (function_arg): Update a comment.
9824
9825 2002-01-20 Kazu Hirata <kazu@hxi.com>
9826
9827 * config/h8300/h8300.md: Update the comments at the beginning
9828 of the file.
9829
9830 2002-01-20 Kazu Hirata <kazu@hxi.com>
9831
9832 * config/i370/i370.c: Fix comment formatting.
9833 * config/i370/i370.h: Likewise.
9834 * config/i370/i370.md: Likewise.
9835 * config/i370/linux.h: Likewise.
9836
9837 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9838
9839 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9840
9841 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9842 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9843 in incomplete case.
9844
9845 2002-01-20 Graham Stott <grahams@redhat.com>
9846
9847 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9848
9849 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9850
9851 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9852
9853 2002-01-19 Tom Rix <trix@redhat.com>
9854
9855 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9856
9857 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9858
9859 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9860
9861 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9862 STARTING_FRAME_PHASE.
9863 (STARTING_FRAME_PHASE): New.
9864 (instantiate_virtual_regs): Check saneness of
9865 STARTING_FRAME_PHASE.
9866
9867 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9868
9869 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9870
9871 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9872
9873 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9874
9875 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9876 be used for bootstrapping GCC 3.0.
9877
9878 2002-01-18 Kazu Hirata <kazu@hxi.com>
9879
9880 * config/h8300/h8300.md: Fix an insn length.
9881
9882 2002-01-18 Kazu Hirata <kazu@hxi.com>
9883
9884 * bitmap.h: Fix comment formatting.
9885 * combine.c: Likewise.
9886 * cppfiles.c: Likewise.
9887 * c-pragma.h: Likewise.
9888 * c-typeck.c: Likewise.
9889 * df.c: Likewise.
9890 * dwarf2out.c: Likewise.
9891 * function.c: Likewise.
9892 * gcc.c: Likewise.
9893 * genattrtab.c: Likewise.
9894 * gthr-win32.h: Likewise.
9895 * haifa-sched.c: Likewise.
9896 * predict.c: Likewise.
9897 * rtlanal.c: Likewise.
9898 * rtl.h: Likewise.
9899 * unwind-dw2-fde.h: Likewise.
9900 * unwind-pe.h: Likewise.
9901 * vmsdbgout.c: Likewise.
9902
9903 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9904
9905 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9906 if type_required and passed decl.
9907
9908 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9909
9910 * config.gcc (cpu_type): Include altivec.h in powerpc
9911 extra_headers.
9912 Same for darwin.
9913
9914 * config/rs6000/altivec.h: New.
9915
9916 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9917
9918 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9919 handling information.
9920 * doc/trouble.texi (Interoperation): Add libstdc++ information
9921 for AIX.
9922 (Misunderstandings): Add template instantiation and static template
9923 member information for AIX.
9924
9925 2002-01-17 Jason Merrill <jason@redhat.com>
9926
9927 * dbxout.c (dbxout_type): Support const and volatile.
9928
9929 * except.c (add_partial_entry): Remove backwards compatibility code.
9930 (end_protect_partials): Likewise.
9931
9932 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9933
9934 * config/ia64/ia64.md (prologue_use): New.
9935 * config/ia64/ia64.c (ia64_expand_prologue): Use
9936 gen_prologue_use instead of gen_rtx_USE.
9937 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9938 as CODE_FOR_pred_rel_mutex.
9939 (ia64_sched_reorder2): Likewise.
9940
9941 2002-01-16 Eric Christopher <echristo@redhat.com>
9942
9943 * config/mips/r3900.h: Reformat.
9944 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9945 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9946 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9947 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9948 * config/mips/t-elf: Remove mips3 multilib.
9949
9950 2002-01-16 H.J. Lu <hjl@gnu.org>
9951
9952 * config/mips/linux.h: Include "mips/abi64.h".
9953
9954 2002-01-16 H.J. Lu <hjl@gnu.org>
9955
9956 * config/mips/t-linux: New.
9957
9958 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9959
9960 * config/mips/linux.h: Don't include "gofast.h".
9961 (INIT_SUBTARGET_OPTABS): Removed.
9962
9963 2002-01-16 Kazu Hirata <kazu@hxi.com>
9964
9965 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9966 output_a_shift.
9967 * config/h8300/h8300.c: Likewise.
9968 * config/h8300/h8300.md: Likewise.
9969
9970 2002-01-16 Kazu Hirata <kazu@hxi.com>
9971
9972 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9973 spaces after an opcode name.
9974 (pushqi1_h8300hs): Likewise.
9975 (pushhi1_h8300hs): Likewise.
9976
9977 2002-01-16 Kazu Hirata <kazu@hxi.com>
9978
9979 * doc/extend.texi: Replace "option" with "attribute"
9980 appropriately.
9981
9982 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9983
9984 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9985 (and:DI () (const_int -8)).
9986 (split_small_symbolic_mem_operand): Split
9987 (mem (and:DI () (const_int -8)).
9988
9989 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9990
9991 PR target/5309:
9992 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9993 same way as TYPE_IMUL.
9994 (ultrasparc_sched_reorder): Likewise.
9995 * config/sparc/sparc.md (type): Add comment to update
9996 ultrasparc_sched_reorder when making changes.
9997
9998 2002-01-16 Kazu Hirata <kazu@hxi.com>
9999
10000 * doc/invoke.texi: Change the dump file name of block
10001 reordering pass from 28.bbro to 29.bbro.
10002 Mention -dk option.
10003
10004 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10005
10006 * i386.md (minsf splitter): Fix pasto.
10007
10008 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10009
10010 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10011 to frame pointer initialisation instruction.
10012 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10013 initialisation instruction.
10014 (soft_df_operand): Do not accept the IP register.
10015 (nonimmediate_soft_df_operand): Do not accept the IP register.
10016
10017 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10018
10019 PR target/5357:
10020 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10021 MASK_V8 being both set.
10022
10023 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10024
10025 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10026 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10027 config/s390/s390.md (call, call_value): Add GOT register to
10028 CALL_INSN_FUNCTION_USAGE where needed.
10029 (call_exp, call_value_exp): New.
10030
10031 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10032
10033 * config/arm/arm.c: General formatting tidy up.
10034
10035 2002-01-16 Graham Stott <grahams@redhat.com>
10036
10037 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10038 cast and when casting an integer literal to "rtx" pointer.
10039 (expand_call): Likewise.
10040 * flow.c (try_pre_increment): Likewise.
10041 (find_use_as_address): Likewise.
10042 * integrate.c (expand_iline_function): Likewise.
10043 * regmove.c (try_auto_increment): Likewise.
10044
10045 2002-01-16 Graham Stott <grahams@redhat.com>
10046
10047 * sched-rgn.c (passed): Use sbitmap_free.
10048 (header): Likewise.
10049 (inner): Likewise.
10050 (in_queue): Likewise.
10051 (in_stack): Likewise.
10052
10053 2002-01-15 Eric Christopher <echristo@redhat.com>
10054
10055 * flow.c (propagate_one_insn): Change to use fatal_insn.
10056
10057 2002-01-15 Kazu Hirata <kazu@hxi.com>
10058
10059 * expmed.c (extract_fixed_bit_field): Remove unused code.
10060 * system.h: Poison SLOW_ZERO_EXTEND.
10061 * doc/tm.texi: Remove.
10062 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10063 * config/arm/arm.h: Likewise.
10064 * config/avr/avr.h: Likewise.
10065 * config/clipper/clipper.h: Likewise.
10066 * config/convex/convex.h: Likewise.
10067 * config/d30v/d30v.h: Likewise.
10068 * config/dsp16xx/dsp16xx.h: Likewise.
10069 * config/elxsi/elxsi.h: Likewise.
10070 * config/fr30/fr30.h: Likewise.
10071 * config/h8300/h8300.h: Likewise.
10072 * config/i370/i370.h: Likewise.
10073 * config/i386/i386.h: Likewise.
10074 * config/m68k/m68k.h: Likewise.
10075 * config/mips/mips.h: Likewise.
10076 * config/ns32k/ns32k.h: Likewise.
10077 * config/pdp11/pdp11.h: Likewise.
10078 * config/pj/pj.h: Likewise.
10079 * config/s390/s390.h: Likewise.
10080 * config/sh/sh.h: Likewise.
10081 * config/stormy16/stormy16.h: Likewise.
10082 * config/v850/v850.h: Likewise.
10083 * config/vax/vax.h: Likewise.
10084 * config/we32k/we32k.h: Likewise.
10085
10086 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10087
10088 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10089 (altivec_lvsl): Change constraint to b.
10090 (altivec_lvsr): Same.
10091 (altivec_lvebx): Same.
10092 (altivec_lvehx): Same.
10093 (altivec_lvewx): Same.
10094 (altivec_lvxl): Same.
10095 (altivec_lvx): Same.
10096 (altivec_stvx): Add parallel.
10097 (altivec_stvxl): Same.
10098 (altivec_stvehx): Same.
10099 (altivec_stvebx): Same.
10100 (altivec_stvebx): Same.
10101
10102 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10103
10104 * config.gcc: Change altivec.h to altivec-defs.h.
10105
10106 * config/rs6000/altivec.h: Delete.
10107
10108 * config/rs6000/altivec-defs.h: Add.
10109
10110 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10111
10112 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10113 and UMOD modes.
10114
10115 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10116 less than or equal to eight bytes.
10117
10118 * vax.md (andsi3): Remove constraints and change SET destination
10119 operand type to nonimmediate_operand.
10120 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10121 when it is a CONST_INT.
10122
10123 2002-01-15 Jason Merrill <jason@redhat.com>
10124
10125 * c-common.def (FILE_STMT): New code.
10126 * c-common.c (statement_code_p): It's a statement.
10127 * c-common.h (stmt_tree_s): Add x_last_filename.
10128 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10129 (last_expr_filename): New macro.
10130 * c-semantics.c (begin_stmt_tree): Initialize it.
10131 (add_stmt): If the filename changed, also insert a
10132 FILE_STMT.
10133 (expand_stmt): Handle seeing one.
10134
10135 2002-01-15 Eric Christopher <echristo@redhat.com>
10136
10137 * flow.c (propagate_one_insn): Add error message and print out
10138 insn for debugging.
10139
10140 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10141
10142 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10143 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10144 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10145 TRAMPOLINE_ALIGNMENT.
10146 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10147 to be in bits.
10148 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10149 PCC_BITFIELD_TYPE_MATTERS.
10150 * config/interix.h (STDC_VALUE): Remove. Use
10151 STDC_0_IN_SYSTEM_HEADERS.
10152 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10153 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10154 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10155
10156 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10157
10158 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10159 not work on this platform currently.
10160
10161 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10162
10163 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10164 readonly_warning in _().
10165
10166 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10167
10168 * gcc.c (delete_if_ordinary): Backout previous change.
10169
10170 2002-01-15 Kazu Hirata <kazu@hxi.com>
10171
10172 * config/h8300/h8300.c (print_operand): Remove support for
10173 unused operand characters.
10174
10175 * read-rtl.c: Fix formatting.
10176 * real.c: Likewise.
10177 * recog.c: Likewise.
10178 * regclass.c: Likewise.
10179 * regmove.c: Likewise.
10180 * reg-stack.c: Likewise.
10181 * reload1.c: Likewise.
10182 * rtlanal.c: Likewise.
10183
10184 2002-01-15 Kazu Hirata <kazu@hxi.com>
10185
10186 * config/i386/i386.c: Fix formatting.
10187
10188 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10189
10190 * c-typeck.c (process_init_element): Don't save_expr
10191 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10192
10193 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10194
10195 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10196 emit optional traceback table if optimize_size or TARGET_ELF.
10197 * config/rs6000/rs6000.md (prefetch): New.
10198
10199 2002-01-15 Andreas Jaeger <aj@suse.de>
10200
10201 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10202
10203 2002-01-15 Kazu Hirata <kazu@hxi.com>
10204
10205 * mips-tfile.c: Fix formatting.
10206
10207 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10208
10209 * unroll.c (final_reg_note_copy): Fix previous commit.
10210
10211 2002-01-14 Kazu Hirata <kazu@hxi.com>
10212
10213 * config/h8300/h8300-protos.h: Remove the prototype for
10214 eq_operator.
10215 * config/h8300/h8300.c (eq_operator): Remove.
10216
10217 2002-01-14 Richard Henderson <rth@redhat.com>
10218
10219 * config/i386/i386.md (prefetch): Tidy.
10220 (prefetch_3dnow): Fix locality operand.
10221
10222 2002-01-14 Richard Henderson <rth@redhat.com>
10223
10224 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10225 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10226
10227 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10228
10229 * reload1.c (reload_combine): Pass reg_sum replacement through
10230 copy_rtx in loop performing multiple changes.
10231
10232 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10233
10234 * except.c (remove_unreachable_regions): New.
10235 (free_eh_status): Clear exception_handler_labels.
10236 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10237 (find_exception_handler_labels): Don't add the same label more than
10238 once.
10239 (remove_exception_handler_label): Don't die if
10240 find_exception_handler_labels hasn't been called for the current
10241 function yet.
10242
10243 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10244
10245 * toplev.c (rest_of_compilation): Rebuild jump labels after
10246 gcse.
10247
10248 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10249
10250 * doc/extend.texi: Move documentation of X86 built-in functions
10251 here.
10252 * doc/invoke.texi: From here.
10253 * doc/sourcebuild.texi: Document location of documentation for
10254 machine built-in functions.
10255
10256 2002-01-13 Christopher Faylor <cgf@redhat.com>
10257
10258 * cppfiles.c (TEST_THRESHOLD): New macro.
10259 (SHOULD_MMAP): Ditto.
10260 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10261 be used.
10262
10263 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10264
10265 * unroll.c (final_reg_note_copy): Properly handle
10266 REG_LABEL
10267 (unroll_loops): Fix LOOP_CONDITION heuristics.
10268
10269 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10270
10271 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10272 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10273
10274 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10275
10276 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10277 threaded loop.
10278
10279 2002-01-14 Tom Rix <trix@redhat.com>
10280
10281 * config/rs6000/rs6000.md: Fix typo with sradi.
10282
10283 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10284
10285 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10286 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10287 (clrstrdi, clrstrsi): Adapt callers.
10288
10289 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10290
10291 (movti splitter): Never use register 0 as base register.
10292
10293 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10294
10295 * combine.c (simplify_shift_const): Always generate new rtx
10296 for shift expression instead of reusing given expression.
10297
10298 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10299
10300 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10301 alpha_legitimize_address unless mode is Pmode.
10302
10303 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10304
10305 * doc/md.texi (Modifiers): Document the '*' constraint for the
10306 user.
10307
10308 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10309 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10310 for xstormy16 too.
10311
10312 2002-01-13 Richard Henderson <rth@redhat.com>
10313
10314 * reload.c (find_reloads): Use a hard reg destination as reload reg
10315 for an input reload of the source.
10316
10317 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10318
10319 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10320 more generic.
10321
10322 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10323
10324 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10325 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10326
10327 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10328
10329 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10330
10331 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10332
10333 2002-01-12 Tom Rix <trix@redhat.com>
10334
10335 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10336 TARGET_POWERPC64.
10337
10338 2002-01-12 Richard Henderson <rth@redhat.com>
10339
10340 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10341
10342 * doc/invoke.texi: Update Alpha options.
10343
10344 * doc/invoke.texi: Update i386 built-in function lists.
10345
10346 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10347
10348 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10349 referencing outside.
10350
10351 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10352
10353 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10354 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10355 offsets, and change line folding.
10356 * optabs.c (expand_binop): Remove warnings.
10357 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10358
10359 2002-01-12 Graham Stott <grahams@redhat.com>
10360
10361 * attribs.c (handle_deprecated_attribute): constify WHAT.
10362 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10363 dangling else warning and constify WHAT.
10364 * except.h (struct function, struct inline_remap): Move
10365 struct tag forward defs before all prototypes.
10366 (duplicate_eh_regions): Whitespace.
10367
10368 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10369
10370 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10371 MODE_BASE_REG_CLASS.
10372 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10373
10374 2002-01-12 Richard Henderson <rth@redhat.com>
10375
10376 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10377 (ix86_expand_vector_move): New.
10378 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10379 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10380 Remove old prefetch builtins. Special case the logicals removed above.
10381 (ix86_expand_builtin): Likewise.
10382 (safe_vector_operand): Use V4SFmode, not TImode.
10383 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10384 (ix86_expand_timode_binop_builtin): New.
10385 * config/i386/i386-protos.h: Update.
10386 * config/i386/i386.h (enum ix86_builtins): Update.
10387 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10388 Use ix86_expand_vector_move in vector move expanders.
10389 (movti_internal, movti_rex64): Add xorps alternative.
10390 (sse_clrv4sf): Rename and adjust from sse_clrti.
10391 (prefetch): Don't work so hard.
10392 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10393 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10394 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10395
10396 2002-01-11 Richard Henderson <rth@redhat.com>
10397
10398 * config/i386/mmintrin.h: New file.
10399 * config/i386/xmmintrin.h: New file.
10400 * config.gcc (i?86-*-*): Add extra_headers.
10401 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10402 truncation codes.
10403 (simplify_binary_operation): Handle saturating arithmetic codes.
10404 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10405 not the lowpart subreg.
10406 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10407 on error.
10408 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10409
10410 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10411
10412 * conflict.c (conflict_graph_compute): Free regsets when finished.
10413 * ssa.c (compute_coalesced_reg_partition): Likewise.
10414
10415 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10416
10417 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10418 every where we allocate a register.
10419
10420 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10421
10422 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10423 * lcm.c (compute_earliest, compute_farthest): Likewise.
10424
10425 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10426
10427 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10428
10429 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10430
10431 * doc/rtl.texi (Insns): Fix 2 typos.
10432
10433 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10434
10435 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10436 options. Use @table @gcctabopt for MMIX options. Add index
10437 entries for MMIX options. Start new paragraph with first
10438 heading of the machine-dependent options.
10439
10440 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10441
10442 PR other/5299
10443 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10444 * combine.c (force_to_mode): Same.
10445 * reload1.c (clear_reload_reg_in_use): Same.
10446
10447 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10448
10449 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10450 and 'subtargets'.
10451
10452 2002-01-11 Andreas Jaeger <aj@suse.de>,
10453 Brad Lucier <lucier@math.purdue.edu>
10454
10455 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10456 mcpu.
10457
10458 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10459
10460 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10461 Protect with IN_LIBGCC.
10462 (LINK_EH_SPEC): Add required trailing space.
10463
10464 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10465
10466 * c-tree.h: Move function declarations so that they are listed
10467 under the filename which contains them.
10468 (check_identifier, finish_decl_top_level,
10469 lookup_name_current_level_global, shadow_record_fields): Remove.
10470
10471 2002-01-11 Andreas Jaeger <aj@suse.de>
10472
10473 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10474 march.
10475
10476 2002-01-10 Richard Henderson <rth@redhat.com>
10477
10478 * config/alpha/alpha.c (print_operand): Add 'J'.
10479 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10480 new operand with the sequence number for the lituse. When splitting
10481 the insns, use gen_movdi_er_high_g and generate a sequence number.
10482 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10483
10484 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10485
10486 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10487 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10488 stvxl.
10489 (altivec_expand_builtin): Same.
10490 (altivec_expand_stv_builtin): New.
10491
10492 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10493
10494 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10495 ("altivec_lvehx"): New.
10496 ("altivec_lvewx"): New.
10497 ("altivec_lvxl"): New.
10498 ("altivec_lvx"): New.
10499 ("altivec_stvx"): New.
10500 ("altivec_stvebx"): New.
10501 ("altivec_stvehx"): New.
10502 ("altivec_stvewx"): New.
10503 ("altivec_stvxl"): New.
10504
10505 2002-01-10 Richard Henderson <rth@redhat.com>
10506
10507 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10508 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10509 care not to delete instructions twice.
10510
10511 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10512
10513 * toplev.c: Don't declare environ (it's not used anywhere).
10514 * configure.in: Don't check for declaration of environ.
10515 * config/i386/xm-mingw32.h: Don't #define environ.
10516 * config.in, configure: Regenerate.
10517
10518 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10519
10520 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10521 * configure: Regenerate.
10522
10523 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10524 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10525 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10526 alpha/xm-vms.h.
10527 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10528 LIMITS_H_TEST here, not in m68k/x-next.
10529 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10530 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10531
10532 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10533 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10534 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10535
10536 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10537 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10538 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10539 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10540 replacement of quadlib.asm with quadlib.c.
10541
10542 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10543 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10544 config/rs6000/xm-beos.h: Delete file.
10545
10546 * config.gcc: Update to match above changes.
10547
10548 2002-01-10 Kazu Hirata <kazu@hxi.com>
10549
10550 * config/h8300/h8300.h: Fix comment typos.
10551 * config/h8300/h8300.md: Likewise.
10552 * config/h8300/lib1funcs.asm: Likewise.
10553
10554 2002-01-10 Dale Johannesen <dalej@apple.com>
10555
10556 PR optimization/5269
10557 * unroll.c (precondition_loop_p): Make *increment be the correct
10558 sign when n_iterations known, to avoid confusing caller.
10559
10560 2002-01-10 Kazu Hirata <kazu@hxi.com>
10561
10562 * doc/extend.texi (deprecated): Fix a typo.
10563
10564 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10565
10566 * basic-block.h (update_br_prob_note): Declare.
10567 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10568 (try_forward_edges): Care negative frequencies and update note.
10569 (outgoing_edges_match): Tweek conditional merging heuristics.
10570 (try_crossjump_to_edge): use update_br_prob_note.
10571 * cfglayout.c (fixup_reorder_chain): Likewise.
10572 * cfrtl.c (update_br_prob_note): New.
10573 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10574
10575 * i386.c (ix86_decompose_address): Return -1 if address contains
10576 shift.
10577 (legitimate_address_p): Require ix86_decompose_address to return 1.
10578
10579 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10580 (cprop_insn): Likewise.
10581
10582 2002-01-10 Kazu Hirata <kazu@hxi.com>
10583
10584 * toplev.c: Fix formatting.
10585 * tree.c: Likewise.
10586 * tree-dump.c: Likewise.
10587 * unroll.c: Likewise.
10588 * unwind-dw2.c: Likewise.
10589 * unwind-dw2-fde.c: Likewise.
10590 * unwind-dw2-fde-glibc.c: Likewise.
10591 * unwind-sjlj.c: Likewise.
10592
10593 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10594
10595 * doc/invoke.texi: Document PDP-11 options.
10596
10597 2002-01-10 Kazu Hirata <kazu@hxi.com>
10598
10599 * config/h8300/h8300.h: Fix formatting.
10600
10601 2002-01-10 Ira Ruben <ira@apple.com>
10602
10603 Add __attribute__ ((deprecated)).
10604 * extend.texi: Document __attribute__ ((deprecated)).
10605 * invoke.texi: Document -Wno-deprecated-declarations.
10606 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10607 * testsuite/gcc.dg/deprecated.c: New C test.
10608 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10609 (c_common_attribute_table): Add "deprecated" entry.
10610 (handle_deprecated_attribute): New function.
10611 * c-decl.c (deprecated_states): New enum.
10612 deprecated_state: State of "deprecated" handling.
10613 (start_decl): Set deprecated_state based on attributes.
10614 (grokdeclarator): Test for deprecated uses, propagate attribute.
10615 * c-typeck.c (build_component_ref): Test for deprecated fields.
10616 (build_external_ref): Test for deprecated primaries.
10617 * diagnostic.c (warn_deprecated_use) New function to issue
10618 warnings about __attribute__ ((depricated)) references.
10619 * flags.h (warn_deprecated_decl): Extern declared for
10620 -W[no-]deprecated-declarations option.
10621 * print-tree.c (print_node): Show deprecated flag status.
10622 * toplev.c (warn_deprecated_decl): Defined.
10623 (W_options): Added "deprecated-declaration".
10624 * toplev.h (warn_deprecated_use): Extern declared.
10625 * tree.h (struct tree_common): Define deprecated_flag.
10626 (TREE_DEPRECATED): New macro to access flag.
10627 * cp/call.c (build_call): Test for deprecated calls.
10628 * cp/class.c (add_implicitly_declared_members): Set global
10629 flag to tell grokdeclarator to not issue deprecated warnings.
10630 * cp/cp-tree.h: Add extern for adding_implicit_members.
10631 * cp/decl.c (deprecated_states): New enum.
10632 (start_decl): Set deprecated_state based on attributes.
10633 (grokdeclarator): Test for deprecated uses, propagate attribute.
10634 * cp/lex.c (do_identifier): Test for deprecated primaries.
10635 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10636
10637 2002-01-10 Ira Ruben <ira@apple.com>
10638
10639 Fix to assign attributes to inline member functions.
10640 * cp/decl.c (start_method): Handle attrlist.
10641
10642 2002-01-10 Kazu Hirata <kazu@hxi.com>
10643
10644 * combine.c (expand_field_assignment): Use subreg_lsb().
10645
10646 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10647
10648 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10649 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10650 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10651 Recurse for any operand of AND as long as constant is non-zero.
10652
10653 2002-01-10 Kazu Hirata <kazu@hxi.com>
10654
10655 * config/h8300/h8300.md: Remove constraints from expanders.
10656
10657 2002-01-10 Kazu Hirata <kazu@hxi.com>
10658
10659 * varasm.c: Fix formatting.
10660 * varray.c: Likewise.
10661 * vmsdbgout.c: Likewise.
10662 * xcoffout.c: Likewise.
10663
10664 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10665
10666 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10667 update edge probabilities to match.
10668
10669 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10670
10671 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10672 dependencies.
10673 * doc/languages.texi, doc/sourcebuild.texi: New files.
10674 * doc/configfiles.texi: Make a subsubsection. Update.
10675 * doc/configterms.texi: Add @node. Remove warning that this isn't
10676 instructions for building GCC.
10677 * doc/makefile.texi: Make a subsection.
10678 * doc/gccint.texi: Update.
10679
10680 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10681
10682 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10683
10684 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10685
10686 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10687
10688 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10689
10690 * optabs.c (expand_fix): Look for wider integer modes first.
10691
10692 * i386.md (mov?f): Avoid the fake const double trick for medium
10693 memory model.
10694 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10695 (fop_df_4): Disable for SSE compilation.
10696
10697 2002-01-10 Graham Stott <grahams@redhat.com>
10698
10699 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10700 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10701
10702 2002-01-10 Richard Henderson <rth@redhat.com>
10703
10704 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10705
10706 2002-01-10 Richard Henderson <rth@redhat.com>
10707
10708 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10709 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10710
10711 2002-01-10 Kazu Hirata <kazu@hxi.com>
10712
10713 * combine.c (can_combine_p): Fix a comment typo.
10714
10715 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10716
10717 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10718 empty list correctly. Change loop index $t to $f for
10719 consistency with rest of Makefile.
10720
10721 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10722
10723 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10724 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10725
10726 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10727 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10728 (altivec_init_builtins): Same.
10729 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10730 (altivec_expand_binop_builtin): Same.
10731 (altivec_expand_ternop_builtin): Same.
10732 (bdesc_dst): New.
10733
10734 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10735 ("altivec_vctuxs"): Fix typo.
10736 ("altivec_vnmsubfp"): Same.
10737 ("altivec_dssall"): New.
10738 ("altivec_mfvscr"): New.
10739 ("altivec_dss"): New.
10740 ("altivec_lvsl"): New.
10741 ("altivec_lvsr"): New.
10742 ("altivec_dstt"): New.
10743 ("altivec_dstst"): New.
10744 ("altivec_dststt"): New.
10745 ("altivec_dst"): New.
10746
10747 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10748 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10749
10750 2002-01-09 Richard Henderson <rth@redhat.com>
10751
10752 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10753
10754 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10755
10756 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10757 function.
10758 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10759 prototype.
10760 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10761
10762 2002-01-09 Kazu Hirata <kazu@hxi.com>
10763
10764 * read-rtl.c: Fix formatting.
10765 * real.c: Likewise.
10766 * regclass.c: Likewise.
10767 * regrename.c: Likewise.
10768 * reg-stack.c: Likewise.
10769 * reload1.c: Likewise.
10770 * reload.c: Likewise.
10771 * rtl.c: Likewise.
10772
10773 2002-01-09 Kazu Hirata <kazu@hxi.com>
10774
10775 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10776 to extract items in the expr_list chain.
10777
10778 2002-01-09 Richard Henderson <rth@redhat.com>
10779
10780 * config/vax/vax.c (vax_rtx_cost): Never abort.
10781
10782 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10783
10784 2002-01-09 Jan Hubicka <jh@suse.cz>
10785
10786 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10787
10788 2002-01-09 Richard Henderson <rth@redhat.com>
10789
10790 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10791 Unify code from various alternatives.
10792
10793 2002-01-09 Richard Henderson <rth@redhat.com>
10794
10795 * regrename.c (copy_value): Ignore the copy if the source register
10796 is present in the value chain with a narrower mode.
10797
10798 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10799
10800 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10801 for the c4x target. Also improve layout.
10802
10803 2002-01-09 Richard Henderson <rth@redhat.com>
10804
10805 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10806 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10807 to match insn patterns.
10808
10809 2002-01-09 Richard Henderson <rth@redhat.com>
10810
10811 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10812 (copyprop_hardreg_forward_1): Likewise.
10813
10814 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10815
10816 * pa.md (decrement_and_branch_until_zero): Change predicate for
10817 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10818
10819 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10820
10821 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10822 gets undefined. For Darwin.
10823
10824 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10825
10826 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10827
10828 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10829
10830 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10831
10832 2002-01-08 Richard Henderson <rth@redhat.com>
10833
10834 * regrename.c (copy_value): Ignore overlapping copies.
10835
10836 2002-01-08 Richard Henderson <rth@redhat.com>
10837
10838 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10839 as needed to avoid shared structure.
10840
10841 2002-01-08 Kazu Hirata <kazu@hxi.com>
10842
10843 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10844 H8/300H and H8/S.
10845
10846 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10847
10848 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10849 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10850 documentation of obsolete macros.
10851 * system.h: Poison these macros.
10852 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10853 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10854 config/c4x/c4x.h, config/clipper/clipper.h,
10855 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10856 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10857 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10858 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10859 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10860 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10861 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10862 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10863 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10864 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10865 config/sparc/sparc.h, config/stormy16/stormy16.h,
10866 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10867 definitions and commented out definitions of obsolete macros.
10868 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10869 of MAX_INT_TYPE_SIZE.
10870
10871 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10872
10873 * config/s390/s390.c (s390_preferred_reload_class): Never
10874 return ADDR_REGS if it isn't a subset of the given class.
10875 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10876 FP_REGS, but all superclasses as well.
10877
10878 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10879
10880 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10881 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10882 must not be a const_int.
10883
10884 2002-01-08 Richard Henderson <rth@redhat.com>
10885
10886 * Makefile.in (toplev.o): Depend on options.h.
10887 (gcc.o): Depend on specs.h.
10888
10889 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10890
10891 * expr.c (store_expr): Convert VOIDmode constants back to target's
10892 mode.
10893
10894 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10895
10896 * doc/invoke.texi: Markup gcc as @command. Refer to
10897 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10898 of http://gcc.gnu.org/thanks.html.
10899
10900 2002-01-08 Dale Johannesen <dalej@apple.com>
10901
10902 * config/rs6000/rs6000.md: Add missing int register
10903 target case to movdf_low.
10904
10905 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10906
10907 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10908 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10909 (cppinit.o): Depend on except.h.
10910 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10911 s-specs): New rules.
10912
10913 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10914 Don't create specs.h/options.h/gencheck.h here. Remove
10915 unnecessary variable settings from last argument of AC_OUTPUT.
10916 * config.in, configure: Regenerate.
10917 * intl.c: Hardcode package name as "gcc".
10918
10919 * cppinit.c: Include except.h.
10920 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10921 appropriate.
10922 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10923 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10924 (!)USING_SJLJ_EXCEPTIONS.
10925 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10926
10927 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10928
10929 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10930 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10931 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10932 documentation of obsolete macros.
10933 * system.h: Poison these macros.
10934 * config/d30v/d30v.h, config/ns32k/encore.h,
10935 config/stormy16/stormy16.h: Remove definitions and commented out
10936 definitions of obsolete macros.
10937
10938 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10939
10940 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10941 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10942 warnings.
10943
10944 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10945
10946 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10947 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10948 to insn adjusting stack/frame pointer.
10949 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10950 accept operands that cause the insn to be non-splittable.
10951
10952 2002-01-08 Graham Stott <grahams@redhat.com>
10953
10954 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10955 (C_TYPE_FIELDS_VOLATILE): Likewise.
10956 (C_TYPE_BEING_DEFINED): Likewise.
10957 (C_IS_RESERVED_WORD): Likewise.
10958 (C_TYPE_VARIABLE_SIZE): Likewise.
10959 (C_DECL_VARIABLE_SIZE): Likewise.
10960 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10961 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10962 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10963 parenthesis.
10964 (C_DECL_ANTICIPATED): Likewise.
10965 (c_build_type_variant): Add parenthesis.
10966
10967 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10968
10969 * gcc.c (option_map): Remove --version.
10970 (process_command): Handle -fversion following the GNU Coding
10971 Standards. Partially addresses PR other/704.
10972
10973 2002-01-08 Graham Stott <grahams@redhat.com>
10974
10975 * combine.c (combine_instructions): Fix typo.
10976
10977 2002-01-08 Graham Stott <grahams@redhat.com>
10978
10979 * debug.h: Use "tree" and "rtx" throughout.
10980
10981 * debug.c: Likewise.
10982
10983 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10984
10985 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10986 constant pool, use the pool's version of the symbol instead.
10987
10988 2002-01-07 Richard Henderson <rth@redhat.com>
10989
10990 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10991 the original register was copied in a mode with a fewer number of
10992 hard registers than the desired mode.
10993 (copyprop_hardreg_forward_1): Likewise.
10994 (debug_value_data): Fix loop test.
10995 * toplev.c (parse_options_and_default_flags): Reenable
10996 -fcprop-registers at -O1.
10997
10998 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10999
11000 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11001 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11002
11003 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11004 predicates.
11005
11006 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11007
11008 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11009
11010 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11011 (pa_output_function_prologue): Output local label at the beginning of
11012 the prologue when profiling.
11013 (hppa_profile_hook): Use the local label rather than the function label.
11014 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11015
11016 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11017
11018 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11019 (altivec_expand_unop_builtin): Fix thinko.
11020 (altivec_expand_binop_builtin): Same.
11021 (altivec_expand_ternop_builtin): Same.
11022 (altivec_expand_builtin): Same.
11023
11024 2002-01-07 Richard Henderson <rth@redhat.com>
11025
11026 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11027
11028 2002-01-07 Jason Merrill <jason@redhat.com>
11029
11030 * unwind-dw2.c (execute_cfa_program): Use < again.
11031
11032 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11033
11034 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11035
11036 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11037
11038 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11039 Don't allow -1 - x -> ~x simplifications in the first pass.
11040
11041 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11042
11043 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11044 arguments.
11045 (altivec_expand_binop_builtin): Same.
11046 (altivec_expand_unop_builtin): Same.
11047 (print_operand): Fix typo.
11048 (bdesc_1arg): Add vupk* variants.
11049
11050 * rs6000.h (rs6000_builtins): Add vupk* enums.
11051
11052 * rs6000.md: Add altivec_vupk* variants.
11053
11054 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11055
11056 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11057 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11058 and last update dates.
11059
11060 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11061
11062 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11063
11064 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11065
11066 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11067 * config/avr/avr.h (CPP_SPEC): Likewise.
11068 (LINK_SPEC): Likewise.
11069 (CRT_BINUTILS_SPECS): Likewise.
11070 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11071 * doc/invoke.texi (AVR Options): Document them.
11072
11073 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11074
11075 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11076 LABEL_NUSES.
11077
11078 2002-01-07 Graham Stott <grahams@redhat.com>
11079
11080 * config/i386/i386.h: Update copyright date.
11081 (HALF_PIC_PTR): Add parenthesis.
11082 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11083 (CONSTANT_ALIGNMENT): Add parenthesis.
11084 (DATA_ALIGNMENT): Likewise.
11085 (LOCAL_ALIGNMENT): Likewise.
11086 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11087 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11088 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11089 (HARD_REGNO_NREGS): Add paranethesis.
11090 (VALID_SSE_REG_MODE): Whitespace.
11091 (VALID_MMX_REG_MODE): Whitespace.
11092 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11093 (ix86_hard_regno_mode_ok): Add parenthesis.
11094 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11095 (RETURN_IN_MEMORY): Whitespace.
11096 (N_REG_CLASSES): Add parenthesis.
11097 (INTEGER_CLASS_P): Add parenthesis and wrap.
11098 (FLOAT_CLASS_P): Likewise.
11099 (SSE_CLASS_P): Likewise.
11100 (MMX_CLASS_P): Likewise.
11101 (MAYBE_INTEGER_CLASS_P): Likewise.
11102 (MAYBE_FLOAT_CLASS_P): Likewise.
11103 (MAYBE_SSE_CLASS_P): Likewise.
11104 (MAYBE_MMX_CLASS_P): Likewise.
11105 (Q_CLASS_P): Likewise.
11106 (GENERAL_REGNO_P): Uppercase macro parameter.
11107 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11108 (FP_REGNO_P): Likewise.
11109 (ANY_FP_REGNO_P): Uppercase macro parameter.
11110 (SSE_REGNO_P): Likewise.
11111 (SSE_REGNO): Likewise.
11112 (SSE_REG_P): Likewise.
11113 (SSE_FLOAT_MODE_P): Likewise.
11114 (MMX_REGNO_P): Likewise.
11115 (MMX_REG_P):Likewise.
11116 (STACK_REG_P): Likewise.
11117 (NON_STACK_REG_P): Likewise.
11118 (STACK_TOP_P): Likewise.
11119 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11120 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11121 (SECONDARY_MEMORY_NEEDED): Likewise.
11122 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11123 (MD_ASM_CLOBBERS): Whitespace and wrap.
11124 (MUST_PASS_IN_STACK): Whitespace and wrap.
11125 (RETURN_POPS_ARGS): Add parenthesis.
11126 (INIT_CUMULATIVE_ARGS): Likewise.
11127 (FUNCTION_ARG): Likewise.
11128 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11129 (SETUP_INCOMING_VARARGS): Likewise.
11130 (BUILD_VA_LIST_TYPE): Add parenthesis.
11131 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11132 parenthsis.
11133 (EXPAND_BUILTIN_VA_ARG): Likewise.
11134 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11135 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11136 (INITIAL_ELIMINATION_OFFSET): Likewise.
11137 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11138 (REGNO_OK_FOR_BASE_P): Likewise.
11139 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11140 (REGNO_OK_FOR_DIREG_P): Likewise.
11141 (REG_OK_FOR_INDEX_P): Whitespace.
11142 (REG_OK_FOR_BASE_P): Whitespace.
11143 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11144 parenthesis.
11145 (FIND_BASE_TERM): Fix typo.
11146 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11147 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11148 (SYMBOLIC_CONST; Whitespace.
11149 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11150 (ENCODE_SECTION_INFO): Whitespace.
11151 (FINALIZE_PIC): Remove do { ... } while (0).
11152 (PROMOTE_MODE): Wrap in do { ... } while (0).
11153 (CONST_COSTS): Whitespace.
11154 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11155 (REGISTER_MOVE_COST): Add parenthesis.
11156 (MEMORY_MOVE_COST): Likewise.
11157 (EXTRA_CC_MODES): Whitespace.
11158 (SELECT_CC_MODE): Add parenthesis and whitespace.
11159 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11160 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11161 (ASM_OUTPUT_LABEL): Add paramethesis.
11162 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11163 (ASM_OUTPUT_REG_POP): Likewise.
11164 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11165 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11166
11167 * config/i386/i386.c: Update copyright.
11168 (CHECK_STACK_LIMIT): Add parenthesis.
11169 (AT_BP): Uppercase macro parameter.
11170 (x86_64_int_parameter_registers): Constify.
11171 (x86_64_int_return_registers): Likewise.
11172 (ix86_compare_op0): Use rtx.
11173 (construct_container): Constify INTREG parameter.
11174 (function_arg): Use rtx.
11175
11176 * diagnostic.h: Update copyright date.
11177 (output_buffer_state): Add parenthesis.
11178 (output_buffer_format_args): Likewise.
11179
11180 * combine.c (combine_instructions): Replace XEXP (links, 0)
11181 with link.
11182
11183 2002-01-06 H.J. Lu <hjl@gnu.org>
11184
11185 * cfgcleanup.c (thread_jump): Fix 2 typos.
11186
11187 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11188
11189 * config.gcc: Add support for --enable-altivec.
11190
11191 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11192
11193 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11194
11195 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11196
11197 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11198 __objc_class_name_*.
11199
11200 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11201
11202 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11203
11204 2002-01-06 Richard Henderson <rth@redhat.com>
11205
11206 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11207 nop them out. Increment label reference count for REG_LABEL.
11208 (fill_slots_from_thread): Frob label reference count around
11209 delete_related_insns.
11210
11211 2002-01-05 Richard Henderson <rth@redhat.com>
11212
11213 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11214 jump threading.
11215
11216 2002-01-05 Richard Henderson <rth@redhat.com>
11217
11218 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11219 * integrate.c (output_inline_function): Likewise.
11220 * toplev.c (rest_of_compilation): Do it here instead. Move call
11221 to remove_unnecessary_notes after emitting abstract instance.
11222 Force an emitted nested function to have its parent emited as well.
11223 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11224 for null.
11225 (rtl_for_decl_location): Do not look at reload data structures
11226 before reload has run.
11227
11228 2002-01-05 Kazu Hirata <kazu@hxi.com>
11229
11230 * cse.c: Fix formatting.
11231 * dwarf2asm.c: Likewise.
11232 * dwarf2out.c: Likewise.
11233 * explow.c: Likewise.
11234 * expmed.c: Likewise.
11235 * function.c: Likewise.
11236 * gcov.c: Likewise.
11237 * gencheck.c: Likewise.
11238 * genrecog.c: Likewise.
11239 * ggc-common.c: Likewise.
11240 * ggc-page.c: Likewise.
11241 * global.c: Likewise.
11242
11243 2002-01-05 Kazu Hirata <kazu@hxi.com>
11244
11245 * combine.c: Fix formatting.
11246
11247 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11248
11249 PR middle-end/1557
11250 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11251
11252 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11253
11254 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11255 as 1 for __powerpc64__ as well.
11256
11257 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11258
11259 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11260 return it.
11261
11262 2002-01-05 Daniel Berlin <dan@dberlin.org>
11263
11264 * lcm.c: Revert change, due to performance regression it causes on
11265 SPEC because it's slightly more conservative (sigh, I hate
11266 edge-based LCM).
11267
11268 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11269
11270 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11271
11272 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11273
11274 * doc/cppinternals.texi: Update.
11275
11276 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11277
11278 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11279 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11280 negatives.
11281 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11282 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11283 kludge for pre-october-14th mmix versions to handle new-found bug
11284 with PUSHJ/PUSHGO and the register stack.
11285 * config/mmix/mmix.h (struct machine_function): Rename member
11286 has_call_value_without_parameters to has_call_without_parameters.
11287 All referers changed.
11288 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11289 TARGET_MASK_BRANCH_PREDICT): New macros.
11290 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11291 -mno-reg-stack-fill-bug-workaround.
11292 * config/mmix/mmix.md ("call"): Set struct machine member
11293 has_call_without_parameters.
11294
11295 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11296
11297 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11298
11299 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11300
11301 * cfgcleanup.c: Include tm_p.h
11302 (mark_effect): Fix handling of hard register; fix handling of SET
11303
11304 2002-01-04 Kazu Hirata <kazu@hxi.com>
11305
11306 * config/h8300/h8300.md (anonymous patterns): Check that
11307 operands are registers before using REGNO on them.
11308
11309 2002-01-03 Roland McGrath <roland@frob.com>
11310
11311 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11312
11313 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11314
11315 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11316 * c-common.h (genrtl_expr_stmt_value): Likewise.
11317 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11318 (expand_expr_stmt_value): Add maybe_last argument.
11319 Don't warn about statement with no effect if it is the last statement
11320 in expression statement.
11321 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11322 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11323 expand_expr_stmt_value.
11324 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11325 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11326 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11327 as maybe_last to expand_expr_stmt_value.
11328
11329 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11330
11331 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11332 be passed in, do not build it.
11333 (c_begin_if_stmt): New function.
11334 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11335 * c-common.h (c_expand_start_cond): Update prototype.
11336 (c_begin_if_stmt): Prototype new function.
11337 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11338 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11339 c_begin_while_stmt and c_finish_while_stmt_cond.
11340
11341 2002-01-04 William Cohen <wcohen@redhat.com>
11342
11343 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11344 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11345 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11346 * config/pa/som.h (ASM_FILE_START): Likewise.
11347
11348 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11349
11350 * lcm.c: Include df.h.
11351 Add available_transfer_function prototype.
11352 (compute_available): Rework to use iterative dataflow framework.
11353 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11354 with bb_info in df.h
11355 (available_transfer_function): New function.
11356
11357 * Makefile.in (lcm.o): add df.h to dependencies.
11358
11359 2002-01-04 Richard Henderson <rth@redhat.com>
11360
11361 * config/alpha/alpha.c (some_operand): Accept HIGH.
11362 (input_operand): Likewise; accept simple references to globals.
11363 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11364 (alpha_const_double_ok_for_letter_p): Likewise.
11365 (alpha_extra_constraint): Likewise.
11366 (alpha_preferred_reload_class): Likewise. Do not force
11367 symbolic constants to memory.
11368 (alpha_legitimate_address_p): Accept simple references
11369 to small_symbolic_operand.
11370 (alpha_legitimize_address): New arg scratch. Be prepared to be
11371 called when no_new_pseudos. Emit simple symbolic references.
11372 Split integers into low, high, and rest.
11373 (alpha_expand_mov): Use alpha_legitimize_address.
11374 (some_small_symbolic_mem_operand): New.
11375 (split_small_symbolic_mem_operand): New.
11376 * config/alpha/alpha-protos.h: Update.
11377 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11378 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11379 (EXTRA_CONSTRAINT): Likewise.
11380 (PREFERRED_RELOAD_CLASS): Likewise.
11381 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11382 (PREDICATE_CODES): Update.
11383 * config/alpha/alpha.md: New post-reload splitters to convert
11384 simplfied symbolic operands to the form that references $29.
11385 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11386 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11387
11388 2002-01-03 Richard Henderson <rth@redhat.com>
11389
11390 * local-alloc.c (function_invariant_p): Update commentary.
11391
11392 2002-01-04 H.J. Lu <hjl@gnu.org>
11393
11394 * toplev.c (rest_of_compilation): Fix a typo when calling
11395 cleanup_cfg.
11396
11397 2002-01-03 Kazu Hirata <kazu@hxi.com>
11398
11399 * c-common.c: Fix formatting.
11400 * diagnostic.c: Likewise.
11401 * doloop.c: Likewise.
11402 * dwarf2out.c: Likewise.
11403
11404 2002-01-03 Kazu Hirata <kazu@hxi.com>
11405
11406 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11407 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11408
11409 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11410
11411 * cpperror.c: Update comments and copyright.
11412 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11413 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11414
11415 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11416
11417 * collect2.c (main): Use strcmp when testing for "-shared".
11418
11419 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11420
11421 * cppmacro.c: Don't include intl.h. Update comments.
11422 (new_number_token): Allocate enough buffer for 64-bit unsigned
11423 integers; update prototype.
11424 * cppmain.c: Update comments.
11425
11426 2002-01-03 William Cohen <wcohen@redhat.com>
11427
11428 * function.h (struct function): Add profile.
11429 (current_function_profile): New.
11430 doc/extend.texi: Update documentation.
11431 * final.c (final_start_function): Use current_function_profile
11432 instead of profile_flag.
11433 (profile_after_prologue): Likewise.
11434 * function.c (expand_function_start): Likewise.
11435 (expand_function_start): Likewise.
11436 * config/alpha/alpha.c (direct_call_operand):
11437 (alpha_does_function_need_gp): Likewise.
11438 (alpha_expand_prologue): Likewise.
11439 * config/arm/arm.c (arm_expand_prologue): Likewise.
11440 thumb_expand_prologue: Likewise.
11441 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11442 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11443 (fr30_expand_prologue): Likewise.
11444 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11445 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11446 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11447 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11448 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11449 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11450 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11451 (m32r_expand_prologue): Likewise.
11452 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11453 (m88k_expand_prologue): Likewise.
11454 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11455 * config/mips/mips.c (compute_frame_size): Likewise.
11456 (mips_expand_prologue): Likewise.
11457 (mips_can_use_return_insn): Likewise.
11458 * config/pa/elf.h (ASM_FILE_START): Likewise.
11459 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11460 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11461 * config/pa/som.h (ASM_FILE_START): Likewise.
11462 * config/romp/romp.c (romp_using_r14): Likewise.
11463 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11464 (rs6000_stack_info): Likewise.
11465 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11466 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11467 * config/v850/v850.c (compute_register_save_size): Likewise.
11468
11469 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11470
11471 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11472 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11473
11474 2002-01-03 Turly O'Connor <turly@apple.com>
11475
11476 * darwin.c (machopic_output_possible_stub_label): Don't generate
11477 stub routines for pseudo-stubs which we've just defined.
11478
11479 2002-01-03 Kazu Hirata <kazu@hxi.com>
11480
11481 * builtins.c: Fix formatting.
11482 * c-typeck.c: Likewise.
11483 * combine.c: Likewise.
11484 * expr.c: Likewise.
11485 * loop.c: Likewise.
11486
11487 2002-01-03 Andreas Schwab <schwab@suse.de>
11488
11489 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11490 and return true if _cpp_push_next_buffer pushed a new include
11491 file.
11492 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11493 _cpp_pop_file_buffer did not push a new file.
11494 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11495
11496 2002-01-02 Eric Christopher <echristo@redhat.com>
11497
11498 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11499 FIND_REG_INC_NOTE call. Update copyright.
11500 * loop.c (canonicalize_condition): Ditto.
11501 * reorg.c (delete_scheduled_jump): Ditto.
11502
11503 2002-01-03 Kazu Hirata <kazu@hxi.com>
11504
11505 * gcse.c: Fix formatting.
11506
11507 2002-01-03 Graham Stott <grahams@redhat.com>
11508
11509 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11510 forward defs for struct tags rtx_def, union_tree, rtvec_def
11511 also output corresponding typedefs for rtx, tree, and rtvec.
11512
11513 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11514 rtvec_def along with corresponding typedefs for rtx, tree, and
11515 rtvec to config.h, hconfig.h, tconfig.h.
11516
11517 2002-01-03 Graham Stott <grahams@redhat.com>
11518
11519 * tree.h: Update copyright date.
11520 (IS_EXPR_CODE_CLASS): Add parenthesis.
11521 (TREE_SET_CODE): Add whitespace.
11522 (TREE_CHECK): Add parenthesis.
11523 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11524 (CST_OR_CONSTRUCTOR_CHECK):
11525 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11526 (TREE_SYMBOL_REFERENCED): Whitespace.
11527 (INT_CST_LT): Likewise.
11528 (INT_CST_LT_UNSIGNED): Likewise.
11529 (tree_real_cst): Unwrap comment.
11530 (tree_string): Likewise.
11531 (tree_complex): Likewise.
11532 (IDENTIFIER_POINTER): correct cast.
11533 (SAVE_EXPR_CONTEXT): Whitespace.
11534 (EXPR_WFL_FILENAME_NODE): Likewise.
11535 (EXPR_WFL_FILENAME): Remove parenthesis.
11536 (DECL_ORIGIN): Add parenthesis.
11537 (DECL_FROM_INLINE): Use NULL_TREE.
11538 (build_int_2): Whitespace.
11539 (build_type_variant): Add parenthesis.
11540
11541 * gcc/jcf-parse.c: Update copyright date.
11542 (yyparse): Constify resource_filename.
11543
11544 2002-01-03 Graham Stott <grahams@redhat.com>
11545
11546 * rtl.h: Update copyright date.
11547 (RTL_CHECK1): Wrap long line.
11548 (RTL_CHECK2): Likewise.
11549 (RTL_CHECKC1): Wrap long line and whitespace.
11550 (RTL_CHECKC2): Likewise.
11551 (XWINT): Whitespace.
11552 (XINT): Likewise.
11553 (XSTR): Likewise.
11554 (XEXP): Likewise.
11555 (XVEC): Likewise.
11556 (XMODE): Likewise.
11557 (XBITMAP): Likewise.
11558 (XTREE): Likewise.
11559 (XBBDEF): Likewise.
11560 (XTMPL): Likewise.
11561 (X0WINT): Likewise.
11562 (X0INT):Likewise.
11563 (X0UINT): Likewise.
11564 (X0STR): Likewise.
11565 (X0EXP): Likewise.
11566 (X0VEC): Likewise.
11567 (X0MODE): Likewise.
11568 (X0BITMAP): Likewise.
11569 (X0TREE): Likewise.
11570 (X0BBDEF): Likewise.
11571 (X0ADVFLAGS): Likewise.
11572 (X0CSELIB): Likewise.
11573 (X0MEMATTR): Likewise.
11574 (XCWINT): Likewise.
11575 (XCINT): Likewise.
11576 (XCUINT): Likewise.
11577 (XCSTR): Likewise.
11578 (XCEXP): Likewise.
11579 (XCVEC): Likewise.
11580 (XCMODE): Likewise.
11581 (XCBITMAP): Likewise.
11582 (XCTREE): Likewise.
11583 (XCBBDEF): Likewise.
11584 (XCADVFLAGS): Likewise.
11585 (XCCSELIB): Likewise.
11586 (XC2EXP): Likewise.
11587 (INSN_UID): Likewise.
11588 (PREV_INSN): Likewise.
11589 (PATTERN): Likewise.
11590 (INSN_CODE): Likewise.
11591 (PUT_REG_NOTE_KIND): Likewise.
11592 (CODE_LABEL_NUMBER): Likewise.
11593 (NOTE_SOURCE_FILE): Likewise.
11594 (NOTE_BLOCK): Likewise.
11595 (NOTE_EH_HANDLER): Likewise.
11596 (NOTE_RANGE_INFO): Likewise.
11597 (NOTE_LIVE_INFO): Likewise.
11598 (NOTE_BASIC_BLOCK): Likewise.
11599 (NOTE_EXPECTED_VALUE): Likewise.
11600 (NOTE_LINE_NUMBER): Likewise.
11601 (LABEL_NAME): Likewise.
11602 (LABEL_NUSES): Likewise.
11603 (LABEL_ALTERNATE_NAME): Likewise.
11604 (ADDRESSOF_DECL): Likewise.
11605 (JUMP_LABEL): Likewise.
11606 (LABEL_NEXTREF): Likewise.
11607 (REGNO): Likewise.
11608 (ORIGINAL_REGNO: Likewise.
11609 (HARD_REGISTER_NUM_P): Add parenthesis.
11610 (SUBREG_REG): Whitespace.
11611 (SUBREG_BYTE): Likewise.
11612 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11613 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11614 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11615 (ASM_OPERANDS_INPUT_VEC): Likewise.
11616 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11617 (ASM_OPERANDS_INPUT): Likewise.
11618 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11619 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11620 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11621 (ASM_OPERANDS_INPUT_MODE): Likewise.
11622 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11623 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11624 (MEM_SET_IN_STRUCT_P): Minor reformat.
11625 (TRAP_CONDITION): Whitespace.
11626 (TRAP_CODE): Likewise.
11627 (COND_EXEC_TEST): Likewise.
11628 (COND_EXEC_CODE): Likewise.
11629 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11630 (PHI_NODE_P): Add parenthesis.
11631 (plus_constant): Whitespace and add parenthesis.
11632
11633 2002-01-03 Kazu Hirata <kazu@hxi.com>
11634
11635 * config/avr/avr.c: Fix comment typos.
11636 * config/c4x/c4x.md: Likewise.
11637 * config/dsp16xx/dsp16xx.h: Likewise.
11638 * config/dsp16xx/dsp16xx.md: Likewise.
11639 * config/i386/i386.md: Likewise.
11640 * config/ia64/ia64.c: Likewise.
11641 * config/m32r/m32r.h: Likewise.
11642 * config/m68hc11/m68hc11.md: Likewise.
11643 * config/mmix/mmix.c: Likewise.
11644 * config/mn10200/mn10200.c: Likewise.
11645 * config/romp/romp.c: Likewise.
11646 * config/sh/sh.c: Likewise.
11647 * config/stormy16/stormy16.c: Likewise.
11648 * config/stormy16/stormy16.h: Likewise.
11649 * config/stormy16/stormy16.md: Likewise.
11650
11651 2002-01-03 Graham Stott <grahams@redhat.com>
11652
11653 * loop.h: Update copyright date.
11654 (LOOP_MOVABLES): Fix typo.
11655 (LOOP_REGS): Likewise.
11656 (LOOP_IVS): Likewise.
11657
11658 2002-01-03 Graham Stott <grahams@redhat.com>
11659
11660 * cppinit.c: Update copyright date.
11661 Don't include output.h
11662 * Makefile.in: Update copyright date.
11663 Update dependency.
11664
11665 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11666
11667 PR c/5226
11668 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11669 (-pthread) Add to RS/6000 options.
11670
11671 2002-01-02 Kazu Hirata <kazu@hxi.com>
11672
11673 * except.c: Fix comment typos.
11674 * loop.c: Likewise.
11675 * varasm.c: Likewise.
11676 * doc/tm.texi: Fix a typo.
11677
11678 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11679
11680 * c-typeck.c (output_init_element): Allow initializing static storage
11681 duration objects with compound literals.
11682
11683 2002-01-02 Richard Henderson <rth@redhat.com>
11684
11685 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11686 after abusing it.
11687
11688 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11689
11690 * gcc.c (default_compilers): Const-ify.
11691 * mips-tdump.c (stab_names): Likewise.
11692 * mips-tfile.c (map_coff_types, map_coff_storage,
11693 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11694 pseudo_ops_t, pseudo_ops): Likewise.
11695 * protoize.c (default_include): Likewise
11696
11697 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11698 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11699 Add array size in declaration.
11700 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11701 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11702 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11703 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11704 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11705 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11706 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11707 emtens, make_nan): Const-ify.
11708 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11709 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11710
11711 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11712
11713 * config.gcc (ia64-*-*): Set extra_headers.
11714 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11715 * config/alpha/t-osf: Remove.
11716 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11717
11718 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11719
11720 * config/rs6000/t-aix43: Revert previous change.
11721
11722 2002-01-02 Jason Merrill <jason@redhat.com>
11723
11724 * c-decl.c (c_expand_body): Call outlining_inline_function when
11725 emitting an inline function out of line.
11726
11727 2002-01-02 Richard Henderson <rth@redhat.com>
11728
11729 * dwarf2out.c (limbo_die_node): Add created_for member.
11730 (new_die): New argument created_for. Update all callers.
11731 (mark_limbo_die_list): New.
11732 (dwarf2out_init): Register limbo_die_list as a root.
11733 (dwarf2out_finish): Force insert limbo dies into their function
11734 context.
11735
11736 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11737
11738 PR c++/5089
11739 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11740
11741 2002-01-02 Kazu Hirata <kazu@hxi.com>
11742
11743 * config/h8300/fixunssfsi.c: Update copyright.
11744 Fix comment typos.
11745 Fix formatting.
11746 * config/h8300/h8300.c: Update copyright.
11747 Eliminate warnings.
11748
11749 2002-01-02 Kazu Hirata <kazu@hxi.com>
11750
11751 * config/romp/romp.c: Fix comment formatting.
11752 * config/romp/romp.h: Likewise.
11753 * config/romp/romp.md: Likewise.
11754 * config/s390/s390.c: Likewise.
11755 * config/stormy16/stormy16.c: Likewise.
11756 * config/stormy16/stormy16.h: Likewise.
11757
11758 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11759
11760 * c-common.h (genrtl_expr_stmt_value): Declare.
11761 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11762 (genrtl_goto_stmt_value): ... this new function. Pass new
11763 argument down to expand_expr_stmt_value, taking
11764 TREE_ADDRESSABLE into account.
11765 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11766 STMT_EXPR as addressable, i.e., one whose result we want.
11767 * expr.c (expand_expr): Don't save expression statement value
11768 of labeled_blocks or loop_exprs.
11769 * stmt.c (expand_expr_stmt): Redirect to...
11770 (expand_expr_stmt_value): ... this new function. Use new
11771 argument to tell whether to save expression value.
11772 (expand_end_stmt_expr): Reset last_expr_type and
11773 last_expr_value if we don't have either.
11774 * tree-inline.c (declare_return_variable): Mark its use
11775 statement as addressable.
11776 * tree.h: Document new use of TREE_ADDRESSABLE.
11777 (expand_expr_stmt_value): Declare.
11778
11779 2002-01-01 Tom Rix <trix@redhat.com>
11780
11781 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11782 rs6000_emit_allocate_stack.
11783
11784 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11785
11786 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11787 ${srcdir}/ginclude/ to every entry in extra_headers.
11788 * configure: Regenerate.
11789 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11790 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11791 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11792 * ginclude/proto.h: Rename to config/convex/proto.h.
11793
11794 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11795
11796 * attribs.c (handle_vector_size_attribute): Use host_integerp
11797 and tree_int_cst; remove warnings.
11798 * caller-save.c (insert_restore): Add cast to get rid of warning.
11799 (insert_save): Likewise.
11800 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11801 * regmove.c (find_matches): Add temporary var to kill a warning.
11802
11803 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11804
11805 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11806 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11807 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11808 (vms-dwarf2eh.o): Add Makefile rule.
11809 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11810 * config/alpha/vms-dwarf2eh.asm: New file.
11811
11812 * gcc.c (delete_if_ordinary): Delete all versions.
11813
11814 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11815
11816 * config/mmix/mmix.md: Update FIXME to not mention
11817 define_constants.
11818 (MMIX_rJ_REGNUM): New define_constants constant.
11819 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11820 "*movdicc_real"): Adjust contraints formatting.
11821 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11822 for branch prediction.
11823 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11824 output template.
11825 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11826 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11827 number. Delete related FIXMEs.
11828 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11829 from number to MMIX_rJ_REGNUM.
11830 (TARGET_MASK_BRANCH_PREDICT): New.
11831 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11832 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11833 value. Add -mbranch-predict and -mno-branch-predict.
11834 (TARGET_VERSION): Drop date.
11835 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11836 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11837 for finding out global symbols.
11838 (mmix_asm_output_labelref): Revert condition for global symbol.
11839 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11840 (mmix_print_operand_punct_valid_p): A '+' is valid.
11841
11842 See ChangeLog.6 for earlier changes.